reran autoconf-2.53
[Samba.git] / source / configure
blob20ec9e196103245c77c2adffa78c7b48868ce2b0
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-ldapsam Include LDAP SAM 2.2 compatible configuration (default=no)
866 --with-tdbsam Include experimental TDB SAM support (default=no)
867 --with-nisplussam Include NISPLUS SAM support (default=no)
868 --with-nisplus-home Include NISPLUS_HOME support (default=no)
869 --with-syslog Include experimental SYSLOG support (default=no)
870 --with-profiling-data Include gathering source code profile information (default=no)
871 --with-quotas Include experimental disk-quota support (default=no)
872 --with-utmp Include experimental utmp accounting (default=no)
873 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)
874 --with-libsmbclient Build the libsmbclient shared library (default=yes if shared libs supported)
875 --with-spinlocks Use spin locks instead of fcntl locks (default=no)
876 --with-acl-support Include ACL support (default=no)
877 --with-sendfile-support Check for sendfile support (default=yes)
878 --with-winbind Build winbind (default, if supported by OS)
879 --with-included-popt use bundled popt library, not from system
880 --with-python=PYTHONNAME build Python libraries
882 Some influential environment variables:
883 CC C compiler command
884 CFLAGS C compiler flags
885 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
886 nonstandard directory <lib dir>
887 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
888 headers in a nonstandard directory <include dir>
889 CPP C preprocessor
891 Use these variables to override the choices made by `configure' or to help
892 it to find libraries and programs with nonstandard names/locations.
894 _ACEOF
897 if test "$ac_init_help" = "recursive"; then
898 # If there are subdirs, report their specific --help.
899 ac_popdir=`pwd`
900 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901 test -d $ac_dir || continue
902 ac_builddir=.
904 if test "$ac_dir" != .; then
905 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
906 # A "../" for each directory in $ac_dir_suffix.
907 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
908 else
909 ac_dir_suffix= ac_top_builddir=
912 case $srcdir in
913 .) # No --srcdir option. We are building in place.
914 ac_srcdir=.
915 if test -z "$ac_top_builddir"; then
916 ac_top_srcdir=.
917 else
918 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
919 fi ;;
920 [\\/]* | ?:[\\/]* ) # Absolute path.
921 ac_srcdir=$srcdir$ac_dir_suffix;
922 ac_top_srcdir=$srcdir ;;
923 *) # Relative path.
924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925 ac_top_srcdir=$ac_top_builddir$srcdir ;;
926 esac
927 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
928 # absolute.
929 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
930 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
931 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
932 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
934 cd $ac_dir
935 # Check for guested configure; otherwise get Cygnus style configure.
936 if test -f $ac_srcdir/configure.gnu; then
937 echo
938 $SHELL $ac_srcdir/configure.gnu --help=recursive
939 elif test -f $ac_srcdir/configure; then
940 echo
941 $SHELL $ac_srcdir/configure --help=recursive
942 elif test -f $ac_srcdir/configure.ac ||
943 test -f $ac_srcdir/configure.in; then
944 echo
945 $ac_configure --help
946 else
947 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
949 cd $ac_popdir
950 done
953 test -n "$ac_init_help" && exit 0
954 if $ac_init_version; then
955 cat <<\_ACEOF
957 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
958 Free Software Foundation, Inc.
959 This configure script is free software; the Free Software Foundation
960 gives unlimited permission to copy, distribute and modify it.
961 _ACEOF
962 exit 0
964 exec 5>config.log
965 cat >&5 <<_ACEOF
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
969 It was created by $as_me, which was
970 generated by GNU Autoconf 2.53. Invocation command line was
972 $ $0 $@
974 _ACEOF
976 cat <<_ASUNAME
977 ## --------- ##
978 ## Platform. ##
979 ## --------- ##
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
990 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
991 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
994 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
995 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
996 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
998 _ASUNAME
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1001 for as_dir in $PATH
1003 IFS=$as_save_IFS
1004 test -z "$as_dir" && as_dir=.
1005 echo "PATH: $as_dir"
1006 done
1008 } >&5
1010 cat >&5 <<_ACEOF
1013 ## ----------- ##
1014 ## Core tests. ##
1015 ## ----------- ##
1017 _ACEOF
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Also quote any args containing shell meta-characters.
1023 ac_configure_args=
1024 ac_sep=
1025 for ac_arg
1027 case $ac_arg in
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n ) continue ;;
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 continue ;;
1033 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1035 esac
1036 case " $ac_configure_args " in
1037 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1038 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1039 ac_sep=" " ;;
1040 esac
1041 # Get rid of the leading space.
1042 done
1044 # When interrupted or exit'd, cleanup temporary files, and complete
1045 # config.log. We remove comments because anyway the quotes in there
1046 # would cause problems or look ugly.
1047 # WARNING: Be sure not to use single quotes in there, as some shells,
1048 # such as our DU 5.0 friend, will then `close' the trap.
1049 trap 'exit_status=$?
1050 # Save into config.log some information that might help in debugging.
1052 echo
1053 cat <<\_ASBOX
1054 ## ---------------- ##
1055 ## Cache variables. ##
1056 ## ---------------- ##
1057 _ASBOX
1058 echo
1059 # The following way of writing the cache mishandles newlines in values,
1061 (set) 2>&1 |
1062 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1063 *ac_space=\ *)
1064 sed -n \
1065 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1069 sed -n \
1070 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1072 esac;
1074 echo
1075 if test -s confdefs.h; then
1076 cat <<\_ASBOX
1077 ## ----------- ##
1078 ## confdefs.h. ##
1079 ## ----------- ##
1080 _ASBOX
1081 echo
1082 sed "/^$/d" confdefs.h
1083 echo
1085 test "$ac_signal" != 0 &&
1086 echo "$as_me: caught signal $ac_signal"
1087 echo "$as_me: exit $exit_status"
1088 } >&5
1089 rm -f core core.* *.core &&
1090 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1091 exit $exit_status
1093 for ac_signal in 1 2 13 15; do
1094 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1095 done
1096 ac_signal=0
1098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1099 rm -rf conftest* confdefs.h
1100 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1101 echo >confdefs.h
1103 # Predefined preprocessor variables.
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_NAME "$PACKAGE_NAME"
1107 _ACEOF
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1112 _ACEOF
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1117 _ACEOF
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_STRING "$PACKAGE_STRING"
1122 _ACEOF
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1127 _ACEOF
1130 # Let the site file select an alternate cache file if it wants to.
1131 # Prefer explicitly selected file to automatically selected ones.
1132 if test -z "$CONFIG_SITE"; then
1133 if test "x$prefix" != xNONE; then
1134 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1135 else
1136 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1139 for ac_site_file in $CONFIG_SITE; do
1140 if test -r "$ac_site_file"; then
1141 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1142 echo "$as_me: loading site script $ac_site_file" >&6;}
1143 sed 's/^/| /' "$ac_site_file" >&5
1144 . "$ac_site_file"
1146 done
1148 if test -r "$cache_file"; then
1149 # Some versions of bash will fail to source /dev/null (special
1150 # files actually), so we avoid doing that.
1151 if test -f "$cache_file"; then
1152 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1153 echo "$as_me: loading cache $cache_file" >&6;}
1154 case $cache_file in
1155 [\\/]* | ?:[\\/]* ) . $cache_file;;
1156 *) . ./$cache_file;;
1157 esac
1159 else
1160 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1161 echo "$as_me: creating cache $cache_file" >&6;}
1162 >$cache_file
1165 # Check that the precious variables saved in the cache have kept the same
1166 # value.
1167 ac_cache_corrupted=false
1168 for ac_var in `(set) 2>&1 |
1169 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1170 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1171 eval ac_new_set=\$ac_env_${ac_var}_set
1172 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1173 eval ac_new_val="\$ac_env_${ac_var}_value"
1174 case $ac_old_set,$ac_new_set in
1175 set,)
1176 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1177 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1178 ac_cache_corrupted=: ;;
1179 ,set)
1180 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1181 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1182 ac_cache_corrupted=: ;;
1183 ,);;
1185 if test "x$ac_old_val" != "x$ac_new_val"; then
1186 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1187 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1188 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1189 echo "$as_me: former value: $ac_old_val" >&2;}
1190 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1191 echo "$as_me: current value: $ac_new_val" >&2;}
1192 ac_cache_corrupted=:
1193 fi;;
1194 esac
1195 # Pass precious variables to config.status.
1196 if test "$ac_new_set" = set; then
1197 case $ac_new_val in
1198 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1200 *) ac_arg=$ac_var=$ac_new_val ;;
1201 esac
1202 case " $ac_configure_args " in
1203 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1204 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1205 esac
1207 done
1208 if $ac_cache_corrupted; then
1209 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1210 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1211 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1212 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1213 { (exit 1); exit 1; }; }
1216 ac_ext=c
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1239 ac_config_headers="$ac_config_headers include/config.h"
1242 #################################################
1243 # Directory handling stuff to support both the
1244 # legacy SAMBA directories and FHS compliant
1245 # ones...
1249 # Check whether --with-fhs or --without-fhs was given.
1250 if test "${with_fhs+set}" = set; then
1251 withval="$with_fhs"
1252 configdir="${sysconfdir}/samba"
1253 lockdir="\${VARDIR}/cache/samba"
1254 piddir="\${VARDIR}/run/samba"
1255 logfilebase="\${VARDIR}/log/samba"
1256 privatedir="\${CONFIGDIR}/private"
1257 libdir="\${prefix}/lib/samba"
1258 swatdir="\${DATADIR}/samba/swat"
1259 else
1260 configdir="\${LIBDIR}"
1261 logfilebase="\${VARDIR}"
1262 lockdir="\${VARDIR}/locks"
1263 piddir="\${VARDIR}/locks"
1264 privatedir="\${prefix}/private"
1265 swatdir="\${prefix}/swat"
1268 #################################################
1269 # set private directory location
1271 # Check whether --with-privatedir or --without-privatedir was given.
1272 if test "${with_privatedir+set}" = set; then
1273 withval="$with_privatedir"
1274 case "$withval" in
1275 yes|no)
1277 # Just in case anybody calls it without argument
1279 { echo "$as_me:$LINENO: WARNING: --with-privatedir called without argument - will use default" >&5
1280 echo "$as_me: WARNING: --with-privatedir called without argument - will use default" >&2;}
1283 privatedir="$withval"
1285 esac
1288 #################################################
1289 # set lock directory location
1291 # Check whether --with-lockdir or --without-lockdir was given.
1292 if test "${with_lockdir+set}" = set; then
1293 withval="$with_lockdir"
1294 case "$withval" in
1295 yes|no)
1297 # Just in case anybody calls it without argument
1299 { echo "$as_me:$LINENO: WARNING: --with-lockdir called without argument - will use default" >&5
1300 echo "$as_me: WARNING: --with-lockdir called without argument - will use default" >&2;}
1303 lockdir="$withval"
1305 esac
1308 #################################################
1309 # set pid directory location
1311 # Check whether --with-piddir or --without-piddir was given.
1312 if test "${with_piddir+set}" = set; then
1313 withval="$with_piddir"
1314 case "$withval" in
1315 yes|no)
1317 # Just in case anybody calls it without argument
1319 { echo "$as_me:$LINENO: WARNING: --with-piddir called without argument - will use default" >&5
1320 echo "$as_me: WARNING: --with-piddir called without argument - will use default" >&2;}
1323 piddir="$withval"
1325 esac
1328 #################################################
1329 # set SWAT directory location
1331 # Check whether --with-swatdir or --without-swatdir was given.
1332 if test "${with_swatdir+set}" = set; then
1333 withval="$with_swatdir"
1334 case "$withval" in
1335 yes|no)
1337 # Just in case anybody does it
1339 { echo "$as_me:$LINENO: WARNING: --with-swatdir called without argument - will use default" >&5
1340 echo "$as_me: WARNING: --with-swatdir called without argument - will use default" >&2;}
1343 swatdir="$withval"
1345 esac
1348 #################################################
1349 # set configuration directory location
1351 # Check whether --with-configdir or --without-configdir was given.
1352 if test "${with_configdir+set}" = set; then
1353 withval="$with_configdir"
1354 case "$withval" in
1355 yes|no)
1357 # Just in case anybody does it
1359 { echo "$as_me:$LINENO: WARNING: --with-configdir called without argument - will use default" >&5
1360 echo "$as_me: WARNING: --with-configdir called without argument - will use default" >&2;}
1363 configdir="$withval"
1365 esac
1368 #################################################
1369 # set log directory location
1371 # Check whether --with-logfilebase or --without-logfilebase was given.
1372 if test "${with_logfilebase+set}" = set; then
1373 withval="$with_logfilebase"
1374 case "$withval" in
1375 yes|no)
1377 # Just in case anybody does it
1379 { echo "$as_me:$LINENO: WARNING: --with-logfilebase called without argument - will use default" >&5
1380 echo "$as_me: WARNING: --with-logfilebase called without argument - will use default" >&2;}
1383 logfilebase="$withval"
1385 esac
1418 # compile with optimization and without debugging by default
1419 CFLAGS="-O ${CFLAGS}"
1421 # Check whether --enable-debug or --disable-debug was given.
1422 if test "${enable_debug+set}" = set; then
1423 enableval="$enable_debug"
1424 if eval "test x$enable_debug = xyes"; then
1425 CFLAGS="${CFLAGS} -g"
1429 # Check whether --enable-developer or --disable-developer was given.
1430 if test "${enable_developer+set}" = set; then
1431 enableval="$enable_developer"
1432 if eval "test x$enable_developer = xyes"; then
1433 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1437 # Check whether --enable-krb5developer or --disable-krb5developer was given.
1438 if test "${enable_krb5developer+set}" = set; then
1439 enableval="$enable_krb5developer"
1440 if eval "test x$enable_krb5developer = xyes"; then
1441 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1445 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1446 if test "${enable_dmalloc+set}" = set; then
1447 enableval="$enable_dmalloc"
1451 if test "x$enable_dmalloc" = xyes
1452 then
1454 cat >>confdefs.h <<\_ACEOF
1455 #define ENABLE_DMALLOC 1
1456 _ACEOF
1459 cat >>confdefs.h <<\_ACEOF
1460 #define DMALLOC_FUNC_CHECK 1
1461 _ACEOF
1463 LIBS="$LIBS -ldmalloc"
1466 ac_ext=c
1467 ac_cpp='$CPP $CPPFLAGS'
1468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1471 if test -n "$ac_tool_prefix"; then
1472 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1473 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1474 echo "$as_me:$LINENO: checking for $ac_word" >&5
1475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476 if test "${ac_cv_prog_CC+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 else
1479 if test -n "$CC"; then
1480 ac_cv_prog_CC="$CC" # Let the user override the test.
1481 else
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 for as_dir in $PATH
1485 IFS=$as_save_IFS
1486 test -z "$as_dir" && as_dir=.
1487 for ac_exec_ext in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491 break 2
1493 done
1494 done
1498 CC=$ac_cv_prog_CC
1499 if test -n "$CC"; then
1500 echo "$as_me:$LINENO: result: $CC" >&5
1501 echo "${ECHO_T}$CC" >&6
1502 else
1503 echo "$as_me:$LINENO: result: no" >&5
1504 echo "${ECHO_T}no" >&6
1508 if test -z "$ac_cv_prog_CC"; then
1509 ac_ct_CC=$CC
1510 # Extract the first word of "gcc", so it can be a program name with args.
1511 set dummy gcc; ac_word=$2
1512 echo "$as_me:$LINENO: checking for $ac_word" >&5
1513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1514 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1515 echo $ECHO_N "(cached) $ECHO_C" >&6
1516 else
1517 if test -n "$ac_ct_CC"; then
1518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1519 else
1520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521 for as_dir in $PATH
1523 IFS=$as_save_IFS
1524 test -z "$as_dir" && as_dir=.
1525 for ac_exec_ext in '' $ac_executable_extensions; do
1526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1527 ac_cv_prog_ac_ct_CC="gcc"
1528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1529 break 2
1531 done
1532 done
1536 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1537 if test -n "$ac_ct_CC"; then
1538 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1539 echo "${ECHO_T}$ac_ct_CC" >&6
1540 else
1541 echo "$as_me:$LINENO: result: no" >&5
1542 echo "${ECHO_T}no" >&6
1545 CC=$ac_ct_CC
1546 else
1547 CC="$ac_cv_prog_CC"
1550 if test -z "$CC"; then
1551 if test -n "$ac_tool_prefix"; then
1552 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1553 set dummy ${ac_tool_prefix}cc; ac_word=$2
1554 echo "$as_me:$LINENO: checking for $ac_word" >&5
1555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1556 if test "${ac_cv_prog_CC+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 else
1559 if test -n "$CC"; then
1560 ac_cv_prog_CC="$CC" # Let the user override the test.
1561 else
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563 for as_dir in $PATH
1565 IFS=$as_save_IFS
1566 test -z "$as_dir" && as_dir=.
1567 for ac_exec_ext in '' $ac_executable_extensions; do
1568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1569 ac_cv_prog_CC="${ac_tool_prefix}cc"
1570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1571 break 2
1573 done
1574 done
1578 CC=$ac_cv_prog_CC
1579 if test -n "$CC"; then
1580 echo "$as_me:$LINENO: result: $CC" >&5
1581 echo "${ECHO_T}$CC" >&6
1582 else
1583 echo "$as_me:$LINENO: result: no" >&5
1584 echo "${ECHO_T}no" >&6
1588 if test -z "$ac_cv_prog_CC"; then
1589 ac_ct_CC=$CC
1590 # Extract the first word of "cc", so it can be a program name with args.
1591 set dummy cc; ac_word=$2
1592 echo "$as_me:$LINENO: checking for $ac_word" >&5
1593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1594 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1595 echo $ECHO_N "(cached) $ECHO_C" >&6
1596 else
1597 if test -n "$ac_ct_CC"; then
1598 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1599 else
1600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601 for as_dir in $PATH
1603 IFS=$as_save_IFS
1604 test -z "$as_dir" && as_dir=.
1605 for ac_exec_ext in '' $ac_executable_extensions; do
1606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1607 ac_cv_prog_ac_ct_CC="cc"
1608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1609 break 2
1611 done
1612 done
1616 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1617 if test -n "$ac_ct_CC"; then
1618 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1619 echo "${ECHO_T}$ac_ct_CC" >&6
1620 else
1621 echo "$as_me:$LINENO: result: no" >&5
1622 echo "${ECHO_T}no" >&6
1625 CC=$ac_ct_CC
1626 else
1627 CC="$ac_cv_prog_CC"
1631 if test -z "$CC"; then
1632 # Extract the first word of "cc", so it can be a program name with args.
1633 set dummy cc; ac_word=$2
1634 echo "$as_me:$LINENO: checking for $ac_word" >&5
1635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1636 if test "${ac_cv_prog_CC+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 else
1639 if test -n "$CC"; then
1640 ac_cv_prog_CC="$CC" # Let the user override the test.
1641 else
1642 ac_prog_rejected=no
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644 for as_dir in $PATH
1646 IFS=$as_save_IFS
1647 test -z "$as_dir" && as_dir=.
1648 for ac_exec_ext in '' $ac_executable_extensions; do
1649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1651 ac_prog_rejected=yes
1652 continue
1654 ac_cv_prog_CC="cc"
1655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656 break 2
1658 done
1659 done
1661 if test $ac_prog_rejected = yes; then
1662 # We found a bogon in the path, so make sure we never use it.
1663 set dummy $ac_cv_prog_CC
1664 shift
1665 if test $# != 0; then
1666 # We chose a different compiler from the bogus one.
1667 # However, it has the same basename, so the bogon will be chosen
1668 # first if we set CC to just the basename; use the full file name.
1669 shift
1670 set dummy "$as_dir/$ac_word" ${1+"$@"}
1671 shift
1672 ac_cv_prog_CC="$@"
1677 CC=$ac_cv_prog_CC
1678 if test -n "$CC"; then
1679 echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1681 else
1682 echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1687 if test -z "$CC"; then
1688 if test -n "$ac_tool_prefix"; then
1689 for ac_prog in cl
1691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_CC+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1697 else
1698 if test -n "$CC"; then
1699 ac_cv_prog_CC="$CC" # Let the user override the test.
1700 else
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710 break 2
1712 done
1713 done
1717 CC=$ac_cv_prog_CC
1718 if test -n "$CC"; then
1719 echo "$as_me:$LINENO: result: $CC" >&5
1720 echo "${ECHO_T}$CC" >&6
1721 else
1722 echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1726 test -n "$CC" && break
1727 done
1729 if test -z "$CC"; then
1730 ac_ct_CC=$CC
1731 for ac_prog in cl
1733 # Extract the first word of "$ac_prog", so it can be a program name with args.
1734 set dummy $ac_prog; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740 if test -n "$ac_ct_CC"; then
1741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1746 IFS=$as_save_IFS
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_ac_ct_CC="$ac_prog"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752 break 2
1754 done
1755 done
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1763 else
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1768 test -n "$ac_ct_CC" && break
1769 done
1771 CC=$ac_ct_CC
1777 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1778 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1779 { (exit 1); exit 1; }; }
1781 # Provide some information about the compiler.
1782 echo "$as_me:$LINENO:" \
1783 "checking for C compiler version" >&5
1784 ac_compiler=`set X $ac_compile; echo $2`
1785 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1786 (eval $ac_compiler --version </dev/null >&5) 2>&5
1787 ac_status=$?
1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789 (exit $ac_status); }
1790 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1791 (eval $ac_compiler -v </dev/null >&5) 2>&5
1792 ac_status=$?
1793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794 (exit $ac_status); }
1795 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1796 (eval $ac_compiler -V </dev/null >&5) 2>&5
1797 ac_status=$?
1798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1799 (exit $ac_status); }
1801 cat >conftest.$ac_ext <<_ACEOF
1802 #line $LINENO "configure"
1803 #include "confdefs.h"
1805 #ifdef F77_DUMMY_MAIN
1806 # ifdef __cplusplus
1807 extern "C"
1808 # endif
1809 int F77_DUMMY_MAIN() { return 1; }
1810 #endif
1812 main ()
1816 return 0;
1818 _ACEOF
1819 ac_clean_files_save=$ac_clean_files
1820 ac_clean_files="$ac_clean_files a.out a.exe"
1821 # Try to create an executable without -o first, disregard a.out.
1822 # It will help us diagnose broken compilers, and finding out an intuition
1823 # of exeext.
1824 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1825 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1826 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1827 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1828 (eval $ac_link_default) 2>&5
1829 ac_status=$?
1830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1831 (exit $ac_status); }; then
1832 # Find the output, starting from the most likely. This scheme is
1833 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1834 # resort.
1836 # Be careful to initialize this variable, since it used to be cached.
1837 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1838 ac_cv_exeext=
1839 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1840 ls a.out conftest 2>/dev/null;
1841 ls a.* conftest.* 2>/dev/null`; do
1842 case $ac_file in
1843 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1844 a.out ) # We found the default executable, but exeext='' is most
1845 # certainly right.
1846 break;;
1847 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1848 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1849 export ac_cv_exeext
1850 break;;
1851 * ) break;;
1852 esac
1853 done
1854 else
1855 echo "$as_me: failed program was:" >&5
1856 cat conftest.$ac_ext >&5
1857 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1858 echo "$as_me: error: C compiler cannot create executables" >&2;}
1859 { (exit 77); exit 77; }; }
1862 ac_exeext=$ac_cv_exeext
1863 echo "$as_me:$LINENO: result: $ac_file" >&5
1864 echo "${ECHO_T}$ac_file" >&6
1866 # Check the compiler produces executables we can run. If not, either
1867 # the compiler is broken, or we cross compile.
1868 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1869 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1870 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1871 # If not cross compiling, check that we can run a simple program.
1872 if test "$cross_compiling" != yes; then
1873 if { ac_try='./$ac_file'
1874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1875 (eval $ac_try) 2>&5
1876 ac_status=$?
1877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1878 (exit $ac_status); }; }; then
1879 cross_compiling=no
1880 else
1881 if test "$cross_compiling" = maybe; then
1882 cross_compiling=yes
1883 else
1884 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1885 If you meant to cross compile, use \`--host'." >&5
1886 echo "$as_me: error: cannot run C compiled programs.
1887 If you meant to cross compile, use \`--host'." >&2;}
1888 { (exit 1); exit 1; }; }
1892 echo "$as_me:$LINENO: result: yes" >&5
1893 echo "${ECHO_T}yes" >&6
1895 rm -f a.out a.exe conftest$ac_cv_exeext
1896 ac_clean_files=$ac_clean_files_save
1897 # Check the compiler produces executables we can run. If not, either
1898 # the compiler is broken, or we cross compile.
1899 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1900 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1901 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1902 echo "${ECHO_T}$cross_compiling" >&6
1904 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1905 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1907 (eval $ac_link) 2>&5
1908 ac_status=$?
1909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1910 (exit $ac_status); }; then
1911 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1912 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1913 # work properly (i.e., refer to `conftest.exe'), while it won't with
1914 # `rm'.
1915 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1916 case $ac_file in
1917 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1918 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1919 export ac_cv_exeext
1920 break;;
1921 * ) break;;
1922 esac
1923 done
1924 else
1925 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1926 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1927 { (exit 1); exit 1; }; }
1930 rm -f conftest$ac_cv_exeext
1931 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1932 echo "${ECHO_T}$ac_cv_exeext" >&6
1934 rm -f conftest.$ac_ext
1935 EXEEXT=$ac_cv_exeext
1936 ac_exeext=$EXEEXT
1937 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1938 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1939 if test "${ac_cv_objext+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1941 else
1942 cat >conftest.$ac_ext <<_ACEOF
1943 #line $LINENO "configure"
1944 #include "confdefs.h"
1946 #ifdef F77_DUMMY_MAIN
1947 # ifdef __cplusplus
1948 extern "C"
1949 # endif
1950 int F77_DUMMY_MAIN() { return 1; }
1951 #endif
1953 main ()
1957 return 0;
1959 _ACEOF
1960 rm -f conftest.o conftest.obj
1961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1962 (eval $ac_compile) 2>&5
1963 ac_status=$?
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); }; then
1966 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1967 case $ac_file in
1968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1969 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1970 break;;
1971 esac
1972 done
1973 else
1974 echo "$as_me: failed program was:" >&5
1975 cat conftest.$ac_ext >&5
1976 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1977 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1978 { (exit 1); exit 1; }; }
1981 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1983 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1984 echo "${ECHO_T}$ac_cv_objext" >&6
1985 OBJEXT=$ac_cv_objext
1986 ac_objext=$OBJEXT
1987 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1988 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1989 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992 cat >conftest.$ac_ext <<_ACEOF
1993 #line $LINENO "configure"
1994 #include "confdefs.h"
1996 #ifdef F77_DUMMY_MAIN
1997 # ifdef __cplusplus
1998 extern "C"
1999 # endif
2000 int F77_DUMMY_MAIN() { return 1; }
2001 #endif
2003 main ()
2005 #ifndef __GNUC__
2006 choke me
2007 #endif
2010 return 0;
2012 _ACEOF
2013 rm -f conftest.$ac_objext
2014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2015 (eval $ac_compile) 2>&5
2016 ac_status=$?
2017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018 (exit $ac_status); } &&
2019 { ac_try='test -s conftest.$ac_objext'
2020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2021 (eval $ac_try) 2>&5
2022 ac_status=$?
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; }; then
2025 ac_compiler_gnu=yes
2026 else
2027 echo "$as_me: failed program was:" >&5
2028 cat conftest.$ac_ext >&5
2029 ac_compiler_gnu=no
2031 rm -f conftest.$ac_objext conftest.$ac_ext
2032 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2035 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2036 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2037 GCC=`test $ac_compiler_gnu = yes && echo yes`
2038 ac_test_CFLAGS=${CFLAGS+set}
2039 ac_save_CFLAGS=$CFLAGS
2040 CFLAGS="-g"
2041 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2042 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2043 if test "${ac_cv_prog_cc_g+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046 cat >conftest.$ac_ext <<_ACEOF
2047 #line $LINENO "configure"
2048 #include "confdefs.h"
2050 #ifdef F77_DUMMY_MAIN
2051 # ifdef __cplusplus
2052 extern "C"
2053 # endif
2054 int F77_DUMMY_MAIN() { return 1; }
2055 #endif
2057 main ()
2061 return 0;
2063 _ACEOF
2064 rm -f conftest.$ac_objext
2065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2066 (eval $ac_compile) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); } &&
2070 { ac_try='test -s conftest.$ac_objext'
2071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2072 (eval $ac_try) 2>&5
2073 ac_status=$?
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }; }; then
2076 ac_cv_prog_cc_g=yes
2077 else
2078 echo "$as_me: failed program was:" >&5
2079 cat conftest.$ac_ext >&5
2080 ac_cv_prog_cc_g=no
2082 rm -f conftest.$ac_objext conftest.$ac_ext
2084 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2085 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2086 if test "$ac_test_CFLAGS" = set; then
2087 CFLAGS=$ac_save_CFLAGS
2088 elif test $ac_cv_prog_cc_g = yes; then
2089 if test "$GCC" = yes; then
2090 CFLAGS="-g -O2"
2091 else
2092 CFLAGS="-g"
2094 else
2095 if test "$GCC" = yes; then
2096 CFLAGS="-O2"
2097 else
2098 CFLAGS=
2101 # Some people use a C++ compiler to compile C. Since we use `exit',
2102 # in C++ we need to declare it. In case someone uses the same compiler
2103 # for both compiling C and C++ we need to have the C++ compiler decide
2104 # the declaration of exit, since it's the most demanding environment.
2105 cat >conftest.$ac_ext <<_ACEOF
2106 #ifndef __cplusplus
2107 choke me
2108 #endif
2109 _ACEOF
2110 rm -f conftest.$ac_objext
2111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2112 (eval $ac_compile) 2>&5
2113 ac_status=$?
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); } &&
2116 { ac_try='test -s conftest.$ac_objext'
2117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2118 (eval $ac_try) 2>&5
2119 ac_status=$?
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; }; then
2122 for ac_declaration in \
2124 '#include <stdlib.h>' \
2125 'extern "C" void std::exit (int) throw (); using std::exit;' \
2126 'extern "C" void std::exit (int); using std::exit;' \
2127 'extern "C" void exit (int) throw ();' \
2128 'extern "C" void exit (int);' \
2129 'void exit (int);'
2131 cat >conftest.$ac_ext <<_ACEOF
2132 #line $LINENO "configure"
2133 #include "confdefs.h"
2134 #include <stdlib.h>
2135 $ac_declaration
2136 #ifdef F77_DUMMY_MAIN
2137 # ifdef __cplusplus
2138 extern "C"
2139 # endif
2140 int F77_DUMMY_MAIN() { return 1; }
2141 #endif
2143 main ()
2145 exit (42);
2147 return 0;
2149 _ACEOF
2150 rm -f conftest.$ac_objext
2151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2152 (eval $ac_compile) 2>&5
2153 ac_status=$?
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); } &&
2156 { ac_try='test -s conftest.$ac_objext'
2157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158 (eval $ac_try) 2>&5
2159 ac_status=$?
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; }; then
2163 else
2164 echo "$as_me: failed program was:" >&5
2165 cat conftest.$ac_ext >&5
2166 continue
2168 rm -f conftest.$ac_objext conftest.$ac_ext
2169 cat >conftest.$ac_ext <<_ACEOF
2170 #line $LINENO "configure"
2171 #include "confdefs.h"
2172 $ac_declaration
2173 #ifdef F77_DUMMY_MAIN
2174 # ifdef __cplusplus
2175 extern "C"
2176 # endif
2177 int F77_DUMMY_MAIN() { return 1; }
2178 #endif
2180 main ()
2182 exit (42);
2184 return 0;
2186 _ACEOF
2187 rm -f conftest.$ac_objext
2188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2189 (eval $ac_compile) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); } &&
2193 { ac_try='test -s conftest.$ac_objext'
2194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195 (eval $ac_try) 2>&5
2196 ac_status=$?
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; }; then
2199 break
2200 else
2201 echo "$as_me: failed program was:" >&5
2202 cat conftest.$ac_ext >&5
2204 rm -f conftest.$ac_objext conftest.$ac_ext
2205 done
2206 rm -f conftest*
2207 if test -n "$ac_declaration"; then
2208 echo '#ifdef __cplusplus' >>confdefs.h
2209 echo $ac_declaration >>confdefs.h
2210 echo '#endif' >>confdefs.h
2213 else
2214 echo "$as_me: failed program was:" >&5
2215 cat conftest.$ac_ext >&5
2217 rm -f conftest.$ac_objext conftest.$ac_ext
2218 ac_ext=c
2219 ac_cpp='$CPP $CPPFLAGS'
2220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2224 ac_aux_dir=
2225 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2226 if test -f $ac_dir/install-sh; then
2227 ac_aux_dir=$ac_dir
2228 ac_install_sh="$ac_aux_dir/install-sh -c"
2229 break
2230 elif test -f $ac_dir/install.sh; then
2231 ac_aux_dir=$ac_dir
2232 ac_install_sh="$ac_aux_dir/install.sh -c"
2233 break
2234 elif test -f $ac_dir/shtool; then
2235 ac_aux_dir=$ac_dir
2236 ac_install_sh="$ac_aux_dir/shtool install -c"
2237 break
2239 done
2240 if test -z "$ac_aux_dir"; then
2241 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2242 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2243 { (exit 1); exit 1; }; }
2245 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2246 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2247 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2249 # Find a good install program. We prefer a C program (faster),
2250 # so one script is as good as another. But avoid the broken or
2251 # incompatible versions:
2252 # SysV /etc/install, /usr/sbin/install
2253 # SunOS /usr/etc/install
2254 # IRIX /sbin/install
2255 # AIX /bin/install
2256 # AmigaOS /C/install, which installs bootblocks on floppy discs
2257 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2258 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2259 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2260 # ./install, which can be erroneously created by make from ./install.sh.
2261 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2262 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2263 if test -z "$INSTALL"; then
2264 if test "${ac_cv_path_install+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 else
2267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 for as_dir in $PATH
2270 IFS=$as_save_IFS
2271 test -z "$as_dir" && as_dir=.
2272 # Account for people who put trailing slashes in PATH elements.
2273 case $as_dir/ in
2274 ./ | .// | /cC/* | \
2275 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2276 /usr/ucb/* ) ;;
2278 # OSF1 and SCO ODT 3.0 have their own names for install.
2279 # Don't use installbsd from OSF since it installs stuff as root
2280 # by default.
2281 for ac_prog in ginstall scoinst install; do
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2284 if test $ac_prog = install &&
2285 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2286 # AIX install. It has an incompatible calling convention.
2288 elif test $ac_prog = install &&
2289 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2290 # program-specific install script used by HP pwplus--don't use.
2292 else
2293 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2294 break 3
2297 done
2298 done
2300 esac
2301 done
2305 if test "${ac_cv_path_install+set}" = set; then
2306 INSTALL=$ac_cv_path_install
2307 else
2308 # As a last resort, use the slow shell script. We don't cache a
2309 # path for INSTALL within a source directory, because that will
2310 # break other packages using the cache if that directory is
2311 # removed, or if the path is relative.
2312 INSTALL=$ac_install_sh
2315 echo "$as_me:$LINENO: result: $INSTALL" >&5
2316 echo "${ECHO_T}$INSTALL" >&6
2318 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2319 # It thinks the first close brace ends the variable substitution.
2320 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2322 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2324 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2326 for ac_prog in gawk mawk nawk awk
2328 # Extract the first word of "$ac_prog", so it can be a program name with args.
2329 set dummy $ac_prog; ac_word=$2
2330 echo "$as_me:$LINENO: checking for $ac_word" >&5
2331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2332 if test "${ac_cv_prog_AWK+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 else
2335 if test -n "$AWK"; then
2336 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2337 else
2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339 for as_dir in $PATH
2341 IFS=$as_save_IFS
2342 test -z "$as_dir" && as_dir=.
2343 for ac_exec_ext in '' $ac_executable_extensions; do
2344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2345 ac_cv_prog_AWK="$ac_prog"
2346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2347 break 2
2349 done
2350 done
2354 AWK=$ac_cv_prog_AWK
2355 if test -n "$AWK"; then
2356 echo "$as_me:$LINENO: result: $AWK" >&5
2357 echo "${ECHO_T}$AWK" >&6
2358 else
2359 echo "$as_me:$LINENO: result: no" >&5
2360 echo "${ECHO_T}no" >&6
2363 test -n "$AWK" && break
2364 done
2367 LD=ld
2368 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2369 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2370 if test "${ac_cv_prog_gnu_ld+set}" = set; then
2371 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 else
2373 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2374 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2375 ac_cv_prog_gnu_ld=yes
2376 else
2377 ac_cv_prog_gnu_ld=no
2380 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
2381 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
2385 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2386 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2387 if test "${ac_cv_search_strerror+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 else
2390 ac_func_search_save_LIBS=$LIBS
2391 ac_cv_search_strerror=no
2392 cat >conftest.$ac_ext <<_ACEOF
2393 #line $LINENO "configure"
2394 #include "confdefs.h"
2396 /* Override any gcc2 internal prototype to avoid an error. */
2397 #ifdef __cplusplus
2398 extern "C"
2399 #endif
2400 /* We use char because int might match the return type of a gcc2
2401 builtin and then its argument prototype would still apply. */
2402 char strerror ();
2403 #ifdef F77_DUMMY_MAIN
2404 # ifdef __cplusplus
2405 extern "C"
2406 # endif
2407 int F77_DUMMY_MAIN() { return 1; }
2408 #endif
2410 main ()
2412 strerror ();
2414 return 0;
2416 _ACEOF
2417 rm -f conftest.$ac_objext conftest$ac_exeext
2418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2419 (eval $ac_link) 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); } &&
2423 { ac_try='test -s conftest$ac_exeext'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425 (eval $ac_try) 2>&5
2426 ac_status=$?
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; }; then
2429 ac_cv_search_strerror="none required"
2430 else
2431 echo "$as_me: failed program was:" >&5
2432 cat conftest.$ac_ext >&5
2434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2435 if test "$ac_cv_search_strerror" = no; then
2436 for ac_lib in cposix; do
2437 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2438 cat >conftest.$ac_ext <<_ACEOF
2439 #line $LINENO "configure"
2440 #include "confdefs.h"
2442 /* Override any gcc2 internal prototype to avoid an error. */
2443 #ifdef __cplusplus
2444 extern "C"
2445 #endif
2446 /* We use char because int might match the return type of a gcc2
2447 builtin and then its argument prototype would still apply. */
2448 char strerror ();
2449 #ifdef F77_DUMMY_MAIN
2450 # ifdef __cplusplus
2451 extern "C"
2452 # endif
2453 int F77_DUMMY_MAIN() { return 1; }
2454 #endif
2456 main ()
2458 strerror ();
2460 return 0;
2462 _ACEOF
2463 rm -f conftest.$ac_objext conftest$ac_exeext
2464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2465 (eval $ac_link) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); } &&
2469 { ac_try='test -s conftest$ac_exeext'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 (eval $ac_try) 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2475 ac_cv_search_strerror="-l$ac_lib"
2476 break
2477 else
2478 echo "$as_me: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2482 done
2484 LIBS=$ac_func_search_save_LIBS
2486 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2487 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2488 if test "$ac_cv_search_strerror" != no; then
2489 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2496 if test "x$CC" != xcc; then
2497 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2498 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2499 else
2500 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2501 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2503 set dummy $CC; ac_cc=`echo $2 |
2504 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2505 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508 cat >conftest.$ac_ext <<_ACEOF
2509 #line $LINENO "configure"
2510 #include "confdefs.h"
2512 #ifdef F77_DUMMY_MAIN
2513 # ifdef __cplusplus
2514 extern "C"
2515 # endif
2516 int F77_DUMMY_MAIN() { return 1; }
2517 #endif
2519 main ()
2523 return 0;
2525 _ACEOF
2526 # Make sure it works both with $CC and with simple cc.
2527 # We do the test twice because some compilers refuse to overwrite an
2528 # existing .o file with -o, though they will create one.
2529 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2530 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531 (eval $ac_try) 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536 (eval $ac_try) 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); };
2540 then
2541 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2542 if test "x$CC" != xcc; then
2543 # Test first that cc exists at all.
2544 if { ac_try='cc -c conftest.$ac_ext >&5'
2545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 (eval $ac_try) 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; }; then
2550 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2551 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552 (eval $ac_try) 2>&5
2553 ac_status=$?
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); } &&
2556 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 (eval $ac_try) 2>&5
2558 ac_status=$?
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); };
2561 then
2562 # cc works too.
2564 else
2565 # cc exists but doesn't like -o.
2566 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2570 else
2571 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2573 rm -f conftest*
2576 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2577 echo "$as_me:$LINENO: result: yes" >&5
2578 echo "${ECHO_T}yes" >&6
2579 else
2580 echo "$as_me:$LINENO: result: no" >&5
2581 echo "${ECHO_T}no" >&6
2583 cat >>confdefs.h <<\_ACEOF
2584 #define NO_MINUS_C_MINUS_O 1
2585 _ACEOF
2589 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2590 BROKEN_CC=
2591 else
2592 BROKEN_CC=#
2596 echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
2597 echo $ECHO_N "checking that the C compiler understands volatile... $ECHO_C" >&6
2598 if test "${samba_cv_volatile+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2602 cat >conftest.$ac_ext <<_ACEOF
2603 #line $LINENO "configure"
2604 #include "confdefs.h"
2605 #include <sys/types.h>
2606 #ifdef F77_DUMMY_MAIN
2607 # ifdef __cplusplus
2608 extern "C"
2609 # endif
2610 int F77_DUMMY_MAIN() { return 1; }
2611 #endif
2613 main ()
2615 volatile int i = 0
2617 return 0;
2619 _ACEOF
2620 rm -f conftest.$ac_objext
2621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622 (eval $ac_compile) 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
2626 { ac_try='test -s conftest.$ac_objext'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 (eval $ac_try) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2632 samba_cv_volatile=yes
2633 else
2634 echo "$as_me: failed program was:" >&5
2635 cat conftest.$ac_ext >&5
2636 samba_cv_volatile=no
2638 rm -f conftest.$ac_objext conftest.$ac_ext
2640 echo "$as_me:$LINENO: result: $samba_cv_volatile" >&5
2641 echo "${ECHO_T}$samba_cv_volatile" >&6
2642 if test x"$samba_cv_volatile" = x"yes"; then
2644 cat >>confdefs.h <<\_ACEOF
2645 #define HAVE_VOLATILE 1
2646 _ACEOF
2651 # Make sure we can run config.sub.
2652 $ac_config_sub sun4 >/dev/null 2>&1 ||
2653 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2654 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2655 { (exit 1); exit 1; }; }
2657 echo "$as_me:$LINENO: checking build system type" >&5
2658 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2659 if test "${ac_cv_build+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2661 else
2662 ac_cv_build_alias=$build_alias
2663 test -z "$ac_cv_build_alias" &&
2664 ac_cv_build_alias=`$ac_config_guess`
2665 test -z "$ac_cv_build_alias" &&
2666 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2667 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2668 { (exit 1); exit 1; }; }
2669 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2670 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2671 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2672 { (exit 1); exit 1; }; }
2675 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2676 echo "${ECHO_T}$ac_cv_build" >&6
2677 build=$ac_cv_build
2678 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2679 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2680 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2683 echo "$as_me:$LINENO: checking host system type" >&5
2684 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2685 if test "${ac_cv_host+set}" = set; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 else
2688 ac_cv_host_alias=$host_alias
2689 test -z "$ac_cv_host_alias" &&
2690 ac_cv_host_alias=$ac_cv_build_alias
2691 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2692 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2693 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2694 { (exit 1); exit 1; }; }
2697 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2698 echo "${ECHO_T}$ac_cv_host" >&6
2699 host=$ac_cv_host
2700 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2701 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2702 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2705 echo "$as_me:$LINENO: checking target system type" >&5
2706 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2707 if test "${ac_cv_target+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710 ac_cv_target_alias=$target_alias
2711 test "x$ac_cv_target_alias" = "x" &&
2712 ac_cv_target_alias=$ac_cv_host_alias
2713 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2714 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2715 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2716 { (exit 1); exit 1; }; }
2719 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2720 echo "${ECHO_T}$ac_cv_target" >&6
2721 target=$ac_cv_target
2722 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2723 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2724 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2727 # The aliases save the names the user supplied, while $host etc.
2728 # will get canonicalized.
2729 test -n "$target_alias" &&
2730 test "$program_prefix$program_suffix$program_transform_name" = \
2731 NONENONEs,x,x, &&
2732 program_prefix=${target_alias}-
2734 case "$host_os" in
2735 *irix6*) cat >> confdefs.h <<\EOF
2736 #include <standards.h>
2740 esac
2744 echo "$as_me:$LINENO: checking config.cache system type" >&5
2745 echo $ECHO_N "checking config.cache system type... $ECHO_C" >&6
2746 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
2747 test x"$ac_cv_host_system_type" != x"$host"; } ||
2748 { test x"${ac_cv_build_system_type+set}" = x"set" &&
2749 test x"$ac_cv_build_system_type" != x"$build"; } ||
2750 { test x"${ac_cv_target_system_type+set}" = x"set" &&
2751 test x"$ac_cv_target_system_type" != x"$target"; }; then
2752 echo "$as_me:$LINENO: result: different" >&5
2753 echo "${ECHO_T}different" >&6
2754 { { echo "$as_me:$LINENO: error: \"you must remove config.cache and restart configure\"" >&5
2755 echo "$as_me: error: \"you must remove config.cache and restart configure\"" >&2;}
2756 { (exit 1); exit 1; }; }
2757 else
2758 echo "$as_me:$LINENO: result: same" >&5
2759 echo "${ECHO_T}same" >&6
2761 ac_cv_host_system_type="$host"
2762 ac_cv_build_system_type="$build"
2763 ac_cv_target_system_type="$target"
2766 DYNEXP=
2769 # Config CPPFLAG settings for strange OS's that must be set
2770 # before other tests.
2772 case "$host_os" in
2773 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
2774 *hpux*)
2776 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Ae" >&5
2777 echo $ECHO_N "checking whether ${CC-cc} accepts -Ae... $ECHO_C" >&6
2778 if test "${ac_cv_prog_cc_Ae+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 else
2781 echo 'void f(){}' > conftest.c
2782 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
2783 ac_cv_prog_cc_Ae=yes
2784 else
2785 ac_cv_prog_cc_Ae=no
2787 rm -f conftest*
2790 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_Ae" >&5
2791 echo "${ECHO_T}$ac_cv_prog_cc_Ae" >&6
2792 # mmap on HPUX is completely broken...
2794 cat >>confdefs.h <<\_ACEOF
2795 #define MMAP_BLACKLIST 1
2796 _ACEOF
2798 if test $ac_cv_prog_cc_Ae = yes; then
2799 CPPFLAGS="$CPPFLAGS -Ae"
2802 # Defines needed for HPUX support.
2803 # HPUX has bigcrypt but (sometimes?) doesn't use it for
2804 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
2806 case `uname -r` in
2807 *9*|*10*)
2808 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2810 cat >>confdefs.h <<\_ACEOF
2811 #define USE_BOTH_CRYPT_CALLS 1
2812 _ACEOF
2815 cat >>confdefs.h <<\_ACEOF
2816 #define _HPUX_SOURCE 1
2817 _ACEOF
2820 cat >>confdefs.h <<\_ACEOF
2821 #define _POSIX_SOURCE 1
2822 _ACEOF
2825 cat >>confdefs.h <<\_ACEOF
2826 #define _ALIGNMENT_REQUIRED 1
2827 _ACEOF
2830 cat >>confdefs.h <<\_ACEOF
2831 #define _MAX_ALIGNMENT 4
2832 _ACEOF
2835 *11*)
2836 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2838 cat >>confdefs.h <<\_ACEOF
2839 #define USE_BOTH_CRYPT_CALLS 1
2840 _ACEOF
2843 cat >>confdefs.h <<\_ACEOF
2844 #define _HPUX_SOURCE 1
2845 _ACEOF
2848 cat >>confdefs.h <<\_ACEOF
2849 #define _POSIX_SOURCE 1
2850 _ACEOF
2853 cat >>confdefs.h <<\_ACEOF
2854 #define _LARGEFILE64_SOURCE 1
2855 _ACEOF
2858 cat >>confdefs.h <<\_ACEOF
2859 #define _ALIGNMENT_REQUIRED 1
2860 _ACEOF
2863 cat >>confdefs.h <<\_ACEOF
2864 #define _MAX_ALIGNMENT 4
2865 _ACEOF
2868 esac
2869 DYNEXP="-Wl,-E"
2873 # CRAY Unicos has broken const handling
2874 *unicos*)
2875 echo "$as_me:$LINENO: result: disabling const" >&5
2876 echo "${ECHO_T}disabling const" >&6
2877 CPPFLAGS="$CPPFLAGS -Dconst="
2881 # AIX4.x doesn't even admit to having large
2882 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
2884 *aix4*)
2885 echo "$as_me:$LINENO: result: enabling large file support" >&5
2886 echo "${ECHO_T}enabling large file support" >&6
2887 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
2889 cat >>confdefs.h <<\_ACEOF
2890 #define _LARGE_FILES 1
2891 _ACEOF
2895 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
2896 # to the existance of large files..
2897 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
2898 # recommendations on large file support, however it makes the
2899 # compile work using gcc 2.7 and 2.8, whereas using the Sun
2900 # recommendation makes the compile fail on gcc2.7. JRA.
2902 *solaris*)
2903 case `uname -r` in
2904 5.0*|5.1*|5.2*|5.3*|5.5*)
2905 echo "$as_me:$LINENO: result: no large file support" >&5
2906 echo "${ECHO_T}no large file support" >&6
2908 5.*)
2909 echo "$as_me:$LINENO: result: enabling large file support" >&5
2910 echo "${ECHO_T}enabling large file support" >&6
2911 if test "$ac_cv_c_compiler_gnu" = yes; then
2912 ${CC-cc} -v >conftest.c 2>&1
2913 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
2914 rm -fr conftest.c
2915 case "$ac_cv_gcc_compiler_version_number" in
2916 *"gcc version 2.6"*|*"gcc version 2.7"*)
2917 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
2919 cat >>confdefs.h <<\_ACEOF
2920 #define _LARGEFILE64_SOURCE 1
2921 _ACEOF
2925 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2927 cat >>confdefs.h <<\_ACEOF
2928 #define _LARGEFILE64_SOURCE 1
2929 _ACEOF
2932 cat >>confdefs.h <<\_ACEOF
2933 #define _FILE_OFFSET_BITS 64
2934 _ACEOF
2937 esac
2938 else
2939 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2941 cat >>confdefs.h <<\_ACEOF
2942 #define _LARGEFILE64_SOURCE 1
2943 _ACEOF
2946 cat >>confdefs.h <<\_ACEOF
2947 #define _FILE_OFFSET_BITS 64
2948 _ACEOF
2952 esac
2955 # VOS may need to have POSIX support and System V compatibility enabled.
2957 *vos*)
2958 case "$CPPFLAGS" in
2959 *-D_POSIX_C_SOURCE*)
2962 CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=199506L"
2964 cat >>confdefs.h <<\_ACEOF
2965 #define _POSIX_C_SOURCE 199506L
2966 _ACEOF
2969 esac
2970 case "$CPPFLAGS" in
2971 *-D_SYSV*|*-D_SVID_SOURCE*)
2974 CPPFLAGS="$CPPFLAGS -D_SYSV"
2976 cat >>confdefs.h <<\_ACEOF
2977 #define _SYSV 1
2978 _ACEOF
2980 esac
2983 # Tests needed for SINIX large file support.
2985 *sysv4*)
2986 if test $host = mips-sni-sysv4 ; then
2987 echo "$as_me:$LINENO: checking for LFS support" >&5
2988 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
2989 old_CPPFLAGS="$CPPFLAGS"
2990 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
2991 if test "$cross_compiling" = yes; then
2992 SINIX_LFS_SUPPORT=cross
2993 else
2994 cat >conftest.$ac_ext <<_ACEOF
2995 #line $LINENO "configure"
2996 #include "confdefs.h"
2998 #include <unistd.h>
2999 main () {
3000 #if _LFS64_LARGEFILE == 1
3001 exit(0);
3002 #else
3003 exit(1);
3004 #endif
3006 _ACEOF
3007 rm -f conftest$ac_exeext
3008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3009 (eval $ac_link) 2>&5
3010 ac_status=$?
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3014 (eval $ac_try) 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; }; then
3018 SINIX_LFS_SUPPORT=yes
3019 else
3020 echo "$as_me: program exited with status $ac_status" >&5
3021 echo "$as_me: failed program was:" >&5
3022 cat conftest.$ac_ext >&5
3023 ( exit $ac_status )
3024 SINIX_LFS_SUPPORT=no
3026 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3028 CPPFLAGS="$old_CPPFLAGS"
3029 if test x$SINIX_LFS_SUPPORT = xyes ; then
3030 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
3032 cat >>confdefs.h <<\_ACEOF
3033 #define _LARGEFILE64_SOURCE 1
3034 _ACEOF
3036 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
3037 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
3038 LIBS="`getconf LFS64_LIBS` $LIBS"
3040 echo "$as_me:$LINENO: result: $SINIX_LFS_SUPPORT" >&5
3041 echo "${ECHO_T}$SINIX_LFS_SUPPORT" >&6
3045 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
3047 *linux*)
3048 echo "$as_me:$LINENO: checking for LFS support" >&5
3049 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3050 old_CPPFLAGS="$CPPFLAGS"
3051 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3052 if test "$cross_compiling" = yes; then
3053 LINUX_LFS_SUPPORT=cross
3054 else
3055 cat >conftest.$ac_ext <<_ACEOF
3056 #line $LINENO "configure"
3057 #include "confdefs.h"
3059 #include <unistd.h>
3060 #include <sys/utsname.h>
3061 main() {
3062 #if _LFS64_LARGEFILE == 1
3063 struct utsname uts;
3064 char *release;
3065 int major, minor;
3067 /* Ensure this is glibc 2.2 or higher */
3068 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
3069 int libc_major = __GLIBC__;
3070 int libc_minor = __GLIBC_MINOR__;
3072 if (libc_major < 2)
3073 exit(1);
3074 if (libc_minor < 2)
3075 exit(1);
3076 #endif
3078 /* Ensure this is kernel 2.4 or higher */
3080 uname(&uts);
3081 release = uts.release;
3082 major = atoi(strsep(&release, "."));
3083 minor = atoi(strsep(&release, "."));
3085 if (major > 2 || (major == 2 && minor > 3))
3086 exit(0);
3087 exit(1);
3088 #else
3089 exit(1);
3090 #endif
3093 _ACEOF
3094 rm -f conftest$ac_exeext
3095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3096 (eval $ac_link) 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 (eval $ac_try) 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; }; then
3105 LINUX_LFS_SUPPORT=yes
3106 else
3107 echo "$as_me: program exited with status $ac_status" >&5
3108 echo "$as_me: failed program was:" >&5
3109 cat conftest.$ac_ext >&5
3110 ( exit $ac_status )
3111 LINUX_LFS_SUPPORT=no
3113 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3115 CPPFLAGS="$old_CPPFLAGS"
3116 if test x$LINUX_LFS_SUPPORT = xyes ; then
3117 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3119 cat >>confdefs.h <<\_ACEOF
3120 #define _LARGEFILE64_SOURCE 1
3121 _ACEOF
3124 cat >>confdefs.h <<\_ACEOF
3125 #define _FILE_OFFSET_BITS 64
3126 _ACEOF
3129 cat >>confdefs.h <<\_ACEOF
3130 #define _GNU_SOURCE 1
3131 _ACEOF
3134 echo "$as_me:$LINENO: result: $LINUX_LFS_SUPPORT" >&5
3135 echo "${ECHO_T}$LINUX_LFS_SUPPORT" >&6
3138 *hurd*)
3139 echo "$as_me:$LINENO: checking for LFS support" >&5
3140 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3141 old_CPPFLAGS="$CPPFLAGS"
3142 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3143 if test "$cross_compiling" = yes; then
3144 GLIBC_LFS_SUPPORT=cross
3145 else
3146 cat >conftest.$ac_ext <<_ACEOF
3147 #line $LINENO "configure"
3148 #include "confdefs.h"
3150 #include <unistd.h>
3151 main () {
3152 #if _LFS64_LARGEFILE == 1
3153 exit(0);
3154 #else
3155 exit(1);
3156 #endif
3158 _ACEOF
3159 rm -f conftest$ac_exeext
3160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3161 (eval $ac_link) 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3166 (eval $ac_try) 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3170 GLIBC_LFS_SUPPORT=yes
3171 else
3172 echo "$as_me: program exited with status $ac_status" >&5
3173 echo "$as_me: failed program was:" >&5
3174 cat conftest.$ac_ext >&5
3175 ( exit $ac_status )
3176 GLIBC_LFS_SUPPORT=no
3178 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3180 CPPFLAGS="$old_CPPFLAGS"
3181 if test x$GLIBC_LFS_SUPPORT = xyes ; then
3182 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3184 cat >>confdefs.h <<\_ACEOF
3185 #define _LARGEFILE64_SOURCE 1
3186 _ACEOF
3189 cat >>confdefs.h <<\_ACEOF
3190 #define _GNU_SOURCE 1
3191 _ACEOF
3194 echo "$as_me:$LINENO: result: $GLIBC_LFS_SUPPORT" >&5
3195 echo "${ECHO_T}$GLIBC_LFS_SUPPORT" >&6
3198 esac
3200 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3201 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3202 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205 ac_cv_prog_cc_stdc=no
3206 ac_save_CC=$CC
3207 cat >conftest.$ac_ext <<_ACEOF
3208 #line $LINENO "configure"
3209 #include "confdefs.h"
3210 #include <stdarg.h>
3211 #include <stdio.h>
3212 #include <sys/types.h>
3213 #include <sys/stat.h>
3214 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3215 struct buf { int x; };
3216 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3217 static char *e (p, i)
3218 char **p;
3219 int i;
3221 return p[i];
3223 static char *f (char * (*g) (char **, int), char **p, ...)
3225 char *s;
3226 va_list v;
3227 va_start (v,p);
3228 s = g (p, va_arg (v,int));
3229 va_end (v);
3230 return s;
3232 int test (int i, double x);
3233 struct s1 {int (*f) (int a);};
3234 struct s2 {int (*f) (double a);};
3235 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3236 int argc;
3237 char **argv;
3238 #ifdef F77_DUMMY_MAIN
3239 # ifdef __cplusplus
3240 extern "C"
3241 # endif
3242 int F77_DUMMY_MAIN() { return 1; }
3243 #endif
3245 main ()
3247 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3249 return 0;
3251 _ACEOF
3252 # Don't try gcc -ansi; that turns off useful extensions and
3253 # breaks some systems' header files.
3254 # AIX -qlanglvl=ansi
3255 # Ultrix and OSF/1 -std1
3256 # HP-UX 10.20 and later -Ae
3257 # HP-UX older versions -Aa -D_HPUX_SOURCE
3258 # SVR4 -Xc -D__EXTENSIONS__
3259 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3261 CC="$ac_save_CC $ac_arg"
3262 rm -f conftest.$ac_objext
3263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3264 (eval $ac_compile) 2>&5
3265 ac_status=$?
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } &&
3268 { ac_try='test -s conftest.$ac_objext'
3269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270 (eval $ac_try) 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; }; then
3274 ac_cv_prog_cc_stdc=$ac_arg
3275 break
3276 else
3277 echo "$as_me: failed program was:" >&5
3278 cat conftest.$ac_ext >&5
3280 rm -f conftest.$ac_objext
3281 done
3282 rm -f conftest.$ac_ext conftest.$ac_objext
3283 CC=$ac_save_CC
3287 case "x$ac_cv_prog_cc_stdc" in
3288 x|xno)
3289 echo "$as_me:$LINENO: result: none needed" >&5
3290 echo "${ECHO_T}none needed" >&6 ;;
3292 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3293 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3294 CC="$CC $ac_cv_prog_cc_stdc" ;;
3295 esac
3297 echo "$as_me:$LINENO: checking for inline" >&5
3298 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3299 if test "${ac_cv_c_inline+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 else
3302 ac_cv_c_inline=no
3303 for ac_kw in inline __inline__ __inline; do
3304 cat >conftest.$ac_ext <<_ACEOF
3305 #line $LINENO "configure"
3306 #include "confdefs.h"
3307 #ifndef __cplusplus
3308 static $ac_kw int static_foo () {return 0; }
3309 $ac_kw int foo () {return 0; }
3310 #endif
3312 _ACEOF
3313 rm -f conftest.$ac_objext
3314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3315 (eval $ac_compile) 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } &&
3319 { ac_try='test -s conftest.$ac_objext'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 (eval $ac_try) 2>&5
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; }; then
3325 ac_cv_c_inline=$ac_kw; break
3326 else
3327 echo "$as_me: failed program was:" >&5
3328 cat conftest.$ac_ext >&5
3330 rm -f conftest.$ac_objext conftest.$ac_ext
3331 done
3334 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3335 echo "${ECHO_T}$ac_cv_c_inline" >&6
3336 case $ac_cv_c_inline in
3337 inline | yes) ;;
3339 cat >>confdefs.h <<\_ACEOF
3340 #define inline
3341 _ACEOF
3343 *) cat >>confdefs.h <<_ACEOF
3344 #define inline $ac_cv_c_inline
3345 _ACEOF
3347 esac
3349 ac_ext=c
3350 ac_cpp='$CPP $CPPFLAGS'
3351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3354 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3355 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3356 # On Suns, sometimes $CPP names a directory.
3357 if test -n "$CPP" && test -d "$CPP"; then
3358 CPP=
3360 if test -z "$CPP"; then
3361 if test "${ac_cv_prog_CPP+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364 # Double quotes because CPP needs to be expanded
3365 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3367 ac_preproc_ok=false
3368 for ac_c_preproc_warn_flag in '' yes
3370 # Use a header file that comes with gcc, so configuring glibc
3371 # with a fresh cross-compiler works.
3372 # On the NeXT, cc -E runs the code through the compiler's parser,
3373 # not just through cpp. "Syntax error" is here to catch this case.
3374 cat >conftest.$ac_ext <<_ACEOF
3375 #line $LINENO "configure"
3376 #include "confdefs.h"
3377 #include <assert.h>
3378 Syntax error
3379 _ACEOF
3380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3382 ac_status=$?
3383 egrep -v '^ *\+' conftest.er1 >conftest.err
3384 rm -f conftest.er1
3385 cat conftest.err >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } >/dev/null; then
3388 if test -s conftest.err; then
3389 ac_cpp_err=$ac_c_preproc_warn_flag
3390 else
3391 ac_cpp_err=
3393 else
3394 ac_cpp_err=yes
3396 if test -z "$ac_cpp_err"; then
3398 else
3399 echo "$as_me: failed program was:" >&5
3400 cat conftest.$ac_ext >&5
3401 # Broken: fails on valid input.
3402 continue
3404 rm -f conftest.err conftest.$ac_ext
3406 # OK, works on sane cases. Now check whether non-existent headers
3407 # can be detected and how.
3408 cat >conftest.$ac_ext <<_ACEOF
3409 #line $LINENO "configure"
3410 #include "confdefs.h"
3411 #include <ac_nonexistent.h>
3412 _ACEOF
3413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3415 ac_status=$?
3416 egrep -v '^ *\+' conftest.er1 >conftest.err
3417 rm -f conftest.er1
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } >/dev/null; then
3421 if test -s conftest.err; then
3422 ac_cpp_err=$ac_c_preproc_warn_flag
3423 else
3424 ac_cpp_err=
3426 else
3427 ac_cpp_err=yes
3429 if test -z "$ac_cpp_err"; then
3430 # Broken: success on invalid input.
3431 continue
3432 else
3433 echo "$as_me: failed program was:" >&5
3434 cat conftest.$ac_ext >&5
3435 # Passes both tests.
3436 ac_preproc_ok=:
3437 break
3439 rm -f conftest.err conftest.$ac_ext
3441 done
3442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3443 rm -f conftest.err conftest.$ac_ext
3444 if $ac_preproc_ok; then
3445 break
3448 done
3449 ac_cv_prog_CPP=$CPP
3452 CPP=$ac_cv_prog_CPP
3453 else
3454 ac_cv_prog_CPP=$CPP
3456 echo "$as_me:$LINENO: result: $CPP" >&5
3457 echo "${ECHO_T}$CPP" >&6
3458 ac_preproc_ok=false
3459 for ac_c_preproc_warn_flag in '' yes
3461 # Use a header file that comes with gcc, so configuring glibc
3462 # with a fresh cross-compiler works.
3463 # On the NeXT, cc -E runs the code through the compiler's parser,
3464 # not just through cpp. "Syntax error" is here to catch this case.
3465 cat >conftest.$ac_ext <<_ACEOF
3466 #line $LINENO "configure"
3467 #include "confdefs.h"
3468 #include <assert.h>
3469 Syntax error
3470 _ACEOF
3471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3473 ac_status=$?
3474 egrep -v '^ *\+' conftest.er1 >conftest.err
3475 rm -f conftest.er1
3476 cat conftest.err >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } >/dev/null; then
3479 if test -s conftest.err; then
3480 ac_cpp_err=$ac_c_preproc_warn_flag
3481 else
3482 ac_cpp_err=
3484 else
3485 ac_cpp_err=yes
3487 if test -z "$ac_cpp_err"; then
3489 else
3490 echo "$as_me: failed program was:" >&5
3491 cat conftest.$ac_ext >&5
3492 # Broken: fails on valid input.
3493 continue
3495 rm -f conftest.err conftest.$ac_ext
3497 # OK, works on sane cases. Now check whether non-existent headers
3498 # can be detected and how.
3499 cat >conftest.$ac_ext <<_ACEOF
3500 #line $LINENO "configure"
3501 #include "confdefs.h"
3502 #include <ac_nonexistent.h>
3503 _ACEOF
3504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3506 ac_status=$?
3507 egrep -v '^ *\+' conftest.er1 >conftest.err
3508 rm -f conftest.er1
3509 cat conftest.err >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } >/dev/null; then
3512 if test -s conftest.err; then
3513 ac_cpp_err=$ac_c_preproc_warn_flag
3514 else
3515 ac_cpp_err=
3517 else
3518 ac_cpp_err=yes
3520 if test -z "$ac_cpp_err"; then
3521 # Broken: success on invalid input.
3522 continue
3523 else
3524 echo "$as_me: failed program was:" >&5
3525 cat conftest.$ac_ext >&5
3526 # Passes both tests.
3527 ac_preproc_ok=:
3528 break
3530 rm -f conftest.err conftest.$ac_ext
3532 done
3533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3534 rm -f conftest.err conftest.$ac_ext
3535 if $ac_preproc_ok; then
3537 else
3538 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3539 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3540 { (exit 1); exit 1; }; }
3543 ac_ext=c
3544 ac_cpp='$CPP $CPPFLAGS'
3545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3551 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3552 if test "${ac_cv_header_stdc+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555 cat >conftest.$ac_ext <<_ACEOF
3556 #line $LINENO "configure"
3557 #include "confdefs.h"
3558 #include <stdlib.h>
3559 #include <stdarg.h>
3560 #include <string.h>
3561 #include <float.h>
3563 _ACEOF
3564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3566 ac_status=$?
3567 egrep -v '^ *\+' conftest.er1 >conftest.err
3568 rm -f conftest.er1
3569 cat conftest.err >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); } >/dev/null; then
3572 if test -s conftest.err; then
3573 ac_cpp_err=$ac_c_preproc_warn_flag
3574 else
3575 ac_cpp_err=
3577 else
3578 ac_cpp_err=yes
3580 if test -z "$ac_cpp_err"; then
3581 ac_cv_header_stdc=yes
3582 else
3583 echo "$as_me: failed program was:" >&5
3584 cat conftest.$ac_ext >&5
3585 ac_cv_header_stdc=no
3587 rm -f conftest.err conftest.$ac_ext
3589 if test $ac_cv_header_stdc = yes; then
3590 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3591 cat >conftest.$ac_ext <<_ACEOF
3592 #line $LINENO "configure"
3593 #include "confdefs.h"
3594 #include <string.h>
3596 _ACEOF
3597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3598 egrep "memchr" >/dev/null 2>&1; then
3600 else
3601 ac_cv_header_stdc=no
3603 rm -f conftest*
3607 if test $ac_cv_header_stdc = yes; then
3608 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3609 cat >conftest.$ac_ext <<_ACEOF
3610 #line $LINENO "configure"
3611 #include "confdefs.h"
3612 #include <stdlib.h>
3614 _ACEOF
3615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3616 egrep "free" >/dev/null 2>&1; then
3618 else
3619 ac_cv_header_stdc=no
3621 rm -f conftest*
3625 if test $ac_cv_header_stdc = yes; then
3626 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3627 if test "$cross_compiling" = yes; then
3629 else
3630 cat >conftest.$ac_ext <<_ACEOF
3631 #line $LINENO "configure"
3632 #include "confdefs.h"
3633 #include <ctype.h>
3634 #if ((' ' & 0x0FF) == 0x020)
3635 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3636 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3637 #else
3638 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3639 || ('j' <= (c) && (c) <= 'r') \
3640 || ('s' <= (c) && (c) <= 'z'))
3641 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3642 #endif
3644 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3646 main ()
3648 int i;
3649 for (i = 0; i < 256; i++)
3650 if (XOR (islower (i), ISLOWER (i))
3651 || toupper (i) != TOUPPER (i))
3652 exit(2);
3653 exit (0);
3655 _ACEOF
3656 rm -f conftest$ac_exeext
3657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3658 (eval $ac_link) 2>&5
3659 ac_status=$?
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 (eval $ac_try) 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; }; then
3668 else
3669 echo "$as_me: program exited with status $ac_status" >&5
3670 echo "$as_me: failed program was:" >&5
3671 cat conftest.$ac_ext >&5
3672 ( exit $ac_status )
3673 ac_cv_header_stdc=no
3675 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3679 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3680 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3681 if test $ac_cv_header_stdc = yes; then
3683 cat >>confdefs.h <<\_ACEOF
3684 #define STDC_HEADERS 1
3685 _ACEOF
3694 ac_header_dirent=no
3695 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3696 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3697 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3698 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 else
3702 cat >conftest.$ac_ext <<_ACEOF
3703 #line $LINENO "configure"
3704 #include "confdefs.h"
3705 #include <sys/types.h>
3706 #include <$ac_hdr>
3708 #ifdef F77_DUMMY_MAIN
3709 # ifdef __cplusplus
3710 extern "C"
3711 # endif
3712 int F77_DUMMY_MAIN() { return 1; }
3713 #endif
3715 main ()
3717 if ((DIR *) 0)
3718 return 0;
3720 return 0;
3722 _ACEOF
3723 rm -f conftest.$ac_objext
3724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3725 (eval $ac_compile) 2>&5
3726 ac_status=$?
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } &&
3729 { ac_try='test -s conftest.$ac_objext'
3730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731 (eval $ac_try) 2>&5
3732 ac_status=$?
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; }; then
3735 eval "$as_ac_Header=yes"
3736 else
3737 echo "$as_me: failed program was:" >&5
3738 cat conftest.$ac_ext >&5
3739 eval "$as_ac_Header=no"
3741 rm -f conftest.$ac_objext conftest.$ac_ext
3743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3746 cat >>confdefs.h <<_ACEOF
3747 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3748 _ACEOF
3750 ac_header_dirent=$ac_hdr; break
3753 done
3754 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3755 if test $ac_header_dirent = dirent.h; then
3756 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3757 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3758 if test "${ac_cv_search_opendir+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761 ac_func_search_save_LIBS=$LIBS
3762 ac_cv_search_opendir=no
3763 cat >conftest.$ac_ext <<_ACEOF
3764 #line $LINENO "configure"
3765 #include "confdefs.h"
3767 /* Override any gcc2 internal prototype to avoid an error. */
3768 #ifdef __cplusplus
3769 extern "C"
3770 #endif
3771 /* We use char because int might match the return type of a gcc2
3772 builtin and then its argument prototype would still apply. */
3773 char opendir ();
3774 #ifdef F77_DUMMY_MAIN
3775 # ifdef __cplusplus
3776 extern "C"
3777 # endif
3778 int F77_DUMMY_MAIN() { return 1; }
3779 #endif
3781 main ()
3783 opendir ();
3785 return 0;
3787 _ACEOF
3788 rm -f conftest.$ac_objext conftest$ac_exeext
3789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3790 (eval $ac_link) 2>&5
3791 ac_status=$?
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -s conftest$ac_exeext'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 (eval $ac_try) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3800 ac_cv_search_opendir="none required"
3801 else
3802 echo "$as_me: failed program was:" >&5
3803 cat conftest.$ac_ext >&5
3805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3806 if test "$ac_cv_search_opendir" = no; then
3807 for ac_lib in dir; do
3808 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3809 cat >conftest.$ac_ext <<_ACEOF
3810 #line $LINENO "configure"
3811 #include "confdefs.h"
3813 /* Override any gcc2 internal prototype to avoid an error. */
3814 #ifdef __cplusplus
3815 extern "C"
3816 #endif
3817 /* We use char because int might match the return type of a gcc2
3818 builtin and then its argument prototype would still apply. */
3819 char opendir ();
3820 #ifdef F77_DUMMY_MAIN
3821 # ifdef __cplusplus
3822 extern "C"
3823 # endif
3824 int F77_DUMMY_MAIN() { return 1; }
3825 #endif
3827 main ()
3829 opendir ();
3831 return 0;
3833 _ACEOF
3834 rm -f conftest.$ac_objext conftest$ac_exeext
3835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3836 (eval $ac_link) 2>&5
3837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } &&
3840 { ac_try='test -s conftest$ac_exeext'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 (eval $ac_try) 2>&5
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; }; then
3846 ac_cv_search_opendir="-l$ac_lib"
3847 break
3848 else
3849 echo "$as_me: failed program was:" >&5
3850 cat conftest.$ac_ext >&5
3852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3853 done
3855 LIBS=$ac_func_search_save_LIBS
3857 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3858 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3859 if test "$ac_cv_search_opendir" != no; then
3860 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3864 else
3865 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3866 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3867 if test "${ac_cv_search_opendir+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870 ac_func_search_save_LIBS=$LIBS
3871 ac_cv_search_opendir=no
3872 cat >conftest.$ac_ext <<_ACEOF
3873 #line $LINENO "configure"
3874 #include "confdefs.h"
3876 /* Override any gcc2 internal prototype to avoid an error. */
3877 #ifdef __cplusplus
3878 extern "C"
3879 #endif
3880 /* We use char because int might match the return type of a gcc2
3881 builtin and then its argument prototype would still apply. */
3882 char opendir ();
3883 #ifdef F77_DUMMY_MAIN
3884 # ifdef __cplusplus
3885 extern "C"
3886 # endif
3887 int F77_DUMMY_MAIN() { return 1; }
3888 #endif
3890 main ()
3892 opendir ();
3894 return 0;
3896 _ACEOF
3897 rm -f conftest.$ac_objext conftest$ac_exeext
3898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3899 (eval $ac_link) 2>&5
3900 ac_status=$?
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } &&
3903 { ac_try='test -s conftest$ac_exeext'
3904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905 (eval $ac_try) 2>&5
3906 ac_status=$?
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
3909 ac_cv_search_opendir="none required"
3910 else
3911 echo "$as_me: failed program was:" >&5
3912 cat conftest.$ac_ext >&5
3914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3915 if test "$ac_cv_search_opendir" = no; then
3916 for ac_lib in x; do
3917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3918 cat >conftest.$ac_ext <<_ACEOF
3919 #line $LINENO "configure"
3920 #include "confdefs.h"
3922 /* Override any gcc2 internal prototype to avoid an error. */
3923 #ifdef __cplusplus
3924 extern "C"
3925 #endif
3926 /* We use char because int might match the return type of a gcc2
3927 builtin and then its argument prototype would still apply. */
3928 char opendir ();
3929 #ifdef F77_DUMMY_MAIN
3930 # ifdef __cplusplus
3931 extern "C"
3932 # endif
3933 int F77_DUMMY_MAIN() { return 1; }
3934 #endif
3936 main ()
3938 opendir ();
3940 return 0;
3942 _ACEOF
3943 rm -f conftest.$ac_objext conftest$ac_exeext
3944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3945 (eval $ac_link) 2>&5
3946 ac_status=$?
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } &&
3949 { ac_try='test -s conftest$ac_exeext'
3950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951 (eval $ac_try) 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; }; then
3955 ac_cv_search_opendir="-l$ac_lib"
3956 break
3957 else
3958 echo "$as_me: failed program was:" >&5
3959 cat conftest.$ac_ext >&5
3961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3962 done
3964 LIBS=$ac_func_search_save_LIBS
3966 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3967 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3968 if test "$ac_cv_search_opendir" != no; then
3969 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3975 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3976 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3977 if test "${ac_cv_header_time+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3980 cat >conftest.$ac_ext <<_ACEOF
3981 #line $LINENO "configure"
3982 #include "confdefs.h"
3983 #include <sys/types.h>
3984 #include <sys/time.h>
3985 #include <time.h>
3987 #ifdef F77_DUMMY_MAIN
3988 # ifdef __cplusplus
3989 extern "C"
3990 # endif
3991 int F77_DUMMY_MAIN() { return 1; }
3992 #endif
3994 main ()
3996 if ((struct tm *) 0)
3997 return 0;
3999 return 0;
4001 _ACEOF
4002 rm -f conftest.$ac_objext
4003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4004 (eval $ac_compile) 2>&5
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } &&
4008 { ac_try='test -s conftest.$ac_objext'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010 (eval $ac_try) 2>&5
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
4014 ac_cv_header_time=yes
4015 else
4016 echo "$as_me: failed program was:" >&5
4017 cat conftest.$ac_ext >&5
4018 ac_cv_header_time=no
4020 rm -f conftest.$ac_objext conftest.$ac_ext
4022 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4023 echo "${ECHO_T}$ac_cv_header_time" >&6
4024 if test $ac_cv_header_time = yes; then
4026 cat >>confdefs.h <<\_ACEOF
4027 #define TIME_WITH_SYS_TIME 1
4028 _ACEOF
4032 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4033 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4034 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037 cat >conftest.$ac_ext <<_ACEOF
4038 #line $LINENO "configure"
4039 #include "confdefs.h"
4040 #include <sys/types.h>
4041 #include <sys/wait.h>
4042 #ifndef WEXITSTATUS
4043 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4044 #endif
4045 #ifndef WIFEXITED
4046 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4047 #endif
4049 #ifdef F77_DUMMY_MAIN
4050 # ifdef __cplusplus
4051 extern "C"
4052 # endif
4053 int F77_DUMMY_MAIN() { return 1; }
4054 #endif
4056 main ()
4058 int s;
4059 wait (&s);
4060 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4062 return 0;
4064 _ACEOF
4065 rm -f conftest.$ac_objext
4066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4067 (eval $ac_compile) 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } &&
4071 { ac_try='test -s conftest.$ac_objext'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 (eval $ac_try) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; }; then
4077 ac_cv_header_sys_wait_h=yes
4078 else
4079 echo "$as_me: failed program was:" >&5
4080 cat conftest.$ac_ext >&5
4081 ac_cv_header_sys_wait_h=no
4083 rm -f conftest.$ac_objext conftest.$ac_ext
4085 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4086 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4087 if test $ac_cv_header_sys_wait_h = yes; then
4089 cat >>confdefs.h <<\_ACEOF
4090 #define HAVE_SYS_WAIT_H 1
4091 _ACEOF
4095 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4105 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4106 inttypes.h stdint.h unistd.h
4108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4109 echo "$as_me:$LINENO: checking for $ac_header" >&5
4110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114 cat >conftest.$ac_ext <<_ACEOF
4115 #line $LINENO "configure"
4116 #include "confdefs.h"
4117 $ac_includes_default
4119 #include <$ac_header>
4120 _ACEOF
4121 rm -f conftest.$ac_objext
4122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4123 (eval $ac_compile) 2>&5
4124 ac_status=$?
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } &&
4127 { ac_try='test -s conftest.$ac_objext'
4128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129 (eval $ac_try) 2>&5
4130 ac_status=$?
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; }; then
4133 eval "$as_ac_Header=yes"
4134 else
4135 echo "$as_me: failed program was:" >&5
4136 cat conftest.$ac_ext >&5
4137 eval "$as_ac_Header=no"
4139 rm -f conftest.$ac_objext conftest.$ac_ext
4141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4144 cat >>confdefs.h <<_ACEOF
4145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4146 _ACEOF
4150 done
4159 for ac_header in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
4161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4163 echo "$as_me:$LINENO: checking for $ac_header" >&5
4164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4170 else
4171 # Is the header compilable?
4172 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4174 cat >conftest.$ac_ext <<_ACEOF
4175 #line $LINENO "configure"
4176 #include "confdefs.h"
4177 $ac_includes_default
4178 #include <$ac_header>
4179 _ACEOF
4180 rm -f conftest.$ac_objext
4181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4182 (eval $ac_compile) 2>&5
4183 ac_status=$?
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); } &&
4186 { ac_try='test -s conftest.$ac_objext'
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 (eval $ac_try) 2>&5
4189 ac_status=$?
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; }; then
4192 ac_header_compiler=yes
4193 else
4194 echo "$as_me: failed program was:" >&5
4195 cat conftest.$ac_ext >&5
4196 ac_header_compiler=no
4198 rm -f conftest.$ac_objext conftest.$ac_ext
4199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4200 echo "${ECHO_T}$ac_header_compiler" >&6
4202 # Is the header present?
4203 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4205 cat >conftest.$ac_ext <<_ACEOF
4206 #line $LINENO "configure"
4207 #include "confdefs.h"
4208 #include <$ac_header>
4209 _ACEOF
4210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4212 ac_status=$?
4213 egrep -v '^ *\+' conftest.er1 >conftest.err
4214 rm -f conftest.er1
4215 cat conftest.err >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } >/dev/null; then
4218 if test -s conftest.err; then
4219 ac_cpp_err=$ac_c_preproc_warn_flag
4220 else
4221 ac_cpp_err=
4223 else
4224 ac_cpp_err=yes
4226 if test -z "$ac_cpp_err"; then
4227 ac_header_preproc=yes
4228 else
4229 echo "$as_me: failed program was:" >&5
4230 cat conftest.$ac_ext >&5
4231 ac_header_preproc=no
4233 rm -f conftest.err conftest.$ac_ext
4234 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4235 echo "${ECHO_T}$ac_header_preproc" >&6
4237 # So? What about this header?
4238 case $ac_header_compiler:$ac_header_preproc in
4239 yes:no )
4240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4244 no:yes )
4245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4250 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4251 esac
4252 echo "$as_me:$LINENO: checking for $ac_header" >&5
4253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 else
4257 eval "$as_ac_Header=$ac_header_preproc"
4259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4264 cat >>confdefs.h <<_ACEOF
4265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4266 _ACEOF
4270 done
4279 for ac_header in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
4281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4283 echo "$as_me:$LINENO: checking for $ac_header" >&5
4284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4290 else
4291 # Is the header compilable?
4292 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4293 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4294 cat >conftest.$ac_ext <<_ACEOF
4295 #line $LINENO "configure"
4296 #include "confdefs.h"
4297 $ac_includes_default
4298 #include <$ac_header>
4299 _ACEOF
4300 rm -f conftest.$ac_objext
4301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4302 (eval $ac_compile) 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } &&
4306 { ac_try='test -s conftest.$ac_objext'
4307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308 (eval $ac_try) 2>&5
4309 ac_status=$?
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4312 ac_header_compiler=yes
4313 else
4314 echo "$as_me: failed program was:" >&5
4315 cat conftest.$ac_ext >&5
4316 ac_header_compiler=no
4318 rm -f conftest.$ac_objext conftest.$ac_ext
4319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4320 echo "${ECHO_T}$ac_header_compiler" >&6
4322 # Is the header present?
4323 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4325 cat >conftest.$ac_ext <<_ACEOF
4326 #line $LINENO "configure"
4327 #include "confdefs.h"
4328 #include <$ac_header>
4329 _ACEOF
4330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4332 ac_status=$?
4333 egrep -v '^ *\+' conftest.er1 >conftest.err
4334 rm -f conftest.er1
4335 cat conftest.err >&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } >/dev/null; then
4338 if test -s conftest.err; then
4339 ac_cpp_err=$ac_c_preproc_warn_flag
4340 else
4341 ac_cpp_err=
4343 else
4344 ac_cpp_err=yes
4346 if test -z "$ac_cpp_err"; then
4347 ac_header_preproc=yes
4348 else
4349 echo "$as_me: failed program was:" >&5
4350 cat conftest.$ac_ext >&5
4351 ac_header_preproc=no
4353 rm -f conftest.err conftest.$ac_ext
4354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4355 echo "${ECHO_T}$ac_header_preproc" >&6
4357 # So? What about this header?
4358 case $ac_header_compiler:$ac_header_preproc in
4359 yes:no )
4360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4364 no:yes )
4365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4368 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4371 esac
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
4376 else
4377 eval "$as_ac_Header=$ac_header_preproc"
4379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4384 cat >>confdefs.h <<_ACEOF
4385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4386 _ACEOF
4390 done
4397 for ac_header in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
4399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4401 echo "$as_me:$LINENO: checking for $ac_header" >&5
4402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4408 else
4409 # Is the header compilable?
4410 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4412 cat >conftest.$ac_ext <<_ACEOF
4413 #line $LINENO "configure"
4414 #include "confdefs.h"
4415 $ac_includes_default
4416 #include <$ac_header>
4417 _ACEOF
4418 rm -f conftest.$ac_objext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } &&
4424 { ac_try='test -s conftest.$ac_objext'
4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 (eval $ac_try) 2>&5
4427 ac_status=$?
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }; }; then
4430 ac_header_compiler=yes
4431 else
4432 echo "$as_me: failed program was:" >&5
4433 cat conftest.$ac_ext >&5
4434 ac_header_compiler=no
4436 rm -f conftest.$ac_objext conftest.$ac_ext
4437 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4438 echo "${ECHO_T}$ac_header_compiler" >&6
4440 # Is the header present?
4441 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4443 cat >conftest.$ac_ext <<_ACEOF
4444 #line $LINENO "configure"
4445 #include "confdefs.h"
4446 #include <$ac_header>
4447 _ACEOF
4448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4450 ac_status=$?
4451 egrep -v '^ *\+' conftest.er1 >conftest.err
4452 rm -f conftest.er1
4453 cat conftest.err >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); } >/dev/null; then
4456 if test -s conftest.err; then
4457 ac_cpp_err=$ac_c_preproc_warn_flag
4458 else
4459 ac_cpp_err=
4461 else
4462 ac_cpp_err=yes
4464 if test -z "$ac_cpp_err"; then
4465 ac_header_preproc=yes
4466 else
4467 echo "$as_me: failed program was:" >&5
4468 cat conftest.$ac_ext >&5
4469 ac_header_preproc=no
4471 rm -f conftest.err conftest.$ac_ext
4472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4473 echo "${ECHO_T}$ac_header_preproc" >&6
4475 # So? What about this header?
4476 case $ac_header_compiler:$ac_header_preproc in
4477 yes:no )
4478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4482 no:yes )
4483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4489 esac
4490 echo "$as_me:$LINENO: checking for $ac_header" >&5
4491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495 eval "$as_ac_Header=$ac_header_preproc"
4497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4502 cat >>confdefs.h <<_ACEOF
4503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4504 _ACEOF
4508 done
4517 for ac_header in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
4519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4521 echo "$as_me:$LINENO: checking for $ac_header" >&5
4522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4528 else
4529 # Is the header compilable?
4530 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4532 cat >conftest.$ac_ext <<_ACEOF
4533 #line $LINENO "configure"
4534 #include "confdefs.h"
4535 $ac_includes_default
4536 #include <$ac_header>
4537 _ACEOF
4538 rm -f conftest.$ac_objext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540 (eval $ac_compile) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } &&
4544 { ac_try='test -s conftest.$ac_objext'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 (eval $ac_try) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 ac_header_compiler=yes
4551 else
4552 echo "$as_me: failed program was:" >&5
4553 cat conftest.$ac_ext >&5
4554 ac_header_compiler=no
4556 rm -f conftest.$ac_objext conftest.$ac_ext
4557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4558 echo "${ECHO_T}$ac_header_compiler" >&6
4560 # Is the header present?
4561 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4563 cat >conftest.$ac_ext <<_ACEOF
4564 #line $LINENO "configure"
4565 #include "confdefs.h"
4566 #include <$ac_header>
4567 _ACEOF
4568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4570 ac_status=$?
4571 egrep -v '^ *\+' conftest.er1 >conftest.err
4572 rm -f conftest.er1
4573 cat conftest.err >&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } >/dev/null; then
4576 if test -s conftest.err; then
4577 ac_cpp_err=$ac_c_preproc_warn_flag
4578 else
4579 ac_cpp_err=
4581 else
4582 ac_cpp_err=yes
4584 if test -z "$ac_cpp_err"; then
4585 ac_header_preproc=yes
4586 else
4587 echo "$as_me: failed program was:" >&5
4588 cat conftest.$ac_ext >&5
4589 ac_header_preproc=no
4591 rm -f conftest.err conftest.$ac_ext
4592 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4593 echo "${ECHO_T}$ac_header_preproc" >&6
4595 # So? What about this header?
4596 case $ac_header_compiler:$ac_header_preproc in
4597 yes:no )
4598 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4602 no:yes )
4603 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4605 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4606 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4609 esac
4610 echo "$as_me:$LINENO: checking for $ac_header" >&5
4611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 else
4615 eval "$as_ac_Header=$ac_header_preproc"
4617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4622 cat >>confdefs.h <<_ACEOF
4623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4624 _ACEOF
4628 done
4638 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
4640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4642 echo "$as_me:$LINENO: checking for $ac_header" >&5
4643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4649 else
4650 # Is the header compilable?
4651 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4653 cat >conftest.$ac_ext <<_ACEOF
4654 #line $LINENO "configure"
4655 #include "confdefs.h"
4656 $ac_includes_default
4657 #include <$ac_header>
4658 _ACEOF
4659 rm -f conftest.$ac_objext
4660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4661 (eval $ac_compile) 2>&5
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } &&
4665 { ac_try='test -s conftest.$ac_objext'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 (eval $ac_try) 2>&5
4668 ac_status=$?
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4671 ac_header_compiler=yes
4672 else
4673 echo "$as_me: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4675 ac_header_compiler=no
4677 rm -f conftest.$ac_objext conftest.$ac_ext
4678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4679 echo "${ECHO_T}$ac_header_compiler" >&6
4681 # Is the header present?
4682 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4684 cat >conftest.$ac_ext <<_ACEOF
4685 #line $LINENO "configure"
4686 #include "confdefs.h"
4687 #include <$ac_header>
4688 _ACEOF
4689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4691 ac_status=$?
4692 egrep -v '^ *\+' conftest.er1 >conftest.err
4693 rm -f conftest.er1
4694 cat conftest.err >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } >/dev/null; then
4697 if test -s conftest.err; then
4698 ac_cpp_err=$ac_c_preproc_warn_flag
4699 else
4700 ac_cpp_err=
4702 else
4703 ac_cpp_err=yes
4705 if test -z "$ac_cpp_err"; then
4706 ac_header_preproc=yes
4707 else
4708 echo "$as_me: failed program was:" >&5
4709 cat conftest.$ac_ext >&5
4710 ac_header_preproc=no
4712 rm -f conftest.err conftest.$ac_ext
4713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4714 echo "${ECHO_T}$ac_header_preproc" >&6
4716 # So? What about this header?
4717 case $ac_header_compiler:$ac_header_preproc in
4718 yes:no )
4719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4723 no:yes )
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4727 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4730 esac
4731 echo "$as_me:$LINENO: checking for $ac_header" >&5
4732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736 eval "$as_ac_Header=$ac_header_preproc"
4738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4743 cat >>confdefs.h <<_ACEOF
4744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4745 _ACEOF
4749 done
4757 for ac_header in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
4759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4761 echo "$as_me:$LINENO: checking for $ac_header" >&5
4762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4768 else
4769 # Is the header compilable?
4770 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4772 cat >conftest.$ac_ext <<_ACEOF
4773 #line $LINENO "configure"
4774 #include "confdefs.h"
4775 $ac_includes_default
4776 #include <$ac_header>
4777 _ACEOF
4778 rm -f conftest.$ac_objext
4779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4780 (eval $ac_compile) 2>&5
4781 ac_status=$?
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } &&
4784 { ac_try='test -s conftest.$ac_objext'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 (eval $ac_try) 2>&5
4787 ac_status=$?
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4790 ac_header_compiler=yes
4791 else
4792 echo "$as_me: failed program was:" >&5
4793 cat conftest.$ac_ext >&5
4794 ac_header_compiler=no
4796 rm -f conftest.$ac_objext conftest.$ac_ext
4797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4798 echo "${ECHO_T}$ac_header_compiler" >&6
4800 # Is the header present?
4801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4803 cat >conftest.$ac_ext <<_ACEOF
4804 #line $LINENO "configure"
4805 #include "confdefs.h"
4806 #include <$ac_header>
4807 _ACEOF
4808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4810 ac_status=$?
4811 egrep -v '^ *\+' conftest.er1 >conftest.err
4812 rm -f conftest.er1
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } >/dev/null; then
4816 if test -s conftest.err; then
4817 ac_cpp_err=$ac_c_preproc_warn_flag
4818 else
4819 ac_cpp_err=
4821 else
4822 ac_cpp_err=yes
4824 if test -z "$ac_cpp_err"; then
4825 ac_header_preproc=yes
4826 else
4827 echo "$as_me: failed program was:" >&5
4828 cat conftest.$ac_ext >&5
4829 ac_header_preproc=no
4831 rm -f conftest.err conftest.$ac_ext
4832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4833 echo "${ECHO_T}$ac_header_preproc" >&6
4835 # So? What about this header?
4836 case $ac_header_compiler:$ac_header_preproc in
4837 yes:no )
4838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4842 no:yes )
4843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4846 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4849 esac
4850 echo "$as_me:$LINENO: checking for $ac_header" >&5
4851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4854 else
4855 eval "$as_ac_Header=$ac_header_preproc"
4857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4862 cat >>confdefs.h <<_ACEOF
4863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4864 _ACEOF
4868 done
4876 for ac_header in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
4878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4880 echo "$as_me:$LINENO: checking for $ac_header" >&5
4881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4887 else
4888 # Is the header compilable?
4889 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4891 cat >conftest.$ac_ext <<_ACEOF
4892 #line $LINENO "configure"
4893 #include "confdefs.h"
4894 $ac_includes_default
4895 #include <$ac_header>
4896 _ACEOF
4897 rm -f conftest.$ac_objext
4898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4899 (eval $ac_compile) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); } &&
4903 { ac_try='test -s conftest.$ac_objext'
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905 (eval $ac_try) 2>&5
4906 ac_status=$?
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; }; then
4909 ac_header_compiler=yes
4910 else
4911 echo "$as_me: failed program was:" >&5
4912 cat conftest.$ac_ext >&5
4913 ac_header_compiler=no
4915 rm -f conftest.$ac_objext conftest.$ac_ext
4916 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4917 echo "${ECHO_T}$ac_header_compiler" >&6
4919 # Is the header present?
4920 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4922 cat >conftest.$ac_ext <<_ACEOF
4923 #line $LINENO "configure"
4924 #include "confdefs.h"
4925 #include <$ac_header>
4926 _ACEOF
4927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4929 ac_status=$?
4930 egrep -v '^ *\+' conftest.er1 >conftest.err
4931 rm -f conftest.er1
4932 cat conftest.err >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } >/dev/null; then
4935 if test -s conftest.err; then
4936 ac_cpp_err=$ac_c_preproc_warn_flag
4937 else
4938 ac_cpp_err=
4940 else
4941 ac_cpp_err=yes
4943 if test -z "$ac_cpp_err"; then
4944 ac_header_preproc=yes
4945 else
4946 echo "$as_me: failed program was:" >&5
4947 cat conftest.$ac_ext >&5
4948 ac_header_preproc=no
4950 rm -f conftest.err conftest.$ac_ext
4951 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4952 echo "${ECHO_T}$ac_header_preproc" >&6
4954 # So? What about this header?
4955 case $ac_header_compiler:$ac_header_preproc in
4956 yes:no )
4957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4961 no:yes )
4962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4965 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4968 esac
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
4973 else
4974 eval "$as_ac_Header=$ac_header_preproc"
4976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4981 cat >>confdefs.h <<_ACEOF
4982 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4983 _ACEOF
4987 done
4994 for ac_header in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
4996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4998 echo "$as_me:$LINENO: checking for $ac_header" >&5
4999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5005 else
5006 # Is the header compilable?
5007 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5009 cat >conftest.$ac_ext <<_ACEOF
5010 #line $LINENO "configure"
5011 #include "confdefs.h"
5012 $ac_includes_default
5013 #include <$ac_header>
5014 _ACEOF
5015 rm -f conftest.$ac_objext
5016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5017 (eval $ac_compile) 2>&5
5018 ac_status=$?
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } &&
5021 { ac_try='test -s conftest.$ac_objext'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 (eval $ac_try) 2>&5
5024 ac_status=$?
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; }; then
5027 ac_header_compiler=yes
5028 else
5029 echo "$as_me: failed program was:" >&5
5030 cat conftest.$ac_ext >&5
5031 ac_header_compiler=no
5033 rm -f conftest.$ac_objext conftest.$ac_ext
5034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5035 echo "${ECHO_T}$ac_header_compiler" >&6
5037 # Is the header present?
5038 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5040 cat >conftest.$ac_ext <<_ACEOF
5041 #line $LINENO "configure"
5042 #include "confdefs.h"
5043 #include <$ac_header>
5044 _ACEOF
5045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5047 ac_status=$?
5048 egrep -v '^ *\+' conftest.er1 >conftest.err
5049 rm -f conftest.er1
5050 cat conftest.err >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); } >/dev/null; then
5053 if test -s conftest.err; then
5054 ac_cpp_err=$ac_c_preproc_warn_flag
5055 else
5056 ac_cpp_err=
5058 else
5059 ac_cpp_err=yes
5061 if test -z "$ac_cpp_err"; then
5062 ac_header_preproc=yes
5063 else
5064 echo "$as_me: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5066 ac_header_preproc=no
5068 rm -f conftest.err conftest.$ac_ext
5069 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5070 echo "${ECHO_T}$ac_header_preproc" >&6
5072 # So? What about this header?
5073 case $ac_header_compiler:$ac_header_preproc in
5074 yes:no )
5075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5079 no:yes )
5080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5086 esac
5087 echo "$as_me:$LINENO: checking for $ac_header" >&5
5088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 else
5092 eval "$as_ac_Header=$ac_header_preproc"
5094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5099 cat >>confdefs.h <<_ACEOF
5100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5101 _ACEOF
5105 done
5109 for ac_header in sys/syslog.h syslog.h
5111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5113 echo "$as_me:$LINENO: checking for $ac_header" >&5
5114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5120 else
5121 # Is the header compilable?
5122 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5124 cat >conftest.$ac_ext <<_ACEOF
5125 #line $LINENO "configure"
5126 #include "confdefs.h"
5127 $ac_includes_default
5128 #include <$ac_header>
5129 _ACEOF
5130 rm -f conftest.$ac_objext
5131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5132 (eval $ac_compile) 2>&5
5133 ac_status=$?
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } &&
5136 { ac_try='test -s conftest.$ac_objext'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 (eval $ac_try) 2>&5
5139 ac_status=$?
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; }; then
5142 ac_header_compiler=yes
5143 else
5144 echo "$as_me: failed program was:" >&5
5145 cat conftest.$ac_ext >&5
5146 ac_header_compiler=no
5148 rm -f conftest.$ac_objext conftest.$ac_ext
5149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5150 echo "${ECHO_T}$ac_header_compiler" >&6
5152 # Is the header present?
5153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5155 cat >conftest.$ac_ext <<_ACEOF
5156 #line $LINENO "configure"
5157 #include "confdefs.h"
5158 #include <$ac_header>
5159 _ACEOF
5160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5162 ac_status=$?
5163 egrep -v '^ *\+' conftest.er1 >conftest.err
5164 rm -f conftest.er1
5165 cat conftest.err >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } >/dev/null; then
5168 if test -s conftest.err; then
5169 ac_cpp_err=$ac_c_preproc_warn_flag
5170 else
5171 ac_cpp_err=
5173 else
5174 ac_cpp_err=yes
5176 if test -z "$ac_cpp_err"; then
5177 ac_header_preproc=yes
5178 else
5179 echo "$as_me: failed program was:" >&5
5180 cat conftest.$ac_ext >&5
5181 ac_header_preproc=no
5183 rm -f conftest.err conftest.$ac_ext
5184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5185 echo "${ECHO_T}$ac_header_preproc" >&6
5187 # So? What about this header?
5188 case $ac_header_compiler:$ac_header_preproc in
5189 yes:no )
5190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5194 no:yes )
5195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5201 esac
5202 echo "$as_me:$LINENO: checking for $ac_header" >&5
5203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 else
5207 eval "$as_ac_Header=$ac_header_preproc"
5209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5214 cat >>confdefs.h <<_ACEOF
5215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5216 _ACEOF
5220 done
5224 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
5225 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
5227 case "$host_os" in
5228 *hpux*)
5229 cat >conftest.$ac_ext <<_ACEOF
5230 #line $LINENO "configure"
5231 #include "confdefs.h"
5232 #include <shadow.h>
5233 #ifdef F77_DUMMY_MAIN
5234 # ifdef __cplusplus
5235 extern "C"
5236 # endif
5237 int F77_DUMMY_MAIN() { return 1; }
5238 #endif
5240 main ()
5242 struct spwd testme
5244 return 0;
5246 _ACEOF
5247 rm -f conftest.$ac_objext
5248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5249 (eval $ac_compile) 2>&5
5250 ac_status=$?
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } &&
5253 { ac_try='test -s conftest.$ac_objext'
5254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 (eval $ac_try) 2>&5
5256 ac_status=$?
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; }; then
5259 ac_cv_header_shadow_h=yes
5260 else
5261 echo "$as_me: failed program was:" >&5
5262 cat conftest.$ac_ext >&5
5263 ac_cv_header_shadow_h=no
5265 rm -f conftest.$ac_objext conftest.$ac_ext
5266 if test x"$ac_cv_header_shadow_h" = x"yes"; then
5268 cat >>confdefs.h <<\_ACEOF
5269 #define HAVE_SHADOW_H 1
5270 _ACEOF
5274 esac
5280 for ac_header in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
5282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5284 echo "$as_me:$LINENO: checking for $ac_header" >&5
5285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5291 else
5292 # Is the header compilable?
5293 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5295 cat >conftest.$ac_ext <<_ACEOF
5296 #line $LINENO "configure"
5297 #include "confdefs.h"
5298 $ac_includes_default
5299 #include <$ac_header>
5300 _ACEOF
5301 rm -f conftest.$ac_objext
5302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5303 (eval $ac_compile) 2>&5
5304 ac_status=$?
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } &&
5307 { ac_try='test -s conftest.$ac_objext'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 (eval $ac_try) 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5313 ac_header_compiler=yes
5314 else
5315 echo "$as_me: failed program was:" >&5
5316 cat conftest.$ac_ext >&5
5317 ac_header_compiler=no
5319 rm -f conftest.$ac_objext conftest.$ac_ext
5320 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5321 echo "${ECHO_T}$ac_header_compiler" >&6
5323 # Is the header present?
5324 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5326 cat >conftest.$ac_ext <<_ACEOF
5327 #line $LINENO "configure"
5328 #include "confdefs.h"
5329 #include <$ac_header>
5330 _ACEOF
5331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5333 ac_status=$?
5334 egrep -v '^ *\+' conftest.er1 >conftest.err
5335 rm -f conftest.er1
5336 cat conftest.err >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); } >/dev/null; then
5339 if test -s conftest.err; then
5340 ac_cpp_err=$ac_c_preproc_warn_flag
5341 else
5342 ac_cpp_err=
5344 else
5345 ac_cpp_err=yes
5347 if test -z "$ac_cpp_err"; then
5348 ac_header_preproc=yes
5349 else
5350 echo "$as_me: failed program was:" >&5
5351 cat conftest.$ac_ext >&5
5352 ac_header_preproc=no
5354 rm -f conftest.err conftest.$ac_ext
5355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5356 echo "${ECHO_T}$ac_header_preproc" >&6
5358 # So? What about this header?
5359 case $ac_header_compiler:$ac_header_preproc in
5360 yes:no )
5361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5365 no:yes )
5366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5369 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5372 esac
5373 echo "$as_me:$LINENO: checking for $ac_header" >&5
5374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 else
5378 eval "$as_ac_Header=$ac_header_preproc"
5380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5385 cat >>confdefs.h <<_ACEOF
5386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5387 _ACEOF
5391 done
5399 for ac_header in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
5401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5403 echo "$as_me:$LINENO: checking for $ac_header" >&5
5404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5410 else
5411 # Is the header compilable?
5412 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5414 cat >conftest.$ac_ext <<_ACEOF
5415 #line $LINENO "configure"
5416 #include "confdefs.h"
5417 $ac_includes_default
5418 #include <$ac_header>
5419 _ACEOF
5420 rm -f conftest.$ac_objext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422 (eval $ac_compile) 2>&5
5423 ac_status=$?
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } &&
5426 { ac_try='test -s conftest.$ac_objext'
5427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5428 (eval $ac_try) 2>&5
5429 ac_status=$?
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); }; }; then
5432 ac_header_compiler=yes
5433 else
5434 echo "$as_me: failed program was:" >&5
5435 cat conftest.$ac_ext >&5
5436 ac_header_compiler=no
5438 rm -f conftest.$ac_objext conftest.$ac_ext
5439 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5440 echo "${ECHO_T}$ac_header_compiler" >&6
5442 # Is the header present?
5443 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5445 cat >conftest.$ac_ext <<_ACEOF
5446 #line $LINENO "configure"
5447 #include "confdefs.h"
5448 #include <$ac_header>
5449 _ACEOF
5450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5452 ac_status=$?
5453 egrep -v '^ *\+' conftest.er1 >conftest.err
5454 rm -f conftest.er1
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } >/dev/null; then
5458 if test -s conftest.err; then
5459 ac_cpp_err=$ac_c_preproc_warn_flag
5460 else
5461 ac_cpp_err=
5463 else
5464 ac_cpp_err=yes
5466 if test -z "$ac_cpp_err"; then
5467 ac_header_preproc=yes
5468 else
5469 echo "$as_me: failed program was:" >&5
5470 cat conftest.$ac_ext >&5
5471 ac_header_preproc=no
5473 rm -f conftest.err conftest.$ac_ext
5474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5475 echo "${ECHO_T}$ac_header_preproc" >&6
5477 # So? What about this header?
5478 case $ac_header_compiler:$ac_header_preproc in
5479 yes:no )
5480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5484 no:yes )
5485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5491 esac
5492 echo "$as_me:$LINENO: checking for $ac_header" >&5
5493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5496 else
5497 eval "$as_ac_Header=$ac_header_preproc"
5499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5504 cat >>confdefs.h <<_ACEOF
5505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5506 _ACEOF
5510 done
5514 for ac_header in stropts.h poll.h
5516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5518 echo "$as_me:$LINENO: checking for $ac_header" >&5
5519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5525 else
5526 # Is the header compilable?
5527 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5529 cat >conftest.$ac_ext <<_ACEOF
5530 #line $LINENO "configure"
5531 #include "confdefs.h"
5532 $ac_includes_default
5533 #include <$ac_header>
5534 _ACEOF
5535 rm -f conftest.$ac_objext
5536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5537 (eval $ac_compile) 2>&5
5538 ac_status=$?
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } &&
5541 { ac_try='test -s conftest.$ac_objext'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 (eval $ac_try) 2>&5
5544 ac_status=$?
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; }; then
5547 ac_header_compiler=yes
5548 else
5549 echo "$as_me: failed program was:" >&5
5550 cat conftest.$ac_ext >&5
5551 ac_header_compiler=no
5553 rm -f conftest.$ac_objext conftest.$ac_ext
5554 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5555 echo "${ECHO_T}$ac_header_compiler" >&6
5557 # Is the header present?
5558 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5560 cat >conftest.$ac_ext <<_ACEOF
5561 #line $LINENO "configure"
5562 #include "confdefs.h"
5563 #include <$ac_header>
5564 _ACEOF
5565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5567 ac_status=$?
5568 egrep -v '^ *\+' conftest.er1 >conftest.err
5569 rm -f conftest.er1
5570 cat conftest.err >&5
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); } >/dev/null; then
5573 if test -s conftest.err; then
5574 ac_cpp_err=$ac_c_preproc_warn_flag
5575 else
5576 ac_cpp_err=
5578 else
5579 ac_cpp_err=yes
5581 if test -z "$ac_cpp_err"; then
5582 ac_header_preproc=yes
5583 else
5584 echo "$as_me: failed program was:" >&5
5585 cat conftest.$ac_ext >&5
5586 ac_header_preproc=no
5588 rm -f conftest.err conftest.$ac_ext
5589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5590 echo "${ECHO_T}$ac_header_preproc" >&6
5592 # So? What about this header?
5593 case $ac_header_compiler:$ac_header_preproc in
5594 yes:no )
5595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5599 no:yes )
5600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5606 esac
5607 echo "$as_me:$LINENO: checking for $ac_header" >&5
5608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612 eval "$as_ac_Header=$ac_header_preproc"
5614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5619 cat >>confdefs.h <<_ACEOF
5620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5621 _ACEOF
5625 done
5630 for ac_header in sys/capability.h syscall.h sys/syscall.h
5632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5634 echo "$as_me:$LINENO: checking for $ac_header" >&5
5635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5641 else
5642 # Is the header compilable?
5643 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5645 cat >conftest.$ac_ext <<_ACEOF
5646 #line $LINENO "configure"
5647 #include "confdefs.h"
5648 $ac_includes_default
5649 #include <$ac_header>
5650 _ACEOF
5651 rm -f conftest.$ac_objext
5652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5653 (eval $ac_compile) 2>&5
5654 ac_status=$?
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); } &&
5657 { ac_try='test -s conftest.$ac_objext'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659 (eval $ac_try) 2>&5
5660 ac_status=$?
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; }; then
5663 ac_header_compiler=yes
5664 else
5665 echo "$as_me: failed program was:" >&5
5666 cat conftest.$ac_ext >&5
5667 ac_header_compiler=no
5669 rm -f conftest.$ac_objext conftest.$ac_ext
5670 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5671 echo "${ECHO_T}$ac_header_compiler" >&6
5673 # Is the header present?
5674 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5675 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5676 cat >conftest.$ac_ext <<_ACEOF
5677 #line $LINENO "configure"
5678 #include "confdefs.h"
5679 #include <$ac_header>
5680 _ACEOF
5681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5683 ac_status=$?
5684 egrep -v '^ *\+' conftest.er1 >conftest.err
5685 rm -f conftest.er1
5686 cat conftest.err >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } >/dev/null; then
5689 if test -s conftest.err; then
5690 ac_cpp_err=$ac_c_preproc_warn_flag
5691 else
5692 ac_cpp_err=
5694 else
5695 ac_cpp_err=yes
5697 if test -z "$ac_cpp_err"; then
5698 ac_header_preproc=yes
5699 else
5700 echo "$as_me: failed program was:" >&5
5701 cat conftest.$ac_ext >&5
5702 ac_header_preproc=no
5704 rm -f conftest.err conftest.$ac_ext
5705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5706 echo "${ECHO_T}$ac_header_preproc" >&6
5708 # So? What about this header?
5709 case $ac_header_compiler:$ac_header_preproc in
5710 yes:no )
5711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5715 no:yes )
5716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5719 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5722 esac
5723 echo "$as_me:$LINENO: checking for $ac_header" >&5
5724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 else
5728 eval "$as_ac_Header=$ac_header_preproc"
5730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5735 cat >>confdefs.h <<_ACEOF
5736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5737 _ACEOF
5741 done
5746 for ac_header in sys/acl.h sys/cdefs.h glob.h
5748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5750 echo "$as_me:$LINENO: checking for $ac_header" >&5
5751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5757 else
5758 # Is the header compilable?
5759 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5761 cat >conftest.$ac_ext <<_ACEOF
5762 #line $LINENO "configure"
5763 #include "confdefs.h"
5764 $ac_includes_default
5765 #include <$ac_header>
5766 _ACEOF
5767 rm -f conftest.$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try='test -s conftest.$ac_objext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 (eval $ac_try) 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 ac_header_compiler=yes
5780 else
5781 echo "$as_me: failed program was:" >&5
5782 cat conftest.$ac_ext >&5
5783 ac_header_compiler=no
5785 rm -f conftest.$ac_objext conftest.$ac_ext
5786 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5787 echo "${ECHO_T}$ac_header_compiler" >&6
5789 # Is the header present?
5790 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5792 cat >conftest.$ac_ext <<_ACEOF
5793 #line $LINENO "configure"
5794 #include "confdefs.h"
5795 #include <$ac_header>
5796 _ACEOF
5797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5799 ac_status=$?
5800 egrep -v '^ *\+' conftest.er1 >conftest.err
5801 rm -f conftest.er1
5802 cat conftest.err >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } >/dev/null; then
5805 if test -s conftest.err; then
5806 ac_cpp_err=$ac_c_preproc_warn_flag
5807 else
5808 ac_cpp_err=
5810 else
5811 ac_cpp_err=yes
5813 if test -z "$ac_cpp_err"; then
5814 ac_header_preproc=yes
5815 else
5816 echo "$as_me: failed program was:" >&5
5817 cat conftest.$ac_ext >&5
5818 ac_header_preproc=no
5820 rm -f conftest.err conftest.$ac_ext
5821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5822 echo "${ECHO_T}$ac_header_preproc" >&6
5824 # So? What about this header?
5825 case $ac_header_compiler:$ac_header_preproc in
5826 yes:no )
5827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5831 no:yes )
5832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5835 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5838 esac
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
5843 else
5844 eval "$as_ac_Header=$ac_header_preproc"
5846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5851 cat >>confdefs.h <<_ACEOF
5852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5853 _ACEOF
5857 done
5860 # For experimental utmp support (lastlog on some BSD-like systems)
5864 for ac_header in utmp.h utmpx.h lastlog.h
5866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5868 echo "$as_me:$LINENO: checking for $ac_header" >&5
5869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5875 else
5876 # Is the header compilable?
5877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5879 cat >conftest.$ac_ext <<_ACEOF
5880 #line $LINENO "configure"
5881 #include "confdefs.h"
5882 $ac_includes_default
5883 #include <$ac_header>
5884 _ACEOF
5885 rm -f conftest.$ac_objext
5886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5887 (eval $ac_compile) 2>&5
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
5891 { ac_try='test -s conftest.$ac_objext'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 (eval $ac_try) 2>&5
5894 ac_status=$?
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; }; then
5897 ac_header_compiler=yes
5898 else
5899 echo "$as_me: failed program was:" >&5
5900 cat conftest.$ac_ext >&5
5901 ac_header_compiler=no
5903 rm -f conftest.$ac_objext conftest.$ac_ext
5904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5905 echo "${ECHO_T}$ac_header_compiler" >&6
5907 # Is the header present?
5908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5910 cat >conftest.$ac_ext <<_ACEOF
5911 #line $LINENO "configure"
5912 #include "confdefs.h"
5913 #include <$ac_header>
5914 _ACEOF
5915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5917 ac_status=$?
5918 egrep -v '^ *\+' conftest.er1 >conftest.err
5919 rm -f conftest.er1
5920 cat conftest.err >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } >/dev/null; then
5923 if test -s conftest.err; then
5924 ac_cpp_err=$ac_c_preproc_warn_flag
5925 else
5926 ac_cpp_err=
5928 else
5929 ac_cpp_err=yes
5931 if test -z "$ac_cpp_err"; then
5932 ac_header_preproc=yes
5933 else
5934 echo "$as_me: failed program was:" >&5
5935 cat conftest.$ac_ext >&5
5936 ac_header_preproc=no
5938 rm -f conftest.err conftest.$ac_ext
5939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5940 echo "${ECHO_T}$ac_header_preproc" >&6
5942 # So? What about this header?
5943 case $ac_header_compiler:$ac_header_preproc in
5944 yes:no )
5945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5949 no:yes )
5950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5956 esac
5957 echo "$as_me:$LINENO: checking for $ac_header" >&5
5958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 else
5962 eval "$as_ac_Header=$ac_header_preproc"
5964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5969 cat >>confdefs.h <<_ACEOF
5970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5971 _ACEOF
5975 done
5978 # For quotas on Veritas VxFS filesystems
5980 for ac_header in sys/fs/vx_quota.h
5982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5984 echo "$as_me:$LINENO: checking for $ac_header" >&5
5985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5991 else
5992 # Is the header compilable?
5993 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5995 cat >conftest.$ac_ext <<_ACEOF
5996 #line $LINENO "configure"
5997 #include "confdefs.h"
5998 $ac_includes_default
5999 #include <$ac_header>
6000 _ACEOF
6001 rm -f conftest.$ac_objext
6002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6003 (eval $ac_compile) 2>&5
6004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } &&
6007 { ac_try='test -s conftest.$ac_objext'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 (eval $ac_try) 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 ac_header_compiler=yes
6014 else
6015 echo "$as_me: failed program was:" >&5
6016 cat conftest.$ac_ext >&5
6017 ac_header_compiler=no
6019 rm -f conftest.$ac_objext conftest.$ac_ext
6020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6021 echo "${ECHO_T}$ac_header_compiler" >&6
6023 # Is the header present?
6024 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6026 cat >conftest.$ac_ext <<_ACEOF
6027 #line $LINENO "configure"
6028 #include "confdefs.h"
6029 #include <$ac_header>
6030 _ACEOF
6031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6033 ac_status=$?
6034 egrep -v '^ *\+' conftest.er1 >conftest.err
6035 rm -f conftest.er1
6036 cat conftest.err >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } >/dev/null; then
6039 if test -s conftest.err; then
6040 ac_cpp_err=$ac_c_preproc_warn_flag
6041 else
6042 ac_cpp_err=
6044 else
6045 ac_cpp_err=yes
6047 if test -z "$ac_cpp_err"; then
6048 ac_header_preproc=yes
6049 else
6050 echo "$as_me: failed program was:" >&5
6051 cat conftest.$ac_ext >&5
6052 ac_header_preproc=no
6054 rm -f conftest.err conftest.$ac_ext
6055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6056 echo "${ECHO_T}$ac_header_preproc" >&6
6058 # So? What about this header?
6059 case $ac_header_compiler:$ac_header_preproc in
6060 yes:no )
6061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6065 no:yes )
6066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6069 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6072 esac
6073 echo "$as_me:$LINENO: checking for $ac_header" >&5
6074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 else
6078 eval "$as_ac_Header=$ac_header_preproc"
6080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6085 cat >>confdefs.h <<_ACEOF
6086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6087 _ACEOF
6091 done
6094 # For quotas on Linux XFS filesystems
6096 for ac_header in linux/xqm.h
6098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6100 echo "$as_me:$LINENO: checking for $ac_header" >&5
6101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6107 else
6108 # Is the header compilable?
6109 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6111 cat >conftest.$ac_ext <<_ACEOF
6112 #line $LINENO "configure"
6113 #include "confdefs.h"
6114 $ac_includes_default
6115 #include <$ac_header>
6116 _ACEOF
6117 rm -f conftest.$ac_objext
6118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6119 (eval $ac_compile) 2>&5
6120 ac_status=$?
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try='test -s conftest.$ac_objext'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 (eval $ac_try) 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; }; then
6129 ac_header_compiler=yes
6130 else
6131 echo "$as_me: failed program was:" >&5
6132 cat conftest.$ac_ext >&5
6133 ac_header_compiler=no
6135 rm -f conftest.$ac_objext conftest.$ac_ext
6136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6137 echo "${ECHO_T}$ac_header_compiler" >&6
6139 # Is the header present?
6140 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6142 cat >conftest.$ac_ext <<_ACEOF
6143 #line $LINENO "configure"
6144 #include "confdefs.h"
6145 #include <$ac_header>
6146 _ACEOF
6147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6149 ac_status=$?
6150 egrep -v '^ *\+' conftest.er1 >conftest.err
6151 rm -f conftest.er1
6152 cat conftest.err >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } >/dev/null; then
6155 if test -s conftest.err; then
6156 ac_cpp_err=$ac_c_preproc_warn_flag
6157 else
6158 ac_cpp_err=
6160 else
6161 ac_cpp_err=yes
6163 if test -z "$ac_cpp_err"; then
6164 ac_header_preproc=yes
6165 else
6166 echo "$as_me: failed program was:" >&5
6167 cat conftest.$ac_ext >&5
6168 ac_header_preproc=no
6170 rm -f conftest.err conftest.$ac_ext
6171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6172 echo "${ECHO_T}$ac_header_preproc" >&6
6174 # So? What about this header?
6175 case $ac_header_compiler:$ac_header_preproc in
6176 yes:no )
6177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6181 no:yes )
6182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6188 esac
6189 echo "$as_me:$LINENO: checking for $ac_header" >&5
6190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194 eval "$as_ac_Header=$ac_header_preproc"
6196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6201 cat >>confdefs.h <<_ACEOF
6202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6203 _ACEOF
6207 done
6210 for ac_header in xfs/xqm.h
6212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6214 echo "$as_me:$LINENO: checking for $ac_header" >&5
6215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6221 else
6222 # Is the header compilable?
6223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6225 cat >conftest.$ac_ext <<_ACEOF
6226 #line $LINENO "configure"
6227 #include "confdefs.h"
6228 $ac_includes_default
6229 #include <$ac_header>
6230 _ACEOF
6231 rm -f conftest.$ac_objext
6232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6233 (eval $ac_compile) 2>&5
6234 ac_status=$?
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } &&
6237 { ac_try='test -s conftest.$ac_objext'
6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 (eval $ac_try) 2>&5
6240 ac_status=$?
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; }; then
6243 ac_header_compiler=yes
6244 else
6245 echo "$as_me: failed program was:" >&5
6246 cat conftest.$ac_ext >&5
6247 ac_header_compiler=no
6249 rm -f conftest.$ac_objext conftest.$ac_ext
6250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6251 echo "${ECHO_T}$ac_header_compiler" >&6
6253 # Is the header present?
6254 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6256 cat >conftest.$ac_ext <<_ACEOF
6257 #line $LINENO "configure"
6258 #include "confdefs.h"
6259 #include <$ac_header>
6260 _ACEOF
6261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6263 ac_status=$?
6264 egrep -v '^ *\+' conftest.er1 >conftest.err
6265 rm -f conftest.er1
6266 cat conftest.err >&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } >/dev/null; then
6269 if test -s conftest.err; then
6270 ac_cpp_err=$ac_c_preproc_warn_flag
6271 else
6272 ac_cpp_err=
6274 else
6275 ac_cpp_err=yes
6277 if test -z "$ac_cpp_err"; then
6278 ac_header_preproc=yes
6279 else
6280 echo "$as_me: failed program was:" >&5
6281 cat conftest.$ac_ext >&5
6282 ac_header_preproc=no
6284 rm -f conftest.err conftest.$ac_ext
6285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6286 echo "${ECHO_T}$ac_header_preproc" >&6
6288 # So? What about this header?
6289 case $ac_header_compiler:$ac_header_preproc in
6290 yes:no )
6291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6295 no:yes )
6296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6302 esac
6303 echo "$as_me:$LINENO: checking for $ac_header" >&5
6304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308 eval "$as_ac_Header=$ac_header_preproc"
6310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6315 cat >>confdefs.h <<_ACEOF
6316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6317 _ACEOF
6321 done
6324 echo "$as_me:$LINENO: checking for int" >&5
6325 echo $ECHO_N "checking for int... $ECHO_C" >&6
6326 if test "${ac_cv_type_int+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6329 cat >conftest.$ac_ext <<_ACEOF
6330 #line $LINENO "configure"
6331 #include "confdefs.h"
6332 $ac_includes_default
6333 #ifdef F77_DUMMY_MAIN
6334 # ifdef __cplusplus
6335 extern "C"
6336 # endif
6337 int F77_DUMMY_MAIN() { return 1; }
6338 #endif
6340 main ()
6342 if ((int *) 0)
6343 return 0;
6344 if (sizeof (int))
6345 return 0;
6347 return 0;
6349 _ACEOF
6350 rm -f conftest.$ac_objext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6352 (eval $ac_compile) 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } &&
6356 { ac_try='test -s conftest.$ac_objext'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 (eval $ac_try) 2>&5
6359 ac_status=$?
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; }; then
6362 ac_cv_type_int=yes
6363 else
6364 echo "$as_me: failed program was:" >&5
6365 cat conftest.$ac_ext >&5
6366 ac_cv_type_int=no
6368 rm -f conftest.$ac_objext conftest.$ac_ext
6370 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6371 echo "${ECHO_T}$ac_cv_type_int" >&6
6373 echo "$as_me:$LINENO: checking size of int" >&5
6374 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6375 if test "${ac_cv_sizeof_int+set}" = set; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
6377 else
6378 if test "$ac_cv_type_int" = yes; then
6379 # The cast to unsigned long works around a bug in the HP C Compiler
6380 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6381 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6382 # This bug is HP SR number 8606223364.
6383 if test "$cross_compiling" = yes; then
6384 # Depending upon the size, compute the lo and hi bounds.
6385 cat >conftest.$ac_ext <<_ACEOF
6386 #line $LINENO "configure"
6387 #include "confdefs.h"
6388 $ac_includes_default
6389 #ifdef F77_DUMMY_MAIN
6390 # ifdef __cplusplus
6391 extern "C"
6392 # endif
6393 int F77_DUMMY_MAIN() { return 1; }
6394 #endif
6396 main ()
6398 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6399 test_array [0] = 0
6402 return 0;
6404 _ACEOF
6405 rm -f conftest.$ac_objext
6406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6407 (eval $ac_compile) 2>&5
6408 ac_status=$?
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } &&
6411 { ac_try='test -s conftest.$ac_objext'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413 (eval $ac_try) 2>&5
6414 ac_status=$?
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; }; then
6417 ac_lo=0 ac_mid=0
6418 while :; do
6419 cat >conftest.$ac_ext <<_ACEOF
6420 #line $LINENO "configure"
6421 #include "confdefs.h"
6422 $ac_includes_default
6423 #ifdef F77_DUMMY_MAIN
6424 # ifdef __cplusplus
6425 extern "C"
6426 # endif
6427 int F77_DUMMY_MAIN() { return 1; }
6428 #endif
6430 main ()
6432 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6433 test_array [0] = 0
6436 return 0;
6438 _ACEOF
6439 rm -f conftest.$ac_objext
6440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6441 (eval $ac_compile) 2>&5
6442 ac_status=$?
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); } &&
6445 { ac_try='test -s conftest.$ac_objext'
6446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447 (eval $ac_try) 2>&5
6448 ac_status=$?
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; }; then
6451 ac_hi=$ac_mid; break
6452 else
6453 echo "$as_me: failed program was:" >&5
6454 cat conftest.$ac_ext >&5
6455 ac_lo=`expr $ac_mid + 1`
6456 if test $ac_lo -le $ac_mid; then
6457 ac_lo= ac_hi=
6458 break
6460 ac_mid=`expr 2 '*' $ac_mid + 1`
6462 rm -f conftest.$ac_objext conftest.$ac_ext
6463 done
6464 else
6465 echo "$as_me: failed program was:" >&5
6466 cat conftest.$ac_ext >&5
6467 cat >conftest.$ac_ext <<_ACEOF
6468 #line $LINENO "configure"
6469 #include "confdefs.h"
6470 $ac_includes_default
6471 #ifdef F77_DUMMY_MAIN
6472 # ifdef __cplusplus
6473 extern "C"
6474 # endif
6475 int F77_DUMMY_MAIN() { return 1; }
6476 #endif
6478 main ()
6480 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6481 test_array [0] = 0
6484 return 0;
6486 _ACEOF
6487 rm -f conftest.$ac_objext
6488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6489 (eval $ac_compile) 2>&5
6490 ac_status=$?
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } &&
6493 { ac_try='test -s conftest.$ac_objext'
6494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495 (eval $ac_try) 2>&5
6496 ac_status=$?
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; }; then
6499 ac_hi=-1 ac_mid=-1
6500 while :; do
6501 cat >conftest.$ac_ext <<_ACEOF
6502 #line $LINENO "configure"
6503 #include "confdefs.h"
6504 $ac_includes_default
6505 #ifdef F77_DUMMY_MAIN
6506 # ifdef __cplusplus
6507 extern "C"
6508 # endif
6509 int F77_DUMMY_MAIN() { return 1; }
6510 #endif
6512 main ()
6514 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6515 test_array [0] = 0
6518 return 0;
6520 _ACEOF
6521 rm -f conftest.$ac_objext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523 (eval $ac_compile) 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } &&
6527 { ac_try='test -s conftest.$ac_objext'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 (eval $ac_try) 2>&5
6530 ac_status=$?
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
6533 ac_lo=$ac_mid; break
6534 else
6535 echo "$as_me: failed program was:" >&5
6536 cat conftest.$ac_ext >&5
6537 ac_hi=`expr '(' $ac_mid ')' - 1`
6538 if test $ac_mid -le $ac_hi; then
6539 ac_lo= ac_hi=
6540 break
6542 ac_mid=`expr 2 '*' $ac_mid`
6544 rm -f conftest.$ac_objext conftest.$ac_ext
6545 done
6546 else
6547 echo "$as_me: failed program was:" >&5
6548 cat conftest.$ac_ext >&5
6549 ac_lo= ac_hi=
6551 rm -f conftest.$ac_objext conftest.$ac_ext
6553 rm -f conftest.$ac_objext conftest.$ac_ext
6554 # Binary search between lo and hi bounds.
6555 while test "x$ac_lo" != "x$ac_hi"; do
6556 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6557 cat >conftest.$ac_ext <<_ACEOF
6558 #line $LINENO "configure"
6559 #include "confdefs.h"
6560 $ac_includes_default
6561 #ifdef F77_DUMMY_MAIN
6562 # ifdef __cplusplus
6563 extern "C"
6564 # endif
6565 int F77_DUMMY_MAIN() { return 1; }
6566 #endif
6568 main ()
6570 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6571 test_array [0] = 0
6574 return 0;
6576 _ACEOF
6577 rm -f conftest.$ac_objext
6578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6579 (eval $ac_compile) 2>&5
6580 ac_status=$?
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } &&
6583 { ac_try='test -s conftest.$ac_objext'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 (eval $ac_try) 2>&5
6586 ac_status=$?
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; }; then
6589 ac_hi=$ac_mid
6590 else
6591 echo "$as_me: failed program was:" >&5
6592 cat conftest.$ac_ext >&5
6593 ac_lo=`expr '(' $ac_mid ')' + 1`
6595 rm -f conftest.$ac_objext conftest.$ac_ext
6596 done
6597 case $ac_lo in
6598 ?*) ac_cv_sizeof_int=$ac_lo;;
6599 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6600 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6601 { (exit 1); exit 1; }; } ;;
6602 esac
6603 else
6604 if test "$cross_compiling" = yes; then
6605 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6606 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6607 { (exit 1); exit 1; }; }
6608 else
6609 cat >conftest.$ac_ext <<_ACEOF
6610 #line $LINENO "configure"
6611 #include "confdefs.h"
6612 $ac_includes_default
6613 long longval () { return (long) (sizeof (int)); }
6614 unsigned long ulongval () { return (long) (sizeof (int)); }
6615 #include <stdio.h>
6616 #include <stdlib.h>
6617 #ifdef F77_DUMMY_MAIN
6618 # ifdef __cplusplus
6619 extern "C"
6620 # endif
6621 int F77_DUMMY_MAIN() { return 1; }
6622 #endif
6624 main ()
6627 FILE *f = fopen ("conftest.val", "w");
6628 if (! f)
6629 exit (1);
6630 if (((long) (sizeof (int))) < 0)
6632 long i = longval ();
6633 if (i != ((long) (sizeof (int))))
6634 exit (1);
6635 fprintf (f, "%ld\n", i);
6637 else
6639 unsigned long i = ulongval ();
6640 if (i != ((long) (sizeof (int))))
6641 exit (1);
6642 fprintf (f, "%lu\n", i);
6644 exit (ferror (f) || fclose (f) != 0);
6647 return 0;
6649 _ACEOF
6650 rm -f conftest$ac_exeext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6652 (eval $ac_link) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657 (eval $ac_try) 2>&5
6658 ac_status=$?
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; }; then
6661 ac_cv_sizeof_int=`cat conftest.val`
6662 else
6663 echo "$as_me: program exited with status $ac_status" >&5
6664 echo "$as_me: failed program was:" >&5
6665 cat conftest.$ac_ext >&5
6666 ( exit $ac_status )
6667 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6668 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6669 { (exit 1); exit 1; }; }
6671 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6674 rm -f conftest.val
6675 else
6676 ac_cv_sizeof_int=0
6679 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6680 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6681 cat >>confdefs.h <<_ACEOF
6682 #define SIZEOF_INT $ac_cv_sizeof_int
6683 _ACEOF
6686 echo "$as_me:$LINENO: checking for long" >&5
6687 echo $ECHO_N "checking for long... $ECHO_C" >&6
6688 if test "${ac_cv_type_long+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 else
6691 cat >conftest.$ac_ext <<_ACEOF
6692 #line $LINENO "configure"
6693 #include "confdefs.h"
6694 $ac_includes_default
6695 #ifdef F77_DUMMY_MAIN
6696 # ifdef __cplusplus
6697 extern "C"
6698 # endif
6699 int F77_DUMMY_MAIN() { return 1; }
6700 #endif
6702 main ()
6704 if ((long *) 0)
6705 return 0;
6706 if (sizeof (long))
6707 return 0;
6709 return 0;
6711 _ACEOF
6712 rm -f conftest.$ac_objext
6713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6714 (eval $ac_compile) 2>&5
6715 ac_status=$?
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } &&
6718 { ac_try='test -s conftest.$ac_objext'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720 (eval $ac_try) 2>&5
6721 ac_status=$?
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; }; then
6724 ac_cv_type_long=yes
6725 else
6726 echo "$as_me: failed program was:" >&5
6727 cat conftest.$ac_ext >&5
6728 ac_cv_type_long=no
6730 rm -f conftest.$ac_objext conftest.$ac_ext
6732 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6733 echo "${ECHO_T}$ac_cv_type_long" >&6
6735 echo "$as_me:$LINENO: checking size of long" >&5
6736 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6737 if test "${ac_cv_sizeof_long+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740 if test "$ac_cv_type_long" = yes; then
6741 # The cast to unsigned long works around a bug in the HP C Compiler
6742 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6743 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6744 # This bug is HP SR number 8606223364.
6745 if test "$cross_compiling" = yes; then
6746 # Depending upon the size, compute the lo and hi bounds.
6747 cat >conftest.$ac_ext <<_ACEOF
6748 #line $LINENO "configure"
6749 #include "confdefs.h"
6750 $ac_includes_default
6751 #ifdef F77_DUMMY_MAIN
6752 # ifdef __cplusplus
6753 extern "C"
6754 # endif
6755 int F77_DUMMY_MAIN() { return 1; }
6756 #endif
6758 main ()
6760 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6761 test_array [0] = 0
6764 return 0;
6766 _ACEOF
6767 rm -f conftest.$ac_objext
6768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6769 (eval $ac_compile) 2>&5
6770 ac_status=$?
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } &&
6773 { ac_try='test -s conftest.$ac_objext'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 (eval $ac_try) 2>&5
6776 ac_status=$?
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; }; then
6779 ac_lo=0 ac_mid=0
6780 while :; do
6781 cat >conftest.$ac_ext <<_ACEOF
6782 #line $LINENO "configure"
6783 #include "confdefs.h"
6784 $ac_includes_default
6785 #ifdef F77_DUMMY_MAIN
6786 # ifdef __cplusplus
6787 extern "C"
6788 # endif
6789 int F77_DUMMY_MAIN() { return 1; }
6790 #endif
6792 main ()
6794 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6795 test_array [0] = 0
6798 return 0;
6800 _ACEOF
6801 rm -f conftest.$ac_objext
6802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6803 (eval $ac_compile) 2>&5
6804 ac_status=$?
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } &&
6807 { ac_try='test -s conftest.$ac_objext'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809 (eval $ac_try) 2>&5
6810 ac_status=$?
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; }; then
6813 ac_hi=$ac_mid; break
6814 else
6815 echo "$as_me: failed program was:" >&5
6816 cat conftest.$ac_ext >&5
6817 ac_lo=`expr $ac_mid + 1`
6818 if test $ac_lo -le $ac_mid; then
6819 ac_lo= ac_hi=
6820 break
6822 ac_mid=`expr 2 '*' $ac_mid + 1`
6824 rm -f conftest.$ac_objext conftest.$ac_ext
6825 done
6826 else
6827 echo "$as_me: failed program was:" >&5
6828 cat conftest.$ac_ext >&5
6829 cat >conftest.$ac_ext <<_ACEOF
6830 #line $LINENO "configure"
6831 #include "confdefs.h"
6832 $ac_includes_default
6833 #ifdef F77_DUMMY_MAIN
6834 # ifdef __cplusplus
6835 extern "C"
6836 # endif
6837 int F77_DUMMY_MAIN() { return 1; }
6838 #endif
6840 main ()
6842 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6843 test_array [0] = 0
6846 return 0;
6848 _ACEOF
6849 rm -f conftest.$ac_objext
6850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6851 (eval $ac_compile) 2>&5
6852 ac_status=$?
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } &&
6855 { ac_try='test -s conftest.$ac_objext'
6856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857 (eval $ac_try) 2>&5
6858 ac_status=$?
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); }; }; then
6861 ac_hi=-1 ac_mid=-1
6862 while :; do
6863 cat >conftest.$ac_ext <<_ACEOF
6864 #line $LINENO "configure"
6865 #include "confdefs.h"
6866 $ac_includes_default
6867 #ifdef F77_DUMMY_MAIN
6868 # ifdef __cplusplus
6869 extern "C"
6870 # endif
6871 int F77_DUMMY_MAIN() { return 1; }
6872 #endif
6874 main ()
6876 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6877 test_array [0] = 0
6880 return 0;
6882 _ACEOF
6883 rm -f conftest.$ac_objext
6884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6885 (eval $ac_compile) 2>&5
6886 ac_status=$?
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } &&
6889 { ac_try='test -s conftest.$ac_objext'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 (eval $ac_try) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 ac_lo=$ac_mid; break
6896 else
6897 echo "$as_me: failed program was:" >&5
6898 cat conftest.$ac_ext >&5
6899 ac_hi=`expr '(' $ac_mid ')' - 1`
6900 if test $ac_mid -le $ac_hi; then
6901 ac_lo= ac_hi=
6902 break
6904 ac_mid=`expr 2 '*' $ac_mid`
6906 rm -f conftest.$ac_objext conftest.$ac_ext
6907 done
6908 else
6909 echo "$as_me: failed program was:" >&5
6910 cat conftest.$ac_ext >&5
6911 ac_lo= ac_hi=
6913 rm -f conftest.$ac_objext conftest.$ac_ext
6915 rm -f conftest.$ac_objext conftest.$ac_ext
6916 # Binary search between lo and hi bounds.
6917 while test "x$ac_lo" != "x$ac_hi"; do
6918 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6919 cat >conftest.$ac_ext <<_ACEOF
6920 #line $LINENO "configure"
6921 #include "confdefs.h"
6922 $ac_includes_default
6923 #ifdef F77_DUMMY_MAIN
6924 # ifdef __cplusplus
6925 extern "C"
6926 # endif
6927 int F77_DUMMY_MAIN() { return 1; }
6928 #endif
6930 main ()
6932 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6933 test_array [0] = 0
6936 return 0;
6938 _ACEOF
6939 rm -f conftest.$ac_objext
6940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6941 (eval $ac_compile) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } &&
6945 { ac_try='test -s conftest.$ac_objext'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 (eval $ac_try) 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; }; then
6951 ac_hi=$ac_mid
6952 else
6953 echo "$as_me: failed program was:" >&5
6954 cat conftest.$ac_ext >&5
6955 ac_lo=`expr '(' $ac_mid ')' + 1`
6957 rm -f conftest.$ac_objext conftest.$ac_ext
6958 done
6959 case $ac_lo in
6960 ?*) ac_cv_sizeof_long=$ac_lo;;
6961 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
6962 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
6963 { (exit 1); exit 1; }; } ;;
6964 esac
6965 else
6966 if test "$cross_compiling" = yes; then
6967 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6968 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6969 { (exit 1); exit 1; }; }
6970 else
6971 cat >conftest.$ac_ext <<_ACEOF
6972 #line $LINENO "configure"
6973 #include "confdefs.h"
6974 $ac_includes_default
6975 long longval () { return (long) (sizeof (long)); }
6976 unsigned long ulongval () { return (long) (sizeof (long)); }
6977 #include <stdio.h>
6978 #include <stdlib.h>
6979 #ifdef F77_DUMMY_MAIN
6980 # ifdef __cplusplus
6981 extern "C"
6982 # endif
6983 int F77_DUMMY_MAIN() { return 1; }
6984 #endif
6986 main ()
6989 FILE *f = fopen ("conftest.val", "w");
6990 if (! f)
6991 exit (1);
6992 if (((long) (sizeof (long))) < 0)
6994 long i = longval ();
6995 if (i != ((long) (sizeof (long))))
6996 exit (1);
6997 fprintf (f, "%ld\n", i);
6999 else
7001 unsigned long i = ulongval ();
7002 if (i != ((long) (sizeof (long))))
7003 exit (1);
7004 fprintf (f, "%lu\n", i);
7006 exit (ferror (f) || fclose (f) != 0);
7009 return 0;
7011 _ACEOF
7012 rm -f conftest$ac_exeext
7013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7014 (eval $ac_link) 2>&5
7015 ac_status=$?
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019 (eval $ac_try) 2>&5
7020 ac_status=$?
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); }; }; then
7023 ac_cv_sizeof_long=`cat conftest.val`
7024 else
7025 echo "$as_me: program exited with status $ac_status" >&5
7026 echo "$as_me: failed program was:" >&5
7027 cat conftest.$ac_ext >&5
7028 ( exit $ac_status )
7029 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
7030 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
7031 { (exit 1); exit 1; }; }
7033 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7036 rm -f conftest.val
7037 else
7038 ac_cv_sizeof_long=0
7041 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7042 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7043 cat >>confdefs.h <<_ACEOF
7044 #define SIZEOF_LONG $ac_cv_sizeof_long
7045 _ACEOF
7048 echo "$as_me:$LINENO: checking for short" >&5
7049 echo $ECHO_N "checking for short... $ECHO_C" >&6
7050 if test "${ac_cv_type_short+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 else
7053 cat >conftest.$ac_ext <<_ACEOF
7054 #line $LINENO "configure"
7055 #include "confdefs.h"
7056 $ac_includes_default
7057 #ifdef F77_DUMMY_MAIN
7058 # ifdef __cplusplus
7059 extern "C"
7060 # endif
7061 int F77_DUMMY_MAIN() { return 1; }
7062 #endif
7064 main ()
7066 if ((short *) 0)
7067 return 0;
7068 if (sizeof (short))
7069 return 0;
7071 return 0;
7073 _ACEOF
7074 rm -f conftest.$ac_objext
7075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7076 (eval $ac_compile) 2>&5
7077 ac_status=$?
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } &&
7080 { ac_try='test -s conftest.$ac_objext'
7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082 (eval $ac_try) 2>&5
7083 ac_status=$?
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; }; then
7086 ac_cv_type_short=yes
7087 else
7088 echo "$as_me: failed program was:" >&5
7089 cat conftest.$ac_ext >&5
7090 ac_cv_type_short=no
7092 rm -f conftest.$ac_objext conftest.$ac_ext
7094 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7095 echo "${ECHO_T}$ac_cv_type_short" >&6
7097 echo "$as_me:$LINENO: checking size of short" >&5
7098 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7099 if test "${ac_cv_sizeof_short+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 else
7102 if test "$ac_cv_type_short" = yes; then
7103 # The cast to unsigned long works around a bug in the HP C Compiler
7104 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7105 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7106 # This bug is HP SR number 8606223364.
7107 if test "$cross_compiling" = yes; then
7108 # Depending upon the size, compute the lo and hi bounds.
7109 cat >conftest.$ac_ext <<_ACEOF
7110 #line $LINENO "configure"
7111 #include "confdefs.h"
7112 $ac_includes_default
7113 #ifdef F77_DUMMY_MAIN
7114 # ifdef __cplusplus
7115 extern "C"
7116 # endif
7117 int F77_DUMMY_MAIN() { return 1; }
7118 #endif
7120 main ()
7122 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7123 test_array [0] = 0
7126 return 0;
7128 _ACEOF
7129 rm -f conftest.$ac_objext
7130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7131 (eval $ac_compile) 2>&5
7132 ac_status=$?
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); } &&
7135 { ac_try='test -s conftest.$ac_objext'
7136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137 (eval $ac_try) 2>&5
7138 ac_status=$?
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); }; }; then
7141 ac_lo=0 ac_mid=0
7142 while :; do
7143 cat >conftest.$ac_ext <<_ACEOF
7144 #line $LINENO "configure"
7145 #include "confdefs.h"
7146 $ac_includes_default
7147 #ifdef F77_DUMMY_MAIN
7148 # ifdef __cplusplus
7149 extern "C"
7150 # endif
7151 int F77_DUMMY_MAIN() { return 1; }
7152 #endif
7154 main ()
7156 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7157 test_array [0] = 0
7160 return 0;
7162 _ACEOF
7163 rm -f conftest.$ac_objext
7164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7165 (eval $ac_compile) 2>&5
7166 ac_status=$?
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } &&
7169 { ac_try='test -s conftest.$ac_objext'
7170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171 (eval $ac_try) 2>&5
7172 ac_status=$?
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); }; }; then
7175 ac_hi=$ac_mid; break
7176 else
7177 echo "$as_me: failed program was:" >&5
7178 cat conftest.$ac_ext >&5
7179 ac_lo=`expr $ac_mid + 1`
7180 if test $ac_lo -le $ac_mid; then
7181 ac_lo= ac_hi=
7182 break
7184 ac_mid=`expr 2 '*' $ac_mid + 1`
7186 rm -f conftest.$ac_objext conftest.$ac_ext
7187 done
7188 else
7189 echo "$as_me: failed program was:" >&5
7190 cat conftest.$ac_ext >&5
7191 cat >conftest.$ac_ext <<_ACEOF
7192 #line $LINENO "configure"
7193 #include "confdefs.h"
7194 $ac_includes_default
7195 #ifdef F77_DUMMY_MAIN
7196 # ifdef __cplusplus
7197 extern "C"
7198 # endif
7199 int F77_DUMMY_MAIN() { return 1; }
7200 #endif
7202 main ()
7204 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7205 test_array [0] = 0
7208 return 0;
7210 _ACEOF
7211 rm -f conftest.$ac_objext
7212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7213 (eval $ac_compile) 2>&5
7214 ac_status=$?
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } &&
7217 { ac_try='test -s conftest.$ac_objext'
7218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219 (eval $ac_try) 2>&5
7220 ac_status=$?
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); }; }; then
7223 ac_hi=-1 ac_mid=-1
7224 while :; do
7225 cat >conftest.$ac_ext <<_ACEOF
7226 #line $LINENO "configure"
7227 #include "confdefs.h"
7228 $ac_includes_default
7229 #ifdef F77_DUMMY_MAIN
7230 # ifdef __cplusplus
7231 extern "C"
7232 # endif
7233 int F77_DUMMY_MAIN() { return 1; }
7234 #endif
7236 main ()
7238 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7239 test_array [0] = 0
7242 return 0;
7244 _ACEOF
7245 rm -f conftest.$ac_objext
7246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7247 (eval $ac_compile) 2>&5
7248 ac_status=$?
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); } &&
7251 { ac_try='test -s conftest.$ac_objext'
7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253 (eval $ac_try) 2>&5
7254 ac_status=$?
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; }; then
7257 ac_lo=$ac_mid; break
7258 else
7259 echo "$as_me: failed program was:" >&5
7260 cat conftest.$ac_ext >&5
7261 ac_hi=`expr '(' $ac_mid ')' - 1`
7262 if test $ac_mid -le $ac_hi; then
7263 ac_lo= ac_hi=
7264 break
7266 ac_mid=`expr 2 '*' $ac_mid`
7268 rm -f conftest.$ac_objext conftest.$ac_ext
7269 done
7270 else
7271 echo "$as_me: failed program was:" >&5
7272 cat conftest.$ac_ext >&5
7273 ac_lo= ac_hi=
7275 rm -f conftest.$ac_objext conftest.$ac_ext
7277 rm -f conftest.$ac_objext conftest.$ac_ext
7278 # Binary search between lo and hi bounds.
7279 while test "x$ac_lo" != "x$ac_hi"; do
7280 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7281 cat >conftest.$ac_ext <<_ACEOF
7282 #line $LINENO "configure"
7283 #include "confdefs.h"
7284 $ac_includes_default
7285 #ifdef F77_DUMMY_MAIN
7286 # ifdef __cplusplus
7287 extern "C"
7288 # endif
7289 int F77_DUMMY_MAIN() { return 1; }
7290 #endif
7292 main ()
7294 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7295 test_array [0] = 0
7298 return 0;
7300 _ACEOF
7301 rm -f conftest.$ac_objext
7302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7303 (eval $ac_compile) 2>&5
7304 ac_status=$?
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } &&
7307 { ac_try='test -s conftest.$ac_objext'
7308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 (eval $ac_try) 2>&5
7310 ac_status=$?
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); }; }; then
7313 ac_hi=$ac_mid
7314 else
7315 echo "$as_me: failed program was:" >&5
7316 cat conftest.$ac_ext >&5
7317 ac_lo=`expr '(' $ac_mid ')' + 1`
7319 rm -f conftest.$ac_objext conftest.$ac_ext
7320 done
7321 case $ac_lo in
7322 ?*) ac_cv_sizeof_short=$ac_lo;;
7323 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7324 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7325 { (exit 1); exit 1; }; } ;;
7326 esac
7327 else
7328 if test "$cross_compiling" = yes; then
7329 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7330 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7331 { (exit 1); exit 1; }; }
7332 else
7333 cat >conftest.$ac_ext <<_ACEOF
7334 #line $LINENO "configure"
7335 #include "confdefs.h"
7336 $ac_includes_default
7337 long longval () { return (long) (sizeof (short)); }
7338 unsigned long ulongval () { return (long) (sizeof (short)); }
7339 #include <stdio.h>
7340 #include <stdlib.h>
7341 #ifdef F77_DUMMY_MAIN
7342 # ifdef __cplusplus
7343 extern "C"
7344 # endif
7345 int F77_DUMMY_MAIN() { return 1; }
7346 #endif
7348 main ()
7351 FILE *f = fopen ("conftest.val", "w");
7352 if (! f)
7353 exit (1);
7354 if (((long) (sizeof (short))) < 0)
7356 long i = longval ();
7357 if (i != ((long) (sizeof (short))))
7358 exit (1);
7359 fprintf (f, "%ld\n", i);
7361 else
7363 unsigned long i = ulongval ();
7364 if (i != ((long) (sizeof (short))))
7365 exit (1);
7366 fprintf (f, "%lu\n", i);
7368 exit (ferror (f) || fclose (f) != 0);
7371 return 0;
7373 _ACEOF
7374 rm -f conftest$ac_exeext
7375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7376 (eval $ac_link) 2>&5
7377 ac_status=$?
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381 (eval $ac_try) 2>&5
7382 ac_status=$?
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); }; }; then
7385 ac_cv_sizeof_short=`cat conftest.val`
7386 else
7387 echo "$as_me: program exited with status $ac_status" >&5
7388 echo "$as_me: failed program was:" >&5
7389 cat conftest.$ac_ext >&5
7390 ( exit $ac_status )
7391 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7392 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7393 { (exit 1); exit 1; }; }
7395 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7398 rm -f conftest.val
7399 else
7400 ac_cv_sizeof_short=0
7403 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7404 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7405 cat >>confdefs.h <<_ACEOF
7406 #define SIZEOF_SHORT $ac_cv_sizeof_short
7407 _ACEOF
7411 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7412 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7413 if test "${ac_cv_c_const+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416 cat >conftest.$ac_ext <<_ACEOF
7417 #line $LINENO "configure"
7418 #include "confdefs.h"
7420 #ifdef F77_DUMMY_MAIN
7421 # ifdef __cplusplus
7422 extern "C"
7423 # endif
7424 int F77_DUMMY_MAIN() { return 1; }
7425 #endif
7427 main ()
7429 /* FIXME: Include the comments suggested by Paul. */
7430 #ifndef __cplusplus
7431 /* Ultrix mips cc rejects this. */
7432 typedef int charset[2];
7433 const charset x;
7434 /* SunOS 4.1.1 cc rejects this. */
7435 char const *const *ccp;
7436 char **p;
7437 /* NEC SVR4.0.2 mips cc rejects this. */
7438 struct point {int x, y;};
7439 static struct point const zero = {0,0};
7440 /* AIX XL C 1.02.0.0 rejects this.
7441 It does not let you subtract one const X* pointer from another in
7442 an arm of an if-expression whose if-part is not a constant
7443 expression */
7444 const char *g = "string";
7445 ccp = &g + (g ? g-g : 0);
7446 /* HPUX 7.0 cc rejects these. */
7447 ++ccp;
7448 p = (char**) ccp;
7449 ccp = (char const *const *) p;
7450 { /* SCO 3.2v4 cc rejects this. */
7451 char *t;
7452 char const *s = 0 ? (char *) 0 : (char const *) 0;
7454 *t++ = 0;
7456 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7457 int x[] = {25, 17};
7458 const int *foo = &x[0];
7459 ++foo;
7461 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7462 typedef const int *iptr;
7463 iptr p = 0;
7464 ++p;
7466 { /* AIX XL C 1.02.0.0 rejects this saying
7467 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7468 struct s { int j; const int *ap[3]; };
7469 struct s *b; b->j = 5;
7471 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7472 const int foo = 10;
7474 #endif
7477 return 0;
7479 _ACEOF
7480 rm -f conftest.$ac_objext
7481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7482 (eval $ac_compile) 2>&5
7483 ac_status=$?
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } &&
7486 { ac_try='test -s conftest.$ac_objext'
7487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 (eval $ac_try) 2>&5
7489 ac_status=$?
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; }; then
7492 ac_cv_c_const=yes
7493 else
7494 echo "$as_me: failed program was:" >&5
7495 cat conftest.$ac_ext >&5
7496 ac_cv_c_const=no
7498 rm -f conftest.$ac_objext conftest.$ac_ext
7500 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7501 echo "${ECHO_T}$ac_cv_c_const" >&6
7502 if test $ac_cv_c_const = no; then
7504 cat >>confdefs.h <<\_ACEOF
7505 #define const
7506 _ACEOF
7510 echo "$as_me:$LINENO: checking for inline" >&5
7511 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7512 if test "${ac_cv_c_inline+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 else
7515 ac_cv_c_inline=no
7516 for ac_kw in inline __inline__ __inline; do
7517 cat >conftest.$ac_ext <<_ACEOF
7518 #line $LINENO "configure"
7519 #include "confdefs.h"
7520 #ifndef __cplusplus
7521 static $ac_kw int static_foo () {return 0; }
7522 $ac_kw int foo () {return 0; }
7523 #endif
7525 _ACEOF
7526 rm -f conftest.$ac_objext
7527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7528 (eval $ac_compile) 2>&5
7529 ac_status=$?
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } &&
7532 { ac_try='test -s conftest.$ac_objext'
7533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534 (eval $ac_try) 2>&5
7535 ac_status=$?
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); }; }; then
7538 ac_cv_c_inline=$ac_kw; break
7539 else
7540 echo "$as_me: failed program was:" >&5
7541 cat conftest.$ac_ext >&5
7543 rm -f conftest.$ac_objext conftest.$ac_ext
7544 done
7547 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7548 echo "${ECHO_T}$ac_cv_c_inline" >&6
7549 case $ac_cv_c_inline in
7550 inline | yes) ;;
7552 cat >>confdefs.h <<\_ACEOF
7553 #define inline
7554 _ACEOF
7556 *) cat >>confdefs.h <<_ACEOF
7557 #define inline $ac_cv_c_inline
7558 _ACEOF
7560 esac
7562 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7563 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7564 if test "${ac_cv_c_bigendian+set}" = set; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7566 else
7567 # See if sys/param.h defines the BYTE_ORDER macro.
7568 cat >conftest.$ac_ext <<_ACEOF
7569 #line $LINENO "configure"
7570 #include "confdefs.h"
7571 #include <sys/types.h>
7572 #include <sys/param.h>
7574 #ifdef F77_DUMMY_MAIN
7575 # ifdef __cplusplus
7576 extern "C"
7577 # endif
7578 int F77_DUMMY_MAIN() { return 1; }
7579 #endif
7581 main ()
7583 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7584 bogus endian macros
7585 #endif
7588 return 0;
7590 _ACEOF
7591 rm -f conftest.$ac_objext
7592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7593 (eval $ac_compile) 2>&5
7594 ac_status=$?
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } &&
7597 { ac_try='test -s conftest.$ac_objext'
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599 (eval $ac_try) 2>&5
7600 ac_status=$?
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; }; then
7603 # It does; now see whether it defined to BIG_ENDIAN or not.
7604 cat >conftest.$ac_ext <<_ACEOF
7605 #line $LINENO "configure"
7606 #include "confdefs.h"
7607 #include <sys/types.h>
7608 #include <sys/param.h>
7610 #ifdef F77_DUMMY_MAIN
7611 # ifdef __cplusplus
7612 extern "C"
7613 # endif
7614 int F77_DUMMY_MAIN() { return 1; }
7615 #endif
7617 main ()
7619 #if BYTE_ORDER != BIG_ENDIAN
7620 not big endian
7621 #endif
7624 return 0;
7626 _ACEOF
7627 rm -f conftest.$ac_objext
7628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7629 (eval $ac_compile) 2>&5
7630 ac_status=$?
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } &&
7633 { ac_try='test -s conftest.$ac_objext'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 (eval $ac_try) 2>&5
7636 ac_status=$?
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; }; then
7639 ac_cv_c_bigendian=yes
7640 else
7641 echo "$as_me: failed program was:" >&5
7642 cat conftest.$ac_ext >&5
7643 ac_cv_c_bigendian=no
7645 rm -f conftest.$ac_objext conftest.$ac_ext
7646 else
7647 echo "$as_me: failed program was:" >&5
7648 cat conftest.$ac_ext >&5
7649 # It does not; compile a test program.
7650 if test "$cross_compiling" = yes; then
7651 # try to guess the endianess by grep'ing values into an object file
7652 ac_cv_c_bigendian=unknown
7653 cat >conftest.$ac_ext <<_ACEOF
7654 #line $LINENO "configure"
7655 #include "confdefs.h"
7656 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7657 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7658 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7659 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7660 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7661 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7662 #ifdef F77_DUMMY_MAIN
7663 # ifdef __cplusplus
7664 extern "C"
7665 # endif
7666 int F77_DUMMY_MAIN() { return 1; }
7667 #endif
7669 main ()
7671 _ascii (); _ebcdic ();
7673 return 0;
7675 _ACEOF
7676 rm -f conftest.$ac_objext
7677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7678 (eval $ac_compile) 2>&5
7679 ac_status=$?
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } &&
7682 { ac_try='test -s conftest.$ac_objext'
7683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684 (eval $ac_try) 2>&5
7685 ac_status=$?
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; }; then
7688 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7689 ac_cv_c_bigendian=yes
7691 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7692 if test "$ac_cv_c_bigendian" = unknown; then
7693 ac_cv_c_bigendian=no
7694 else
7695 # finding both strings is unlikely to happen, but who knows?
7696 ac_cv_c_bigendian=unknown
7699 else
7700 echo "$as_me: failed program was:" >&5
7701 cat conftest.$ac_ext >&5
7703 rm -f conftest.$ac_objext conftest.$ac_ext
7704 else
7705 cat >conftest.$ac_ext <<_ACEOF
7706 #line $LINENO "configure"
7707 #include "confdefs.h"
7709 main ()
7711 /* Are we little or big endian? From Harbison&Steele. */
7712 union
7714 long l;
7715 char c[sizeof (long)];
7716 } u;
7717 u.l = 1;
7718 exit (u.c[sizeof (long) - 1] == 1);
7720 _ACEOF
7721 rm -f conftest$ac_exeext
7722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7723 (eval $ac_link) 2>&5
7724 ac_status=$?
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728 (eval $ac_try) 2>&5
7729 ac_status=$?
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; }; then
7732 ac_cv_c_bigendian=no
7733 else
7734 echo "$as_me: program exited with status $ac_status" >&5
7735 echo "$as_me: failed program was:" >&5
7736 cat conftest.$ac_ext >&5
7737 ( exit $ac_status )
7738 ac_cv_c_bigendian=yes
7740 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7743 rm -f conftest.$ac_objext conftest.$ac_ext
7745 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7746 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7747 case $ac_cv_c_bigendian in
7748 yes)
7750 cat >>confdefs.h <<\_ACEOF
7751 #define WORDS_BIGENDIAN 1
7752 _ACEOF
7757 { { echo "$as_me:$LINENO: error: unknown endianess
7758 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7759 echo "$as_me: error: unknown endianess
7760 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7761 { (exit 1); exit 1; }; } ;;
7762 esac
7765 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
7766 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
7767 if test "${ac_cv_c_char_unsigned+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7769 else
7770 cat >conftest.$ac_ext <<_ACEOF
7771 #line $LINENO "configure"
7772 #include "confdefs.h"
7773 $ac_includes_default
7774 #ifdef F77_DUMMY_MAIN
7775 # ifdef __cplusplus
7776 extern "C"
7777 # endif
7778 int F77_DUMMY_MAIN() { return 1; }
7779 #endif
7781 main ()
7783 static int test_array [1 - 2 * !(((char) -1) < 0)];
7784 test_array [0] = 0
7787 return 0;
7789 _ACEOF
7790 rm -f conftest.$ac_objext
7791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7792 (eval $ac_compile) 2>&5
7793 ac_status=$?
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } &&
7796 { ac_try='test -s conftest.$ac_objext'
7797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798 (eval $ac_try) 2>&5
7799 ac_status=$?
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); }; }; then
7802 ac_cv_c_char_unsigned=no
7803 else
7804 echo "$as_me: failed program was:" >&5
7805 cat conftest.$ac_ext >&5
7806 ac_cv_c_char_unsigned=yes
7808 rm -f conftest.$ac_objext conftest.$ac_ext
7810 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
7811 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
7812 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
7813 cat >>confdefs.h <<\_ACEOF
7814 #define __CHAR_UNSIGNED__ 1
7815 _ACEOF
7820 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7821 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7822 if test "${ac_cv_type_signal+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 else
7825 cat >conftest.$ac_ext <<_ACEOF
7826 #line $LINENO "configure"
7827 #include "confdefs.h"
7828 #include <sys/types.h>
7829 #include <signal.h>
7830 #ifdef signal
7831 # undef signal
7832 #endif
7833 #ifdef __cplusplus
7834 extern "C" void (*signal (int, void (*)(int)))(int);
7835 #else
7836 void (*signal ()) ();
7837 #endif
7839 #ifdef F77_DUMMY_MAIN
7840 # ifdef __cplusplus
7841 extern "C"
7842 # endif
7843 int F77_DUMMY_MAIN() { return 1; }
7844 #endif
7846 main ()
7848 int i;
7850 return 0;
7852 _ACEOF
7853 rm -f conftest.$ac_objext
7854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7855 (eval $ac_compile) 2>&5
7856 ac_status=$?
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } &&
7859 { ac_try='test -s conftest.$ac_objext'
7860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7861 (eval $ac_try) 2>&5
7862 ac_status=$?
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); }; }; then
7865 ac_cv_type_signal=void
7866 else
7867 echo "$as_me: failed program was:" >&5
7868 cat conftest.$ac_ext >&5
7869 ac_cv_type_signal=int
7871 rm -f conftest.$ac_objext conftest.$ac_ext
7873 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7874 echo "${ECHO_T}$ac_cv_type_signal" >&6
7876 cat >>confdefs.h <<_ACEOF
7877 #define RETSIGTYPE $ac_cv_type_signal
7878 _ACEOF
7881 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7882 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7883 if test "${ac_cv_type_uid_t+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 else
7886 cat >conftest.$ac_ext <<_ACEOF
7887 #line $LINENO "configure"
7888 #include "confdefs.h"
7889 #include <sys/types.h>
7891 _ACEOF
7892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7893 egrep "uid_t" >/dev/null 2>&1; then
7894 ac_cv_type_uid_t=yes
7895 else
7896 ac_cv_type_uid_t=no
7898 rm -f conftest*
7901 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7902 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7903 if test $ac_cv_type_uid_t = no; then
7905 cat >>confdefs.h <<\_ACEOF
7906 #define uid_t int
7907 _ACEOF
7910 cat >>confdefs.h <<\_ACEOF
7911 #define gid_t int
7912 _ACEOF
7916 echo "$as_me:$LINENO: checking for mode_t" >&5
7917 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7918 if test "${ac_cv_type_mode_t+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921 cat >conftest.$ac_ext <<_ACEOF
7922 #line $LINENO "configure"
7923 #include "confdefs.h"
7924 $ac_includes_default
7925 #ifdef F77_DUMMY_MAIN
7926 # ifdef __cplusplus
7927 extern "C"
7928 # endif
7929 int F77_DUMMY_MAIN() { return 1; }
7930 #endif
7932 main ()
7934 if ((mode_t *) 0)
7935 return 0;
7936 if (sizeof (mode_t))
7937 return 0;
7939 return 0;
7941 _ACEOF
7942 rm -f conftest.$ac_objext
7943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7944 (eval $ac_compile) 2>&5
7945 ac_status=$?
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } &&
7948 { ac_try='test -s conftest.$ac_objext'
7949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950 (eval $ac_try) 2>&5
7951 ac_status=$?
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; }; then
7954 ac_cv_type_mode_t=yes
7955 else
7956 echo "$as_me: failed program was:" >&5
7957 cat conftest.$ac_ext >&5
7958 ac_cv_type_mode_t=no
7960 rm -f conftest.$ac_objext conftest.$ac_ext
7962 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7963 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7964 if test $ac_cv_type_mode_t = yes; then
7966 else
7968 cat >>confdefs.h <<_ACEOF
7969 #define mode_t int
7970 _ACEOF
7974 echo "$as_me:$LINENO: checking for off_t" >&5
7975 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7976 if test "${ac_cv_type_off_t+set}" = set; then
7977 echo $ECHO_N "(cached) $ECHO_C" >&6
7978 else
7979 cat >conftest.$ac_ext <<_ACEOF
7980 #line $LINENO "configure"
7981 #include "confdefs.h"
7982 $ac_includes_default
7983 #ifdef F77_DUMMY_MAIN
7984 # ifdef __cplusplus
7985 extern "C"
7986 # endif
7987 int F77_DUMMY_MAIN() { return 1; }
7988 #endif
7990 main ()
7992 if ((off_t *) 0)
7993 return 0;
7994 if (sizeof (off_t))
7995 return 0;
7997 return 0;
7999 _ACEOF
8000 rm -f conftest.$ac_objext
8001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8002 (eval $ac_compile) 2>&5
8003 ac_status=$?
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } &&
8006 { ac_try='test -s conftest.$ac_objext'
8007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008 (eval $ac_try) 2>&5
8009 ac_status=$?
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); }; }; then
8012 ac_cv_type_off_t=yes
8013 else
8014 echo "$as_me: failed program was:" >&5
8015 cat conftest.$ac_ext >&5
8016 ac_cv_type_off_t=no
8018 rm -f conftest.$ac_objext conftest.$ac_ext
8020 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8021 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8022 if test $ac_cv_type_off_t = yes; then
8024 else
8026 cat >>confdefs.h <<_ACEOF
8027 #define off_t long
8028 _ACEOF
8032 echo "$as_me:$LINENO: checking for size_t" >&5
8033 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8034 if test "${ac_cv_type_size_t+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8036 else
8037 cat >conftest.$ac_ext <<_ACEOF
8038 #line $LINENO "configure"
8039 #include "confdefs.h"
8040 $ac_includes_default
8041 #ifdef F77_DUMMY_MAIN
8042 # ifdef __cplusplus
8043 extern "C"
8044 # endif
8045 int F77_DUMMY_MAIN() { return 1; }
8046 #endif
8048 main ()
8050 if ((size_t *) 0)
8051 return 0;
8052 if (sizeof (size_t))
8053 return 0;
8055 return 0;
8057 _ACEOF
8058 rm -f conftest.$ac_objext
8059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8060 (eval $ac_compile) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } &&
8064 { ac_try='test -s conftest.$ac_objext'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 (eval $ac_try) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8070 ac_cv_type_size_t=yes
8071 else
8072 echo "$as_me: failed program was:" >&5
8073 cat conftest.$ac_ext >&5
8074 ac_cv_type_size_t=no
8076 rm -f conftest.$ac_objext conftest.$ac_ext
8078 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8079 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8080 if test $ac_cv_type_size_t = yes; then
8082 else
8084 cat >>confdefs.h <<_ACEOF
8085 #define size_t unsigned
8086 _ACEOF
8090 echo "$as_me:$LINENO: checking for pid_t" >&5
8091 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8092 if test "${ac_cv_type_pid_t+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 else
8095 cat >conftest.$ac_ext <<_ACEOF
8096 #line $LINENO "configure"
8097 #include "confdefs.h"
8098 $ac_includes_default
8099 #ifdef F77_DUMMY_MAIN
8100 # ifdef __cplusplus
8101 extern "C"
8102 # endif
8103 int F77_DUMMY_MAIN() { return 1; }
8104 #endif
8106 main ()
8108 if ((pid_t *) 0)
8109 return 0;
8110 if (sizeof (pid_t))
8111 return 0;
8113 return 0;
8115 _ACEOF
8116 rm -f conftest.$ac_objext
8117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8118 (eval $ac_compile) 2>&5
8119 ac_status=$?
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try='test -s conftest.$ac_objext'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 (eval $ac_try) 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
8128 ac_cv_type_pid_t=yes
8129 else
8130 echo "$as_me: failed program was:" >&5
8131 cat conftest.$ac_ext >&5
8132 ac_cv_type_pid_t=no
8134 rm -f conftest.$ac_objext conftest.$ac_ext
8136 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8137 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8138 if test $ac_cv_type_pid_t = yes; then
8140 else
8142 cat >>confdefs.h <<_ACEOF
8143 #define pid_t int
8144 _ACEOF
8149 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
8150 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
8151 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8153 else
8154 cat >conftest.$ac_ext <<_ACEOF
8155 #line $LINENO "configure"
8156 #include "confdefs.h"
8157 $ac_includes_default
8158 #ifdef F77_DUMMY_MAIN
8159 # ifdef __cplusplus
8160 extern "C"
8161 # endif
8162 int F77_DUMMY_MAIN() { return 1; }
8163 #endif
8165 main ()
8167 static struct stat ac_aggr;
8168 if (ac_aggr.st_rdev)
8169 return 0;
8171 return 0;
8173 _ACEOF
8174 rm -f conftest.$ac_objext
8175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8176 (eval $ac_compile) 2>&5
8177 ac_status=$?
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } &&
8180 { ac_try='test -s conftest.$ac_objext'
8181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182 (eval $ac_try) 2>&5
8183 ac_status=$?
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }; }; then
8186 ac_cv_member_struct_stat_st_rdev=yes
8187 else
8188 echo "$as_me: failed program was:" >&5
8189 cat conftest.$ac_ext >&5
8190 ac_cv_member_struct_stat_st_rdev=no
8192 rm -f conftest.$ac_objext conftest.$ac_ext
8194 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
8195 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
8196 if test $ac_cv_member_struct_stat_st_rdev = yes; then
8198 cat >>confdefs.h <<_ACEOF
8199 #define HAVE_STRUCT_STAT_ST_RDEV 1
8200 _ACEOF
8203 cat >>confdefs.h <<\_ACEOF
8204 #define HAVE_ST_RDEV 1
8205 _ACEOF
8210 echo "$as_me:$LINENO: checking for d_off in dirent" >&5
8211 echo $ECHO_N "checking for d_off in dirent... $ECHO_C" >&6
8212 if test "${ac_cv_dirent_d_off+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 else
8215 cat >conftest.$ac_ext <<_ACEOF
8216 #line $LINENO "configure"
8217 #include "confdefs.h"
8219 #include <unistd.h>
8220 #include <sys/types.h>
8221 #include <dirent.h>
8222 #ifdef F77_DUMMY_MAIN
8223 # ifdef __cplusplus
8224 extern "C"
8225 # endif
8226 int F77_DUMMY_MAIN() { return 1; }
8227 #endif
8229 main ()
8231 struct dirent d; d.d_off;
8233 return 0;
8235 _ACEOF
8236 rm -f conftest.$ac_objext
8237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8238 (eval $ac_compile) 2>&5
8239 ac_status=$?
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } &&
8242 { ac_try='test -s conftest.$ac_objext'
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244 (eval $ac_try) 2>&5
8245 ac_status=$?
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; }; then
8248 ac_cv_dirent_d_off=yes
8249 else
8250 echo "$as_me: failed program was:" >&5
8251 cat conftest.$ac_ext >&5
8252 ac_cv_dirent_d_off=no
8254 rm -f conftest.$ac_objext conftest.$ac_ext
8256 echo "$as_me:$LINENO: result: $ac_cv_dirent_d_off" >&5
8257 echo "${ECHO_T}$ac_cv_dirent_d_off" >&6
8258 if test $ac_cv_dirent_d_off = yes; then
8260 cat >>confdefs.h <<\_ACEOF
8261 #define HAVE_DIRENT_D_OFF 1
8262 _ACEOF
8266 echo "$as_me:$LINENO: checking for ino_t" >&5
8267 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
8268 if test "${ac_cv_type_ino_t+set}" = set; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8270 else
8271 cat >conftest.$ac_ext <<_ACEOF
8272 #line $LINENO "configure"
8273 #include "confdefs.h"
8274 $ac_includes_default
8275 #ifdef F77_DUMMY_MAIN
8276 # ifdef __cplusplus
8277 extern "C"
8278 # endif
8279 int F77_DUMMY_MAIN() { return 1; }
8280 #endif
8282 main ()
8284 if ((ino_t *) 0)
8285 return 0;
8286 if (sizeof (ino_t))
8287 return 0;
8289 return 0;
8291 _ACEOF
8292 rm -f conftest.$ac_objext
8293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8294 (eval $ac_compile) 2>&5
8295 ac_status=$?
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
8298 { ac_try='test -s conftest.$ac_objext'
8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 (eval $ac_try) 2>&5
8301 ac_status=$?
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; }; then
8304 ac_cv_type_ino_t=yes
8305 else
8306 echo "$as_me: failed program was:" >&5
8307 cat conftest.$ac_ext >&5
8308 ac_cv_type_ino_t=no
8310 rm -f conftest.$ac_objext conftest.$ac_ext
8312 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
8313 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
8314 if test $ac_cv_type_ino_t = yes; then
8316 else
8318 cat >>confdefs.h <<_ACEOF
8319 #define ino_t unsigned
8320 _ACEOF
8324 echo "$as_me:$LINENO: checking for loff_t" >&5
8325 echo $ECHO_N "checking for loff_t... $ECHO_C" >&6
8326 if test "${ac_cv_type_loff_t+set}" = set; then
8327 echo $ECHO_N "(cached) $ECHO_C" >&6
8328 else
8329 cat >conftest.$ac_ext <<_ACEOF
8330 #line $LINENO "configure"
8331 #include "confdefs.h"
8332 $ac_includes_default
8333 #ifdef F77_DUMMY_MAIN
8334 # ifdef __cplusplus
8335 extern "C"
8336 # endif
8337 int F77_DUMMY_MAIN() { return 1; }
8338 #endif
8340 main ()
8342 if ((loff_t *) 0)
8343 return 0;
8344 if (sizeof (loff_t))
8345 return 0;
8347 return 0;
8349 _ACEOF
8350 rm -f conftest.$ac_objext
8351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8352 (eval $ac_compile) 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } &&
8356 { ac_try='test -s conftest.$ac_objext'
8357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358 (eval $ac_try) 2>&5
8359 ac_status=$?
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; }; then
8362 ac_cv_type_loff_t=yes
8363 else
8364 echo "$as_me: failed program was:" >&5
8365 cat conftest.$ac_ext >&5
8366 ac_cv_type_loff_t=no
8368 rm -f conftest.$ac_objext conftest.$ac_ext
8370 echo "$as_me:$LINENO: result: $ac_cv_type_loff_t" >&5
8371 echo "${ECHO_T}$ac_cv_type_loff_t" >&6
8372 if test $ac_cv_type_loff_t = yes; then
8374 else
8376 cat >>confdefs.h <<_ACEOF
8377 #define loff_t off_t
8378 _ACEOF
8382 echo "$as_me:$LINENO: checking for offset_t" >&5
8383 echo $ECHO_N "checking for offset_t... $ECHO_C" >&6
8384 if test "${ac_cv_type_offset_t+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 else
8387 cat >conftest.$ac_ext <<_ACEOF
8388 #line $LINENO "configure"
8389 #include "confdefs.h"
8390 $ac_includes_default
8391 #ifdef F77_DUMMY_MAIN
8392 # ifdef __cplusplus
8393 extern "C"
8394 # endif
8395 int F77_DUMMY_MAIN() { return 1; }
8396 #endif
8398 main ()
8400 if ((offset_t *) 0)
8401 return 0;
8402 if (sizeof (offset_t))
8403 return 0;
8405 return 0;
8407 _ACEOF
8408 rm -f conftest.$ac_objext
8409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8410 (eval $ac_compile) 2>&5
8411 ac_status=$?
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } &&
8414 { ac_try='test -s conftest.$ac_objext'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 (eval $ac_try) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 ac_cv_type_offset_t=yes
8421 else
8422 echo "$as_me: failed program was:" >&5
8423 cat conftest.$ac_ext >&5
8424 ac_cv_type_offset_t=no
8426 rm -f conftest.$ac_objext conftest.$ac_ext
8428 echo "$as_me:$LINENO: result: $ac_cv_type_offset_t" >&5
8429 echo "${ECHO_T}$ac_cv_type_offset_t" >&6
8430 if test $ac_cv_type_offset_t = yes; then
8432 else
8434 cat >>confdefs.h <<_ACEOF
8435 #define offset_t loff_t
8436 _ACEOF
8440 echo "$as_me:$LINENO: checking for ssize_t" >&5
8441 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
8442 if test "${ac_cv_type_ssize_t+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8444 else
8445 cat >conftest.$ac_ext <<_ACEOF
8446 #line $LINENO "configure"
8447 #include "confdefs.h"
8448 $ac_includes_default
8449 #ifdef F77_DUMMY_MAIN
8450 # ifdef __cplusplus
8451 extern "C"
8452 # endif
8453 int F77_DUMMY_MAIN() { return 1; }
8454 #endif
8456 main ()
8458 if ((ssize_t *) 0)
8459 return 0;
8460 if (sizeof (ssize_t))
8461 return 0;
8463 return 0;
8465 _ACEOF
8466 rm -f conftest.$ac_objext
8467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8468 (eval $ac_compile) 2>&5
8469 ac_status=$?
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } &&
8472 { ac_try='test -s conftest.$ac_objext'
8473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 (eval $ac_try) 2>&5
8475 ac_status=$?
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; }; then
8478 ac_cv_type_ssize_t=yes
8479 else
8480 echo "$as_me: failed program was:" >&5
8481 cat conftest.$ac_ext >&5
8482 ac_cv_type_ssize_t=no
8484 rm -f conftest.$ac_objext conftest.$ac_ext
8486 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8487 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
8488 if test $ac_cv_type_ssize_t = yes; then
8490 else
8492 cat >>confdefs.h <<_ACEOF
8493 #define ssize_t int
8494 _ACEOF
8498 echo "$as_me:$LINENO: checking for wchar_t" >&5
8499 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
8500 if test "${ac_cv_type_wchar_t+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 else
8503 cat >conftest.$ac_ext <<_ACEOF
8504 #line $LINENO "configure"
8505 #include "confdefs.h"
8506 $ac_includes_default
8507 #ifdef F77_DUMMY_MAIN
8508 # ifdef __cplusplus
8509 extern "C"
8510 # endif
8511 int F77_DUMMY_MAIN() { return 1; }
8512 #endif
8514 main ()
8516 if ((wchar_t *) 0)
8517 return 0;
8518 if (sizeof (wchar_t))
8519 return 0;
8521 return 0;
8523 _ACEOF
8524 rm -f conftest.$ac_objext
8525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8526 (eval $ac_compile) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } &&
8530 { ac_try='test -s conftest.$ac_objext'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 (eval $ac_try) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8536 ac_cv_type_wchar_t=yes
8537 else
8538 echo "$as_me: failed program was:" >&5
8539 cat conftest.$ac_ext >&5
8540 ac_cv_type_wchar_t=no
8542 rm -f conftest.$ac_objext conftest.$ac_ext
8544 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
8545 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
8546 if test $ac_cv_type_wchar_t = yes; then
8548 else
8550 cat >>confdefs.h <<_ACEOF
8551 #define wchar_t unsigned short
8552 _ACEOF
8557 ############################################
8558 # for cups support we need libcups, and a handful of header files
8560 # Check whether --enable-cups or --disable-cups was given.
8561 if test "${enable_cups+set}" = set; then
8562 enableval="$enable_cups"
8566 if test x$enable_cups != xno; then
8567 # Extract the first word of "cups-config", so it can be a program name with args.
8568 set dummy cups-config; ac_word=$2
8569 echo "$as_me:$LINENO: checking for $ac_word" >&5
8570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8571 if test "${ac_cv_path_CUPS_CONFIG+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8573 else
8574 case $CUPS_CONFIG in
8575 [\\/]* | ?:[\\/]*)
8576 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
8579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8580 for as_dir in $PATH
8582 IFS=$as_save_IFS
8583 test -z "$as_dir" && as_dir=.
8584 for ac_exec_ext in '' $ac_executable_extensions; do
8585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8586 ac_cv_path_CUPS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8588 break 2
8590 done
8591 done
8594 esac
8596 CUPS_CONFIG=$ac_cv_path_CUPS_CONFIG
8598 if test -n "$CUPS_CONFIG"; then
8599 echo "$as_me:$LINENO: result: $CUPS_CONFIG" >&5
8600 echo "${ECHO_T}$CUPS_CONFIG" >&6
8601 else
8602 echo "$as_me:$LINENO: result: no" >&5
8603 echo "${ECHO_T}no" >&6
8607 if test "x$CUPS_CONFIG" != x; then
8609 cat >>confdefs.h <<\_ACEOF
8610 #define HAVE_CUPS 1
8611 _ACEOF
8613 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
8614 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
8615 PRINTLIBS="$PRINTLIBS `$CUPS_CONFIG --libs`"
8619 ############################################
8620 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
8621 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8622 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
8623 if test "${ac_cv_search_dlopen+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8625 else
8626 ac_func_search_save_LIBS=$LIBS
8627 ac_cv_search_dlopen=no
8628 cat >conftest.$ac_ext <<_ACEOF
8629 #line $LINENO "configure"
8630 #include "confdefs.h"
8632 /* Override any gcc2 internal prototype to avoid an error. */
8633 #ifdef __cplusplus
8634 extern "C"
8635 #endif
8636 /* We use char because int might match the return type of a gcc2
8637 builtin and then its argument prototype would still apply. */
8638 char dlopen ();
8639 #ifdef F77_DUMMY_MAIN
8640 # ifdef __cplusplus
8641 extern "C"
8642 # endif
8643 int F77_DUMMY_MAIN() { return 1; }
8644 #endif
8646 main ()
8648 dlopen ();
8650 return 0;
8652 _ACEOF
8653 rm -f conftest.$ac_objext conftest$ac_exeext
8654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8655 (eval $ac_link) 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } &&
8659 { ac_try='test -s conftest$ac_exeext'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 (eval $ac_try) 2>&5
8662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8665 ac_cv_search_dlopen="none required"
8666 else
8667 echo "$as_me: failed program was:" >&5
8668 cat conftest.$ac_ext >&5
8670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8671 if test "$ac_cv_search_dlopen" = no; then
8672 for ac_lib in dl; do
8673 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8674 cat >conftest.$ac_ext <<_ACEOF
8675 #line $LINENO "configure"
8676 #include "confdefs.h"
8678 /* Override any gcc2 internal prototype to avoid an error. */
8679 #ifdef __cplusplus
8680 extern "C"
8681 #endif
8682 /* We use char because int might match the return type of a gcc2
8683 builtin and then its argument prototype would still apply. */
8684 char dlopen ();
8685 #ifdef F77_DUMMY_MAIN
8686 # ifdef __cplusplus
8687 extern "C"
8688 # endif
8689 int F77_DUMMY_MAIN() { return 1; }
8690 #endif
8692 main ()
8694 dlopen ();
8696 return 0;
8698 _ACEOF
8699 rm -f conftest.$ac_objext conftest$ac_exeext
8700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8701 (eval $ac_link) 2>&5
8702 ac_status=$?
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } &&
8705 { ac_try='test -s conftest$ac_exeext'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 (eval $ac_try) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_cv_search_dlopen="-l$ac_lib"
8712 break
8713 else
8714 echo "$as_me: failed program was:" >&5
8715 cat conftest.$ac_ext >&5
8717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8718 done
8720 LIBS=$ac_func_search_save_LIBS
8722 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8723 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
8724 if test "$ac_cv_search_dlopen" != no; then
8725 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
8729 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
8731 ############################################
8732 # check if the compiler can do immediate structures
8733 echo "$as_me:$LINENO: checking for immediate structures" >&5
8734 echo $ECHO_N "checking for immediate structures... $ECHO_C" >&6
8735 if test "${samba_cv_immediate_structures+set}" = set; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8737 else
8739 cat >conftest.$ac_ext <<_ACEOF
8740 #line $LINENO "configure"
8741 #include "confdefs.h"
8743 #include <stdio.h>
8744 #ifdef F77_DUMMY_MAIN
8745 # ifdef __cplusplus
8746 extern "C"
8747 # endif
8748 int F77_DUMMY_MAIN() { return 1; }
8749 #endif
8751 main ()
8754 typedef struct {unsigned x;} FOOBAR;
8755 #define X_FOOBAR(x) ((FOOBAR) { x })
8756 #define FOO_ONE X_FOOBAR(1)
8757 FOOBAR f = FOO_ONE;
8758 static struct {
8759 FOOBAR y;
8760 } f2[] = {
8761 {FOO_ONE}
8765 return 0;
8767 _ACEOF
8768 rm -f conftest.$ac_objext
8769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8770 (eval $ac_compile) 2>&5
8771 ac_status=$?
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } &&
8774 { ac_try='test -s conftest.$ac_objext'
8775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776 (eval $ac_try) 2>&5
8777 ac_status=$?
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; }; then
8780 samba_cv_immediate_structures=yes
8781 else
8782 echo "$as_me: failed program was:" >&5
8783 cat conftest.$ac_ext >&5
8784 samba_cv_immediate_structures=no
8786 rm -f conftest.$ac_objext conftest.$ac_ext
8788 echo "$as_me:$LINENO: result: $samba_cv_immediate_structures" >&5
8789 echo "${ECHO_T}$samba_cv_immediate_structures" >&6
8790 if test x"$samba_cv_immediate_structures" = x"yes"; then
8792 cat >>confdefs.h <<\_ACEOF
8793 #define HAVE_IMMEDIATE_STRUCTURES 1
8794 _ACEOF
8798 ############################################
8799 # check for unix domain sockets
8800 echo "$as_me:$LINENO: checking for unix domain sockets" >&5
8801 echo $ECHO_N "checking for unix domain sockets... $ECHO_C" >&6
8802 if test "${samba_cv_unixsocket+set}" = set; then
8803 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 else
8806 cat >conftest.$ac_ext <<_ACEOF
8807 #line $LINENO "configure"
8808 #include "confdefs.h"
8810 #include <sys/types.h>
8811 #include <stdlib.h>
8812 #include <stddef.h>
8813 #include <sys/socket.h>
8814 #include <sys/un.h>
8815 #ifdef F77_DUMMY_MAIN
8816 # ifdef __cplusplus
8817 extern "C"
8818 # endif
8819 int F77_DUMMY_MAIN() { return 1; }
8820 #endif
8822 main ()
8825 struct sockaddr_un sunaddr;
8826 sunaddr.sun_family = AF_UNIX;
8829 return 0;
8831 _ACEOF
8832 rm -f conftest.$ac_objext
8833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8834 (eval $ac_compile) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } &&
8838 { ac_try='test -s conftest.$ac_objext'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 (eval $ac_try) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8844 samba_cv_unixsocket=yes
8845 else
8846 echo "$as_me: failed program was:" >&5
8847 cat conftest.$ac_ext >&5
8848 samba_cv_unixsocket=no
8850 rm -f conftest.$ac_objext conftest.$ac_ext
8852 echo "$as_me:$LINENO: result: $samba_cv_unixsocket" >&5
8853 echo "${ECHO_T}$samba_cv_unixsocket" >&6
8854 if test x"$samba_cv_unixsocket" = x"yes"; then
8856 cat >>confdefs.h <<\_ACEOF
8857 #define HAVE_UNIXSOCKET 1
8858 _ACEOF
8863 echo "$as_me:$LINENO: checking for socklen_t type" >&5
8864 echo $ECHO_N "checking for socklen_t type... $ECHO_C" >&6
8865 if test "${samba_cv_socklen_t+set}" = set; then
8866 echo $ECHO_N "(cached) $ECHO_C" >&6
8867 else
8869 cat >conftest.$ac_ext <<_ACEOF
8870 #line $LINENO "configure"
8871 #include "confdefs.h"
8873 #include <sys/types.h>
8874 #if STDC_HEADERS
8875 #include <stdlib.h>
8876 #include <stddef.h>
8877 #endif
8878 #include <sys/socket.h>
8879 #ifdef F77_DUMMY_MAIN
8880 # ifdef __cplusplus
8881 extern "C"
8882 # endif
8883 int F77_DUMMY_MAIN() { return 1; }
8884 #endif
8886 main ()
8888 socklen_t i = 0
8890 return 0;
8892 _ACEOF
8893 rm -f conftest.$ac_objext
8894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8895 (eval $ac_compile) 2>&5
8896 ac_status=$?
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } &&
8899 { ac_try='test -s conftest.$ac_objext'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901 (eval $ac_try) 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 samba_cv_socklen_t=yes
8906 else
8907 echo "$as_me: failed program was:" >&5
8908 cat conftest.$ac_ext >&5
8909 samba_cv_socklen_t=no
8911 rm -f conftest.$ac_objext conftest.$ac_ext
8913 echo "$as_me:$LINENO: result: $samba_cv_socklen_t" >&5
8914 echo "${ECHO_T}$samba_cv_socklen_t" >&6
8915 if test x"$samba_cv_socklen_t" = x"yes"; then
8917 cat >>confdefs.h <<\_ACEOF
8918 #define HAVE_SOCKLEN_T_TYPE 1
8919 _ACEOF
8923 echo "$as_me:$LINENO: checking for sig_atomic_t type" >&5
8924 echo $ECHO_N "checking for sig_atomic_t type... $ECHO_C" >&6
8925 if test "${samba_cv_sig_atomic_t+set}" = set; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8927 else
8929 cat >conftest.$ac_ext <<_ACEOF
8930 #line $LINENO "configure"
8931 #include "confdefs.h"
8933 #include <sys/types.h>
8934 #if STDC_HEADERS
8935 #include <stdlib.h>
8936 #include <stddef.h>
8937 #endif
8938 #include <signal.h>
8939 #ifdef F77_DUMMY_MAIN
8940 # ifdef __cplusplus
8941 extern "C"
8942 # endif
8943 int F77_DUMMY_MAIN() { return 1; }
8944 #endif
8946 main ()
8948 sig_atomic_t i = 0
8950 return 0;
8952 _ACEOF
8953 rm -f conftest.$ac_objext
8954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8955 (eval $ac_compile) 2>&5
8956 ac_status=$?
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } &&
8959 { ac_try='test -s conftest.$ac_objext'
8960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961 (eval $ac_try) 2>&5
8962 ac_status=$?
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); }; }; then
8965 samba_cv_sig_atomic_t=yes
8966 else
8967 echo "$as_me: failed program was:" >&5
8968 cat conftest.$ac_ext >&5
8969 samba_cv_sig_atomic_t=no
8971 rm -f conftest.$ac_objext conftest.$ac_ext
8973 echo "$as_me:$LINENO: result: $samba_cv_sig_atomic_t" >&5
8974 echo "${ECHO_T}$samba_cv_sig_atomic_t" >&6
8975 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
8977 cat >>confdefs.h <<\_ACEOF
8978 #define HAVE_SIG_ATOMIC_T_TYPE 1
8979 _ACEOF
8983 # stupid headers have the functions but no declaration. grrrr.
8985 echo "$as_me:$LINENO: checking for errno declaration" >&5
8986 echo $ECHO_N "checking for errno declaration... $ECHO_C" >&6
8987 if test "${ac_cv_have_errno_decl+set}" = set; then
8988 echo $ECHO_N "(cached) $ECHO_C" >&6
8989 else
8991 cat >conftest.$ac_ext <<_ACEOF
8992 #line $LINENO "configure"
8993 #include "confdefs.h"
8994 #include <errno.h>
8995 #ifdef F77_DUMMY_MAIN
8996 # ifdef __cplusplus
8997 extern "C"
8998 # endif
8999 int F77_DUMMY_MAIN() { return 1; }
9000 #endif
9002 main ()
9004 int i = (int)errno
9006 return 0;
9008 _ACEOF
9009 rm -f conftest.$ac_objext
9010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9011 (eval $ac_compile) 2>&5
9012 ac_status=$?
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); } &&
9015 { ac_try='test -s conftest.$ac_objext'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017 (eval $ac_try) 2>&5
9018 ac_status=$?
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; }; then
9021 ac_cv_have_errno_decl=yes
9022 else
9023 echo "$as_me: failed program was:" >&5
9024 cat conftest.$ac_ext >&5
9025 ac_cv_have_errno_decl=no
9027 rm -f conftest.$ac_objext conftest.$ac_ext
9029 echo "$as_me:$LINENO: result: $ac_cv_have_errno_decl" >&5
9030 echo "${ECHO_T}$ac_cv_have_errno_decl" >&6
9031 if test x"$ac_cv_have_errno_decl" = x"yes"; then
9033 cat >>confdefs.h <<\_ACEOF
9034 #define HAVE_ERRNO_DECL 1
9035 _ACEOF
9040 echo "$as_me:$LINENO: checking for setresuid declaration" >&5
9041 echo $ECHO_N "checking for setresuid declaration... $ECHO_C" >&6
9042 if test "${ac_cv_have_setresuid_decl+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9044 else
9046 cat >conftest.$ac_ext <<_ACEOF
9047 #line $LINENO "configure"
9048 #include "confdefs.h"
9049 #include <unistd.h>
9050 #ifdef F77_DUMMY_MAIN
9051 # ifdef __cplusplus
9052 extern "C"
9053 # endif
9054 int F77_DUMMY_MAIN() { return 1; }
9055 #endif
9057 main ()
9059 int i = (int)setresuid
9061 return 0;
9063 _ACEOF
9064 rm -f conftest.$ac_objext
9065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9066 (eval $ac_compile) 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); } &&
9070 { ac_try='test -s conftest.$ac_objext'
9071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072 (eval $ac_try) 2>&5
9073 ac_status=$?
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; }; then
9076 ac_cv_have_setresuid_decl=yes
9077 else
9078 echo "$as_me: failed program was:" >&5
9079 cat conftest.$ac_ext >&5
9080 ac_cv_have_setresuid_decl=no
9082 rm -f conftest.$ac_objext conftest.$ac_ext
9084 echo "$as_me:$LINENO: result: $ac_cv_have_setresuid_decl" >&5
9085 echo "${ECHO_T}$ac_cv_have_setresuid_decl" >&6
9086 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
9088 cat >>confdefs.h <<\_ACEOF
9089 #define HAVE_SETRESUID_DECL 1
9090 _ACEOF
9095 echo "$as_me:$LINENO: checking for setresgid declaration" >&5
9096 echo $ECHO_N "checking for setresgid declaration... $ECHO_C" >&6
9097 if test "${ac_cv_have_setresgid_decl+set}" = set; then
9098 echo $ECHO_N "(cached) $ECHO_C" >&6
9099 else
9101 cat >conftest.$ac_ext <<_ACEOF
9102 #line $LINENO "configure"
9103 #include "confdefs.h"
9104 #include <unistd.h>
9105 #ifdef F77_DUMMY_MAIN
9106 # ifdef __cplusplus
9107 extern "C"
9108 # endif
9109 int F77_DUMMY_MAIN() { return 1; }
9110 #endif
9112 main ()
9114 int i = (int)setresgid
9116 return 0;
9118 _ACEOF
9119 rm -f conftest.$ac_objext
9120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9121 (eval $ac_compile) 2>&5
9122 ac_status=$?
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } &&
9125 { ac_try='test -s conftest.$ac_objext'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127 (eval $ac_try) 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; }; then
9131 ac_cv_have_setresgid_decl=yes
9132 else
9133 echo "$as_me: failed program was:" >&5
9134 cat conftest.$ac_ext >&5
9135 ac_cv_have_setresgid_decl=no
9137 rm -f conftest.$ac_objext conftest.$ac_ext
9139 echo "$as_me:$LINENO: result: $ac_cv_have_setresgid_decl" >&5
9140 echo "${ECHO_T}$ac_cv_have_setresgid_decl" >&6
9141 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
9143 cat >>confdefs.h <<\_ACEOF
9144 #define HAVE_SETRESGID_DECL 1
9145 _ACEOF
9150 echo "$as_me:$LINENO: checking for asprintf declaration" >&5
9151 echo $ECHO_N "checking for asprintf declaration... $ECHO_C" >&6
9152 if test "${ac_cv_have_asprintf_decl+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9154 else
9156 cat >conftest.$ac_ext <<_ACEOF
9157 #line $LINENO "configure"
9158 #include "confdefs.h"
9159 #include <stdio.h>
9160 #ifdef F77_DUMMY_MAIN
9161 # ifdef __cplusplus
9162 extern "C"
9163 # endif
9164 int F77_DUMMY_MAIN() { return 1; }
9165 #endif
9167 main ()
9169 int i = (int)asprintf
9171 return 0;
9173 _ACEOF
9174 rm -f conftest.$ac_objext
9175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9176 (eval $ac_compile) 2>&5
9177 ac_status=$?
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } &&
9180 { ac_try='test -s conftest.$ac_objext'
9181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182 (eval $ac_try) 2>&5
9183 ac_status=$?
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); }; }; then
9186 ac_cv_have_asprintf_decl=yes
9187 else
9188 echo "$as_me: failed program was:" >&5
9189 cat conftest.$ac_ext >&5
9190 ac_cv_have_asprintf_decl=no
9192 rm -f conftest.$ac_objext conftest.$ac_ext
9194 echo "$as_me:$LINENO: result: $ac_cv_have_asprintf_decl" >&5
9195 echo "${ECHO_T}$ac_cv_have_asprintf_decl" >&6
9196 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
9198 cat >>confdefs.h <<\_ACEOF
9199 #define HAVE_ASPRINTF_DECL 1
9200 _ACEOF
9205 echo "$as_me:$LINENO: checking for vasprintf declaration" >&5
9206 echo $ECHO_N "checking for vasprintf declaration... $ECHO_C" >&6
9207 if test "${ac_cv_have_vasprintf_decl+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9211 cat >conftest.$ac_ext <<_ACEOF
9212 #line $LINENO "configure"
9213 #include "confdefs.h"
9214 #include <stdio.h>
9215 #ifdef F77_DUMMY_MAIN
9216 # ifdef __cplusplus
9217 extern "C"
9218 # endif
9219 int F77_DUMMY_MAIN() { return 1; }
9220 #endif
9222 main ()
9224 int i = (int)vasprintf
9226 return 0;
9228 _ACEOF
9229 rm -f conftest.$ac_objext
9230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9231 (eval $ac_compile) 2>&5
9232 ac_status=$?
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); } &&
9235 { ac_try='test -s conftest.$ac_objext'
9236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237 (eval $ac_try) 2>&5
9238 ac_status=$?
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); }; }; then
9241 ac_cv_have_vasprintf_decl=yes
9242 else
9243 echo "$as_me: failed program was:" >&5
9244 cat conftest.$ac_ext >&5
9245 ac_cv_have_vasprintf_decl=no
9247 rm -f conftest.$ac_objext conftest.$ac_ext
9249 echo "$as_me:$LINENO: result: $ac_cv_have_vasprintf_decl" >&5
9250 echo "${ECHO_T}$ac_cv_have_vasprintf_decl" >&6
9251 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
9253 cat >>confdefs.h <<\_ACEOF
9254 #define HAVE_VASPRINTF_DECL 1
9255 _ACEOF
9260 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
9261 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
9262 if test "${ac_cv_have_vsnprintf_decl+set}" = set; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 else
9266 cat >conftest.$ac_ext <<_ACEOF
9267 #line $LINENO "configure"
9268 #include "confdefs.h"
9269 #include <stdio.h>
9270 #ifdef F77_DUMMY_MAIN
9271 # ifdef __cplusplus
9272 extern "C"
9273 # endif
9274 int F77_DUMMY_MAIN() { return 1; }
9275 #endif
9277 main ()
9279 int i = (int)vsnprintf
9281 return 0;
9283 _ACEOF
9284 rm -f conftest.$ac_objext
9285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9286 (eval $ac_compile) 2>&5
9287 ac_status=$?
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); } &&
9290 { ac_try='test -s conftest.$ac_objext'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292 (eval $ac_try) 2>&5
9293 ac_status=$?
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; }; then
9296 ac_cv_have_vsnprintf_decl=yes
9297 else
9298 echo "$as_me: failed program was:" >&5
9299 cat conftest.$ac_ext >&5
9300 ac_cv_have_vsnprintf_decl=no
9302 rm -f conftest.$ac_objext conftest.$ac_ext
9304 echo "$as_me:$LINENO: result: $ac_cv_have_vsnprintf_decl" >&5
9305 echo "${ECHO_T}$ac_cv_have_vsnprintf_decl" >&6
9306 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
9308 cat >>confdefs.h <<\_ACEOF
9309 #define HAVE_VSNPRINTF_DECL 1
9310 _ACEOF
9315 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
9316 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
9317 if test "${ac_cv_have_snprintf_decl+set}" = set; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9319 else
9321 cat >conftest.$ac_ext <<_ACEOF
9322 #line $LINENO "configure"
9323 #include "confdefs.h"
9324 #include <stdio.h>
9325 #ifdef F77_DUMMY_MAIN
9326 # ifdef __cplusplus
9327 extern "C"
9328 # endif
9329 int F77_DUMMY_MAIN() { return 1; }
9330 #endif
9332 main ()
9334 int i = (int)snprintf
9336 return 0;
9338 _ACEOF
9339 rm -f conftest.$ac_objext
9340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9341 (eval $ac_compile) 2>&5
9342 ac_status=$?
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } &&
9345 { ac_try='test -s conftest.$ac_objext'
9346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347 (eval $ac_try) 2>&5
9348 ac_status=$?
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; }; then
9351 ac_cv_have_snprintf_decl=yes
9352 else
9353 echo "$as_me: failed program was:" >&5
9354 cat conftest.$ac_ext >&5
9355 ac_cv_have_snprintf_decl=no
9357 rm -f conftest.$ac_objext conftest.$ac_ext
9359 echo "$as_me:$LINENO: result: $ac_cv_have_snprintf_decl" >&5
9360 echo "${ECHO_T}$ac_cv_have_snprintf_decl" >&6
9361 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
9363 cat >>confdefs.h <<\_ACEOF
9364 #define HAVE_SNPRINTF_DECL 1
9365 _ACEOF
9370 # and glibc has setresuid under linux but the function does
9371 # nothing until kernel 2.1.44! very dumb.
9372 echo "$as_me:$LINENO: checking for real setresuid" >&5
9373 echo $ECHO_N "checking for real setresuid... $ECHO_C" >&6
9374 if test "${samba_cv_have_setresuid+set}" = set; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
9376 else
9378 if test "$cross_compiling" = yes; then
9379 samba_cv_have_setresuid=cross
9380 else
9381 cat >conftest.$ac_ext <<_ACEOF
9382 #line $LINENO "configure"
9383 #include "confdefs.h"
9384 #include <errno.h>
9385 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
9386 _ACEOF
9387 rm -f conftest$ac_exeext
9388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9389 (eval $ac_link) 2>&5
9390 ac_status=$?
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394 (eval $ac_try) 2>&5
9395 ac_status=$?
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); }; }; then
9398 samba_cv_have_setresuid=yes
9399 else
9400 echo "$as_me: program exited with status $ac_status" >&5
9401 echo "$as_me: failed program was:" >&5
9402 cat conftest.$ac_ext >&5
9403 ( exit $ac_status )
9404 samba_cv_have_setresuid=no
9406 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9409 echo "$as_me:$LINENO: result: $samba_cv_have_setresuid" >&5
9410 echo "${ECHO_T}$samba_cv_have_setresuid" >&6
9411 if test x"$samba_cv_have_setresuid" = x"yes"; then
9413 cat >>confdefs.h <<\_ACEOF
9414 #define HAVE_SETRESUID 1
9415 _ACEOF
9419 # Do the same check for setresguid...
9421 echo "$as_me:$LINENO: checking for real setresgid" >&5
9422 echo $ECHO_N "checking for real setresgid... $ECHO_C" >&6
9423 if test "${samba_cv_have_setresgid+set}" = set; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9425 else
9427 if test "$cross_compiling" = yes; then
9428 samba_cv_have_setresgid=cross
9429 else
9430 cat >conftest.$ac_ext <<_ACEOF
9431 #line $LINENO "configure"
9432 #include "confdefs.h"
9433 #include <unistd.h>
9434 #include <errno.h>
9435 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
9436 _ACEOF
9437 rm -f conftest$ac_exeext
9438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439 (eval $ac_link) 2>&5
9440 ac_status=$?
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 (eval $ac_try) 2>&5
9445 ac_status=$?
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; }; then
9448 samba_cv_have_setresgid=yes
9449 else
9450 echo "$as_me: program exited with status $ac_status" >&5
9451 echo "$as_me: failed program was:" >&5
9452 cat conftest.$ac_ext >&5
9453 ( exit $ac_status )
9454 samba_cv_have_setresgid=no
9456 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9459 echo "$as_me:$LINENO: result: $samba_cv_have_setresgid" >&5
9460 echo "${ECHO_T}$samba_cv_have_setresgid" >&6
9461 if test x"$samba_cv_have_setresgid" = x"yes"; then
9463 cat >>confdefs.h <<\_ACEOF
9464 #define HAVE_SETRESGID 1
9465 _ACEOF
9469 echo "$as_me:$LINENO: checking for working memcmp" >&5
9470 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9471 if test "${ac_cv_func_memcmp_working+set}" = set; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9474 if test "$cross_compiling" = yes; then
9475 ac_cv_func_memcmp_working=no
9476 else
9477 cat >conftest.$ac_ext <<_ACEOF
9478 #line $LINENO "configure"
9479 #include "confdefs.h"
9481 #ifdef F77_DUMMY_MAIN
9482 # ifdef __cplusplus
9483 extern "C"
9484 # endif
9485 int F77_DUMMY_MAIN() { return 1; }
9486 #endif
9488 main ()
9491 /* Some versions of memcmp are not 8-bit clean. */
9492 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9493 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9494 exit (1);
9496 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9497 or more and with at least one buffer not starting on a 4-byte boundary.
9498 William Lewis provided this test program. */
9500 char foo[21];
9501 char bar[21];
9502 int i;
9503 for (i = 0; i < 4; i++)
9505 char *a = foo + i;
9506 char *b = bar + i;
9507 strcpy (a, "--------01111111");
9508 strcpy (b, "--------10000000");
9509 if (memcmp (a, b, 16) >= 0)
9510 exit (1);
9512 exit (0);
9516 return 0;
9518 _ACEOF
9519 rm -f conftest$ac_exeext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9521 (eval $ac_link) 2>&5
9522 ac_status=$?
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526 (eval $ac_try) 2>&5
9527 ac_status=$?
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); }; }; then
9530 ac_cv_func_memcmp_working=yes
9531 else
9532 echo "$as_me: program exited with status $ac_status" >&5
9533 echo "$as_me: failed program was:" >&5
9534 cat conftest.$ac_ext >&5
9535 ( exit $ac_status )
9536 ac_cv_func_memcmp_working=no
9538 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9541 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9542 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9543 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9546 ###############################################
9547 # test for where we get crypt() from
9548 echo "$as_me:$LINENO: checking for library containing crypt" >&5
9549 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
9550 if test "${ac_cv_search_crypt+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9553 ac_func_search_save_LIBS=$LIBS
9554 ac_cv_search_crypt=no
9555 cat >conftest.$ac_ext <<_ACEOF
9556 #line $LINENO "configure"
9557 #include "confdefs.h"
9559 /* Override any gcc2 internal prototype to avoid an error. */
9560 #ifdef __cplusplus
9561 extern "C"
9562 #endif
9563 /* We use char because int might match the return type of a gcc2
9564 builtin and then its argument prototype would still apply. */
9565 char crypt ();
9566 #ifdef F77_DUMMY_MAIN
9567 # ifdef __cplusplus
9568 extern "C"
9569 # endif
9570 int F77_DUMMY_MAIN() { return 1; }
9571 #endif
9573 main ()
9575 crypt ();
9577 return 0;
9579 _ACEOF
9580 rm -f conftest.$ac_objext conftest$ac_exeext
9581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9582 (eval $ac_link) 2>&5
9583 ac_status=$?
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } &&
9586 { ac_try='test -s conftest$ac_exeext'
9587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588 (eval $ac_try) 2>&5
9589 ac_status=$?
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; }; then
9592 ac_cv_search_crypt="none required"
9593 else
9594 echo "$as_me: failed program was:" >&5
9595 cat conftest.$ac_ext >&5
9597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9598 if test "$ac_cv_search_crypt" = no; then
9599 for ac_lib in crypt; do
9600 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9601 cat >conftest.$ac_ext <<_ACEOF
9602 #line $LINENO "configure"
9603 #include "confdefs.h"
9605 /* Override any gcc2 internal prototype to avoid an error. */
9606 #ifdef __cplusplus
9607 extern "C"
9608 #endif
9609 /* We use char because int might match the return type of a gcc2
9610 builtin and then its argument prototype would still apply. */
9611 char crypt ();
9612 #ifdef F77_DUMMY_MAIN
9613 # ifdef __cplusplus
9614 extern "C"
9615 # endif
9616 int F77_DUMMY_MAIN() { return 1; }
9617 #endif
9619 main ()
9621 crypt ();
9623 return 0;
9625 _ACEOF
9626 rm -f conftest.$ac_objext conftest$ac_exeext
9627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9628 (eval $ac_link) 2>&5
9629 ac_status=$?
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } &&
9632 { ac_try='test -s conftest$ac_exeext'
9633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634 (eval $ac_try) 2>&5
9635 ac_status=$?
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; }; then
9638 ac_cv_search_crypt="-l$ac_lib"
9639 break
9640 else
9641 echo "$as_me: failed program was:" >&5
9642 cat conftest.$ac_ext >&5
9644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9645 done
9647 LIBS=$ac_func_search_save_LIBS
9649 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
9650 echo "${ECHO_T}$ac_cv_search_crypt" >&6
9651 if test "$ac_cv_search_crypt" != no; then
9652 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
9653 AUTHLIBS="$AUTHLIBS -lcrypt";
9655 cat >>confdefs.h <<\_ACEOF
9656 #define HAVE_CRYPT 1
9657 _ACEOF
9662 ###############################################
9663 # Readline included by default unless explicitly asked not to
9664 test "${with_readline+set}" != "set" && with_readline=yes
9666 # test for where we get readline() from
9667 echo "$as_me:$LINENO: checking whether to use readline" >&5
9668 echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6
9670 # Check whether --with-readline or --without-readline was given.
9671 if test "${with_readline+set}" = set; then
9672 withval="$with_readline"
9673 case "$with_readline" in
9674 yes)
9675 echo "$as_me:$LINENO: result: yes" >&5
9676 echo "${ECHO_T}yes" >&6
9681 for ac_header in readline.h history.h readline/readline.h
9683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9685 echo "$as_me:$LINENO: checking for $ac_header" >&5
9686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9692 else
9693 # Is the header compilable?
9694 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9696 cat >conftest.$ac_ext <<_ACEOF
9697 #line $LINENO "configure"
9698 #include "confdefs.h"
9699 $ac_includes_default
9700 #include <$ac_header>
9701 _ACEOF
9702 rm -f conftest.$ac_objext
9703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9704 (eval $ac_compile) 2>&5
9705 ac_status=$?
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } &&
9708 { ac_try='test -s conftest.$ac_objext'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 (eval $ac_try) 2>&5
9711 ac_status=$?
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9714 ac_header_compiler=yes
9715 else
9716 echo "$as_me: failed program was:" >&5
9717 cat conftest.$ac_ext >&5
9718 ac_header_compiler=no
9720 rm -f conftest.$ac_objext conftest.$ac_ext
9721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9722 echo "${ECHO_T}$ac_header_compiler" >&6
9724 # Is the header present?
9725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9727 cat >conftest.$ac_ext <<_ACEOF
9728 #line $LINENO "configure"
9729 #include "confdefs.h"
9730 #include <$ac_header>
9731 _ACEOF
9732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9734 ac_status=$?
9735 egrep -v '^ *\+' conftest.er1 >conftest.err
9736 rm -f conftest.er1
9737 cat conftest.err >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } >/dev/null; then
9740 if test -s conftest.err; then
9741 ac_cpp_err=$ac_c_preproc_warn_flag
9742 else
9743 ac_cpp_err=
9745 else
9746 ac_cpp_err=yes
9748 if test -z "$ac_cpp_err"; then
9749 ac_header_preproc=yes
9750 else
9751 echo "$as_me: failed program was:" >&5
9752 cat conftest.$ac_ext >&5
9753 ac_header_preproc=no
9755 rm -f conftest.err conftest.$ac_ext
9756 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9757 echo "${ECHO_T}$ac_header_preproc" >&6
9759 # So? What about this header?
9760 case $ac_header_compiler:$ac_header_preproc in
9761 yes:no )
9762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9766 no:yes )
9767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9773 esac
9774 echo "$as_me:$LINENO: checking for $ac_header" >&5
9775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9778 else
9779 eval "$as_ac_Header=$ac_header_preproc"
9781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9786 cat >>confdefs.h <<_ACEOF
9787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9788 _ACEOF
9792 done
9795 for ac_header in readline/history.h
9797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9799 echo "$as_me:$LINENO: checking for $ac_header" >&5
9800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9806 else
9807 # Is the header compilable?
9808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9810 cat >conftest.$ac_ext <<_ACEOF
9811 #line $LINENO "configure"
9812 #include "confdefs.h"
9813 $ac_includes_default
9814 #include <$ac_header>
9815 _ACEOF
9816 rm -f conftest.$ac_objext
9817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9818 (eval $ac_compile) 2>&5
9819 ac_status=$?
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } &&
9822 { ac_try='test -s conftest.$ac_objext'
9823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824 (eval $ac_try) 2>&5
9825 ac_status=$?
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; }; then
9828 ac_header_compiler=yes
9829 else
9830 echo "$as_me: failed program was:" >&5
9831 cat conftest.$ac_ext >&5
9832 ac_header_compiler=no
9834 rm -f conftest.$ac_objext conftest.$ac_ext
9835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9836 echo "${ECHO_T}$ac_header_compiler" >&6
9838 # Is the header present?
9839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9841 cat >conftest.$ac_ext <<_ACEOF
9842 #line $LINENO "configure"
9843 #include "confdefs.h"
9844 #include <$ac_header>
9845 _ACEOF
9846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9848 ac_status=$?
9849 egrep -v '^ *\+' conftest.er1 >conftest.err
9850 rm -f conftest.er1
9851 cat conftest.err >&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } >/dev/null; then
9854 if test -s conftest.err; then
9855 ac_cpp_err=$ac_c_preproc_warn_flag
9856 else
9857 ac_cpp_err=
9859 else
9860 ac_cpp_err=yes
9862 if test -z "$ac_cpp_err"; then
9863 ac_header_preproc=yes
9864 else
9865 echo "$as_me: failed program was:" >&5
9866 cat conftest.$ac_ext >&5
9867 ac_header_preproc=no
9869 rm -f conftest.err conftest.$ac_ext
9870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9871 echo "${ECHO_T}$ac_header_preproc" >&6
9873 # So? What about this header?
9874 case $ac_header_compiler:$ac_header_preproc in
9875 yes:no )
9876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9880 no:yes )
9881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9884 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9887 esac
9888 echo "$as_me:$LINENO: checking for $ac_header" >&5
9889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 else
9893 eval "$as_ac_Header=$ac_header_preproc"
9895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9900 cat >>confdefs.h <<_ACEOF
9901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9902 _ACEOF
9906 done
9911 for ac_header in readline.h readline/readline.h
9913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9915 echo "$as_me:$LINENO: checking for $ac_header" >&5
9916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9922 else
9923 # Is the header compilable?
9924 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9926 cat >conftest.$ac_ext <<_ACEOF
9927 #line $LINENO "configure"
9928 #include "confdefs.h"
9929 $ac_includes_default
9930 #include <$ac_header>
9931 _ACEOF
9932 rm -f conftest.$ac_objext
9933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9934 (eval $ac_compile) 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); } &&
9938 { ac_try='test -s conftest.$ac_objext'
9939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 (eval $ac_try) 2>&5
9941 ac_status=$?
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; }; then
9944 ac_header_compiler=yes
9945 else
9946 echo "$as_me: failed program was:" >&5
9947 cat conftest.$ac_ext >&5
9948 ac_header_compiler=no
9950 rm -f conftest.$ac_objext conftest.$ac_ext
9951 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9952 echo "${ECHO_T}$ac_header_compiler" >&6
9954 # Is the header present?
9955 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9957 cat >conftest.$ac_ext <<_ACEOF
9958 #line $LINENO "configure"
9959 #include "confdefs.h"
9960 #include <$ac_header>
9961 _ACEOF
9962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9964 ac_status=$?
9965 egrep -v '^ *\+' conftest.er1 >conftest.err
9966 rm -f conftest.er1
9967 cat conftest.err >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } >/dev/null; then
9970 if test -s conftest.err; then
9971 ac_cpp_err=$ac_c_preproc_warn_flag
9972 else
9973 ac_cpp_err=
9975 else
9976 ac_cpp_err=yes
9978 if test -z "$ac_cpp_err"; then
9979 ac_header_preproc=yes
9980 else
9981 echo "$as_me: failed program was:" >&5
9982 cat conftest.$ac_ext >&5
9983 ac_header_preproc=no
9985 rm -f conftest.err conftest.$ac_ext
9986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9987 echo "${ECHO_T}$ac_header_preproc" >&6
9989 # So? What about this header?
9990 case $ac_header_compiler:$ac_header_preproc in
9991 yes:no )
9992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9996 no:yes )
9997 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9998 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9999 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10000 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10003 esac
10004 echo "$as_me:$LINENO: checking for $ac_header" >&5
10005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 else
10009 eval "$as_ac_Header=$ac_header_preproc"
10011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10016 cat >>confdefs.h <<_ACEOF
10017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10018 _ACEOF
10020 for termlib in ncurses curses termcap terminfo termlib; do
10021 as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
10022 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
10023 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
10024 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
10026 else
10027 ac_check_lib_save_LIBS=$LIBS
10028 LIBS="-l${termlib} $LIBS"
10029 cat >conftest.$ac_ext <<_ACEOF
10030 #line $LINENO "configure"
10031 #include "confdefs.h"
10033 /* Override any gcc2 internal prototype to avoid an error. */
10034 #ifdef __cplusplus
10035 extern "C"
10036 #endif
10037 /* We use char because int might match the return type of a gcc2
10038 builtin and then its argument prototype would still apply. */
10039 char tgetent ();
10040 #ifdef F77_DUMMY_MAIN
10041 # ifdef __cplusplus
10042 extern "C"
10043 # endif
10044 int F77_DUMMY_MAIN() { return 1; }
10045 #endif
10047 main ()
10049 tgetent ();
10051 return 0;
10053 _ACEOF
10054 rm -f conftest.$ac_objext conftest$ac_exeext
10055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10056 (eval $ac_link) 2>&5
10057 ac_status=$?
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); } &&
10060 { ac_try='test -s conftest$ac_exeext'
10061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062 (eval $ac_try) 2>&5
10063 ac_status=$?
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; }; then
10066 eval "$as_ac_Lib=yes"
10067 else
10068 echo "$as_me: failed program was:" >&5
10069 cat conftest.$ac_ext >&5
10070 eval "$as_ac_Lib=no"
10072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10073 LIBS=$ac_check_lib_save_LIBS
10075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10076 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10077 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10078 TERMLIBS="-l${termlib}"; break
10081 done
10082 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
10083 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
10084 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10086 else
10087 ac_check_lib_save_LIBS=$LIBS
10088 LIBS="-lreadline $TERMLIBS $LIBS"
10089 cat >conftest.$ac_ext <<_ACEOF
10090 #line $LINENO "configure"
10091 #include "confdefs.h"
10093 /* Override any gcc2 internal prototype to avoid an error. */
10094 #ifdef __cplusplus
10095 extern "C"
10096 #endif
10097 /* We use char because int might match the return type of a gcc2
10098 builtin and then its argument prototype would still apply. */
10099 char rl_callback_handler_install ();
10100 #ifdef F77_DUMMY_MAIN
10101 # ifdef __cplusplus
10102 extern "C"
10103 # endif
10104 int F77_DUMMY_MAIN() { return 1; }
10105 #endif
10107 main ()
10109 rl_callback_handler_install ();
10111 return 0;
10113 _ACEOF
10114 rm -f conftest.$ac_objext conftest$ac_exeext
10115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10116 (eval $ac_link) 2>&5
10117 ac_status=$?
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } &&
10120 { ac_try='test -s conftest$ac_exeext'
10121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122 (eval $ac_try) 2>&5
10123 ac_status=$?
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; }; then
10126 ac_cv_lib_readline_rl_callback_handler_install=yes
10127 else
10128 echo "$as_me: failed program was:" >&5
10129 cat conftest.$ac_ext >&5
10130 ac_cv_lib_readline_rl_callback_handler_install=no
10132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10133 LIBS=$ac_check_lib_save_LIBS
10135 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
10136 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
10137 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
10138 TERMLIBS="-lreadline $TERMLIBS"
10140 cat >>confdefs.h <<\_ACEOF
10141 #define HAVE_LIBREADLINE 1
10142 _ACEOF
10144 break
10145 else
10146 TERMLIBS=
10151 done
10155 echo "$as_me:$LINENO: result: no" >&5
10156 echo "${ECHO_T}no" >&6
10159 echo "$as_me:$LINENO: result: yes" >&5
10160 echo "${ECHO_T}yes" >&6
10162 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
10163 # alternate readline path
10164 _ldflags=${LDFLAGS}
10165 _cppflags=${CPPFLAGS}
10167 # Add additional search path
10168 LDFLAGS="-L$with_readline/lib $LDFLAGS"
10169 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
10174 for ac_header in readline.h history.h readline/readline.h
10176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10178 echo "$as_me:$LINENO: checking for $ac_header" >&5
10179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10185 else
10186 # Is the header compilable?
10187 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10189 cat >conftest.$ac_ext <<_ACEOF
10190 #line $LINENO "configure"
10191 #include "confdefs.h"
10192 $ac_includes_default
10193 #include <$ac_header>
10194 _ACEOF
10195 rm -f conftest.$ac_objext
10196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10197 (eval $ac_compile) 2>&5
10198 ac_status=$?
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try='test -s conftest.$ac_objext'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10204 ac_status=$?
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10207 ac_header_compiler=yes
10208 else
10209 echo "$as_me: failed program was:" >&5
10210 cat conftest.$ac_ext >&5
10211 ac_header_compiler=no
10213 rm -f conftest.$ac_objext conftest.$ac_ext
10214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10215 echo "${ECHO_T}$ac_header_compiler" >&6
10217 # Is the header present?
10218 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10220 cat >conftest.$ac_ext <<_ACEOF
10221 #line $LINENO "configure"
10222 #include "confdefs.h"
10223 #include <$ac_header>
10224 _ACEOF
10225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10227 ac_status=$?
10228 egrep -v '^ *\+' conftest.er1 >conftest.err
10229 rm -f conftest.er1
10230 cat conftest.err >&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } >/dev/null; then
10233 if test -s conftest.err; then
10234 ac_cpp_err=$ac_c_preproc_warn_flag
10235 else
10236 ac_cpp_err=
10238 else
10239 ac_cpp_err=yes
10241 if test -z "$ac_cpp_err"; then
10242 ac_header_preproc=yes
10243 else
10244 echo "$as_me: failed program was:" >&5
10245 cat conftest.$ac_ext >&5
10246 ac_header_preproc=no
10248 rm -f conftest.err conftest.$ac_ext
10249 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10250 echo "${ECHO_T}$ac_header_preproc" >&6
10252 # So? What about this header?
10253 case $ac_header_compiler:$ac_header_preproc in
10254 yes:no )
10255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10259 no:yes )
10260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10266 esac
10267 echo "$as_me:$LINENO: checking for $ac_header" >&5
10268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10270 echo $ECHO_N "(cached) $ECHO_C" >&6
10271 else
10272 eval "$as_ac_Header=$ac_header_preproc"
10274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10279 cat >>confdefs.h <<_ACEOF
10280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10281 _ACEOF
10285 done
10288 for ac_header in readline/history.h
10290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10292 echo "$as_me:$LINENO: checking for $ac_header" >&5
10293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10295 echo $ECHO_N "(cached) $ECHO_C" >&6
10297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10299 else
10300 # Is the header compilable?
10301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10303 cat >conftest.$ac_ext <<_ACEOF
10304 #line $LINENO "configure"
10305 #include "confdefs.h"
10306 $ac_includes_default
10307 #include <$ac_header>
10308 _ACEOF
10309 rm -f conftest.$ac_objext
10310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10311 (eval $ac_compile) 2>&5
10312 ac_status=$?
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } &&
10315 { ac_try='test -s conftest.$ac_objext'
10316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10317 (eval $ac_try) 2>&5
10318 ac_status=$?
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; }; then
10321 ac_header_compiler=yes
10322 else
10323 echo "$as_me: failed program was:" >&5
10324 cat conftest.$ac_ext >&5
10325 ac_header_compiler=no
10327 rm -f conftest.$ac_objext conftest.$ac_ext
10328 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10329 echo "${ECHO_T}$ac_header_compiler" >&6
10331 # Is the header present?
10332 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10334 cat >conftest.$ac_ext <<_ACEOF
10335 #line $LINENO "configure"
10336 #include "confdefs.h"
10337 #include <$ac_header>
10338 _ACEOF
10339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10341 ac_status=$?
10342 egrep -v '^ *\+' conftest.er1 >conftest.err
10343 rm -f conftest.er1
10344 cat conftest.err >&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); } >/dev/null; then
10347 if test -s conftest.err; then
10348 ac_cpp_err=$ac_c_preproc_warn_flag
10349 else
10350 ac_cpp_err=
10352 else
10353 ac_cpp_err=yes
10355 if test -z "$ac_cpp_err"; then
10356 ac_header_preproc=yes
10357 else
10358 echo "$as_me: failed program was:" >&5
10359 cat conftest.$ac_ext >&5
10360 ac_header_preproc=no
10362 rm -f conftest.err conftest.$ac_ext
10363 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10364 echo "${ECHO_T}$ac_header_preproc" >&6
10366 # So? What about this header?
10367 case $ac_header_compiler:$ac_header_preproc in
10368 yes:no )
10369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10373 no:yes )
10374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10380 esac
10381 echo "$as_me:$LINENO: checking for $ac_header" >&5
10382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10385 else
10386 eval "$as_ac_Header=$ac_header_preproc"
10388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10393 cat >>confdefs.h <<_ACEOF
10394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10395 _ACEOF
10399 done
10404 for ac_header in readline.h readline/readline.h
10406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10408 echo "$as_me:$LINENO: checking for $ac_header" >&5
10409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10411 echo $ECHO_N "(cached) $ECHO_C" >&6
10413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10415 else
10416 # Is the header compilable?
10417 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10419 cat >conftest.$ac_ext <<_ACEOF
10420 #line $LINENO "configure"
10421 #include "confdefs.h"
10422 $ac_includes_default
10423 #include <$ac_header>
10424 _ACEOF
10425 rm -f conftest.$ac_objext
10426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10427 (eval $ac_compile) 2>&5
10428 ac_status=$?
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } &&
10431 { ac_try='test -s conftest.$ac_objext'
10432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10433 (eval $ac_try) 2>&5
10434 ac_status=$?
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); }; }; then
10437 ac_header_compiler=yes
10438 else
10439 echo "$as_me: failed program was:" >&5
10440 cat conftest.$ac_ext >&5
10441 ac_header_compiler=no
10443 rm -f conftest.$ac_objext conftest.$ac_ext
10444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10445 echo "${ECHO_T}$ac_header_compiler" >&6
10447 # Is the header present?
10448 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10450 cat >conftest.$ac_ext <<_ACEOF
10451 #line $LINENO "configure"
10452 #include "confdefs.h"
10453 #include <$ac_header>
10454 _ACEOF
10455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10457 ac_status=$?
10458 egrep -v '^ *\+' conftest.er1 >conftest.err
10459 rm -f conftest.er1
10460 cat conftest.err >&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); } >/dev/null; then
10463 if test -s conftest.err; then
10464 ac_cpp_err=$ac_c_preproc_warn_flag
10465 else
10466 ac_cpp_err=
10468 else
10469 ac_cpp_err=yes
10471 if test -z "$ac_cpp_err"; then
10472 ac_header_preproc=yes
10473 else
10474 echo "$as_me: failed program was:" >&5
10475 cat conftest.$ac_ext >&5
10476 ac_header_preproc=no
10478 rm -f conftest.err conftest.$ac_ext
10479 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10480 echo "${ECHO_T}$ac_header_preproc" >&6
10482 # So? What about this header?
10483 case $ac_header_compiler:$ac_header_preproc in
10484 yes:no )
10485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10489 no:yes )
10490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10493 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10496 esac
10497 echo "$as_me:$LINENO: checking for $ac_header" >&5
10498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10501 else
10502 eval "$as_ac_Header=$ac_header_preproc"
10504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10509 cat >>confdefs.h <<_ACEOF
10510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10511 _ACEOF
10513 for termlib in ncurses curses termcap terminfo termlib; do
10514 as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
10515 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
10516 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
10517 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10519 else
10520 ac_check_lib_save_LIBS=$LIBS
10521 LIBS="-l${termlib} $LIBS"
10522 cat >conftest.$ac_ext <<_ACEOF
10523 #line $LINENO "configure"
10524 #include "confdefs.h"
10526 /* Override any gcc2 internal prototype to avoid an error. */
10527 #ifdef __cplusplus
10528 extern "C"
10529 #endif
10530 /* We use char because int might match the return type of a gcc2
10531 builtin and then its argument prototype would still apply. */
10532 char tgetent ();
10533 #ifdef F77_DUMMY_MAIN
10534 # ifdef __cplusplus
10535 extern "C"
10536 # endif
10537 int F77_DUMMY_MAIN() { return 1; }
10538 #endif
10540 main ()
10542 tgetent ();
10544 return 0;
10546 _ACEOF
10547 rm -f conftest.$ac_objext conftest$ac_exeext
10548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10549 (eval $ac_link) 2>&5
10550 ac_status=$?
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } &&
10553 { ac_try='test -s conftest$ac_exeext'
10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10556 ac_status=$?
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; }; then
10559 eval "$as_ac_Lib=yes"
10560 else
10561 echo "$as_me: failed program was:" >&5
10562 cat conftest.$ac_ext >&5
10563 eval "$as_ac_Lib=no"
10565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10566 LIBS=$ac_check_lib_save_LIBS
10568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10569 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10570 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10571 TERMLIBS="-l${termlib}"; break
10574 done
10575 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
10576 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
10577 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10579 else
10580 ac_check_lib_save_LIBS=$LIBS
10581 LIBS="-lreadline $TERMLIBS $LIBS"
10582 cat >conftest.$ac_ext <<_ACEOF
10583 #line $LINENO "configure"
10584 #include "confdefs.h"
10586 /* Override any gcc2 internal prototype to avoid an error. */
10587 #ifdef __cplusplus
10588 extern "C"
10589 #endif
10590 /* We use char because int might match the return type of a gcc2
10591 builtin and then its argument prototype would still apply. */
10592 char rl_callback_handler_install ();
10593 #ifdef F77_DUMMY_MAIN
10594 # ifdef __cplusplus
10595 extern "C"
10596 # endif
10597 int F77_DUMMY_MAIN() { return 1; }
10598 #endif
10600 main ()
10602 rl_callback_handler_install ();
10604 return 0;
10606 _ACEOF
10607 rm -f conftest.$ac_objext conftest$ac_exeext
10608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10609 (eval $ac_link) 2>&5
10610 ac_status=$?
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } &&
10613 { ac_try='test -s conftest$ac_exeext'
10614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10615 (eval $ac_try) 2>&5
10616 ac_status=$?
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); }; }; then
10619 ac_cv_lib_readline_rl_callback_handler_install=yes
10620 else
10621 echo "$as_me: failed program was:" >&5
10622 cat conftest.$ac_ext >&5
10623 ac_cv_lib_readline_rl_callback_handler_install=no
10625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10626 LIBS=$ac_check_lib_save_LIBS
10628 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
10629 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
10630 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
10631 TERMLDFLAGS="-L$with_readline/lib"
10632 TERMCPPFLAGS="-I$with_readline/include"
10633 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
10634 TERMLIBS="-lreadline $TERMLIBS"
10636 cat >>confdefs.h <<\_ACEOF
10637 #define HAVE_LIBREADLINE 1
10638 _ACEOF
10640 break
10641 else
10642 TERMLIBS= CPPFLAGS=$_cppflags
10647 done
10650 LDFLAGS=$_ldflags
10652 esac
10653 else
10654 echo "$as_me:$LINENO: result: no" >&5
10655 echo "${ECHO_T}no" >&6
10661 # The readline API changed slightly from readline3 to readline4, so
10662 # code will generate warnings on one of them unless we have a few
10663 # special cases.
10664 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
10665 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
10666 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 else
10669 ac_check_lib_save_LIBS=$LIBS
10670 LIBS="-lreadline $TERMLIBS $LIBS"
10671 cat >conftest.$ac_ext <<_ACEOF
10672 #line $LINENO "configure"
10673 #include "confdefs.h"
10675 /* Override any gcc2 internal prototype to avoid an error. */
10676 #ifdef __cplusplus
10677 extern "C"
10678 #endif
10679 /* We use char because int might match the return type of a gcc2
10680 builtin and then its argument prototype would still apply. */
10681 char rl_completion_matches ();
10682 #ifdef F77_DUMMY_MAIN
10683 # ifdef __cplusplus
10684 extern "C"
10685 # endif
10686 int F77_DUMMY_MAIN() { return 1; }
10687 #endif
10689 main ()
10691 rl_completion_matches ();
10693 return 0;
10695 _ACEOF
10696 rm -f conftest.$ac_objext conftest$ac_exeext
10697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10698 (eval $ac_link) 2>&5
10699 ac_status=$?
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
10702 { ac_try='test -s conftest$ac_exeext'
10703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704 (eval $ac_try) 2>&5
10705 ac_status=$?
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); }; }; then
10708 ac_cv_lib_readline_rl_completion_matches=yes
10709 else
10710 echo "$as_me: failed program was:" >&5
10711 cat conftest.$ac_ext >&5
10712 ac_cv_lib_readline_rl_completion_matches=no
10714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10715 LIBS=$ac_check_lib_save_LIBS
10717 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
10718 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
10719 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
10721 cat >>confdefs.h <<\_ACEOF
10722 #define HAVE_NEW_LIBREADLINE 1
10723 _ACEOF
10728 # The following test taken from the cvs sources
10729 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
10730 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
10731 # libsocket.so which has a bad implementation of gethostbyname (it
10732 # only looks in /etc/hosts), so we only look for -lsocket if we need
10733 # it.
10735 for ac_func in connect
10737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10738 echo "$as_me:$LINENO: checking for $ac_func" >&5
10739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10740 if eval "test \"\${$as_ac_var+set}\" = set"; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 else
10743 cat >conftest.$ac_ext <<_ACEOF
10744 #line $LINENO "configure"
10745 #include "confdefs.h"
10746 /* System header to define __stub macros and hopefully few prototypes,
10747 which can conflict with char $ac_func (); below. */
10748 #include <assert.h>
10749 /* Override any gcc2 internal prototype to avoid an error. */
10750 #ifdef __cplusplus
10751 extern "C"
10752 #endif
10753 /* We use char because int might match the return type of a gcc2
10754 builtin and then its argument prototype would still apply. */
10755 char $ac_func ();
10756 char (*f) ();
10758 #ifdef F77_DUMMY_MAIN
10759 # ifdef __cplusplus
10760 extern "C"
10761 # endif
10762 int F77_DUMMY_MAIN() { return 1; }
10763 #endif
10765 main ()
10767 /* The GNU C library defines this for functions which it implements
10768 to always fail with ENOSYS. Some functions are actually named
10769 something starting with __ and the normal name is an alias. */
10770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10771 choke me
10772 #else
10773 f = $ac_func;
10774 #endif
10777 return 0;
10779 _ACEOF
10780 rm -f conftest.$ac_objext conftest$ac_exeext
10781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10782 (eval $ac_link) 2>&5
10783 ac_status=$?
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } &&
10786 { ac_try='test -s conftest$ac_exeext'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10789 ac_status=$?
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; }; then
10792 eval "$as_ac_var=yes"
10793 else
10794 echo "$as_me: failed program was:" >&5
10795 cat conftest.$ac_ext >&5
10796 eval "$as_ac_var=no"
10798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10802 if test `eval echo '${'$as_ac_var'}'` = yes; then
10803 cat >>confdefs.h <<_ACEOF
10804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10805 _ACEOF
10808 done
10810 if test x"$ac_cv_func_connect" = x"no"; then
10811 case "$LIBS" in
10812 *-lnsl*) ;;
10814 echo "$as_me:$LINENO: checking for printf in -lnsl_s" >&5
10815 echo $ECHO_N "checking for printf in -lnsl_s... $ECHO_C" >&6
10816 if test "${ac_cv_lib_nsl_s_printf+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10818 else
10819 ac_check_lib_save_LIBS=$LIBS
10820 LIBS="-lnsl_s $LIBS"
10821 cat >conftest.$ac_ext <<_ACEOF
10822 #line $LINENO "configure"
10823 #include "confdefs.h"
10825 /* Override any gcc2 internal prototype to avoid an error. */
10826 #ifdef __cplusplus
10827 extern "C"
10828 #endif
10829 /* We use char because int might match the return type of a gcc2
10830 builtin and then its argument prototype would still apply. */
10831 char printf ();
10832 #ifdef F77_DUMMY_MAIN
10833 # ifdef __cplusplus
10834 extern "C"
10835 # endif
10836 int F77_DUMMY_MAIN() { return 1; }
10837 #endif
10839 main ()
10841 printf ();
10843 return 0;
10845 _ACEOF
10846 rm -f conftest.$ac_objext conftest$ac_exeext
10847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10848 (eval $ac_link) 2>&5
10849 ac_status=$?
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); } &&
10852 { ac_try='test -s conftest$ac_exeext'
10853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854 (eval $ac_try) 2>&5
10855 ac_status=$?
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; }; then
10858 ac_cv_lib_nsl_s_printf=yes
10859 else
10860 echo "$as_me: failed program was:" >&5
10861 cat conftest.$ac_ext >&5
10862 ac_cv_lib_nsl_s_printf=no
10864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10865 LIBS=$ac_check_lib_save_LIBS
10867 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_printf" >&5
10868 echo "${ECHO_T}$ac_cv_lib_nsl_s_printf" >&6
10869 if test $ac_cv_lib_nsl_s_printf = yes; then
10870 cat >>confdefs.h <<_ACEOF
10871 #define HAVE_LIBNSL_S 1
10872 _ACEOF
10874 LIBS="-lnsl_s $LIBS"
10878 esac
10879 case "$LIBS" in
10880 *-lnsl*) ;;
10882 echo "$as_me:$LINENO: checking for printf in -lnsl" >&5
10883 echo $ECHO_N "checking for printf in -lnsl... $ECHO_C" >&6
10884 if test "${ac_cv_lib_nsl_printf+set}" = set; then
10885 echo $ECHO_N "(cached) $ECHO_C" >&6
10886 else
10887 ac_check_lib_save_LIBS=$LIBS
10888 LIBS="-lnsl $LIBS"
10889 cat >conftest.$ac_ext <<_ACEOF
10890 #line $LINENO "configure"
10891 #include "confdefs.h"
10893 /* Override any gcc2 internal prototype to avoid an error. */
10894 #ifdef __cplusplus
10895 extern "C"
10896 #endif
10897 /* We use char because int might match the return type of a gcc2
10898 builtin and then its argument prototype would still apply. */
10899 char printf ();
10900 #ifdef F77_DUMMY_MAIN
10901 # ifdef __cplusplus
10902 extern "C"
10903 # endif
10904 int F77_DUMMY_MAIN() { return 1; }
10905 #endif
10907 main ()
10909 printf ();
10911 return 0;
10913 _ACEOF
10914 rm -f conftest.$ac_objext conftest$ac_exeext
10915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10916 (eval $ac_link) 2>&5
10917 ac_status=$?
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } &&
10920 { ac_try='test -s conftest$ac_exeext'
10921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10922 (eval $ac_try) 2>&5
10923 ac_status=$?
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); }; }; then
10926 ac_cv_lib_nsl_printf=yes
10927 else
10928 echo "$as_me: failed program was:" >&5
10929 cat conftest.$ac_ext >&5
10930 ac_cv_lib_nsl_printf=no
10932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10933 LIBS=$ac_check_lib_save_LIBS
10935 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_printf" >&5
10936 echo "${ECHO_T}$ac_cv_lib_nsl_printf" >&6
10937 if test $ac_cv_lib_nsl_printf = yes; then
10938 cat >>confdefs.h <<_ACEOF
10939 #define HAVE_LIBNSL 1
10940 _ACEOF
10942 LIBS="-lnsl $LIBS"
10946 esac
10947 case "$LIBS" in
10948 *-lsocket*) ;;
10950 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10951 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10952 if test "${ac_cv_lib_socket_connect+set}" = set; then
10953 echo $ECHO_N "(cached) $ECHO_C" >&6
10954 else
10955 ac_check_lib_save_LIBS=$LIBS
10956 LIBS="-lsocket $LIBS"
10957 cat >conftest.$ac_ext <<_ACEOF
10958 #line $LINENO "configure"
10959 #include "confdefs.h"
10961 /* Override any gcc2 internal prototype to avoid an error. */
10962 #ifdef __cplusplus
10963 extern "C"
10964 #endif
10965 /* We use char because int might match the return type of a gcc2
10966 builtin and then its argument prototype would still apply. */
10967 char connect ();
10968 #ifdef F77_DUMMY_MAIN
10969 # ifdef __cplusplus
10970 extern "C"
10971 # endif
10972 int F77_DUMMY_MAIN() { return 1; }
10973 #endif
10975 main ()
10977 connect ();
10979 return 0;
10981 _ACEOF
10982 rm -f conftest.$ac_objext conftest$ac_exeext
10983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10984 (eval $ac_link) 2>&5
10985 ac_status=$?
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } &&
10988 { ac_try='test -s conftest$ac_exeext'
10989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10990 (eval $ac_try) 2>&5
10991 ac_status=$?
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; }; then
10994 ac_cv_lib_socket_connect=yes
10995 else
10996 echo "$as_me: failed program was:" >&5
10997 cat conftest.$ac_ext >&5
10998 ac_cv_lib_socket_connect=no
11000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11001 LIBS=$ac_check_lib_save_LIBS
11003 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
11004 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
11005 if test $ac_cv_lib_socket_connect = yes; then
11006 cat >>confdefs.h <<_ACEOF
11007 #define HAVE_LIBSOCKET 1
11008 _ACEOF
11010 LIBS="-lsocket $LIBS"
11014 esac
11015 case "$LIBS" in
11016 *-linet*) ;;
11018 echo "$as_me:$LINENO: checking for connect in -linet" >&5
11019 echo $ECHO_N "checking for connect in -linet... $ECHO_C" >&6
11020 if test "${ac_cv_lib_inet_connect+set}" = set; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 else
11023 ac_check_lib_save_LIBS=$LIBS
11024 LIBS="-linet $LIBS"
11025 cat >conftest.$ac_ext <<_ACEOF
11026 #line $LINENO "configure"
11027 #include "confdefs.h"
11029 /* Override any gcc2 internal prototype to avoid an error. */
11030 #ifdef __cplusplus
11031 extern "C"
11032 #endif
11033 /* We use char because int might match the return type of a gcc2
11034 builtin and then its argument prototype would still apply. */
11035 char connect ();
11036 #ifdef F77_DUMMY_MAIN
11037 # ifdef __cplusplus
11038 extern "C"
11039 # endif
11040 int F77_DUMMY_MAIN() { return 1; }
11041 #endif
11043 main ()
11045 connect ();
11047 return 0;
11049 _ACEOF
11050 rm -f conftest.$ac_objext conftest$ac_exeext
11051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11052 (eval $ac_link) 2>&5
11053 ac_status=$?
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } &&
11056 { ac_try='test -s conftest$ac_exeext'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11059 ac_status=$?
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 ac_cv_lib_inet_connect=yes
11063 else
11064 echo "$as_me: failed program was:" >&5
11065 cat conftest.$ac_ext >&5
11066 ac_cv_lib_inet_connect=no
11068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11069 LIBS=$ac_check_lib_save_LIBS
11071 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_connect" >&5
11072 echo "${ECHO_T}$ac_cv_lib_inet_connect" >&6
11073 if test $ac_cv_lib_inet_connect = yes; then
11074 cat >>confdefs.h <<_ACEOF
11075 #define HAVE_LIBINET 1
11076 _ACEOF
11078 LIBS="-linet $LIBS"
11082 esac
11083 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
11084 test x"$ac_cv_lib_inet_connect" = x"yes"; then
11085 # ac_cv_func_connect=yes
11086 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
11088 cat >>confdefs.h <<\_ACEOF
11089 #define HAVE_CONNECT 1
11090 _ACEOF
11095 ###############################################
11096 # test for where we get yp_get_default_domain() from
11097 echo "$as_me:$LINENO: checking for library containing yp_get_default_domain" >&5
11098 echo $ECHO_N "checking for library containing yp_get_default_domain... $ECHO_C" >&6
11099 if test "${ac_cv_search_yp_get_default_domain+set}" = set; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11101 else
11102 ac_func_search_save_LIBS=$LIBS
11103 ac_cv_search_yp_get_default_domain=no
11104 cat >conftest.$ac_ext <<_ACEOF
11105 #line $LINENO "configure"
11106 #include "confdefs.h"
11108 /* Override any gcc2 internal prototype to avoid an error. */
11109 #ifdef __cplusplus
11110 extern "C"
11111 #endif
11112 /* We use char because int might match the return type of a gcc2
11113 builtin and then its argument prototype would still apply. */
11114 char yp_get_default_domain ();
11115 #ifdef F77_DUMMY_MAIN
11116 # ifdef __cplusplus
11117 extern "C"
11118 # endif
11119 int F77_DUMMY_MAIN() { return 1; }
11120 #endif
11122 main ()
11124 yp_get_default_domain ();
11126 return 0;
11128 _ACEOF
11129 rm -f conftest.$ac_objext conftest$ac_exeext
11130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11131 (eval $ac_link) 2>&5
11132 ac_status=$?
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } &&
11135 { ac_try='test -s conftest$ac_exeext'
11136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137 (eval $ac_try) 2>&5
11138 ac_status=$?
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; }; then
11141 ac_cv_search_yp_get_default_domain="none required"
11142 else
11143 echo "$as_me: failed program was:" >&5
11144 cat conftest.$ac_ext >&5
11146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11147 if test "$ac_cv_search_yp_get_default_domain" = no; then
11148 for ac_lib in nsl; do
11149 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11150 cat >conftest.$ac_ext <<_ACEOF
11151 #line $LINENO "configure"
11152 #include "confdefs.h"
11154 /* Override any gcc2 internal prototype to avoid an error. */
11155 #ifdef __cplusplus
11156 extern "C"
11157 #endif
11158 /* We use char because int might match the return type of a gcc2
11159 builtin and then its argument prototype would still apply. */
11160 char yp_get_default_domain ();
11161 #ifdef F77_DUMMY_MAIN
11162 # ifdef __cplusplus
11163 extern "C"
11164 # endif
11165 int F77_DUMMY_MAIN() { return 1; }
11166 #endif
11168 main ()
11170 yp_get_default_domain ();
11172 return 0;
11174 _ACEOF
11175 rm -f conftest.$ac_objext conftest$ac_exeext
11176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11177 (eval $ac_link) 2>&5
11178 ac_status=$?
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } &&
11181 { ac_try='test -s conftest$ac_exeext'
11182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183 (eval $ac_try) 2>&5
11184 ac_status=$?
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; }; then
11187 ac_cv_search_yp_get_default_domain="-l$ac_lib"
11188 break
11189 else
11190 echo "$as_me: failed program was:" >&5
11191 cat conftest.$ac_ext >&5
11193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11194 done
11196 LIBS=$ac_func_search_save_LIBS
11198 echo "$as_me:$LINENO: result: $ac_cv_search_yp_get_default_domain" >&5
11199 echo "${ECHO_T}$ac_cv_search_yp_get_default_domain" >&6
11200 if test "$ac_cv_search_yp_get_default_domain" != no; then
11201 test "$ac_cv_search_yp_get_default_domain" = "none required" || LIBS="$ac_cv_search_yp_get_default_domain $LIBS"
11206 for ac_func in yp_get_default_domain
11208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11209 echo "$as_me:$LINENO: checking for $ac_func" >&5
11210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11211 if eval "test \"\${$as_ac_var+set}\" = set"; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11213 else
11214 cat >conftest.$ac_ext <<_ACEOF
11215 #line $LINENO "configure"
11216 #include "confdefs.h"
11217 /* System header to define __stub macros and hopefully few prototypes,
11218 which can conflict with char $ac_func (); below. */
11219 #include <assert.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 $ac_func ();
11227 char (*f) ();
11229 #ifdef F77_DUMMY_MAIN
11230 # ifdef __cplusplus
11231 extern "C"
11232 # endif
11233 int F77_DUMMY_MAIN() { return 1; }
11234 #endif
11236 main ()
11238 /* The GNU C library defines this for functions which it implements
11239 to always fail with ENOSYS. Some functions are actually named
11240 something starting with __ and the normal name is an alias. */
11241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11242 choke me
11243 #else
11244 f = $ac_func;
11245 #endif
11248 return 0;
11250 _ACEOF
11251 rm -f conftest.$ac_objext conftest$ac_exeext
11252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11253 (eval $ac_link) 2>&5
11254 ac_status=$?
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } &&
11257 { ac_try='test -s conftest$ac_exeext'
11258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259 (eval $ac_try) 2>&5
11260 ac_status=$?
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; }; then
11263 eval "$as_ac_var=yes"
11264 else
11265 echo "$as_me: failed program was:" >&5
11266 cat conftest.$ac_ext >&5
11267 eval "$as_ac_var=no"
11269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11273 if test `eval echo '${'$as_ac_var'}'` = yes; then
11274 cat >>confdefs.h <<_ACEOF
11275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11276 _ACEOF
11279 done
11282 # Check if we have execl, if not we need to compile smbrun.
11284 for ac_func in execl
11286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11287 echo "$as_me:$LINENO: checking for $ac_func" >&5
11288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11289 if eval "test \"\${$as_ac_var+set}\" = set"; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11291 else
11292 cat >conftest.$ac_ext <<_ACEOF
11293 #line $LINENO "configure"
11294 #include "confdefs.h"
11295 /* System header to define __stub macros and hopefully few prototypes,
11296 which can conflict with char $ac_func (); below. */
11297 #include <assert.h>
11298 /* Override any gcc2 internal prototype to avoid an error. */
11299 #ifdef __cplusplus
11300 extern "C"
11301 #endif
11302 /* We use char because int might match the return type of a gcc2
11303 builtin and then its argument prototype would still apply. */
11304 char $ac_func ();
11305 char (*f) ();
11307 #ifdef F77_DUMMY_MAIN
11308 # ifdef __cplusplus
11309 extern "C"
11310 # endif
11311 int F77_DUMMY_MAIN() { return 1; }
11312 #endif
11314 main ()
11316 /* The GNU C library defines this for functions which it implements
11317 to always fail with ENOSYS. Some functions are actually named
11318 something starting with __ and the normal name is an alias. */
11319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11320 choke me
11321 #else
11322 f = $ac_func;
11323 #endif
11326 return 0;
11328 _ACEOF
11329 rm -f conftest.$ac_objext conftest$ac_exeext
11330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11331 (eval $ac_link) 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } &&
11335 { ac_try='test -s conftest$ac_exeext'
11336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; }; then
11341 eval "$as_ac_var=yes"
11342 else
11343 echo "$as_me: failed program was:" >&5
11344 cat conftest.$ac_ext >&5
11345 eval "$as_ac_var=no"
11347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11351 if test `eval echo '${'$as_ac_var'}'` = yes; then
11352 cat >>confdefs.h <<_ACEOF
11353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11354 _ACEOF
11357 done
11359 if test x"$ac_cv_func_execl" = x"no"; then
11360 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbrun\$(EXEEXT)"
11382 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
11384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11385 echo "$as_me:$LINENO: checking for $ac_func" >&5
11386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11387 if eval "test \"\${$as_ac_var+set}\" = set"; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11389 else
11390 cat >conftest.$ac_ext <<_ACEOF
11391 #line $LINENO "configure"
11392 #include "confdefs.h"
11393 /* System header to define __stub macros and hopefully few prototypes,
11394 which can conflict with char $ac_func (); below. */
11395 #include <assert.h>
11396 /* Override any gcc2 internal prototype to avoid an error. */
11397 #ifdef __cplusplus
11398 extern "C"
11399 #endif
11400 /* We use char because int might match the return type of a gcc2
11401 builtin and then its argument prototype would still apply. */
11402 char $ac_func ();
11403 char (*f) ();
11405 #ifdef F77_DUMMY_MAIN
11406 # ifdef __cplusplus
11407 extern "C"
11408 # endif
11409 int F77_DUMMY_MAIN() { return 1; }
11410 #endif
11412 main ()
11414 /* The GNU C library defines this for functions which it implements
11415 to always fail with ENOSYS. Some functions are actually named
11416 something starting with __ and the normal name is an alias. */
11417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11418 choke me
11419 #else
11420 f = $ac_func;
11421 #endif
11424 return 0;
11426 _ACEOF
11427 rm -f conftest.$ac_objext conftest$ac_exeext
11428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11429 (eval $ac_link) 2>&5
11430 ac_status=$?
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } &&
11433 { ac_try='test -s conftest$ac_exeext'
11434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435 (eval $ac_try) 2>&5
11436 ac_status=$?
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); }; }; then
11439 eval "$as_ac_var=yes"
11440 else
11441 echo "$as_me: failed program was:" >&5
11442 cat conftest.$ac_ext >&5
11443 eval "$as_ac_var=no"
11445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11449 if test `eval echo '${'$as_ac_var'}'` = yes; then
11450 cat >>confdefs.h <<_ACEOF
11451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11452 _ACEOF
11455 done
11468 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
11470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11471 echo "$as_me:$LINENO: checking for $ac_func" >&5
11472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11473 if eval "test \"\${$as_ac_var+set}\" = set"; then
11474 echo $ECHO_N "(cached) $ECHO_C" >&6
11475 else
11476 cat >conftest.$ac_ext <<_ACEOF
11477 #line $LINENO "configure"
11478 #include "confdefs.h"
11479 /* System header to define __stub macros and hopefully few prototypes,
11480 which can conflict with char $ac_func (); below. */
11481 #include <assert.h>
11482 /* Override any gcc2 internal prototype to avoid an error. */
11483 #ifdef __cplusplus
11484 extern "C"
11485 #endif
11486 /* We use char because int might match the return type of a gcc2
11487 builtin and then its argument prototype would still apply. */
11488 char $ac_func ();
11489 char (*f) ();
11491 #ifdef F77_DUMMY_MAIN
11492 # ifdef __cplusplus
11493 extern "C"
11494 # endif
11495 int F77_DUMMY_MAIN() { return 1; }
11496 #endif
11498 main ()
11500 /* The GNU C library defines this for functions which it implements
11501 to always fail with ENOSYS. Some functions are actually named
11502 something starting with __ and the normal name is an alias. */
11503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11504 choke me
11505 #else
11506 f = $ac_func;
11507 #endif
11510 return 0;
11512 _ACEOF
11513 rm -f conftest.$ac_objext conftest$ac_exeext
11514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11515 (eval $ac_link) 2>&5
11516 ac_status=$?
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } &&
11519 { ac_try='test -s conftest$ac_exeext'
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; }; then
11525 eval "$as_ac_var=yes"
11526 else
11527 echo "$as_me: failed program was:" >&5
11528 cat conftest.$ac_ext >&5
11529 eval "$as_ac_var=no"
11531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11535 if test `eval echo '${'$as_ac_var'}'` = yes; then
11536 cat >>confdefs.h <<_ACEOF
11537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11538 _ACEOF
11541 done
11554 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
11556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11557 echo "$as_me:$LINENO: checking for $ac_func" >&5
11558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11559 if eval "test \"\${$as_ac_var+set}\" = set"; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11561 else
11562 cat >conftest.$ac_ext <<_ACEOF
11563 #line $LINENO "configure"
11564 #include "confdefs.h"
11565 /* System header to define __stub macros and hopefully few prototypes,
11566 which can conflict with char $ac_func (); below. */
11567 #include <assert.h>
11568 /* Override any gcc2 internal prototype to avoid an error. */
11569 #ifdef __cplusplus
11570 extern "C"
11571 #endif
11572 /* We use char because int might match the return type of a gcc2
11573 builtin and then its argument prototype would still apply. */
11574 char $ac_func ();
11575 char (*f) ();
11577 #ifdef F77_DUMMY_MAIN
11578 # ifdef __cplusplus
11579 extern "C"
11580 # endif
11581 int F77_DUMMY_MAIN() { return 1; }
11582 #endif
11584 main ()
11586 /* The GNU C library defines this for functions which it implements
11587 to always fail with ENOSYS. Some functions are actually named
11588 something starting with __ and the normal name is an alias. */
11589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11590 choke me
11591 #else
11592 f = $ac_func;
11593 #endif
11596 return 0;
11598 _ACEOF
11599 rm -f conftest.$ac_objext conftest$ac_exeext
11600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11601 (eval $ac_link) 2>&5
11602 ac_status=$?
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); } &&
11605 { ac_try='test -s conftest$ac_exeext'
11606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607 (eval $ac_try) 2>&5
11608 ac_status=$?
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); }; }; then
11611 eval "$as_ac_var=yes"
11612 else
11613 echo "$as_me: failed program was:" >&5
11614 cat conftest.$ac_ext >&5
11615 eval "$as_ac_var=no"
11617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11621 if test `eval echo '${'$as_ac_var'}'` = yes; then
11622 cat >>confdefs.h <<_ACEOF
11623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11624 _ACEOF
11627 done
11638 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
11640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11641 echo "$as_me:$LINENO: checking for $ac_func" >&5
11642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11643 if eval "test \"\${$as_ac_var+set}\" = set"; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
11645 else
11646 cat >conftest.$ac_ext <<_ACEOF
11647 #line $LINENO "configure"
11648 #include "confdefs.h"
11649 /* System header to define __stub macros and hopefully few prototypes,
11650 which can conflict with char $ac_func (); below. */
11651 #include <assert.h>
11652 /* Override any gcc2 internal prototype to avoid an error. */
11653 #ifdef __cplusplus
11654 extern "C"
11655 #endif
11656 /* We use char because int might match the return type of a gcc2
11657 builtin and then its argument prototype would still apply. */
11658 char $ac_func ();
11659 char (*f) ();
11661 #ifdef F77_DUMMY_MAIN
11662 # ifdef __cplusplus
11663 extern "C"
11664 # endif
11665 int F77_DUMMY_MAIN() { return 1; }
11666 #endif
11668 main ()
11670 /* The GNU C library defines this for functions which it implements
11671 to always fail with ENOSYS. Some functions are actually named
11672 something starting with __ and the normal name is an alias. */
11673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11674 choke me
11675 #else
11676 f = $ac_func;
11677 #endif
11680 return 0;
11682 _ACEOF
11683 rm -f conftest.$ac_objext conftest$ac_exeext
11684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11685 (eval $ac_link) 2>&5
11686 ac_status=$?
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); } &&
11689 { ac_try='test -s conftest$ac_exeext'
11690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11691 (eval $ac_try) 2>&5
11692 ac_status=$?
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); }; }; then
11695 eval "$as_ac_var=yes"
11696 else
11697 echo "$as_me: failed program was:" >&5
11698 cat conftest.$ac_ext >&5
11699 eval "$as_ac_var=no"
11701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11705 if test `eval echo '${'$as_ac_var'}'` = yes; then
11706 cat >>confdefs.h <<_ACEOF
11707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11708 _ACEOF
11711 done
11721 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
11723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11724 echo "$as_me:$LINENO: checking for $ac_func" >&5
11725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11726 if eval "test \"\${$as_ac_var+set}\" = set"; then
11727 echo $ECHO_N "(cached) $ECHO_C" >&6
11728 else
11729 cat >conftest.$ac_ext <<_ACEOF
11730 #line $LINENO "configure"
11731 #include "confdefs.h"
11732 /* System header to define __stub macros and hopefully few prototypes,
11733 which can conflict with char $ac_func (); below. */
11734 #include <assert.h>
11735 /* Override any gcc2 internal prototype to avoid an error. */
11736 #ifdef __cplusplus
11737 extern "C"
11738 #endif
11739 /* We use char because int might match the return type of a gcc2
11740 builtin and then its argument prototype would still apply. */
11741 char $ac_func ();
11742 char (*f) ();
11744 #ifdef F77_DUMMY_MAIN
11745 # ifdef __cplusplus
11746 extern "C"
11747 # endif
11748 int F77_DUMMY_MAIN() { return 1; }
11749 #endif
11751 main ()
11753 /* The GNU C library defines this for functions which it implements
11754 to always fail with ENOSYS. Some functions are actually named
11755 something starting with __ and the normal name is an alias. */
11756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11757 choke me
11758 #else
11759 f = $ac_func;
11760 #endif
11763 return 0;
11765 _ACEOF
11766 rm -f conftest.$ac_objext conftest$ac_exeext
11767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11768 (eval $ac_link) 2>&5
11769 ac_status=$?
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } &&
11772 { ac_try='test -s conftest$ac_exeext'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11775 ac_status=$?
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }; then
11778 eval "$as_ac_var=yes"
11779 else
11780 echo "$as_me: failed program was:" >&5
11781 cat conftest.$ac_ext >&5
11782 eval "$as_ac_var=no"
11784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11788 if test `eval echo '${'$as_ac_var'}'` = yes; then
11789 cat >>confdefs.h <<_ACEOF
11790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11791 _ACEOF
11794 done
11806 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
11808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11809 echo "$as_me:$LINENO: checking for $ac_func" >&5
11810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11811 if eval "test \"\${$as_ac_var+set}\" = set"; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11813 else
11814 cat >conftest.$ac_ext <<_ACEOF
11815 #line $LINENO "configure"
11816 #include "confdefs.h"
11817 /* System header to define __stub macros and hopefully few prototypes,
11818 which can conflict with char $ac_func (); below. */
11819 #include <assert.h>
11820 /* Override any gcc2 internal prototype to avoid an error. */
11821 #ifdef __cplusplus
11822 extern "C"
11823 #endif
11824 /* We use char because int might match the return type of a gcc2
11825 builtin and then its argument prototype would still apply. */
11826 char $ac_func ();
11827 char (*f) ();
11829 #ifdef F77_DUMMY_MAIN
11830 # ifdef __cplusplus
11831 extern "C"
11832 # endif
11833 int F77_DUMMY_MAIN() { return 1; }
11834 #endif
11836 main ()
11838 /* The GNU C library defines this for functions which it implements
11839 to always fail with ENOSYS. Some functions are actually named
11840 something starting with __ and the normal name is an alias. */
11841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11842 choke me
11843 #else
11844 f = $ac_func;
11845 #endif
11848 return 0;
11850 _ACEOF
11851 rm -f conftest.$ac_objext conftest$ac_exeext
11852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11853 (eval $ac_link) 2>&5
11854 ac_status=$?
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } &&
11857 { ac_try='test -s conftest$ac_exeext'
11858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11859 (eval $ac_try) 2>&5
11860 ac_status=$?
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); }; }; then
11863 eval "$as_ac_var=yes"
11864 else
11865 echo "$as_me: failed program was:" >&5
11866 cat conftest.$ac_ext >&5
11867 eval "$as_ac_var=no"
11869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11873 if test `eval echo '${'$as_ac_var'}'` = yes; then
11874 cat >>confdefs.h <<_ACEOF
11875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11876 _ACEOF
11879 done
11889 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
11891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11892 echo "$as_me:$LINENO: checking for $ac_func" >&5
11893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11894 if eval "test \"\${$as_ac_var+set}\" = set"; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11896 else
11897 cat >conftest.$ac_ext <<_ACEOF
11898 #line $LINENO "configure"
11899 #include "confdefs.h"
11900 /* System header to define __stub macros and hopefully few prototypes,
11901 which can conflict with char $ac_func (); below. */
11902 #include <assert.h>
11903 /* Override any gcc2 internal prototype to avoid an error. */
11904 #ifdef __cplusplus
11905 extern "C"
11906 #endif
11907 /* We use char because int might match the return type of a gcc2
11908 builtin and then its argument prototype would still apply. */
11909 char $ac_func ();
11910 char (*f) ();
11912 #ifdef F77_DUMMY_MAIN
11913 # ifdef __cplusplus
11914 extern "C"
11915 # endif
11916 int F77_DUMMY_MAIN() { return 1; }
11917 #endif
11919 main ()
11921 /* The GNU C library defines this for functions which it implements
11922 to always fail with ENOSYS. Some functions are actually named
11923 something starting with __ and the normal name is an alias. */
11924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11925 choke me
11926 #else
11927 f = $ac_func;
11928 #endif
11931 return 0;
11933 _ACEOF
11934 rm -f conftest.$ac_objext conftest$ac_exeext
11935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11936 (eval $ac_link) 2>&5
11937 ac_status=$?
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try='test -s conftest$ac_exeext'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; }; then
11946 eval "$as_ac_var=yes"
11947 else
11948 echo "$as_me: failed program was:" >&5
11949 cat conftest.$ac_ext >&5
11950 eval "$as_ac_var=no"
11952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11956 if test `eval echo '${'$as_ac_var'}'` = yes; then
11957 cat >>confdefs.h <<_ACEOF
11958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11959 _ACEOF
11962 done
11971 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
11973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11974 echo "$as_me:$LINENO: checking for $ac_func" >&5
11975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11976 if eval "test \"\${$as_ac_var+set}\" = set"; then
11977 echo $ECHO_N "(cached) $ECHO_C" >&6
11978 else
11979 cat >conftest.$ac_ext <<_ACEOF
11980 #line $LINENO "configure"
11981 #include "confdefs.h"
11982 /* System header to define __stub macros and hopefully few prototypes,
11983 which can conflict with char $ac_func (); below. */
11984 #include <assert.h>
11985 /* Override any gcc2 internal prototype to avoid an error. */
11986 #ifdef __cplusplus
11987 extern "C"
11988 #endif
11989 /* We use char because int might match the return type of a gcc2
11990 builtin and then its argument prototype would still apply. */
11991 char $ac_func ();
11992 char (*f) ();
11994 #ifdef F77_DUMMY_MAIN
11995 # ifdef __cplusplus
11996 extern "C"
11997 # endif
11998 int F77_DUMMY_MAIN() { return 1; }
11999 #endif
12001 main ()
12003 /* The GNU C library defines this for functions which it implements
12004 to always fail with ENOSYS. Some functions are actually named
12005 something starting with __ and the normal name is an alias. */
12006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12007 choke me
12008 #else
12009 f = $ac_func;
12010 #endif
12013 return 0;
12015 _ACEOF
12016 rm -f conftest.$ac_objext conftest$ac_exeext
12017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12018 (eval $ac_link) 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } &&
12022 { ac_try='test -s conftest$ac_exeext'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12025 ac_status=$?
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; }; then
12028 eval "$as_ac_var=yes"
12029 else
12030 echo "$as_me: failed program was:" >&5
12031 cat conftest.$ac_ext >&5
12032 eval "$as_ac_var=no"
12034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12038 if test `eval echo '${'$as_ac_var'}'` = yes; then
12039 cat >>confdefs.h <<_ACEOF
12040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12041 _ACEOF
12044 done
12057 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
12059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12060 echo "$as_me:$LINENO: checking for $ac_func" >&5
12061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12062 if eval "test \"\${$as_ac_var+set}\" = set"; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12064 else
12065 cat >conftest.$ac_ext <<_ACEOF
12066 #line $LINENO "configure"
12067 #include "confdefs.h"
12068 /* System header to define __stub macros and hopefully few prototypes,
12069 which can conflict with char $ac_func (); below. */
12070 #include <assert.h>
12071 /* Override any gcc2 internal prototype to avoid an error. */
12072 #ifdef __cplusplus
12073 extern "C"
12074 #endif
12075 /* We use char because int might match the return type of a gcc2
12076 builtin and then its argument prototype would still apply. */
12077 char $ac_func ();
12078 char (*f) ();
12080 #ifdef F77_DUMMY_MAIN
12081 # ifdef __cplusplus
12082 extern "C"
12083 # endif
12084 int F77_DUMMY_MAIN() { return 1; }
12085 #endif
12087 main ()
12089 /* The GNU C library defines this for functions which it implements
12090 to always fail with ENOSYS. Some functions are actually named
12091 something starting with __ and the normal name is an alias. */
12092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12093 choke me
12094 #else
12095 f = $ac_func;
12096 #endif
12099 return 0;
12101 _ACEOF
12102 rm -f conftest.$ac_objext conftest$ac_exeext
12103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12104 (eval $ac_link) 2>&5
12105 ac_status=$?
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } &&
12108 { ac_try='test -s conftest$ac_exeext'
12109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110 (eval $ac_try) 2>&5
12111 ac_status=$?
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; }; then
12114 eval "$as_ac_var=yes"
12115 else
12116 echo "$as_me: failed program was:" >&5
12117 cat conftest.$ac_ext >&5
12118 eval "$as_ac_var=no"
12120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12124 if test `eval echo '${'$as_ac_var'}'` = yes; then
12125 cat >>confdefs.h <<_ACEOF
12126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12127 _ACEOF
12130 done
12136 for ac_func in syslog vsyslog getgrouplist timegm
12138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12139 echo "$as_me:$LINENO: checking for $ac_func" >&5
12140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12141 if eval "test \"\${$as_ac_var+set}\" = set"; then
12142 echo $ECHO_N "(cached) $ECHO_C" >&6
12143 else
12144 cat >conftest.$ac_ext <<_ACEOF
12145 #line $LINENO "configure"
12146 #include "confdefs.h"
12147 /* System header to define __stub macros and hopefully few prototypes,
12148 which can conflict with char $ac_func (); below. */
12149 #include <assert.h>
12150 /* Override any gcc2 internal prototype to avoid an error. */
12151 #ifdef __cplusplus
12152 extern "C"
12153 #endif
12154 /* We use char because int might match the return type of a gcc2
12155 builtin and then its argument prototype would still apply. */
12156 char $ac_func ();
12157 char (*f) ();
12159 #ifdef F77_DUMMY_MAIN
12160 # ifdef __cplusplus
12161 extern "C"
12162 # endif
12163 int F77_DUMMY_MAIN() { return 1; }
12164 #endif
12166 main ()
12168 /* The GNU C library defines this for functions which it implements
12169 to always fail with ENOSYS. Some functions are actually named
12170 something starting with __ and the normal name is an alias. */
12171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12172 choke me
12173 #else
12174 f = $ac_func;
12175 #endif
12178 return 0;
12180 _ACEOF
12181 rm -f conftest.$ac_objext conftest$ac_exeext
12182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12183 (eval $ac_link) 2>&5
12184 ac_status=$?
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } &&
12187 { ac_try='test -s conftest$ac_exeext'
12188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12189 (eval $ac_try) 2>&5
12190 ac_status=$?
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; }; then
12193 eval "$as_ac_var=yes"
12194 else
12195 echo "$as_me: failed program was:" >&5
12196 cat conftest.$ac_ext >&5
12197 eval "$as_ac_var=no"
12199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12203 if test `eval echo '${'$as_ac_var'}'` = yes; then
12204 cat >>confdefs.h <<_ACEOF
12205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12206 _ACEOF
12209 done
12211 # setbuffer, shmget, shm_open are needed for smbtorture
12215 for ac_func in setbuffer shmget shm_open
12217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12218 echo "$as_me:$LINENO: checking for $ac_func" >&5
12219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12220 if eval "test \"\${$as_ac_var+set}\" = set"; then
12221 echo $ECHO_N "(cached) $ECHO_C" >&6
12222 else
12223 cat >conftest.$ac_ext <<_ACEOF
12224 #line $LINENO "configure"
12225 #include "confdefs.h"
12226 /* System header to define __stub macros and hopefully few prototypes,
12227 which can conflict with char $ac_func (); below. */
12228 #include <assert.h>
12229 /* Override any gcc2 internal prototype to avoid an error. */
12230 #ifdef __cplusplus
12231 extern "C"
12232 #endif
12233 /* We use char because int might match the return type of a gcc2
12234 builtin and then its argument prototype would still apply. */
12235 char $ac_func ();
12236 char (*f) ();
12238 #ifdef F77_DUMMY_MAIN
12239 # ifdef __cplusplus
12240 extern "C"
12241 # endif
12242 int F77_DUMMY_MAIN() { return 1; }
12243 #endif
12245 main ()
12247 /* The GNU C library defines this for functions which it implements
12248 to always fail with ENOSYS. Some functions are actually named
12249 something starting with __ and the normal name is an alias. */
12250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12251 choke me
12252 #else
12253 f = $ac_func;
12254 #endif
12257 return 0;
12259 _ACEOF
12260 rm -f conftest.$ac_objext conftest$ac_exeext
12261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12262 (eval $ac_link) 2>&5
12263 ac_status=$?
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } &&
12266 { ac_try='test -s conftest$ac_exeext'
12267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268 (eval $ac_try) 2>&5
12269 ac_status=$?
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; }; then
12272 eval "$as_ac_var=yes"
12273 else
12274 echo "$as_me: failed program was:" >&5
12275 cat conftest.$ac_ext >&5
12276 eval "$as_ac_var=no"
12278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12281 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12282 if test `eval echo '${'$as_ac_var'}'` = yes; then
12283 cat >>confdefs.h <<_ACEOF
12284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12285 _ACEOF
12288 done
12291 # syscall() is needed for smbwrapper.
12293 for ac_func in syscall
12295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12296 echo "$as_me:$LINENO: checking for $ac_func" >&5
12297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12298 if eval "test \"\${$as_ac_var+set}\" = set"; then
12299 echo $ECHO_N "(cached) $ECHO_C" >&6
12300 else
12301 cat >conftest.$ac_ext <<_ACEOF
12302 #line $LINENO "configure"
12303 #include "confdefs.h"
12304 /* System header to define __stub macros and hopefully few prototypes,
12305 which can conflict with char $ac_func (); below. */
12306 #include <assert.h>
12307 /* Override any gcc2 internal prototype to avoid an error. */
12308 #ifdef __cplusplus
12309 extern "C"
12310 #endif
12311 /* We use char because int might match the return type of a gcc2
12312 builtin and then its argument prototype would still apply. */
12313 char $ac_func ();
12314 char (*f) ();
12316 #ifdef F77_DUMMY_MAIN
12317 # ifdef __cplusplus
12318 extern "C"
12319 # endif
12320 int F77_DUMMY_MAIN() { return 1; }
12321 #endif
12323 main ()
12325 /* The GNU C library defines this for functions which it implements
12326 to always fail with ENOSYS. Some functions are actually named
12327 something starting with __ and the normal name is an alias. */
12328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12329 choke me
12330 #else
12331 f = $ac_func;
12332 #endif
12335 return 0;
12337 _ACEOF
12338 rm -f conftest.$ac_objext conftest$ac_exeext
12339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12340 (eval $ac_link) 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } &&
12344 { ac_try='test -s conftest$ac_exeext'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; }; then
12350 eval "$as_ac_var=yes"
12351 else
12352 echo "$as_me: failed program was:" >&5
12353 cat conftest.$ac_ext >&5
12354 eval "$as_ac_var=no"
12356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12360 if test `eval echo '${'$as_ac_var'}'` = yes; then
12361 cat >>confdefs.h <<_ACEOF
12362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12363 _ACEOF
12366 done
12376 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
12378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12379 echo "$as_me:$LINENO: checking for $ac_func" >&5
12380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12381 if eval "test \"\${$as_ac_var+set}\" = set"; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 else
12384 cat >conftest.$ac_ext <<_ACEOF
12385 #line $LINENO "configure"
12386 #include "confdefs.h"
12387 /* System header to define __stub macros and hopefully few prototypes,
12388 which can conflict with char $ac_func (); below. */
12389 #include <assert.h>
12390 /* Override any gcc2 internal prototype to avoid an error. */
12391 #ifdef __cplusplus
12392 extern "C"
12393 #endif
12394 /* We use char because int might match the return type of a gcc2
12395 builtin and then its argument prototype would still apply. */
12396 char $ac_func ();
12397 char (*f) ();
12399 #ifdef F77_DUMMY_MAIN
12400 # ifdef __cplusplus
12401 extern "C"
12402 # endif
12403 int F77_DUMMY_MAIN() { return 1; }
12404 #endif
12406 main ()
12408 /* The GNU C library defines this for functions which it implements
12409 to always fail with ENOSYS. Some functions are actually named
12410 something starting with __ and the normal name is an alias. */
12411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12412 choke me
12413 #else
12414 f = $ac_func;
12415 #endif
12418 return 0;
12420 _ACEOF
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12423 (eval $ac_link) 2>&5
12424 ac_status=$?
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
12427 { ac_try='test -s conftest$ac_exeext'
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12430 ac_status=$?
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; }; then
12433 eval "$as_ac_var=yes"
12434 else
12435 echo "$as_me: failed program was:" >&5
12436 cat conftest.$ac_ext >&5
12437 eval "$as_ac_var=no"
12439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12443 if test `eval echo '${'$as_ac_var'}'` = yes; then
12444 cat >>confdefs.h <<_ACEOF
12445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12446 _ACEOF
12449 done
12458 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
12460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12461 echo "$as_me:$LINENO: checking for $ac_func" >&5
12462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12463 if eval "test \"\${$as_ac_var+set}\" = set"; then
12464 echo $ECHO_N "(cached) $ECHO_C" >&6
12465 else
12466 cat >conftest.$ac_ext <<_ACEOF
12467 #line $LINENO "configure"
12468 #include "confdefs.h"
12469 /* System header to define __stub macros and hopefully few prototypes,
12470 which can conflict with char $ac_func (); below. */
12471 #include <assert.h>
12472 /* Override any gcc2 internal prototype to avoid an error. */
12473 #ifdef __cplusplus
12474 extern "C"
12475 #endif
12476 /* We use char because int might match the return type of a gcc2
12477 builtin and then its argument prototype would still apply. */
12478 char $ac_func ();
12479 char (*f) ();
12481 #ifdef F77_DUMMY_MAIN
12482 # ifdef __cplusplus
12483 extern "C"
12484 # endif
12485 int F77_DUMMY_MAIN() { return 1; }
12486 #endif
12488 main ()
12490 /* The GNU C library defines this for functions which it implements
12491 to always fail with ENOSYS. Some functions are actually named
12492 something starting with __ and the normal name is an alias. */
12493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12494 choke me
12495 #else
12496 f = $ac_func;
12497 #endif
12500 return 0;
12502 _ACEOF
12503 rm -f conftest.$ac_objext conftest$ac_exeext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12505 (eval $ac_link) 2>&5
12506 ac_status=$?
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
12509 { ac_try='test -s conftest$ac_exeext'
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12512 ac_status=$?
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; }; then
12515 eval "$as_ac_var=yes"
12516 else
12517 echo "$as_me: failed program was:" >&5
12518 cat conftest.$ac_ext >&5
12519 eval "$as_ac_var=no"
12521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12525 if test `eval echo '${'$as_ac_var'}'` = yes; then
12526 cat >>confdefs.h <<_ACEOF
12527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12528 _ACEOF
12531 done
12535 for ac_func in __getcwd _getcwd
12537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12538 echo "$as_me:$LINENO: checking for $ac_func" >&5
12539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12540 if eval "test \"\${$as_ac_var+set}\" = set"; then
12541 echo $ECHO_N "(cached) $ECHO_C" >&6
12542 else
12543 cat >conftest.$ac_ext <<_ACEOF
12544 #line $LINENO "configure"
12545 #include "confdefs.h"
12546 /* System header to define __stub macros and hopefully few prototypes,
12547 which can conflict with char $ac_func (); below. */
12548 #include <assert.h>
12549 /* Override any gcc2 internal prototype to avoid an error. */
12550 #ifdef __cplusplus
12551 extern "C"
12552 #endif
12553 /* We use char because int might match the return type of a gcc2
12554 builtin and then its argument prototype would still apply. */
12555 char $ac_func ();
12556 char (*f) ();
12558 #ifdef F77_DUMMY_MAIN
12559 # ifdef __cplusplus
12560 extern "C"
12561 # endif
12562 int F77_DUMMY_MAIN() { return 1; }
12563 #endif
12565 main ()
12567 /* The GNU C library defines this for functions which it implements
12568 to always fail with ENOSYS. Some functions are actually named
12569 something starting with __ and the normal name is an alias. */
12570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12571 choke me
12572 #else
12573 f = $ac_func;
12574 #endif
12577 return 0;
12579 _ACEOF
12580 rm -f conftest.$ac_objext conftest$ac_exeext
12581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12582 (eval $ac_link) 2>&5
12583 ac_status=$?
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); } &&
12586 { ac_try='test -s conftest$ac_exeext'
12587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12588 (eval $ac_try) 2>&5
12589 ac_status=$?
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; }; then
12592 eval "$as_ac_var=yes"
12593 else
12594 echo "$as_me: failed program was:" >&5
12595 cat conftest.$ac_ext >&5
12596 eval "$as_ac_var=no"
12598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12602 if test `eval echo '${'$as_ac_var'}'` = yes; then
12603 cat >>confdefs.h <<_ACEOF
12604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12605 _ACEOF
12608 done
12613 for ac_func in __xstat __fxstat __lxstat
12615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12616 echo "$as_me:$LINENO: checking for $ac_func" >&5
12617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12618 if eval "test \"\${$as_ac_var+set}\" = set"; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
12620 else
12621 cat >conftest.$ac_ext <<_ACEOF
12622 #line $LINENO "configure"
12623 #include "confdefs.h"
12624 /* System header to define __stub macros and hopefully few prototypes,
12625 which can conflict with char $ac_func (); below. */
12626 #include <assert.h>
12627 /* Override any gcc2 internal prototype to avoid an error. */
12628 #ifdef __cplusplus
12629 extern "C"
12630 #endif
12631 /* We use char because int might match the return type of a gcc2
12632 builtin and then its argument prototype would still apply. */
12633 char $ac_func ();
12634 char (*f) ();
12636 #ifdef F77_DUMMY_MAIN
12637 # ifdef __cplusplus
12638 extern "C"
12639 # endif
12640 int F77_DUMMY_MAIN() { return 1; }
12641 #endif
12643 main ()
12645 /* The GNU C library defines this for functions which it implements
12646 to always fail with ENOSYS. Some functions are actually named
12647 something starting with __ and the normal name is an alias. */
12648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12649 choke me
12650 #else
12651 f = $ac_func;
12652 #endif
12655 return 0;
12657 _ACEOF
12658 rm -f conftest.$ac_objext conftest$ac_exeext
12659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12660 (eval $ac_link) 2>&5
12661 ac_status=$?
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); } &&
12664 { ac_try='test -s conftest$ac_exeext'
12665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666 (eval $ac_try) 2>&5
12667 ac_status=$?
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); }; }; then
12670 eval "$as_ac_var=yes"
12671 else
12672 echo "$as_me: failed program was:" >&5
12673 cat conftest.$ac_ext >&5
12674 eval "$as_ac_var=no"
12676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12679 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12680 if test `eval echo '${'$as_ac_var'}'` = yes; then
12681 cat >>confdefs.h <<_ACEOF
12682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12683 _ACEOF
12686 done
12694 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
12696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12697 echo "$as_me:$LINENO: checking for $ac_func" >&5
12698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12699 if eval "test \"\${$as_ac_var+set}\" = set"; then
12700 echo $ECHO_N "(cached) $ECHO_C" >&6
12701 else
12702 cat >conftest.$ac_ext <<_ACEOF
12703 #line $LINENO "configure"
12704 #include "confdefs.h"
12705 /* System header to define __stub macros and hopefully few prototypes,
12706 which can conflict with char $ac_func (); below. */
12707 #include <assert.h>
12708 /* Override any gcc2 internal prototype to avoid an error. */
12709 #ifdef __cplusplus
12710 extern "C"
12711 #endif
12712 /* We use char because int might match the return type of a gcc2
12713 builtin and then its argument prototype would still apply. */
12714 char $ac_func ();
12715 char (*f) ();
12717 #ifdef F77_DUMMY_MAIN
12718 # ifdef __cplusplus
12719 extern "C"
12720 # endif
12721 int F77_DUMMY_MAIN() { return 1; }
12722 #endif
12724 main ()
12726 /* The GNU C library defines this for functions which it implements
12727 to always fail with ENOSYS. Some functions are actually named
12728 something starting with __ and the normal name is an alias. */
12729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12730 choke me
12731 #else
12732 f = $ac_func;
12733 #endif
12736 return 0;
12738 _ACEOF
12739 rm -f conftest.$ac_objext conftest$ac_exeext
12740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12741 (eval $ac_link) 2>&5
12742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } &&
12745 { ac_try='test -s conftest$ac_exeext'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12748 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; }; then
12751 eval "$as_ac_var=yes"
12752 else
12753 echo "$as_me: failed program was:" >&5
12754 cat conftest.$ac_ext >&5
12755 eval "$as_ac_var=no"
12757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12761 if test `eval echo '${'$as_ac_var'}'` = yes; then
12762 cat >>confdefs.h <<_ACEOF
12763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12764 _ACEOF
12767 done
12777 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
12779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12780 echo "$as_me:$LINENO: checking for $ac_func" >&5
12781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12782 if eval "test \"\${$as_ac_var+set}\" = set"; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12784 else
12785 cat >conftest.$ac_ext <<_ACEOF
12786 #line $LINENO "configure"
12787 #include "confdefs.h"
12788 /* System header to define __stub macros and hopefully few prototypes,
12789 which can conflict with char $ac_func (); below. */
12790 #include <assert.h>
12791 /* Override any gcc2 internal prototype to avoid an error. */
12792 #ifdef __cplusplus
12793 extern "C"
12794 #endif
12795 /* We use char because int might match the return type of a gcc2
12796 builtin and then its argument prototype would still apply. */
12797 char $ac_func ();
12798 char (*f) ();
12800 #ifdef F77_DUMMY_MAIN
12801 # ifdef __cplusplus
12802 extern "C"
12803 # endif
12804 int F77_DUMMY_MAIN() { return 1; }
12805 #endif
12807 main ()
12809 /* The GNU C library defines this for functions which it implements
12810 to always fail with ENOSYS. Some functions are actually named
12811 something starting with __ and the normal name is an alias. */
12812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12813 choke me
12814 #else
12815 f = $ac_func;
12816 #endif
12819 return 0;
12821 _ACEOF
12822 rm -f conftest.$ac_objext conftest$ac_exeext
12823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12824 (eval $ac_link) 2>&5
12825 ac_status=$?
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } &&
12828 { ac_try='test -s conftest$ac_exeext'
12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830 (eval $ac_try) 2>&5
12831 ac_status=$?
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); }; }; then
12834 eval "$as_ac_var=yes"
12835 else
12836 echo "$as_me: failed program was:" >&5
12837 cat conftest.$ac_ext >&5
12838 eval "$as_ac_var=no"
12840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12844 if test `eval echo '${'$as_ac_var'}'` = yes; then
12845 cat >>confdefs.h <<_ACEOF
12846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12847 _ACEOF
12850 done
12858 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
12860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12861 echo "$as_me:$LINENO: checking for $ac_func" >&5
12862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12863 if eval "test \"\${$as_ac_var+set}\" = set"; then
12864 echo $ECHO_N "(cached) $ECHO_C" >&6
12865 else
12866 cat >conftest.$ac_ext <<_ACEOF
12867 #line $LINENO "configure"
12868 #include "confdefs.h"
12869 /* System header to define __stub macros and hopefully few prototypes,
12870 which can conflict with char $ac_func (); below. */
12871 #include <assert.h>
12872 /* Override any gcc2 internal prototype to avoid an error. */
12873 #ifdef __cplusplus
12874 extern "C"
12875 #endif
12876 /* We use char because int might match the return type of a gcc2
12877 builtin and then its argument prototype would still apply. */
12878 char $ac_func ();
12879 char (*f) ();
12881 #ifdef F77_DUMMY_MAIN
12882 # ifdef __cplusplus
12883 extern "C"
12884 # endif
12885 int F77_DUMMY_MAIN() { return 1; }
12886 #endif
12888 main ()
12890 /* The GNU C library defines this for functions which it implements
12891 to always fail with ENOSYS. Some functions are actually named
12892 something starting with __ and the normal name is an alias. */
12893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12894 choke me
12895 #else
12896 f = $ac_func;
12897 #endif
12900 return 0;
12902 _ACEOF
12903 rm -f conftest.$ac_objext conftest$ac_exeext
12904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12905 (eval $ac_link) 2>&5
12906 ac_status=$?
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } &&
12909 { ac_try='test -s conftest$ac_exeext'
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; }; then
12915 eval "$as_ac_var=yes"
12916 else
12917 echo "$as_me: failed program was:" >&5
12918 cat conftest.$ac_ext >&5
12919 eval "$as_ac_var=no"
12921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12924 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12925 if test `eval echo '${'$as_ac_var'}'` = yes; then
12926 cat >>confdefs.h <<_ACEOF
12927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12928 _ACEOF
12931 done
12940 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
12942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12943 echo "$as_me:$LINENO: checking for $ac_func" >&5
12944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12945 if eval "test \"\${$as_ac_var+set}\" = set"; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12947 else
12948 cat >conftest.$ac_ext <<_ACEOF
12949 #line $LINENO "configure"
12950 #include "confdefs.h"
12951 /* System header to define __stub macros and hopefully few prototypes,
12952 which can conflict with char $ac_func (); below. */
12953 #include <assert.h>
12954 /* Override any gcc2 internal prototype to avoid an error. */
12955 #ifdef __cplusplus
12956 extern "C"
12957 #endif
12958 /* We use char because int might match the return type of a gcc2
12959 builtin and then its argument prototype would still apply. */
12960 char $ac_func ();
12961 char (*f) ();
12963 #ifdef F77_DUMMY_MAIN
12964 # ifdef __cplusplus
12965 extern "C"
12966 # endif
12967 int F77_DUMMY_MAIN() { return 1; }
12968 #endif
12970 main ()
12972 /* The GNU C library defines this for functions which it implements
12973 to always fail with ENOSYS. Some functions are actually named
12974 something starting with __ and the normal name is an alias. */
12975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12976 choke me
12977 #else
12978 f = $ac_func;
12979 #endif
12982 return 0;
12984 _ACEOF
12985 rm -f conftest.$ac_objext conftest$ac_exeext
12986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12987 (eval $ac_link) 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); } &&
12991 { ac_try='test -s conftest$ac_exeext'
12992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993 (eval $ac_try) 2>&5
12994 ac_status=$?
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; }; then
12997 eval "$as_ac_var=yes"
12998 else
12999 echo "$as_me: failed program was:" >&5
13000 cat conftest.$ac_ext >&5
13001 eval "$as_ac_var=no"
13003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13007 if test `eval echo '${'$as_ac_var'}'` = yes; then
13008 cat >>confdefs.h <<_ACEOF
13009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13010 _ACEOF
13013 done
13019 for ac_func in _write __write _fork __fork
13021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13022 echo "$as_me:$LINENO: checking for $ac_func" >&5
13023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13024 if eval "test \"\${$as_ac_var+set}\" = set"; then
13025 echo $ECHO_N "(cached) $ECHO_C" >&6
13026 else
13027 cat >conftest.$ac_ext <<_ACEOF
13028 #line $LINENO "configure"
13029 #include "confdefs.h"
13030 /* System header to define __stub macros and hopefully few prototypes,
13031 which can conflict with char $ac_func (); below. */
13032 #include <assert.h>
13033 /* Override any gcc2 internal prototype to avoid an error. */
13034 #ifdef __cplusplus
13035 extern "C"
13036 #endif
13037 /* We use char because int might match the return type of a gcc2
13038 builtin and then its argument prototype would still apply. */
13039 char $ac_func ();
13040 char (*f) ();
13042 #ifdef F77_DUMMY_MAIN
13043 # ifdef __cplusplus
13044 extern "C"
13045 # endif
13046 int F77_DUMMY_MAIN() { return 1; }
13047 #endif
13049 main ()
13051 /* The GNU C library defines this for functions which it implements
13052 to always fail with ENOSYS. Some functions are actually named
13053 something starting with __ and the normal name is an alias. */
13054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13055 choke me
13056 #else
13057 f = $ac_func;
13058 #endif
13061 return 0;
13063 _ACEOF
13064 rm -f conftest.$ac_objext conftest$ac_exeext
13065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13066 (eval $ac_link) 2>&5
13067 ac_status=$?
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } &&
13070 { ac_try='test -s conftest$ac_exeext'
13071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072 (eval $ac_try) 2>&5
13073 ac_status=$?
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }; }; then
13076 eval "$as_ac_var=yes"
13077 else
13078 echo "$as_me: failed program was:" >&5
13079 cat conftest.$ac_ext >&5
13080 eval "$as_ac_var=no"
13082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13086 if test `eval echo '${'$as_ac_var'}'` = yes; then
13087 cat >>confdefs.h <<_ACEOF
13088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13089 _ACEOF
13092 done
13100 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
13102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13103 echo "$as_me:$LINENO: checking for $ac_func" >&5
13104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13105 if eval "test \"\${$as_ac_var+set}\" = set"; then
13106 echo $ECHO_N "(cached) $ECHO_C" >&6
13107 else
13108 cat >conftest.$ac_ext <<_ACEOF
13109 #line $LINENO "configure"
13110 #include "confdefs.h"
13111 /* System header to define __stub macros and hopefully few prototypes,
13112 which can conflict with char $ac_func (); below. */
13113 #include <assert.h>
13114 /* Override any gcc2 internal prototype to avoid an error. */
13115 #ifdef __cplusplus
13116 extern "C"
13117 #endif
13118 /* We use char because int might match the return type of a gcc2
13119 builtin and then its argument prototype would still apply. */
13120 char $ac_func ();
13121 char (*f) ();
13123 #ifdef F77_DUMMY_MAIN
13124 # ifdef __cplusplus
13125 extern "C"
13126 # endif
13127 int F77_DUMMY_MAIN() { return 1; }
13128 #endif
13130 main ()
13132 /* The GNU C library defines this for functions which it implements
13133 to always fail with ENOSYS. Some functions are actually named
13134 something starting with __ and the normal name is an alias. */
13135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13136 choke me
13137 #else
13138 f = $ac_func;
13139 #endif
13142 return 0;
13144 _ACEOF
13145 rm -f conftest.$ac_objext conftest$ac_exeext
13146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13147 (eval $ac_link) 2>&5
13148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } &&
13151 { ac_try='test -s conftest$ac_exeext'
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
13157 eval "$as_ac_var=yes"
13158 else
13159 echo "$as_me: failed program was:" >&5
13160 cat conftest.$ac_ext >&5
13161 eval "$as_ac_var=no"
13163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13166 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13167 if test `eval echo '${'$as_ac_var'}'` = yes; then
13168 cat >>confdefs.h <<_ACEOF
13169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13170 _ACEOF
13173 done
13182 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
13184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13185 echo "$as_me:$LINENO: checking for $ac_func" >&5
13186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13187 if eval "test \"\${$as_ac_var+set}\" = set"; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 else
13190 cat >conftest.$ac_ext <<_ACEOF
13191 #line $LINENO "configure"
13192 #include "confdefs.h"
13193 /* System header to define __stub macros and hopefully few prototypes,
13194 which can conflict with char $ac_func (); below. */
13195 #include <assert.h>
13196 /* Override any gcc2 internal prototype to avoid an error. */
13197 #ifdef __cplusplus
13198 extern "C"
13199 #endif
13200 /* We use char because int might match the return type of a gcc2
13201 builtin and then its argument prototype would still apply. */
13202 char $ac_func ();
13203 char (*f) ();
13205 #ifdef F77_DUMMY_MAIN
13206 # ifdef __cplusplus
13207 extern "C"
13208 # endif
13209 int F77_DUMMY_MAIN() { return 1; }
13210 #endif
13212 main ()
13214 /* The GNU C library defines this for functions which it implements
13215 to always fail with ENOSYS. Some functions are actually named
13216 something starting with __ and the normal name is an alias. */
13217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13218 choke me
13219 #else
13220 f = $ac_func;
13221 #endif
13224 return 0;
13226 _ACEOF
13227 rm -f conftest.$ac_objext conftest$ac_exeext
13228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13229 (eval $ac_link) 2>&5
13230 ac_status=$?
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } &&
13233 { ac_try='test -s conftest$ac_exeext'
13234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235 (eval $ac_try) 2>&5
13236 ac_status=$?
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; }; then
13239 eval "$as_ac_var=yes"
13240 else
13241 echo "$as_me: failed program was:" >&5
13242 cat conftest.$ac_ext >&5
13243 eval "$as_ac_var=no"
13245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13249 if test `eval echo '${'$as_ac_var'}'` = yes; then
13250 cat >>confdefs.h <<_ACEOF
13251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13252 _ACEOF
13255 done
13263 for ac_func in pread _pread __pread pread64 _pread64 __pread64
13265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13266 echo "$as_me:$LINENO: checking for $ac_func" >&5
13267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13268 if eval "test \"\${$as_ac_var+set}\" = set"; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13270 else
13271 cat >conftest.$ac_ext <<_ACEOF
13272 #line $LINENO "configure"
13273 #include "confdefs.h"
13274 /* System header to define __stub macros and hopefully few prototypes,
13275 which can conflict with char $ac_func (); below. */
13276 #include <assert.h>
13277 /* Override any gcc2 internal prototype to avoid an error. */
13278 #ifdef __cplusplus
13279 extern "C"
13280 #endif
13281 /* We use char because int might match the return type of a gcc2
13282 builtin and then its argument prototype would still apply. */
13283 char $ac_func ();
13284 char (*f) ();
13286 #ifdef F77_DUMMY_MAIN
13287 # ifdef __cplusplus
13288 extern "C"
13289 # endif
13290 int F77_DUMMY_MAIN() { return 1; }
13291 #endif
13293 main ()
13295 /* The GNU C library defines this for functions which it implements
13296 to always fail with ENOSYS. Some functions are actually named
13297 something starting with __ and the normal name is an alias. */
13298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13299 choke me
13300 #else
13301 f = $ac_func;
13302 #endif
13305 return 0;
13307 _ACEOF
13308 rm -f conftest.$ac_objext conftest$ac_exeext
13309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13310 (eval $ac_link) 2>&5
13311 ac_status=$?
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); } &&
13314 { ac_try='test -s conftest$ac_exeext'
13315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316 (eval $ac_try) 2>&5
13317 ac_status=$?
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }; }; then
13320 eval "$as_ac_var=yes"
13321 else
13322 echo "$as_me: failed program was:" >&5
13323 cat conftest.$ac_ext >&5
13324 eval "$as_ac_var=no"
13326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13330 if test `eval echo '${'$as_ac_var'}'` = yes; then
13331 cat >>confdefs.h <<_ACEOF
13332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13333 _ACEOF
13336 done
13344 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
13346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13347 echo "$as_me:$LINENO: checking for $ac_func" >&5
13348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13349 if eval "test \"\${$as_ac_var+set}\" = set"; then
13350 echo $ECHO_N "(cached) $ECHO_C" >&6
13351 else
13352 cat >conftest.$ac_ext <<_ACEOF
13353 #line $LINENO "configure"
13354 #include "confdefs.h"
13355 /* System header to define __stub macros and hopefully few prototypes,
13356 which can conflict with char $ac_func (); below. */
13357 #include <assert.h>
13358 /* Override any gcc2 internal prototype to avoid an error. */
13359 #ifdef __cplusplus
13360 extern "C"
13361 #endif
13362 /* We use char because int might match the return type of a gcc2
13363 builtin and then its argument prototype would still apply. */
13364 char $ac_func ();
13365 char (*f) ();
13367 #ifdef F77_DUMMY_MAIN
13368 # ifdef __cplusplus
13369 extern "C"
13370 # endif
13371 int F77_DUMMY_MAIN() { return 1; }
13372 #endif
13374 main ()
13376 /* The GNU C library defines this for functions which it implements
13377 to always fail with ENOSYS. Some functions are actually named
13378 something starting with __ and the normal name is an alias. */
13379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13380 choke me
13381 #else
13382 f = $ac_func;
13383 #endif
13386 return 0;
13388 _ACEOF
13389 rm -f conftest.$ac_objext conftest$ac_exeext
13390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13391 (eval $ac_link) 2>&5
13392 ac_status=$?
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); } &&
13395 { ac_try='test -s conftest$ac_exeext'
13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397 (eval $ac_try) 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; }; then
13401 eval "$as_ac_var=yes"
13402 else
13403 echo "$as_me: failed program was:" >&5
13404 cat conftest.$ac_ext >&5
13405 eval "$as_ac_var=no"
13407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13411 if test `eval echo '${'$as_ac_var'}'` = yes; then
13412 cat >>confdefs.h <<_ACEOF
13413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13414 _ACEOF
13417 done
13423 for ac_func in open64 _open64 __open64 creat64
13425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13426 echo "$as_me:$LINENO: checking for $ac_func" >&5
13427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13428 if eval "test \"\${$as_ac_var+set}\" = set"; then
13429 echo $ECHO_N "(cached) $ECHO_C" >&6
13430 else
13431 cat >conftest.$ac_ext <<_ACEOF
13432 #line $LINENO "configure"
13433 #include "confdefs.h"
13434 /* System header to define __stub macros and hopefully few prototypes,
13435 which can conflict with char $ac_func (); below. */
13436 #include <assert.h>
13437 /* Override any gcc2 internal prototype to avoid an error. */
13438 #ifdef __cplusplus
13439 extern "C"
13440 #endif
13441 /* We use char because int might match the return type of a gcc2
13442 builtin and then its argument prototype would still apply. */
13443 char $ac_func ();
13444 char (*f) ();
13446 #ifdef F77_DUMMY_MAIN
13447 # ifdef __cplusplus
13448 extern "C"
13449 # endif
13450 int F77_DUMMY_MAIN() { return 1; }
13451 #endif
13453 main ()
13455 /* The GNU C library defines this for functions which it implements
13456 to always fail with ENOSYS. Some functions are actually named
13457 something starting with __ and the normal name is an alias. */
13458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13459 choke me
13460 #else
13461 f = $ac_func;
13462 #endif
13465 return 0;
13467 _ACEOF
13468 rm -f conftest.$ac_objext conftest$ac_exeext
13469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13470 (eval $ac_link) 2>&5
13471 ac_status=$?
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } &&
13474 { ac_try='test -s conftest$ac_exeext'
13475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476 (eval $ac_try) 2>&5
13477 ac_status=$?
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; }; then
13480 eval "$as_ac_var=yes"
13481 else
13482 echo "$as_me: failed program was:" >&5
13483 cat conftest.$ac_ext >&5
13484 eval "$as_ac_var=no"
13486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13489 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13490 if test `eval echo '${'$as_ac_var'}'` = yes; then
13491 cat >>confdefs.h <<_ACEOF
13492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13493 _ACEOF
13496 done
13500 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
13503 if test x$ac_cv_func_stat64 = xno ; then
13504 echo "$as_me:$LINENO: checking for stat64 in <sys/stat.h>" >&5
13505 echo $ECHO_N "checking for stat64 in <sys/stat.h>... $ECHO_C" >&6
13506 cat >conftest.$ac_ext <<_ACEOF
13507 #line $LINENO "configure"
13508 #include "confdefs.h"
13510 #if defined(HAVE_UNISTD_H)
13511 #include <unistd.h>
13512 #endif
13513 #include <sys/stat.h>
13515 #ifdef F77_DUMMY_MAIN
13516 # ifdef __cplusplus
13517 extern "C"
13518 # endif
13519 int F77_DUMMY_MAIN() { return 1; }
13520 #endif
13522 main ()
13524 struct stat64 st64; exit(stat64(".",&st64));
13526 return 0;
13528 _ACEOF
13529 rm -f conftest.$ac_objext conftest$ac_exeext
13530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13531 (eval $ac_link) 2>&5
13532 ac_status=$?
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } &&
13535 { ac_try='test -s conftest$ac_exeext'
13536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13537 (eval $ac_try) 2>&5
13538 ac_status=$?
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); }; }; then
13541 ac_cv_func_stat64=yes
13542 else
13543 echo "$as_me: failed program was:" >&5
13544 cat conftest.$ac_ext >&5
13546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13547 echo "$as_me:$LINENO: result: $ac_cv_func_stat64" >&5
13548 echo "${ECHO_T}$ac_cv_func_stat64" >&6
13549 if test x$ac_cv_func_stat64 = xyes ; then
13551 cat >>confdefs.h <<\_ACEOF
13552 #define HAVE_STAT64 1
13553 _ACEOF
13558 if test x$ac_cv_func_lstat64 = xno ; then
13559 echo "$as_me:$LINENO: checking for lstat64 in <sys/stat.h>" >&5
13560 echo $ECHO_N "checking for lstat64 in <sys/stat.h>... $ECHO_C" >&6
13561 cat >conftest.$ac_ext <<_ACEOF
13562 #line $LINENO "configure"
13563 #include "confdefs.h"
13565 #if defined(HAVE_UNISTD_H)
13566 #include <unistd.h>
13567 #endif
13568 #include <sys/stat.h>
13570 #ifdef F77_DUMMY_MAIN
13571 # ifdef __cplusplus
13572 extern "C"
13573 # endif
13574 int F77_DUMMY_MAIN() { return 1; }
13575 #endif
13577 main ()
13579 struct stat64 st64; exit(lstat64(".",&st64));
13581 return 0;
13583 _ACEOF
13584 rm -f conftest.$ac_objext conftest$ac_exeext
13585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13586 (eval $ac_link) 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } &&
13590 { ac_try='test -s conftest$ac_exeext'
13591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592 (eval $ac_try) 2>&5
13593 ac_status=$?
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); }; }; then
13596 ac_cv_func_lstat64=yes
13597 else
13598 echo "$as_me: failed program was:" >&5
13599 cat conftest.$ac_ext >&5
13601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13602 echo "$as_me:$LINENO: result: $ac_cv_func_lstat64" >&5
13603 echo "${ECHO_T}$ac_cv_func_lstat64" >&6
13604 if test x$ac_cv_func_lstat64 = xyes ; then
13605 cat >>confdefs.h <<\_ACEOF
13606 #define HAVE_LSTAT64 Whether lstat64() is available
13607 _ACEOF
13612 if test x$ac_cv_func_fstat64 = xno ; then
13613 echo "$as_me:$LINENO: checking for fstat64 in <sys/stat.h>" >&5
13614 echo $ECHO_N "checking for fstat64 in <sys/stat.h>... $ECHO_C" >&6
13615 cat >conftest.$ac_ext <<_ACEOF
13616 #line $LINENO "configure"
13617 #include "confdefs.h"
13619 #if defined(HAVE_UNISTD_H)
13620 #include <unistd.h>
13621 #endif
13622 #include <sys/stat.h>
13624 #ifdef F77_DUMMY_MAIN
13625 # ifdef __cplusplus
13626 extern "C"
13627 # endif
13628 int F77_DUMMY_MAIN() { return 1; }
13629 #endif
13631 main ()
13633 struct stat64 st64; exit(fstat64(0,&st64));
13635 return 0;
13637 _ACEOF
13638 rm -f conftest.$ac_objext conftest$ac_exeext
13639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13640 (eval $ac_link) 2>&5
13641 ac_status=$?
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
13644 { ac_try='test -s conftest$ac_exeext'
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13647 ac_status=$?
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; }; then
13650 ac_cv_func_fstat64=yes
13651 else
13652 echo "$as_me: failed program was:" >&5
13653 cat conftest.$ac_ext >&5
13655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13656 echo "$as_me:$LINENO: result: $ac_cv_func_fstat64" >&5
13657 echo "${ECHO_T}$ac_cv_func_fstat64" >&6
13658 if test x$ac_cv_func_fstat64 = xyes ; then
13660 cat >>confdefs.h <<\_ACEOF
13661 #define HAVE_FSTAT64 1
13662 _ACEOF
13667 #####################################
13668 # we might need the resolv library on some systems
13670 echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
13671 echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
13672 if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13674 else
13675 ac_check_lib_save_LIBS=$LIBS
13676 LIBS="-lresolv $LIBS"
13677 cat >conftest.$ac_ext <<_ACEOF
13678 #line $LINENO "configure"
13679 #include "confdefs.h"
13681 /* Override any gcc2 internal prototype to avoid an error. */
13682 #ifdef __cplusplus
13683 extern "C"
13684 #endif
13685 /* We use char because int might match the return type of a gcc2
13686 builtin and then its argument prototype would still apply. */
13687 char dn_expand ();
13688 #ifdef F77_DUMMY_MAIN
13689 # ifdef __cplusplus
13690 extern "C"
13691 # endif
13692 int F77_DUMMY_MAIN() { return 1; }
13693 #endif
13695 main ()
13697 dn_expand ();
13699 return 0;
13701 _ACEOF
13702 rm -f conftest.$ac_objext conftest$ac_exeext
13703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13704 (eval $ac_link) 2>&5
13705 ac_status=$?
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } &&
13708 { ac_try='test -s conftest$ac_exeext'
13709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710 (eval $ac_try) 2>&5
13711 ac_status=$?
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; }; then
13714 ac_cv_lib_resolv_dn_expand=yes
13715 else
13716 echo "$as_me: failed program was:" >&5
13717 cat conftest.$ac_ext >&5
13718 ac_cv_lib_resolv_dn_expand=no
13720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13721 LIBS=$ac_check_lib_save_LIBS
13723 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
13724 echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
13725 if test $ac_cv_lib_resolv_dn_expand = yes; then
13726 cat >>confdefs.h <<_ACEOF
13727 #define HAVE_LIBRESOLV 1
13728 _ACEOF
13730 LIBS="-lresolv $LIBS"
13736 # Check for the functions putprpwnam, set_auth_parameters,
13737 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
13738 # Needed for OSF1 and HPUX.
13741 case "$LIBS" in
13742 *-lsecurity*)
13743 for ac_func in putprpwnam
13745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13746 echo "$as_me:$LINENO: checking for $ac_func" >&5
13747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13748 if eval "test \"\${$as_ac_var+set}\" = set"; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13750 else
13751 cat >conftest.$ac_ext <<_ACEOF
13752 #line $LINENO "configure"
13753 #include "confdefs.h"
13754 /* System header to define __stub macros and hopefully few prototypes,
13755 which can conflict with char $ac_func (); below. */
13756 #include <assert.h>
13757 /* Override any gcc2 internal prototype to avoid an error. */
13758 #ifdef __cplusplus
13759 extern "C"
13760 #endif
13761 /* We use char because int might match the return type of a gcc2
13762 builtin and then its argument prototype would still apply. */
13763 char $ac_func ();
13764 char (*f) ();
13766 #ifdef F77_DUMMY_MAIN
13767 # ifdef __cplusplus
13768 extern "C"
13769 # endif
13770 int F77_DUMMY_MAIN() { return 1; }
13771 #endif
13773 main ()
13775 /* The GNU C library defines this for functions which it implements
13776 to always fail with ENOSYS. Some functions are actually named
13777 something starting with __ and the normal name is an alias. */
13778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13779 choke me
13780 #else
13781 f = $ac_func;
13782 #endif
13785 return 0;
13787 _ACEOF
13788 rm -f conftest.$ac_objext conftest$ac_exeext
13789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13790 (eval $ac_link) 2>&5
13791 ac_status=$?
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); } &&
13794 { ac_try='test -s conftest$ac_exeext'
13795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13796 (eval $ac_try) 2>&5
13797 ac_status=$?
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); }; }; then
13800 eval "$as_ac_var=yes"
13801 else
13802 echo "$as_me: failed program was:" >&5
13803 cat conftest.$ac_ext >&5
13804 eval "$as_ac_var=no"
13806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13809 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13810 if test `eval echo '${'$as_ac_var'}'` = yes; then
13811 cat >>confdefs.h <<_ACEOF
13812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13813 _ACEOF
13816 done
13819 echo "$as_me:$LINENO: checking for putprpwnam in -lsecurity" >&5
13820 echo $ECHO_N "checking for putprpwnam in -lsecurity... $ECHO_C" >&6
13821 if test "${ac_cv_lib_security_putprpwnam+set}" = set; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13823 else
13824 ac_check_lib_save_LIBS=$LIBS
13825 LIBS="-lsecurity $LIBS"
13826 cat >conftest.$ac_ext <<_ACEOF
13827 #line $LINENO "configure"
13828 #include "confdefs.h"
13830 /* Override any gcc2 internal prototype to avoid an error. */
13831 #ifdef __cplusplus
13832 extern "C"
13833 #endif
13834 /* We use char because int might match the return type of a gcc2
13835 builtin and then its argument prototype would still apply. */
13836 char putprpwnam ();
13837 #ifdef F77_DUMMY_MAIN
13838 # ifdef __cplusplus
13839 extern "C"
13840 # endif
13841 int F77_DUMMY_MAIN() { return 1; }
13842 #endif
13844 main ()
13846 putprpwnam ();
13848 return 0;
13850 _ACEOF
13851 rm -f conftest.$ac_objext conftest$ac_exeext
13852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13853 (eval $ac_link) 2>&5
13854 ac_status=$?
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); } &&
13857 { ac_try='test -s conftest$ac_exeext'
13858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859 (eval $ac_try) 2>&5
13860 ac_status=$?
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; }; then
13863 ac_cv_lib_security_putprpwnam=yes
13864 else
13865 echo "$as_me: failed program was:" >&5
13866 cat conftest.$ac_ext >&5
13867 ac_cv_lib_security_putprpwnam=no
13869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13870 LIBS=$ac_check_lib_save_LIBS
13872 echo "$as_me:$LINENO: result: $ac_cv_lib_security_putprpwnam" >&5
13873 echo "${ECHO_T}$ac_cv_lib_security_putprpwnam" >&6
13874 if test $ac_cv_lib_security_putprpwnam = yes; then
13875 cat >>confdefs.h <<_ACEOF
13876 #define HAVE_LIBSECURITY 1
13877 _ACEOF
13879 LIBS="-lsecurity $LIBS"
13884 for ac_func in putprpwnam
13886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13887 echo "$as_me:$LINENO: checking for $ac_func" >&5
13888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13889 if eval "test \"\${$as_ac_var+set}\" = set"; then
13890 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 else
13892 cat >conftest.$ac_ext <<_ACEOF
13893 #line $LINENO "configure"
13894 #include "confdefs.h"
13895 /* System header to define __stub macros and hopefully few prototypes,
13896 which can conflict with char $ac_func (); below. */
13897 #include <assert.h>
13898 /* Override any gcc2 internal prototype to avoid an error. */
13899 #ifdef __cplusplus
13900 extern "C"
13901 #endif
13902 /* We use char because int might match the return type of a gcc2
13903 builtin and then its argument prototype would still apply. */
13904 char $ac_func ();
13905 char (*f) ();
13907 #ifdef F77_DUMMY_MAIN
13908 # ifdef __cplusplus
13909 extern "C"
13910 # endif
13911 int F77_DUMMY_MAIN() { return 1; }
13912 #endif
13914 main ()
13916 /* The GNU C library defines this for functions which it implements
13917 to always fail with ENOSYS. Some functions are actually named
13918 something starting with __ and the normal name is an alias. */
13919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13920 choke me
13921 #else
13922 f = $ac_func;
13923 #endif
13926 return 0;
13928 _ACEOF
13929 rm -f conftest.$ac_objext conftest$ac_exeext
13930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13931 (eval $ac_link) 2>&5
13932 ac_status=$?
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } &&
13935 { ac_try='test -s conftest$ac_exeext'
13936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937 (eval $ac_try) 2>&5
13938 ac_status=$?
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); }; }; then
13941 eval "$as_ac_var=yes"
13942 else
13943 echo "$as_me: failed program was:" >&5
13944 cat conftest.$ac_ext >&5
13945 eval "$as_ac_var=no"
13947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13950 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13951 if test `eval echo '${'$as_ac_var'}'` = yes; then
13952 cat >>confdefs.h <<_ACEOF
13953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13954 _ACEOF
13957 done
13960 esac
13962 case "$LIBS" in
13963 *-lsec*)
13964 for ac_func in putprpwnam
13966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13967 echo "$as_me:$LINENO: checking for $ac_func" >&5
13968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13969 if eval "test \"\${$as_ac_var+set}\" = set"; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13971 else
13972 cat >conftest.$ac_ext <<_ACEOF
13973 #line $LINENO "configure"
13974 #include "confdefs.h"
13975 /* System header to define __stub macros and hopefully few prototypes,
13976 which can conflict with char $ac_func (); below. */
13977 #include <assert.h>
13978 /* Override any gcc2 internal prototype to avoid an error. */
13979 #ifdef __cplusplus
13980 extern "C"
13981 #endif
13982 /* We use char because int might match the return type of a gcc2
13983 builtin and then its argument prototype would still apply. */
13984 char $ac_func ();
13985 char (*f) ();
13987 #ifdef F77_DUMMY_MAIN
13988 # ifdef __cplusplus
13989 extern "C"
13990 # endif
13991 int F77_DUMMY_MAIN() { return 1; }
13992 #endif
13994 main ()
13996 /* The GNU C library defines this for functions which it implements
13997 to always fail with ENOSYS. Some functions are actually named
13998 something starting with __ and the normal name is an alias. */
13999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14000 choke me
14001 #else
14002 f = $ac_func;
14003 #endif
14006 return 0;
14008 _ACEOF
14009 rm -f conftest.$ac_objext conftest$ac_exeext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14011 (eval $ac_link) 2>&5
14012 ac_status=$?
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); } &&
14015 { ac_try='test -s conftest$ac_exeext'
14016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14018 ac_status=$?
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; }; then
14021 eval "$as_ac_var=yes"
14022 else
14023 echo "$as_me: failed program was:" >&5
14024 cat conftest.$ac_ext >&5
14025 eval "$as_ac_var=no"
14027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14030 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14031 if test `eval echo '${'$as_ac_var'}'` = yes; then
14032 cat >>confdefs.h <<_ACEOF
14033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14034 _ACEOF
14037 done
14040 echo "$as_me:$LINENO: checking for putprpwnam in -lsec" >&5
14041 echo $ECHO_N "checking for putprpwnam in -lsec... $ECHO_C" >&6
14042 if test "${ac_cv_lib_sec_putprpwnam+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 else
14045 ac_check_lib_save_LIBS=$LIBS
14046 LIBS="-lsec $LIBS"
14047 cat >conftest.$ac_ext <<_ACEOF
14048 #line $LINENO "configure"
14049 #include "confdefs.h"
14051 /* Override any gcc2 internal prototype to avoid an error. */
14052 #ifdef __cplusplus
14053 extern "C"
14054 #endif
14055 /* We use char because int might match the return type of a gcc2
14056 builtin and then its argument prototype would still apply. */
14057 char putprpwnam ();
14058 #ifdef F77_DUMMY_MAIN
14059 # ifdef __cplusplus
14060 extern "C"
14061 # endif
14062 int F77_DUMMY_MAIN() { return 1; }
14063 #endif
14065 main ()
14067 putprpwnam ();
14069 return 0;
14071 _ACEOF
14072 rm -f conftest.$ac_objext conftest$ac_exeext
14073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14074 (eval $ac_link) 2>&5
14075 ac_status=$?
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } &&
14078 { ac_try='test -s conftest$ac_exeext'
14079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080 (eval $ac_try) 2>&5
14081 ac_status=$?
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); }; }; then
14084 ac_cv_lib_sec_putprpwnam=yes
14085 else
14086 echo "$as_me: failed program was:" >&5
14087 cat conftest.$ac_ext >&5
14088 ac_cv_lib_sec_putprpwnam=no
14090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14091 LIBS=$ac_check_lib_save_LIBS
14093 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_putprpwnam" >&5
14094 echo "${ECHO_T}$ac_cv_lib_sec_putprpwnam" >&6
14095 if test $ac_cv_lib_sec_putprpwnam = yes; then
14096 cat >>confdefs.h <<_ACEOF
14097 #define HAVE_LIBSEC 1
14098 _ACEOF
14100 LIBS="-lsec $LIBS"
14105 for ac_func in putprpwnam
14107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14108 echo "$as_me:$LINENO: checking for $ac_func" >&5
14109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14110 if eval "test \"\${$as_ac_var+set}\" = set"; then
14111 echo $ECHO_N "(cached) $ECHO_C" >&6
14112 else
14113 cat >conftest.$ac_ext <<_ACEOF
14114 #line $LINENO "configure"
14115 #include "confdefs.h"
14116 /* System header to define __stub macros and hopefully few prototypes,
14117 which can conflict with char $ac_func (); below. */
14118 #include <assert.h>
14119 /* Override any gcc2 internal prototype to avoid an error. */
14120 #ifdef __cplusplus
14121 extern "C"
14122 #endif
14123 /* We use char because int might match the return type of a gcc2
14124 builtin and then its argument prototype would still apply. */
14125 char $ac_func ();
14126 char (*f) ();
14128 #ifdef F77_DUMMY_MAIN
14129 # ifdef __cplusplus
14130 extern "C"
14131 # endif
14132 int F77_DUMMY_MAIN() { return 1; }
14133 #endif
14135 main ()
14137 /* The GNU C library defines this for functions which it implements
14138 to always fail with ENOSYS. Some functions are actually named
14139 something starting with __ and the normal name is an alias. */
14140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14141 choke me
14142 #else
14143 f = $ac_func;
14144 #endif
14147 return 0;
14149 _ACEOF
14150 rm -f conftest.$ac_objext conftest$ac_exeext
14151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14152 (eval $ac_link) 2>&5
14153 ac_status=$?
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); } &&
14156 { ac_try='test -s conftest$ac_exeext'
14157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158 (eval $ac_try) 2>&5
14159 ac_status=$?
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; }; then
14162 eval "$as_ac_var=yes"
14163 else
14164 echo "$as_me: failed program was:" >&5
14165 cat conftest.$ac_ext >&5
14166 eval "$as_ac_var=no"
14168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14171 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14172 if test `eval echo '${'$as_ac_var'}'` = yes; then
14173 cat >>confdefs.h <<_ACEOF
14174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14175 _ACEOF
14178 done
14181 esac
14184 case "$LIBS" in
14185 *-lsecurity*)
14186 for ac_func in set_auth_parameters
14188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14189 echo "$as_me:$LINENO: checking for $ac_func" >&5
14190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14191 if eval "test \"\${$as_ac_var+set}\" = set"; then
14192 echo $ECHO_N "(cached) $ECHO_C" >&6
14193 else
14194 cat >conftest.$ac_ext <<_ACEOF
14195 #line $LINENO "configure"
14196 #include "confdefs.h"
14197 /* System header to define __stub macros and hopefully few prototypes,
14198 which can conflict with char $ac_func (); below. */
14199 #include <assert.h>
14200 /* Override any gcc2 internal prototype to avoid an error. */
14201 #ifdef __cplusplus
14202 extern "C"
14203 #endif
14204 /* We use char because int might match the return type of a gcc2
14205 builtin and then its argument prototype would still apply. */
14206 char $ac_func ();
14207 char (*f) ();
14209 #ifdef F77_DUMMY_MAIN
14210 # ifdef __cplusplus
14211 extern "C"
14212 # endif
14213 int F77_DUMMY_MAIN() { return 1; }
14214 #endif
14216 main ()
14218 /* The GNU C library defines this for functions which it implements
14219 to always fail with ENOSYS. Some functions are actually named
14220 something starting with __ and the normal name is an alias. */
14221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14222 choke me
14223 #else
14224 f = $ac_func;
14225 #endif
14228 return 0;
14230 _ACEOF
14231 rm -f conftest.$ac_objext conftest$ac_exeext
14232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14233 (eval $ac_link) 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } &&
14237 { ac_try='test -s conftest$ac_exeext'
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14240 ac_status=$?
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; }; then
14243 eval "$as_ac_var=yes"
14244 else
14245 echo "$as_me: failed program was:" >&5
14246 cat conftest.$ac_ext >&5
14247 eval "$as_ac_var=no"
14249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14253 if test `eval echo '${'$as_ac_var'}'` = yes; then
14254 cat >>confdefs.h <<_ACEOF
14255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14256 _ACEOF
14259 done
14262 echo "$as_me:$LINENO: checking for set_auth_parameters in -lsecurity" >&5
14263 echo $ECHO_N "checking for set_auth_parameters in -lsecurity... $ECHO_C" >&6
14264 if test "${ac_cv_lib_security_set_auth_parameters+set}" = set; then
14265 echo $ECHO_N "(cached) $ECHO_C" >&6
14266 else
14267 ac_check_lib_save_LIBS=$LIBS
14268 LIBS="-lsecurity $LIBS"
14269 cat >conftest.$ac_ext <<_ACEOF
14270 #line $LINENO "configure"
14271 #include "confdefs.h"
14273 /* Override any gcc2 internal prototype to avoid an error. */
14274 #ifdef __cplusplus
14275 extern "C"
14276 #endif
14277 /* We use char because int might match the return type of a gcc2
14278 builtin and then its argument prototype would still apply. */
14279 char set_auth_parameters ();
14280 #ifdef F77_DUMMY_MAIN
14281 # ifdef __cplusplus
14282 extern "C"
14283 # endif
14284 int F77_DUMMY_MAIN() { return 1; }
14285 #endif
14287 main ()
14289 set_auth_parameters ();
14291 return 0;
14293 _ACEOF
14294 rm -f conftest.$ac_objext conftest$ac_exeext
14295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14296 (eval $ac_link) 2>&5
14297 ac_status=$?
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } &&
14300 { ac_try='test -s conftest$ac_exeext'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14303 ac_status=$?
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; }; then
14306 ac_cv_lib_security_set_auth_parameters=yes
14307 else
14308 echo "$as_me: failed program was:" >&5
14309 cat conftest.$ac_ext >&5
14310 ac_cv_lib_security_set_auth_parameters=no
14312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14313 LIBS=$ac_check_lib_save_LIBS
14315 echo "$as_me:$LINENO: result: $ac_cv_lib_security_set_auth_parameters" >&5
14316 echo "${ECHO_T}$ac_cv_lib_security_set_auth_parameters" >&6
14317 if test $ac_cv_lib_security_set_auth_parameters = yes; then
14318 cat >>confdefs.h <<_ACEOF
14319 #define HAVE_LIBSECURITY 1
14320 _ACEOF
14322 LIBS="-lsecurity $LIBS"
14327 for ac_func in set_auth_parameters
14329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14330 echo "$as_me:$LINENO: checking for $ac_func" >&5
14331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14332 if eval "test \"\${$as_ac_var+set}\" = set"; then
14333 echo $ECHO_N "(cached) $ECHO_C" >&6
14334 else
14335 cat >conftest.$ac_ext <<_ACEOF
14336 #line $LINENO "configure"
14337 #include "confdefs.h"
14338 /* System header to define __stub macros and hopefully few prototypes,
14339 which can conflict with char $ac_func (); below. */
14340 #include <assert.h>
14341 /* Override any gcc2 internal prototype to avoid an error. */
14342 #ifdef __cplusplus
14343 extern "C"
14344 #endif
14345 /* We use char because int might match the return type of a gcc2
14346 builtin and then its argument prototype would still apply. */
14347 char $ac_func ();
14348 char (*f) ();
14350 #ifdef F77_DUMMY_MAIN
14351 # ifdef __cplusplus
14352 extern "C"
14353 # endif
14354 int F77_DUMMY_MAIN() { return 1; }
14355 #endif
14357 main ()
14359 /* The GNU C library defines this for functions which it implements
14360 to always fail with ENOSYS. Some functions are actually named
14361 something starting with __ and the normal name is an alias. */
14362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14363 choke me
14364 #else
14365 f = $ac_func;
14366 #endif
14369 return 0;
14371 _ACEOF
14372 rm -f conftest.$ac_objext conftest$ac_exeext
14373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14374 (eval $ac_link) 2>&5
14375 ac_status=$?
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); } &&
14378 { ac_try='test -s conftest$ac_exeext'
14379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380 (eval $ac_try) 2>&5
14381 ac_status=$?
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); }; }; then
14384 eval "$as_ac_var=yes"
14385 else
14386 echo "$as_me: failed program was:" >&5
14387 cat conftest.$ac_ext >&5
14388 eval "$as_ac_var=no"
14390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14394 if test `eval echo '${'$as_ac_var'}'` = yes; then
14395 cat >>confdefs.h <<_ACEOF
14396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14397 _ACEOF
14400 done
14403 esac
14405 case "$LIBS" in
14406 *-lsec*)
14407 for ac_func in set_auth_parameters
14409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14410 echo "$as_me:$LINENO: checking for $ac_func" >&5
14411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14412 if eval "test \"\${$as_ac_var+set}\" = set"; then
14413 echo $ECHO_N "(cached) $ECHO_C" >&6
14414 else
14415 cat >conftest.$ac_ext <<_ACEOF
14416 #line $LINENO "configure"
14417 #include "confdefs.h"
14418 /* System header to define __stub macros and hopefully few prototypes,
14419 which can conflict with char $ac_func (); below. */
14420 #include <assert.h>
14421 /* Override any gcc2 internal prototype to avoid an error. */
14422 #ifdef __cplusplus
14423 extern "C"
14424 #endif
14425 /* We use char because int might match the return type of a gcc2
14426 builtin and then its argument prototype would still apply. */
14427 char $ac_func ();
14428 char (*f) ();
14430 #ifdef F77_DUMMY_MAIN
14431 # ifdef __cplusplus
14432 extern "C"
14433 # endif
14434 int F77_DUMMY_MAIN() { return 1; }
14435 #endif
14437 main ()
14439 /* The GNU C library defines this for functions which it implements
14440 to always fail with ENOSYS. Some functions are actually named
14441 something starting with __ and the normal name is an alias. */
14442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14443 choke me
14444 #else
14445 f = $ac_func;
14446 #endif
14449 return 0;
14451 _ACEOF
14452 rm -f conftest.$ac_objext conftest$ac_exeext
14453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14454 (eval $ac_link) 2>&5
14455 ac_status=$?
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } &&
14458 { ac_try='test -s conftest$ac_exeext'
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14461 ac_status=$?
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; }; then
14464 eval "$as_ac_var=yes"
14465 else
14466 echo "$as_me: failed program was:" >&5
14467 cat conftest.$ac_ext >&5
14468 eval "$as_ac_var=no"
14470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14473 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14474 if test `eval echo '${'$as_ac_var'}'` = yes; then
14475 cat >>confdefs.h <<_ACEOF
14476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14477 _ACEOF
14480 done
14483 echo "$as_me:$LINENO: checking for set_auth_parameters in -lsec" >&5
14484 echo $ECHO_N "checking for set_auth_parameters in -lsec... $ECHO_C" >&6
14485 if test "${ac_cv_lib_sec_set_auth_parameters+set}" = set; then
14486 echo $ECHO_N "(cached) $ECHO_C" >&6
14487 else
14488 ac_check_lib_save_LIBS=$LIBS
14489 LIBS="-lsec $LIBS"
14490 cat >conftest.$ac_ext <<_ACEOF
14491 #line $LINENO "configure"
14492 #include "confdefs.h"
14494 /* Override any gcc2 internal prototype to avoid an error. */
14495 #ifdef __cplusplus
14496 extern "C"
14497 #endif
14498 /* We use char because int might match the return type of a gcc2
14499 builtin and then its argument prototype would still apply. */
14500 char set_auth_parameters ();
14501 #ifdef F77_DUMMY_MAIN
14502 # ifdef __cplusplus
14503 extern "C"
14504 # endif
14505 int F77_DUMMY_MAIN() { return 1; }
14506 #endif
14508 main ()
14510 set_auth_parameters ();
14512 return 0;
14514 _ACEOF
14515 rm -f conftest.$ac_objext conftest$ac_exeext
14516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14517 (eval $ac_link) 2>&5
14518 ac_status=$?
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); } &&
14521 { ac_try='test -s conftest$ac_exeext'
14522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523 (eval $ac_try) 2>&5
14524 ac_status=$?
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); }; }; then
14527 ac_cv_lib_sec_set_auth_parameters=yes
14528 else
14529 echo "$as_me: failed program was:" >&5
14530 cat conftest.$ac_ext >&5
14531 ac_cv_lib_sec_set_auth_parameters=no
14533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14534 LIBS=$ac_check_lib_save_LIBS
14536 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_set_auth_parameters" >&5
14537 echo "${ECHO_T}$ac_cv_lib_sec_set_auth_parameters" >&6
14538 if test $ac_cv_lib_sec_set_auth_parameters = yes; then
14539 cat >>confdefs.h <<_ACEOF
14540 #define HAVE_LIBSEC 1
14541 _ACEOF
14543 LIBS="-lsec $LIBS"
14548 for ac_func in set_auth_parameters
14550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14551 echo "$as_me:$LINENO: checking for $ac_func" >&5
14552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14553 if eval "test \"\${$as_ac_var+set}\" = set"; then
14554 echo $ECHO_N "(cached) $ECHO_C" >&6
14555 else
14556 cat >conftest.$ac_ext <<_ACEOF
14557 #line $LINENO "configure"
14558 #include "confdefs.h"
14559 /* System header to define __stub macros and hopefully few prototypes,
14560 which can conflict with char $ac_func (); below. */
14561 #include <assert.h>
14562 /* Override any gcc2 internal prototype to avoid an error. */
14563 #ifdef __cplusplus
14564 extern "C"
14565 #endif
14566 /* We use char because int might match the return type of a gcc2
14567 builtin and then its argument prototype would still apply. */
14568 char $ac_func ();
14569 char (*f) ();
14571 #ifdef F77_DUMMY_MAIN
14572 # ifdef __cplusplus
14573 extern "C"
14574 # endif
14575 int F77_DUMMY_MAIN() { return 1; }
14576 #endif
14578 main ()
14580 /* The GNU C library defines this for functions which it implements
14581 to always fail with ENOSYS. Some functions are actually named
14582 something starting with __ and the normal name is an alias. */
14583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14584 choke me
14585 #else
14586 f = $ac_func;
14587 #endif
14590 return 0;
14592 _ACEOF
14593 rm -f conftest.$ac_objext conftest$ac_exeext
14594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14595 (eval $ac_link) 2>&5
14596 ac_status=$?
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } &&
14599 { ac_try='test -s conftest$ac_exeext'
14600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14601 (eval $ac_try) 2>&5
14602 ac_status=$?
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); }; }; then
14605 eval "$as_ac_var=yes"
14606 else
14607 echo "$as_me: failed program was:" >&5
14608 cat conftest.$ac_ext >&5
14609 eval "$as_ac_var=no"
14611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14614 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14615 if test `eval echo '${'$as_ac_var'}'` = yes; then
14616 cat >>confdefs.h <<_ACEOF
14617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14618 _ACEOF
14621 done
14624 esac
14627 # UnixWare 7.x has its getspnam in -lgen
14628 case "$LIBS" in
14629 *-lgen*)
14630 for ac_func in getspnam
14632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14633 echo "$as_me:$LINENO: checking for $ac_func" >&5
14634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14635 if eval "test \"\${$as_ac_var+set}\" = set"; then
14636 echo $ECHO_N "(cached) $ECHO_C" >&6
14637 else
14638 cat >conftest.$ac_ext <<_ACEOF
14639 #line $LINENO "configure"
14640 #include "confdefs.h"
14641 /* System header to define __stub macros and hopefully few prototypes,
14642 which can conflict with char $ac_func (); below. */
14643 #include <assert.h>
14644 /* Override any gcc2 internal prototype to avoid an error. */
14645 #ifdef __cplusplus
14646 extern "C"
14647 #endif
14648 /* We use char because int might match the return type of a gcc2
14649 builtin and then its argument prototype would still apply. */
14650 char $ac_func ();
14651 char (*f) ();
14653 #ifdef F77_DUMMY_MAIN
14654 # ifdef __cplusplus
14655 extern "C"
14656 # endif
14657 int F77_DUMMY_MAIN() { return 1; }
14658 #endif
14660 main ()
14662 /* The GNU C library defines this for functions which it implements
14663 to always fail with ENOSYS. Some functions are actually named
14664 something starting with __ and the normal name is an alias. */
14665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14666 choke me
14667 #else
14668 f = $ac_func;
14669 #endif
14672 return 0;
14674 _ACEOF
14675 rm -f conftest.$ac_objext conftest$ac_exeext
14676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14677 (eval $ac_link) 2>&5
14678 ac_status=$?
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } &&
14681 { ac_try='test -s conftest$ac_exeext'
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14684 ac_status=$?
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; }; then
14687 eval "$as_ac_var=yes"
14688 else
14689 echo "$as_me: failed program was:" >&5
14690 cat conftest.$ac_ext >&5
14691 eval "$as_ac_var=no"
14693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14697 if test `eval echo '${'$as_ac_var'}'` = yes; then
14698 cat >>confdefs.h <<_ACEOF
14699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14700 _ACEOF
14703 done
14706 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
14707 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
14708 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
14709 echo $ECHO_N "(cached) $ECHO_C" >&6
14710 else
14711 ac_check_lib_save_LIBS=$LIBS
14712 LIBS="-lgen $LIBS"
14713 cat >conftest.$ac_ext <<_ACEOF
14714 #line $LINENO "configure"
14715 #include "confdefs.h"
14717 /* Override any gcc2 internal prototype to avoid an error. */
14718 #ifdef __cplusplus
14719 extern "C"
14720 #endif
14721 /* We use char because int might match the return type of a gcc2
14722 builtin and then its argument prototype would still apply. */
14723 char getspnam ();
14724 #ifdef F77_DUMMY_MAIN
14725 # ifdef __cplusplus
14726 extern "C"
14727 # endif
14728 int F77_DUMMY_MAIN() { return 1; }
14729 #endif
14731 main ()
14733 getspnam ();
14735 return 0;
14737 _ACEOF
14738 rm -f conftest.$ac_objext conftest$ac_exeext
14739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14740 (eval $ac_link) 2>&5
14741 ac_status=$?
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } &&
14744 { ac_try='test -s conftest$ac_exeext'
14745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14746 (eval $ac_try) 2>&5
14747 ac_status=$?
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); }; }; then
14750 ac_cv_lib_gen_getspnam=yes
14751 else
14752 echo "$as_me: failed program was:" >&5
14753 cat conftest.$ac_ext >&5
14754 ac_cv_lib_gen_getspnam=no
14756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14757 LIBS=$ac_check_lib_save_LIBS
14759 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
14760 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
14761 if test $ac_cv_lib_gen_getspnam = yes; then
14762 cat >>confdefs.h <<_ACEOF
14763 #define HAVE_LIBGEN 1
14764 _ACEOF
14766 LIBS="-lgen $LIBS"
14771 for ac_func in getspnam
14773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14774 echo "$as_me:$LINENO: checking for $ac_func" >&5
14775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14776 if eval "test \"\${$as_ac_var+set}\" = set"; then
14777 echo $ECHO_N "(cached) $ECHO_C" >&6
14778 else
14779 cat >conftest.$ac_ext <<_ACEOF
14780 #line $LINENO "configure"
14781 #include "confdefs.h"
14782 /* System header to define __stub macros and hopefully few prototypes,
14783 which can conflict with char $ac_func (); below. */
14784 #include <assert.h>
14785 /* Override any gcc2 internal prototype to avoid an error. */
14786 #ifdef __cplusplus
14787 extern "C"
14788 #endif
14789 /* We use char because int might match the return type of a gcc2
14790 builtin and then its argument prototype would still apply. */
14791 char $ac_func ();
14792 char (*f) ();
14794 #ifdef F77_DUMMY_MAIN
14795 # ifdef __cplusplus
14796 extern "C"
14797 # endif
14798 int F77_DUMMY_MAIN() { return 1; }
14799 #endif
14801 main ()
14803 /* The GNU C library defines this for functions which it implements
14804 to always fail with ENOSYS. Some functions are actually named
14805 something starting with __ and the normal name is an alias. */
14806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14807 choke me
14808 #else
14809 f = $ac_func;
14810 #endif
14813 return 0;
14815 _ACEOF
14816 rm -f conftest.$ac_objext conftest$ac_exeext
14817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14818 (eval $ac_link) 2>&5
14819 ac_status=$?
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } &&
14822 { ac_try='test -s conftest$ac_exeext'
14823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14824 (eval $ac_try) 2>&5
14825 ac_status=$?
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); }; }; then
14828 eval "$as_ac_var=yes"
14829 else
14830 echo "$as_me: failed program was:" >&5
14831 cat conftest.$ac_ext >&5
14832 eval "$as_ac_var=no"
14834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14838 if test `eval echo '${'$as_ac_var'}'` = yes; then
14839 cat >>confdefs.h <<_ACEOF
14840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14841 _ACEOF
14844 done
14847 esac
14850 case "$LIBS" in
14851 *-lsecurity*)
14852 for ac_func in getspnam
14854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14855 echo "$as_me:$LINENO: checking for $ac_func" >&5
14856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14857 if eval "test \"\${$as_ac_var+set}\" = set"; then
14858 echo $ECHO_N "(cached) $ECHO_C" >&6
14859 else
14860 cat >conftest.$ac_ext <<_ACEOF
14861 #line $LINENO "configure"
14862 #include "confdefs.h"
14863 /* System header to define __stub macros and hopefully few prototypes,
14864 which can conflict with char $ac_func (); below. */
14865 #include <assert.h>
14866 /* Override any gcc2 internal prototype to avoid an error. */
14867 #ifdef __cplusplus
14868 extern "C"
14869 #endif
14870 /* We use char because int might match the return type of a gcc2
14871 builtin and then its argument prototype would still apply. */
14872 char $ac_func ();
14873 char (*f) ();
14875 #ifdef F77_DUMMY_MAIN
14876 # ifdef __cplusplus
14877 extern "C"
14878 # endif
14879 int F77_DUMMY_MAIN() { return 1; }
14880 #endif
14882 main ()
14884 /* The GNU C library defines this for functions which it implements
14885 to always fail with ENOSYS. Some functions are actually named
14886 something starting with __ and the normal name is an alias. */
14887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14888 choke me
14889 #else
14890 f = $ac_func;
14891 #endif
14894 return 0;
14896 _ACEOF
14897 rm -f conftest.$ac_objext conftest$ac_exeext
14898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14899 (eval $ac_link) 2>&5
14900 ac_status=$?
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } &&
14903 { ac_try='test -s conftest$ac_exeext'
14904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14905 (eval $ac_try) 2>&5
14906 ac_status=$?
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; }; then
14909 eval "$as_ac_var=yes"
14910 else
14911 echo "$as_me: failed program was:" >&5
14912 cat conftest.$ac_ext >&5
14913 eval "$as_ac_var=no"
14915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14918 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14919 if test `eval echo '${'$as_ac_var'}'` = yes; then
14920 cat >>confdefs.h <<_ACEOF
14921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14922 _ACEOF
14925 done
14928 echo "$as_me:$LINENO: checking for getspnam in -lsecurity" >&5
14929 echo $ECHO_N "checking for getspnam in -lsecurity... $ECHO_C" >&6
14930 if test "${ac_cv_lib_security_getspnam+set}" = set; then
14931 echo $ECHO_N "(cached) $ECHO_C" >&6
14932 else
14933 ac_check_lib_save_LIBS=$LIBS
14934 LIBS="-lsecurity $LIBS"
14935 cat >conftest.$ac_ext <<_ACEOF
14936 #line $LINENO "configure"
14937 #include "confdefs.h"
14939 /* Override any gcc2 internal prototype to avoid an error. */
14940 #ifdef __cplusplus
14941 extern "C"
14942 #endif
14943 /* We use char because int might match the return type of a gcc2
14944 builtin and then its argument prototype would still apply. */
14945 char getspnam ();
14946 #ifdef F77_DUMMY_MAIN
14947 # ifdef __cplusplus
14948 extern "C"
14949 # endif
14950 int F77_DUMMY_MAIN() { return 1; }
14951 #endif
14953 main ()
14955 getspnam ();
14957 return 0;
14959 _ACEOF
14960 rm -f conftest.$ac_objext conftest$ac_exeext
14961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14962 (eval $ac_link) 2>&5
14963 ac_status=$?
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); } &&
14966 { ac_try='test -s conftest$ac_exeext'
14967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14968 (eval $ac_try) 2>&5
14969 ac_status=$?
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }; }; then
14972 ac_cv_lib_security_getspnam=yes
14973 else
14974 echo "$as_me: failed program was:" >&5
14975 cat conftest.$ac_ext >&5
14976 ac_cv_lib_security_getspnam=no
14978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14979 LIBS=$ac_check_lib_save_LIBS
14981 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getspnam" >&5
14982 echo "${ECHO_T}$ac_cv_lib_security_getspnam" >&6
14983 if test $ac_cv_lib_security_getspnam = yes; then
14984 cat >>confdefs.h <<_ACEOF
14985 #define HAVE_LIBSECURITY 1
14986 _ACEOF
14988 LIBS="-lsecurity $LIBS"
14993 for ac_func in getspnam
14995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14996 echo "$as_me:$LINENO: checking for $ac_func" >&5
14997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14998 if eval "test \"\${$as_ac_var+set}\" = set"; then
14999 echo $ECHO_N "(cached) $ECHO_C" >&6
15000 else
15001 cat >conftest.$ac_ext <<_ACEOF
15002 #line $LINENO "configure"
15003 #include "confdefs.h"
15004 /* System header to define __stub macros and hopefully few prototypes,
15005 which can conflict with char $ac_func (); below. */
15006 #include <assert.h>
15007 /* Override any gcc2 internal prototype to avoid an error. */
15008 #ifdef __cplusplus
15009 extern "C"
15010 #endif
15011 /* We use char because int might match the return type of a gcc2
15012 builtin and then its argument prototype would still apply. */
15013 char $ac_func ();
15014 char (*f) ();
15016 #ifdef F77_DUMMY_MAIN
15017 # ifdef __cplusplus
15018 extern "C"
15019 # endif
15020 int F77_DUMMY_MAIN() { return 1; }
15021 #endif
15023 main ()
15025 /* The GNU C library defines this for functions which it implements
15026 to always fail with ENOSYS. Some functions are actually named
15027 something starting with __ and the normal name is an alias. */
15028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15029 choke me
15030 #else
15031 f = $ac_func;
15032 #endif
15035 return 0;
15037 _ACEOF
15038 rm -f conftest.$ac_objext conftest$ac_exeext
15039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15040 (eval $ac_link) 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } &&
15044 { ac_try='test -s conftest$ac_exeext'
15045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15046 (eval $ac_try) 2>&5
15047 ac_status=$?
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }; }; then
15050 eval "$as_ac_var=yes"
15051 else
15052 echo "$as_me: failed program was:" >&5
15053 cat conftest.$ac_ext >&5
15054 eval "$as_ac_var=no"
15056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15060 if test `eval echo '${'$as_ac_var'}'` = yes; then
15061 cat >>confdefs.h <<_ACEOF
15062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15063 _ACEOF
15066 done
15069 esac
15071 case "$LIBS" in
15072 *-lsec*)
15073 for ac_func in getspnam
15075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15076 echo "$as_me:$LINENO: checking for $ac_func" >&5
15077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15078 if eval "test \"\${$as_ac_var+set}\" = set"; then
15079 echo $ECHO_N "(cached) $ECHO_C" >&6
15080 else
15081 cat >conftest.$ac_ext <<_ACEOF
15082 #line $LINENO "configure"
15083 #include "confdefs.h"
15084 /* System header to define __stub macros and hopefully few prototypes,
15085 which can conflict with char $ac_func (); below. */
15086 #include <assert.h>
15087 /* Override any gcc2 internal prototype to avoid an error. */
15088 #ifdef __cplusplus
15089 extern "C"
15090 #endif
15091 /* We use char because int might match the return type of a gcc2
15092 builtin and then its argument prototype would still apply. */
15093 char $ac_func ();
15094 char (*f) ();
15096 #ifdef F77_DUMMY_MAIN
15097 # ifdef __cplusplus
15098 extern "C"
15099 # endif
15100 int F77_DUMMY_MAIN() { return 1; }
15101 #endif
15103 main ()
15105 /* The GNU C library defines this for functions which it implements
15106 to always fail with ENOSYS. Some functions are actually named
15107 something starting with __ and the normal name is an alias. */
15108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15109 choke me
15110 #else
15111 f = $ac_func;
15112 #endif
15115 return 0;
15117 _ACEOF
15118 rm -f conftest.$ac_objext conftest$ac_exeext
15119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15120 (eval $ac_link) 2>&5
15121 ac_status=$?
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); } &&
15124 { ac_try='test -s conftest$ac_exeext'
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15127 ac_status=$?
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; }; then
15130 eval "$as_ac_var=yes"
15131 else
15132 echo "$as_me: failed program was:" >&5
15133 cat conftest.$ac_ext >&5
15134 eval "$as_ac_var=no"
15136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15140 if test `eval echo '${'$as_ac_var'}'` = yes; then
15141 cat >>confdefs.h <<_ACEOF
15142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15143 _ACEOF
15146 done
15149 echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
15150 echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
15151 if test "${ac_cv_lib_sec_getspnam+set}" = set; then
15152 echo $ECHO_N "(cached) $ECHO_C" >&6
15153 else
15154 ac_check_lib_save_LIBS=$LIBS
15155 LIBS="-lsec $LIBS"
15156 cat >conftest.$ac_ext <<_ACEOF
15157 #line $LINENO "configure"
15158 #include "confdefs.h"
15160 /* Override any gcc2 internal prototype to avoid an error. */
15161 #ifdef __cplusplus
15162 extern "C"
15163 #endif
15164 /* We use char because int might match the return type of a gcc2
15165 builtin and then its argument prototype would still apply. */
15166 char getspnam ();
15167 #ifdef F77_DUMMY_MAIN
15168 # ifdef __cplusplus
15169 extern "C"
15170 # endif
15171 int F77_DUMMY_MAIN() { return 1; }
15172 #endif
15174 main ()
15176 getspnam ();
15178 return 0;
15180 _ACEOF
15181 rm -f conftest.$ac_objext conftest$ac_exeext
15182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15183 (eval $ac_link) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); } &&
15187 { ac_try='test -s conftest$ac_exeext'
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15193 ac_cv_lib_sec_getspnam=yes
15194 else
15195 echo "$as_me: failed program was:" >&5
15196 cat conftest.$ac_ext >&5
15197 ac_cv_lib_sec_getspnam=no
15199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15200 LIBS=$ac_check_lib_save_LIBS
15202 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
15203 echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
15204 if test $ac_cv_lib_sec_getspnam = yes; then
15205 cat >>confdefs.h <<_ACEOF
15206 #define HAVE_LIBSEC 1
15207 _ACEOF
15209 LIBS="-lsec $LIBS"
15214 for ac_func in getspnam
15216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15217 echo "$as_me:$LINENO: checking for $ac_func" >&5
15218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15219 if eval "test \"\${$as_ac_var+set}\" = set"; then
15220 echo $ECHO_N "(cached) $ECHO_C" >&6
15221 else
15222 cat >conftest.$ac_ext <<_ACEOF
15223 #line $LINENO "configure"
15224 #include "confdefs.h"
15225 /* System header to define __stub macros and hopefully few prototypes,
15226 which can conflict with char $ac_func (); below. */
15227 #include <assert.h>
15228 /* Override any gcc2 internal prototype to avoid an error. */
15229 #ifdef __cplusplus
15230 extern "C"
15231 #endif
15232 /* We use char because int might match the return type of a gcc2
15233 builtin and then its argument prototype would still apply. */
15234 char $ac_func ();
15235 char (*f) ();
15237 #ifdef F77_DUMMY_MAIN
15238 # ifdef __cplusplus
15239 extern "C"
15240 # endif
15241 int F77_DUMMY_MAIN() { return 1; }
15242 #endif
15244 main ()
15246 /* The GNU C library defines this for functions which it implements
15247 to always fail with ENOSYS. Some functions are actually named
15248 something starting with __ and the normal name is an alias. */
15249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15250 choke me
15251 #else
15252 f = $ac_func;
15253 #endif
15256 return 0;
15258 _ACEOF
15259 rm -f conftest.$ac_objext conftest$ac_exeext
15260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15261 (eval $ac_link) 2>&5
15262 ac_status=$?
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); } &&
15265 { ac_try='test -s conftest$ac_exeext'
15266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15267 (eval $ac_try) 2>&5
15268 ac_status=$?
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; }; then
15271 eval "$as_ac_var=yes"
15272 else
15273 echo "$as_me: failed program was:" >&5
15274 cat conftest.$ac_ext >&5
15275 eval "$as_ac_var=no"
15277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15281 if test `eval echo '${'$as_ac_var'}'` = yes; then
15282 cat >>confdefs.h <<_ACEOF
15283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15284 _ACEOF
15287 done
15290 esac
15293 case "$LIBS" in
15294 *-lsecurity*)
15295 for ac_func in bigcrypt
15297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15298 echo "$as_me:$LINENO: checking for $ac_func" >&5
15299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15300 if eval "test \"\${$as_ac_var+set}\" = set"; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15302 else
15303 cat >conftest.$ac_ext <<_ACEOF
15304 #line $LINENO "configure"
15305 #include "confdefs.h"
15306 /* System header to define __stub macros and hopefully few prototypes,
15307 which can conflict with char $ac_func (); below. */
15308 #include <assert.h>
15309 /* Override any gcc2 internal prototype to avoid an error. */
15310 #ifdef __cplusplus
15311 extern "C"
15312 #endif
15313 /* We use char because int might match the return type of a gcc2
15314 builtin and then its argument prototype would still apply. */
15315 char $ac_func ();
15316 char (*f) ();
15318 #ifdef F77_DUMMY_MAIN
15319 # ifdef __cplusplus
15320 extern "C"
15321 # endif
15322 int F77_DUMMY_MAIN() { return 1; }
15323 #endif
15325 main ()
15327 /* The GNU C library defines this for functions which it implements
15328 to always fail with ENOSYS. Some functions are actually named
15329 something starting with __ and the normal name is an alias. */
15330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15331 choke me
15332 #else
15333 f = $ac_func;
15334 #endif
15337 return 0;
15339 _ACEOF
15340 rm -f conftest.$ac_objext conftest$ac_exeext
15341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15342 (eval $ac_link) 2>&5
15343 ac_status=$?
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); } &&
15346 { ac_try='test -s conftest$ac_exeext'
15347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15348 (eval $ac_try) 2>&5
15349 ac_status=$?
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; }; then
15352 eval "$as_ac_var=yes"
15353 else
15354 echo "$as_me: failed program was:" >&5
15355 cat conftest.$ac_ext >&5
15356 eval "$as_ac_var=no"
15358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15362 if test `eval echo '${'$as_ac_var'}'` = yes; then
15363 cat >>confdefs.h <<_ACEOF
15364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15365 _ACEOF
15368 done
15371 echo "$as_me:$LINENO: checking for bigcrypt in -lsecurity" >&5
15372 echo $ECHO_N "checking for bigcrypt in -lsecurity... $ECHO_C" >&6
15373 if test "${ac_cv_lib_security_bigcrypt+set}" = set; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
15375 else
15376 ac_check_lib_save_LIBS=$LIBS
15377 LIBS="-lsecurity $LIBS"
15378 cat >conftest.$ac_ext <<_ACEOF
15379 #line $LINENO "configure"
15380 #include "confdefs.h"
15382 /* Override any gcc2 internal prototype to avoid an error. */
15383 #ifdef __cplusplus
15384 extern "C"
15385 #endif
15386 /* We use char because int might match the return type of a gcc2
15387 builtin and then its argument prototype would still apply. */
15388 char bigcrypt ();
15389 #ifdef F77_DUMMY_MAIN
15390 # ifdef __cplusplus
15391 extern "C"
15392 # endif
15393 int F77_DUMMY_MAIN() { return 1; }
15394 #endif
15396 main ()
15398 bigcrypt ();
15400 return 0;
15402 _ACEOF
15403 rm -f conftest.$ac_objext conftest$ac_exeext
15404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15405 (eval $ac_link) 2>&5
15406 ac_status=$?
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); } &&
15409 { ac_try='test -s conftest$ac_exeext'
15410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15411 (eval $ac_try) 2>&5
15412 ac_status=$?
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; }; then
15415 ac_cv_lib_security_bigcrypt=yes
15416 else
15417 echo "$as_me: failed program was:" >&5
15418 cat conftest.$ac_ext >&5
15419 ac_cv_lib_security_bigcrypt=no
15421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15422 LIBS=$ac_check_lib_save_LIBS
15424 echo "$as_me:$LINENO: result: $ac_cv_lib_security_bigcrypt" >&5
15425 echo "${ECHO_T}$ac_cv_lib_security_bigcrypt" >&6
15426 if test $ac_cv_lib_security_bigcrypt = yes; then
15427 cat >>confdefs.h <<_ACEOF
15428 #define HAVE_LIBSECURITY 1
15429 _ACEOF
15431 LIBS="-lsecurity $LIBS"
15436 for ac_func in bigcrypt
15438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15439 echo "$as_me:$LINENO: checking for $ac_func" >&5
15440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15441 if eval "test \"\${$as_ac_var+set}\" = set"; then
15442 echo $ECHO_N "(cached) $ECHO_C" >&6
15443 else
15444 cat >conftest.$ac_ext <<_ACEOF
15445 #line $LINENO "configure"
15446 #include "confdefs.h"
15447 /* System header to define __stub macros and hopefully few prototypes,
15448 which can conflict with char $ac_func (); below. */
15449 #include <assert.h>
15450 /* Override any gcc2 internal prototype to avoid an error. */
15451 #ifdef __cplusplus
15452 extern "C"
15453 #endif
15454 /* We use char because int might match the return type of a gcc2
15455 builtin and then its argument prototype would still apply. */
15456 char $ac_func ();
15457 char (*f) ();
15459 #ifdef F77_DUMMY_MAIN
15460 # ifdef __cplusplus
15461 extern "C"
15462 # endif
15463 int F77_DUMMY_MAIN() { return 1; }
15464 #endif
15466 main ()
15468 /* The GNU C library defines this for functions which it implements
15469 to always fail with ENOSYS. Some functions are actually named
15470 something starting with __ and the normal name is an alias. */
15471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15472 choke me
15473 #else
15474 f = $ac_func;
15475 #endif
15478 return 0;
15480 _ACEOF
15481 rm -f conftest.$ac_objext conftest$ac_exeext
15482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15483 (eval $ac_link) 2>&5
15484 ac_status=$?
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); } &&
15487 { ac_try='test -s conftest$ac_exeext'
15488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15489 (eval $ac_try) 2>&5
15490 ac_status=$?
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); }; }; then
15493 eval "$as_ac_var=yes"
15494 else
15495 echo "$as_me: failed program was:" >&5
15496 cat conftest.$ac_ext >&5
15497 eval "$as_ac_var=no"
15499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15503 if test `eval echo '${'$as_ac_var'}'` = yes; then
15504 cat >>confdefs.h <<_ACEOF
15505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15506 _ACEOF
15509 done
15512 esac
15514 case "$LIBS" in
15515 *-lsec*)
15516 for ac_func in bigcrypt
15518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15519 echo "$as_me:$LINENO: checking for $ac_func" >&5
15520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15521 if eval "test \"\${$as_ac_var+set}\" = set"; then
15522 echo $ECHO_N "(cached) $ECHO_C" >&6
15523 else
15524 cat >conftest.$ac_ext <<_ACEOF
15525 #line $LINENO "configure"
15526 #include "confdefs.h"
15527 /* System header to define __stub macros and hopefully few prototypes,
15528 which can conflict with char $ac_func (); below. */
15529 #include <assert.h>
15530 /* Override any gcc2 internal prototype to avoid an error. */
15531 #ifdef __cplusplus
15532 extern "C"
15533 #endif
15534 /* We use char because int might match the return type of a gcc2
15535 builtin and then its argument prototype would still apply. */
15536 char $ac_func ();
15537 char (*f) ();
15539 #ifdef F77_DUMMY_MAIN
15540 # ifdef __cplusplus
15541 extern "C"
15542 # endif
15543 int F77_DUMMY_MAIN() { return 1; }
15544 #endif
15546 main ()
15548 /* The GNU C library defines this for functions which it implements
15549 to always fail with ENOSYS. Some functions are actually named
15550 something starting with __ and the normal name is an alias. */
15551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15552 choke me
15553 #else
15554 f = $ac_func;
15555 #endif
15558 return 0;
15560 _ACEOF
15561 rm -f conftest.$ac_objext conftest$ac_exeext
15562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15563 (eval $ac_link) 2>&5
15564 ac_status=$?
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } &&
15567 { ac_try='test -s conftest$ac_exeext'
15568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15570 ac_status=$?
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; }; then
15573 eval "$as_ac_var=yes"
15574 else
15575 echo "$as_me: failed program was:" >&5
15576 cat conftest.$ac_ext >&5
15577 eval "$as_ac_var=no"
15579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15583 if test `eval echo '${'$as_ac_var'}'` = yes; then
15584 cat >>confdefs.h <<_ACEOF
15585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15586 _ACEOF
15589 done
15592 echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
15593 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
15594 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
15595 echo $ECHO_N "(cached) $ECHO_C" >&6
15596 else
15597 ac_check_lib_save_LIBS=$LIBS
15598 LIBS="-lsec $LIBS"
15599 cat >conftest.$ac_ext <<_ACEOF
15600 #line $LINENO "configure"
15601 #include "confdefs.h"
15603 /* Override any gcc2 internal prototype to avoid an error. */
15604 #ifdef __cplusplus
15605 extern "C"
15606 #endif
15607 /* We use char because int might match the return type of a gcc2
15608 builtin and then its argument prototype would still apply. */
15609 char bigcrypt ();
15610 #ifdef F77_DUMMY_MAIN
15611 # ifdef __cplusplus
15612 extern "C"
15613 # endif
15614 int F77_DUMMY_MAIN() { return 1; }
15615 #endif
15617 main ()
15619 bigcrypt ();
15621 return 0;
15623 _ACEOF
15624 rm -f conftest.$ac_objext conftest$ac_exeext
15625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15626 (eval $ac_link) 2>&5
15627 ac_status=$?
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); } &&
15630 { ac_try='test -s conftest$ac_exeext'
15631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15632 (eval $ac_try) 2>&5
15633 ac_status=$?
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; }; then
15636 ac_cv_lib_sec_bigcrypt=yes
15637 else
15638 echo "$as_me: failed program was:" >&5
15639 cat conftest.$ac_ext >&5
15640 ac_cv_lib_sec_bigcrypt=no
15642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15643 LIBS=$ac_check_lib_save_LIBS
15645 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
15646 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
15647 if test $ac_cv_lib_sec_bigcrypt = yes; then
15648 cat >>confdefs.h <<_ACEOF
15649 #define HAVE_LIBSEC 1
15650 _ACEOF
15652 LIBS="-lsec $LIBS"
15657 for ac_func in bigcrypt
15659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15660 echo "$as_me:$LINENO: checking for $ac_func" >&5
15661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15662 if eval "test \"\${$as_ac_var+set}\" = set"; then
15663 echo $ECHO_N "(cached) $ECHO_C" >&6
15664 else
15665 cat >conftest.$ac_ext <<_ACEOF
15666 #line $LINENO "configure"
15667 #include "confdefs.h"
15668 /* System header to define __stub macros and hopefully few prototypes,
15669 which can conflict with char $ac_func (); below. */
15670 #include <assert.h>
15671 /* Override any gcc2 internal prototype to avoid an error. */
15672 #ifdef __cplusplus
15673 extern "C"
15674 #endif
15675 /* We use char because int might match the return type of a gcc2
15676 builtin and then its argument prototype would still apply. */
15677 char $ac_func ();
15678 char (*f) ();
15680 #ifdef F77_DUMMY_MAIN
15681 # ifdef __cplusplus
15682 extern "C"
15683 # endif
15684 int F77_DUMMY_MAIN() { return 1; }
15685 #endif
15687 main ()
15689 /* The GNU C library defines this for functions which it implements
15690 to always fail with ENOSYS. Some functions are actually named
15691 something starting with __ and the normal name is an alias. */
15692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15693 choke me
15694 #else
15695 f = $ac_func;
15696 #endif
15699 return 0;
15701 _ACEOF
15702 rm -f conftest.$ac_objext conftest$ac_exeext
15703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15704 (eval $ac_link) 2>&5
15705 ac_status=$?
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } &&
15708 { ac_try='test -s conftest$ac_exeext'
15709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710 (eval $ac_try) 2>&5
15711 ac_status=$?
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; }; then
15714 eval "$as_ac_var=yes"
15715 else
15716 echo "$as_me: failed program was:" >&5
15717 cat conftest.$ac_ext >&5
15718 eval "$as_ac_var=no"
15720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15724 if test `eval echo '${'$as_ac_var'}'` = yes; then
15725 cat >>confdefs.h <<_ACEOF
15726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15727 _ACEOF
15730 done
15733 esac
15736 case "$LIBS" in
15737 *-lsecurity*)
15738 for ac_func in getprpwnam
15740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15741 echo "$as_me:$LINENO: checking for $ac_func" >&5
15742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15743 if eval "test \"\${$as_ac_var+set}\" = set"; then
15744 echo $ECHO_N "(cached) $ECHO_C" >&6
15745 else
15746 cat >conftest.$ac_ext <<_ACEOF
15747 #line $LINENO "configure"
15748 #include "confdefs.h"
15749 /* System header to define __stub macros and hopefully few prototypes,
15750 which can conflict with char $ac_func (); below. */
15751 #include <assert.h>
15752 /* Override any gcc2 internal prototype to avoid an error. */
15753 #ifdef __cplusplus
15754 extern "C"
15755 #endif
15756 /* We use char because int might match the return type of a gcc2
15757 builtin and then its argument prototype would still apply. */
15758 char $ac_func ();
15759 char (*f) ();
15761 #ifdef F77_DUMMY_MAIN
15762 # ifdef __cplusplus
15763 extern "C"
15764 # endif
15765 int F77_DUMMY_MAIN() { return 1; }
15766 #endif
15768 main ()
15770 /* The GNU C library defines this for functions which it implements
15771 to always fail with ENOSYS. Some functions are actually named
15772 something starting with __ and the normal name is an alias. */
15773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15774 choke me
15775 #else
15776 f = $ac_func;
15777 #endif
15780 return 0;
15782 _ACEOF
15783 rm -f conftest.$ac_objext conftest$ac_exeext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15785 (eval $ac_link) 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); } &&
15789 { ac_try='test -s conftest$ac_exeext'
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15792 ac_status=$?
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; }; then
15795 eval "$as_ac_var=yes"
15796 else
15797 echo "$as_me: failed program was:" >&5
15798 cat conftest.$ac_ext >&5
15799 eval "$as_ac_var=no"
15801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15805 if test `eval echo '${'$as_ac_var'}'` = yes; then
15806 cat >>confdefs.h <<_ACEOF
15807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15808 _ACEOF
15811 done
15814 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
15815 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
15816 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
15817 echo $ECHO_N "(cached) $ECHO_C" >&6
15818 else
15819 ac_check_lib_save_LIBS=$LIBS
15820 LIBS="-lsecurity $LIBS"
15821 cat >conftest.$ac_ext <<_ACEOF
15822 #line $LINENO "configure"
15823 #include "confdefs.h"
15825 /* Override any gcc2 internal prototype to avoid an error. */
15826 #ifdef __cplusplus
15827 extern "C"
15828 #endif
15829 /* We use char because int might match the return type of a gcc2
15830 builtin and then its argument prototype would still apply. */
15831 char getprpwnam ();
15832 #ifdef F77_DUMMY_MAIN
15833 # ifdef __cplusplus
15834 extern "C"
15835 # endif
15836 int F77_DUMMY_MAIN() { return 1; }
15837 #endif
15839 main ()
15841 getprpwnam ();
15843 return 0;
15845 _ACEOF
15846 rm -f conftest.$ac_objext conftest$ac_exeext
15847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15848 (eval $ac_link) 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } &&
15852 { ac_try='test -s conftest$ac_exeext'
15853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854 (eval $ac_try) 2>&5
15855 ac_status=$?
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; }; then
15858 ac_cv_lib_security_getprpwnam=yes
15859 else
15860 echo "$as_me: failed program was:" >&5
15861 cat conftest.$ac_ext >&5
15862 ac_cv_lib_security_getprpwnam=no
15864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15865 LIBS=$ac_check_lib_save_LIBS
15867 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
15868 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
15869 if test $ac_cv_lib_security_getprpwnam = yes; then
15870 cat >>confdefs.h <<_ACEOF
15871 #define HAVE_LIBSECURITY 1
15872 _ACEOF
15874 LIBS="-lsecurity $LIBS"
15879 for ac_func in getprpwnam
15881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15882 echo "$as_me:$LINENO: checking for $ac_func" >&5
15883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15884 if eval "test \"\${$as_ac_var+set}\" = set"; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15886 else
15887 cat >conftest.$ac_ext <<_ACEOF
15888 #line $LINENO "configure"
15889 #include "confdefs.h"
15890 /* System header to define __stub macros and hopefully few prototypes,
15891 which can conflict with char $ac_func (); below. */
15892 #include <assert.h>
15893 /* Override any gcc2 internal prototype to avoid an error. */
15894 #ifdef __cplusplus
15895 extern "C"
15896 #endif
15897 /* We use char because int might match the return type of a gcc2
15898 builtin and then its argument prototype would still apply. */
15899 char $ac_func ();
15900 char (*f) ();
15902 #ifdef F77_DUMMY_MAIN
15903 # ifdef __cplusplus
15904 extern "C"
15905 # endif
15906 int F77_DUMMY_MAIN() { return 1; }
15907 #endif
15909 main ()
15911 /* The GNU C library defines this for functions which it implements
15912 to always fail with ENOSYS. Some functions are actually named
15913 something starting with __ and the normal name is an alias. */
15914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15915 choke me
15916 #else
15917 f = $ac_func;
15918 #endif
15921 return 0;
15923 _ACEOF
15924 rm -f conftest.$ac_objext conftest$ac_exeext
15925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15926 (eval $ac_link) 2>&5
15927 ac_status=$?
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); } &&
15930 { ac_try='test -s conftest$ac_exeext'
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15933 ac_status=$?
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; }; then
15936 eval "$as_ac_var=yes"
15937 else
15938 echo "$as_me: failed program was:" >&5
15939 cat conftest.$ac_ext >&5
15940 eval "$as_ac_var=no"
15942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15946 if test `eval echo '${'$as_ac_var'}'` = yes; then
15947 cat >>confdefs.h <<_ACEOF
15948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15949 _ACEOF
15952 done
15955 esac
15957 case "$LIBS" in
15958 *-lsec*)
15959 for ac_func in getprpwnam
15961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15962 echo "$as_me:$LINENO: checking for $ac_func" >&5
15963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15964 if eval "test \"\${$as_ac_var+set}\" = set"; then
15965 echo $ECHO_N "(cached) $ECHO_C" >&6
15966 else
15967 cat >conftest.$ac_ext <<_ACEOF
15968 #line $LINENO "configure"
15969 #include "confdefs.h"
15970 /* System header to define __stub macros and hopefully few prototypes,
15971 which can conflict with char $ac_func (); below. */
15972 #include <assert.h>
15973 /* Override any gcc2 internal prototype to avoid an error. */
15974 #ifdef __cplusplus
15975 extern "C"
15976 #endif
15977 /* We use char because int might match the return type of a gcc2
15978 builtin and then its argument prototype would still apply. */
15979 char $ac_func ();
15980 char (*f) ();
15982 #ifdef F77_DUMMY_MAIN
15983 # ifdef __cplusplus
15984 extern "C"
15985 # endif
15986 int F77_DUMMY_MAIN() { return 1; }
15987 #endif
15989 main ()
15991 /* The GNU C library defines this for functions which it implements
15992 to always fail with ENOSYS. Some functions are actually named
15993 something starting with __ and the normal name is an alias. */
15994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15995 choke me
15996 #else
15997 f = $ac_func;
15998 #endif
16001 return 0;
16003 _ACEOF
16004 rm -f conftest.$ac_objext conftest$ac_exeext
16005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16006 (eval $ac_link) 2>&5
16007 ac_status=$?
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } &&
16010 { ac_try='test -s conftest$ac_exeext'
16011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16012 (eval $ac_try) 2>&5
16013 ac_status=$?
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); }; }; then
16016 eval "$as_ac_var=yes"
16017 else
16018 echo "$as_me: failed program was:" >&5
16019 cat conftest.$ac_ext >&5
16020 eval "$as_ac_var=no"
16022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16026 if test `eval echo '${'$as_ac_var'}'` = yes; then
16027 cat >>confdefs.h <<_ACEOF
16028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16029 _ACEOF
16032 done
16035 echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
16036 echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
16037 if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
16038 echo $ECHO_N "(cached) $ECHO_C" >&6
16039 else
16040 ac_check_lib_save_LIBS=$LIBS
16041 LIBS="-lsec $LIBS"
16042 cat >conftest.$ac_ext <<_ACEOF
16043 #line $LINENO "configure"
16044 #include "confdefs.h"
16046 /* Override any gcc2 internal prototype to avoid an error. */
16047 #ifdef __cplusplus
16048 extern "C"
16049 #endif
16050 /* We use char because int might match the return type of a gcc2
16051 builtin and then its argument prototype would still apply. */
16052 char getprpwnam ();
16053 #ifdef F77_DUMMY_MAIN
16054 # ifdef __cplusplus
16055 extern "C"
16056 # endif
16057 int F77_DUMMY_MAIN() { return 1; }
16058 #endif
16060 main ()
16062 getprpwnam ();
16064 return 0;
16066 _ACEOF
16067 rm -f conftest.$ac_objext conftest$ac_exeext
16068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16069 (eval $ac_link) 2>&5
16070 ac_status=$?
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); } &&
16073 { ac_try='test -s conftest$ac_exeext'
16074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16075 (eval $ac_try) 2>&5
16076 ac_status=$?
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; }; then
16079 ac_cv_lib_sec_getprpwnam=yes
16080 else
16081 echo "$as_me: failed program was:" >&5
16082 cat conftest.$ac_ext >&5
16083 ac_cv_lib_sec_getprpwnam=no
16085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16086 LIBS=$ac_check_lib_save_LIBS
16088 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
16089 echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
16090 if test $ac_cv_lib_sec_getprpwnam = yes; then
16091 cat >>confdefs.h <<_ACEOF
16092 #define HAVE_LIBSEC 1
16093 _ACEOF
16095 LIBS="-lsec $LIBS"
16100 for ac_func in getprpwnam
16102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16103 echo "$as_me:$LINENO: checking for $ac_func" >&5
16104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16105 if eval "test \"\${$as_ac_var+set}\" = set"; then
16106 echo $ECHO_N "(cached) $ECHO_C" >&6
16107 else
16108 cat >conftest.$ac_ext <<_ACEOF
16109 #line $LINENO "configure"
16110 #include "confdefs.h"
16111 /* System header to define __stub macros and hopefully few prototypes,
16112 which can conflict with char $ac_func (); below. */
16113 #include <assert.h>
16114 /* Override any gcc2 internal prototype to avoid an error. */
16115 #ifdef __cplusplus
16116 extern "C"
16117 #endif
16118 /* We use char because int might match the return type of a gcc2
16119 builtin and then its argument prototype would still apply. */
16120 char $ac_func ();
16121 char (*f) ();
16123 #ifdef F77_DUMMY_MAIN
16124 # ifdef __cplusplus
16125 extern "C"
16126 # endif
16127 int F77_DUMMY_MAIN() { return 1; }
16128 #endif
16130 main ()
16132 /* The GNU C library defines this for functions which it implements
16133 to always fail with ENOSYS. Some functions are actually named
16134 something starting with __ and the normal name is an alias. */
16135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16136 choke me
16137 #else
16138 f = $ac_func;
16139 #endif
16142 return 0;
16144 _ACEOF
16145 rm -f conftest.$ac_objext conftest$ac_exeext
16146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16147 (eval $ac_link) 2>&5
16148 ac_status=$?
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } &&
16151 { ac_try='test -s conftest$ac_exeext'
16152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16154 ac_status=$?
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; }; then
16157 eval "$as_ac_var=yes"
16158 else
16159 echo "$as_me: failed program was:" >&5
16160 cat conftest.$ac_ext >&5
16161 eval "$as_ac_var=no"
16163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16166 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16167 if test `eval echo '${'$as_ac_var'}'` = yes; then
16168 cat >>confdefs.h <<_ACEOF
16169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16170 _ACEOF
16173 done
16176 esac
16179 # this bit needs to be modified for each OS that is suported by
16180 # smbwrapper. You need to specify how to created a shared library and
16181 # how to compile C code to produce PIC object files
16183 # these are the defaults, good for lots of systems
16184 HOST_OS="$host_os"
16185 LDSHFLAGS="-shared"
16186 SONAMEFLAG="#"
16187 SHLD="\${CC}"
16188 PICFLAG=""
16189 PICSUFFIX="po"
16190 POBAD_CC="#"
16191 SHLIBEXT="so"
16192 # Assume non-shared by default and override below
16193 BLDSHARED="false"
16194 echo "$as_me:$LINENO: checking ability to build shared libraries" >&5
16195 echo $ECHO_N "checking ability to build shared libraries... $ECHO_C" >&6
16197 # and these are for particular systems
16198 case "$host_os" in
16199 *linux*)
16200 cat >>confdefs.h <<\_ACEOF
16201 #define LINUX 1
16202 _ACEOF
16204 BLDSHARED="true"
16205 LDSHFLAGS="-shared"
16206 DYNEXP="-Wl,--export-dynamic"
16207 PICFLAG="-fPIC"
16208 SONAMEFLAG="-Wl,-soname="
16209 cat >>confdefs.h <<\_ACEOF
16210 #define STAT_ST_BLOCKSIZE 512
16211 _ACEOF
16214 *solaris*)
16215 cat >>confdefs.h <<\_ACEOF
16216 #define SUNOS5 1
16217 _ACEOF
16219 BLDSHARED="true"
16220 LDSHFLAGS="-G"
16221 SONAMEFLAG="-h "
16222 if test "${GCC}" = "yes"; then
16223 PICFLAG="-fPIC"
16224 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
16225 DYNEXP="-Wl,-E"
16227 else
16228 PICFLAG="-KPIC"
16229 ## ${CFLAGS} added for building 64-bit shared
16230 ## libs using Sun's Compiler
16231 LDSHFLAGS="-G \${CFLAGS}"
16232 POBAD_CC=""
16233 PICSUFFIX="po.o"
16236 cat >>confdefs.h <<\_ACEOF
16237 #define STAT_ST_BLOCKSIZE 512
16238 _ACEOF
16241 *sunos*)
16242 cat >>confdefs.h <<\_ACEOF
16243 #define SUNOS4 1
16244 _ACEOF
16246 BLDSHARED="true"
16247 LDSHFLAGS="-G"
16248 SONAMEFLAG="-Wl,-h,"
16249 PICFLAG="-KPIC" # Is this correct for SunOS
16250 cat >>confdefs.h <<\_ACEOF
16251 #define STAT_ST_BLOCKSIZE 512
16252 _ACEOF
16255 *netbsd* | *freebsd*) BLDSHARED="true"
16256 LDSHFLAGS="-shared"
16257 DYNEXP="-Wl,--export-dynamic"
16258 SONAMEFLAG="-Wl,-soname,"
16259 PICFLAG="-fPIC -DPIC"
16261 cat >>confdefs.h <<\_ACEOF
16262 #define STAT_ST_BLOCKSIZE 512
16263 _ACEOF
16266 *openbsd*) BLDSHARED="true"
16267 LDSHFLAGS="-shared"
16268 DYNEXP="-Wl,-Bdynamic"
16269 SONAMEFLAG="-Wl,-soname,"
16270 PICFLAG="-fPIC"
16272 cat >>confdefs.h <<\_ACEOF
16273 #define STAT_ST_BLOCKSIZE 512
16274 _ACEOF
16277 *irix*)
16278 cat >>confdefs.h <<\_ACEOF
16279 #define IRIX 1
16280 _ACEOF
16282 case "$host_os" in
16283 *irix6*)
16284 cat >>confdefs.h <<\_ACEOF
16285 #define IRIX6 1
16286 _ACEOF
16289 esac
16290 ATTEMPT_WRAP32_BUILD=yes
16291 BLDSHARED="true"
16292 LDSHFLAGS="-set_version sgi1.0 -shared"
16293 SONAMEFLAG="-soname "
16294 SHLD="\${LD}"
16295 if test "${GCC}" = "yes"; then
16296 PICFLAG="-fPIC"
16297 else
16298 PICFLAG="-KPIC"
16301 cat >>confdefs.h <<\_ACEOF
16302 #define STAT_ST_BLOCKSIZE 512
16303 _ACEOF
16306 *aix*)
16307 cat >>confdefs.h <<\_ACEOF
16308 #define AIX 1
16309 _ACEOF
16311 BLDSHARED="true"
16312 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
16313 DYNEXP="-Wl,-brtl,-bexpall"
16314 PICFLAG="-O2"
16315 if test "${GCC}" != "yes"; then
16316 ## for funky AIX compiler using strncpy()
16317 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
16321 cat >>confdefs.h <<\_ACEOF
16322 #define STAT_ST_BLOCKSIZE DEV_BSIZE
16323 _ACEOF
16326 *hpux*)
16327 cat >>confdefs.h <<\_ACEOF
16328 #define HPUX 1
16329 _ACEOF
16331 SHLIBEXT="sl"
16332 # Use special PIC flags for the native HP-UX compiler.
16333 if test $ac_cv_prog_cc_Ae = yes; then
16334 BLDSHARED="true"
16335 SHLD="/usr/bin/ld"
16336 LDSHFLAGS="-B symbolic -b -z"
16337 SONAMEFLAG="+h "
16338 PICFLAG="+z"
16340 DYNEXP="-Wl,-E"
16342 cat >>confdefs.h <<\_ACEOF
16343 #define STAT_ST_BLOCKSIZE 8192
16344 _ACEOF
16347 *qnx*)
16348 cat >>confdefs.h <<\_ACEOF
16349 #define QNX 1
16350 _ACEOF
16352 cat >>confdefs.h <<\_ACEOF
16353 #define STAT_ST_BLOCKSIZE 512
16354 _ACEOF
16357 *osf*)
16358 cat >>confdefs.h <<\_ACEOF
16359 #define OSF1 1
16360 _ACEOF
16362 BLDSHARED="true"
16363 LDSHFLAGS="-shared"
16364 SONAMEFLAG="-Wl,-soname,"
16365 PICFLAG="-fPIC"
16366 cat >>confdefs.h <<\_ACEOF
16367 #define STAT_ST_BLOCKSIZE 512
16368 _ACEOF
16371 *sco*)
16372 cat >>confdefs.h <<\_ACEOF
16373 #define SCO 1
16374 _ACEOF
16376 cat >>confdefs.h <<\_ACEOF
16377 #define STAT_ST_BLOCKSIZE 512
16378 _ACEOF
16381 *unixware*)
16382 cat >>confdefs.h <<\_ACEOF
16383 #define UNIXWARE 1
16384 _ACEOF
16386 BLDSHARED="true"
16387 LDSHFLAGS="-shared"
16388 SONAMEFLAG="-Wl,-soname,"
16389 PICFLAG="-KPIC"
16390 cat >>confdefs.h <<\_ACEOF
16391 #define STAT_ST_BLOCKSIZE 512
16392 _ACEOF
16395 *next2*)
16396 cat >>confdefs.h <<\_ACEOF
16397 #define NEXT2 1
16398 _ACEOF
16400 cat >>confdefs.h <<\_ACEOF
16401 #define STAT_ST_BLOCKSIZE 512
16402 _ACEOF
16405 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
16406 set dummy groff; ac_word=$2
16407 echo "$as_me:$LINENO: checking for $ac_word" >&5
16408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16409 if test "${ac_cv_prog_ROFF+set}" = set; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16411 else
16412 if test -n "$ROFF"; then
16413 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
16414 else
16415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16416 for as_dir in $PATH
16418 IFS=$as_save_IFS
16419 test -z "$as_dir" && as_dir=.
16420 for ac_exec_ext in '' $ac_executable_extensions; do
16421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16422 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
16423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16424 break 2
16426 done
16427 done
16431 ROFF=$ac_cv_prog_ROFF
16432 if test -n "$ROFF"; then
16433 echo "$as_me:$LINENO: result: $ROFF" >&5
16434 echo "${ECHO_T}$ROFF" >&6
16435 else
16436 echo "$as_me:$LINENO: result: no" >&5
16437 echo "${ECHO_T}no" >&6
16440 cat >>confdefs.h <<\_ACEOF
16441 #define STAT_ST_BLOCKSIZE 512
16442 _ACEOF
16445 *sysv4*)
16446 cat >>confdefs.h <<\_ACEOF
16447 #define SYSV 1
16448 _ACEOF
16450 case "$host" in
16451 *-univel-*) if test "$GCC" != yes ; then
16453 cat >>confdefs.h <<\_ACEOF
16454 #define HAVE_MEMSET 1
16455 _ACEOF
16458 LDSHFLAGS="-G"
16459 DYNEXP="-Bexport"
16461 *mips-sni-sysv4*)
16462 cat >>confdefs.h <<\_ACEOF
16463 #define RELIANTUNIX 1
16464 _ACEOF
16466 esac
16467 cat >>confdefs.h <<\_ACEOF
16468 #define STAT_ST_BLOCKSIZE 512
16469 _ACEOF
16473 *sysv5*)
16474 cat >>confdefs.h <<\_ACEOF
16475 #define SYSV 1
16476 _ACEOF
16478 if test "$GCC" != yes ; then
16480 cat >>confdefs.h <<\_ACEOF
16481 #define HAVE_MEMSET 1
16482 _ACEOF
16485 LDSHFLAGS="-G"
16486 cat >>confdefs.h <<\_ACEOF
16487 #define STAT_ST_BLOCKSIZE 512
16488 _ACEOF
16491 *vos*) cat >>confdefs.h <<\_ACEOF
16492 #define STAT_ST_BLOCKSIZE 4096
16493 _ACEOF
16495 BLDSHARED="false"
16496 LDSHFLAGS=""
16499 cat >>confdefs.h <<\_ACEOF
16500 #define STAT_ST_BLOCKSIZE 512
16501 _ACEOF
16504 esac
16506 echo "$as_me:$LINENO: result: $BLDSHARED" >&5
16507 echo "${ECHO_T}$BLDSHARED" >&6
16508 echo "$as_me:$LINENO: checking linker flags for shared libraries" >&5
16509 echo $ECHO_N "checking linker flags for shared libraries... $ECHO_C" >&6
16510 echo "$as_me:$LINENO: result: $LDSHFLAGS" >&5
16511 echo "${ECHO_T}$LDSHFLAGS" >&6
16512 echo "$as_me:$LINENO: checking compiler flags for position-independent code" >&5
16513 echo $ECHO_N "checking compiler flags for position-independent code... $ECHO_C" >&6
16514 echo "$as_me:$LINENO: result: $PICFLAGS" >&5
16515 echo "${ECHO_T}$PICFLAGS" >&6
16517 #######################################################
16518 # test whether building a shared library actually works
16519 if test $BLDSHARED = true; then
16520 echo "$as_me:$LINENO: checking whether building shared libraries actually works" >&5
16521 echo $ECHO_N "checking whether building shared libraries actually works... $ECHO_C" >&6
16522 if test "${ac_cv_shlib_works+set}" = set; then
16523 echo $ECHO_N "(cached) $ECHO_C" >&6
16524 else
16526 ac_cv_shlib_works=no
16527 # try building a trivial shared library
16528 if test "$PICSUFFIX" = "po"; then
16529 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
16530 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po &&
16531 ac_cv_shlib_works=yes
16532 else
16533 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.$PICSUFFIX ${srcdir-.}/tests/shlib.c &&
16534 mv shlib.$PICSUFFIX shlib.po &&
16535 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po &&
16536 ac_cv_shlib_works=yes
16538 rm -f shlib.so shlib.po
16541 echo "$as_me:$LINENO: result: $ac_cv_shlib_works" >&5
16542 echo "${ECHO_T}$ac_cv_shlib_works" >&6
16543 if test $ac_cv_shlib_works = no; then
16544 BLDSHARED=false
16548 ################
16550 echo "$as_me:$LINENO: checking for long long" >&5
16551 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16552 if test "${samba_cv_have_longlong+set}" = set; then
16553 echo $ECHO_N "(cached) $ECHO_C" >&6
16554 else
16556 if test "$cross_compiling" = yes; then
16557 samba_cv_have_longlong=cross
16558 else
16559 cat >conftest.$ac_ext <<_ACEOF
16560 #line $LINENO "configure"
16561 #include "confdefs.h"
16562 #include <stdio.h>
16563 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
16564 _ACEOF
16565 rm -f conftest$ac_exeext
16566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16567 (eval $ac_link) 2>&5
16568 ac_status=$?
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16572 (eval $ac_try) 2>&5
16573 ac_status=$?
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); }; }; then
16576 samba_cv_have_longlong=yes
16577 else
16578 echo "$as_me: program exited with status $ac_status" >&5
16579 echo "$as_me: failed program was:" >&5
16580 cat conftest.$ac_ext >&5
16581 ( exit $ac_status )
16582 samba_cv_have_longlong=no
16584 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16587 echo "$as_me:$LINENO: result: $samba_cv_have_longlong" >&5
16588 echo "${ECHO_T}$samba_cv_have_longlong" >&6
16589 if test x"$samba_cv_have_longlong" = x"yes"; then
16591 cat >>confdefs.h <<\_ACEOF
16592 #define HAVE_LONGLONG 1
16593 _ACEOF
16598 # Check if the compiler supports the LL prefix on long long integers.
16599 # AIX needs this.
16601 echo "$as_me:$LINENO: checking for LL suffix on long long integers" >&5
16602 echo $ECHO_N "checking for LL suffix on long long integers... $ECHO_C" >&6
16603 if test "${samba_cv_compiler_supports_ll+set}" = set; then
16604 echo $ECHO_N "(cached) $ECHO_C" >&6
16605 else
16607 cat >conftest.$ac_ext <<_ACEOF
16608 #line $LINENO "configure"
16609 #include "confdefs.h"
16610 #include <stdio.h>
16611 #ifdef F77_DUMMY_MAIN
16612 # ifdef __cplusplus
16613 extern "C"
16614 # endif
16615 int F77_DUMMY_MAIN() { return 1; }
16616 #endif
16618 main ()
16620 long long i = 0x8000000000LL
16622 return 0;
16624 _ACEOF
16625 rm -f conftest.$ac_objext
16626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16627 (eval $ac_compile) 2>&5
16628 ac_status=$?
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } &&
16631 { ac_try='test -s conftest.$ac_objext'
16632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16633 (eval $ac_try) 2>&5
16634 ac_status=$?
16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 (exit $ac_status); }; }; then
16637 samba_cv_compiler_supports_ll=yes
16638 else
16639 echo "$as_me: failed program was:" >&5
16640 cat conftest.$ac_ext >&5
16641 samba_cv_compiler_supports_ll=no
16643 rm -f conftest.$ac_objext conftest.$ac_ext
16645 echo "$as_me:$LINENO: result: $samba_cv_compiler_supports_ll" >&5
16646 echo "${ECHO_T}$samba_cv_compiler_supports_ll" >&6
16647 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
16649 cat >>confdefs.h <<\_ACEOF
16650 #define COMPILER_SUPPORTS_LL 1
16651 _ACEOF
16656 echo "$as_me:$LINENO: checking for 64 bit off_t" >&5
16657 echo $ECHO_N "checking for 64 bit off_t... $ECHO_C" >&6
16658 if test "${samba_cv_SIZEOF_OFF_T+set}" = set; then
16659 echo $ECHO_N "(cached) $ECHO_C" >&6
16660 else
16662 if test "$cross_compiling" = yes; then
16663 samba_cv_SIZEOF_OFF_T=cross
16664 else
16665 cat >conftest.$ac_ext <<_ACEOF
16666 #line $LINENO "configure"
16667 #include "confdefs.h"
16668 #include <stdio.h>
16669 #include <sys/stat.h>
16670 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
16671 _ACEOF
16672 rm -f conftest$ac_exeext
16673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16674 (eval $ac_link) 2>&5
16675 ac_status=$?
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16679 (eval $ac_try) 2>&5
16680 ac_status=$?
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; }; then
16683 samba_cv_SIZEOF_OFF_T=yes
16684 else
16685 echo "$as_me: program exited with status $ac_status" >&5
16686 echo "$as_me: failed program was:" >&5
16687 cat conftest.$ac_ext >&5
16688 ( exit $ac_status )
16689 samba_cv_SIZEOF_OFF_T=no
16691 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16694 echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_OFF_T" >&5
16695 echo "${ECHO_T}$samba_cv_SIZEOF_OFF_T" >&6
16696 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
16698 cat >>confdefs.h <<\_ACEOF
16699 #define SIZEOF_OFF_T 8
16700 _ACEOF
16704 echo "$as_me:$LINENO: checking for off64_t" >&5
16705 echo $ECHO_N "checking for off64_t... $ECHO_C" >&6
16706 if test "${samba_cv_HAVE_OFF64_T+set}" = set; then
16707 echo $ECHO_N "(cached) $ECHO_C" >&6
16708 else
16710 if test "$cross_compiling" = yes; then
16711 samba_cv_HAVE_OFF64_T=cross
16712 else
16713 cat >conftest.$ac_ext <<_ACEOF
16714 #line $LINENO "configure"
16715 #include "confdefs.h"
16717 #if defined(HAVE_UNISTD_H)
16718 #include <unistd.h>
16719 #endif
16720 #include <stdio.h>
16721 #include <sys/stat.h>
16722 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
16723 _ACEOF
16724 rm -f conftest$ac_exeext
16725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16726 (eval $ac_link) 2>&5
16727 ac_status=$?
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731 (eval $ac_try) 2>&5
16732 ac_status=$?
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; }; then
16735 samba_cv_HAVE_OFF64_T=yes
16736 else
16737 echo "$as_me: program exited with status $ac_status" >&5
16738 echo "$as_me: failed program was:" >&5
16739 cat conftest.$ac_ext >&5
16740 ( exit $ac_status )
16741 samba_cv_HAVE_OFF64_T=no
16743 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16746 echo "$as_me:$LINENO: result: $samba_cv_HAVE_OFF64_T" >&5
16747 echo "${ECHO_T}$samba_cv_HAVE_OFF64_T" >&6
16748 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
16750 cat >>confdefs.h <<\_ACEOF
16751 #define HAVE_OFF64_T 1
16752 _ACEOF
16756 echo "$as_me:$LINENO: checking for 64 bit ino_t" >&5
16757 echo $ECHO_N "checking for 64 bit ino_t... $ECHO_C" >&6
16758 if test "${samba_cv_SIZEOF_INO_T+set}" = set; then
16759 echo $ECHO_N "(cached) $ECHO_C" >&6
16760 else
16762 if test "$cross_compiling" = yes; then
16763 samba_cv_SIZEOF_INO_T=cross
16764 else
16765 cat >conftest.$ac_ext <<_ACEOF
16766 #line $LINENO "configure"
16767 #include "confdefs.h"
16768 #include <stdio.h>
16769 #include <sys/stat.h>
16770 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
16771 _ACEOF
16772 rm -f conftest$ac_exeext
16773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16774 (eval $ac_link) 2>&5
16775 ac_status=$?
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
16783 samba_cv_SIZEOF_INO_T=yes
16784 else
16785 echo "$as_me: program exited with status $ac_status" >&5
16786 echo "$as_me: failed program was:" >&5
16787 cat conftest.$ac_ext >&5
16788 ( exit $ac_status )
16789 samba_cv_SIZEOF_INO_T=no
16791 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16794 echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_INO_T" >&5
16795 echo "${ECHO_T}$samba_cv_SIZEOF_INO_T" >&6
16796 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
16798 cat >>confdefs.h <<\_ACEOF
16799 #define SIZEOF_INO_T 8
16800 _ACEOF
16804 echo "$as_me:$LINENO: checking for ino64_t" >&5
16805 echo $ECHO_N "checking for ino64_t... $ECHO_C" >&6
16806 if test "${samba_cv_HAVE_INO64_T+set}" = set; then
16807 echo $ECHO_N "(cached) $ECHO_C" >&6
16808 else
16810 if test "$cross_compiling" = yes; then
16811 samba_cv_HAVE_INO64_T=cross
16812 else
16813 cat >conftest.$ac_ext <<_ACEOF
16814 #line $LINENO "configure"
16815 #include "confdefs.h"
16817 #if defined(HAVE_UNISTD_H)
16818 #include <unistd.h>
16819 #endif
16820 #include <stdio.h>
16821 #include <sys/stat.h>
16822 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
16823 _ACEOF
16824 rm -f conftest$ac_exeext
16825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16826 (eval $ac_link) 2>&5
16827 ac_status=$?
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831 (eval $ac_try) 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; }; then
16835 samba_cv_HAVE_INO64_T=yes
16836 else
16837 echo "$as_me: program exited with status $ac_status" >&5
16838 echo "$as_me: failed program was:" >&5
16839 cat conftest.$ac_ext >&5
16840 ( exit $ac_status )
16841 samba_cv_HAVE_INO64_T=no
16843 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16846 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INO64_T" >&5
16847 echo "${ECHO_T}$samba_cv_HAVE_INO64_T" >&6
16848 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
16850 cat >>confdefs.h <<\_ACEOF
16851 #define HAVE_INO64_T 1
16852 _ACEOF
16856 echo "$as_me:$LINENO: checking for dev64_t" >&5
16857 echo $ECHO_N "checking for dev64_t... $ECHO_C" >&6
16858 if test "${samba_cv_HAVE_DEV64_T+set}" = set; then
16859 echo $ECHO_N "(cached) $ECHO_C" >&6
16860 else
16862 if test "$cross_compiling" = yes; then
16863 samba_cv_HAVE_DEV64_T=cross
16864 else
16865 cat >conftest.$ac_ext <<_ACEOF
16866 #line $LINENO "configure"
16867 #include "confdefs.h"
16869 #if defined(HAVE_UNISTD_H)
16870 #include <unistd.h>
16871 #endif
16872 #include <stdio.h>
16873 #include <sys/stat.h>
16874 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
16875 _ACEOF
16876 rm -f conftest$ac_exeext
16877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16878 (eval $ac_link) 2>&5
16879 ac_status=$?
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883 (eval $ac_try) 2>&5
16884 ac_status=$?
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; }; then
16887 samba_cv_HAVE_DEV64_T=yes
16888 else
16889 echo "$as_me: program exited with status $ac_status" >&5
16890 echo "$as_me: failed program was:" >&5
16891 cat conftest.$ac_ext >&5
16892 ( exit $ac_status )
16893 samba_cv_HAVE_DEV64_T=no
16895 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16898 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEV64_T" >&5
16899 echo "${ECHO_T}$samba_cv_HAVE_DEV64_T" >&6
16900 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
16902 cat >>confdefs.h <<\_ACEOF
16903 #define HAVE_DEV64_T 1
16904 _ACEOF
16908 echo "$as_me:$LINENO: checking for struct dirent64" >&5
16909 echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6
16910 if test "${samba_cv_HAVE_STRUCT_DIRENT64+set}" = set; then
16911 echo $ECHO_N "(cached) $ECHO_C" >&6
16912 else
16914 cat >conftest.$ac_ext <<_ACEOF
16915 #line $LINENO "configure"
16916 #include "confdefs.h"
16918 #if defined(HAVE_UNISTD_H)
16919 #include <unistd.h>
16920 #endif
16921 #include <sys/types.h>
16922 #include <dirent.h>
16923 #ifdef F77_DUMMY_MAIN
16924 # ifdef __cplusplus
16925 extern "C"
16926 # endif
16927 int F77_DUMMY_MAIN() { return 1; }
16928 #endif
16930 main ()
16932 struct dirent64 de;
16934 return 0;
16936 _ACEOF
16937 rm -f conftest.$ac_objext
16938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16939 (eval $ac_compile) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); } &&
16943 { ac_try='test -s conftest.$ac_objext'
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16946 ac_status=$?
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; }; then
16949 samba_cv_HAVE_STRUCT_DIRENT64=yes
16950 else
16951 echo "$as_me: failed program was:" >&5
16952 cat conftest.$ac_ext >&5
16953 samba_cv_HAVE_STRUCT_DIRENT64=no
16955 rm -f conftest.$ac_objext conftest.$ac_ext
16957 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_DIRENT64" >&5
16958 echo "${ECHO_T}$samba_cv_HAVE_STRUCT_DIRENT64" >&6
16959 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
16961 cat >>confdefs.h <<\_ACEOF
16962 #define HAVE_STRUCT_DIRENT64 1
16963 _ACEOF
16967 echo "$as_me:$LINENO: checking for major macro" >&5
16968 echo $ECHO_N "checking for major macro... $ECHO_C" >&6
16969 if test "${samba_cv_HAVE_DEVICE_MAJOR_FN+set}" = set; then
16970 echo $ECHO_N "(cached) $ECHO_C" >&6
16971 else
16973 if test "$cross_compiling" = yes; then
16974 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
16975 else
16976 cat >conftest.$ac_ext <<_ACEOF
16977 #line $LINENO "configure"
16978 #include "confdefs.h"
16980 #if defined(HAVE_UNISTD_H)
16981 #include <unistd.h>
16982 #endif
16983 #include <sys/types.h>
16984 main() { dev_t dev; int i = major(dev); return 0; }
16985 _ACEOF
16986 rm -f conftest$ac_exeext
16987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16988 (eval $ac_link) 2>&5
16989 ac_status=$?
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16993 (eval $ac_try) 2>&5
16994 ac_status=$?
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); }; }; then
16997 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
16998 else
16999 echo "$as_me: program exited with status $ac_status" >&5
17000 echo "$as_me: failed program was:" >&5
17001 cat conftest.$ac_ext >&5
17002 ( exit $ac_status )
17003 samba_cv_HAVE_DEVICE_MAJOR_FN=no
17005 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17008 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MAJOR_FN" >&5
17009 echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MAJOR_FN" >&6
17010 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
17012 cat >>confdefs.h <<\_ACEOF
17013 #define HAVE_DEVICE_MAJOR_FN 1
17014 _ACEOF
17018 echo "$as_me:$LINENO: checking for minor macro" >&5
17019 echo $ECHO_N "checking for minor macro... $ECHO_C" >&6
17020 if test "${samba_cv_HAVE_DEVICE_MINOR_FN+set}" = set; then
17021 echo $ECHO_N "(cached) $ECHO_C" >&6
17022 else
17024 if test "$cross_compiling" = yes; then
17025 samba_cv_HAVE_DEVICE_MINOR_FN=cross
17026 else
17027 cat >conftest.$ac_ext <<_ACEOF
17028 #line $LINENO "configure"
17029 #include "confdefs.h"
17031 #if defined(HAVE_UNISTD_H)
17032 #include <unistd.h>
17033 #endif
17034 #include <sys/types.h>
17035 main() { dev_t dev; int i = minor(dev); return 0; }
17036 _ACEOF
17037 rm -f conftest$ac_exeext
17038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17039 (eval $ac_link) 2>&5
17040 ac_status=$?
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17044 (eval $ac_try) 2>&5
17045 ac_status=$?
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); }; }; then
17048 samba_cv_HAVE_DEVICE_MINOR_FN=yes
17049 else
17050 echo "$as_me: program exited with status $ac_status" >&5
17051 echo "$as_me: failed program was:" >&5
17052 cat conftest.$ac_ext >&5
17053 ( exit $ac_status )
17054 samba_cv_HAVE_DEVICE_MINOR_FN=no
17056 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17059 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MINOR_FN" >&5
17060 echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MINOR_FN" >&6
17061 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
17063 cat >>confdefs.h <<\_ACEOF
17064 #define HAVE_DEVICE_MINOR_FN 1
17065 _ACEOF
17069 echo "$as_me:$LINENO: checking for unsigned char" >&5
17070 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
17071 if test "${samba_cv_HAVE_UNSIGNED_CHAR+set}" = set; then
17072 echo $ECHO_N "(cached) $ECHO_C" >&6
17073 else
17075 if test "$cross_compiling" = yes; then
17076 samba_cv_HAVE_UNSIGNED_CHAR=cross
17077 else
17078 cat >conftest.$ac_ext <<_ACEOF
17079 #line $LINENO "configure"
17080 #include "confdefs.h"
17081 #include <stdio.h>
17082 main() { char c; c=250; exit((c > 0)?0:1); }
17083 _ACEOF
17084 rm -f conftest$ac_exeext
17085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17086 (eval $ac_link) 2>&5
17087 ac_status=$?
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17091 (eval $ac_try) 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; }; then
17095 samba_cv_HAVE_UNSIGNED_CHAR=yes
17096 else
17097 echo "$as_me: program exited with status $ac_status" >&5
17098 echo "$as_me: failed program was:" >&5
17099 cat conftest.$ac_ext >&5
17100 ( exit $ac_status )
17101 samba_cv_HAVE_UNSIGNED_CHAR=no
17103 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17106 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UNSIGNED_CHAR" >&5
17107 echo "${ECHO_T}$samba_cv_HAVE_UNSIGNED_CHAR" >&6
17108 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
17110 cat >>confdefs.h <<\_ACEOF
17111 #define HAVE_UNSIGNED_CHAR 1
17112 _ACEOF
17116 echo "$as_me:$LINENO: checking for sin_len in sock" >&5
17117 echo $ECHO_N "checking for sin_len in sock... $ECHO_C" >&6
17118 if test "${samba_cv_HAVE_SOCK_SIN_LEN+set}" = set; then
17119 echo $ECHO_N "(cached) $ECHO_C" >&6
17120 else
17122 cat >conftest.$ac_ext <<_ACEOF
17123 #line $LINENO "configure"
17124 #include "confdefs.h"
17125 #include <sys/types.h>
17126 #include <sys/socket.h>
17127 #include <netinet/in.h>
17128 #ifdef F77_DUMMY_MAIN
17129 # ifdef __cplusplus
17130 extern "C"
17131 # endif
17132 int F77_DUMMY_MAIN() { return 1; }
17133 #endif
17135 main ()
17137 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
17139 return 0;
17141 _ACEOF
17142 rm -f conftest.$ac_objext
17143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17144 (eval $ac_compile) 2>&5
17145 ac_status=$?
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); } &&
17148 { ac_try='test -s conftest.$ac_objext'
17149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150 (eval $ac_try) 2>&5
17151 ac_status=$?
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; }; then
17154 samba_cv_HAVE_SOCK_SIN_LEN=yes
17155 else
17156 echo "$as_me: failed program was:" >&5
17157 cat conftest.$ac_ext >&5
17158 samba_cv_HAVE_SOCK_SIN_LEN=no
17160 rm -f conftest.$ac_objext conftest.$ac_ext
17162 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SOCK_SIN_LEN" >&5
17163 echo "${ECHO_T}$samba_cv_HAVE_SOCK_SIN_LEN" >&6
17164 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
17166 cat >>confdefs.h <<\_ACEOF
17167 #define HAVE_SOCK_SIN_LEN 1
17168 _ACEOF
17172 echo "$as_me:$LINENO: checking whether seekdir returns void" >&5
17173 echo $ECHO_N "checking whether seekdir returns void... $ECHO_C" >&6
17174 if test "${samba_cv_SEEKDIR_RETURNS_VOID+set}" = set; then
17175 echo $ECHO_N "(cached) $ECHO_C" >&6
17176 else
17178 cat >conftest.$ac_ext <<_ACEOF
17179 #line $LINENO "configure"
17180 #include "confdefs.h"
17181 #include <sys/types.h>
17182 #include <dirent.h>
17183 void seekdir(DIR *d, long loc) { return; }
17184 #ifdef F77_DUMMY_MAIN
17185 # ifdef __cplusplus
17186 extern "C"
17187 # endif
17188 int F77_DUMMY_MAIN() { return 1; }
17189 #endif
17191 main ()
17193 return 0;
17195 return 0;
17197 _ACEOF
17198 rm -f conftest.$ac_objext
17199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17200 (eval $ac_compile) 2>&5
17201 ac_status=$?
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); } &&
17204 { ac_try='test -s conftest.$ac_objext'
17205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17206 (eval $ac_try) 2>&5
17207 ac_status=$?
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; }; then
17210 samba_cv_SEEKDIR_RETURNS_VOID=yes
17211 else
17212 echo "$as_me: failed program was:" >&5
17213 cat conftest.$ac_ext >&5
17214 samba_cv_SEEKDIR_RETURNS_VOID=no
17216 rm -f conftest.$ac_objext conftest.$ac_ext
17218 echo "$as_me:$LINENO: result: $samba_cv_SEEKDIR_RETURNS_VOID" >&5
17219 echo "${ECHO_T}$samba_cv_SEEKDIR_RETURNS_VOID" >&6
17220 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
17222 cat >>confdefs.h <<\_ACEOF
17223 #define SEEKDIR_RETURNS_VOID 1
17224 _ACEOF
17228 echo "$as_me:$LINENO: checking for __FUNCTION__ macro" >&5
17229 echo $ECHO_N "checking for __FUNCTION__ macro... $ECHO_C" >&6
17230 if test "${samba_cv_HAVE_FUNCTION_MACRO+set}" = set; then
17231 echo $ECHO_N "(cached) $ECHO_C" >&6
17232 else
17234 cat >conftest.$ac_ext <<_ACEOF
17235 #line $LINENO "configure"
17236 #include "confdefs.h"
17237 #include <stdio.h>
17238 #ifdef F77_DUMMY_MAIN
17239 # ifdef __cplusplus
17240 extern "C"
17241 # endif
17242 int F77_DUMMY_MAIN() { return 1; }
17243 #endif
17245 main ()
17247 printf("%s\n", __FUNCTION__);
17249 return 0;
17251 _ACEOF
17252 rm -f conftest.$ac_objext
17253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17254 (eval $ac_compile) 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } &&
17258 { ac_try='test -s conftest.$ac_objext'
17259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17261 ac_status=$?
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; }; then
17264 samba_cv_HAVE_FUNCTION_MACRO=yes
17265 else
17266 echo "$as_me: failed program was:" >&5
17267 cat conftest.$ac_ext >&5
17268 samba_cv_HAVE_FUNCTION_MACRO=no
17270 rm -f conftest.$ac_objext conftest.$ac_ext
17272 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FUNCTION_MACRO" >&5
17273 echo "${ECHO_T}$samba_cv_HAVE_FUNCTION_MACRO" >&6
17274 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
17276 cat >>confdefs.h <<\_ACEOF
17277 #define HAVE_FUNCTION_MACRO 1
17278 _ACEOF
17282 echo "$as_me:$LINENO: checking if gettimeofday takes tz argument" >&5
17283 echo $ECHO_N "checking if gettimeofday takes tz argument... $ECHO_C" >&6
17284 if test "${samba_cv_HAVE_GETTIMEOFDAY_TZ+set}" = set; then
17285 echo $ECHO_N "(cached) $ECHO_C" >&6
17286 else
17288 if test "$cross_compiling" = yes; then
17289 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
17290 else
17291 cat >conftest.$ac_ext <<_ACEOF
17292 #line $LINENO "configure"
17293 #include "confdefs.h"
17295 #include <sys/time.h>
17296 #include <unistd.h>
17297 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
17298 _ACEOF
17299 rm -f conftest$ac_exeext
17300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17301 (eval $ac_link) 2>&5
17302 ac_status=$?
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306 (eval $ac_try) 2>&5
17307 ac_status=$?
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; }; then
17310 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
17311 else
17312 echo "$as_me: program exited with status $ac_status" >&5
17313 echo "$as_me: failed program was:" >&5
17314 cat conftest.$ac_ext >&5
17315 ( exit $ac_status )
17316 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
17318 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17321 echo "$as_me:$LINENO: result: $samba_cv_HAVE_GETTIMEOFDAY_TZ" >&5
17322 echo "${ECHO_T}$samba_cv_HAVE_GETTIMEOFDAY_TZ" >&6
17323 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
17325 cat >>confdefs.h <<\_ACEOF
17326 #define HAVE_GETTIMEOFDAY_TZ 1
17327 _ACEOF
17331 echo "$as_me:$LINENO: checking for __va_copy" >&5
17332 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
17333 if test "${samba_cv_HAVE_VA_COPY+set}" = set; then
17334 echo $ECHO_N "(cached) $ECHO_C" >&6
17335 else
17337 cat >conftest.$ac_ext <<_ACEOF
17338 #line $LINENO "configure"
17339 #include "confdefs.h"
17340 #include <stdarg.h>
17341 va_list ap1,ap2;
17342 #ifdef F77_DUMMY_MAIN
17343 # ifdef __cplusplus
17344 extern "C"
17345 # endif
17346 int F77_DUMMY_MAIN() { return 1; }
17347 #endif
17349 main ()
17351 __va_copy(ap1,ap2);
17353 return 0;
17355 _ACEOF
17356 rm -f conftest.$ac_objext conftest$ac_exeext
17357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17358 (eval $ac_link) 2>&5
17359 ac_status=$?
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); } &&
17362 { ac_try='test -s conftest$ac_exeext'
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17365 ac_status=$?
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; }; then
17368 samba_cv_HAVE_VA_COPY=yes
17369 else
17370 echo "$as_me: failed program was:" >&5
17371 cat conftest.$ac_ext >&5
17372 samba_cv_HAVE_VA_COPY=no
17374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17376 echo "$as_me:$LINENO: result: $samba_cv_HAVE_VA_COPY" >&5
17377 echo "${ECHO_T}$samba_cv_HAVE_VA_COPY" >&6
17378 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
17380 cat >>confdefs.h <<\_ACEOF
17381 #define HAVE_VA_COPY 1
17382 _ACEOF
17386 echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
17387 echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6
17388 if test "${samba_cv_HAVE_C99_VSNPRINTF+set}" = set; then
17389 echo $ECHO_N "(cached) $ECHO_C" >&6
17390 else
17392 if test "$cross_compiling" = yes; then
17393 samba_cv_HAVE_C99_VSNPRINTF=cross
17394 else
17395 cat >conftest.$ac_ext <<_ACEOF
17396 #line $LINENO "configure"
17397 #include "confdefs.h"
17399 #include <sys/types.h>
17400 #include <stdarg.h>
17401 void foo(const char *format, ...) {
17402 va_list ap;
17403 int len;
17404 char buf[5];
17406 va_start(ap, format);
17407 len = vsnprintf(buf, 0, format, ap);
17408 va_end(ap);
17409 if (len != 5) exit(1);
17411 va_start(ap, format);
17412 len = vsnprintf(0, 0, format, ap);
17413 va_end(ap);
17414 if (len != 5) exit(1);
17416 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
17418 exit(0);
17420 main() { foo("hello"); }
17422 _ACEOF
17423 rm -f conftest$ac_exeext
17424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17425 (eval $ac_link) 2>&5
17426 ac_status=$?
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17430 (eval $ac_try) 2>&5
17431 ac_status=$?
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }; }; then
17434 samba_cv_HAVE_C99_VSNPRINTF=yes
17435 else
17436 echo "$as_me: program exited with status $ac_status" >&5
17437 echo "$as_me: failed program was:" >&5
17438 cat conftest.$ac_ext >&5
17439 ( exit $ac_status )
17440 samba_cv_HAVE_C99_VSNPRINTF=no
17442 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17445 echo "$as_me:$LINENO: result: $samba_cv_HAVE_C99_VSNPRINTF" >&5
17446 echo "${ECHO_T}$samba_cv_HAVE_C99_VSNPRINTF" >&6
17447 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
17449 cat >>confdefs.h <<\_ACEOF
17450 #define HAVE_C99_VSNPRINTF 1
17451 _ACEOF
17455 echo "$as_me:$LINENO: checking for broken readdir" >&5
17456 echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6
17457 if test "${samba_cv_HAVE_BROKEN_READDIR+set}" = set; then
17458 echo $ECHO_N "(cached) $ECHO_C" >&6
17459 else
17461 if test "$cross_compiling" = yes; then
17462 samba_cv_HAVE_BROKEN_READDIR=cross
17463 else
17464 cat >conftest.$ac_ext <<_ACEOF
17465 #line $LINENO "configure"
17466 #include "confdefs.h"
17467 #include <sys/types.h>
17468 #include <dirent.h>
17469 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
17470 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
17471 di->d_name[0] == 0) exit(0); exit(1);}
17472 _ACEOF
17473 rm -f conftest$ac_exeext
17474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17475 (eval $ac_link) 2>&5
17476 ac_status=$?
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480 (eval $ac_try) 2>&5
17481 ac_status=$?
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; }; then
17484 samba_cv_HAVE_BROKEN_READDIR=yes
17485 else
17486 echo "$as_me: program exited with status $ac_status" >&5
17487 echo "$as_me: failed program was:" >&5
17488 cat conftest.$ac_ext >&5
17489 ( exit $ac_status )
17490 samba_cv_HAVE_BROKEN_READDIR=no
17492 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17495 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_READDIR" >&5
17496 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_READDIR" >&6
17497 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
17499 cat >>confdefs.h <<\_ACEOF
17500 #define HAVE_BROKEN_READDIR 1
17501 _ACEOF
17505 echo "$as_me:$LINENO: checking for utimbuf" >&5
17506 echo $ECHO_N "checking for utimbuf... $ECHO_C" >&6
17507 if test "${samba_cv_HAVE_UTIMBUF+set}" = set; then
17508 echo $ECHO_N "(cached) $ECHO_C" >&6
17509 else
17511 cat >conftest.$ac_ext <<_ACEOF
17512 #line $LINENO "configure"
17513 #include "confdefs.h"
17514 #include <sys/types.h>
17515 #include <utime.h>
17516 #ifdef F77_DUMMY_MAIN
17517 # ifdef __cplusplus
17518 extern "C"
17519 # endif
17520 int F77_DUMMY_MAIN() { return 1; }
17521 #endif
17523 main ()
17525 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
17527 return 0;
17529 _ACEOF
17530 rm -f conftest.$ac_objext
17531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17532 (eval $ac_compile) 2>&5
17533 ac_status=$?
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } &&
17536 { ac_try='test -s conftest.$ac_objext'
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17539 ac_status=$?
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; }; then
17542 samba_cv_HAVE_UTIMBUF=yes
17543 else
17544 echo "$as_me: failed program was:" >&5
17545 cat conftest.$ac_ext >&5
17546 samba_cv_HAVE_UTIMBUF=no
17548 rm -f conftest.$ac_objext conftest.$ac_ext
17550 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UTIMBUF" >&5
17551 echo "${ECHO_T}$samba_cv_HAVE_UTIMBUF" >&6
17552 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
17554 cat >>confdefs.h <<\_ACEOF
17555 #define HAVE_UTIMBUF 1
17556 _ACEOF
17566 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
17568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17569 echo "$as_me:$LINENO: checking for $ac_func" >&5
17570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17571 if eval "test \"\${$as_ac_var+set}\" = set"; then
17572 echo $ECHO_N "(cached) $ECHO_C" >&6
17573 else
17574 cat >conftest.$ac_ext <<_ACEOF
17575 #line $LINENO "configure"
17576 #include "confdefs.h"
17577 /* System header to define __stub macros and hopefully few prototypes,
17578 which can conflict with char $ac_func (); below. */
17579 #include <assert.h>
17580 /* Override any gcc2 internal prototype to avoid an error. */
17581 #ifdef __cplusplus
17582 extern "C"
17583 #endif
17584 /* We use char because int might match the return type of a gcc2
17585 builtin and then its argument prototype would still apply. */
17586 char $ac_func ();
17587 char (*f) ();
17589 #ifdef F77_DUMMY_MAIN
17590 # ifdef __cplusplus
17591 extern "C"
17592 # endif
17593 int F77_DUMMY_MAIN() { return 1; }
17594 #endif
17596 main ()
17598 /* The GNU C library defines this for functions which it implements
17599 to always fail with ENOSYS. Some functions are actually named
17600 something starting with __ and the normal name is an alias. */
17601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17602 choke me
17603 #else
17604 f = $ac_func;
17605 #endif
17608 return 0;
17610 _ACEOF
17611 rm -f conftest.$ac_objext conftest$ac_exeext
17612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17613 (eval $ac_link) 2>&5
17614 ac_status=$?
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); } &&
17617 { ac_try='test -s conftest$ac_exeext'
17618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619 (eval $ac_try) 2>&5
17620 ac_status=$?
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; }; then
17623 eval "$as_ac_var=yes"
17624 else
17625 echo "$as_me: failed program was:" >&5
17626 cat conftest.$ac_ext >&5
17627 eval "$as_ac_var=no"
17629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17633 if test `eval echo '${'$as_ac_var'}'` = yes; then
17634 cat >>confdefs.h <<_ACEOF
17635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17636 _ACEOF
17639 done
17642 echo "$as_me:$LINENO: checking for ut_name in utmp" >&5
17643 echo $ECHO_N "checking for ut_name in utmp... $ECHO_C" >&6
17644 if test "${samba_cv_HAVE_UT_UT_NAME+set}" = set; then
17645 echo $ECHO_N "(cached) $ECHO_C" >&6
17646 else
17648 cat >conftest.$ac_ext <<_ACEOF
17649 #line $LINENO "configure"
17650 #include "confdefs.h"
17651 #include <sys/types.h>
17652 #include <utmp.h>
17653 #ifdef F77_DUMMY_MAIN
17654 # ifdef __cplusplus
17655 extern "C"
17656 # endif
17657 int F77_DUMMY_MAIN() { return 1; }
17658 #endif
17660 main ()
17662 struct utmp ut; ut.ut_name[0] = 'a';
17664 return 0;
17666 _ACEOF
17667 rm -f conftest.$ac_objext
17668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17669 (eval $ac_compile) 2>&5
17670 ac_status=$?
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); } &&
17673 { ac_try='test -s conftest.$ac_objext'
17674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675 (eval $ac_try) 2>&5
17676 ac_status=$?
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
17679 samba_cv_HAVE_UT_UT_NAME=yes
17680 else
17681 echo "$as_me: failed program was:" >&5
17682 cat conftest.$ac_ext >&5
17683 samba_cv_HAVE_UT_UT_NAME=no
17685 rm -f conftest.$ac_objext conftest.$ac_ext
17687 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_NAME" >&5
17688 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_NAME" >&6
17689 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
17691 cat >>confdefs.h <<\_ACEOF
17692 #define HAVE_UT_UT_NAME 1
17693 _ACEOF
17697 echo "$as_me:$LINENO: checking for ut_user in utmp" >&5
17698 echo $ECHO_N "checking for ut_user in utmp... $ECHO_C" >&6
17699 if test "${samba_cv_HAVE_UT_UT_USER+set}" = set; then
17700 echo $ECHO_N "(cached) $ECHO_C" >&6
17701 else
17703 cat >conftest.$ac_ext <<_ACEOF
17704 #line $LINENO "configure"
17705 #include "confdefs.h"
17706 #include <sys/types.h>
17707 #include <utmp.h>
17708 #ifdef F77_DUMMY_MAIN
17709 # ifdef __cplusplus
17710 extern "C"
17711 # endif
17712 int F77_DUMMY_MAIN() { return 1; }
17713 #endif
17715 main ()
17717 struct utmp ut; ut.ut_user[0] = 'a';
17719 return 0;
17721 _ACEOF
17722 rm -f conftest.$ac_objext
17723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17724 (eval $ac_compile) 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } &&
17728 { ac_try='test -s conftest.$ac_objext'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17731 ac_status=$?
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; }; then
17734 samba_cv_HAVE_UT_UT_USER=yes
17735 else
17736 echo "$as_me: failed program was:" >&5
17737 cat conftest.$ac_ext >&5
17738 samba_cv_HAVE_UT_UT_USER=no
17740 rm -f conftest.$ac_objext conftest.$ac_ext
17742 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_USER" >&5
17743 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_USER" >&6
17744 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
17746 cat >>confdefs.h <<\_ACEOF
17747 #define HAVE_UT_UT_USER 1
17748 _ACEOF
17752 echo "$as_me:$LINENO: checking for ut_id in utmp" >&5
17753 echo $ECHO_N "checking for ut_id in utmp... $ECHO_C" >&6
17754 if test "${samba_cv_HAVE_UT_UT_ID+set}" = set; then
17755 echo $ECHO_N "(cached) $ECHO_C" >&6
17756 else
17758 cat >conftest.$ac_ext <<_ACEOF
17759 #line $LINENO "configure"
17760 #include "confdefs.h"
17761 #include <sys/types.h>
17762 #include <utmp.h>
17763 #ifdef F77_DUMMY_MAIN
17764 # ifdef __cplusplus
17765 extern "C"
17766 # endif
17767 int F77_DUMMY_MAIN() { return 1; }
17768 #endif
17770 main ()
17772 struct utmp ut; ut.ut_id[0] = 'a';
17774 return 0;
17776 _ACEOF
17777 rm -f conftest.$ac_objext
17778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17779 (eval $ac_compile) 2>&5
17780 ac_status=$?
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } &&
17783 { ac_try='test -s conftest.$ac_objext'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17786 ac_status=$?
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17789 samba_cv_HAVE_UT_UT_ID=yes
17790 else
17791 echo "$as_me: failed program was:" >&5
17792 cat conftest.$ac_ext >&5
17793 samba_cv_HAVE_UT_UT_ID=no
17795 rm -f conftest.$ac_objext conftest.$ac_ext
17797 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ID" >&5
17798 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ID" >&6
17799 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
17801 cat >>confdefs.h <<\_ACEOF
17802 #define HAVE_UT_UT_ID 1
17803 _ACEOF
17807 echo "$as_me:$LINENO: checking for ut_host in utmp" >&5
17808 echo $ECHO_N "checking for ut_host in utmp... $ECHO_C" >&6
17809 if test "${samba_cv_HAVE_UT_UT_HOST+set}" = set; then
17810 echo $ECHO_N "(cached) $ECHO_C" >&6
17811 else
17813 cat >conftest.$ac_ext <<_ACEOF
17814 #line $LINENO "configure"
17815 #include "confdefs.h"
17816 #include <sys/types.h>
17817 #include <utmp.h>
17818 #ifdef F77_DUMMY_MAIN
17819 # ifdef __cplusplus
17820 extern "C"
17821 # endif
17822 int F77_DUMMY_MAIN() { return 1; }
17823 #endif
17825 main ()
17827 struct utmp ut; ut.ut_host[0] = 'a';
17829 return 0;
17831 _ACEOF
17832 rm -f conftest.$ac_objext
17833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17834 (eval $ac_compile) 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); } &&
17838 { ac_try='test -s conftest.$ac_objext'
17839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17841 ac_status=$?
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; }; then
17844 samba_cv_HAVE_UT_UT_HOST=yes
17845 else
17846 echo "$as_me: failed program was:" >&5
17847 cat conftest.$ac_ext >&5
17848 samba_cv_HAVE_UT_UT_HOST=no
17850 rm -f conftest.$ac_objext conftest.$ac_ext
17852 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_HOST" >&5
17853 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_HOST" >&6
17854 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
17856 cat >>confdefs.h <<\_ACEOF
17857 #define HAVE_UT_UT_HOST 1
17858 _ACEOF
17862 echo "$as_me:$LINENO: checking for ut_time in utmp" >&5
17863 echo $ECHO_N "checking for ut_time in utmp... $ECHO_C" >&6
17864 if test "${samba_cv_HAVE_UT_UT_TIME+set}" = set; then
17865 echo $ECHO_N "(cached) $ECHO_C" >&6
17866 else
17868 cat >conftest.$ac_ext <<_ACEOF
17869 #line $LINENO "configure"
17870 #include "confdefs.h"
17871 #include <sys/types.h>
17872 #include <utmp.h>
17873 #ifdef F77_DUMMY_MAIN
17874 # ifdef __cplusplus
17875 extern "C"
17876 # endif
17877 int F77_DUMMY_MAIN() { return 1; }
17878 #endif
17880 main ()
17882 struct utmp ut; time_t t; ut.ut_time = t;
17884 return 0;
17886 _ACEOF
17887 rm -f conftest.$ac_objext
17888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17889 (eval $ac_compile) 2>&5
17890 ac_status=$?
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } &&
17893 { ac_try='test -s conftest.$ac_objext'
17894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895 (eval $ac_try) 2>&5
17896 ac_status=$?
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; }; then
17899 samba_cv_HAVE_UT_UT_TIME=yes
17900 else
17901 echo "$as_me: failed program was:" >&5
17902 cat conftest.$ac_ext >&5
17903 samba_cv_HAVE_UT_UT_TIME=no
17905 rm -f conftest.$ac_objext conftest.$ac_ext
17907 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TIME" >&5
17908 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TIME" >&6
17909 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
17911 cat >>confdefs.h <<\_ACEOF
17912 #define HAVE_UT_UT_TIME 1
17913 _ACEOF
17917 echo "$as_me:$LINENO: checking for ut_tv in utmp" >&5
17918 echo $ECHO_N "checking for ut_tv in utmp... $ECHO_C" >&6
17919 if test "${samba_cv_HAVE_UT_UT_TV+set}" = set; then
17920 echo $ECHO_N "(cached) $ECHO_C" >&6
17921 else
17923 cat >conftest.$ac_ext <<_ACEOF
17924 #line $LINENO "configure"
17925 #include "confdefs.h"
17926 #include <sys/types.h>
17927 #include <utmp.h>
17928 #ifdef F77_DUMMY_MAIN
17929 # ifdef __cplusplus
17930 extern "C"
17931 # endif
17932 int F77_DUMMY_MAIN() { return 1; }
17933 #endif
17935 main ()
17937 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
17939 return 0;
17941 _ACEOF
17942 rm -f conftest.$ac_objext
17943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17944 (eval $ac_compile) 2>&5
17945 ac_status=$?
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); } &&
17948 { ac_try='test -s conftest.$ac_objext'
17949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950 (eval $ac_try) 2>&5
17951 ac_status=$?
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; }; then
17954 samba_cv_HAVE_UT_UT_TV=yes
17955 else
17956 echo "$as_me: failed program was:" >&5
17957 cat conftest.$ac_ext >&5
17958 samba_cv_HAVE_UT_UT_TV=no
17960 rm -f conftest.$ac_objext conftest.$ac_ext
17962 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TV" >&5
17963 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TV" >&6
17964 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
17966 cat >>confdefs.h <<\_ACEOF
17967 #define HAVE_UT_UT_TV 1
17968 _ACEOF
17972 echo "$as_me:$LINENO: checking for ut_type in utmp" >&5
17973 echo $ECHO_N "checking for ut_type in utmp... $ECHO_C" >&6
17974 if test "${samba_cv_HAVE_UT_UT_TYPE+set}" = set; then
17975 echo $ECHO_N "(cached) $ECHO_C" >&6
17976 else
17978 cat >conftest.$ac_ext <<_ACEOF
17979 #line $LINENO "configure"
17980 #include "confdefs.h"
17981 #include <sys/types.h>
17982 #include <utmp.h>
17983 #ifdef F77_DUMMY_MAIN
17984 # ifdef __cplusplus
17985 extern "C"
17986 # endif
17987 int F77_DUMMY_MAIN() { return 1; }
17988 #endif
17990 main ()
17992 struct utmp ut; ut.ut_type = 0;
17994 return 0;
17996 _ACEOF
17997 rm -f conftest.$ac_objext
17998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17999 (eval $ac_compile) 2>&5
18000 ac_status=$?
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } &&
18003 { ac_try='test -s conftest.$ac_objext'
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18006 ac_status=$?
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; }; then
18009 samba_cv_HAVE_UT_UT_TYPE=yes
18010 else
18011 echo "$as_me: failed program was:" >&5
18012 cat conftest.$ac_ext >&5
18013 samba_cv_HAVE_UT_UT_TYPE=no
18015 rm -f conftest.$ac_objext conftest.$ac_ext
18017 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TYPE" >&5
18018 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TYPE" >&6
18019 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
18021 cat >>confdefs.h <<\_ACEOF
18022 #define HAVE_UT_UT_TYPE 1
18023 _ACEOF
18027 echo "$as_me:$LINENO: checking for ut_pid in utmp" >&5
18028 echo $ECHO_N "checking for ut_pid in utmp... $ECHO_C" >&6
18029 if test "${samba_cv_HAVE_UT_UT_PID+set}" = set; then
18030 echo $ECHO_N "(cached) $ECHO_C" >&6
18031 else
18033 cat >conftest.$ac_ext <<_ACEOF
18034 #line $LINENO "configure"
18035 #include "confdefs.h"
18036 #include <sys/types.h>
18037 #include <utmp.h>
18038 #ifdef F77_DUMMY_MAIN
18039 # ifdef __cplusplus
18040 extern "C"
18041 # endif
18042 int F77_DUMMY_MAIN() { return 1; }
18043 #endif
18045 main ()
18047 struct utmp ut; ut.ut_pid = 0;
18049 return 0;
18051 _ACEOF
18052 rm -f conftest.$ac_objext
18053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18054 (eval $ac_compile) 2>&5
18055 ac_status=$?
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); } &&
18058 { ac_try='test -s conftest.$ac_objext'
18059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060 (eval $ac_try) 2>&5
18061 ac_status=$?
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; }; then
18064 samba_cv_HAVE_UT_UT_PID=yes
18065 else
18066 echo "$as_me: failed program was:" >&5
18067 cat conftest.$ac_ext >&5
18068 samba_cv_HAVE_UT_UT_PID=no
18070 rm -f conftest.$ac_objext conftest.$ac_ext
18072 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_PID" >&5
18073 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_PID" >&6
18074 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
18076 cat >>confdefs.h <<\_ACEOF
18077 #define HAVE_UT_UT_PID 1
18078 _ACEOF
18082 echo "$as_me:$LINENO: checking for ut_exit in utmp" >&5
18083 echo $ECHO_N "checking for ut_exit in utmp... $ECHO_C" >&6
18084 if test "${samba_cv_HAVE_UT_UT_EXIT+set}" = set; then
18085 echo $ECHO_N "(cached) $ECHO_C" >&6
18086 else
18088 cat >conftest.$ac_ext <<_ACEOF
18089 #line $LINENO "configure"
18090 #include "confdefs.h"
18091 #include <sys/types.h>
18092 #include <utmp.h>
18093 #ifdef F77_DUMMY_MAIN
18094 # ifdef __cplusplus
18095 extern "C"
18096 # endif
18097 int F77_DUMMY_MAIN() { return 1; }
18098 #endif
18100 main ()
18102 struct utmp ut; ut.ut_exit.e_exit = 0;
18104 return 0;
18106 _ACEOF
18107 rm -f conftest.$ac_objext
18108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18109 (eval $ac_compile) 2>&5
18110 ac_status=$?
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -s conftest.$ac_objext'
18114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115 (eval $ac_try) 2>&5
18116 ac_status=$?
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; }; then
18119 samba_cv_HAVE_UT_UT_EXIT=yes
18120 else
18121 echo "$as_me: failed program was:" >&5
18122 cat conftest.$ac_ext >&5
18123 samba_cv_HAVE_UT_UT_EXIT=no
18125 rm -f conftest.$ac_objext conftest.$ac_ext
18127 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_EXIT" >&5
18128 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_EXIT" >&6
18129 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
18131 cat >>confdefs.h <<\_ACEOF
18132 #define HAVE_UT_UT_EXIT 1
18133 _ACEOF
18137 echo "$as_me:$LINENO: checking for ut_addr in utmp" >&5
18138 echo $ECHO_N "checking for ut_addr in utmp... $ECHO_C" >&6
18139 if test "${samba_cv_HAVE_UT_UT_ADDR+set}" = set; then
18140 echo $ECHO_N "(cached) $ECHO_C" >&6
18141 else
18143 cat >conftest.$ac_ext <<_ACEOF
18144 #line $LINENO "configure"
18145 #include "confdefs.h"
18146 #include <sys/types.h>
18147 #include <utmp.h>
18148 #ifdef F77_DUMMY_MAIN
18149 # ifdef __cplusplus
18150 extern "C"
18151 # endif
18152 int F77_DUMMY_MAIN() { return 1; }
18153 #endif
18155 main ()
18157 struct utmp ut; ut.ut_addr = 0;
18159 return 0;
18161 _ACEOF
18162 rm -f conftest.$ac_objext
18163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18164 (eval $ac_compile) 2>&5
18165 ac_status=$?
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); } &&
18168 { ac_try='test -s conftest.$ac_objext'
18169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18170 (eval $ac_try) 2>&5
18171 ac_status=$?
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); }; }; then
18174 samba_cv_HAVE_UT_UT_ADDR=yes
18175 else
18176 echo "$as_me: failed program was:" >&5
18177 cat conftest.$ac_ext >&5
18178 samba_cv_HAVE_UT_UT_ADDR=no
18180 rm -f conftest.$ac_objext conftest.$ac_ext
18182 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ADDR" >&5
18183 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ADDR" >&6
18184 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
18186 cat >>confdefs.h <<\_ACEOF
18187 #define HAVE_UT_UT_ADDR 1
18188 _ACEOF
18192 if test x$ac_cv_func_pututline = xyes ; then
18193 echo "$as_me:$LINENO: checking whether pututline returns pointer" >&5
18194 echo $ECHO_N "checking whether pututline returns pointer... $ECHO_C" >&6
18195 if test "${samba_cv_PUTUTLINE_RETURNS_UTMP+set}" = set; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18197 else
18199 cat >conftest.$ac_ext <<_ACEOF
18200 #line $LINENO "configure"
18201 #include "confdefs.h"
18202 #include <sys/types.h>
18203 #include <utmp.h>
18204 #ifdef F77_DUMMY_MAIN
18205 # ifdef __cplusplus
18206 extern "C"
18207 # endif
18208 int F77_DUMMY_MAIN() { return 1; }
18209 #endif
18211 main ()
18213 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
18215 return 0;
18217 _ACEOF
18218 rm -f conftest.$ac_objext
18219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18220 (eval $ac_compile) 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); } &&
18224 { ac_try='test -s conftest.$ac_objext'
18225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18226 (eval $ac_try) 2>&5
18227 ac_status=$?
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; }; then
18230 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
18231 else
18232 echo "$as_me: failed program was:" >&5
18233 cat conftest.$ac_ext >&5
18234 samba_cv_PUTUTLINE_RETURNS_UTMP=no
18236 rm -f conftest.$ac_objext conftest.$ac_ext
18238 echo "$as_me:$LINENO: result: $samba_cv_PUTUTLINE_RETURNS_UTMP" >&5
18239 echo "${ECHO_T}$samba_cv_PUTUTLINE_RETURNS_UTMP" >&6
18240 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
18242 cat >>confdefs.h <<\_ACEOF
18243 #define PUTUTLINE_RETURNS_UTMP 1
18244 _ACEOF
18249 echo "$as_me:$LINENO: checking for ut_syslen in utmpx" >&5
18250 echo $ECHO_N "checking for ut_syslen in utmpx... $ECHO_C" >&6
18251 if test "${samba_cv_HAVE_UX_UT_SYSLEN+set}" = set; then
18252 echo $ECHO_N "(cached) $ECHO_C" >&6
18253 else
18255 cat >conftest.$ac_ext <<_ACEOF
18256 #line $LINENO "configure"
18257 #include "confdefs.h"
18258 #include <sys/types.h>
18259 #include <utmpx.h>
18260 #ifdef F77_DUMMY_MAIN
18261 # ifdef __cplusplus
18262 extern "C"
18263 # endif
18264 int F77_DUMMY_MAIN() { return 1; }
18265 #endif
18267 main ()
18269 struct utmpx ux; ux.ut_syslen = 0;
18271 return 0;
18273 _ACEOF
18274 rm -f conftest.$ac_objext
18275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18276 (eval $ac_compile) 2>&5
18277 ac_status=$?
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } &&
18280 { ac_try='test -s conftest.$ac_objext'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; }; then
18286 samba_cv_HAVE_UX_UT_SYSLEN=yes
18287 else
18288 echo "$as_me: failed program was:" >&5
18289 cat conftest.$ac_ext >&5
18290 samba_cv_HAVE_UX_UT_SYSLEN=no
18292 rm -f conftest.$ac_objext conftest.$ac_ext
18294 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UX_UT_SYSLEN" >&5
18295 echo "${ECHO_T}$samba_cv_HAVE_UX_UT_SYSLEN" >&6
18296 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
18298 cat >>confdefs.h <<\_ACEOF
18299 #define HAVE_UX_UT_SYSLEN 1
18300 _ACEOF
18305 #################################################
18306 # check for libiconv support
18307 echo "$as_me:$LINENO: checking whether to use libiconv" >&5
18308 echo $ECHO_N "checking whether to use libiconv... $ECHO_C" >&6
18310 # Check whether --with-libiconv or --without-libiconv was given.
18311 if test "${with_libiconv+set}" = set; then
18312 withval="$with_libiconv"
18313 case "$withval" in
18315 echo "$as_me:$LINENO: result: no" >&5
18316 echo "${ECHO_T}no" >&6
18319 echo "$as_me:$LINENO: result: yes" >&5
18320 echo "${ECHO_T}yes" >&6
18321 CFLAGS="$CFLAGS -I$withval/include"
18322 LDFLAGS="$LDFLAGS -L$withval/lib"
18324 echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
18325 echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6
18326 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
18327 echo $ECHO_N "(cached) $ECHO_C" >&6
18328 else
18329 ac_check_lib_save_LIBS=$LIBS
18330 LIBS="-liconv $LIBS"
18331 cat >conftest.$ac_ext <<_ACEOF
18332 #line $LINENO "configure"
18333 #include "confdefs.h"
18335 /* Override any gcc2 internal prototype to avoid an error. */
18336 #ifdef __cplusplus
18337 extern "C"
18338 #endif
18339 /* We use char because int might match the return type of a gcc2
18340 builtin and then its argument prototype would still apply. */
18341 char iconv_open ();
18342 #ifdef F77_DUMMY_MAIN
18343 # ifdef __cplusplus
18344 extern "C"
18345 # endif
18346 int F77_DUMMY_MAIN() { return 1; }
18347 #endif
18349 main ()
18351 iconv_open ();
18353 return 0;
18355 _ACEOF
18356 rm -f conftest.$ac_objext conftest$ac_exeext
18357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18358 (eval $ac_link) 2>&5
18359 ac_status=$?
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } &&
18362 { ac_try='test -s conftest$ac_exeext'
18363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18364 (eval $ac_try) 2>&5
18365 ac_status=$?
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); }; }; then
18368 ac_cv_lib_iconv_iconv_open=yes
18369 else
18370 echo "$as_me: failed program was:" >&5
18371 cat conftest.$ac_ext >&5
18372 ac_cv_lib_iconv_iconv_open=no
18374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18375 LIBS=$ac_check_lib_save_LIBS
18377 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
18378 echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6
18379 if test $ac_cv_lib_iconv_iconv_open = yes; then
18380 cat >>confdefs.h <<_ACEOF
18381 #define HAVE_LIBICONV 1
18382 _ACEOF
18384 LIBS="-liconv $LIBS"
18389 cat >>confdefs.h <<_ACEOF
18390 #define WITH_LIBICONV "${withval}"
18391 _ACEOF
18394 esac
18395 else
18396 echo "$as_me:$LINENO: result: no" >&5
18397 echo "${ECHO_T}no" >&6
18402 ############
18403 # check for iconv in libc
18404 echo "$as_me:$LINENO: checking for working iconv" >&5
18405 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6
18406 if test "${samba_cv_HAVE_NATIVE_ICONV+set}" = set; then
18407 echo $ECHO_N "(cached) $ECHO_C" >&6
18408 else
18410 if test "$cross_compiling" = yes; then
18411 samba_cv_HAVE_NATIVE_ICONV=cross
18412 else
18413 cat >conftest.$ac_ext <<_ACEOF
18414 #line $LINENO "configure"
18415 #include "confdefs.h"
18417 #include <iconv.h>
18418 main() {
18419 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
18420 if (cd == 0 || cd == (iconv_t)-1) return -1;
18421 return 0;
18424 _ACEOF
18425 rm -f conftest$ac_exeext
18426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18427 (eval $ac_link) 2>&5
18428 ac_status=$?
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432 (eval $ac_try) 2>&5
18433 ac_status=$?
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }; }; then
18436 samba_cv_HAVE_NATIVE_ICONV=yes
18437 else
18438 echo "$as_me: program exited with status $ac_status" >&5
18439 echo "$as_me: failed program was:" >&5
18440 cat conftest.$ac_ext >&5
18441 ( exit $ac_status )
18442 samba_cv_HAVE_NATIVE_ICONV=no
18444 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18447 echo "$as_me:$LINENO: result: $samba_cv_HAVE_NATIVE_ICONV" >&5
18448 echo "${ECHO_T}$samba_cv_HAVE_NATIVE_ICONV" >&6
18449 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
18451 cat >>confdefs.h <<\_ACEOF
18452 #define HAVE_NATIVE_ICONV 1
18453 _ACEOF
18458 echo "$as_me:$LINENO: checking for Linux kernel oplocks" >&5
18459 echo $ECHO_N "checking for Linux kernel oplocks... $ECHO_C" >&6
18460 if test "${samba_cv_HAVE_KERNEL_OPLOCKS_LINUX+set}" = set; then
18461 echo $ECHO_N "(cached) $ECHO_C" >&6
18462 else
18464 if test "$cross_compiling" = yes; then
18465 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
18466 else
18467 cat >conftest.$ac_ext <<_ACEOF
18468 #line $LINENO "configure"
18469 #include "confdefs.h"
18471 #include <sys/types.h>
18472 #include <fcntl.h>
18473 #ifndef F_GETLEASE
18474 #define F_GETLEASE 1025
18475 #endif
18476 main() {
18477 int fd = open("/dev/null", O_RDONLY);
18478 return fcntl(fd, F_GETLEASE, 0) == -1;
18481 _ACEOF
18482 rm -f conftest$ac_exeext
18483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18484 (eval $ac_link) 2>&5
18485 ac_status=$?
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18489 (eval $ac_try) 2>&5
18490 ac_status=$?
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); }; }; then
18493 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
18494 else
18495 echo "$as_me: program exited with status $ac_status" >&5
18496 echo "$as_me: failed program was:" >&5
18497 cat conftest.$ac_ext >&5
18498 ( exit $ac_status )
18499 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
18501 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18504 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&5
18505 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&6
18506 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
18508 cat >>confdefs.h <<\_ACEOF
18509 #define HAVE_KERNEL_OPLOCKS_LINUX 1
18510 _ACEOF
18514 echo "$as_me:$LINENO: checking for kernel change notify support" >&5
18515 echo $ECHO_N "checking for kernel change notify support... $ECHO_C" >&6
18516 if test "${samba_cv_HAVE_KERNEL_CHANGE_NOTIFY+set}" = set; then
18517 echo $ECHO_N "(cached) $ECHO_C" >&6
18518 else
18520 if test "$cross_compiling" = yes; then
18521 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
18522 else
18523 cat >conftest.$ac_ext <<_ACEOF
18524 #line $LINENO "configure"
18525 #include "confdefs.h"
18527 #include <sys/types.h>
18528 #include <fcntl.h>
18529 #include <signal.h>
18530 #ifndef F_NOTIFY
18531 #define F_NOTIFY 1026
18532 #endif
18533 main() {
18534 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
18537 _ACEOF
18538 rm -f conftest$ac_exeext
18539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18540 (eval $ac_link) 2>&5
18541 ac_status=$?
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18546 ac_status=$?
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; }; then
18549 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
18550 else
18551 echo "$as_me: program exited with status $ac_status" >&5
18552 echo "$as_me: failed program was:" >&5
18553 cat conftest.$ac_ext >&5
18554 ( exit $ac_status )
18555 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
18557 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18560 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&5
18561 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&6
18562 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
18564 cat >>confdefs.h <<\_ACEOF
18565 #define HAVE_KERNEL_CHANGE_NOTIFY 1
18566 _ACEOF
18570 echo "$as_me:$LINENO: checking for kernel share modes" >&5
18571 echo $ECHO_N "checking for kernel share modes... $ECHO_C" >&6
18572 if test "${samba_cv_HAVE_KERNEL_SHARE_MODES+set}" = set; then
18573 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 else
18576 if test "$cross_compiling" = yes; then
18577 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
18578 else
18579 cat >conftest.$ac_ext <<_ACEOF
18580 #line $LINENO "configure"
18581 #include "confdefs.h"
18583 #include <sys/types.h>
18584 #include <fcntl.h>
18585 #include <signal.h>
18586 #include <sys/file.h>
18587 #ifndef LOCK_MAND
18588 #define LOCK_MAND 32
18589 #define LOCK_READ 64
18590 #endif
18591 main() {
18592 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
18595 _ACEOF
18596 rm -f conftest$ac_exeext
18597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18598 (eval $ac_link) 2>&5
18599 ac_status=$?
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18603 (eval $ac_try) 2>&5
18604 ac_status=$?
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); }; }; then
18607 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
18608 else
18609 echo "$as_me: program exited with status $ac_status" >&5
18610 echo "$as_me: failed program was:" >&5
18611 cat conftest.$ac_ext >&5
18612 ( exit $ac_status )
18613 samba_cv_HAVE_KERNEL_SHARE_MODES=no
18615 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18618 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_SHARE_MODES" >&5
18619 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_SHARE_MODES" >&6
18620 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
18622 cat >>confdefs.h <<\_ACEOF
18623 #define HAVE_KERNEL_SHARE_MODES 1
18624 _ACEOF
18631 echo "$as_me:$LINENO: checking for IRIX kernel oplock type definitions" >&5
18632 echo $ECHO_N "checking for IRIX kernel oplock type definitions... $ECHO_C" >&6
18633 if test "${samba_cv_HAVE_KERNEL_OPLOCKS_IRIX+set}" = set; then
18634 echo $ECHO_N "(cached) $ECHO_C" >&6
18635 else
18637 cat >conftest.$ac_ext <<_ACEOF
18638 #line $LINENO "configure"
18639 #include "confdefs.h"
18640 #include <sys/types.h>
18641 #include <fcntl.h>
18642 #ifdef F77_DUMMY_MAIN
18643 # ifdef __cplusplus
18644 extern "C"
18645 # endif
18646 int F77_DUMMY_MAIN() { return 1; }
18647 #endif
18649 main ()
18651 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
18653 return 0;
18655 _ACEOF
18656 rm -f conftest.$ac_objext
18657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18658 (eval $ac_compile) 2>&5
18659 ac_status=$?
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } &&
18662 { ac_try='test -s conftest.$ac_objext'
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18665 ac_status=$?
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
18668 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
18669 else
18670 echo "$as_me: failed program was:" >&5
18671 cat conftest.$ac_ext >&5
18672 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
18674 rm -f conftest.$ac_objext conftest.$ac_ext
18676 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&5
18677 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&6
18678 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
18680 cat >>confdefs.h <<\_ACEOF
18681 #define HAVE_KERNEL_OPLOCKS_IRIX 1
18682 _ACEOF
18686 echo "$as_me:$LINENO: checking for irix specific capabilities" >&5
18687 echo $ECHO_N "checking for irix specific capabilities... $ECHO_C" >&6
18688 if test "${samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES+set}" = set; then
18689 echo $ECHO_N "(cached) $ECHO_C" >&6
18690 else
18692 if test "$cross_compiling" = yes; then
18693 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
18694 else
18695 cat >conftest.$ac_ext <<_ACEOF
18696 #line $LINENO "configure"
18697 #include "confdefs.h"
18698 #include <sys/types.h>
18699 #include <sys/capability.h>
18700 main() {
18701 cap_t cap;
18702 if ((cap = cap_get_proc()) == NULL)
18703 exit(1);
18704 cap->cap_effective |= CAP_NETWORK_MGT;
18705 cap->cap_inheritable |= CAP_NETWORK_MGT;
18706 cap_set_proc(cap);
18707 exit(0);
18710 _ACEOF
18711 rm -f conftest$ac_exeext
18712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18713 (eval $ac_link) 2>&5
18714 ac_status=$?
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18718 (eval $ac_try) 2>&5
18719 ac_status=$?
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; }; then
18722 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
18723 else
18724 echo "$as_me: program exited with status $ac_status" >&5
18725 echo "$as_me: failed program was:" >&5
18726 cat conftest.$ac_ext >&5
18727 ( exit $ac_status )
18728 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
18730 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18733 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&5
18734 echo "${ECHO_T}$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&6
18735 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
18737 cat >>confdefs.h <<\_ACEOF
18738 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
18739 _ACEOF
18744 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
18745 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
18748 echo "$as_me:$LINENO: checking for int16 typedef included by rpc/rpc.h" >&5
18749 echo $ECHO_N "checking for int16 typedef included by rpc/rpc.h... $ECHO_C" >&6
18750 if test "${samba_cv_HAVE_INT16_FROM_RPC_RPC_H+set}" = set; then
18751 echo $ECHO_N "(cached) $ECHO_C" >&6
18752 else
18754 cat >conftest.$ac_ext <<_ACEOF
18755 #line $LINENO "configure"
18756 #include "confdefs.h"
18757 #include <sys/types.h>
18758 #if defined(HAVE_RPC_RPC_H)
18759 #include <rpc/rpc.h>
18760 #endif
18761 #ifdef F77_DUMMY_MAIN
18762 # ifdef __cplusplus
18763 extern "C"
18764 # endif
18765 int F77_DUMMY_MAIN() { return 1; }
18766 #endif
18768 main ()
18770 int16 testvar;
18772 return 0;
18774 _ACEOF
18775 rm -f conftest.$ac_objext
18776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18777 (eval $ac_compile) 2>&5
18778 ac_status=$?
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } &&
18781 { ac_try='test -s conftest.$ac_objext'
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18784 ac_status=$?
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; }; then
18787 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
18788 else
18789 echo "$as_me: failed program was:" >&5
18790 cat conftest.$ac_ext >&5
18791 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
18793 rm -f conftest.$ac_objext conftest.$ac_ext
18795 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&5
18796 echo "${ECHO_T}$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&6
18797 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
18799 cat >>confdefs.h <<\_ACEOF
18800 #define HAVE_INT16_FROM_RPC_RPC_H 1
18801 _ACEOF
18805 echo "$as_me:$LINENO: checking for uint16 typedef included by rpc/rpc.h" >&5
18806 echo $ECHO_N "checking for uint16 typedef included by rpc/rpc.h... $ECHO_C" >&6
18807 if test "${samba_cv_HAVE_UINT16_FROM_RPC_RPC_H+set}" = set; then
18808 echo $ECHO_N "(cached) $ECHO_C" >&6
18809 else
18811 cat >conftest.$ac_ext <<_ACEOF
18812 #line $LINENO "configure"
18813 #include "confdefs.h"
18814 #include <sys/types.h>
18815 #if defined(HAVE_RPC_RPC_H)
18816 #include <rpc/rpc.h>
18817 #endif
18818 #ifdef F77_DUMMY_MAIN
18819 # ifdef __cplusplus
18820 extern "C"
18821 # endif
18822 int F77_DUMMY_MAIN() { return 1; }
18823 #endif
18825 main ()
18827 uint16 testvar;
18829 return 0;
18831 _ACEOF
18832 rm -f conftest.$ac_objext
18833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18834 (eval $ac_compile) 2>&5
18835 ac_status=$?
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); } &&
18838 { ac_try='test -s conftest.$ac_objext'
18839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18840 (eval $ac_try) 2>&5
18841 ac_status=$?
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); }; }; then
18844 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
18845 else
18846 echo "$as_me: failed program was:" >&5
18847 cat conftest.$ac_ext >&5
18848 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
18850 rm -f conftest.$ac_objext conftest.$ac_ext
18852 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&5
18853 echo "${ECHO_T}$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&6
18854 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
18856 cat >>confdefs.h <<\_ACEOF
18857 #define HAVE_UINT16_FROM_RPC_RPC_H 1
18858 _ACEOF
18862 echo "$as_me:$LINENO: checking for int32 typedef included by rpc/rpc.h" >&5
18863 echo $ECHO_N "checking for int32 typedef included by rpc/rpc.h... $ECHO_C" >&6
18864 if test "${samba_cv_HAVE_INT32_FROM_RPC_RPC_H+set}" = set; then
18865 echo $ECHO_N "(cached) $ECHO_C" >&6
18866 else
18868 cat >conftest.$ac_ext <<_ACEOF
18869 #line $LINENO "configure"
18870 #include "confdefs.h"
18871 #include <sys/types.h>
18872 #if defined(HAVE_RPC_RPC_H)
18873 #include <rpc/rpc.h>
18874 #endif
18875 #ifdef F77_DUMMY_MAIN
18876 # ifdef __cplusplus
18877 extern "C"
18878 # endif
18879 int F77_DUMMY_MAIN() { return 1; }
18880 #endif
18882 main ()
18884 int32 testvar;
18886 return 0;
18888 _ACEOF
18889 rm -f conftest.$ac_objext
18890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18891 (eval $ac_compile) 2>&5
18892 ac_status=$?
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); } &&
18895 { ac_try='test -s conftest.$ac_objext'
18896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18897 (eval $ac_try) 2>&5
18898 ac_status=$?
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); }; }; then
18901 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
18902 else
18903 echo "$as_me: failed program was:" >&5
18904 cat conftest.$ac_ext >&5
18905 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
18907 rm -f conftest.$ac_objext conftest.$ac_ext
18909 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&5
18910 echo "${ECHO_T}$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&6
18911 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
18913 cat >>confdefs.h <<\_ACEOF
18914 #define HAVE_INT32_FROM_RPC_RPC_H 1
18915 _ACEOF
18919 echo "$as_me:$LINENO: checking for uint32 typedef included by rpc/rpc.h" >&5
18920 echo $ECHO_N "checking for uint32 typedef included by rpc/rpc.h... $ECHO_C" >&6
18921 if test "${samba_cv_HAVE_UINT32_FROM_RPC_RPC_H+set}" = set; then
18922 echo $ECHO_N "(cached) $ECHO_C" >&6
18923 else
18925 cat >conftest.$ac_ext <<_ACEOF
18926 #line $LINENO "configure"
18927 #include "confdefs.h"
18928 #include <sys/types.h>
18929 #if defined(HAVE_RPC_RPC_H)
18930 #include <rpc/rpc.h>
18931 #endif
18932 #ifdef F77_DUMMY_MAIN
18933 # ifdef __cplusplus
18934 extern "C"
18935 # endif
18936 int F77_DUMMY_MAIN() { return 1; }
18937 #endif
18939 main ()
18941 uint32 testvar;
18943 return 0;
18945 _ACEOF
18946 rm -f conftest.$ac_objext
18947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18948 (eval $ac_compile) 2>&5
18949 ac_status=$?
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } &&
18952 { ac_try='test -s conftest.$ac_objext'
18953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18954 (eval $ac_try) 2>&5
18955 ac_status=$?
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); }; }; then
18958 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
18959 else
18960 echo "$as_me: failed program was:" >&5
18961 cat conftest.$ac_ext >&5
18962 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
18964 rm -f conftest.$ac_objext conftest.$ac_ext
18966 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&5
18967 echo "${ECHO_T}$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&6
18968 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
18970 cat >>confdefs.h <<\_ACEOF
18971 #define HAVE_UINT32_FROM_RPC_RPC_H 1
18972 _ACEOF
18977 echo "$as_me:$LINENO: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
18978 echo $ECHO_N "checking for conflicting AUTH_ERROR define in rpc/rpc.h... $ECHO_C" >&6
18979 if test "${samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT+set}" = set; then
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
18981 else
18983 cat >conftest.$ac_ext <<_ACEOF
18984 #line $LINENO "configure"
18985 #include "confdefs.h"
18986 #include <sys/types.h>
18987 #ifdef HAVE_SYS_SECURITY_H
18988 #include <sys/security.h>
18989 #include <prot.h>
18990 #endif /* HAVE_SYS_SECURITY_H */
18991 #if defined(HAVE_RPC_RPC_H)
18992 #include <rpc/rpc.h>
18993 #endif
18994 #ifdef F77_DUMMY_MAIN
18995 # ifdef __cplusplus
18996 extern "C"
18997 # endif
18998 int F77_DUMMY_MAIN() { return 1; }
18999 #endif
19001 main ()
19003 int testvar;
19005 return 0;
19007 _ACEOF
19008 rm -f conftest.$ac_objext
19009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19010 (eval $ac_compile) 2>&5
19011 ac_status=$?
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); } &&
19014 { ac_try='test -s conftest.$ac_objext'
19015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016 (eval $ac_try) 2>&5
19017 ac_status=$?
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; }; then
19020 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
19021 else
19022 echo "$as_me: failed program was:" >&5
19023 cat conftest.$ac_ext >&5
19024 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
19026 rm -f conftest.$ac_objext conftest.$ac_ext
19028 echo "$as_me:$LINENO: result: $samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&5
19029 echo "${ECHO_T}$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&6
19030 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
19032 cat >>confdefs.h <<\_ACEOF
19033 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
19034 _ACEOF
19038 echo "$as_me:$LINENO: checking for test routines" >&5
19039 echo $ECHO_N "checking for test routines... $ECHO_C" >&6
19040 if test "$cross_compiling" = yes; then
19041 { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
19042 echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
19043 else
19044 cat >conftest.$ac_ext <<_ACEOF
19045 #line $LINENO "configure"
19046 #include "confdefs.h"
19047 #include "${srcdir-.}/tests/trivial.c"
19048 _ACEOF
19049 rm -f conftest$ac_exeext
19050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19051 (eval $ac_link) 2>&5
19052 ac_status=$?
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056 (eval $ac_try) 2>&5
19057 ac_status=$?
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); }; }; then
19060 echo "$as_me:$LINENO: result: yes" >&5
19061 echo "${ECHO_T}yes" >&6
19062 else
19063 echo "$as_me: program exited with status $ac_status" >&5
19064 echo "$as_me: failed program was:" >&5
19065 cat conftest.$ac_ext >&5
19066 ( exit $ac_status )
19067 { { echo "$as_me:$LINENO: error: cant find test code. Aborting config" >&5
19068 echo "$as_me: error: cant find test code. Aborting config" >&2;}
19069 { (exit 1); exit 1; }; }
19071 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19074 echo "$as_me:$LINENO: checking for ftruncate extend" >&5
19075 echo $ECHO_N "checking for ftruncate extend... $ECHO_C" >&6
19076 if test "${samba_cv_HAVE_FTRUNCATE_EXTEND+set}" = set; then
19077 echo $ECHO_N "(cached) $ECHO_C" >&6
19078 else
19080 if test "$cross_compiling" = yes; then
19081 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
19082 else
19083 cat >conftest.$ac_ext <<_ACEOF
19084 #line $LINENO "configure"
19085 #include "confdefs.h"
19086 #include "${srcdir-.}/tests/ftruncate.c"
19087 _ACEOF
19088 rm -f conftest$ac_exeext
19089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19090 (eval $ac_link) 2>&5
19091 ac_status=$?
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095 (eval $ac_try) 2>&5
19096 ac_status=$?
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; }; then
19099 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
19100 else
19101 echo "$as_me: program exited with status $ac_status" >&5
19102 echo "$as_me: failed program was:" >&5
19103 cat conftest.$ac_ext >&5
19104 ( exit $ac_status )
19105 samba_cv_HAVE_FTRUNCATE_EXTEND=no
19107 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19110 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FTRUNCATE_EXTEND" >&5
19111 echo "${ECHO_T}$samba_cv_HAVE_FTRUNCATE_EXTEND" >&6
19112 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
19114 cat >>confdefs.h <<\_ACEOF
19115 #define HAVE_FTRUNCATE_EXTEND 1
19116 _ACEOF
19120 echo "$as_me:$LINENO: checking for AF_LOCAL socket support" >&5
19121 echo $ECHO_N "checking for AF_LOCAL socket support... $ECHO_C" >&6
19122 if test "${samba_cv_HAVE_WORKING_AF_LOCAL+set}" = set; then
19123 echo $ECHO_N "(cached) $ECHO_C" >&6
19124 else
19126 if test "$cross_compiling" = yes; then
19127 samba_cv_HAVE_WORKING_AF_LOCAL=cross
19128 else
19129 cat >conftest.$ac_ext <<_ACEOF
19130 #line $LINENO "configure"
19131 #include "confdefs.h"
19132 #include "${srcdir-.}/tests/unixsock.c"
19133 _ACEOF
19134 rm -f conftest$ac_exeext
19135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19136 (eval $ac_link) 2>&5
19137 ac_status=$?
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141 (eval $ac_try) 2>&5
19142 ac_status=$?
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; }; then
19145 samba_cv_HAVE_WORKING_AF_LOCAL=yes
19146 else
19147 echo "$as_me: program exited with status $ac_status" >&5
19148 echo "$as_me: failed program was:" >&5
19149 cat conftest.$ac_ext >&5
19150 ( exit $ac_status )
19151 samba_cv_HAVE_WORKING_AF_LOCAL=no
19153 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19156 echo "$as_me:$LINENO: result: $samba_cv_HAVE_WORKING_AF_LOCAL" >&5
19157 echo "${ECHO_T}$samba_cv_HAVE_WORKING_AF_LOCAL" >&6
19158 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
19159 then
19161 cat >>confdefs.h <<\_ACEOF
19162 #define HAVE_WORKING_AF_LOCAL 1
19163 _ACEOF
19167 echo "$as_me:$LINENO: checking for broken getgroups" >&5
19168 echo $ECHO_N "checking for broken getgroups... $ECHO_C" >&6
19169 if test "${samba_cv_HAVE_BROKEN_GETGROUPS+set}" = set; then
19170 echo $ECHO_N "(cached) $ECHO_C" >&6
19171 else
19173 if test "$cross_compiling" = yes; then
19174 samba_cv_HAVE_BROKEN_GETGROUPS=cross
19175 else
19176 cat >conftest.$ac_ext <<_ACEOF
19177 #line $LINENO "configure"
19178 #include "confdefs.h"
19179 #include "${srcdir-.}/tests/getgroups.c"
19180 _ACEOF
19181 rm -f conftest$ac_exeext
19182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19183 (eval $ac_link) 2>&5
19184 ac_status=$?
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19188 (eval $ac_try) 2>&5
19189 ac_status=$?
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; }; then
19192 samba_cv_HAVE_BROKEN_GETGROUPS=yes
19193 else
19194 echo "$as_me: program exited with status $ac_status" >&5
19195 echo "$as_me: failed program was:" >&5
19196 cat conftest.$ac_ext >&5
19197 ( exit $ac_status )
19198 samba_cv_HAVE_BROKEN_GETGROUPS=no
19200 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19203 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_GETGROUPS" >&5
19204 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_GETGROUPS" >&6
19205 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
19207 cat >>confdefs.h <<\_ACEOF
19208 #define HAVE_BROKEN_GETGROUPS 1
19209 _ACEOF
19213 echo "$as_me:$LINENO: checking whether getpass should be replaced" >&5
19214 echo $ECHO_N "checking whether getpass should be replaced... $ECHO_C" >&6
19215 if test "${samba_cv_REPLACE_GETPASS+set}" = set; then
19216 echo $ECHO_N "(cached) $ECHO_C" >&6
19217 else
19219 SAVE_CPPFLAGS="$CPPFLAGS"
19220 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
19221 cat >conftest.$ac_ext <<_ACEOF
19222 #line $LINENO "configure"
19223 #include "confdefs.h"
19225 #define REPLACE_GETPASS 1
19226 #define NO_CONFIG_H 1
19227 #define main dont_declare_main
19228 #include "${srcdir-.}/lib/getsmbpass.c"
19229 #undef main
19231 #ifdef F77_DUMMY_MAIN
19232 # ifdef __cplusplus
19233 extern "C"
19234 # endif
19235 int F77_DUMMY_MAIN() { return 1; }
19236 #endif
19238 main ()
19242 return 0;
19244 _ACEOF
19245 rm -f conftest.$ac_objext
19246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19247 (eval $ac_compile) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); } &&
19251 { ac_try='test -s conftest.$ac_objext'
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19254 ac_status=$?
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; }; then
19257 samba_cv_REPLACE_GETPASS=yes
19258 else
19259 echo "$as_me: failed program was:" >&5
19260 cat conftest.$ac_ext >&5
19261 samba_cv_REPLACE_GETPASS=no
19263 rm -f conftest.$ac_objext conftest.$ac_ext
19264 CPPFLAGS="$SAVE_CPPFLAGS"
19267 echo "$as_me:$LINENO: result: $samba_cv_REPLACE_GETPASS" >&5
19268 echo "${ECHO_T}$samba_cv_REPLACE_GETPASS" >&6
19269 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
19271 cat >>confdefs.h <<\_ACEOF
19272 #define REPLACE_GETPASS 1
19273 _ACEOF
19277 echo "$as_me:$LINENO: checking for broken inet_ntoa" >&5
19278 echo $ECHO_N "checking for broken inet_ntoa... $ECHO_C" >&6
19279 if test "${samba_cv_REPLACE_INET_NTOA+set}" = set; then
19280 echo $ECHO_N "(cached) $ECHO_C" >&6
19281 else
19283 if test "$cross_compiling" = yes; then
19284 samba_cv_REPLACE_INET_NTOA=cross
19285 else
19286 cat >conftest.$ac_ext <<_ACEOF
19287 #line $LINENO "configure"
19288 #include "confdefs.h"
19290 #include <stdio.h>
19291 #include <sys/types.h>
19292 #include <netinet/in.h>
19293 #ifdef HAVE_ARPA_INET_H
19294 #include <arpa/inet.h>
19295 #endif
19296 main() { struct in_addr ip; ip.s_addr = 0x12345678;
19297 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
19298 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
19299 exit(1);}
19300 _ACEOF
19301 rm -f conftest$ac_exeext
19302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19303 (eval $ac_link) 2>&5
19304 ac_status=$?
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308 (eval $ac_try) 2>&5
19309 ac_status=$?
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; }; then
19312 samba_cv_REPLACE_INET_NTOA=yes
19313 else
19314 echo "$as_me: program exited with status $ac_status" >&5
19315 echo "$as_me: failed program was:" >&5
19316 cat conftest.$ac_ext >&5
19317 ( exit $ac_status )
19318 samba_cv_REPLACE_INET_NTOA=no
19320 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19323 echo "$as_me:$LINENO: result: $samba_cv_REPLACE_INET_NTOA" >&5
19324 echo "${ECHO_T}$samba_cv_REPLACE_INET_NTOA" >&6
19325 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
19327 cat >>confdefs.h <<\_ACEOF
19328 #define REPLACE_INET_NTOA 1
19329 _ACEOF
19333 echo "$as_me:$LINENO: checking for secure mkstemp" >&5
19334 echo $ECHO_N "checking for secure mkstemp... $ECHO_C" >&6
19335 if test "${samba_cv_HAVE_SECURE_MKSTEMP+set}" = set; then
19336 echo $ECHO_N "(cached) $ECHO_C" >&6
19337 else
19339 if test "$cross_compiling" = yes; then
19340 samba_cv_HAVE_SECURE_MKSTEMP=cross
19341 else
19342 cat >conftest.$ac_ext <<_ACEOF
19343 #line $LINENO "configure"
19344 #include "confdefs.h"
19345 #include <stdlib.h>
19346 #include <sys/types.h>
19347 #include <sys/stat.h>
19348 #include <unistd.h>
19349 main() {
19350 struct stat st;
19351 char tpl[20]="/tmp/test.XXXXXX";
19352 int fd = mkstemp(tpl);
19353 if (fd == -1) exit(1);
19354 unlink(tpl);
19355 if (fstat(fd, &st) != 0) exit(1);
19356 if ((st.st_mode & 0777) != 0600) exit(1);
19357 exit(0);
19359 _ACEOF
19360 rm -f conftest$ac_exeext
19361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19362 (eval $ac_link) 2>&5
19363 ac_status=$?
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19368 ac_status=$?
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; }; then
19371 samba_cv_HAVE_SECURE_MKSTEMP=yes
19372 else
19373 echo "$as_me: program exited with status $ac_status" >&5
19374 echo "$as_me: failed program was:" >&5
19375 cat conftest.$ac_ext >&5
19376 ( exit $ac_status )
19377 samba_cv_HAVE_SECURE_MKSTEMP=no
19379 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19382 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SECURE_MKSTEMP" >&5
19383 echo "${ECHO_T}$samba_cv_HAVE_SECURE_MKSTEMP" >&6
19384 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
19386 cat >>confdefs.h <<\_ACEOF
19387 #define HAVE_SECURE_MKSTEMP 1
19388 _ACEOF
19392 echo "$as_me:$LINENO: checking for sysconf(_SC_NGROUPS_MAX)" >&5
19393 echo $ECHO_N "checking for sysconf(_SC_NGROUPS_MAX)... $ECHO_C" >&6
19394 if test "${samba_cv_SYSCONF_SC_NGROUPS_MAX+set}" = set; then
19395 echo $ECHO_N "(cached) $ECHO_C" >&6
19396 else
19398 if test "$cross_compiling" = yes; then
19399 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
19400 else
19401 cat >conftest.$ac_ext <<_ACEOF
19402 #line $LINENO "configure"
19403 #include "confdefs.h"
19404 #include <unistd.h>
19405 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
19406 _ACEOF
19407 rm -f conftest$ac_exeext
19408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19409 (eval $ac_link) 2>&5
19410 ac_status=$?
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414 (eval $ac_try) 2>&5
19415 ac_status=$?
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; }; then
19418 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
19419 else
19420 echo "$as_me: program exited with status $ac_status" >&5
19421 echo "$as_me: failed program was:" >&5
19422 cat conftest.$ac_ext >&5
19423 ( exit $ac_status )
19424 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
19426 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19429 echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NGROUPS_MAX" >&5
19430 echo "${ECHO_T}$samba_cv_SYSCONF_SC_NGROUPS_MAX" >&6
19431 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
19433 cat >>confdefs.h <<\_ACEOF
19434 #define SYSCONF_SC_NGROUPS_MAX 1
19435 _ACEOF
19439 echo "$as_me:$LINENO: checking for root" >&5
19440 echo $ECHO_N "checking for root... $ECHO_C" >&6
19441 if test "${samba_cv_HAVE_ROOT+set}" = set; then
19442 echo $ECHO_N "(cached) $ECHO_C" >&6
19443 else
19445 if test "$cross_compiling" = yes; then
19446 samba_cv_HAVE_ROOT=cross
19447 else
19448 cat >conftest.$ac_ext <<_ACEOF
19449 #line $LINENO "configure"
19450 #include "confdefs.h"
19451 main() { exit(getuid() != 0); }
19452 _ACEOF
19453 rm -f conftest$ac_exeext
19454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19455 (eval $ac_link) 2>&5
19456 ac_status=$?
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460 (eval $ac_try) 2>&5
19461 ac_status=$?
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; }; then
19464 samba_cv_HAVE_ROOT=yes
19465 else
19466 echo "$as_me: program exited with status $ac_status" >&5
19467 echo "$as_me: failed program was:" >&5
19468 cat conftest.$ac_ext >&5
19469 ( exit $ac_status )
19470 samba_cv_HAVE_ROOT=no
19472 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19475 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ROOT" >&5
19476 echo "${ECHO_T}$samba_cv_HAVE_ROOT" >&6
19477 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
19479 cat >>confdefs.h <<\_ACEOF
19480 #define HAVE_ROOT 1
19481 _ACEOF
19483 else
19484 { echo "$as_me:$LINENO: WARNING: running as non-root will disable some tests" >&5
19485 echo "$as_me: WARNING: running as non-root will disable some tests" >&2;}
19488 ##################
19489 # look for a method of finding the list of network interfaces
19490 iface=no;
19491 echo "$as_me:$LINENO: checking for iface AIX" >&5
19492 echo $ECHO_N "checking for iface AIX... $ECHO_C" >&6
19493 if test "${samba_cv_HAVE_IFACE_AIX+set}" = set; then
19494 echo $ECHO_N "(cached) $ECHO_C" >&6
19495 else
19497 if test "$cross_compiling" = yes; then
19498 samba_cv_HAVE_IFACE_AIX=cross
19499 else
19500 cat >conftest.$ac_ext <<_ACEOF
19501 #line $LINENO "configure"
19502 #include "confdefs.h"
19504 #define HAVE_IFACE_AIX 1
19505 #define AUTOCONF_TEST 1
19506 #include "confdefs.h"
19507 #include "${srcdir-.}/lib/interfaces.c"
19508 _ACEOF
19509 rm -f conftest$ac_exeext
19510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19511 (eval $ac_link) 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516 (eval $ac_try) 2>&5
19517 ac_status=$?
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; }; then
19520 samba_cv_HAVE_IFACE_AIX=yes
19521 else
19522 echo "$as_me: program exited with status $ac_status" >&5
19523 echo "$as_me: failed program was:" >&5
19524 cat conftest.$ac_ext >&5
19525 ( exit $ac_status )
19526 samba_cv_HAVE_IFACE_AIX=no
19528 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19531 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_AIX" >&5
19532 echo "${ECHO_T}$samba_cv_HAVE_IFACE_AIX" >&6
19533 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
19534 iface=yes;
19535 cat >>confdefs.h <<\_ACEOF
19536 #define HAVE_IFACE_AIX 1
19537 _ACEOF
19541 if test $iface = no; then
19542 echo "$as_me:$LINENO: checking for iface ifconf" >&5
19543 echo $ECHO_N "checking for iface ifconf... $ECHO_C" >&6
19544 if test "${samba_cv_HAVE_IFACE_IFCONF+set}" = set; then
19545 echo $ECHO_N "(cached) $ECHO_C" >&6
19546 else
19548 if test "$cross_compiling" = yes; then
19549 samba_cv_HAVE_IFACE_IFCONF=cross
19550 else
19551 cat >conftest.$ac_ext <<_ACEOF
19552 #line $LINENO "configure"
19553 #include "confdefs.h"
19555 #define HAVE_IFACE_IFCONF 1
19556 #define AUTOCONF_TEST 1
19557 #include "confdefs.h"
19558 #include "${srcdir-.}/lib/interfaces.c"
19559 _ACEOF
19560 rm -f conftest$ac_exeext
19561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19562 (eval $ac_link) 2>&5
19563 ac_status=$?
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567 (eval $ac_try) 2>&5
19568 ac_status=$?
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; }; then
19571 samba_cv_HAVE_IFACE_IFCONF=yes
19572 else
19573 echo "$as_me: program exited with status $ac_status" >&5
19574 echo "$as_me: failed program was:" >&5
19575 cat conftest.$ac_ext >&5
19576 ( exit $ac_status )
19577 samba_cv_HAVE_IFACE_IFCONF=no
19579 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19582 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFCONF" >&5
19583 echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFCONF" >&6
19584 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
19585 iface=yes;
19586 cat >>confdefs.h <<\_ACEOF
19587 #define HAVE_IFACE_IFCONF 1
19588 _ACEOF
19593 if test $iface = no; then
19594 echo "$as_me:$LINENO: checking for iface ifreq" >&5
19595 echo $ECHO_N "checking for iface ifreq... $ECHO_C" >&6
19596 if test "${samba_cv_HAVE_IFACE_IFREQ+set}" = set; then
19597 echo $ECHO_N "(cached) $ECHO_C" >&6
19598 else
19600 if test "$cross_compiling" = yes; then
19601 samba_cv_HAVE_IFACE_IFREQ=cross
19602 else
19603 cat >conftest.$ac_ext <<_ACEOF
19604 #line $LINENO "configure"
19605 #include "confdefs.h"
19607 #define HAVE_IFACE_IFREQ 1
19608 #define AUTOCONF_TEST 1
19609 #include "confdefs.h"
19610 #include "${srcdir-.}/lib/interfaces.c"
19611 _ACEOF
19612 rm -f conftest$ac_exeext
19613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19614 (eval $ac_link) 2>&5
19615 ac_status=$?
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619 (eval $ac_try) 2>&5
19620 ac_status=$?
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); }; }; then
19623 samba_cv_HAVE_IFACE_IFREQ=yes
19624 else
19625 echo "$as_me: program exited with status $ac_status" >&5
19626 echo "$as_me: failed program was:" >&5
19627 cat conftest.$ac_ext >&5
19628 ( exit $ac_status )
19629 samba_cv_HAVE_IFACE_IFREQ=no
19631 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19634 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFREQ" >&5
19635 echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFREQ" >&6
19636 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
19637 iface=yes;
19638 cat >>confdefs.h <<\_ACEOF
19639 #define HAVE_IFACE_IFREQ 1
19640 _ACEOF
19646 ################################################
19647 # look for a method of setting the effective uid
19648 seteuid=no;
19649 if test $seteuid = no; then
19650 echo "$as_me:$LINENO: checking for setresuid" >&5
19651 echo $ECHO_N "checking for setresuid... $ECHO_C" >&6
19652 if test "${samba_cv_USE_SETRESUID+set}" = set; then
19653 echo $ECHO_N "(cached) $ECHO_C" >&6
19654 else
19656 if test "$cross_compiling" = yes; then
19657 samba_cv_USE_SETRESUID=cross
19658 else
19659 cat >conftest.$ac_ext <<_ACEOF
19660 #line $LINENO "configure"
19661 #include "confdefs.h"
19663 #define AUTOCONF_TEST 1
19664 #define USE_SETRESUID 1
19665 #include "confdefs.h"
19666 #include "${srcdir-.}/lib/util_sec.c"
19667 _ACEOF
19668 rm -f conftest$ac_exeext
19669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19670 (eval $ac_link) 2>&5
19671 ac_status=$?
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19675 (eval $ac_try) 2>&5
19676 ac_status=$?
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); }; }; then
19679 samba_cv_USE_SETRESUID=yes
19680 else
19681 echo "$as_me: program exited with status $ac_status" >&5
19682 echo "$as_me: failed program was:" >&5
19683 cat conftest.$ac_ext >&5
19684 ( exit $ac_status )
19685 samba_cv_USE_SETRESUID=no
19687 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19690 echo "$as_me:$LINENO: result: $samba_cv_USE_SETRESUID" >&5
19691 echo "${ECHO_T}$samba_cv_USE_SETRESUID" >&6
19692 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
19693 seteuid=yes;
19694 cat >>confdefs.h <<\_ACEOF
19695 #define USE_SETRESUID 1
19696 _ACEOF
19702 if test $seteuid = no; then
19703 echo "$as_me:$LINENO: checking for setreuid" >&5
19704 echo $ECHO_N "checking for setreuid... $ECHO_C" >&6
19705 if test "${samba_cv_USE_SETREUID+set}" = set; then
19706 echo $ECHO_N "(cached) $ECHO_C" >&6
19707 else
19709 if test "$cross_compiling" = yes; then
19710 samba_cv_USE_SETREUID=cross
19711 else
19712 cat >conftest.$ac_ext <<_ACEOF
19713 #line $LINENO "configure"
19714 #include "confdefs.h"
19716 #define AUTOCONF_TEST 1
19717 #define USE_SETREUID 1
19718 #include "confdefs.h"
19719 #include "${srcdir-.}/lib/util_sec.c"
19720 _ACEOF
19721 rm -f conftest$ac_exeext
19722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19723 (eval $ac_link) 2>&5
19724 ac_status=$?
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19729 ac_status=$?
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; }; then
19732 samba_cv_USE_SETREUID=yes
19733 else
19734 echo "$as_me: program exited with status $ac_status" >&5
19735 echo "$as_me: failed program was:" >&5
19736 cat conftest.$ac_ext >&5
19737 ( exit $ac_status )
19738 samba_cv_USE_SETREUID=no
19740 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19743 echo "$as_me:$LINENO: result: $samba_cv_USE_SETREUID" >&5
19744 echo "${ECHO_T}$samba_cv_USE_SETREUID" >&6
19745 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
19746 seteuid=yes;
19747 cat >>confdefs.h <<\_ACEOF
19748 #define USE_SETREUID 1
19749 _ACEOF
19754 if test $seteuid = no; then
19755 echo "$as_me:$LINENO: checking for seteuid" >&5
19756 echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
19757 if test "${samba_cv_USE_SETEUID+set}" = set; then
19758 echo $ECHO_N "(cached) $ECHO_C" >&6
19759 else
19761 if test "$cross_compiling" = yes; then
19762 samba_cv_USE_SETEUID=cross
19763 else
19764 cat >conftest.$ac_ext <<_ACEOF
19765 #line $LINENO "configure"
19766 #include "confdefs.h"
19768 #define AUTOCONF_TEST 1
19769 #define USE_SETEUID 1
19770 #include "confdefs.h"
19771 #include "${srcdir-.}/lib/util_sec.c"
19772 _ACEOF
19773 rm -f conftest$ac_exeext
19774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19775 (eval $ac_link) 2>&5
19776 ac_status=$?
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19781 ac_status=$?
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; }; then
19784 samba_cv_USE_SETEUID=yes
19785 else
19786 echo "$as_me: program exited with status $ac_status" >&5
19787 echo "$as_me: failed program was:" >&5
19788 cat conftest.$ac_ext >&5
19789 ( exit $ac_status )
19790 samba_cv_USE_SETEUID=no
19792 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19795 echo "$as_me:$LINENO: result: $samba_cv_USE_SETEUID" >&5
19796 echo "${ECHO_T}$samba_cv_USE_SETEUID" >&6
19797 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
19798 seteuid=yes;
19799 cat >>confdefs.h <<\_ACEOF
19800 #define USE_SETEUID 1
19801 _ACEOF
19806 if test $seteuid = no; then
19807 echo "$as_me:$LINENO: checking for setuidx" >&5
19808 echo $ECHO_N "checking for setuidx... $ECHO_C" >&6
19809 if test "${samba_cv_USE_SETUIDX+set}" = set; then
19810 echo $ECHO_N "(cached) $ECHO_C" >&6
19811 else
19813 if test "$cross_compiling" = yes; then
19814 samba_cv_USE_SETUIDX=cross
19815 else
19816 cat >conftest.$ac_ext <<_ACEOF
19817 #line $LINENO "configure"
19818 #include "confdefs.h"
19820 #define AUTOCONF_TEST 1
19821 #define USE_SETUIDX 1
19822 #include "confdefs.h"
19823 #include "${srcdir-.}/lib/util_sec.c"
19824 _ACEOF
19825 rm -f conftest$ac_exeext
19826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19827 (eval $ac_link) 2>&5
19828 ac_status=$?
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19832 (eval $ac_try) 2>&5
19833 ac_status=$?
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); }; }; then
19836 samba_cv_USE_SETUIDX=yes
19837 else
19838 echo "$as_me: program exited with status $ac_status" >&5
19839 echo "$as_me: failed program was:" >&5
19840 cat conftest.$ac_ext >&5
19841 ( exit $ac_status )
19842 samba_cv_USE_SETUIDX=no
19844 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19847 echo "$as_me:$LINENO: result: $samba_cv_USE_SETUIDX" >&5
19848 echo "${ECHO_T}$samba_cv_USE_SETUIDX" >&6
19849 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
19850 seteuid=yes;
19851 cat >>confdefs.h <<\_ACEOF
19852 #define USE_SETUIDX 1
19853 _ACEOF
19859 echo "$as_me:$LINENO: checking for working mmap" >&5
19860 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
19861 if test "${samba_cv_HAVE_MMAP+set}" = set; then
19862 echo $ECHO_N "(cached) $ECHO_C" >&6
19863 else
19865 if test "$cross_compiling" = yes; then
19866 samba_cv_HAVE_MMAP=cross
19867 else
19868 cat >conftest.$ac_ext <<_ACEOF
19869 #line $LINENO "configure"
19870 #include "confdefs.h"
19871 #include "${srcdir-.}/tests/shared_mmap.c"
19872 _ACEOF
19873 rm -f conftest$ac_exeext
19874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19875 (eval $ac_link) 2>&5
19876 ac_status=$?
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880 (eval $ac_try) 2>&5
19881 ac_status=$?
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); }; }; then
19884 samba_cv_HAVE_MMAP=yes
19885 else
19886 echo "$as_me: program exited with status $ac_status" >&5
19887 echo "$as_me: failed program was:" >&5
19888 cat conftest.$ac_ext >&5
19889 ( exit $ac_status )
19890 samba_cv_HAVE_MMAP=no
19892 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19895 echo "$as_me:$LINENO: result: $samba_cv_HAVE_MMAP" >&5
19896 echo "${ECHO_T}$samba_cv_HAVE_MMAP" >&6
19897 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
19899 cat >>confdefs.h <<\_ACEOF
19900 #define HAVE_MMAP 1
19901 _ACEOF
19905 echo "$as_me:$LINENO: checking for ftruncate needs root" >&5
19906 echo $ECHO_N "checking for ftruncate needs root... $ECHO_C" >&6
19907 if test "${samba_cv_FTRUNCATE_NEEDS_ROOT+set}" = set; then
19908 echo $ECHO_N "(cached) $ECHO_C" >&6
19909 else
19911 if test "$cross_compiling" = yes; then
19912 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
19913 else
19914 cat >conftest.$ac_ext <<_ACEOF
19915 #line $LINENO "configure"
19916 #include "confdefs.h"
19917 #include "${srcdir-.}/tests/ftruncroot.c"
19918 _ACEOF
19919 rm -f conftest$ac_exeext
19920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19921 (eval $ac_link) 2>&5
19922 ac_status=$?
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926 (eval $ac_try) 2>&5
19927 ac_status=$?
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; }; then
19930 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
19931 else
19932 echo "$as_me: program exited with status $ac_status" >&5
19933 echo "$as_me: failed program was:" >&5
19934 cat conftest.$ac_ext >&5
19935 ( exit $ac_status )
19936 samba_cv_FTRUNCATE_NEEDS_ROOT=no
19938 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19941 echo "$as_me:$LINENO: result: $samba_cv_FTRUNCATE_NEEDS_ROOT" >&5
19942 echo "${ECHO_T}$samba_cv_FTRUNCATE_NEEDS_ROOT" >&6
19943 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
19945 cat >>confdefs.h <<\_ACEOF
19946 #define FTRUNCATE_NEEDS_ROOT 1
19947 _ACEOF
19951 echo "$as_me:$LINENO: checking for fcntl locking" >&5
19952 echo $ECHO_N "checking for fcntl locking... $ECHO_C" >&6
19953 if test "${samba_cv_HAVE_FCNTL_LOCK+set}" = set; then
19954 echo $ECHO_N "(cached) $ECHO_C" >&6
19955 else
19957 if test "$cross_compiling" = yes; then
19958 samba_cv_HAVE_FCNTL_LOCK=cross
19959 else
19960 cat >conftest.$ac_ext <<_ACEOF
19961 #line $LINENO "configure"
19962 #include "confdefs.h"
19963 #include "${srcdir-.}/tests/fcntl_lock.c"
19964 _ACEOF
19965 rm -f conftest$ac_exeext
19966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19967 (eval $ac_link) 2>&5
19968 ac_status=$?
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19972 (eval $ac_try) 2>&5
19973 ac_status=$?
19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); }; }; then
19976 samba_cv_HAVE_FCNTL_LOCK=yes
19977 else
19978 echo "$as_me: program exited with status $ac_status" >&5
19979 echo "$as_me: failed program was:" >&5
19980 cat conftest.$ac_ext >&5
19981 ( exit $ac_status )
19982 samba_cv_HAVE_FCNTL_LOCK=no
19984 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19987 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FCNTL_LOCK" >&5
19988 echo "${ECHO_T}$samba_cv_HAVE_FCNTL_LOCK" >&6
19989 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
19991 cat >>confdefs.h <<\_ACEOF
19992 #define HAVE_FCNTL_LOCK 1
19993 _ACEOF
19997 echo "$as_me:$LINENO: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
19998 echo $ECHO_N "checking for broken (glibc2.1/x86) 64 bit fcntl locking... $ECHO_C" >&6
19999 if test "${samba_cv_HAVE_BROKEN_FCNTL64_LOCKS+set}" = set; then
20000 echo $ECHO_N "(cached) $ECHO_C" >&6
20001 else
20003 if test "$cross_compiling" = yes; then
20004 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
20005 else
20006 cat >conftest.$ac_ext <<_ACEOF
20007 #line $LINENO "configure"
20008 #include "confdefs.h"
20009 #include "${srcdir-.}/tests/fcntl_lock64.c"
20010 _ACEOF
20011 rm -f conftest$ac_exeext
20012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20013 (eval $ac_link) 2>&5
20014 ac_status=$?
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20018 (eval $ac_try) 2>&5
20019 ac_status=$?
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); }; }; then
20022 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
20023 else
20024 echo "$as_me: program exited with status $ac_status" >&5
20025 echo "$as_me: failed program was:" >&5
20026 cat conftest.$ac_ext >&5
20027 ( exit $ac_status )
20028 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
20030 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20033 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&5
20034 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&6
20035 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
20037 cat >>confdefs.h <<\_ACEOF
20038 #define HAVE_BROKEN_FCNTL64_LOCKS 1
20039 _ACEOF
20042 else
20045 echo "$as_me:$LINENO: checking for 64 bit fcntl locking" >&5
20046 echo $ECHO_N "checking for 64 bit fcntl locking... $ECHO_C" >&6
20047 if test "${samba_cv_HAVE_STRUCT_FLOCK64+set}" = set; then
20048 echo $ECHO_N "(cached) $ECHO_C" >&6
20049 else
20051 if test "$cross_compiling" = yes; then
20052 samba_cv_HAVE_STRUCT_FLOCK64=cross
20053 else
20054 cat >conftest.$ac_ext <<_ACEOF
20055 #line $LINENO "configure"
20056 #include "confdefs.h"
20058 #if defined(HAVE_UNISTD_H)
20059 #include <unistd.h>
20060 #endif
20061 #include <stdio.h>
20062 #include <stdlib.h>
20064 #ifdef HAVE_FCNTL_H
20065 #include <fcntl.h>
20066 #endif
20068 #ifdef HAVE_SYS_FCNTL_H
20069 #include <sys/fcntl.h>
20070 #endif
20071 main() { struct flock64 fl64;
20072 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
20073 exit(0);
20074 #else
20075 exit(1);
20076 #endif
20078 _ACEOF
20079 rm -f conftest$ac_exeext
20080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20081 (eval $ac_link) 2>&5
20082 ac_status=$?
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086 (eval $ac_try) 2>&5
20087 ac_status=$?
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; }; then
20090 samba_cv_HAVE_STRUCT_FLOCK64=yes
20091 else
20092 echo "$as_me: program exited with status $ac_status" >&5
20093 echo "$as_me: failed program was:" >&5
20094 cat conftest.$ac_ext >&5
20095 ( exit $ac_status )
20096 samba_cv_HAVE_STRUCT_FLOCK64=no
20098 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20101 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_FLOCK64" >&5
20102 echo "${ECHO_T}$samba_cv_HAVE_STRUCT_FLOCK64" >&6
20104 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
20106 cat >>confdefs.h <<\_ACEOF
20107 #define HAVE_STRUCT_FLOCK64 1
20108 _ACEOF
20113 echo "$as_me:$LINENO: checking for st_blocks in struct stat" >&5
20114 echo $ECHO_N "checking for st_blocks in struct stat... $ECHO_C" >&6
20115 if test "${samba_cv_HAVE_STAT_ST_BLOCKS+set}" = set; then
20116 echo $ECHO_N "(cached) $ECHO_C" >&6
20117 else
20119 cat >conftest.$ac_ext <<_ACEOF
20120 #line $LINENO "configure"
20121 #include "confdefs.h"
20122 #include <sys/types.h>
20123 #include <sys/stat.h>
20124 #include <unistd.h>
20125 #ifdef F77_DUMMY_MAIN
20126 # ifdef __cplusplus
20127 extern "C"
20128 # endif
20129 int F77_DUMMY_MAIN() { return 1; }
20130 #endif
20132 main ()
20134 struct stat st; st.st_blocks = 0;
20136 return 0;
20138 _ACEOF
20139 rm -f conftest.$ac_objext
20140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20141 (eval $ac_compile) 2>&5
20142 ac_status=$?
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } &&
20145 { ac_try='test -s conftest.$ac_objext'
20146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147 (eval $ac_try) 2>&5
20148 ac_status=$?
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); }; }; then
20151 samba_cv_HAVE_STAT_ST_BLOCKS=yes
20152 else
20153 echo "$as_me: failed program was:" >&5
20154 cat conftest.$ac_ext >&5
20155 samba_cv_HAVE_STAT_ST_BLOCKS=no
20157 rm -f conftest.$ac_objext conftest.$ac_ext
20159 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLOCKS" >&5
20160 echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLOCKS" >&6
20161 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
20163 cat >>confdefs.h <<\_ACEOF
20164 #define HAVE_STAT_ST_BLOCKS 1
20165 _ACEOF
20169 echo "$as_me:$LINENO: checking for st_blksize in struct stat" >&5
20170 echo $ECHO_N "checking for st_blksize in struct stat... $ECHO_C" >&6
20171 if test "${samba_cv_HAVE_STAT_ST_BLKSIZE+set}" = set; then
20172 echo $ECHO_N "(cached) $ECHO_C" >&6
20173 else
20175 cat >conftest.$ac_ext <<_ACEOF
20176 #line $LINENO "configure"
20177 #include "confdefs.h"
20178 #include <sys/types.h>
20179 #include <sys/stat.h>
20180 #include <unistd.h>
20181 #ifdef F77_DUMMY_MAIN
20182 # ifdef __cplusplus
20183 extern "C"
20184 # endif
20185 int F77_DUMMY_MAIN() { return 1; }
20186 #endif
20188 main ()
20190 struct stat st; st.st_blksize = 0;
20192 return 0;
20194 _ACEOF
20195 rm -f conftest.$ac_objext
20196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20197 (eval $ac_compile) 2>&5
20198 ac_status=$?
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } &&
20201 { ac_try='test -s conftest.$ac_objext'
20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203 (eval $ac_try) 2>&5
20204 ac_status=$?
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; }; then
20207 samba_cv_HAVE_STAT_ST_BLKSIZE=yes
20208 else
20209 echo "$as_me: failed program was:" >&5
20210 cat conftest.$ac_ext >&5
20211 samba_cv_HAVE_STAT_ST_BLKSIZE=no
20213 rm -f conftest.$ac_objext conftest.$ac_ext
20215 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLKSIZE" >&5
20216 echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLKSIZE" >&6
20217 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
20219 cat >>confdefs.h <<\_ACEOF
20220 #define HAVE_STAT_ST_BLKSIZE 1
20221 _ACEOF
20225 case "$host_os" in
20226 *linux*)
20227 echo "$as_me:$LINENO: checking for broken RedHat 7.2 system header files" >&5
20228 echo $ECHO_N "checking for broken RedHat 7.2 system header files... $ECHO_C" >&6
20229 if test "${samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS+set}" = set; then
20230 echo $ECHO_N "(cached) $ECHO_C" >&6
20231 else
20233 cat >conftest.$ac_ext <<_ACEOF
20234 #line $LINENO "configure"
20235 #include "confdefs.h"
20237 #ifdef HAVE_SYS_VFS_H
20238 #include <sys/vfs.h>
20239 #endif
20240 #ifdef HAVE_SYS_CAPABILITY_H
20241 #include <sys/capability.h>
20242 #endif
20244 #ifdef F77_DUMMY_MAIN
20245 # ifdef __cplusplus
20246 extern "C"
20247 # endif
20248 int F77_DUMMY_MAIN() { return 1; }
20249 #endif
20251 main ()
20253 int i;
20255 return 0;
20257 _ACEOF
20258 rm -f conftest.$ac_objext
20259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20260 (eval $ac_compile) 2>&5
20261 ac_status=$?
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } &&
20264 { ac_try='test -s conftest.$ac_objext'
20265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20266 (eval $ac_try) 2>&5
20267 ac_status=$?
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); }; }; then
20270 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
20271 else
20272 echo "$as_me: failed program was:" >&5
20273 cat conftest.$ac_ext >&5
20274 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
20276 rm -f conftest.$ac_objext conftest.$ac_ext
20278 echo "$as_me:$LINENO: result: $samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&5
20279 echo "${ECHO_T}$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&6
20280 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
20282 cat >>confdefs.h <<\_ACEOF
20283 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
20284 _ACEOF
20288 esac
20290 echo "$as_me:$LINENO: checking for broken nisplus include files" >&5
20291 echo $ECHO_N "checking for broken nisplus include files... $ECHO_C" >&6
20292 if test "${samba_cv_BROKEN_NISPLUS_INCLUDE_FILES+set}" = set; then
20293 echo $ECHO_N "(cached) $ECHO_C" >&6
20294 else
20296 cat >conftest.$ac_ext <<_ACEOF
20297 #line $LINENO "configure"
20298 #include "confdefs.h"
20299 #include <sys/acl.h>
20300 #if defined(HAVE_RPCSVC_NIS_H)
20301 #include <rpcsvc/nis.h>
20302 #endif
20303 #ifdef F77_DUMMY_MAIN
20304 # ifdef __cplusplus
20305 extern "C"
20306 # endif
20307 int F77_DUMMY_MAIN() { return 1; }
20308 #endif
20310 main ()
20312 int i;
20314 return 0;
20316 _ACEOF
20317 rm -f conftest.$ac_objext
20318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20319 (eval $ac_compile) 2>&5
20320 ac_status=$?
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); } &&
20323 { ac_try='test -s conftest.$ac_objext'
20324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325 (eval $ac_try) 2>&5
20326 ac_status=$?
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; }; then
20329 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
20330 else
20331 echo "$as_me: failed program was:" >&5
20332 cat conftest.$ac_ext >&5
20333 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
20335 rm -f conftest.$ac_objext conftest.$ac_ext
20337 echo "$as_me:$LINENO: result: $samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&5
20338 echo "${ECHO_T}$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&6
20339 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
20341 cat >>confdefs.h <<\_ACEOF
20342 #define BROKEN_NISPLUS_INCLUDE_FILES 1
20343 _ACEOF
20348 #################################################
20349 # check for smbwrapper support
20350 echo "$as_me:$LINENO: checking whether to use smbwrapper" >&5
20351 echo $ECHO_N "checking whether to use smbwrapper... $ECHO_C" >&6
20353 # Check whether --with-smbwrapper or --without-smbwrapper was given.
20354 if test "${with_smbwrapper+set}" = set; then
20355 withval="$with_smbwrapper"
20356 case "$withval" in
20357 yes)
20358 echo "$as_me:$LINENO: result: yes" >&5
20359 echo "${ECHO_T}yes" >&6
20361 cat >>confdefs.h <<\_ACEOF
20362 #define WITH_SMBWRAPPER 1
20363 _ACEOF
20365 WRAPPROG="bin/smbsh\$(EXEEXT)"
20366 WRAP="bin/smbwrapper.$SHLIBEXT"
20368 if test x$ATTEMPT_WRAP32_BUILD = x; then
20369 WRAP32=""
20370 else
20371 WRAP32=bin/smbwrapper.32.$SHLIBEXT
20374 # Conditions under which smbwrapper should not be built.
20376 if test x$PICFLAG = x; then
20377 echo No support for PIC code - disabling smbwrapper and smbsh
20378 WRAPPROG=""
20379 WRAP=""
20380 WRAP32=""
20381 elif test x$ac_cv_func_syscall = xno; then
20382 echo "$as_me:$LINENO: result: No syscall() -- disabling smbwrapper and smbsh" >&5
20383 echo "${ECHO_T}No syscall() -- disabling smbwrapper and smbsh" >&6
20384 WRAPPROG=""
20385 WRAP=""
20386 WRAP32=""
20388 EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS $WRAPPROG $WRAP $WRAP32"
20389 SMBWRAPPER="$WRAPPROG $WRAP $WRAP32"
20392 echo "$as_me:$LINENO: result: no" >&5
20393 echo "${ECHO_T}no" >&6
20395 esac
20396 else
20397 echo "$as_me:$LINENO: result: no" >&5
20398 echo "${ECHO_T}no" >&6
20402 #################################################
20403 # check for AFS clear-text auth support
20404 echo "$as_me:$LINENO: checking whether to use AFS clear-text auth" >&5
20405 echo $ECHO_N "checking whether to use AFS clear-text auth... $ECHO_C" >&6
20407 # Check whether --with-afs or --without-afs was given.
20408 if test "${with_afs+set}" = set; then
20409 withval="$with_afs"
20410 case "$withval" in
20411 yes)
20412 echo "$as_me:$LINENO: result: yes" >&5
20413 echo "${ECHO_T}yes" >&6
20415 cat >>confdefs.h <<\_ACEOF
20416 #define WITH_AFS 1
20417 _ACEOF
20421 echo "$as_me:$LINENO: result: no" >&5
20422 echo "${ECHO_T}no" >&6
20424 esac
20425 else
20426 echo "$as_me:$LINENO: result: no" >&5
20427 echo "${ECHO_T}no" >&6
20432 #################################################
20433 # check for the DFS clear-text auth system
20434 echo "$as_me:$LINENO: checking whether to use DFS clear-text auth" >&5
20435 echo $ECHO_N "checking whether to use DFS clear-text auth... $ECHO_C" >&6
20437 # Check whether --with-dfs or --without-dfs was given.
20438 if test "${with_dfs+set}" = set; then
20439 withval="$with_dfs"
20440 case "$withval" in
20441 yes)
20442 echo "$as_me:$LINENO: result: yes" >&5
20443 echo "${ECHO_T}yes" >&6
20445 cat >>confdefs.h <<\_ACEOF
20446 #define WITH_DFS 1
20447 _ACEOF
20451 echo "$as_me:$LINENO: result: no" >&5
20452 echo "${ECHO_T}no" >&6
20454 esac
20455 else
20456 echo "$as_me:$LINENO: result: no" >&5
20457 echo "${ECHO_T}no" >&6
20461 #################################################
20462 # active directory support
20464 with_ads_support=yes
20465 echo "$as_me:$LINENO: checking whether to use Active Directory" >&5
20466 echo $ECHO_N "checking whether to use Active Directory... $ECHO_C" >&6
20469 # Check whether --with-ads or --without-ads was given.
20470 if test "${with_ads+set}" = set; then
20471 withval="$with_ads"
20472 case "$withval" in
20474 with_ads_support=no
20476 esac
20479 if test x"$with_ads_support" = x"yes"; then
20481 cat >>confdefs.h <<\_ACEOF
20482 #define WITH_ADS 1
20483 _ACEOF
20487 echo "$as_me:$LINENO: result: $with_ads_support" >&5
20488 echo "${ECHO_T}$with_ads_support" >&6
20490 FOUND_KRB5=no
20491 if test x"$with_ads_support" = x"yes"; then
20493 #################################################
20494 # check for location of Kerberos 5 install
20495 echo "$as_me:$LINENO: checking for kerberos 5 install path" >&5
20496 echo $ECHO_N "checking for kerberos 5 install path... $ECHO_C" >&6
20498 # Check whether --with-krb5 or --without-krb5 was given.
20499 if test "${with_krb5+set}" = set; then
20500 withval="$with_krb5"
20501 case "$withval" in
20503 echo "$as_me:$LINENO: result: no" >&5
20504 echo "${ECHO_T}no" >&6
20507 echo "$as_me:$LINENO: result: yes" >&5
20508 echo "${ECHO_T}yes" >&6
20509 LIBS="$LIBS -lkrb5"
20510 CFLAGS="$CFLAGS -I$withval/include"
20511 CPPFLAGS="$CPPFLAGS -I$withval/include"
20512 LDFLAGS="$LDFLAGS -L$withval/lib"
20513 FOUND_KRB5=yes
20515 esac
20516 else
20517 echo "$as_me:$LINENO: result: no" >&5
20518 echo "${ECHO_T}no" >&6
20523 if test x$FOUND_KRB5 = x"no"; then
20524 #################################################
20525 # see if this box has the SuSE location for the heimdal kerberos implementation
20526 echo "$as_me:$LINENO: checking for /usr/include/heimdal" >&5
20527 echo $ECHO_N "checking for /usr/include/heimdal... $ECHO_C" >&6
20528 if test -d /usr/include/heimdal -a -f /usr/lib/heimdal/lib/libkrb5.a; then
20529 LIBS="$LIBS -lkrb5"
20530 CFLAGS="$CFLAGS -I/usr/include/heimdal"
20531 CPPFLAGS="$CPPFLAGS -I/usr/include/heimdal"
20532 echo "$as_me:$LINENO: result: yes" >&5
20533 echo "${ECHO_T}yes" >&6
20534 else
20535 echo "$as_me:$LINENO: result: no" >&5
20536 echo "${ECHO_T}no" >&6
20541 if test x$FOUND_KRB5 = x"no"; then
20542 #################################################
20543 # see if this box has the RedHat location for kerberos
20544 echo "$as_me:$LINENO: checking for /usr/kerberos" >&5
20545 echo $ECHO_N "checking for /usr/kerberos... $ECHO_C" >&6
20546 if test -d /usr/kerberos -a -f /usr/kerberos/lib/libkrb5.a ; then
20547 LIBS="$LIBS -lkrb5"
20548 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
20549 CFLAGS="$CFLAGS -I/usr/kerberos/include"
20550 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
20551 echo "$as_me:$LINENO: result: yes" >&5
20552 echo "${ECHO_T}yes" >&6
20553 else
20554 echo "$as_me:$LINENO: result: no" >&5
20555 echo "${ECHO_T}no" >&6
20560 # now check for krb5.h. Some systems have the libraries without the headers!
20561 # note that this check is done here to allow for different kerberos
20562 # include paths
20564 for ac_header in krb5.h
20566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20568 echo "$as_me:$LINENO: checking for $ac_header" >&5
20569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20571 echo $ECHO_N "(cached) $ECHO_C" >&6
20573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20575 else
20576 # Is the header compilable?
20577 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20579 cat >conftest.$ac_ext <<_ACEOF
20580 #line $LINENO "configure"
20581 #include "confdefs.h"
20582 $ac_includes_default
20583 #include <$ac_header>
20584 _ACEOF
20585 rm -f conftest.$ac_objext
20586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20587 (eval $ac_compile) 2>&5
20588 ac_status=$?
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); } &&
20591 { ac_try='test -s conftest.$ac_objext'
20592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20593 (eval $ac_try) 2>&5
20594 ac_status=$?
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); }; }; then
20597 ac_header_compiler=yes
20598 else
20599 echo "$as_me: failed program was:" >&5
20600 cat conftest.$ac_ext >&5
20601 ac_header_compiler=no
20603 rm -f conftest.$ac_objext conftest.$ac_ext
20604 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20605 echo "${ECHO_T}$ac_header_compiler" >&6
20607 # Is the header present?
20608 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20610 cat >conftest.$ac_ext <<_ACEOF
20611 #line $LINENO "configure"
20612 #include "confdefs.h"
20613 #include <$ac_header>
20614 _ACEOF
20615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20617 ac_status=$?
20618 egrep -v '^ *\+' conftest.er1 >conftest.err
20619 rm -f conftest.er1
20620 cat conftest.err >&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); } >/dev/null; then
20623 if test -s conftest.err; then
20624 ac_cpp_err=$ac_c_preproc_warn_flag
20625 else
20626 ac_cpp_err=
20628 else
20629 ac_cpp_err=yes
20631 if test -z "$ac_cpp_err"; then
20632 ac_header_preproc=yes
20633 else
20634 echo "$as_me: failed program was:" >&5
20635 cat conftest.$ac_ext >&5
20636 ac_header_preproc=no
20638 rm -f conftest.err conftest.$ac_ext
20639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20640 echo "${ECHO_T}$ac_header_preproc" >&6
20642 # So? What about this header?
20643 case $ac_header_compiler:$ac_header_preproc in
20644 yes:no )
20645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20649 no:yes )
20650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20656 esac
20657 echo "$as_me:$LINENO: checking for $ac_header" >&5
20658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20660 echo $ECHO_N "(cached) $ECHO_C" >&6
20661 else
20662 eval "$as_ac_Header=$ac_header_preproc"
20664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20669 cat >>confdefs.h <<_ACEOF
20670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20671 _ACEOF
20675 done
20678 # now check for gssapi headers. This is also done here to allow for
20679 # different kerberos include paths
20684 for ac_header in gssapi.h gssapi/gssapi_generic.h gssapi/gssapi.h com_err.h
20686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20688 echo "$as_me:$LINENO: checking for $ac_header" >&5
20689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20691 echo $ECHO_N "(cached) $ECHO_C" >&6
20693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20695 else
20696 # Is the header compilable?
20697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20699 cat >conftest.$ac_ext <<_ACEOF
20700 #line $LINENO "configure"
20701 #include "confdefs.h"
20702 $ac_includes_default
20703 #include <$ac_header>
20704 _ACEOF
20705 rm -f conftest.$ac_objext
20706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20707 (eval $ac_compile) 2>&5
20708 ac_status=$?
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); } &&
20711 { ac_try='test -s conftest.$ac_objext'
20712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20713 (eval $ac_try) 2>&5
20714 ac_status=$?
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); }; }; then
20717 ac_header_compiler=yes
20718 else
20719 echo "$as_me: failed program was:" >&5
20720 cat conftest.$ac_ext >&5
20721 ac_header_compiler=no
20723 rm -f conftest.$ac_objext conftest.$ac_ext
20724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20725 echo "${ECHO_T}$ac_header_compiler" >&6
20727 # Is the header present?
20728 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20730 cat >conftest.$ac_ext <<_ACEOF
20731 #line $LINENO "configure"
20732 #include "confdefs.h"
20733 #include <$ac_header>
20734 _ACEOF
20735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20737 ac_status=$?
20738 egrep -v '^ *\+' conftest.er1 >conftest.err
20739 rm -f conftest.er1
20740 cat conftest.err >&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); } >/dev/null; then
20743 if test -s conftest.err; then
20744 ac_cpp_err=$ac_c_preproc_warn_flag
20745 else
20746 ac_cpp_err=
20748 else
20749 ac_cpp_err=yes
20751 if test -z "$ac_cpp_err"; then
20752 ac_header_preproc=yes
20753 else
20754 echo "$as_me: failed program was:" >&5
20755 cat conftest.$ac_ext >&5
20756 ac_header_preproc=no
20758 rm -f conftest.err conftest.$ac_ext
20759 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20760 echo "${ECHO_T}$ac_header_preproc" >&6
20762 # So? What about this header?
20763 case $ac_header_compiler:$ac_header_preproc in
20764 yes:no )
20765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20769 no:yes )
20770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20776 esac
20777 echo "$as_me:$LINENO: checking for $ac_header" >&5
20778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20780 echo $ECHO_N "(cached) $ECHO_C" >&6
20781 else
20782 eval "$as_ac_Header=$ac_header_preproc"
20784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20789 cat >>confdefs.h <<_ACEOF
20790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20791 _ACEOF
20795 done
20798 ##################################################################
20799 # we might need the k5crypto and com_err libraries on some systems
20800 echo "$as_me:$LINENO: checking for _et_list in -lcom_err" >&5
20801 echo $ECHO_N "checking for _et_list in -lcom_err... $ECHO_C" >&6
20802 if test "${ac_cv_lib_com_err__et_list+set}" = set; then
20803 echo $ECHO_N "(cached) $ECHO_C" >&6
20804 else
20805 ac_check_lib_save_LIBS=$LIBS
20806 LIBS="-lcom_err $LIBS"
20807 cat >conftest.$ac_ext <<_ACEOF
20808 #line $LINENO "configure"
20809 #include "confdefs.h"
20811 /* Override any gcc2 internal prototype to avoid an error. */
20812 #ifdef __cplusplus
20813 extern "C"
20814 #endif
20815 /* We use char because int might match the return type of a gcc2
20816 builtin and then its argument prototype would still apply. */
20817 char _et_list ();
20818 #ifdef F77_DUMMY_MAIN
20819 # ifdef __cplusplus
20820 extern "C"
20821 # endif
20822 int F77_DUMMY_MAIN() { return 1; }
20823 #endif
20825 main ()
20827 _et_list ();
20829 return 0;
20831 _ACEOF
20832 rm -f conftest.$ac_objext conftest$ac_exeext
20833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20834 (eval $ac_link) 2>&5
20835 ac_status=$?
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); } &&
20838 { ac_try='test -s conftest$ac_exeext'
20839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20840 (eval $ac_try) 2>&5
20841 ac_status=$?
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); }; }; then
20844 ac_cv_lib_com_err__et_list=yes
20845 else
20846 echo "$as_me: failed program was:" >&5
20847 cat conftest.$ac_ext >&5
20848 ac_cv_lib_com_err__et_list=no
20850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20851 LIBS=$ac_check_lib_save_LIBS
20853 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err__et_list" >&5
20854 echo "${ECHO_T}$ac_cv_lib_com_err__et_list" >&6
20855 if test $ac_cv_lib_com_err__et_list = yes; then
20856 LIBS="$LIBS -lcom_err"
20859 echo "$as_me:$LINENO: checking for krb5_encrypt_data in -lk5crypto" >&5
20860 echo $ECHO_N "checking for krb5_encrypt_data in -lk5crypto... $ECHO_C" >&6
20861 if test "${ac_cv_lib_k5crypto_krb5_encrypt_data+set}" = set; then
20862 echo $ECHO_N "(cached) $ECHO_C" >&6
20863 else
20864 ac_check_lib_save_LIBS=$LIBS
20865 LIBS="-lk5crypto $LIBS"
20866 cat >conftest.$ac_ext <<_ACEOF
20867 #line $LINENO "configure"
20868 #include "confdefs.h"
20870 /* Override any gcc2 internal prototype to avoid an error. */
20871 #ifdef __cplusplus
20872 extern "C"
20873 #endif
20874 /* We use char because int might match the return type of a gcc2
20875 builtin and then its argument prototype would still apply. */
20876 char krb5_encrypt_data ();
20877 #ifdef F77_DUMMY_MAIN
20878 # ifdef __cplusplus
20879 extern "C"
20880 # endif
20881 int F77_DUMMY_MAIN() { return 1; }
20882 #endif
20884 main ()
20886 krb5_encrypt_data ();
20888 return 0;
20890 _ACEOF
20891 rm -f conftest.$ac_objext conftest$ac_exeext
20892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20893 (eval $ac_link) 2>&5
20894 ac_status=$?
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); } &&
20897 { ac_try='test -s conftest$ac_exeext'
20898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20899 (eval $ac_try) 2>&5
20900 ac_status=$?
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); }; }; then
20903 ac_cv_lib_k5crypto_krb5_encrypt_data=yes
20904 else
20905 echo "$as_me: failed program was:" >&5
20906 cat conftest.$ac_ext >&5
20907 ac_cv_lib_k5crypto_krb5_encrypt_data=no
20909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20910 LIBS=$ac_check_lib_save_LIBS
20912 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_krb5_encrypt_data" >&5
20913 echo "${ECHO_T}$ac_cv_lib_k5crypto_krb5_encrypt_data" >&6
20914 if test $ac_cv_lib_k5crypto_krb5_encrypt_data = yes; then
20915 LIBS="$LIBS -lk5crypto"
20918 # Heimdal checks.
20919 echo "$as_me:$LINENO: checking for des_set_key in -lcrypto" >&5
20920 echo $ECHO_N "checking for des_set_key in -lcrypto... $ECHO_C" >&6
20921 if test "${ac_cv_lib_crypto_des_set_key+set}" = set; then
20922 echo $ECHO_N "(cached) $ECHO_C" >&6
20923 else
20924 ac_check_lib_save_LIBS=$LIBS
20925 LIBS="-lcrypto $LIBS"
20926 cat >conftest.$ac_ext <<_ACEOF
20927 #line $LINENO "configure"
20928 #include "confdefs.h"
20930 /* Override any gcc2 internal prototype to avoid an error. */
20931 #ifdef __cplusplus
20932 extern "C"
20933 #endif
20934 /* We use char because int might match the return type of a gcc2
20935 builtin and then its argument prototype would still apply. */
20936 char des_set_key ();
20937 #ifdef F77_DUMMY_MAIN
20938 # ifdef __cplusplus
20939 extern "C"
20940 # endif
20941 int F77_DUMMY_MAIN() { return 1; }
20942 #endif
20944 main ()
20946 des_set_key ();
20948 return 0;
20950 _ACEOF
20951 rm -f conftest.$ac_objext conftest$ac_exeext
20952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20953 (eval $ac_link) 2>&5
20954 ac_status=$?
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); } &&
20957 { ac_try='test -s conftest$ac_exeext'
20958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20959 (eval $ac_try) 2>&5
20960 ac_status=$?
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); }; }; then
20963 ac_cv_lib_crypto_des_set_key=yes
20964 else
20965 echo "$as_me: failed program was:" >&5
20966 cat conftest.$ac_ext >&5
20967 ac_cv_lib_crypto_des_set_key=no
20969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20970 LIBS=$ac_check_lib_save_LIBS
20972 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_set_key" >&5
20973 echo "${ECHO_T}$ac_cv_lib_crypto_des_set_key" >&6
20974 if test $ac_cv_lib_crypto_des_set_key = yes; then
20975 LIBS="$LIBS -lcrypto"
20978 echo "$as_me:$LINENO: checking for copy_Authenticator in -lasn1" >&5
20979 echo $ECHO_N "checking for copy_Authenticator in -lasn1... $ECHO_C" >&6
20980 if test "${ac_cv_lib_asn1_copy_Authenticator+set}" = set; then
20981 echo $ECHO_N "(cached) $ECHO_C" >&6
20982 else
20983 ac_check_lib_save_LIBS=$LIBS
20984 LIBS="-lasn1 $LIBS"
20985 cat >conftest.$ac_ext <<_ACEOF
20986 #line $LINENO "configure"
20987 #include "confdefs.h"
20989 /* Override any gcc2 internal prototype to avoid an error. */
20990 #ifdef __cplusplus
20991 extern "C"
20992 #endif
20993 /* We use char because int might match the return type of a gcc2
20994 builtin and then its argument prototype would still apply. */
20995 char copy_Authenticator ();
20996 #ifdef F77_DUMMY_MAIN
20997 # ifdef __cplusplus
20998 extern "C"
20999 # endif
21000 int F77_DUMMY_MAIN() { return 1; }
21001 #endif
21003 main ()
21005 copy_Authenticator ();
21007 return 0;
21009 _ACEOF
21010 rm -f conftest.$ac_objext conftest$ac_exeext
21011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21012 (eval $ac_link) 2>&5
21013 ac_status=$?
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); } &&
21016 { ac_try='test -s conftest$ac_exeext'
21017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018 (eval $ac_try) 2>&5
21019 ac_status=$?
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); }; }; then
21022 ac_cv_lib_asn1_copy_Authenticator=yes
21023 else
21024 echo "$as_me: failed program was:" >&5
21025 cat conftest.$ac_ext >&5
21026 ac_cv_lib_asn1_copy_Authenticator=no
21028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21029 LIBS=$ac_check_lib_save_LIBS
21031 echo "$as_me:$LINENO: result: $ac_cv_lib_asn1_copy_Authenticator" >&5
21032 echo "${ECHO_T}$ac_cv_lib_asn1_copy_Authenticator" >&6
21033 if test $ac_cv_lib_asn1_copy_Authenticator = yes; then
21034 LIBS="$LIBS -lasn1 -lroken"
21037 # Heimdal checks. On static Heimdal gssapi must be linked before krb5.
21038 echo "$as_me:$LINENO: checking for gss_display_status in -lgssapi" >&5
21039 echo $ECHO_N "checking for gss_display_status in -lgssapi... $ECHO_C" >&6
21040 if test "${ac_cv_lib_gssapi_gss_display_status+set}" = set; then
21041 echo $ECHO_N "(cached) $ECHO_C" >&6
21042 else
21043 ac_check_lib_save_LIBS=$LIBS
21044 LIBS="-lgssapi $LIBS"
21045 cat >conftest.$ac_ext <<_ACEOF
21046 #line $LINENO "configure"
21047 #include "confdefs.h"
21049 /* Override any gcc2 internal prototype to avoid an error. */
21050 #ifdef __cplusplus
21051 extern "C"
21052 #endif
21053 /* We use char because int might match the return type of a gcc2
21054 builtin and then its argument prototype would still apply. */
21055 char gss_display_status ();
21056 #ifdef F77_DUMMY_MAIN
21057 # ifdef __cplusplus
21058 extern "C"
21059 # endif
21060 int F77_DUMMY_MAIN() { return 1; }
21061 #endif
21063 main ()
21065 gss_display_status ();
21067 return 0;
21069 _ACEOF
21070 rm -f conftest.$ac_objext conftest$ac_exeext
21071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21072 (eval $ac_link) 2>&5
21073 ac_status=$?
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); } &&
21076 { ac_try='test -s conftest$ac_exeext'
21077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21078 (eval $ac_try) 2>&5
21079 ac_status=$?
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); }; }; then
21082 ac_cv_lib_gssapi_gss_display_status=yes
21083 else
21084 echo "$as_me: failed program was:" >&5
21085 cat conftest.$ac_ext >&5
21086 ac_cv_lib_gssapi_gss_display_status=no
21088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21089 LIBS=$ac_check_lib_save_LIBS
21091 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_display_status" >&5
21092 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_display_status" >&6
21093 if test $ac_cv_lib_gssapi_gss_display_status = yes; then
21094 LIBS="$LIBS -lgssapi -lkrb5 -lasn1";
21096 cat >>confdefs.h <<\_ACEOF
21097 #define HAVE_GSSAPI 1
21098 _ACEOF
21103 echo "$as_me:$LINENO: checking for krb5_set_real_time in -lkrb5" >&5
21104 echo $ECHO_N "checking for krb5_set_real_time in -lkrb5... $ECHO_C" >&6
21105 if test "${ac_cv_lib_krb5_krb5_set_real_time+set}" = set; then
21106 echo $ECHO_N "(cached) $ECHO_C" >&6
21107 else
21108 ac_check_lib_save_LIBS=$LIBS
21109 LIBS="-lkrb5 $LIBS"
21110 cat >conftest.$ac_ext <<_ACEOF
21111 #line $LINENO "configure"
21112 #include "confdefs.h"
21114 /* Override any gcc2 internal prototype to avoid an error. */
21115 #ifdef __cplusplus
21116 extern "C"
21117 #endif
21118 /* We use char because int might match the return type of a gcc2
21119 builtin and then its argument prototype would still apply. */
21120 char krb5_set_real_time ();
21121 #ifdef F77_DUMMY_MAIN
21122 # ifdef __cplusplus
21123 extern "C"
21124 # endif
21125 int F77_DUMMY_MAIN() { return 1; }
21126 #endif
21128 main ()
21130 krb5_set_real_time ();
21132 return 0;
21134 _ACEOF
21135 rm -f conftest.$ac_objext conftest$ac_exeext
21136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21137 (eval $ac_link) 2>&5
21138 ac_status=$?
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); } &&
21141 { ac_try='test -s conftest$ac_exeext'
21142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143 (eval $ac_try) 2>&5
21144 ac_status=$?
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; }; then
21147 ac_cv_lib_krb5_krb5_set_real_time=yes
21148 else
21149 echo "$as_me: failed program was:" >&5
21150 cat conftest.$ac_ext >&5
21151 ac_cv_lib_krb5_krb5_set_real_time=no
21153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21154 LIBS=$ac_check_lib_save_LIBS
21156 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_set_real_time" >&5
21157 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_set_real_time" >&6
21158 if test $ac_cv_lib_krb5_krb5_set_real_time = yes; then
21160 cat >>confdefs.h <<\_ACEOF
21161 #define HAVE_KRB5_SET_REAL_TIME 1
21162 _ACEOF
21166 echo "$as_me:$LINENO: checking for krb5_set_default_in_tkt_etypes in -lkrb5" >&5
21167 echo $ECHO_N "checking for krb5_set_default_in_tkt_etypes in -lkrb5... $ECHO_C" >&6
21168 if test "${ac_cv_lib_krb5_krb5_set_default_in_tkt_etypes+set}" = set; then
21169 echo $ECHO_N "(cached) $ECHO_C" >&6
21170 else
21171 ac_check_lib_save_LIBS=$LIBS
21172 LIBS="-lkrb5 $LIBS"
21173 cat >conftest.$ac_ext <<_ACEOF
21174 #line $LINENO "configure"
21175 #include "confdefs.h"
21177 /* Override any gcc2 internal prototype to avoid an error. */
21178 #ifdef __cplusplus
21179 extern "C"
21180 #endif
21181 /* We use char because int might match the return type of a gcc2
21182 builtin and then its argument prototype would still apply. */
21183 char krb5_set_default_in_tkt_etypes ();
21184 #ifdef F77_DUMMY_MAIN
21185 # ifdef __cplusplus
21186 extern "C"
21187 # endif
21188 int F77_DUMMY_MAIN() { return 1; }
21189 #endif
21191 main ()
21193 krb5_set_default_in_tkt_etypes ();
21195 return 0;
21197 _ACEOF
21198 rm -f conftest.$ac_objext conftest$ac_exeext
21199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21200 (eval $ac_link) 2>&5
21201 ac_status=$?
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); } &&
21204 { ac_try='test -s conftest$ac_exeext'
21205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21206 (eval $ac_try) 2>&5
21207 ac_status=$?
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); }; }; then
21210 ac_cv_lib_krb5_krb5_set_default_in_tkt_etypes=yes
21211 else
21212 echo "$as_me: failed program was:" >&5
21213 cat conftest.$ac_ext >&5
21214 ac_cv_lib_krb5_krb5_set_default_in_tkt_etypes=no
21216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21217 LIBS=$ac_check_lib_save_LIBS
21219 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_set_default_in_tkt_etypes" >&5
21220 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_set_default_in_tkt_etypes" >&6
21221 if test $ac_cv_lib_krb5_krb5_set_default_in_tkt_etypes = yes; then
21223 cat >>confdefs.h <<\_ACEOF
21224 #define HAVE_KRB5_SET_DEFAULT_IN_TKT_ETYPES 1
21225 _ACEOF
21229 echo "$as_me:$LINENO: checking for krb5_set_default_tgs_ktypes in -lkrb5" >&5
21230 echo $ECHO_N "checking for krb5_set_default_tgs_ktypes in -lkrb5... $ECHO_C" >&6
21231 if test "${ac_cv_lib_krb5_krb5_set_default_tgs_ktypes+set}" = set; then
21232 echo $ECHO_N "(cached) $ECHO_C" >&6
21233 else
21234 ac_check_lib_save_LIBS=$LIBS
21235 LIBS="-lkrb5 $LIBS"
21236 cat >conftest.$ac_ext <<_ACEOF
21237 #line $LINENO "configure"
21238 #include "confdefs.h"
21240 /* Override any gcc2 internal prototype to avoid an error. */
21241 #ifdef __cplusplus
21242 extern "C"
21243 #endif
21244 /* We use char because int might match the return type of a gcc2
21245 builtin and then its argument prototype would still apply. */
21246 char krb5_set_default_tgs_ktypes ();
21247 #ifdef F77_DUMMY_MAIN
21248 # ifdef __cplusplus
21249 extern "C"
21250 # endif
21251 int F77_DUMMY_MAIN() { return 1; }
21252 #endif
21254 main ()
21256 krb5_set_default_tgs_ktypes ();
21258 return 0;
21260 _ACEOF
21261 rm -f conftest.$ac_objext conftest$ac_exeext
21262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21263 (eval $ac_link) 2>&5
21264 ac_status=$?
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); } &&
21267 { ac_try='test -s conftest$ac_exeext'
21268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21269 (eval $ac_try) 2>&5
21270 ac_status=$?
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); }; }; then
21273 ac_cv_lib_krb5_krb5_set_default_tgs_ktypes=yes
21274 else
21275 echo "$as_me: failed program was:" >&5
21276 cat conftest.$ac_ext >&5
21277 ac_cv_lib_krb5_krb5_set_default_tgs_ktypes=no
21279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21280 LIBS=$ac_check_lib_save_LIBS
21282 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_set_default_tgs_ktypes" >&5
21283 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_set_default_tgs_ktypes" >&6
21284 if test $ac_cv_lib_krb5_krb5_set_default_tgs_ktypes = yes; then
21286 cat >>confdefs.h <<\_ACEOF
21287 #define HAVE_KRB5_SET_DEFAULT_TGS_KTYPES 1
21288 _ACEOF
21293 echo "$as_me:$LINENO: checking for krb5_principal2salt in -lkrb5" >&5
21294 echo $ECHO_N "checking for krb5_principal2salt in -lkrb5... $ECHO_C" >&6
21295 if test "${ac_cv_lib_krb5_krb5_principal2salt+set}" = set; then
21296 echo $ECHO_N "(cached) $ECHO_C" >&6
21297 else
21298 ac_check_lib_save_LIBS=$LIBS
21299 LIBS="-lkrb5 $LIBS"
21300 cat >conftest.$ac_ext <<_ACEOF
21301 #line $LINENO "configure"
21302 #include "confdefs.h"
21304 /* Override any gcc2 internal prototype to avoid an error. */
21305 #ifdef __cplusplus
21306 extern "C"
21307 #endif
21308 /* We use char because int might match the return type of a gcc2
21309 builtin and then its argument prototype would still apply. */
21310 char krb5_principal2salt ();
21311 #ifdef F77_DUMMY_MAIN
21312 # ifdef __cplusplus
21313 extern "C"
21314 # endif
21315 int F77_DUMMY_MAIN() { return 1; }
21316 #endif
21318 main ()
21320 krb5_principal2salt ();
21322 return 0;
21324 _ACEOF
21325 rm -f conftest.$ac_objext conftest$ac_exeext
21326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21327 (eval $ac_link) 2>&5
21328 ac_status=$?
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); } &&
21331 { ac_try='test -s conftest$ac_exeext'
21332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21333 (eval $ac_try) 2>&5
21334 ac_status=$?
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); }; }; then
21337 ac_cv_lib_krb5_krb5_principal2salt=yes
21338 else
21339 echo "$as_me: failed program was:" >&5
21340 cat conftest.$ac_ext >&5
21341 ac_cv_lib_krb5_krb5_principal2salt=no
21343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21344 LIBS=$ac_check_lib_save_LIBS
21346 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_principal2salt" >&5
21347 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_principal2salt" >&6
21348 if test $ac_cv_lib_krb5_krb5_principal2salt = yes; then
21350 cat >>confdefs.h <<\_ACEOF
21351 #define HAVE_KRB5_PRINCIPAL2SALT 1
21352 _ACEOF
21356 echo "$as_me:$LINENO: checking for krb5_use_enctype in -lkrb5" >&5
21357 echo $ECHO_N "checking for krb5_use_enctype in -lkrb5... $ECHO_C" >&6
21358 if test "${ac_cv_lib_krb5_krb5_use_enctype+set}" = set; then
21359 echo $ECHO_N "(cached) $ECHO_C" >&6
21360 else
21361 ac_check_lib_save_LIBS=$LIBS
21362 LIBS="-lkrb5 $LIBS"
21363 cat >conftest.$ac_ext <<_ACEOF
21364 #line $LINENO "configure"
21365 #include "confdefs.h"
21367 /* Override any gcc2 internal prototype to avoid an error. */
21368 #ifdef __cplusplus
21369 extern "C"
21370 #endif
21371 /* We use char because int might match the return type of a gcc2
21372 builtin and then its argument prototype would still apply. */
21373 char krb5_use_enctype ();
21374 #ifdef F77_DUMMY_MAIN
21375 # ifdef __cplusplus
21376 extern "C"
21377 # endif
21378 int F77_DUMMY_MAIN() { return 1; }
21379 #endif
21381 main ()
21383 krb5_use_enctype ();
21385 return 0;
21387 _ACEOF
21388 rm -f conftest.$ac_objext conftest$ac_exeext
21389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21390 (eval $ac_link) 2>&5
21391 ac_status=$?
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); } &&
21394 { ac_try='test -s conftest$ac_exeext'
21395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21396 (eval $ac_try) 2>&5
21397 ac_status=$?
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); }; }; then
21400 ac_cv_lib_krb5_krb5_use_enctype=yes
21401 else
21402 echo "$as_me: failed program was:" >&5
21403 cat conftest.$ac_ext >&5
21404 ac_cv_lib_krb5_krb5_use_enctype=no
21406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21407 LIBS=$ac_check_lib_save_LIBS
21409 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_use_enctype" >&5
21410 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_use_enctype" >&6
21411 if test $ac_cv_lib_krb5_krb5_use_enctype = yes; then
21413 cat >>confdefs.h <<\_ACEOF
21414 #define HAVE_KRB5_USE_ENCTYPE 1
21415 _ACEOF
21419 echo "$as_me:$LINENO: checking for krb5_string_to_key in -lkrb5" >&5
21420 echo $ECHO_N "checking for krb5_string_to_key in -lkrb5... $ECHO_C" >&6
21421 if test "${ac_cv_lib_krb5_krb5_string_to_key+set}" = set; then
21422 echo $ECHO_N "(cached) $ECHO_C" >&6
21423 else
21424 ac_check_lib_save_LIBS=$LIBS
21425 LIBS="-lkrb5 $LIBS"
21426 cat >conftest.$ac_ext <<_ACEOF
21427 #line $LINENO "configure"
21428 #include "confdefs.h"
21430 /* Override any gcc2 internal prototype to avoid an error. */
21431 #ifdef __cplusplus
21432 extern "C"
21433 #endif
21434 /* We use char because int might match the return type of a gcc2
21435 builtin and then its argument prototype would still apply. */
21436 char krb5_string_to_key ();
21437 #ifdef F77_DUMMY_MAIN
21438 # ifdef __cplusplus
21439 extern "C"
21440 # endif
21441 int F77_DUMMY_MAIN() { return 1; }
21442 #endif
21444 main ()
21446 krb5_string_to_key ();
21448 return 0;
21450 _ACEOF
21451 rm -f conftest.$ac_objext conftest$ac_exeext
21452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21453 (eval $ac_link) 2>&5
21454 ac_status=$?
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); } &&
21457 { ac_try='test -s conftest$ac_exeext'
21458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21459 (eval $ac_try) 2>&5
21460 ac_status=$?
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); }; }; then
21463 ac_cv_lib_krb5_krb5_string_to_key=yes
21464 else
21465 echo "$as_me: failed program was:" >&5
21466 cat conftest.$ac_ext >&5
21467 ac_cv_lib_krb5_krb5_string_to_key=no
21469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21470 LIBS=$ac_check_lib_save_LIBS
21472 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_string_to_key" >&5
21473 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_string_to_key" >&6
21474 if test $ac_cv_lib_krb5_krb5_string_to_key = yes; then
21476 cat >>confdefs.h <<\_ACEOF
21477 #define HAVE_KRB5_STRING_TO_KEY 1
21478 _ACEOF
21482 echo "$as_me:$LINENO: checking for krb5_get_pw_salt in -lkrb5" >&5
21483 echo $ECHO_N "checking for krb5_get_pw_salt in -lkrb5... $ECHO_C" >&6
21484 if test "${ac_cv_lib_krb5_krb5_get_pw_salt+set}" = set; then
21485 echo $ECHO_N "(cached) $ECHO_C" >&6
21486 else
21487 ac_check_lib_save_LIBS=$LIBS
21488 LIBS="-lkrb5 $LIBS"
21489 cat >conftest.$ac_ext <<_ACEOF
21490 #line $LINENO "configure"
21491 #include "confdefs.h"
21493 /* Override any gcc2 internal prototype to avoid an error. */
21494 #ifdef __cplusplus
21495 extern "C"
21496 #endif
21497 /* We use char because int might match the return type of a gcc2
21498 builtin and then its argument prototype would still apply. */
21499 char krb5_get_pw_salt ();
21500 #ifdef F77_DUMMY_MAIN
21501 # ifdef __cplusplus
21502 extern "C"
21503 # endif
21504 int F77_DUMMY_MAIN() { return 1; }
21505 #endif
21507 main ()
21509 krb5_get_pw_salt ();
21511 return 0;
21513 _ACEOF
21514 rm -f conftest.$ac_objext conftest$ac_exeext
21515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21516 (eval $ac_link) 2>&5
21517 ac_status=$?
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); } &&
21520 { ac_try='test -s conftest$ac_exeext'
21521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21522 (eval $ac_try) 2>&5
21523 ac_status=$?
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); }; }; then
21526 ac_cv_lib_krb5_krb5_get_pw_salt=yes
21527 else
21528 echo "$as_me: failed program was:" >&5
21529 cat conftest.$ac_ext >&5
21530 ac_cv_lib_krb5_krb5_get_pw_salt=no
21532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21533 LIBS=$ac_check_lib_save_LIBS
21535 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_get_pw_salt" >&5
21536 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_get_pw_salt" >&6
21537 if test $ac_cv_lib_krb5_krb5_get_pw_salt = yes; then
21539 cat >>confdefs.h <<\_ACEOF
21540 #define HAVE_KRB5_GET_PW_SALT 1
21541 _ACEOF
21545 echo "$as_me:$LINENO: checking for krb5_string_to_key_salt in -lkrb5" >&5
21546 echo $ECHO_N "checking for krb5_string_to_key_salt in -lkrb5... $ECHO_C" >&6
21547 if test "${ac_cv_lib_krb5_krb5_string_to_key_salt+set}" = set; then
21548 echo $ECHO_N "(cached) $ECHO_C" >&6
21549 else
21550 ac_check_lib_save_LIBS=$LIBS
21551 LIBS="-lkrb5 $LIBS"
21552 cat >conftest.$ac_ext <<_ACEOF
21553 #line $LINENO "configure"
21554 #include "confdefs.h"
21556 /* Override any gcc2 internal prototype to avoid an error. */
21557 #ifdef __cplusplus
21558 extern "C"
21559 #endif
21560 /* We use char because int might match the return type of a gcc2
21561 builtin and then its argument prototype would still apply. */
21562 char krb5_string_to_key_salt ();
21563 #ifdef F77_DUMMY_MAIN
21564 # ifdef __cplusplus
21565 extern "C"
21566 # endif
21567 int F77_DUMMY_MAIN() { return 1; }
21568 #endif
21570 main ()
21572 krb5_string_to_key_salt ();
21574 return 0;
21576 _ACEOF
21577 rm -f conftest.$ac_objext conftest$ac_exeext
21578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21579 (eval $ac_link) 2>&5
21580 ac_status=$?
21581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); } &&
21583 { ac_try='test -s conftest$ac_exeext'
21584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21585 (eval $ac_try) 2>&5
21586 ac_status=$?
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); }; }; then
21589 ac_cv_lib_krb5_krb5_string_to_key_salt=yes
21590 else
21591 echo "$as_me: failed program was:" >&5
21592 cat conftest.$ac_ext >&5
21593 ac_cv_lib_krb5_krb5_string_to_key_salt=no
21595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21596 LIBS=$ac_check_lib_save_LIBS
21598 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_string_to_key_salt" >&5
21599 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_string_to_key_salt" >&6
21600 if test $ac_cv_lib_krb5_krb5_string_to_key_salt = yes; then
21602 cat >>confdefs.h <<\_ACEOF
21603 #define HAVE_KRB5_STRING_TO_KEY_SALT 1
21604 _ACEOF
21608 echo "$as_me:$LINENO: checking for krb5_auth_con_setkey in -lkrb5" >&5
21609 echo $ECHO_N "checking for krb5_auth_con_setkey in -lkrb5... $ECHO_C" >&6
21610 if test "${ac_cv_lib_krb5_krb5_auth_con_setkey+set}" = set; then
21611 echo $ECHO_N "(cached) $ECHO_C" >&6
21612 else
21613 ac_check_lib_save_LIBS=$LIBS
21614 LIBS="-lkrb5 $LIBS"
21615 cat >conftest.$ac_ext <<_ACEOF
21616 #line $LINENO "configure"
21617 #include "confdefs.h"
21619 /* Override any gcc2 internal prototype to avoid an error. */
21620 #ifdef __cplusplus
21621 extern "C"
21622 #endif
21623 /* We use char because int might match the return type of a gcc2
21624 builtin and then its argument prototype would still apply. */
21625 char krb5_auth_con_setkey ();
21626 #ifdef F77_DUMMY_MAIN
21627 # ifdef __cplusplus
21628 extern "C"
21629 # endif
21630 int F77_DUMMY_MAIN() { return 1; }
21631 #endif
21633 main ()
21635 krb5_auth_con_setkey ();
21637 return 0;
21639 _ACEOF
21640 rm -f conftest.$ac_objext conftest$ac_exeext
21641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21642 (eval $ac_link) 2>&5
21643 ac_status=$?
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); } &&
21646 { ac_try='test -s conftest$ac_exeext'
21647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21648 (eval $ac_try) 2>&5
21649 ac_status=$?
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); }; }; then
21652 ac_cv_lib_krb5_krb5_auth_con_setkey=yes
21653 else
21654 echo "$as_me: failed program was:" >&5
21655 cat conftest.$ac_ext >&5
21656 ac_cv_lib_krb5_krb5_auth_con_setkey=no
21658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21659 LIBS=$ac_check_lib_save_LIBS
21661 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_auth_con_setkey" >&5
21662 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_auth_con_setkey" >&6
21663 if test $ac_cv_lib_krb5_krb5_auth_con_setkey = yes; then
21665 cat >>confdefs.h <<\_ACEOF
21666 #define HAVE_KRB5_AUTH_CON_SETKEY 1
21667 _ACEOF
21671 echo "$as_me:$LINENO: checking for krb5_auth_con_setuseruserkey in -lkrb5" >&5
21672 echo $ECHO_N "checking for krb5_auth_con_setuseruserkey in -lkrb5... $ECHO_C" >&6
21673 if test "${ac_cv_lib_krb5_krb5_auth_con_setuseruserkey+set}" = set; then
21674 echo $ECHO_N "(cached) $ECHO_C" >&6
21675 else
21676 ac_check_lib_save_LIBS=$LIBS
21677 LIBS="-lkrb5 $LIBS"
21678 cat >conftest.$ac_ext <<_ACEOF
21679 #line $LINENO "configure"
21680 #include "confdefs.h"
21682 /* Override any gcc2 internal prototype to avoid an error. */
21683 #ifdef __cplusplus
21684 extern "C"
21685 #endif
21686 /* We use char because int might match the return type of a gcc2
21687 builtin and then its argument prototype would still apply. */
21688 char krb5_auth_con_setuseruserkey ();
21689 #ifdef F77_DUMMY_MAIN
21690 # ifdef __cplusplus
21691 extern "C"
21692 # endif
21693 int F77_DUMMY_MAIN() { return 1; }
21694 #endif
21696 main ()
21698 krb5_auth_con_setuseruserkey ();
21700 return 0;
21702 _ACEOF
21703 rm -f conftest.$ac_objext conftest$ac_exeext
21704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21705 (eval $ac_link) 2>&5
21706 ac_status=$?
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); } &&
21709 { ac_try='test -s conftest$ac_exeext'
21710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711 (eval $ac_try) 2>&5
21712 ac_status=$?
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); }; }; then
21715 ac_cv_lib_krb5_krb5_auth_con_setuseruserkey=yes
21716 else
21717 echo "$as_me: failed program was:" >&5
21718 cat conftest.$ac_ext >&5
21719 ac_cv_lib_krb5_krb5_auth_con_setuseruserkey=no
21721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21722 LIBS=$ac_check_lib_save_LIBS
21724 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_auth_con_setuseruserkey" >&5
21725 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_auth_con_setuseruserkey" >&6
21726 if test $ac_cv_lib_krb5_krb5_auth_con_setuseruserkey = yes; then
21728 cat >>confdefs.h <<\_ACEOF
21729 #define HAVE_KRB5_AUTH_CON_SETUSERUSERKEY 1
21730 _ACEOF
21734 echo "$as_me:$LINENO: checking for krb5_locate_kdc in -lkrb5" >&5
21735 echo $ECHO_N "checking for krb5_locate_kdc in -lkrb5... $ECHO_C" >&6
21736 if test "${ac_cv_lib_krb5_krb5_locate_kdc+set}" = set; then
21737 echo $ECHO_N "(cached) $ECHO_C" >&6
21738 else
21739 ac_check_lib_save_LIBS=$LIBS
21740 LIBS="-lkrb5 $LIBS"
21741 cat >conftest.$ac_ext <<_ACEOF
21742 #line $LINENO "configure"
21743 #include "confdefs.h"
21745 /* Override any gcc2 internal prototype to avoid an error. */
21746 #ifdef __cplusplus
21747 extern "C"
21748 #endif
21749 /* We use char because int might match the return type of a gcc2
21750 builtin and then its argument prototype would still apply. */
21751 char krb5_locate_kdc ();
21752 #ifdef F77_DUMMY_MAIN
21753 # ifdef __cplusplus
21754 extern "C"
21755 # endif
21756 int F77_DUMMY_MAIN() { return 1; }
21757 #endif
21759 main ()
21761 krb5_locate_kdc ();
21763 return 0;
21765 _ACEOF
21766 rm -f conftest.$ac_objext conftest$ac_exeext
21767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21768 (eval $ac_link) 2>&5
21769 ac_status=$?
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); } &&
21772 { ac_try='test -s conftest$ac_exeext'
21773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21774 (eval $ac_try) 2>&5
21775 ac_status=$?
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); }; }; then
21778 ac_cv_lib_krb5_krb5_locate_kdc=yes
21779 else
21780 echo "$as_me: failed program was:" >&5
21781 cat conftest.$ac_ext >&5
21782 ac_cv_lib_krb5_krb5_locate_kdc=no
21784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21785 LIBS=$ac_check_lib_save_LIBS
21787 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_locate_kdc" >&5
21788 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_locate_kdc" >&6
21789 if test $ac_cv_lib_krb5_krb5_locate_kdc = yes; then
21791 cat >>confdefs.h <<\_ACEOF
21792 #define HAVE_KRB5_LOCATE_KDC 1
21793 _ACEOF
21798 echo "$as_me:$LINENO: checking for addrtype in krb5_address" >&5
21799 echo $ECHO_N "checking for addrtype in krb5_address... $ECHO_C" >&6
21800 if test "${samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS+set}" = set; then
21801 echo $ECHO_N "(cached) $ECHO_C" >&6
21802 else
21804 cat >conftest.$ac_ext <<_ACEOF
21805 #line $LINENO "configure"
21806 #include "confdefs.h"
21807 #include <krb5.h>
21808 #ifdef F77_DUMMY_MAIN
21809 # ifdef __cplusplus
21810 extern "C"
21811 # endif
21812 int F77_DUMMY_MAIN() { return 1; }
21813 #endif
21815 main ()
21817 krb5_address kaddr; kaddr.addrtype = ADDRTYPE_INET;
21819 return 0;
21821 _ACEOF
21822 rm -f conftest.$ac_objext
21823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21824 (eval $ac_compile) 2>&5
21825 ac_status=$?
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); } &&
21828 { ac_try='test -s conftest.$ac_objext'
21829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21830 (eval $ac_try) 2>&5
21831 ac_status=$?
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); }; }; then
21834 samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS=yes
21835 else
21836 echo "$as_me: failed program was:" >&5
21837 cat conftest.$ac_ext >&5
21838 samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS=no
21840 rm -f conftest.$ac_objext conftest.$ac_ext
21842 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS" >&5
21843 echo "${ECHO_T}$samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS" >&6
21844 if test x"$samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS" = x"yes"; then
21846 cat >>confdefs.h <<\_ACEOF
21847 #define HAVE_ADDRTYPE_IN_KRB5_ADDRESS 1
21848 _ACEOF
21852 echo "$as_me:$LINENO: checking for addr_type in krb5_address" >&5
21853 echo $ECHO_N "checking for addr_type in krb5_address... $ECHO_C" >&6
21854 if test "${samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS+set}" = set; then
21855 echo $ECHO_N "(cached) $ECHO_C" >&6
21856 else
21858 cat >conftest.$ac_ext <<_ACEOF
21859 #line $LINENO "configure"
21860 #include "confdefs.h"
21861 #include <krb5.h>
21862 #ifdef F77_DUMMY_MAIN
21863 # ifdef __cplusplus
21864 extern "C"
21865 # endif
21866 int F77_DUMMY_MAIN() { return 1; }
21867 #endif
21869 main ()
21871 krb5_address kaddr; kaddr.addr_type = KRB5_ADDRESS_INET;
21873 return 0;
21875 _ACEOF
21876 rm -f conftest.$ac_objext
21877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21878 (eval $ac_compile) 2>&5
21879 ac_status=$?
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); } &&
21882 { ac_try='test -s conftest.$ac_objext'
21883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21884 (eval $ac_try) 2>&5
21885 ac_status=$?
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); }; }; then
21888 samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS=yes
21889 else
21890 echo "$as_me: failed program was:" >&5
21891 cat conftest.$ac_ext >&5
21892 samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS=no
21894 rm -f conftest.$ac_objext conftest.$ac_ext
21896 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS" >&5
21897 echo "${ECHO_T}$samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS" >&6
21898 if test x"$samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS" = x"yes"; then
21900 cat >>confdefs.h <<\_ACEOF
21901 #define HAVE_ADDR_TYPE_IN_KRB5_ADDRESS 1
21902 _ACEOF
21906 echo "$as_me:$LINENO: checking for enc_part2 in krb5_ticket" >&5
21907 echo $ECHO_N "checking for enc_part2 in krb5_ticket... $ECHO_C" >&6
21908 if test "${samba_cv_HAVE_KRB5_TKT_ENC_PART2+set}" = set; then
21909 echo $ECHO_N "(cached) $ECHO_C" >&6
21910 else
21912 cat >conftest.$ac_ext <<_ACEOF
21913 #line $LINENO "configure"
21914 #include "confdefs.h"
21915 #include <krb5.h>
21916 #ifdef F77_DUMMY_MAIN
21917 # ifdef __cplusplus
21918 extern "C"
21919 # endif
21920 int F77_DUMMY_MAIN() { return 1; }
21921 #endif
21923 main ()
21925 krb5_ticket tkt; tkt.enc_part2->authorization_data[0]->contents = NULL;
21927 return 0;
21929 _ACEOF
21930 rm -f conftest.$ac_objext
21931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21932 (eval $ac_compile) 2>&5
21933 ac_status=$?
21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935 (exit $ac_status); } &&
21936 { ac_try='test -s conftest.$ac_objext'
21937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21938 (eval $ac_try) 2>&5
21939 ac_status=$?
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); }; }; then
21942 samba_cv_HAVE_KRB5_TKT_ENC_PART2=yes
21943 else
21944 echo "$as_me: failed program was:" >&5
21945 cat conftest.$ac_ext >&5
21946 samba_cv_HAVE_KRB5_TKT_ENC_PART2=no
21948 rm -f conftest.$ac_objext conftest.$ac_ext
21950 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_TKT_ENC_PART2" >&5
21951 echo "${ECHO_T}$samba_cv_HAVE_KRB5_TKT_ENC_PART2" >&6
21952 if test x"$samba_cv_HAVE_KRB5_TKT_ENC_PART2" = x"yes"; then
21954 cat >>confdefs.h <<\_ACEOF
21955 #define HAVE_KRB5_TKT_ENC_PART2 1
21956 _ACEOF
21960 ########################################################
21961 # now see if we can find the krb5 libs in standard paths
21962 # or as specified above
21963 echo "$as_me:$LINENO: checking for krb5_mk_req_extended in -lkrb5" >&5
21964 echo $ECHO_N "checking for krb5_mk_req_extended in -lkrb5... $ECHO_C" >&6
21965 if test "${ac_cv_lib_krb5_krb5_mk_req_extended+set}" = set; then
21966 echo $ECHO_N "(cached) $ECHO_C" >&6
21967 else
21968 ac_check_lib_save_LIBS=$LIBS
21969 LIBS="-lkrb5 $LIBS"
21970 cat >conftest.$ac_ext <<_ACEOF
21971 #line $LINENO "configure"
21972 #include "confdefs.h"
21974 /* Override any gcc2 internal prototype to avoid an error. */
21975 #ifdef __cplusplus
21976 extern "C"
21977 #endif
21978 /* We use char because int might match the return type of a gcc2
21979 builtin and then its argument prototype would still apply. */
21980 char krb5_mk_req_extended ();
21981 #ifdef F77_DUMMY_MAIN
21982 # ifdef __cplusplus
21983 extern "C"
21984 # endif
21985 int F77_DUMMY_MAIN() { return 1; }
21986 #endif
21988 main ()
21990 krb5_mk_req_extended ();
21992 return 0;
21994 _ACEOF
21995 rm -f conftest.$ac_objext conftest$ac_exeext
21996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21997 (eval $ac_link) 2>&5
21998 ac_status=$?
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); } &&
22001 { ac_try='test -s conftest$ac_exeext'
22002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22003 (eval $ac_try) 2>&5
22004 ac_status=$?
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); }; }; then
22007 ac_cv_lib_krb5_krb5_mk_req_extended=yes
22008 else
22009 echo "$as_me: failed program was:" >&5
22010 cat conftest.$ac_ext >&5
22011 ac_cv_lib_krb5_krb5_mk_req_extended=no
22013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22014 LIBS=$ac_check_lib_save_LIBS
22016 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_mk_req_extended" >&5
22017 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_mk_req_extended" >&6
22018 if test $ac_cv_lib_krb5_krb5_mk_req_extended = yes; then
22019 LIBS="$LIBS -lkrb5";
22021 cat >>confdefs.h <<\_ACEOF
22022 #define HAVE_KRB5 1
22023 _ACEOF
22028 ########################################################
22029 # now see if we can find the gssapi libs in standard paths
22030 echo "$as_me:$LINENO: checking for gss_display_status in -lgssapi_krb5" >&5
22031 echo $ECHO_N "checking for gss_display_status in -lgssapi_krb5... $ECHO_C" >&6
22032 if test "${ac_cv_lib_gssapi_krb5_gss_display_status+set}" = set; then
22033 echo $ECHO_N "(cached) $ECHO_C" >&6
22034 else
22035 ac_check_lib_save_LIBS=$LIBS
22036 LIBS="-lgssapi_krb5 $LIBS"
22037 cat >conftest.$ac_ext <<_ACEOF
22038 #line $LINENO "configure"
22039 #include "confdefs.h"
22041 /* Override any gcc2 internal prototype to avoid an error. */
22042 #ifdef __cplusplus
22043 extern "C"
22044 #endif
22045 /* We use char because int might match the return type of a gcc2
22046 builtin and then its argument prototype would still apply. */
22047 char gss_display_status ();
22048 #ifdef F77_DUMMY_MAIN
22049 # ifdef __cplusplus
22050 extern "C"
22051 # endif
22052 int F77_DUMMY_MAIN() { return 1; }
22053 #endif
22055 main ()
22057 gss_display_status ();
22059 return 0;
22061 _ACEOF
22062 rm -f conftest.$ac_objext conftest$ac_exeext
22063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22064 (eval $ac_link) 2>&5
22065 ac_status=$?
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); } &&
22068 { ac_try='test -s conftest$ac_exeext'
22069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22070 (eval $ac_try) 2>&5
22071 ac_status=$?
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); }; }; then
22074 ac_cv_lib_gssapi_krb5_gss_display_status=yes
22075 else
22076 echo "$as_me: failed program was:" >&5
22077 cat conftest.$ac_ext >&5
22078 ac_cv_lib_gssapi_krb5_gss_display_status=no
22080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22081 LIBS=$ac_check_lib_save_LIBS
22083 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_display_status" >&5
22084 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_display_status" >&6
22085 if test $ac_cv_lib_gssapi_krb5_gss_display_status = yes; then
22086 LIBS="$LIBS -lgssapi_krb5";
22088 cat >>confdefs.h <<\_ACEOF
22089 #define HAVE_GSSAPI 1
22090 _ACEOF
22096 ########################################################
22097 # Compile with LDAP support?
22099 with_ldap_support=yes
22100 echo "$as_me:$LINENO: checking whether to use LDAP" >&5
22101 echo $ECHO_N "checking whether to use LDAP... $ECHO_C" >&6
22104 # Check whether --with-ldap or --without-ldap was given.
22105 if test "${with_ldap+set}" = set; then
22106 withval="$with_ldap"
22107 case "$withval" in
22109 with_ldap_support=no
22111 esac
22114 echo "$as_me:$LINENO: result: $with_ldap_support" >&5
22115 echo "${ECHO_T}$with_ldap_support" >&6
22117 if test x"$with_ldap_support" = x"yes"; then
22119 ##################################################################
22120 # we might need the lber lib on some systems. To avoid link errors
22121 # this test must be before the libldap test
22122 echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5
22123 echo $ECHO_N "checking for ber_scanf in -llber... $ECHO_C" >&6
22124 if test "${ac_cv_lib_lber_ber_scanf+set}" = set; then
22125 echo $ECHO_N "(cached) $ECHO_C" >&6
22126 else
22127 ac_check_lib_save_LIBS=$LIBS
22128 LIBS="-llber $LIBS"
22129 cat >conftest.$ac_ext <<_ACEOF
22130 #line $LINENO "configure"
22131 #include "confdefs.h"
22133 /* Override any gcc2 internal prototype to avoid an error. */
22134 #ifdef __cplusplus
22135 extern "C"
22136 #endif
22137 /* We use char because int might match the return type of a gcc2
22138 builtin and then its argument prototype would still apply. */
22139 char ber_scanf ();
22140 #ifdef F77_DUMMY_MAIN
22141 # ifdef __cplusplus
22142 extern "C"
22143 # endif
22144 int F77_DUMMY_MAIN() { return 1; }
22145 #endif
22147 main ()
22149 ber_scanf ();
22151 return 0;
22153 _ACEOF
22154 rm -f conftest.$ac_objext conftest$ac_exeext
22155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22156 (eval $ac_link) 2>&5
22157 ac_status=$?
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); } &&
22160 { ac_try='test -s conftest$ac_exeext'
22161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22162 (eval $ac_try) 2>&5
22163 ac_status=$?
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); }; }; then
22166 ac_cv_lib_lber_ber_scanf=yes
22167 else
22168 echo "$as_me: failed program was:" >&5
22169 cat conftest.$ac_ext >&5
22170 ac_cv_lib_lber_ber_scanf=no
22172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22173 LIBS=$ac_check_lib_save_LIBS
22175 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_scanf" >&5
22176 echo "${ECHO_T}$ac_cv_lib_lber_ber_scanf" >&6
22177 if test $ac_cv_lib_lber_ber_scanf = yes; then
22178 LIBS="$LIBS -llber"
22182 ########################################################
22183 # now see if we can find the ldap libs in standard paths
22184 if test x$have_ldap != xyes; then
22185 echo "$as_me:$LINENO: checking for ldap_domain2hostlist in -lldap" >&5
22186 echo $ECHO_N "checking for ldap_domain2hostlist in -lldap... $ECHO_C" >&6
22187 if test "${ac_cv_lib_ldap_ldap_domain2hostlist+set}" = set; then
22188 echo $ECHO_N "(cached) $ECHO_C" >&6
22189 else
22190 ac_check_lib_save_LIBS=$LIBS
22191 LIBS="-lldap $LIBS"
22192 cat >conftest.$ac_ext <<_ACEOF
22193 #line $LINENO "configure"
22194 #include "confdefs.h"
22196 /* Override any gcc2 internal prototype to avoid an error. */
22197 #ifdef __cplusplus
22198 extern "C"
22199 #endif
22200 /* We use char because int might match the return type of a gcc2
22201 builtin and then its argument prototype would still apply. */
22202 char ldap_domain2hostlist ();
22203 #ifdef F77_DUMMY_MAIN
22204 # ifdef __cplusplus
22205 extern "C"
22206 # endif
22207 int F77_DUMMY_MAIN() { return 1; }
22208 #endif
22210 main ()
22212 ldap_domain2hostlist ();
22214 return 0;
22216 _ACEOF
22217 rm -f conftest.$ac_objext conftest$ac_exeext
22218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22219 (eval $ac_link) 2>&5
22220 ac_status=$?
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); } &&
22223 { ac_try='test -s conftest$ac_exeext'
22224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22225 (eval $ac_try) 2>&5
22226 ac_status=$?
22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); }; }; then
22229 ac_cv_lib_ldap_ldap_domain2hostlist=yes
22230 else
22231 echo "$as_me: failed program was:" >&5
22232 cat conftest.$ac_ext >&5
22233 ac_cv_lib_ldap_ldap_domain2hostlist=no
22235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22236 LIBS=$ac_check_lib_save_LIBS
22238 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_domain2hostlist" >&5
22239 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_domain2hostlist" >&6
22240 if test $ac_cv_lib_ldap_ldap_domain2hostlist = yes; then
22241 LIBS="$LIBS -lldap";
22243 cat >>confdefs.h <<\_ACEOF
22244 #define HAVE_LDAP 1
22245 _ACEOF
22250 ########################################################
22251 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
22252 # Check found in pam_ldap 145.
22254 for ac_func in ldap_set_rebind_proc
22256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22257 echo "$as_me:$LINENO: checking for $ac_func" >&5
22258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22259 if eval "test \"\${$as_ac_var+set}\" = set"; then
22260 echo $ECHO_N "(cached) $ECHO_C" >&6
22261 else
22262 cat >conftest.$ac_ext <<_ACEOF
22263 #line $LINENO "configure"
22264 #include "confdefs.h"
22265 /* System header to define __stub macros and hopefully few prototypes,
22266 which can conflict with char $ac_func (); below. */
22267 #include <assert.h>
22268 /* Override any gcc2 internal prototype to avoid an error. */
22269 #ifdef __cplusplus
22270 extern "C"
22271 #endif
22272 /* We use char because int might match the return type of a gcc2
22273 builtin and then its argument prototype would still apply. */
22274 char $ac_func ();
22275 char (*f) ();
22277 #ifdef F77_DUMMY_MAIN
22278 # ifdef __cplusplus
22279 extern "C"
22280 # endif
22281 int F77_DUMMY_MAIN() { return 1; }
22282 #endif
22284 main ()
22286 /* The GNU C library defines this for functions which it implements
22287 to always fail with ENOSYS. Some functions are actually named
22288 something starting with __ and the normal name is an alias. */
22289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22290 choke me
22291 #else
22292 f = $ac_func;
22293 #endif
22296 return 0;
22298 _ACEOF
22299 rm -f conftest.$ac_objext conftest$ac_exeext
22300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22301 (eval $ac_link) 2>&5
22302 ac_status=$?
22303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); } &&
22305 { ac_try='test -s conftest$ac_exeext'
22306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22307 (eval $ac_try) 2>&5
22308 ac_status=$?
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); }; }; then
22311 eval "$as_ac_var=yes"
22312 else
22313 echo "$as_me: failed program was:" >&5
22314 cat conftest.$ac_ext >&5
22315 eval "$as_ac_var=no"
22317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22321 if test `eval echo '${'$as_ac_var'}'` = yes; then
22322 cat >>confdefs.h <<_ACEOF
22323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22324 _ACEOF
22327 done
22329 echo "$as_me:$LINENO: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
22330 echo $ECHO_N "checking whether ldap_set_rebind_proc takes 3 arguments... $ECHO_C" >&6
22331 if test "${pam_ldap_cv_ldap_set_rebind_proc+set}" = set; then
22332 echo $ECHO_N "(cached) $ECHO_C" >&6
22333 else
22335 cat >conftest.$ac_ext <<_ACEOF
22336 #line $LINENO "configure"
22337 #include "confdefs.h"
22339 #include <lber.h>
22340 #include <ldap.h>
22341 #ifdef F77_DUMMY_MAIN
22342 # ifdef __cplusplus
22343 extern "C"
22344 # endif
22345 int F77_DUMMY_MAIN() { return 1; }
22346 #endif
22348 main ()
22350 ldap_set_rebind_proc(0, 0, 0);
22352 return 0;
22354 _ACEOF
22355 rm -f conftest.$ac_objext
22356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22357 (eval $ac_compile) 2>&5
22358 ac_status=$?
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); } &&
22361 { ac_try='test -s conftest.$ac_objext'
22362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22363 (eval $ac_try) 2>&5
22364 ac_status=$?
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); }; }; then
22367 pam_ldap_cv_ldap_set_rebind_proc=3
22368 else
22369 echo "$as_me: failed program was:" >&5
22370 cat conftest.$ac_ext >&5
22371 pam_ldap_cv_ldap_set_rebind_proc=2
22373 rm -f conftest.$ac_objext conftest.$ac_ext
22375 echo "$as_me:$LINENO: result: $pam_ldap_cv_ldap_set_rebind_proc" >&5
22376 echo "${ECHO_T}$pam_ldap_cv_ldap_set_rebind_proc" >&6
22378 cat >>confdefs.h <<_ACEOF
22379 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
22380 _ACEOF
22385 ########################################################
22386 # Compile with MySQL support?
22388 # Check whether --with-mysql-prefix or --without-mysql-prefix was given.
22389 if test "${with_mysql_prefix+set}" = set; then
22390 withval="$with_mysql_prefix"
22391 mysql_prefix="$withval"
22392 else
22393 mysql_prefix=""
22396 # Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
22397 if test "${with_mysql_exec_prefix+set}" = set; then
22398 withval="$with_mysql_exec_prefix"
22399 mysql_exec_prefix="$withval"
22400 else
22401 mysql_exec_prefix=""
22403 # Check whether --enable-mysqltest or --disable-mysqltest was given.
22404 if test "${enable_mysqltest+set}" = set; then
22405 enableval="$enable_mysqltest"
22407 else
22408 enable_mysqltest=yes
22411 if test x$mysql_exec_prefix != x ; then
22412 mysql_args="$mysql_args --exec-prefix=$mysql_exec_prefix"
22413 if test x${MYSQL_CONFIG+set} != xset ; then
22414 MYSQL_CONFIG=$mysql_exec_prefix/bin/mysql_config
22417 if test x$mysql_prefix != x ; then
22418 mysql_args="$mysql_args --prefix=$mysql_prefix"
22419 if test x${MYSQL_CONFIG+set} != xset ; then
22420 MYSQL_CONFIG=$mysql_prefix/bin/mysql_config
22425 # Extract the first word of "mysql_config", so it can be a program name with args.
22426 set dummy mysql_config; ac_word=$2
22427 echo "$as_me:$LINENO: checking for $ac_word" >&5
22428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22429 if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
22430 echo $ECHO_N "(cached) $ECHO_C" >&6
22431 else
22432 case $MYSQL_CONFIG in
22433 [\\/]* | ?:[\\/]*)
22434 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
22437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22438 for as_dir in $PATH
22440 IFS=$as_save_IFS
22441 test -z "$as_dir" && as_dir=.
22442 for ac_exec_ext in '' $ac_executable_extensions; do
22443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22444 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22446 break 2
22448 done
22449 done
22451 test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG="no"
22453 esac
22455 MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
22457 if test -n "$MYSQL_CONFIG"; then
22458 echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
22459 echo "${ECHO_T}$MYSQL_CONFIG" >&6
22460 else
22461 echo "$as_me:$LINENO: result: no" >&5
22462 echo "${ECHO_T}no" >&6
22465 min_mysql_version=0.11.0
22466 echo "$as_me:$LINENO: checking for MYSQL - version >= $min_mysql_version" >&5
22467 echo $ECHO_N "checking for MYSQL - version >= $min_mysql_version... $ECHO_C" >&6
22468 no_mysql=""
22469 if test "$MYSQL_CONFIG" = "no" ; then
22470 no_mysql=yes
22471 else
22472 MYSQL_CFLAGS=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
22473 MYSQL_LIBS=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
22475 mysql_major_version=`$MYSQL_CONFIG $mysql_args --version | \
22476 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22477 mysql_minor_version=`$MYSQL_CONFIG $mysql_args --version | \
22478 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22479 mysql_micro_version=`$MYSQL_CONFIG $mysql_config_args --version | \
22480 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22481 if test "x$enable_mysqltest" = "xyes" ; then
22482 ac_save_CFLAGS="$CFLAGS"
22483 ac_save_LIBS="$LIBS"
22484 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
22485 LIBS="$LIBS $MYSQL_LIBS"
22486 rm -f conf.mysqltest
22487 if test "$cross_compiling" = yes; then
22488 echo $ac_n "cross compiling; assumed OK... $ac_c"
22489 else
22490 cat >conftest.$ac_ext <<_ACEOF
22491 #line $LINENO "configure"
22492 #include "confdefs.h"
22494 #include <stdio.h>
22495 #include <stdlib.h>
22496 #include <string.h>
22497 #include <mysql.h>
22499 char*
22500 my_strdup (char *str)
22502 char *new_str;
22504 if (str)
22506 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
22507 strcpy (new_str, str);
22509 else
22510 new_str = NULL;
22512 return new_str;
22515 int main (int argc, char *argv[])
22517 int major, minor, micro;
22518 char *tmp_version;
22520 /* This hangs on some systems (?)
22521 system ("touch conf.mysqltest");
22523 { FILE *fp = fopen("conf.mysqltest", "a"); if ( fp ) fclose(fp); }
22525 /* HP/UX 9 (%@#!) writes to sscanf strings */
22526 tmp_version = my_strdup("$min_mysql_version");
22527 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22528 printf("%s, bad version string\n", "$min_mysql_version");
22529 exit(1);
22532 if (($mysql_major_version > major) ||
22533 (($mysql_major_version == major) && ($mysql_minor_version > minor)) ||
22534 (($mysql_major_version == major) && ($mysql_minor_version == minor) && ($mysql_micro_version >= micro)))
22536 return 0;
22538 else
22540 printf("\n*** 'mysql_config --version' returned %d.%d.%d, but the minimum version\n", $mysql_major_version, $mysql_minor_version, $mysql_micro_version);
22541 printf("*** of MYSQL required is %d.%d.%d. If mysql_config is correct, then it is\n", major, minor, micro);
22542 printf("*** best to upgrade to the required version.\n");
22543 printf("*** If mysql_config was wrong, set the environment variable MYSQL_CONFIG\n");
22544 printf("*** to point to the correct copy of mysql_config, and remove the file\n");
22545 printf("*** config.cache before re-running configure\n");
22546 return 1;
22551 _ACEOF
22552 rm -f conftest$ac_exeext
22553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22554 (eval $ac_link) 2>&5
22555 ac_status=$?
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22559 (eval $ac_try) 2>&5
22560 ac_status=$?
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); }; }; then
22564 else
22565 echo "$as_me: program exited with status $ac_status" >&5
22566 echo "$as_me: failed program was:" >&5
22567 cat conftest.$ac_ext >&5
22568 ( exit $ac_status )
22569 no_mysql=yes
22571 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22573 CFLAGS="$ac_save_CFLAGS"
22574 LIBS="$ac_save_LIBS"
22577 if test "x$no_mysql" = x ; then
22578 echo "$as_me:$LINENO: result: yes" >&5
22579 echo "${ECHO_T}yes" >&6
22580 MODULE_MYSQL=bin/pdb_mysql.so
22581 else
22582 echo "$as_me:$LINENO: result: no" >&5
22583 echo "${ECHO_T}no" >&6
22584 if test "$MYSQL_CONFIG" = "no" ; then
22585 echo "*** The mysql_config script installed by MYSQL could not be found"
22586 echo "*** If MYSQL was installed in PREFIX, make sure PREFIX/bin is in"
22587 echo "*** your path, or set the MYSQL_CONFIG environment variable to the"
22588 echo "*** full path to mysql_config."
22589 else
22590 if test -f conf.mysqltest ; then
22592 else
22593 echo "*** Could not run MYSQL test program, checking why..."
22594 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
22595 LIBS="$LIBS $MYSQL_LIBS"
22596 cat >conftest.$ac_ext <<_ACEOF
22597 #line $LINENO "configure"
22598 #include "confdefs.h"
22600 #include <stdio.h>
22601 #include <mysql.h>
22603 int main(int argc, char *argv[])
22604 { return 0; }
22605 #undef main
22606 #define main K_and_R_C_main
22608 #ifdef F77_DUMMY_MAIN
22609 # ifdef __cplusplus
22610 extern "C"
22611 # endif
22612 int F77_DUMMY_MAIN() { return 1; }
22613 #endif
22615 main ()
22617 return 0;
22619 return 0;
22621 _ACEOF
22622 rm -f conftest.$ac_objext conftest$ac_exeext
22623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22624 (eval $ac_link) 2>&5
22625 ac_status=$?
22626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); } &&
22628 { ac_try='test -s conftest$ac_exeext'
22629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22630 (eval $ac_try) 2>&5
22631 ac_status=$?
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); }; }; then
22634 echo "*** The test program compiled, but did not run. This usually means"
22635 echo "*** that the run-time linker is not finding MYSQL or finding the wrong"
22636 echo "*** version of MYSQL. If it is not finding MYSQL, you'll need to set your"
22637 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22638 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22639 echo "*** is required on your system"
22640 echo "***"
22641 echo "*** If you have an old version installed, it is best to remove it, although"
22642 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22643 else
22644 echo "$as_me: failed program was:" >&5
22645 cat conftest.$ac_ext >&5
22646 echo "*** The test program failed to compile or link. See the file config.log for the"
22647 echo "*** exact error that occured. This usually means MYSQL was incorrectly installed"
22648 echo "*** or that you have moved MYSQL since it was installed. In the latter case, you"
22649 echo "*** may want to edit the mysql_config script: $MYSQL_CONFIG"
22651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22652 CFLAGS="$ac_save_CFLAGS"
22653 LIBS="$ac_save_LIBS"
22656 MYSQL_CFLAGS=""
22657 MYSQL_LIBS=""
22658 MODULE_MYSQL=
22662 rm -f conf.mysqltest
22664 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
22667 ########################################################
22668 # Compile with XML support?
22671 # Check whether --with-xml-prefix or --without-xml-prefix was given.
22672 if test "${with_xml_prefix+set}" = set; then
22673 withval="$with_xml_prefix"
22674 xml_config_prefix="$withval"
22675 else
22676 xml_config_prefix=""
22679 # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
22680 if test "${with_xml_exec_prefix+set}" = set; then
22681 withval="$with_xml_exec_prefix"
22682 xml_config_exec_prefix="$withval"
22683 else
22684 xml_config_exec_prefix=""
22686 # Check whether --enable-xmltest or --disable-xmltest was given.
22687 if test "${enable_xmltest+set}" = set; then
22688 enableval="$enable_xmltest"
22690 else
22691 enable_xmltest=yes
22694 if test x$xml_config_exec_prefix != x ; then
22695 xml_config_args="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
22696 if test x${XML2_CONFIG+set} != xset ; then
22697 XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
22700 if test x$xml_config_prefix != x ; then
22701 xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
22702 if test x${XML2_CONFIG+set} != xset ; then
22703 XML2_CONFIG=$xml_config_prefix/bin/xml2-config
22707 # Extract the first word of "xml2-config", so it can be a program name with args.
22708 set dummy xml2-config; ac_word=$2
22709 echo "$as_me:$LINENO: checking for $ac_word" >&5
22710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22711 if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
22712 echo $ECHO_N "(cached) $ECHO_C" >&6
22713 else
22714 case $XML2_CONFIG in
22715 [\\/]* | ?:[\\/]*)
22716 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
22719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22720 for as_dir in $PATH
22722 IFS=$as_save_IFS
22723 test -z "$as_dir" && as_dir=.
22724 for ac_exec_ext in '' $ac_executable_extensions; do
22725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22726 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22728 break 2
22730 done
22731 done
22733 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
22735 esac
22737 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
22739 if test -n "$XML2_CONFIG"; then
22740 echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
22741 echo "${ECHO_T}$XML2_CONFIG" >&6
22742 else
22743 echo "$as_me:$LINENO: result: no" >&5
22744 echo "${ECHO_T}no" >&6
22747 min_xml_version=2.0.0
22748 echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
22749 echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
22750 no_xml=""
22751 if test "$XML2_CONFIG" = "no" ; then
22752 no_xml=yes
22753 else
22754 XML_CFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
22755 XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
22756 xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
22757 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22758 xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
22759 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22760 xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
22761 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22762 if test "x$enable_xmltest" = "xyes" ; then
22763 ac_save_CFLAGS="$CFLAGS"
22764 ac_save_LIBS="$LIBS"
22765 CFLAGS="$CFLAGS $XML_CFLAGS"
22766 LIBS="$XML_LIBS $LIBS"
22767 rm -f conf.xmltest
22768 if test "$cross_compiling" = yes; then
22769 echo $ac_n "cross compiling; assumed OK... $ac_c"
22770 else
22771 cat >conftest.$ac_ext <<_ACEOF
22772 #line $LINENO "configure"
22773 #include "confdefs.h"
22775 #include <stdlib.h>
22776 #include <stdio.h>
22777 #include <string.h>
22778 #include <libxml/xmlversion.h>
22781 main()
22783 int xml_major_version, xml_minor_version, xml_micro_version;
22784 int major, minor, micro;
22785 char *tmp_version;
22787 system("touch conf.xmltest");
22789 /* Capture xml2-config output via autoconf/configure variables */
22790 /* HP/UX 9 (%@#!) writes to sscanf strings */
22791 tmp_version = (char *)strdup("$min_xml_version");
22792 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22793 printf("%s, bad version string from xml2-config\n", "$min_xml_version");
22794 exit(1);
22796 free(tmp_version);
22798 /* Capture the version information from the header files */
22799 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
22800 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
22801 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
22802 exit(1);
22804 free(tmp_version);
22806 /* Compare xml2-config output to the libxml headers */
22807 if ((xml_major_version != $xml_config_major_version) ||
22808 (xml_minor_version != $xml_config_minor_version) ||
22809 (xml_micro_version != $xml_config_micro_version))
22811 printf("*** libxml header files (version %d.%d.%d) do not match\n",
22812 xml_major_version, xml_minor_version, xml_micro_version);
22813 printf("*** xml2-config (version %d.%d.%d)\n",
22814 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
22815 return 1;
22817 /* Compare the headers to the library to make sure we match */
22818 /* Less than ideal -- doesn't provide us with return value feedback,
22819 * only exits if there's a serious mismatch between header and library.
22821 LIBXML_TEST_VERSION;
22823 /* Test that the library is greater than our minimum version */
22824 if ((xml_major_version > major) ||
22825 ((xml_major_version == major) && (xml_minor_version > minor)) ||
22826 ((xml_major_version == major) && (xml_minor_version == minor) &&
22827 (xml_micro_version >= micro)))
22829 return 0;
22831 else
22833 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
22834 xml_major_version, xml_minor_version, xml_micro_version);
22835 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
22836 major, minor, micro);
22837 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
22838 printf("***\n");
22839 printf("*** If you have already installed a sufficiently new version, this error\n");
22840 printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
22841 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22842 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
22843 printf("*** correct copy of xml2-config. (In this case, you will have to\n");
22844 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22845 printf("*** so that the correct libraries are found at run-time))\n");
22847 return 1;
22850 _ACEOF
22851 rm -f conftest$ac_exeext
22852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22853 (eval $ac_link) 2>&5
22854 ac_status=$?
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22858 (eval $ac_try) 2>&5
22859 ac_status=$?
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); }; }; then
22863 else
22864 echo "$as_me: program exited with status $ac_status" >&5
22865 echo "$as_me: failed program was:" >&5
22866 cat conftest.$ac_ext >&5
22867 ( exit $ac_status )
22868 no_xml=yes
22870 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22872 CFLAGS="$ac_save_CFLAGS"
22873 LIBS="$ac_save_LIBS"
22877 if test "x$no_xml" = x ; then
22878 echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
22879 echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6
22880 MODULE_XML=bin/pdb_xml.so
22881 else
22882 echo "$as_me:$LINENO: result: no" >&5
22883 echo "${ECHO_T}no" >&6
22884 if test "$XML2_CONFIG" = "no" ; then
22885 echo "*** The xml2-config script installed by LIBXML could not be found"
22886 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
22887 echo "*** your path, or set the XML2_CONFIG environment variable to the"
22888 echo "*** full path to xml2-config."
22889 else
22890 if test -f conf.xmltest ; then
22892 else
22893 echo "*** Could not run libxml test program, checking why..."
22894 CFLAGS="$CFLAGS $XML_CFLAGS"
22895 LIBS="$LIBS $XML_LIBS"
22896 cat >conftest.$ac_ext <<_ACEOF
22897 #line $LINENO "configure"
22898 #include "confdefs.h"
22900 #include <libxml/xmlversion.h>
22901 #include <stdio.h>
22903 #ifdef F77_DUMMY_MAIN
22904 # ifdef __cplusplus
22905 extern "C"
22906 # endif
22907 int F77_DUMMY_MAIN() { return 1; }
22908 #endif
22910 main ()
22912 LIBXML_TEST_VERSION; return 0;
22914 return 0;
22916 _ACEOF
22917 rm -f conftest.$ac_objext conftest$ac_exeext
22918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22919 (eval $ac_link) 2>&5
22920 ac_status=$?
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); } &&
22923 { ac_try='test -s conftest$ac_exeext'
22924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925 (eval $ac_try) 2>&5
22926 ac_status=$?
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); }; }; then
22929 echo "*** The test program compiled, but did not run. This usually means"
22930 echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
22931 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
22932 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22933 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22934 echo "*** is required on your system"
22935 echo "***"
22936 echo "*** If you have an old version installed, it is best to remove it, although"
22937 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22938 else
22939 echo "$as_me: failed program was:" >&5
22940 cat conftest.$ac_ext >&5
22941 echo "*** The test program failed to compile or link. See the file config.log for the"
22942 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
22943 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
22944 echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
22946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22947 CFLAGS="$ac_save_CFLAGS"
22948 LIBS="$ac_save_LIBS"
22952 XML_CFLAGS=""
22953 XML_LIBS=""
22954 MODULE_XML=
22958 rm -f conf.xmltest
22960 CFLAGS="$CFLAGS $XML_CFLAGS"
22963 #################################################
22964 # check for automount support
22965 echo "$as_me:$LINENO: checking whether to use automount" >&5
22966 echo $ECHO_N "checking whether to use automount... $ECHO_C" >&6
22968 # Check whether --with-automount or --without-automount was given.
22969 if test "${with_automount+set}" = set; then
22970 withval="$with_automount"
22971 case "$withval" in
22972 yes)
22973 echo "$as_me:$LINENO: result: yes" >&5
22974 echo "${ECHO_T}yes" >&6
22976 cat >>confdefs.h <<\_ACEOF
22977 #define WITH_AUTOMOUNT 1
22978 _ACEOF
22982 echo "$as_me:$LINENO: result: no" >&5
22983 echo "${ECHO_T}no" >&6
22985 esac
22986 else
22987 echo "$as_me:$LINENO: result: no" >&5
22988 echo "${ECHO_T}no" >&6
22992 #################################################
22993 # check for smbmount support
22994 echo "$as_me:$LINENO: checking whether to use smbmount" >&5
22995 echo $ECHO_N "checking whether to use smbmount... $ECHO_C" >&6
22997 # Check whether --with-smbmount or --without-smbmount was given.
22998 if test "${with_smbmount+set}" = set; then
22999 withval="$with_smbmount"
23000 case "$withval" in
23001 yes)
23002 case "$host_os" in
23003 *linux*)
23004 echo "$as_me:$LINENO: result: yes" >&5
23005 echo "${ECHO_T}yes" >&6
23007 cat >>confdefs.h <<\_ACEOF
23008 #define WITH_SMBMOUNT 1
23009 _ACEOF
23011 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbmount bin/smbmnt bin/smbumount"
23014 { { echo "$as_me:$LINENO: error: not on a linux system!" >&5
23015 echo "$as_me: error: not on a linux system!" >&2;}
23016 { (exit 1); exit 1; }; }
23018 esac
23021 echo "$as_me:$LINENO: result: no" >&5
23022 echo "${ECHO_T}no" >&6
23024 esac
23025 else
23026 echo "$as_me:$LINENO: result: no" >&5
23027 echo "${ECHO_T}no" >&6
23032 #################################################
23033 # check for a PAM clear-text auth, accounts, password and session support
23034 with_pam_for_crypt=no
23035 echo "$as_me:$LINENO: checking whether to use PAM" >&5
23036 echo $ECHO_N "checking whether to use PAM... $ECHO_C" >&6
23038 # Check whether --with-pam or --without-pam was given.
23039 if test "${with_pam+set}" = set; then
23040 withval="$with_pam"
23041 case "$withval" in
23042 yes)
23043 echo "$as_me:$LINENO: result: yes" >&5
23044 echo "${ECHO_T}yes" >&6
23046 cat >>confdefs.h <<\_ACEOF
23047 #define WITH_PAM 1
23048 _ACEOF
23050 AUTHLIBS="$AUTHLIBS -lpam"
23051 with_pam_for_crypt=yes
23054 echo "$as_me:$LINENO: result: no" >&5
23055 echo "${ECHO_T}no" >&6
23057 esac
23058 else
23059 echo "$as_me:$LINENO: result: no" >&5
23060 echo "${ECHO_T}no" >&6
23064 # we can't build a pam module if we don't have pam.
23065 echo "$as_me:$LINENO: checking for pam_get_data in -lpam" >&5
23066 echo $ECHO_N "checking for pam_get_data in -lpam... $ECHO_C" >&6
23067 if test "${ac_cv_lib_pam_pam_get_data+set}" = set; then
23068 echo $ECHO_N "(cached) $ECHO_C" >&6
23069 else
23070 ac_check_lib_save_LIBS=$LIBS
23071 LIBS="-lpam $LIBS"
23072 cat >conftest.$ac_ext <<_ACEOF
23073 #line $LINENO "configure"
23074 #include "confdefs.h"
23076 /* Override any gcc2 internal prototype to avoid an error. */
23077 #ifdef __cplusplus
23078 extern "C"
23079 #endif
23080 /* We use char because int might match the return type of a gcc2
23081 builtin and then its argument prototype would still apply. */
23082 char pam_get_data ();
23083 #ifdef F77_DUMMY_MAIN
23084 # ifdef __cplusplus
23085 extern "C"
23086 # endif
23087 int F77_DUMMY_MAIN() { return 1; }
23088 #endif
23090 main ()
23092 pam_get_data ();
23094 return 0;
23096 _ACEOF
23097 rm -f conftest.$ac_objext conftest$ac_exeext
23098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23099 (eval $ac_link) 2>&5
23100 ac_status=$?
23101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102 (exit $ac_status); } &&
23103 { ac_try='test -s conftest$ac_exeext'
23104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23105 (eval $ac_try) 2>&5
23106 ac_status=$?
23107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108 (exit $ac_status); }; }; then
23109 ac_cv_lib_pam_pam_get_data=yes
23110 else
23111 echo "$as_me: failed program was:" >&5
23112 cat conftest.$ac_ext >&5
23113 ac_cv_lib_pam_pam_get_data=no
23115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23116 LIBS=$ac_check_lib_save_LIBS
23118 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_get_data" >&5
23119 echo "${ECHO_T}$ac_cv_lib_pam_pam_get_data" >&6
23120 if test $ac_cv_lib_pam_pam_get_data = yes; then
23122 cat >>confdefs.h <<\_ACEOF
23123 #define HAVE_LIBPAM 1
23124 _ACEOF
23129 #################################################
23130 # check for pam_smbpass support
23131 echo "$as_me:$LINENO: checking whether to use pam_smbpass" >&5
23132 echo $ECHO_N "checking whether to use pam_smbpass... $ECHO_C" >&6
23134 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
23135 if test "${with_pam_smbpass+set}" = set; then
23136 withval="$with_pam_smbpass"
23137 case "$withval" in
23138 yes)
23139 echo "$as_me:$LINENO: result: yes" >&5
23140 echo "${ECHO_T}yes" >&6
23142 # Conditions under which pam_smbpass should not be built.
23144 if test x$PICFLAG = x; then
23145 echo "$as_me:$LINENO: result: No support for PIC code - disabling pam_smbpass" >&5
23146 echo "${ECHO_T}No support for PIC code - disabling pam_smbpass" >&6
23147 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
23148 echo "$as_me:$LINENO: result: No libpam found -- disabling pam_smbpass" >&5
23149 echo "${ECHO_T}No libpam found -- disabling pam_smbpass" >&6
23150 else
23151 SHLIB_PROGS="$SHLIB_PROGS bin/pam_smbpass.so"
23155 echo "$as_me:$LINENO: result: no" >&5
23156 echo "${ECHO_T}no" >&6
23158 esac
23159 else
23160 echo "$as_me:$LINENO: result: no" >&5
23161 echo "${ECHO_T}no" >&6
23166 ###############################################
23167 # test for where we get crypt() from, but only
23168 # if not using PAM
23169 if test x"$with_pam_for_crypt" = x"no"; then
23171 for ac_func in crypt
23173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23174 echo "$as_me:$LINENO: checking for $ac_func" >&5
23175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23176 if eval "test \"\${$as_ac_var+set}\" = set"; then
23177 echo $ECHO_N "(cached) $ECHO_C" >&6
23178 else
23179 cat >conftest.$ac_ext <<_ACEOF
23180 #line $LINENO "configure"
23181 #include "confdefs.h"
23182 /* System header to define __stub macros and hopefully few prototypes,
23183 which can conflict with char $ac_func (); below. */
23184 #include <assert.h>
23185 /* Override any gcc2 internal prototype to avoid an error. */
23186 #ifdef __cplusplus
23187 extern "C"
23188 #endif
23189 /* We use char because int might match the return type of a gcc2
23190 builtin and then its argument prototype would still apply. */
23191 char $ac_func ();
23192 char (*f) ();
23194 #ifdef F77_DUMMY_MAIN
23195 # ifdef __cplusplus
23196 extern "C"
23197 # endif
23198 int F77_DUMMY_MAIN() { return 1; }
23199 #endif
23201 main ()
23203 /* The GNU C library defines this for functions which it implements
23204 to always fail with ENOSYS. Some functions are actually named
23205 something starting with __ and the normal name is an alias. */
23206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23207 choke me
23208 #else
23209 f = $ac_func;
23210 #endif
23213 return 0;
23215 _ACEOF
23216 rm -f conftest.$ac_objext conftest$ac_exeext
23217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23218 (eval $ac_link) 2>&5
23219 ac_status=$?
23220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221 (exit $ac_status); } &&
23222 { ac_try='test -s conftest$ac_exeext'
23223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23224 (eval $ac_try) 2>&5
23225 ac_status=$?
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); }; }; then
23228 eval "$as_ac_var=yes"
23229 else
23230 echo "$as_me: failed program was:" >&5
23231 cat conftest.$ac_ext >&5
23232 eval "$as_ac_var=no"
23234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23237 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23238 if test `eval echo '${'$as_ac_var'}'` = yes; then
23239 cat >>confdefs.h <<_ACEOF
23240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23241 _ACEOF
23244 done
23246 if test x"$ac_cv_func_crypt" = x"no"; then
23247 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23248 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
23249 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23250 echo $ECHO_N "(cached) $ECHO_C" >&6
23251 else
23252 ac_check_lib_save_LIBS=$LIBS
23253 LIBS="-lcrypt $LIBS"
23254 cat >conftest.$ac_ext <<_ACEOF
23255 #line $LINENO "configure"
23256 #include "confdefs.h"
23258 /* Override any gcc2 internal prototype to avoid an error. */
23259 #ifdef __cplusplus
23260 extern "C"
23261 #endif
23262 /* We use char because int might match the return type of a gcc2
23263 builtin and then its argument prototype would still apply. */
23264 char crypt ();
23265 #ifdef F77_DUMMY_MAIN
23266 # ifdef __cplusplus
23267 extern "C"
23268 # endif
23269 int F77_DUMMY_MAIN() { return 1; }
23270 #endif
23272 main ()
23274 crypt ();
23276 return 0;
23278 _ACEOF
23279 rm -f conftest.$ac_objext conftest$ac_exeext
23280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23281 (eval $ac_link) 2>&5
23282 ac_status=$?
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); } &&
23285 { ac_try='test -s conftest$ac_exeext'
23286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23287 (eval $ac_try) 2>&5
23288 ac_status=$?
23289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); }; }; then
23291 ac_cv_lib_crypt_crypt=yes
23292 else
23293 echo "$as_me: failed program was:" >&5
23294 cat conftest.$ac_ext >&5
23295 ac_cv_lib_crypt_crypt=no
23297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23298 LIBS=$ac_check_lib_save_LIBS
23300 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23301 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
23302 if test $ac_cv_lib_crypt_crypt = yes; then
23303 AUTHLIBS="$AUTHLIBS -lcrypt";
23305 cat >>confdefs.h <<\_ACEOF
23306 #define HAVE_CRYPT 1
23307 _ACEOF
23315 ## moved after the check for -lcrypt in order to
23316 ## ensure that the necessary libraries are included
23317 ## check checking for truncated salt. Wrapped by the
23318 ## $with_pam_for_crypt variable as above --jerry
23320 if test $with_pam_for_crypt = no; then
23321 echo "$as_me:$LINENO: checking for a crypt that needs truncated salt" >&5
23322 echo $ECHO_N "checking for a crypt that needs truncated salt... $ECHO_C" >&6
23323 if test "${samba_cv_HAVE_TRUNCATED_SALT+set}" = set; then
23324 echo $ECHO_N "(cached) $ECHO_C" >&6
23325 else
23327 crypt_LIBS="$LIBS"
23328 LIBS="$AUTHLIBS $LIBS"
23329 if test "$cross_compiling" = yes; then
23330 samba_cv_HAVE_TRUNCATED_SALT=cross
23331 else
23332 cat >conftest.$ac_ext <<_ACEOF
23333 #line $LINENO "configure"
23334 #include "confdefs.h"
23335 #include "${srcdir-.}/tests/crypttest.c"
23336 _ACEOF
23337 rm -f conftest$ac_exeext
23338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23339 (eval $ac_link) 2>&5
23340 ac_status=$?
23341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23344 (eval $ac_try) 2>&5
23345 ac_status=$?
23346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); }; }; then
23348 samba_cv_HAVE_TRUNCATED_SALT=no
23349 else
23350 echo "$as_me: program exited with status $ac_status" >&5
23351 echo "$as_me: failed program was:" >&5
23352 cat conftest.$ac_ext >&5
23353 ( exit $ac_status )
23354 samba_cv_HAVE_TRUNCATED_SALT=yes
23356 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23358 LIBS="$crypt_LIBS"
23360 echo "$as_me:$LINENO: result: $samba_cv_HAVE_TRUNCATED_SALT" >&5
23361 echo "${ECHO_T}$samba_cv_HAVE_TRUNCATED_SALT" >&6
23362 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
23364 cat >>confdefs.h <<\_ACEOF
23365 #define HAVE_TRUNCATED_SALT 1
23366 _ACEOF
23371 ########################################################################################
23373 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
23375 ########################################################################################
23377 #################################################
23378 # check for a LDAP password database configuration backwards compatibility
23379 echo "$as_me:$LINENO: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
23380 echo $ECHO_N "checking whether to use LDAP SAM 2.2 compatible configuration... $ECHO_C" >&6
23382 # Check whether --with-ldapsam or --without-ldapsam was given.
23383 if test "${with_ldapsam+set}" = set; then
23384 withval="$with_ldapsam"
23385 case "$withval" in
23386 yes)
23387 echo "$as_me:$LINENO: result: yes" >&5
23388 echo "${ECHO_T}yes" >&6
23390 cat >>confdefs.h <<\_ACEOF
23391 #define WITH_LDAP_SAMCONFIG 1
23392 _ACEOF
23396 echo "$as_me:$LINENO: result: no" >&5
23397 echo "${ECHO_T}no" >&6
23399 esac
23400 else
23401 echo "$as_me:$LINENO: result: no" >&5
23402 echo "${ECHO_T}no" >&6
23406 #################################################
23407 # check for a TDB password database
23408 echo "$as_me:$LINENO: checking whether to use TDB SAM database" >&5
23409 echo $ECHO_N "checking whether to use TDB SAM database... $ECHO_C" >&6
23411 # Check whether --with-tdbsam or --without-tdbsam was given.
23412 if test "${with_tdbsam+set}" = set; then
23413 withval="$with_tdbsam"
23414 case "$withval" in
23415 yes)
23416 echo "$as_me:$LINENO: result: yes" >&5
23417 echo "${ECHO_T}yes" >&6
23419 cat >>confdefs.h <<\_ACEOF
23420 #define WITH_TDB_SAM 1
23421 _ACEOF
23425 echo "$as_me:$LINENO: result: no" >&5
23426 echo "${ECHO_T}no" >&6
23428 esac
23429 else
23430 echo "$as_me:$LINENO: result: no" >&5
23431 echo "${ECHO_T}no" >&6
23435 #################################################
23436 # check for a NISPLUS password database
23437 echo "$as_me:$LINENO: checking whether to use NISPLUS SAM database" >&5
23438 echo $ECHO_N "checking whether to use NISPLUS SAM database... $ECHO_C" >&6
23440 # Check whether --with-nisplussam or --without-nisplussam was given.
23441 if test "${with_nisplussam+set}" = set; then
23442 withval="$with_nisplussam"
23443 case "$withval" in
23444 yes)
23445 echo "$as_me:$LINENO: result: yes" >&5
23446 echo "${ECHO_T}yes" >&6
23448 cat >>confdefs.h <<\_ACEOF
23449 #define WITH_NISPLUS_SAM 1
23450 _ACEOF
23454 echo "$as_me:$LINENO: result: no" >&5
23455 echo "${ECHO_T}no" >&6
23457 esac
23458 else
23459 echo "$as_me:$LINENO: result: no" >&5
23460 echo "${ECHO_T}no" >&6
23464 ########################################################################################
23466 ## END OF TESTS FOR SAM BACKENDS.
23468 ########################################################################################
23470 #################################################
23471 # check for a NISPLUS_HOME support
23472 echo "$as_me:$LINENO: checking whether to use NISPLUS_HOME" >&5
23473 echo $ECHO_N "checking whether to use NISPLUS_HOME... $ECHO_C" >&6
23475 # Check whether --with-nisplus-home or --without-nisplus-home was given.
23476 if test "${with_nisplus_home+set}" = set; then
23477 withval="$with_nisplus_home"
23478 case "$withval" in
23479 yes)
23480 echo "$as_me:$LINENO: result: yes" >&5
23481 echo "${ECHO_T}yes" >&6
23483 cat >>confdefs.h <<\_ACEOF
23484 #define WITH_NISPLUS_HOME 1
23485 _ACEOF
23489 echo "$as_me:$LINENO: result: no" >&5
23490 echo "${ECHO_T}no" >&6
23492 esac
23493 else
23494 echo "$as_me:$LINENO: result: no" >&5
23495 echo "${ECHO_T}no" >&6
23499 #################################################
23500 # check for syslog logging
23501 echo "$as_me:$LINENO: checking whether to use syslog logging" >&5
23502 echo $ECHO_N "checking whether to use syslog logging... $ECHO_C" >&6
23504 # Check whether --with-syslog or --without-syslog was given.
23505 if test "${with_syslog+set}" = set; then
23506 withval="$with_syslog"
23507 case "$withval" in
23508 yes)
23509 echo "$as_me:$LINENO: result: yes" >&5
23510 echo "${ECHO_T}yes" >&6
23512 cat >>confdefs.h <<\_ACEOF
23513 #define WITH_SYSLOG 1
23514 _ACEOF
23518 echo "$as_me:$LINENO: result: no" >&5
23519 echo "${ECHO_T}no" >&6
23521 esac
23522 else
23523 echo "$as_me:$LINENO: result: no" >&5
23524 echo "${ECHO_T}no" >&6
23528 #################################################
23529 # check for a shared memory profiling support
23530 echo "$as_me:$LINENO: checking whether to use profiling" >&5
23531 echo $ECHO_N "checking whether to use profiling... $ECHO_C" >&6
23533 # Check whether --with-profiling-data or --without-profiling-data was given.
23534 if test "${with_profiling_data+set}" = set; then
23535 withval="$with_profiling_data"
23536 case "$withval" in
23537 yes)
23538 echo "$as_me:$LINENO: result: yes" >&5
23539 echo "${ECHO_T}yes" >&6
23541 cat >>confdefs.h <<\_ACEOF
23542 #define WITH_PROFILE 1
23543 _ACEOF
23547 echo "$as_me:$LINENO: result: no" >&5
23548 echo "${ECHO_T}no" >&6
23550 esac
23551 else
23552 echo "$as_me:$LINENO: result: no" >&5
23553 echo "${ECHO_T}no" >&6
23558 #################################################
23559 # check for experimental disk-quotas support
23560 QUOTAOBJS=smbd/noquotas.o
23562 echo "$as_me:$LINENO: checking whether to support disk-quotas" >&5
23563 echo $ECHO_N "checking whether to support disk-quotas... $ECHO_C" >&6
23565 # Check whether --with-quotas or --without-quotas was given.
23566 if test "${with_quotas+set}" = set; then
23567 withval="$with_quotas"
23568 case "$withval" in
23569 yes)
23570 echo "$as_me:$LINENO: result: yes" >&5
23571 echo "${ECHO_T}yes" >&6
23572 case "$host_os" in
23573 *linux*)
23574 # Check for kernel 2.4.x quota braindamage...
23575 echo "$as_me:$LINENO: checking for linux 2.4.x quota braindamage.." >&5
23576 echo $ECHO_N "checking for linux 2.4.x quota braindamage..... $ECHO_C" >&6
23577 if test "${samba_cv_linux_2_4_quota_braindamage+set}" = set; then
23578 echo $ECHO_N "(cached) $ECHO_C" >&6
23579 else
23581 cat >conftest.$ac_ext <<_ACEOF
23582 #line $LINENO "configure"
23583 #include "confdefs.h"
23584 #include <stdio.h>
23585 #include <sys/types.h>
23586 #include <asm/types.h>
23587 #include <linux/quota.h>
23588 #include <mntent.h>
23589 #include <linux/unistd.h>
23590 #ifdef F77_DUMMY_MAIN
23591 # ifdef __cplusplus
23592 extern "C"
23593 # endif
23594 int F77_DUMMY_MAIN() { return 1; }
23595 #endif
23597 main ()
23599 struct mem_dqblk D;
23601 return 0;
23603 _ACEOF
23604 rm -f conftest.$ac_objext
23605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23606 (eval $ac_compile) 2>&5
23607 ac_status=$?
23608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609 (exit $ac_status); } &&
23610 { ac_try='test -s conftest.$ac_objext'
23611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23612 (eval $ac_try) 2>&5
23613 ac_status=$?
23614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); }; }; then
23616 samba_cv_linux_2_4_quota_braindamage=yes
23617 else
23618 echo "$as_me: failed program was:" >&5
23619 cat conftest.$ac_ext >&5
23620 samba_cv_linux_2_4_quota_braindamage=no
23622 rm -f conftest.$ac_objext conftest.$ac_ext
23624 echo "$as_me:$LINENO: result: $samba_cv_linux_2_4_quota_braindamage" >&5
23625 echo "${ECHO_T}$samba_cv_linux_2_4_quota_braindamage" >&6
23626 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
23628 cat >>confdefs.h <<\_ACEOF
23629 #define LINUX_QUOTAS_2 1
23630 _ACEOF
23632 else
23634 cat >>confdefs.h <<\_ACEOF
23635 #define LINUX_QUOTAS_1 1
23636 _ACEOF
23642 esac
23643 QUOTAOBJS=smbd/quotas.o
23645 cat >>confdefs.h <<\_ACEOF
23646 #define WITH_QUOTAS 1
23647 _ACEOF
23651 echo "$as_me:$LINENO: result: no" >&5
23652 echo "${ECHO_T}no" >&6
23654 esac
23655 else
23656 echo "$as_me:$LINENO: result: no" >&5
23657 echo "${ECHO_T}no" >&6
23662 #################################################
23663 # check for experimental utmp accounting
23665 echo "$as_me:$LINENO: checking whether to support utmp accounting" >&5
23666 echo $ECHO_N "checking whether to support utmp accounting... $ECHO_C" >&6
23668 # Check whether --with-utmp or --without-utmp was given.
23669 if test "${with_utmp+set}" = set; then
23670 withval="$with_utmp"
23671 case "$withval" in
23672 yes)
23673 echo "$as_me:$LINENO: result: yes" >&5
23674 echo "${ECHO_T}yes" >&6
23676 cat >>confdefs.h <<\_ACEOF
23677 #define WITH_UTMP 1
23678 _ACEOF
23682 echo "$as_me:$LINENO: result: no" >&5
23683 echo "${ECHO_T}no" >&6
23685 esac
23686 else
23687 echo "$as_me:$LINENO: result: no" >&5
23688 echo "${ECHO_T}no" >&6
23692 #################################################
23693 # choose native language(s) of man pages
23694 echo "$as_me:$LINENO: checking chosen man pages' language(s)" >&5
23695 echo $ECHO_N "checking chosen man pages' language(s)... $ECHO_C" >&6
23697 # Check whether --with-manpages-langs or --without-manpages-langs was given.
23698 if test "${with_manpages_langs+set}" = set; then
23699 withval="$with_manpages_langs"
23700 case "$withval" in
23701 yes|no)
23702 { echo "$as_me:$LINENO: WARNING: --with-manpages-langs called without argument - will use default" >&5
23703 echo "$as_me: WARNING: --with-manpages-langs called without argument - will use default" >&2;}
23704 manlangs="en"
23707 manlangs="$withval"
23709 esac
23711 echo "$as_me:$LINENO: result: $manlangs" >&5
23712 echo "${ECHO_T}$manlangs" >&6
23713 manlangs=`echo $manlangs | sed "s/,/ /g"` # replacing commas with spaces to produce a list
23715 else
23716 manlangs="en"
23717 echo "$as_me:$LINENO: result: $manlangs" >&5
23718 echo "${ECHO_T}$manlangs" >&6
23723 #################################################
23724 # should we build libsmbclient?
23726 INSTALLCLIENTCMD_SH=:
23727 INSTALLCLIENTCMD_A=:
23728 LIBSMBCLIENT_SHARED=
23729 LIBSMBCLIENT=
23730 echo "$as_me:$LINENO: checking whether to build the libsmbclient shared library" >&5
23731 echo $ECHO_N "checking whether to build the libsmbclient shared library... $ECHO_C" >&6
23733 # Check whether --with-libsmbclient or --without-libsmbclient was given.
23734 if test "${with_libsmbclient+set}" = set; then
23735 withval="$with_libsmbclient"
23736 case "$withval" in
23738 echo "$as_me:$LINENO: result: no" >&5
23739 echo "${ECHO_T}no" >&6
23742 if test $BLDSHARED = true; then
23743 INSTALLCLIENTCMD_SH="\$(INSTALLCMD)"
23744 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
23745 LIBSMBCLIENT=libsmbclient
23746 echo "$as_me:$LINENO: result: yes" >&5
23747 echo "${ECHO_T}yes" >&6
23748 else
23749 INSTALLCLIENTCMD_A="\$(INSTALLCMD)"
23750 LIBSMBCLIENT=libsmbclient
23751 echo "$as_me:$LINENO: result: no shared library support -- will supply static library" >&5
23752 echo "${ECHO_T}no shared library support -- will supply static library" >&6
23755 esac
23756 else
23758 # if unspecified, default is to built it iff possible.
23759 if test $BLDSHARED = true; then
23760 INSTALLCLIENTCMD_SH="\$(INSTALLCMD)"
23761 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
23762 LIBSMBCLIENT=libsmbclient
23763 echo "$as_me:$LINENO: result: yes" >&5
23764 echo "${ECHO_T}yes" >&6
23765 else
23766 INSTALLCLIENTCMD_A="\$(INSTALLCMD)"
23767 LIBSMBCLIENT=libsmbclient
23768 echo "$as_me:$LINENO: result: no shared library support -- will supply static library" >&5
23769 echo "${ECHO_T}no shared library support -- will supply static library" >&6
23775 #################################################
23776 # these tests are taken from the GNU fileutils package
23777 { echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
23778 echo "$as_me: checking how to get filesystem space usage..." >&6;}
23779 space=no
23781 # Test for statvfs64.
23782 if test $space = no; then
23783 # SVR4
23784 echo "$as_me:$LINENO: checking statvfs64 function (SVR4)" >&5
23785 echo $ECHO_N "checking statvfs64 function (SVR4)... $ECHO_C" >&6
23786 if test "${fu_cv_sys_stat_statvfs64+set}" = set; then
23787 echo $ECHO_N "(cached) $ECHO_C" >&6
23788 else
23789 if test "$cross_compiling" = yes; then
23790 fu_cv_sys_stat_statvfs64=cross
23791 else
23792 cat >conftest.$ac_ext <<_ACEOF
23793 #line $LINENO "configure"
23794 #include "confdefs.h"
23796 #if defined(HAVE_UNISTD_H)
23797 #include <unistd.h>
23798 #endif
23799 #include <sys/types.h>
23800 #include <sys/statvfs.h>
23801 main ()
23803 struct statvfs64 fsd;
23804 exit (statvfs64 (".", &fsd));
23806 _ACEOF
23807 rm -f conftest$ac_exeext
23808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23809 (eval $ac_link) 2>&5
23810 ac_status=$?
23811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23814 (eval $ac_try) 2>&5
23815 ac_status=$?
23816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23817 (exit $ac_status); }; }; then
23818 fu_cv_sys_stat_statvfs64=yes
23819 else
23820 echo "$as_me: program exited with status $ac_status" >&5
23821 echo "$as_me: failed program was:" >&5
23822 cat conftest.$ac_ext >&5
23823 ( exit $ac_status )
23824 fu_cv_sys_stat_statvfs64=no
23826 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23829 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs64" >&5
23830 echo "${ECHO_T}$fu_cv_sys_stat_statvfs64" >&6
23831 if test $fu_cv_sys_stat_statvfs64 = yes; then
23832 space=yes
23834 cat >>confdefs.h <<\_ACEOF
23835 #define STAT_STATVFS64 1
23836 _ACEOF
23841 # Perform only the link test since it seems there are no variants of the
23842 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
23843 # because that got a false positive on SCO OSR5. Adding the declaration
23844 # of a `struct statvfs' causes this test to fail (as it should) on such
23845 # systems. That system is reported to work fine with STAT_STATFS4 which
23846 # is what it gets when this test fails.
23847 if test $space = no; then
23848 # SVR4
23849 echo "$as_me:$LINENO: checking statvfs function (SVR4)" >&5
23850 echo $ECHO_N "checking statvfs function (SVR4)... $ECHO_C" >&6
23851 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
23852 echo $ECHO_N "(cached) $ECHO_C" >&6
23853 else
23854 cat >conftest.$ac_ext <<_ACEOF
23855 #line $LINENO "configure"
23856 #include "confdefs.h"
23857 #include <sys/types.h>
23858 #include <sys/statvfs.h>
23859 #ifdef F77_DUMMY_MAIN
23860 # ifdef __cplusplus
23861 extern "C"
23862 # endif
23863 int F77_DUMMY_MAIN() { return 1; }
23864 #endif
23866 main ()
23868 struct statvfs fsd; statvfs (0, &fsd);
23870 return 0;
23872 _ACEOF
23873 rm -f conftest.$ac_objext conftest$ac_exeext
23874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23875 (eval $ac_link) 2>&5
23876 ac_status=$?
23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878 (exit $ac_status); } &&
23879 { ac_try='test -s conftest$ac_exeext'
23880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23881 (eval $ac_try) 2>&5
23882 ac_status=$?
23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); }; }; then
23885 fu_cv_sys_stat_statvfs=yes
23886 else
23887 echo "$as_me: failed program was:" >&5
23888 cat conftest.$ac_ext >&5
23889 fu_cv_sys_stat_statvfs=no
23891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23893 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
23894 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
23895 if test $fu_cv_sys_stat_statvfs = yes; then
23896 space=yes
23898 cat >>confdefs.h <<\_ACEOF
23899 #define STAT_STATVFS 1
23900 _ACEOF
23905 if test $space = no; then
23906 # DEC Alpha running OSF/1
23907 echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
23908 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
23909 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
23910 echo $ECHO_N "(cached) $ECHO_C" >&6
23911 else
23912 if test "$cross_compiling" = yes; then
23913 fu_cv_sys_stat_statfs3_osf1=no
23914 else
23915 cat >conftest.$ac_ext <<_ACEOF
23916 #line $LINENO "configure"
23917 #include "confdefs.h"
23919 #include <sys/param.h>
23920 #include <sys/types.h>
23921 #include <sys/mount.h>
23922 main ()
23924 struct statfs fsd;
23925 fsd.f_fsize = 0;
23926 exit (statfs (".", &fsd, sizeof (struct statfs)));
23928 _ACEOF
23929 rm -f conftest$ac_exeext
23930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23931 (eval $ac_link) 2>&5
23932 ac_status=$?
23933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23936 (eval $ac_try) 2>&5
23937 ac_status=$?
23938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939 (exit $ac_status); }; }; then
23940 fu_cv_sys_stat_statfs3_osf1=yes
23941 else
23942 echo "$as_me: program exited with status $ac_status" >&5
23943 echo "$as_me: failed program was:" >&5
23944 cat conftest.$ac_ext >&5
23945 ( exit $ac_status )
23946 fu_cv_sys_stat_statfs3_osf1=no
23948 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23952 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
23953 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
23954 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
23955 space=yes
23957 cat >>confdefs.h <<\_ACEOF
23958 #define STAT_STATFS3_OSF1 1
23959 _ACEOF
23964 if test $space = no; then
23965 # AIX
23966 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
23967 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
23968 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
23969 echo $ECHO_N "(cached) $ECHO_C" >&6
23970 else
23971 if test "$cross_compiling" = yes; then
23972 fu_cv_sys_stat_statfs2_bsize=no
23973 else
23974 cat >conftest.$ac_ext <<_ACEOF
23975 #line $LINENO "configure"
23976 #include "confdefs.h"
23978 #ifdef HAVE_SYS_PARAM_H
23979 #include <sys/param.h>
23980 #endif
23981 #ifdef HAVE_SYS_MOUNT_H
23982 #include <sys/mount.h>
23983 #endif
23984 #ifdef HAVE_SYS_VFS_H
23985 #include <sys/vfs.h>
23986 #endif
23987 main ()
23989 struct statfs fsd;
23990 fsd.f_bsize = 0;
23991 exit (statfs (".", &fsd));
23993 _ACEOF
23994 rm -f conftest$ac_exeext
23995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23996 (eval $ac_link) 2>&5
23997 ac_status=$?
23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24001 (eval $ac_try) 2>&5
24002 ac_status=$?
24003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004 (exit $ac_status); }; }; then
24005 fu_cv_sys_stat_statfs2_bsize=yes
24006 else
24007 echo "$as_me: program exited with status $ac_status" >&5
24008 echo "$as_me: failed program was:" >&5
24009 cat conftest.$ac_ext >&5
24010 ( exit $ac_status )
24011 fu_cv_sys_stat_statfs2_bsize=no
24013 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24017 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
24018 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
24019 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
24020 space=yes
24022 cat >>confdefs.h <<\_ACEOF
24023 #define STAT_STATFS2_BSIZE 1
24024 _ACEOF
24029 if test $space = no; then
24030 # SVR3
24031 echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
24032 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
24033 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
24034 echo $ECHO_N "(cached) $ECHO_C" >&6
24035 else
24036 if test "$cross_compiling" = yes; then
24037 fu_cv_sys_stat_statfs4=no
24038 else
24039 cat >conftest.$ac_ext <<_ACEOF
24040 #line $LINENO "configure"
24041 #include "confdefs.h"
24042 #include <sys/types.h>
24043 #include <sys/statfs.h>
24044 main ()
24046 struct statfs fsd;
24047 exit (statfs (".", &fsd, sizeof fsd, 0));
24049 _ACEOF
24050 rm -f conftest$ac_exeext
24051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24052 (eval $ac_link) 2>&5
24053 ac_status=$?
24054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24057 (eval $ac_try) 2>&5
24058 ac_status=$?
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); }; }; then
24061 fu_cv_sys_stat_statfs4=yes
24062 else
24063 echo "$as_me: program exited with status $ac_status" >&5
24064 echo "$as_me: failed program was:" >&5
24065 cat conftest.$ac_ext >&5
24066 ( exit $ac_status )
24067 fu_cv_sys_stat_statfs4=no
24069 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24073 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
24074 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
24075 if test $fu_cv_sys_stat_statfs4 = yes; then
24076 space=yes
24078 cat >>confdefs.h <<\_ACEOF
24079 #define STAT_STATFS4 1
24080 _ACEOF
24085 if test $space = no; then
24086 # 4.4BSD and NetBSD
24087 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
24088 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
24089 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
24090 echo $ECHO_N "(cached) $ECHO_C" >&6
24091 else
24092 if test "$cross_compiling" = yes; then
24093 fu_cv_sys_stat_statfs2_fsize=no
24094 else
24095 cat >conftest.$ac_ext <<_ACEOF
24096 #line $LINENO "configure"
24097 #include "confdefs.h"
24098 #include <sys/types.h>
24099 #ifdef HAVE_SYS_PARAM_H
24100 #include <sys/param.h>
24101 #endif
24102 #ifdef HAVE_SYS_MOUNT_H
24103 #include <sys/mount.h>
24104 #endif
24105 main ()
24107 struct statfs fsd;
24108 fsd.f_fsize = 0;
24109 exit (statfs (".", &fsd));
24111 _ACEOF
24112 rm -f conftest$ac_exeext
24113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24114 (eval $ac_link) 2>&5
24115 ac_status=$?
24116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24119 (eval $ac_try) 2>&5
24120 ac_status=$?
24121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122 (exit $ac_status); }; }; then
24123 fu_cv_sys_stat_statfs2_fsize=yes
24124 else
24125 echo "$as_me: program exited with status $ac_status" >&5
24126 echo "$as_me: failed program was:" >&5
24127 cat conftest.$ac_ext >&5
24128 ( exit $ac_status )
24129 fu_cv_sys_stat_statfs2_fsize=no
24131 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24135 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
24136 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
24137 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
24138 space=yes
24140 cat >>confdefs.h <<\_ACEOF
24141 #define STAT_STATFS2_FSIZE 1
24142 _ACEOF
24147 if test $space = no; then
24148 # Ultrix
24149 echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
24150 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
24151 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
24152 echo $ECHO_N "(cached) $ECHO_C" >&6
24153 else
24154 if test "$cross_compiling" = yes; then
24155 fu_cv_sys_stat_fs_data=no
24156 else
24157 cat >conftest.$ac_ext <<_ACEOF
24158 #line $LINENO "configure"
24159 #include "confdefs.h"
24160 #include <sys/types.h>
24161 #ifdef HAVE_SYS_PARAM_H
24162 #include <sys/param.h>
24163 #endif
24164 #ifdef HAVE_SYS_MOUNT_H
24165 #include <sys/mount.h>
24166 #endif
24167 #ifdef HAVE_SYS_FS_TYPES_H
24168 #include <sys/fs_types.h>
24169 #endif
24170 main ()
24172 struct fs_data fsd;
24173 /* Ultrix's statfs returns 1 for success,
24174 0 for not mounted, -1 for failure. */
24175 exit (statfs (".", &fsd) != 1);
24177 _ACEOF
24178 rm -f conftest$ac_exeext
24179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24180 (eval $ac_link) 2>&5
24181 ac_status=$?
24182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24185 (eval $ac_try) 2>&5
24186 ac_status=$?
24187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); }; }; then
24189 fu_cv_sys_stat_fs_data=yes
24190 else
24191 echo "$as_me: program exited with status $ac_status" >&5
24192 echo "$as_me: failed program was:" >&5
24193 cat conftest.$ac_ext >&5
24194 ( exit $ac_status )
24195 fu_cv_sys_stat_fs_data=no
24197 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24201 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
24202 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
24203 if test $fu_cv_sys_stat_fs_data = yes; then
24204 space=yes
24206 cat >>confdefs.h <<\_ACEOF
24207 #define STAT_STATFS2_FS_DATA 1
24208 _ACEOF
24214 # As a gating factor for large file support, in order to
24215 # use <4GB files we must have the following minimal support
24216 # available.
24217 # long long, and a 64 bit off_t or off64_t.
24218 # If we don't have all of these then disable large
24219 # file support.
24221 echo "$as_me:$LINENO: checking if large file support can be enabled" >&5
24222 echo $ECHO_N "checking if large file support can be enabled... $ECHO_C" >&6
24223 cat >conftest.$ac_ext <<_ACEOF
24224 #line $LINENO "configure"
24225 #include "confdefs.h"
24227 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
24228 #include <sys/types.h>
24229 #else
24230 __COMPILE_ERROR_
24231 #endif
24233 #ifdef F77_DUMMY_MAIN
24234 # ifdef __cplusplus
24235 extern "C"
24236 # endif
24237 int F77_DUMMY_MAIN() { return 1; }
24238 #endif
24240 main ()
24242 int i
24244 return 0;
24246 _ACEOF
24247 rm -f conftest.$ac_objext
24248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24249 (eval $ac_compile) 2>&5
24250 ac_status=$?
24251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252 (exit $ac_status); } &&
24253 { ac_try='test -s conftest.$ac_objext'
24254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24255 (eval $ac_try) 2>&5
24256 ac_status=$?
24257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258 (exit $ac_status); }; }; then
24259 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
24260 else
24261 echo "$as_me: failed program was:" >&5
24262 cat conftest.$ac_ext >&5
24263 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
24265 rm -f conftest.$ac_objext conftest.$ac_ext
24266 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
24268 cat >>confdefs.h <<\_ACEOF
24269 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
24270 _ACEOF
24273 echo "$as_me:$LINENO: result: $samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&5
24274 echo "${ECHO_T}$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&6
24277 # Check whether --with-spinlocks or --without-spinlocks was given.
24278 if test "${with_spinlocks+set}" = set; then
24279 withval="$with_spinlocks"
24282 if test "x$with_spinlocks" = "xyes"; then
24284 cat >>confdefs.h <<\_ACEOF
24285 #define USE_SPINLOCKS 1
24286 _ACEOF
24289 case "$host_cpu" in
24290 sparc)
24292 cat >>confdefs.h <<\_ACEOF
24293 #define SPARC_SPINLOCKS 1
24294 _ACEOF
24298 i386|i486|i586|i686)
24300 cat >>confdefs.h <<\_ACEOF
24301 #define INTEL_SPINLOCKS 1
24302 _ACEOF
24306 mips)
24308 cat >>confdefs.h <<\_ACEOF
24309 #define MIPS_SPINLOCKS 1
24310 _ACEOF
24314 powerpc)
24316 cat >>confdefs.h <<\_ACEOF
24317 #define POWERPC_SPINLOCKS 1
24318 _ACEOF
24321 esac
24324 #################################################
24325 # check for ACL support
24327 echo "$as_me:$LINENO: checking whether to support ACLs" >&5
24328 echo $ECHO_N "checking whether to support ACLs... $ECHO_C" >&6
24330 # Check whether --with-acl-support or --without-acl-support was given.
24331 if test "${with_acl_support+set}" = set; then
24332 withval="$with_acl_support"
24333 case "$withval" in
24334 yes)
24336 case "$host_os" in
24337 *sysv5*)
24338 echo "$as_me:$LINENO: result: Using UnixWare ACLs" >&5
24339 echo "${ECHO_T}Using UnixWare ACLs" >&6
24341 cat >>confdefs.h <<\_ACEOF
24342 #define HAVE_UNIXWARE_ACLS 1
24343 _ACEOF
24346 *solaris*)
24347 echo "$as_me:$LINENO: result: Using solaris ACLs" >&5
24348 echo "${ECHO_T}Using solaris ACLs" >&6
24350 cat >>confdefs.h <<\_ACEOF
24351 #define HAVE_SOLARIS_ACLS 1
24352 _ACEOF
24355 *hpux*)
24356 echo "$as_me:$LINENO: result: Using HPUX ACLs" >&5
24357 echo "${ECHO_T}Using HPUX ACLs" >&6
24359 cat >>confdefs.h <<\_ACEOF
24360 #define HAVE_HPUX_ACLS 1
24361 _ACEOF
24364 *irix*)
24365 echo "$as_me:$LINENO: result: Using IRIX ACLs" >&5
24366 echo "${ECHO_T}Using IRIX ACLs" >&6
24368 cat >>confdefs.h <<\_ACEOF
24369 #define HAVE_IRIX_ACLS 1
24370 _ACEOF
24373 *aix*)
24374 echo "$as_me:$LINENO: result: Using AIX ACLs" >&5
24375 echo "${ECHO_T}Using AIX ACLs" >&6
24377 cat >>confdefs.h <<\_ACEOF
24378 #define HAVE_AIX_ACLS 1
24379 _ACEOF
24382 *osf*)
24383 echo "$as_me:$LINENO: result: Using Tru64 ACLs" >&5
24384 echo "${ECHO_T}Using Tru64 ACLs" >&6
24386 cat >>confdefs.h <<\_ACEOF
24387 #define HAVE_TRU64_ACLS 1
24388 _ACEOF
24390 LIBS="$LIBS -lpacl"
24394 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
24395 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
24396 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
24397 echo $ECHO_N "(cached) $ECHO_C" >&6
24398 else
24399 ac_check_lib_save_LIBS=$LIBS
24400 LIBS="-lacl $LIBS"
24401 cat >conftest.$ac_ext <<_ACEOF
24402 #line $LINENO "configure"
24403 #include "confdefs.h"
24405 /* Override any gcc2 internal prototype to avoid an error. */
24406 #ifdef __cplusplus
24407 extern "C"
24408 #endif
24409 /* We use char because int might match the return type of a gcc2
24410 builtin and then its argument prototype would still apply. */
24411 char acl_get_file ();
24412 #ifdef F77_DUMMY_MAIN
24413 # ifdef __cplusplus
24414 extern "C"
24415 # endif
24416 int F77_DUMMY_MAIN() { return 1; }
24417 #endif
24419 main ()
24421 acl_get_file ();
24423 return 0;
24425 _ACEOF
24426 rm -f conftest.$ac_objext conftest$ac_exeext
24427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24428 (eval $ac_link) 2>&5
24429 ac_status=$?
24430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431 (exit $ac_status); } &&
24432 { ac_try='test -s conftest$ac_exeext'
24433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24434 (eval $ac_try) 2>&5
24435 ac_status=$?
24436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437 (exit $ac_status); }; }; then
24438 ac_cv_lib_acl_acl_get_file=yes
24439 else
24440 echo "$as_me: failed program was:" >&5
24441 cat conftest.$ac_ext >&5
24442 ac_cv_lib_acl_acl_get_file=no
24444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24445 LIBS=$ac_check_lib_save_LIBS
24447 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
24448 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
24449 if test $ac_cv_lib_acl_acl_get_file = yes; then
24450 cat >>confdefs.h <<_ACEOF
24451 #define HAVE_LIBACL 1
24452 _ACEOF
24454 LIBS="-lacl $LIBS"
24458 echo "$as_me:$LINENO: checking for ACL support" >&5
24459 echo $ECHO_N "checking for ACL support... $ECHO_C" >&6
24460 if test "${samba_cv_HAVE_POSIX_ACLS+set}" = set; then
24461 echo $ECHO_N "(cached) $ECHO_C" >&6
24462 else
24464 cat >conftest.$ac_ext <<_ACEOF
24465 #line $LINENO "configure"
24466 #include "confdefs.h"
24467 #include <sys/types.h>
24468 #include <sys/acl.h>
24469 #ifdef F77_DUMMY_MAIN
24470 # ifdef __cplusplus
24471 extern "C"
24472 # endif
24473 int F77_DUMMY_MAIN() { return 1; }
24474 #endif
24476 main ()
24478 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
24480 return 0;
24482 _ACEOF
24483 rm -f conftest.$ac_objext conftest$ac_exeext
24484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24485 (eval $ac_link) 2>&5
24486 ac_status=$?
24487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488 (exit $ac_status); } &&
24489 { ac_try='test -s conftest$ac_exeext'
24490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24491 (eval $ac_try) 2>&5
24492 ac_status=$?
24493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494 (exit $ac_status); }; }; then
24495 samba_cv_HAVE_POSIX_ACLS=yes
24496 else
24497 echo "$as_me: failed program was:" >&5
24498 cat conftest.$ac_ext >&5
24499 samba_cv_HAVE_POSIX_ACLS=no
24501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24503 echo "$as_me:$LINENO: result: $samba_cv_HAVE_POSIX_ACLS" >&5
24504 echo "${ECHO_T}$samba_cv_HAVE_POSIX_ACLS" >&6
24505 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
24506 echo "$as_me:$LINENO: result: Using posix ACLs" >&5
24507 echo "${ECHO_T}Using posix ACLs" >&6
24509 cat >>confdefs.h <<\_ACEOF
24510 #define HAVE_POSIX_ACLS 1
24511 _ACEOF
24513 echo "$as_me:$LINENO: checking for acl_get_perm_np" >&5
24514 echo $ECHO_N "checking for acl_get_perm_np... $ECHO_C" >&6
24515 if test "${samba_cv_HAVE_ACL_GET_PERM_NP+set}" = set; then
24516 echo $ECHO_N "(cached) $ECHO_C" >&6
24517 else
24519 cat >conftest.$ac_ext <<_ACEOF
24520 #line $LINENO "configure"
24521 #include "confdefs.h"
24522 #include <sys/types.h>
24523 #include <sys/acl.h>
24524 #ifdef F77_DUMMY_MAIN
24525 # ifdef __cplusplus
24526 extern "C"
24527 # endif
24528 int F77_DUMMY_MAIN() { return 1; }
24529 #endif
24531 main ()
24533 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
24535 return 0;
24537 _ACEOF
24538 rm -f conftest.$ac_objext conftest$ac_exeext
24539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24540 (eval $ac_link) 2>&5
24541 ac_status=$?
24542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543 (exit $ac_status); } &&
24544 { ac_try='test -s conftest$ac_exeext'
24545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24546 (eval $ac_try) 2>&5
24547 ac_status=$?
24548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549 (exit $ac_status); }; }; then
24550 samba_cv_HAVE_ACL_GET_PERM_NP=yes
24551 else
24552 echo "$as_me: failed program was:" >&5
24553 cat conftest.$ac_ext >&5
24554 samba_cv_HAVE_ACL_GET_PERM_NP=no
24556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24558 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ACL_GET_PERM_NP" >&5
24559 echo "${ECHO_T}$samba_cv_HAVE_ACL_GET_PERM_NP" >&6
24560 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
24562 cat >>confdefs.h <<\_ACEOF
24563 #define HAVE_ACL_GET_PERM_NP 1
24564 _ACEOF
24569 esac
24572 echo "$as_me:$LINENO: result: no" >&5
24573 echo "${ECHO_T}no" >&6
24575 cat >>confdefs.h <<\_ACEOF
24576 #define HAVE_NO_ACLS 1
24577 _ACEOF
24580 esac
24581 else
24583 cat >>confdefs.h <<\_ACEOF
24584 #define HAVE_NO_ACLS 1
24585 _ACEOF
24587 echo "$as_me:$LINENO: result: no" >&5
24588 echo "${ECHO_T}no" >&6
24592 #################################################
24593 # check for sendfile support
24595 with_sendfile_support=yes
24596 echo "$as_me:$LINENO: checking whether to check to support sendfile" >&5
24597 echo $ECHO_N "checking whether to check to support sendfile... $ECHO_C" >&6
24599 # Check whether --with-sendfile-support or --without-sendfile-support was given.
24600 if test "${with_sendfile_support+set}" = set; then
24601 withval="$with_sendfile_support"
24602 case "$withval" in
24603 yes)
24605 echo "$as_me:$LINENO: result: yes" >&5
24606 echo "${ECHO_T}yes" >&6;
24608 case "$host_os" in
24609 *linux*)
24610 echo "$as_me:$LINENO: checking for linux sendfile64 support" >&5
24611 echo $ECHO_N "checking for linux sendfile64 support... $ECHO_C" >&6
24612 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
24613 echo $ECHO_N "(cached) $ECHO_C" >&6
24614 else
24616 cat >conftest.$ac_ext <<_ACEOF
24617 #line $LINENO "configure"
24618 #include "confdefs.h"
24619 #include <sys/sendfile.h>
24620 #ifdef F77_DUMMY_MAIN
24621 # ifdef __cplusplus
24622 extern "C"
24623 # endif
24624 int F77_DUMMY_MAIN() { return 1; }
24625 #endif
24627 main ()
24630 int tofd, fromfd;
24631 off64_t offset;
24632 size_t total;
24633 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
24636 return 0;
24638 _ACEOF
24639 rm -f conftest.$ac_objext conftest$ac_exeext
24640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24641 (eval $ac_link) 2>&5
24642 ac_status=$?
24643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644 (exit $ac_status); } &&
24645 { ac_try='test -s 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 samba_cv_HAVE_SENDFILE64=yes
24652 else
24653 echo "$as_me: failed program was:" >&5
24654 cat conftest.$ac_ext >&5
24655 samba_cv_HAVE_SENDFILE64=no
24657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24659 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
24660 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
24662 echo "$as_me:$LINENO: checking for linux sendfile support" >&5
24663 echo $ECHO_N "checking for linux sendfile support... $ECHO_C" >&6
24664 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
24665 echo $ECHO_N "(cached) $ECHO_C" >&6
24666 else
24668 cat >conftest.$ac_ext <<_ACEOF
24669 #line $LINENO "configure"
24670 #include "confdefs.h"
24671 #include <sys/sendfile.h>
24672 #ifdef F77_DUMMY_MAIN
24673 # ifdef __cplusplus
24674 extern "C"
24675 # endif
24676 int F77_DUMMY_MAIN() { return 1; }
24677 #endif
24679 main ()
24682 int tofd, fromfd;
24683 off_t offset;
24684 size_t total;
24685 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
24688 return 0;
24690 _ACEOF
24691 rm -f conftest.$ac_objext conftest$ac_exeext
24692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24693 (eval $ac_link) 2>&5
24694 ac_status=$?
24695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24696 (exit $ac_status); } &&
24697 { ac_try='test -s conftest$ac_exeext'
24698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24699 (eval $ac_try) 2>&5
24700 ac_status=$?
24701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24702 (exit $ac_status); }; }; then
24703 samba_cv_HAVE_SENDFILE=yes
24704 else
24705 echo "$as_me: failed program was:" >&5
24706 cat conftest.$ac_ext >&5
24707 samba_cv_HAVE_SENDFILE=no
24709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24711 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
24712 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
24714 # Try and cope with broken Linux sendfile....
24715 echo "$as_me:$LINENO: checking for broken linux sendfile support" >&5
24716 echo $ECHO_N "checking for broken linux sendfile support... $ECHO_C" >&6
24717 if test "${samba_cv_HAVE_BROKEN_LINUX_SENDFILE+set}" = set; then
24718 echo $ECHO_N "(cached) $ECHO_C" >&6
24719 else
24721 cat >conftest.$ac_ext <<_ACEOF
24722 #line $LINENO "configure"
24723 #include "confdefs.h"
24725 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
24726 #undef _FILE_OFFSET_BITS
24727 #endif
24728 #include <sys/sendfile.h>
24729 #ifdef F77_DUMMY_MAIN
24730 # ifdef __cplusplus
24731 extern "C"
24732 # endif
24733 int F77_DUMMY_MAIN() { return 1; }
24734 #endif
24736 main ()
24739 int tofd, fromfd;
24740 off_t offset;
24741 size_t total;
24742 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
24745 return 0;
24747 _ACEOF
24748 rm -f conftest.$ac_objext conftest$ac_exeext
24749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24750 (eval $ac_link) 2>&5
24751 ac_status=$?
24752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753 (exit $ac_status); } &&
24754 { ac_try='test -s conftest$ac_exeext'
24755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24756 (eval $ac_try) 2>&5
24757 ac_status=$?
24758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759 (exit $ac_status); }; }; then
24760 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
24761 else
24762 echo "$as_me: failed program was:" >&5
24763 cat conftest.$ac_ext >&5
24764 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
24766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24768 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&5
24769 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&6
24771 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
24773 cat >>confdefs.h <<\_ACEOF
24774 #define HAVE_SENDFILE64 1
24775 _ACEOF
24778 cat >>confdefs.h <<\_ACEOF
24779 #define LINUX_SENDFILE_API 1
24780 _ACEOF
24783 cat >>confdefs.h <<\_ACEOF
24784 #define WITH_SENDFILE 1
24785 _ACEOF
24787 elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
24789 cat >>confdefs.h <<\_ACEOF
24790 #define HAVE_SENDFILE 1
24791 _ACEOF
24794 cat >>confdefs.h <<\_ACEOF
24795 #define LINUX_SENDFILE_API 1
24796 _ACEOF
24799 cat >>confdefs.h <<\_ACEOF
24800 #define WITH_SENDFILE 1
24801 _ACEOF
24803 elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
24805 cat >>confdefs.h <<\_ACEOF
24806 #define LINUX_BROKEN_SENDFILE_API 1
24807 _ACEOF
24810 cat >>confdefs.h <<\_ACEOF
24811 #define WITH_SENDFILE 1
24812 _ACEOF
24814 else
24815 echo "$as_me:$LINENO: result: no" >&5
24816 echo "${ECHO_T}no" >&6;
24820 *freebsd*)
24821 echo "$as_me:$LINENO: checking for freebsd sendfile support" >&5
24822 echo $ECHO_N "checking for freebsd sendfile support... $ECHO_C" >&6
24823 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
24824 echo $ECHO_N "(cached) $ECHO_C" >&6
24825 else
24827 cat >conftest.$ac_ext <<_ACEOF
24828 #line $LINENO "configure"
24829 #include "confdefs.h"
24831 #include <sys/types.h>
24832 #include <unistd.h>
24833 #include <sys/socket.h>
24834 #include <sys/uio.h>
24835 #ifdef F77_DUMMY_MAIN
24836 # ifdef __cplusplus
24837 extern "C"
24838 # endif
24839 int F77_DUMMY_MAIN() { return 1; }
24840 #endif
24842 main ()
24845 int fromfd, tofd, ret, total=0;
24846 off_t offset, nwritten;
24847 struct sf_hdtr hdr;
24848 struct iovec hdtrl;
24849 hdr.headers = &hdtrl;
24850 hdr.hdr_cnt = 1;
24851 hdr.trailers = NULL;
24852 hdr.trl_cnt = 0;
24853 hdtrl.iov_base = NULL;
24854 hdtrl.iov_len = 0;
24855 ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
24858 return 0;
24860 _ACEOF
24861 rm -f conftest.$ac_objext conftest$ac_exeext
24862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24863 (eval $ac_link) 2>&5
24864 ac_status=$?
24865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866 (exit $ac_status); } &&
24867 { ac_try='test -s conftest$ac_exeext'
24868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24869 (eval $ac_try) 2>&5
24870 ac_status=$?
24871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24872 (exit $ac_status); }; }; then
24873 samba_cv_HAVE_SENDFILE=yes
24874 else
24875 echo "$as_me: failed program was:" >&5
24876 cat conftest.$ac_ext >&5
24877 samba_cv_HAVE_SENDFILE=no
24879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24881 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
24882 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
24884 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
24886 cat >>confdefs.h <<\_ACEOF
24887 #define HAVE_SENDFILE 1
24888 _ACEOF
24891 cat >>confdefs.h <<\_ACEOF
24892 #define FREEBSD_SENDFILE_API 1
24893 _ACEOF
24896 cat >>confdefs.h <<\_ACEOF
24897 #define WITH_SENDFILE 1
24898 _ACEOF
24900 else
24901 echo "$as_me:$LINENO: result: no" >&5
24902 echo "${ECHO_T}no" >&6;
24906 *hpux*)
24907 echo "$as_me:$LINENO: checking for hpux sendfile64 support" >&5
24908 echo $ECHO_N "checking for hpux sendfile64 support... $ECHO_C" >&6
24909 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
24910 echo $ECHO_N "(cached) $ECHO_C" >&6
24911 else
24913 cat >conftest.$ac_ext <<_ACEOF
24914 #line $LINENO "configure"
24915 #include "confdefs.h"
24917 #include <sys/socket.h>
24918 #include <sys/uio.h>
24919 #ifdef F77_DUMMY_MAIN
24920 # ifdef __cplusplus
24921 extern "C"
24922 # endif
24923 int F77_DUMMY_MAIN() { return 1; }
24924 #endif
24926 main ()
24929 int fromfd, tofd;
24930 size_t total=0;
24931 struct iovec hdtrl[2];
24932 ssize_t nwritten;
24933 off64_t offset;
24935 hdtrl[0].iov_base = 0;
24936 hdtrl[0].iov_len = 0;
24938 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
24941 return 0;
24943 _ACEOF
24944 rm -f conftest.$ac_objext conftest$ac_exeext
24945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24946 (eval $ac_link) 2>&5
24947 ac_status=$?
24948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); } &&
24950 { ac_try='test -s conftest$ac_exeext'
24951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24952 (eval $ac_try) 2>&5
24953 ac_status=$?
24954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955 (exit $ac_status); }; }; then
24956 samba_cv_HAVE_SENDFILE64=yes
24957 else
24958 echo "$as_me: failed program was:" >&5
24959 cat conftest.$ac_ext >&5
24960 samba_cv_HAVE_SENDFILE64=no
24962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24964 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
24965 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
24966 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
24968 cat >>confdefs.h <<\_ACEOF
24969 #define HAVE_SENDFILE64 1
24970 _ACEOF
24973 cat >>confdefs.h <<\_ACEOF
24974 #define HPUX_SENDFILE_API 1
24975 _ACEOF
24978 cat >>confdefs.h <<\_ACEOF
24979 #define WITH_SENDFILE 1
24980 _ACEOF
24982 else
24983 echo "$as_me:$LINENO: result: no" >&5
24984 echo "${ECHO_T}no" >&6;
24987 echo "$as_me:$LINENO: checking for hpux sendfile support" >&5
24988 echo $ECHO_N "checking for hpux sendfile support... $ECHO_C" >&6
24989 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
24990 echo $ECHO_N "(cached) $ECHO_C" >&6
24991 else
24993 cat >conftest.$ac_ext <<_ACEOF
24994 #line $LINENO "configure"
24995 #include "confdefs.h"
24997 #include <sys/socket.h>
24998 #include <sys/uio.h>
24999 #ifdef F77_DUMMY_MAIN
25000 # ifdef __cplusplus
25001 extern "C"
25002 # endif
25003 int F77_DUMMY_MAIN() { return 1; }
25004 #endif
25006 main ()
25009 int fromfd, tofd;
25010 size_t total=0;
25011 struct iovec hdtrl[2];
25012 ssize_t nwritten;
25013 off_t offset;
25015 hdtrl[0].iov_base = 0;
25016 hdtrl[0].iov_len = 0;
25018 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
25021 return 0;
25023 _ACEOF
25024 rm -f conftest.$ac_objext conftest$ac_exeext
25025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25026 (eval $ac_link) 2>&5
25027 ac_status=$?
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); } &&
25030 { ac_try='test -s conftest$ac_exeext'
25031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25032 (eval $ac_try) 2>&5
25033 ac_status=$?
25034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035 (exit $ac_status); }; }; then
25036 samba_cv_HAVE_SENDFILE=yes
25037 else
25038 echo "$as_me: failed program was:" >&5
25039 cat conftest.$ac_ext >&5
25040 samba_cv_HAVE_SENDFILE=no
25042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25044 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
25045 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
25046 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
25048 cat >>confdefs.h <<\_ACEOF
25049 #define HAVE_SENDFILE 1
25050 _ACEOF
25053 cat >>confdefs.h <<\_ACEOF
25054 #define HPUX_SENDFILE_API 1
25055 _ACEOF
25058 cat >>confdefs.h <<\_ACEOF
25059 #define WITH_SENDFILE 1
25060 _ACEOF
25062 else
25063 echo "$as_me:$LINENO: result: no" >&5
25064 echo "${ECHO_T}no" >&6;
25068 *solaris*)
25070 echo "$as_me:$LINENO: checking for sendfilev in -lsendfile" >&5
25071 echo $ECHO_N "checking for sendfilev in -lsendfile... $ECHO_C" >&6
25072 if test "${ac_cv_lib_sendfile_sendfilev+set}" = set; then
25073 echo $ECHO_N "(cached) $ECHO_C" >&6
25074 else
25075 ac_check_lib_save_LIBS=$LIBS
25076 LIBS="-lsendfile $LIBS"
25077 cat >conftest.$ac_ext <<_ACEOF
25078 #line $LINENO "configure"
25079 #include "confdefs.h"
25081 /* Override any gcc2 internal prototype to avoid an error. */
25082 #ifdef __cplusplus
25083 extern "C"
25084 #endif
25085 /* We use char because int might match the return type of a gcc2
25086 builtin and then its argument prototype would still apply. */
25087 char sendfilev ();
25088 #ifdef F77_DUMMY_MAIN
25089 # ifdef __cplusplus
25090 extern "C"
25091 # endif
25092 int F77_DUMMY_MAIN() { return 1; }
25093 #endif
25095 main ()
25097 sendfilev ();
25099 return 0;
25101 _ACEOF
25102 rm -f conftest.$ac_objext conftest$ac_exeext
25103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25104 (eval $ac_link) 2>&5
25105 ac_status=$?
25106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25107 (exit $ac_status); } &&
25108 { ac_try='test -s conftest$ac_exeext'
25109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25110 (eval $ac_try) 2>&5
25111 ac_status=$?
25112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113 (exit $ac_status); }; }; then
25114 ac_cv_lib_sendfile_sendfilev=yes
25115 else
25116 echo "$as_me: failed program was:" >&5
25117 cat conftest.$ac_ext >&5
25118 ac_cv_lib_sendfile_sendfilev=no
25120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25121 LIBS=$ac_check_lib_save_LIBS
25123 echo "$as_me:$LINENO: result: $ac_cv_lib_sendfile_sendfilev" >&5
25124 echo "${ECHO_T}$ac_cv_lib_sendfile_sendfilev" >&6
25125 if test $ac_cv_lib_sendfile_sendfilev = yes; then
25126 cat >>confdefs.h <<_ACEOF
25127 #define HAVE_LIBSENDFILE 1
25128 _ACEOF
25130 LIBS="-lsendfile $LIBS"
25134 echo "$as_me:$LINENO: checking for solaris sendfilev64 support" >&5
25135 echo $ECHO_N "checking for solaris sendfilev64 support... $ECHO_C" >&6
25136 if test "${samba_cv_HAVE_SENDFILEV64+set}" = set; then
25137 echo $ECHO_N "(cached) $ECHO_C" >&6
25138 else
25140 cat >conftest.$ac_ext <<_ACEOF
25141 #line $LINENO "configure"
25142 #include "confdefs.h"
25144 #include <sys/sendfile.h>
25145 #ifdef F77_DUMMY_MAIN
25146 # ifdef __cplusplus
25147 extern "C"
25148 # endif
25149 int F77_DUMMY_MAIN() { return 1; }
25150 #endif
25152 main ()
25155 int sfvcnt;
25156 size_t xferred;
25157 struct sendfilevec vec[2];
25158 ssize_t nwritten;
25159 int tofd;
25161 sfvcnt = 2;
25163 vec[0].sfv_fd = SFV_FD_SELF;
25164 vec[0].sfv_flag = 0;
25165 vec[0].sfv_off = 0;
25166 vec[0].sfv_len = 0;
25168 vec[1].sfv_fd = 0;
25169 vec[1].sfv_flag = 0;
25170 vec[1].sfv_off = 0;
25171 vec[1].sfv_len = 0;
25172 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
25175 return 0;
25177 _ACEOF
25178 rm -f conftest.$ac_objext conftest$ac_exeext
25179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25180 (eval $ac_link) 2>&5
25181 ac_status=$?
25182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183 (exit $ac_status); } &&
25184 { ac_try='test -s conftest$ac_exeext'
25185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25186 (eval $ac_try) 2>&5
25187 ac_status=$?
25188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189 (exit $ac_status); }; }; then
25190 samba_cv_HAVE_SENDFILEV64=yes
25191 else
25192 echo "$as_me: failed program was:" >&5
25193 cat conftest.$ac_ext >&5
25194 samba_cv_HAVE_SENDFILEV64=no
25196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25198 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV64" >&5
25199 echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV64" >&6
25201 if test x"$samba_cv_HAVE_SENDFILEV64" = x"yes"; then
25203 cat >>confdefs.h <<\_ACEOF
25204 #define HAVE_SENDFILEV64 1
25205 _ACEOF
25208 cat >>confdefs.h <<\_ACEOF
25209 #define SOLARIS_SENDFILE_API 1
25210 _ACEOF
25213 cat >>confdefs.h <<\_ACEOF
25214 #define WITH_SENDFILE 1
25215 _ACEOF
25217 else
25218 echo "$as_me:$LINENO: result: no" >&5
25219 echo "${ECHO_T}no" >&6;
25222 echo "$as_me:$LINENO: checking for solaris sendfilev support" >&5
25223 echo $ECHO_N "checking for solaris sendfilev support... $ECHO_C" >&6
25224 if test "${samba_cv_HAVE_SENDFILEV+set}" = set; then
25225 echo $ECHO_N "(cached) $ECHO_C" >&6
25226 else
25228 cat >conftest.$ac_ext <<_ACEOF
25229 #line $LINENO "configure"
25230 #include "confdefs.h"
25232 #include <sys/sendfile.h>
25233 #ifdef F77_DUMMY_MAIN
25234 # ifdef __cplusplus
25235 extern "C"
25236 # endif
25237 int F77_DUMMY_MAIN() { return 1; }
25238 #endif
25240 main ()
25243 int sfvcnt;
25244 size_t xferred;
25245 struct sendfilevec vec[2];
25246 ssize_t nwritten;
25247 int tofd;
25249 sfvcnt = 2;
25251 vec[0].sfv_fd = SFV_FD_SELF;
25252 vec[0].sfv_flag = 0;
25253 vec[0].sfv_off = 0;
25254 vec[0].sfv_len = 0;
25256 vec[1].sfv_fd = 0;
25257 vec[1].sfv_flag = 0;
25258 vec[1].sfv_off = 0;
25259 vec[1].sfv_len = 0;
25260 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
25263 return 0;
25265 _ACEOF
25266 rm -f conftest.$ac_objext conftest$ac_exeext
25267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25268 (eval $ac_link) 2>&5
25269 ac_status=$?
25270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271 (exit $ac_status); } &&
25272 { ac_try='test -s conftest$ac_exeext'
25273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25274 (eval $ac_try) 2>&5
25275 ac_status=$?
25276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25277 (exit $ac_status); }; }; then
25278 samba_cv_HAVE_SENDFILEV=yes
25279 else
25280 echo "$as_me: failed program was:" >&5
25281 cat conftest.$ac_ext >&5
25282 samba_cv_HAVE_SENDFILEV=no
25284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25286 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV" >&5
25287 echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV" >&6
25289 if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then
25291 cat >>confdefs.h <<\_ACEOF
25292 #define HAVE_SENDFILEV 1
25293 _ACEOF
25296 cat >>confdefs.h <<\_ACEOF
25297 #define SOLARIS_SENDFILE_API 1
25298 _ACEOF
25301 cat >>confdefs.h <<\_ACEOF
25302 #define WITH_SENDFILE 1
25303 _ACEOF
25305 else
25306 echo "$as_me:$LINENO: result: no" >&5
25307 echo "${ECHO_T}no" >&6;
25313 esac
25316 echo "$as_me:$LINENO: result: no" >&5
25317 echo "${ECHO_T}no" >&6
25319 esac
25320 else
25321 echo "$as_me:$LINENO: result: yes" >&5
25322 echo "${ECHO_T}yes" >&6
25327 #################################################
25328 # Check whether winbind is supported on this platform. If so we need to
25329 # build and install client programs, sbin programs and shared libraries
25331 echo "$as_me:$LINENO: checking whether to build winbind" >&5
25332 echo $ECHO_N "checking whether to build winbind... $ECHO_C" >&6
25334 # Initially, the value of $host_os decides whether winbind is supported
25336 case "$host_os" in
25337 *linux*|*irix*)
25338 HAVE_WINBIND=yes
25340 *solaris*)
25341 HAVE_WINBIND=yes
25342 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
25343 WINBIND_NSS_EXTRA_LIBS="-lsocket"
25345 *hpux11*)
25346 HAVE_WINBIND=yes
25347 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
25350 HAVE_WINBIND=no
25351 winbind_no_reason=", unsupported on $host_os"
25353 esac
25358 # Check the setting of --with-winbindd
25361 # Check whether --with-winbind or --without-winbind was given.
25362 if test "${with_winbind+set}" = set; then
25363 withval="$with_winbind"
25365 case "$withval" in
25366 yes)
25367 HAVE_WINBIND=yes
25370 HAVE_WINBIND=no
25371 winbind_reason=""
25373 esac
25376 # We need unix domain sockets for winbind
25378 if test x"$HAVE_WINBIND" = x"yes"; then
25379 if test x"$samba_cv_unixsocket" = x"no"; then
25380 winbind_no_reason=", no unix domain socket support on $host_os"
25381 HAVE_WINBIND=no
25385 # Display test results
25387 if test x"$HAVE_WINBIND" = x"yes"; then
25388 echo "$as_me:$LINENO: result: yes" >&5
25389 echo "${ECHO_T}yes" >&6
25391 cat >>confdefs.h <<\_ACEOF
25392 #define WITH_WINBIND 1
25393 _ACEOF
25396 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/wbinfo\$(EXEEXT)"
25397 EXTRA_SBIN_PROGS="$EXTRA_SBIN_PROGS bin/winbindd\$(EXEEXT)"
25398 if test x"$BLDSHARED" = x"true"; then
25399 case "$host_os" in
25400 *irix*)
25401 SHLIB_PROGS="$SHLIB_PROGS nsswitch/libns_winbind.so"
25404 SHLIB_PROGS="$SHLIB_PROGS nsswitch/libnss_winbind.so"
25406 esac
25407 if test x"$with_pam" = x"yes"; then
25408 SHLIB_PROGS="$SHLIB_PROGS nsswitch/pam_winbind.so"
25411 else
25412 echo "$as_me:$LINENO: result: no$winbind_no_reason" >&5
25413 echo "${ECHO_T}no$winbind_no_reason" >&6
25416 # Solaris has some extra fields in struct passwd that need to be
25417 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
25418 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
25419 # this.
25421 #AC_CHECK_MEMBER(struct passwd.pw_comment,
25422 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
25423 # [#include <pwd.h>])
25425 echo "$as_me:$LINENO: checking whether struct passwd has pw_comment" >&5
25426 echo $ECHO_N "checking whether struct passwd has pw_comment... $ECHO_C" >&6
25427 if test "${samba_cv_passwd_pw_comment+set}" = set; then
25428 echo $ECHO_N "(cached) $ECHO_C" >&6
25429 else
25431 cat >conftest.$ac_ext <<_ACEOF
25432 #line $LINENO "configure"
25433 #include "confdefs.h"
25434 #include <pwd.h>
25435 #ifdef F77_DUMMY_MAIN
25436 # ifdef __cplusplus
25437 extern "C"
25438 # endif
25439 int F77_DUMMY_MAIN() { return 1; }
25440 #endif
25442 main ()
25444 struct passwd p; p.pw_comment;
25446 return 0;
25448 _ACEOF
25449 rm -f conftest.$ac_objext
25450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25451 (eval $ac_compile) 2>&5
25452 ac_status=$?
25453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454 (exit $ac_status); } &&
25455 { ac_try='test -s conftest.$ac_objext'
25456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25457 (eval $ac_try) 2>&5
25458 ac_status=$?
25459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); }; }; then
25461 samba_cv_passwd_pw_comment=yes
25462 else
25463 echo "$as_me: failed program was:" >&5
25464 cat conftest.$ac_ext >&5
25465 samba_cv_passwd_pw_comment=no
25467 rm -f conftest.$ac_objext conftest.$ac_ext
25469 echo "$as_me:$LINENO: result: $samba_cv_passwd_pw_comment" >&5
25470 echo "${ECHO_T}$samba_cv_passwd_pw_comment" >&6
25471 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
25473 cat >>confdefs.h <<\_ACEOF
25474 #define HAVE_PASSWD_PW_COMMENT 1
25475 _ACEOF
25479 #AC_CHECK_MEMBER(struct passwd.pw_age,
25480 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
25481 # [#include <pwd.h>])
25483 echo "$as_me:$LINENO: checking whether struct passwd has pw_age" >&5
25484 echo $ECHO_N "checking whether struct passwd has pw_age... $ECHO_C" >&6
25485 if test "${samba_cv_passwd_pw_age+set}" = set; then
25486 echo $ECHO_N "(cached) $ECHO_C" >&6
25487 else
25489 cat >conftest.$ac_ext <<_ACEOF
25490 #line $LINENO "configure"
25491 #include "confdefs.h"
25492 #include <pwd.h>
25493 #ifdef F77_DUMMY_MAIN
25494 # ifdef __cplusplus
25495 extern "C"
25496 # endif
25497 int F77_DUMMY_MAIN() { return 1; }
25498 #endif
25500 main ()
25502 struct passwd p; p.pw_age;
25504 return 0;
25506 _ACEOF
25507 rm -f conftest.$ac_objext
25508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25509 (eval $ac_compile) 2>&5
25510 ac_status=$?
25511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512 (exit $ac_status); } &&
25513 { ac_try='test -s conftest.$ac_objext'
25514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25515 (eval $ac_try) 2>&5
25516 ac_status=$?
25517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518 (exit $ac_status); }; }; then
25519 samba_cv_passwd_pw_age=yes
25520 else
25521 echo "$as_me: failed program was:" >&5
25522 cat conftest.$ac_ext >&5
25523 samba_cv_passwd_pw_age=no
25525 rm -f conftest.$ac_objext conftest.$ac_ext
25527 echo "$as_me:$LINENO: result: $samba_cv_passwd_pw_age" >&5
25528 echo "${ECHO_T}$samba_cv_passwd_pw_age" >&6
25529 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
25531 cat >>confdefs.h <<\_ACEOF
25532 #define HAVE_PASSWD_PW_AGE 1
25533 _ACEOF
25537 #################################################
25538 # Check to see if we should use the included popt
25541 # Check whether --with-included-popt or --without-included-popt was given.
25542 if test "${with_included_popt+set}" = set; then
25543 withval="$with_included_popt"
25545 case "$withval" in
25546 yes)
25547 INCLUDED_POPT=yes
25550 INCLUDED_POPT=no
25552 esac
25554 if test x"$INCLUDED_POPT" != x"yes"; then
25555 echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
25556 echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6
25557 if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
25558 echo $ECHO_N "(cached) $ECHO_C" >&6
25559 else
25560 ac_check_lib_save_LIBS=$LIBS
25561 LIBS="-lpopt $LIBS"
25562 cat >conftest.$ac_ext <<_ACEOF
25563 #line $LINENO "configure"
25564 #include "confdefs.h"
25566 /* Override any gcc2 internal prototype to avoid an error. */
25567 #ifdef __cplusplus
25568 extern "C"
25569 #endif
25570 /* We use char because int might match the return type of a gcc2
25571 builtin and then its argument prototype would still apply. */
25572 char poptGetContext ();
25573 #ifdef F77_DUMMY_MAIN
25574 # ifdef __cplusplus
25575 extern "C"
25576 # endif
25577 int F77_DUMMY_MAIN() { return 1; }
25578 #endif
25580 main ()
25582 poptGetContext ();
25584 return 0;
25586 _ACEOF
25587 rm -f conftest.$ac_objext conftest$ac_exeext
25588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25589 (eval $ac_link) 2>&5
25590 ac_status=$?
25591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592 (exit $ac_status); } &&
25593 { ac_try='test -s conftest$ac_exeext'
25594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25595 (eval $ac_try) 2>&5
25596 ac_status=$?
25597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598 (exit $ac_status); }; }; then
25599 ac_cv_lib_popt_poptGetContext=yes
25600 else
25601 echo "$as_me: failed program was:" >&5
25602 cat conftest.$ac_ext >&5
25603 ac_cv_lib_popt_poptGetContext=no
25605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25606 LIBS=$ac_check_lib_save_LIBS
25608 echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
25609 echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6
25610 if test $ac_cv_lib_popt_poptGetContext = yes; then
25611 INCLUDED_POPT=no
25612 else
25613 INCLUDED_POPT=yes
25618 echo "$as_me:$LINENO: checking whether to use included popt" >&5
25619 echo $ECHO_N "checking whether to use included popt... $ECHO_C" >&6
25620 if test x"$INCLUDED_POPT" = x"yes"; then
25621 echo "$as_me:$LINENO: result: yes" >&5
25622 echo "${ECHO_T}yes" >&6
25623 BUILD_POPT='$(POPT_OBJS)'
25624 FLAGS1="-I$srcdir/popt"
25625 else
25626 echo "$as_me:$LINENO: result: no" >&5
25627 echo "${ECHO_T}no" >&6
25628 LIBS="$LIBS -lpopt"
25633 #################################################
25634 # Check if the user wants Python
25636 # At the moment, you can use this to set which Python binary to link
25637 # against. (Libraries built for Python2.2 can't be used by 2.1,
25638 # though they can coexist in different directories.) In the future
25639 # this might make the Python stuff be built by default.
25641 # Defaulting python breaks the clean target if python isn't installed
25643 PYTHON=
25646 # Check whether --with-python or --without-python was given.
25647 if test "${with_python+set}" = set; then
25648 withval="$with_python"
25649 case "${withval-python}" in
25650 yes)
25651 PYTHON=python
25652 EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS python_ext"
25655 PYTHON=
25658 PYTHON=${withval-python}
25660 esac
25664 #################################################
25665 # do extra things if we are running insure
25667 if test "${ac_cv_prog_CC}" = "insure"; then
25668 CPPFLAGS="$CPPFLAGS -D__INSURE__"
25671 #################################################
25672 # final configure stuff
25674 echo "$as_me:$LINENO: checking configure summary" >&5
25675 echo $ECHO_N "checking configure summary... $ECHO_C" >&6
25676 if test "$cross_compiling" = yes; then
25677 { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
25678 echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
25679 else
25680 cat >conftest.$ac_ext <<_ACEOF
25681 #line $LINENO "configure"
25682 #include "confdefs.h"
25683 #include "${srcdir-.}/tests/summary.c"
25684 _ACEOF
25685 rm -f conftest$ac_exeext
25686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25687 (eval $ac_link) 2>&5
25688 ac_status=$?
25689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25692 (eval $ac_try) 2>&5
25693 ac_status=$?
25694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695 (exit $ac_status); }; }; then
25696 echo "$as_me:$LINENO: result: yes" >&5
25697 echo "${ECHO_T}yes" >&6
25698 else
25699 echo "$as_me: program exited with status $ac_status" >&5
25700 echo "$as_me: failed program was:" >&5
25701 cat conftest.$ac_ext >&5
25702 ( exit $ac_status )
25703 { { echo "$as_me:$LINENO: error: summary failure. Aborting config" >&5
25704 echo "$as_me: error: summary failure. Aborting config" >&2;}
25705 { (exit 1); exit 1; }; }; exit 1;
25707 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25710 builddir=`pwd`
25713 ac_config_files="$ac_config_files include/stamp-h Makefile script/findsmb"
25714 cat >confcache <<\_ACEOF
25715 # This file is a shell script that caches the results of configure
25716 # tests run on this system so they can be shared between configure
25717 # scripts and configure runs, see configure's option --config-cache.
25718 # It is not useful on other systems. If it contains results you don't
25719 # want to keep, you may remove or edit it.
25721 # config.status only pays attention to the cache file if you give it
25722 # the --recheck option to rerun configure.
25724 # `ac_cv_env_foo' variables (set or unset) will be overriden when
25725 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25726 # following values.
25728 _ACEOF
25730 # The following way of writing the cache mishandles newlines in values,
25731 # but we know of no workaround that is simple, portable, and efficient.
25732 # So, don't put newlines in cache variables' values.
25733 # Ultrix sh set writes to stderr and can't be redirected directly,
25734 # and sets the high bit in the cache file unless we assign to the vars.
25736 (set) 2>&1 |
25737 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25738 *ac_space=\ *)
25739 # `set' does not quote correctly, so add quotes (double-quote
25740 # substitution turns \\\\ into \\, and sed turns \\ into \).
25741 sed -n \
25742 "s/'/'\\\\''/g;
25743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25746 # `set' quotes correctly as required by POSIX, so do not add quotes.
25747 sed -n \
25748 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25750 esac;
25752 sed '
25753 t clear
25754 : clear
25755 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25756 t end
25757 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25758 : end' >>confcache
25759 if cmp -s $cache_file confcache; then :; else
25760 if test -w $cache_file; then
25761 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25762 cat confcache >$cache_file
25763 else
25764 echo "not updating unwritable cache $cache_file"
25767 rm -f confcache
25769 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25770 # Let make expand exec_prefix.
25771 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25773 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25774 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25775 # trailing colons and then remove the whole line if VPATH becomes empty
25776 # (actually we leave an empty line to preserve line numbers).
25777 if test "x$srcdir" = x.; then
25778 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25779 s/:*\$(srcdir):*/:/;
25780 s/:*\${srcdir}:*/:/;
25781 s/:*@srcdir@:*/:/;
25782 s/^\([^=]*=[ ]*\):*/\1/;
25783 s/:*$//;
25784 s/^[^=]*=[ ]*$//;
25788 DEFS=-DHAVE_CONFIG_H
25791 : ${CONFIG_STATUS=./config.status}
25792 ac_clean_files_save=$ac_clean_files
25793 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25794 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25795 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25796 cat >$CONFIG_STATUS <<_ACEOF
25797 #! $SHELL
25798 # Generated by $as_me.
25799 # Run this file to recreate the current configuration.
25800 # Compiler output produced by configure, useful for debugging
25801 # configure, is in config.log if it exists.
25803 debug=false
25804 SHELL=\${CONFIG_SHELL-$SHELL}
25805 _ACEOF
25807 cat >>$CONFIG_STATUS <<\_ACEOF
25809 ## --------------------- ##
25810 ## M4sh Initialization. ##
25811 ## --------------------- ##
25813 # Be Bourne compatible
25814 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25815 emulate sh
25816 NULLCMD=:
25817 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25818 set -o posix
25821 # NLS nuisances.
25822 # Support unset when possible.
25823 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
25824 as_unset=unset
25825 else
25826 as_unset=false
25829 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
25830 { $as_unset LANG || test "${LANG+set}" != set; } ||
25831 { LANG=C; export LANG; }
25832 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
25833 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
25834 { LC_ALL=C; export LC_ALL; }
25835 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
25836 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
25837 { LC_TIME=C; export LC_TIME; }
25838 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
25839 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
25840 { LC_CTYPE=C; export LC_CTYPE; }
25841 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
25842 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
25843 { LANGUAGE=C; export LANGUAGE; }
25844 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
25845 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
25846 { LC_COLLATE=C; export LC_COLLATE; }
25847 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
25848 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
25849 { LC_NUMERIC=C; export LC_NUMERIC; }
25850 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
25851 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
25852 { LC_MESSAGES=C; export LC_MESSAGES; }
25855 # Name of the executable.
25856 as_me=`(basename "$0") 2>/dev/null ||
25857 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25858 X"$0" : 'X\(//\)$' \| \
25859 X"$0" : 'X\(/\)$' \| \
25860 . : '\(.\)' 2>/dev/null ||
25861 echo X/"$0" |
25862 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25863 /^X\/\(\/\/\)$/{ s//\1/; q; }
25864 /^X\/\(\/\).*/{ s//\1/; q; }
25865 s/.*/./; q'`
25867 # PATH needs CR, and LINENO needs CR and PATH.
25868 # Avoid depending upon Character Ranges.
25869 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25870 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25871 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25872 as_cr_digits='0123456789'
25873 as_cr_alnum=$as_cr_Letters$as_cr_digits
25875 # The user is always right.
25876 if test "${PATH_SEPARATOR+set}" != set; then
25877 echo "#! /bin/sh" >conftest.sh
25878 echo "exit 0" >>conftest.sh
25879 chmod +x conftest.sh
25880 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
25881 PATH_SEPARATOR=';'
25882 else
25883 PATH_SEPARATOR=:
25885 rm -f conftest.sh
25889 as_lineno_1=$LINENO
25890 as_lineno_2=$LINENO
25891 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25892 test "x$as_lineno_1" != "x$as_lineno_2" &&
25893 test "x$as_lineno_3" = "x$as_lineno_2" || {
25894 # Find who we are. Look in the path if we contain no path at all
25895 # relative or not.
25896 case $0 in
25897 *[\\/]* ) as_myself=$0 ;;
25898 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25899 for as_dir in $PATH
25901 IFS=$as_save_IFS
25902 test -z "$as_dir" && as_dir=.
25903 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25904 done
25907 esac
25908 # We did not find ourselves, most probably we were run as `sh COMMAND'
25909 # in which case we are not to be found in the path.
25910 if test "x$as_myself" = x; then
25911 as_myself=$0
25913 if test ! -f "$as_myself"; then
25914 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25915 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25916 { (exit 1); exit 1; }; }
25918 case $CONFIG_SHELL in
25920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25921 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25923 IFS=$as_save_IFS
25924 test -z "$as_dir" && as_dir=.
25925 for as_base in sh bash ksh sh5; do
25926 case $as_dir in
25928 if ("$as_dir/$as_base" -c '
25929 as_lineno_1=$LINENO
25930 as_lineno_2=$LINENO
25931 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25932 test "x$as_lineno_1" != "x$as_lineno_2" &&
25933 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25934 CONFIG_SHELL=$as_dir/$as_base
25935 export CONFIG_SHELL
25936 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25937 fi;;
25938 esac
25939 done
25940 done
25942 esac
25944 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25945 # uniformly replaced by the line number. The first 'sed' inserts a
25946 # line-number line before each line; the second 'sed' does the real
25947 # work. The second script uses 'N' to pair each line-number line
25948 # with the numbered line, and appends trailing '-' during
25949 # substitution so that $LINENO is not a special case at line end.
25950 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25951 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25952 sed '=' <$as_myself |
25953 sed '
25955 s,$,-,
25956 : loop
25957 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25958 t loop
25959 s,-$,,
25960 s,^['$as_cr_digits']*\n,,
25961 ' >$as_me.lineno &&
25962 chmod +x $as_me.lineno ||
25963 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25964 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25965 { (exit 1); exit 1; }; }
25967 # Don't try to exec as it changes $[0], causing all sort of problems
25968 # (the dirname of $[0] is not the place where we might find the
25969 # original and so on. Autoconf is especially sensible to this).
25970 . ./$as_me.lineno
25971 # Exit status is that of the last command.
25972 exit
25976 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25977 *c*,-n*) ECHO_N= ECHO_C='
25978 ' ECHO_T=' ' ;;
25979 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25980 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25981 esac
25983 if expr a : '\(a\)' >/dev/null 2>&1; then
25984 as_expr=expr
25985 else
25986 as_expr=false
25989 rm -f conf$$ conf$$.exe conf$$.file
25990 echo >conf$$.file
25991 if ln -s conf$$.file conf$$ 2>/dev/null; then
25992 # We could just check for DJGPP; but this test a) works b) is more generic
25993 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25994 if test -f conf$$.exe; then
25995 # Don't use ln at all; we don't have any links
25996 as_ln_s='cp -p'
25997 else
25998 as_ln_s='ln -s'
26000 elif ln conf$$.file conf$$ 2>/dev/null; then
26001 as_ln_s=ln
26002 else
26003 as_ln_s='cp -p'
26005 rm -f conf$$ conf$$.exe conf$$.file
26007 as_executable_p="test -f"
26009 # Sed expression to map a string onto a valid CPP name.
26010 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
26012 # Sed expression to map a string onto a valid variable name.
26013 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
26016 # IFS
26017 # We need space, tab and new line, in precisely that order.
26018 as_nl='
26020 IFS=" $as_nl"
26022 # CDPATH.
26023 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
26025 exec 6>&1
26027 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26028 # report actual input values of CONFIG_FILES etc. instead of their
26029 # values after options handling. Logging --version etc. is OK.
26030 exec 5>>config.log
26032 echo
26033 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26034 ## Running $as_me. ##
26035 _ASBOX
26036 } >&5
26037 cat >&5 <<_CSEOF
26039 This file was extended by $as_me, which was
26040 generated by GNU Autoconf 2.53. Invocation command line was
26042 CONFIG_FILES = $CONFIG_FILES
26043 CONFIG_HEADERS = $CONFIG_HEADERS
26044 CONFIG_LINKS = $CONFIG_LINKS
26045 CONFIG_COMMANDS = $CONFIG_COMMANDS
26046 $ $0 $@
26048 _CSEOF
26049 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26050 echo >&5
26051 _ACEOF
26053 # Files that config.status was made for.
26054 if test -n "$ac_config_files"; then
26055 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26058 if test -n "$ac_config_headers"; then
26059 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26062 if test -n "$ac_config_links"; then
26063 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26066 if test -n "$ac_config_commands"; then
26067 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26070 cat >>$CONFIG_STATUS <<\_ACEOF
26072 ac_cs_usage="\
26073 \`$as_me' instantiates files from templates according to the
26074 current configuration.
26076 Usage: $0 [OPTIONS] [FILE]...
26078 -h, --help print this help, then exit
26079 -V, --version print version number, then exit
26080 -d, --debug don't remove temporary files
26081 --recheck update $as_me by reconfiguring in the same conditions
26082 --file=FILE[:TEMPLATE]
26083 instantiate the configuration file FILE
26084 --header=FILE[:TEMPLATE]
26085 instantiate the configuration header FILE
26087 Configuration files:
26088 $config_files
26090 Configuration headers:
26091 $config_headers
26093 Report bugs to <bug-autoconf@gnu.org>."
26094 _ACEOF
26096 cat >>$CONFIG_STATUS <<_ACEOF
26097 ac_cs_version="\\
26098 config.status
26099 configured by $0, generated by GNU Autoconf 2.53,
26100 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26102 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
26103 Free Software Foundation, Inc.
26104 This config.status script is free software; the Free Software Foundation
26105 gives unlimited permission to copy, distribute and modify it."
26106 srcdir=$srcdir
26107 INSTALL="$INSTALL"
26108 _ACEOF
26110 cat >>$CONFIG_STATUS <<\_ACEOF
26111 # If no file are specified by the user, then we need to provide default
26112 # value. By we need to know if files were specified by the user.
26113 ac_need_defaults=:
26114 while test $# != 0
26116 case $1 in
26117 --*=*)
26118 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26119 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26120 shift
26121 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
26122 shift
26124 -*);;
26125 *) # This is not an option, so the user has probably given explicit
26126 # arguments.
26127 ac_need_defaults=false;;
26128 esac
26130 case $1 in
26131 # Handling of the options.
26132 _ACEOF
26133 cat >>$CONFIG_STATUS <<_ACEOF
26134 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26135 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
26136 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
26137 _ACEOF
26138 cat >>$CONFIG_STATUS <<\_ACEOF
26139 --version | --vers* | -V )
26140 echo "$ac_cs_version"; exit 0 ;;
26141 --he | --h)
26142 # Conflict between --help and --header
26143 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26144 Try \`$0 --help' for more information." >&5
26145 echo "$as_me: error: ambiguous option: $1
26146 Try \`$0 --help' for more information." >&2;}
26147 { (exit 1); exit 1; }; };;
26148 --help | --hel | -h )
26149 echo "$ac_cs_usage"; exit 0 ;;
26150 --debug | --d* | -d )
26151 debug=: ;;
26152 --file | --fil | --fi | --f )
26153 shift
26154 CONFIG_FILES="$CONFIG_FILES $1"
26155 ac_need_defaults=false;;
26156 --header | --heade | --head | --hea )
26157 shift
26158 CONFIG_HEADERS="$CONFIG_HEADERS $1"
26159 ac_need_defaults=false;;
26161 # This is an error.
26162 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26163 Try \`$0 --help' for more information." >&5
26164 echo "$as_me: error: unrecognized option: $1
26165 Try \`$0 --help' for more information." >&2;}
26166 { (exit 1); exit 1; }; } ;;
26168 *) ac_config_targets="$ac_config_targets $1" ;;
26170 esac
26171 shift
26172 done
26174 _ACEOF
26180 cat >>$CONFIG_STATUS <<\_ACEOF
26181 for ac_config_target in $ac_config_targets
26183 case "$ac_config_target" in
26184 # Handling of arguments.
26185 "include/stamp-h" ) CONFIG_FILES="$CONFIG_FILES include/stamp-h" ;;
26186 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26187 "script/findsmb" ) CONFIG_FILES="$CONFIG_FILES script/findsmb" ;;
26188 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
26189 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26190 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26191 { (exit 1); exit 1; }; };;
26192 esac
26193 done
26195 # If the user did not use the arguments to specify the items to instantiate,
26196 # then the envvar interface is used. Set only those that are not.
26197 # We use the long form for the default assignment because of an extremely
26198 # bizarre bug on SunOS 4.1.3.
26199 if $ac_need_defaults; then
26200 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26201 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26204 # Create a temporary directory, and hook for its removal unless debugging.
26205 $debug ||
26207 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26208 trap '{ (exit 1); exit 1; }' 1 2 13 15
26211 # Create a (secure) tmp directory for tmp files.
26212 : ${TMPDIR=/tmp}
26214 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
26215 test -n "$tmp" && test -d "$tmp"
26216 } ||
26218 tmp=$TMPDIR/cs$$-$RANDOM
26219 (umask 077 && mkdir $tmp)
26220 } ||
26222 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
26223 { (exit 1); exit 1; }
26226 _ACEOF
26228 cat >>$CONFIG_STATUS <<_ACEOF
26231 # CONFIG_FILES section.
26234 # No need to generate the scripts if there are no CONFIG_FILES.
26235 # This happens for instance when ./config.status config.h
26236 if test -n "\$CONFIG_FILES"; then
26237 # Protect against being on the right side of a sed subst in config.status.
26238 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26239 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26240 s,@SHELL@,$SHELL,;t t
26241 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26242 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26243 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26244 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26245 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26246 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26247 s,@exec_prefix@,$exec_prefix,;t t
26248 s,@prefix@,$prefix,;t t
26249 s,@program_transform_name@,$program_transform_name,;t t
26250 s,@bindir@,$bindir,;t t
26251 s,@sbindir@,$sbindir,;t t
26252 s,@libexecdir@,$libexecdir,;t t
26253 s,@datadir@,$datadir,;t t
26254 s,@sysconfdir@,$sysconfdir,;t t
26255 s,@sharedstatedir@,$sharedstatedir,;t t
26256 s,@localstatedir@,$localstatedir,;t t
26257 s,@libdir@,$libdir,;t t
26258 s,@includedir@,$includedir,;t t
26259 s,@oldincludedir@,$oldincludedir,;t t
26260 s,@infodir@,$infodir,;t t
26261 s,@mandir@,$mandir,;t t
26262 s,@build_alias@,$build_alias,;t t
26263 s,@host_alias@,$host_alias,;t t
26264 s,@target_alias@,$target_alias,;t t
26265 s,@DEFS@,$DEFS,;t t
26266 s,@ECHO_C@,$ECHO_C,;t t
26267 s,@ECHO_N@,$ECHO_N,;t t
26268 s,@ECHO_T@,$ECHO_T,;t t
26269 s,@LIBS@,$LIBS,;t t
26270 s,@configdir@,$configdir,;t t
26271 s,@lockdir@,$lockdir,;t t
26272 s,@piddir@,$piddir,;t t
26273 s,@logfilebase@,$logfilebase,;t t
26274 s,@privatedir@,$privatedir,;t t
26275 s,@swatdir@,$swatdir,;t t
26276 s,@LDSHFLAGS@,$LDSHFLAGS,;t t
26277 s,@SONAMEFLAG@,$SONAMEFLAG,;t t
26278 s,@SHLD@,$SHLD,;t t
26279 s,@HOST_OS@,$HOST_OS,;t t
26280 s,@PICFLAG@,$PICFLAG,;t t
26281 s,@PICSUFFIX@,$PICSUFFIX,;t t
26282 s,@POBAD_CC@,$POBAD_CC,;t t
26283 s,@SHLIBEXT@,$SHLIBEXT,;t t
26284 s,@INSTALLCLIENTCMD_SH@,$INSTALLCLIENTCMD_SH,;t t
26285 s,@INSTALLCLIENTCMD_A@,$INSTALLCLIENTCMD_A,;t t
26286 s,@LIBSMBCLIENT_SHARED@,$LIBSMBCLIENT_SHARED,;t t
26287 s,@LIBSMBCLIENT@,$LIBSMBCLIENT,;t t
26288 s,@PRINTLIBS@,$PRINTLIBS,;t t
26289 s,@AUTHLIBS@,$AUTHLIBS,;t t
26290 s,@SHLIB_PROGS@,$SHLIB_PROGS,;t t
26291 s,@SMBWRAPPER@,$SMBWRAPPER,;t t
26292 s,@EXTRA_BIN_PROGS@,$EXTRA_BIN_PROGS,;t t
26293 s,@EXTRA_SBIN_PROGS@,$EXTRA_SBIN_PROGS,;t t
26294 s,@EXTRA_ALL_TARGETS@,$EXTRA_ALL_TARGETS,;t t
26295 s,@CC@,$CC,;t t
26296 s,@CFLAGS@,$CFLAGS,;t t
26297 s,@LDFLAGS@,$LDFLAGS,;t t
26298 s,@CPPFLAGS@,$CPPFLAGS,;t t
26299 s,@ac_ct_CC@,$ac_ct_CC,;t t
26300 s,@EXEEXT@,$EXEEXT,;t t
26301 s,@OBJEXT@,$OBJEXT,;t t
26302 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26303 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26304 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26305 s,@AWK@,$AWK,;t t
26306 s,@BROKEN_CC@,$BROKEN_CC,;t t
26307 s,@build@,$build,;t t
26308 s,@build_cpu@,$build_cpu,;t t
26309 s,@build_vendor@,$build_vendor,;t t
26310 s,@build_os@,$build_os,;t t
26311 s,@host@,$host,;t t
26312 s,@host_cpu@,$host_cpu,;t t
26313 s,@host_vendor@,$host_vendor,;t t
26314 s,@host_os@,$host_os,;t t
26315 s,@target@,$target,;t t
26316 s,@target_cpu@,$target_cpu,;t t
26317 s,@target_vendor@,$target_vendor,;t t
26318 s,@target_os@,$target_os,;t t
26319 s,@CPP@,$CPP,;t t
26320 s,@CUPS_CONFIG@,$CUPS_CONFIG,;t t
26321 s,@LIBOBJS@,$LIBOBJS,;t t
26322 s,@TERMLIBS@,$TERMLIBS,;t t
26323 s,@TERMLDFLAGS@,$TERMLDFLAGS,;t t
26324 s,@ROFF@,$ROFF,;t t
26325 s,@DYNEXP@,$DYNEXP,;t t
26326 s,@MYSQL_CONFIG@,$MYSQL_CONFIG,;t t
26327 s,@MYSQL_CFLAGS@,$MYSQL_CFLAGS,;t t
26328 s,@MYSQL_LIBS@,$MYSQL_LIBS,;t t
26329 s,@MODULE_MYSQL@,$MODULE_MYSQL,;t t
26330 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
26331 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
26332 s,@XML_LIBS@,$XML_LIBS,;t t
26333 s,@MODULE_XML@,$MODULE_XML,;t t
26334 s,@QUOTAOBJS@,$QUOTAOBJS,;t t
26335 s,@manlangs@,$manlangs,;t t
26336 s,@WINBIND_NSS_EXTRA_OBJS@,$WINBIND_NSS_EXTRA_OBJS,;t t
26337 s,@WINBIND_NSS_EXTRA_LIBS@,$WINBIND_NSS_EXTRA_LIBS,;t t
26338 s,@BUILD_POPT@,$BUILD_POPT,;t t
26339 s,@FLAGS1@,$FLAGS1,;t t
26340 s,@PYTHON@,$PYTHON,;t t
26341 s,@builddir@,$builddir,;t t
26342 CEOF
26344 _ACEOF
26346 cat >>$CONFIG_STATUS <<\_ACEOF
26347 # Split the substitutions into bite-sized pieces for seds with
26348 # small command number limits, like on Digital OSF/1 and HP-UX.
26349 ac_max_sed_lines=48
26350 ac_sed_frag=1 # Number of current file.
26351 ac_beg=1 # First line for current file.
26352 ac_end=$ac_max_sed_lines # Line after last line for current file.
26353 ac_more_lines=:
26354 ac_sed_cmds=
26355 while $ac_more_lines; do
26356 if test $ac_beg -gt 1; then
26357 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26358 else
26359 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26361 if test ! -s $tmp/subs.frag; then
26362 ac_more_lines=false
26363 else
26364 # The purpose of the label and of the branching condition is to
26365 # speed up the sed processing (if there are no `@' at all, there
26366 # is no need to browse any of the substitutions).
26367 # These are the two extra sed commands mentioned above.
26368 (echo ':t
26369 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26370 if test -z "$ac_sed_cmds"; then
26371 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26372 else
26373 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26375 ac_sed_frag=`expr $ac_sed_frag + 1`
26376 ac_beg=$ac_end
26377 ac_end=`expr $ac_end + $ac_max_sed_lines`
26379 done
26380 if test -z "$ac_sed_cmds"; then
26381 ac_sed_cmds=cat
26383 fi # test -n "$CONFIG_FILES"
26385 _ACEOF
26386 cat >>$CONFIG_STATUS <<\_ACEOF
26387 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26388 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26389 case $ac_file in
26390 - | *:- | *:-:* ) # input from stdin
26391 cat >$tmp/stdin
26392 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26393 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26394 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26395 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26396 * ) ac_file_in=$ac_file.in ;;
26397 esac
26399 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26400 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26401 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26402 X"$ac_file" : 'X\(//\)[^/]' \| \
26403 X"$ac_file" : 'X\(//\)$' \| \
26404 X"$ac_file" : 'X\(/\)' \| \
26405 . : '\(.\)' 2>/dev/null ||
26406 echo X"$ac_file" |
26407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26408 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26409 /^X\(\/\/\)$/{ s//\1/; q; }
26410 /^X\(\/\).*/{ s//\1/; q; }
26411 s/.*/./; q'`
26412 { case "$ac_dir" in
26413 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
26414 *) as_incr_dir=.;;
26415 esac
26416 as_dummy="$ac_dir"
26417 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
26418 case $as_mkdir_dir in
26419 # Skip DOS drivespec
26420 ?:) as_incr_dir=$as_mkdir_dir ;;
26422 as_incr_dir=$as_incr_dir/$as_mkdir_dir
26423 test -d "$as_incr_dir" ||
26424 mkdir "$as_incr_dir" ||
26425 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
26426 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
26427 { (exit 1); exit 1; }; }
26429 esac
26430 done; }
26432 ac_builddir=.
26434 if test "$ac_dir" != .; then
26435 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26436 # A "../" for each directory in $ac_dir_suffix.
26437 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26438 else
26439 ac_dir_suffix= ac_top_builddir=
26442 case $srcdir in
26443 .) # No --srcdir option. We are building in place.
26444 ac_srcdir=.
26445 if test -z "$ac_top_builddir"; then
26446 ac_top_srcdir=.
26447 else
26448 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26449 fi ;;
26450 [\\/]* | ?:[\\/]* ) # Absolute path.
26451 ac_srcdir=$srcdir$ac_dir_suffix;
26452 ac_top_srcdir=$srcdir ;;
26453 *) # Relative path.
26454 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26455 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26456 esac
26457 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
26458 # absolute.
26459 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
26460 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
26461 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
26462 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
26465 case $INSTALL in
26466 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26467 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26468 esac
26470 if test x"$ac_file" != x-; then
26471 { echo "$as_me:$LINENO: creating $ac_file" >&5
26472 echo "$as_me: creating $ac_file" >&6;}
26473 rm -f "$ac_file"
26475 # Let's still pretend it is `configure' which instantiates (i.e., don't
26476 # use $as_me), people would be surprised to read:
26477 # /* config.h. Generated by config.status. */
26478 if test x"$ac_file" = x-; then
26479 configure_input=
26480 else
26481 configure_input="$ac_file. "
26483 configure_input=$configure_input"Generated from `echo $ac_file_in |
26484 sed 's,.*/,,'` by configure."
26486 # First look for the input files in the build tree, otherwise in the
26487 # src tree.
26488 ac_file_inputs=`IFS=:
26489 for f in $ac_file_in; do
26490 case $f in
26491 -) echo $tmp/stdin ;;
26492 [\\/$]*)
26493 # Absolute (can't be DOS-style, as IFS=:)
26494 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26495 echo "$as_me: error: cannot find input file: $f" >&2;}
26496 { (exit 1); exit 1; }; }
26497 echo $f;;
26498 *) # Relative
26499 if test -f "$f"; then
26500 # Build tree
26501 echo $f
26502 elif test -f "$srcdir/$f"; then
26503 # Source tree
26504 echo $srcdir/$f
26505 else
26506 # /dev/null tree
26507 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26508 echo "$as_me: error: cannot find input file: $f" >&2;}
26509 { (exit 1); exit 1; }; }
26510 fi;;
26511 esac
26512 done` || { (exit 1); exit 1; }
26513 _ACEOF
26514 cat >>$CONFIG_STATUS <<_ACEOF
26515 sed "$ac_vpsub
26516 $extrasub
26517 _ACEOF
26518 cat >>$CONFIG_STATUS <<\_ACEOF
26520 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26521 s,@configure_input@,$configure_input,;t t
26522 s,@srcdir@,$ac_srcdir,;t t
26523 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26524 s,@top_srcdir@,$ac_top_srcdir,;t t
26525 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26526 s,@builddir@,$ac_builddir,;t t
26527 s,@abs_builddir@,$ac_abs_builddir,;t t
26528 s,@top_builddir@,$ac_top_builddir,;t t
26529 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26530 s,@INSTALL@,$ac_INSTALL,;t t
26531 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26532 rm -f $tmp/stdin
26533 if test x"$ac_file" != x-; then
26534 mv $tmp/out $ac_file
26535 else
26536 cat $tmp/out
26537 rm -f $tmp/out
26540 done
26541 _ACEOF
26542 cat >>$CONFIG_STATUS <<\_ACEOF
26545 # CONFIG_HEADER section.
26548 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26549 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26551 # ac_d sets the value in "#define NAME VALUE" lines.
26552 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26553 ac_dB='[ ].*$,\1#\2'
26554 ac_dC=' '
26555 ac_dD=',;t'
26556 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26557 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26558 ac_uB='$,\1#\2define\3'
26559 ac_uC=' '
26560 ac_uD=',;t'
26562 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26563 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26564 case $ac_file in
26565 - | *:- | *:-:* ) # input from stdin
26566 cat >$tmp/stdin
26567 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26568 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26569 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26570 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26571 * ) ac_file_in=$ac_file.in ;;
26572 esac
26574 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26575 echo "$as_me: creating $ac_file" >&6;}
26577 # First look for the input files in the build tree, otherwise in the
26578 # src tree.
26579 ac_file_inputs=`IFS=:
26580 for f in $ac_file_in; do
26581 case $f in
26582 -) echo $tmp/stdin ;;
26583 [\\/$]*)
26584 # Absolute (can't be DOS-style, as IFS=:)
26585 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26586 echo "$as_me: error: cannot find input file: $f" >&2;}
26587 { (exit 1); exit 1; }; }
26588 echo $f;;
26589 *) # Relative
26590 if test -f "$f"; then
26591 # Build tree
26592 echo $f
26593 elif test -f "$srcdir/$f"; then
26594 # Source tree
26595 echo $srcdir/$f
26596 else
26597 # /dev/null tree
26598 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26599 echo "$as_me: error: cannot find input file: $f" >&2;}
26600 { (exit 1); exit 1; }; }
26601 fi;;
26602 esac
26603 done` || { (exit 1); exit 1; }
26604 # Remove the trailing spaces.
26605 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26607 _ACEOF
26609 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26610 # `conftest.undefs', that substitutes the proper values into
26611 # config.h.in to produce config.h. The first handles `#define'
26612 # templates, and the second `#undef' templates.
26613 # And first: Protect against being on the right side of a sed subst in
26614 # config.status. Protect against being in an unquoted here document
26615 # in config.status.
26616 rm -f conftest.defines conftest.undefs
26617 # Using a here document instead of a string reduces the quoting nightmare.
26618 # Putting comments in sed scripts is not portable.
26620 # `end' is used to avoid that the second main sed command (meant for
26621 # 0-ary CPP macros) applies to n-ary macro definitions.
26622 # See the Autoconf documentation for `clear'.
26623 cat >confdef2sed.sed <<\_ACEOF
26624 s/[\\&,]/\\&/g
26625 s,[\\$`],\\&,g
26626 t clear
26627 : clear
26628 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26629 t end
26630 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26631 : end
26632 _ACEOF
26633 # If some macros were called several times there might be several times
26634 # the same #defines, which is useless. Nevertheless, we may not want to
26635 # sort them, since we want the *last* AC-DEFINE to be honored.
26636 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26637 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26638 rm -f confdef2sed.sed
26640 # This sed command replaces #undef with comments. This is necessary, for
26641 # example, in the case of _POSIX_SOURCE, which is predefined and required
26642 # on some systems where configure will not decide to define it.
26643 cat >>conftest.undefs <<\_ACEOF
26644 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26645 _ACEOF
26647 # Break up conftest.defines because some shells have a limit on the size
26648 # of here documents, and old seds have small limits too (100 cmds).
26649 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26650 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26651 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26652 echo ' :' >>$CONFIG_STATUS
26653 rm -f conftest.tail
26654 while grep . conftest.defines >/dev/null
26656 # Write a limited-size here document to $tmp/defines.sed.
26657 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26658 # Speed up: don't consider the non `#define' lines.
26659 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26660 # Work around the forget-to-reset-the-flag bug.
26661 echo 't clr' >>$CONFIG_STATUS
26662 echo ': clr' >>$CONFIG_STATUS
26663 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26664 echo 'CEOF
26665 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26666 rm -f $tmp/in
26667 mv $tmp/out $tmp/in
26668 ' >>$CONFIG_STATUS
26669 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26670 rm -f conftest.defines
26671 mv conftest.tail conftest.defines
26672 done
26673 rm -f conftest.defines
26674 echo ' fi # egrep' >>$CONFIG_STATUS
26675 echo >>$CONFIG_STATUS
26677 # Break up conftest.undefs because some shells have a limit on the size
26678 # of here documents, and old seds have small limits too (100 cmds).
26679 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26680 rm -f conftest.tail
26681 while grep . conftest.undefs >/dev/null
26683 # Write a limited-size here document to $tmp/undefs.sed.
26684 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26685 # Speed up: don't consider the non `#undef'
26686 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26687 # Work around the forget-to-reset-the-flag bug.
26688 echo 't clr' >>$CONFIG_STATUS
26689 echo ': clr' >>$CONFIG_STATUS
26690 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26691 echo 'CEOF
26692 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26693 rm -f $tmp/in
26694 mv $tmp/out $tmp/in
26695 ' >>$CONFIG_STATUS
26696 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26697 rm -f conftest.undefs
26698 mv conftest.tail conftest.undefs
26699 done
26700 rm -f conftest.undefs
26702 cat >>$CONFIG_STATUS <<\_ACEOF
26703 # Let's still pretend it is `configure' which instantiates (i.e., don't
26704 # use $as_me), people would be surprised to read:
26705 # /* config.h. Generated by config.status. */
26706 if test x"$ac_file" = x-; then
26707 echo "/* Generated by configure. */" >$tmp/config.h
26708 else
26709 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26711 cat $tmp/in >>$tmp/config.h
26712 rm -f $tmp/in
26713 if test x"$ac_file" != x-; then
26714 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
26715 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26716 echo "$as_me: $ac_file is unchanged" >&6;}
26717 else
26718 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26719 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26720 X"$ac_file" : 'X\(//\)[^/]' \| \
26721 X"$ac_file" : 'X\(//\)$' \| \
26722 X"$ac_file" : 'X\(/\)' \| \
26723 . : '\(.\)' 2>/dev/null ||
26724 echo X"$ac_file" |
26725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26726 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26727 /^X\(\/\/\)$/{ s//\1/; q; }
26728 /^X\(\/\).*/{ s//\1/; q; }
26729 s/.*/./; q'`
26730 { case "$ac_dir" in
26731 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
26732 *) as_incr_dir=.;;
26733 esac
26734 as_dummy="$ac_dir"
26735 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
26736 case $as_mkdir_dir in
26737 # Skip DOS drivespec
26738 ?:) as_incr_dir=$as_mkdir_dir ;;
26740 as_incr_dir=$as_incr_dir/$as_mkdir_dir
26741 test -d "$as_incr_dir" ||
26742 mkdir "$as_incr_dir" ||
26743 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
26744 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
26745 { (exit 1); exit 1; }; }
26747 esac
26748 done; }
26750 rm -f $ac_file
26751 mv $tmp/config.h $ac_file
26753 else
26754 cat $tmp/config.h
26755 rm -f $tmp/config.h
26757 done
26758 _ACEOF
26760 cat >>$CONFIG_STATUS <<\_ACEOF
26762 { (exit 0); exit 0; }
26763 _ACEOF
26764 chmod +x $CONFIG_STATUS
26765 ac_clean_files=$ac_clean_files_save
26768 # configure is writing to config.log, and then calls config.status.
26769 # config.status does its own redirection, appending to config.log.
26770 # Unfortunately, on DOS this fails, as config.log is still kept open
26771 # by configure, so config.status won't be able to write to it; its
26772 # output is simply discarded. So we exec the FD to /dev/null,
26773 # effectively closing config.log, so it can be properly (re)opened and
26774 # appended to by config.status. When coming back to configure, we
26775 # need to make the FD available again.
26776 if test "$no_create" != yes; then
26777 ac_cs_success=:
26778 exec 5>/dev/null
26779 $SHELL $CONFIG_STATUS || ac_cs_success=false
26780 exec 5>>config.log
26781 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26782 # would make configure fail if this is the last instruction.
26783 $ac_cs_success || { (exit 1); exit 1; }
26787 #################################################
26788 # Print very concise instructions on building/use
26789 if test "x$enable_dmalloc" = xyes
26790 then
26791 echo "$as_me:$LINENO: result: Note: The dmalloc debug library will be included. To turn it on use" >&5
26792 echo "${ECHO_T}Note: The dmalloc debug library will be included. To turn it on use" >&6
26793 echo "$as_me:$LINENO: result: \$ eval \\`dmalloc samba\\`." >&5
26794 echo "${ECHO_T} \$ eval \\`dmalloc samba\\`." >&6