Properly display popt errors. Also fix debug to be -d for consistency with other...
[Samba/bb.git] / source3 / configure
blobab2730c1cd175f291c2dfe217976b3c68a6a0615
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-dynrpc Enable dynamic RPC modules default=no
836 --enable-cups Turn on CUPS support (default=auto)
837 --disable-mysqltest Do not try to compile and run a test MYSQL program
838 --disable-xmltest Do not try to compile and run a test LIBXML program
840 Optional Packages:
841 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
842 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
843 --with-fhs Use FHS-compliant paths (default=no)
844 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)
845 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)
846 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)
847 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)
848 --with-configdir=DIR Where to put configuration files (\$libdir)
849 --with-logfilebase=DIR Where to put log files (\$(VARDIR))
850 --with-readline=DIR Look for readline include/libs in DIR (default=auto)
851 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto)
852 --with-smbwrapper Include SMB wrapper support (default=no)
853 --with-afs Include AFS clear-text auth support (default=no)
854 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)
855 --with-ads Active Directory support (default yes)
856 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)
857 --with-ldap LDAP support (default yes)
858 --with-mysql-prefix=PFX Prefix where MYSQL is installed (optional)
859 --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed (optional)
860 --with-xml-prefix=PFX Prefix where libxml is installed (optional)
861 --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
862 --with-automount Include automount support (default=no)
863 --with-smbmount Include smbmount (Linux only) support (default=no)
864 --with-pam Include PAM support (default=no)
865 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)
866 --with-sam Build new (experimental) SAM database (default=no)
867 --with-ldapsam Include LDAP SAM 2.2 compatible configuration (default=no)
868 --with-tdbsam Include experimental TDB SAM support (default=no)
869 --with-nisplussam Include NISPLUS SAM support (default=no)
870 --with-nisplus-home Include NISPLUS_HOME support (default=no)
871 --with-syslog Include experimental SYSLOG support (default=no)
872 --with-profiling-data Include gathering source code profile information (default=no)
873 --with-quotas Include experimental disk-quota support (default=no)
874 --with-utmp Include experimental utmp accounting (default=no)
875 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)
876 --with-libsmbclient Build the libsmbclient shared library (default=yes)
877 --with-spinlocks Use spin locks instead of fcntl locks (default=no)
878 --with-acl-support Include ACL support (default=no)
879 --with-sendfile-support Check for sendfile support (default=yes)
880 --with-winbind Build winbind (default, if supported by OS)
881 --with-included-popt use bundled popt library, not from system
882 --with-python=PYTHONNAME build Python libraries
884 Some influential environment variables:
885 CC C compiler command
886 CFLAGS C compiler flags
887 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
888 nonstandard directory <lib dir>
889 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
890 headers in a nonstandard directory <include dir>
891 CPP C preprocessor
893 Use these variables to override the choices made by `configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
896 _ACEOF
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
901 ac_popdir=`pwd`
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
904 ac_builddir=.
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 else
911 ac_dir_suffix= ac_top_builddir=
914 case $srcdir in
915 .) # No --srcdir option. We are building in place.
916 ac_srcdir=.
917 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=.
919 else
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921 fi ;;
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
925 *) # Relative path.
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 esac
929 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
930 # absolute.
931 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
932 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
933 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
934 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
936 cd $ac_dir
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu; then
939 echo
940 $SHELL $ac_srcdir/configure.gnu --help=recursive
941 elif test -f $ac_srcdir/configure; then
942 echo
943 $SHELL $ac_srcdir/configure --help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.in; then
946 echo
947 $ac_configure --help
948 else
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
951 cd $ac_popdir
952 done
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
957 cat <<\_ACEOF
959 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
960 Free Software Foundation, Inc.
961 This configure script is free software; the Free Software Foundation
962 gives unlimited permission to copy, distribute and modify it.
963 _ACEOF
964 exit 0
966 exec 5>config.log
967 cat >&5 <<_ACEOF
968 This file contains any messages produced by compilers while
969 running configure, to aid debugging if configure makes a mistake.
971 It was created by $as_me, which was
972 generated by GNU Autoconf 2.53. Invocation command line was
974 $ $0 $@
976 _ACEOF
978 cat <<_ASUNAME
979 ## --------- ##
980 ## Platform. ##
981 ## --------- ##
983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
984 uname -m = `(uname -m) 2>/dev/null || echo unknown`
985 uname -r = `(uname -r) 2>/dev/null || echo unknown`
986 uname -s = `(uname -s) 2>/dev/null || echo unknown`
987 uname -v = `(uname -v) 2>/dev/null || echo unknown`
989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
990 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
992 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
993 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
995 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
996 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
997 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
998 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1000 _ASUNAME
1002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1003 for as_dir in $PATH
1005 IFS=$as_save_IFS
1006 test -z "$as_dir" && as_dir=.
1007 echo "PATH: $as_dir"
1008 done
1010 } >&5
1012 cat >&5 <<_ACEOF
1015 ## ----------- ##
1016 ## Core tests. ##
1017 ## ----------- ##
1019 _ACEOF
1022 # Keep a trace of the command line.
1023 # Strip out --no-create and --no-recursion so they do not pile up.
1024 # Also quote any args containing shell meta-characters.
1025 ac_configure_args=
1026 ac_sep=
1027 for ac_arg
1029 case $ac_arg in
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n ) continue ;;
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 continue ;;
1035 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1036 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037 esac
1038 case " $ac_configure_args " in
1039 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1040 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1041 ac_sep=" " ;;
1042 esac
1043 # Get rid of the leading space.
1044 done
1046 # When interrupted or exit'd, cleanup temporary files, and complete
1047 # config.log. We remove comments because anyway the quotes in there
1048 # would cause problems or look ugly.
1049 # WARNING: Be sure not to use single quotes in there, as some shells,
1050 # such as our DU 5.0 friend, will then `close' the trap.
1051 trap 'exit_status=$?
1052 # Save into config.log some information that might help in debugging.
1054 echo
1055 cat <<\_ASBOX
1056 ## ---------------- ##
1057 ## Cache variables. ##
1058 ## ---------------- ##
1059 _ASBOX
1060 echo
1061 # The following way of writing the cache mishandles newlines in values,
1063 (set) 2>&1 |
1064 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1065 *ac_space=\ *)
1066 sed -n \
1067 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1071 sed -n \
1072 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1074 esac;
1076 echo
1077 if test -s confdefs.h; then
1078 cat <<\_ASBOX
1079 ## ----------- ##
1080 ## confdefs.h. ##
1081 ## ----------- ##
1082 _ASBOX
1083 echo
1084 sed "/^$/d" confdefs.h
1085 echo
1087 test "$ac_signal" != 0 &&
1088 echo "$as_me: caught signal $ac_signal"
1089 echo "$as_me: exit $exit_status"
1090 } >&5
1091 rm -f core core.* *.core &&
1092 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1093 exit $exit_status
1095 for ac_signal in 1 2 13 15; do
1096 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1097 done
1098 ac_signal=0
1100 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1101 rm -rf conftest* confdefs.h
1102 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1103 echo >confdefs.h
1105 # Predefined preprocessor variables.
1107 cat >>confdefs.h <<_ACEOF
1108 #define PACKAGE_NAME "$PACKAGE_NAME"
1109 _ACEOF
1112 cat >>confdefs.h <<_ACEOF
1113 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1114 _ACEOF
1117 cat >>confdefs.h <<_ACEOF
1118 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1119 _ACEOF
1122 cat >>confdefs.h <<_ACEOF
1123 #define PACKAGE_STRING "$PACKAGE_STRING"
1124 _ACEOF
1127 cat >>confdefs.h <<_ACEOF
1128 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1129 _ACEOF
1132 # Let the site file select an alternate cache file if it wants to.
1133 # Prefer explicitly selected file to automatically selected ones.
1134 if test -z "$CONFIG_SITE"; then
1135 if test "x$prefix" != xNONE; then
1136 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1137 else
1138 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1141 for ac_site_file in $CONFIG_SITE; do
1142 if test -r "$ac_site_file"; then
1143 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1144 echo "$as_me: loading site script $ac_site_file" >&6;}
1145 sed 's/^/| /' "$ac_site_file" >&5
1146 . "$ac_site_file"
1148 done
1150 if test -r "$cache_file"; then
1151 # Some versions of bash will fail to source /dev/null (special
1152 # files actually), so we avoid doing that.
1153 if test -f "$cache_file"; then
1154 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1155 echo "$as_me: loading cache $cache_file" >&6;}
1156 case $cache_file in
1157 [\\/]* | ?:[\\/]* ) . $cache_file;;
1158 *) . ./$cache_file;;
1159 esac
1161 else
1162 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1163 echo "$as_me: creating cache $cache_file" >&6;}
1164 >$cache_file
1167 # Check that the precious variables saved in the cache have kept the same
1168 # value.
1169 ac_cache_corrupted=false
1170 for ac_var in `(set) 2>&1 |
1171 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1172 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1173 eval ac_new_set=\$ac_env_${ac_var}_set
1174 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1175 eval ac_new_val="\$ac_env_${ac_var}_value"
1176 case $ac_old_set,$ac_new_set in
1177 set,)
1178 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1179 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1180 ac_cache_corrupted=: ;;
1181 ,set)
1182 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1183 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1184 ac_cache_corrupted=: ;;
1185 ,);;
1187 if test "x$ac_old_val" != "x$ac_new_val"; then
1188 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1189 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1190 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1191 echo "$as_me: former value: $ac_old_val" >&2;}
1192 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1193 echo "$as_me: current value: $ac_new_val" >&2;}
1194 ac_cache_corrupted=:
1195 fi;;
1196 esac
1197 # Pass precious variables to config.status.
1198 if test "$ac_new_set" = set; then
1199 case $ac_new_val in
1200 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1201 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1202 *) ac_arg=$ac_var=$ac_new_val ;;
1203 esac
1204 case " $ac_configure_args " in
1205 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1206 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1207 esac
1209 done
1210 if $ac_cache_corrupted; then
1211 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1212 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1213 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1214 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1215 { (exit 1); exit 1; }; }
1218 ac_ext=c
1219 ac_cpp='$CPP $CPPFLAGS'
1220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1241 ac_config_headers="$ac_config_headers include/config.h"
1244 #################################################
1245 # Directory handling stuff to support both the
1246 # legacy SAMBA directories and FHS compliant
1247 # ones...
1251 # Check whether --with-fhs or --without-fhs was given.
1252 if test "${with_fhs+set}" = set; then
1253 withval="$with_fhs"
1254 configdir="${sysconfdir}/samba"
1255 lockdir="\${VARDIR}/cache/samba"
1256 piddir="\${VARDIR}/run/samba"
1257 logfilebase="\${VARDIR}/log/samba"
1258 privatedir="\${CONFIGDIR}/private"
1259 libdir="\${prefix}/lib/samba"
1260 swatdir="\${DATADIR}/samba/swat"
1261 else
1262 configdir="\${LIBDIR}"
1263 logfilebase="\${VARDIR}"
1264 lockdir="\${VARDIR}/locks"
1265 piddir="\${VARDIR}/locks"
1266 privatedir="\${prefix}/private"
1267 swatdir="\${prefix}/swat"
1270 #################################################
1271 # set private directory location
1273 # Check whether --with-privatedir or --without-privatedir was given.
1274 if test "${with_privatedir+set}" = set; then
1275 withval="$with_privatedir"
1276 case "$withval" in
1277 yes|no)
1279 # Just in case anybody calls it without argument
1281 { echo "$as_me:$LINENO: WARNING: --with-privatedir called without argument - will use default" >&5
1282 echo "$as_me: WARNING: --with-privatedir called without argument - will use default" >&2;}
1285 privatedir="$withval"
1287 esac
1290 #################################################
1291 # set lock directory location
1293 # Check whether --with-lockdir or --without-lockdir was given.
1294 if test "${with_lockdir+set}" = set; then
1295 withval="$with_lockdir"
1296 case "$withval" in
1297 yes|no)
1299 # Just in case anybody calls it without argument
1301 { echo "$as_me:$LINENO: WARNING: --with-lockdir called without argument - will use default" >&5
1302 echo "$as_me: WARNING: --with-lockdir called without argument - will use default" >&2;}
1305 lockdir="$withval"
1307 esac
1310 #################################################
1311 # set pid directory location
1313 # Check whether --with-piddir or --without-piddir was given.
1314 if test "${with_piddir+set}" = set; then
1315 withval="$with_piddir"
1316 case "$withval" in
1317 yes|no)
1319 # Just in case anybody calls it without argument
1321 { echo "$as_me:$LINENO: WARNING: --with-piddir called without argument - will use default" >&5
1322 echo "$as_me: WARNING: --with-piddir called without argument - will use default" >&2;}
1325 piddir="$withval"
1327 esac
1330 #################################################
1331 # set SWAT directory location
1333 # Check whether --with-swatdir or --without-swatdir was given.
1334 if test "${with_swatdir+set}" = set; then
1335 withval="$with_swatdir"
1336 case "$withval" in
1337 yes|no)
1339 # Just in case anybody does it
1341 { echo "$as_me:$LINENO: WARNING: --with-swatdir called without argument - will use default" >&5
1342 echo "$as_me: WARNING: --with-swatdir called without argument - will use default" >&2;}
1345 swatdir="$withval"
1347 esac
1350 #################################################
1351 # set configuration directory location
1353 # Check whether --with-configdir or --without-configdir was given.
1354 if test "${with_configdir+set}" = set; then
1355 withval="$with_configdir"
1356 case "$withval" in
1357 yes|no)
1359 # Just in case anybody does it
1361 { echo "$as_me:$LINENO: WARNING: --with-configdir called without argument - will use default" >&5
1362 echo "$as_me: WARNING: --with-configdir called without argument - will use default" >&2;}
1365 configdir="$withval"
1367 esac
1370 #################################################
1371 # set log directory location
1373 # Check whether --with-logfilebase or --without-logfilebase was given.
1374 if test "${with_logfilebase+set}" = set; then
1375 withval="$with_logfilebase"
1376 case "$withval" in
1377 yes|no)
1379 # Just in case anybody does it
1381 { echo "$as_me:$LINENO: WARNING: --with-logfilebase called without argument - will use default" >&5
1382 echo "$as_me: WARNING: --with-logfilebase called without argument - will use default" >&2;}
1385 logfilebase="$withval"
1387 esac
1426 # compile with optimization and without debugging by default
1427 CFLAGS="-O ${CFLAGS}"
1429 # Check whether --enable-debug or --disable-debug was given.
1430 if test "${enable_debug+set}" = set; then
1431 enableval="$enable_debug"
1432 if eval "test x$enable_debug = xyes"; then
1433 CFLAGS="${CFLAGS} -g"
1437 # Check whether --enable-developer or --disable-developer was given.
1438 if test "${enable_developer+set}" = set; then
1439 enableval="$enable_developer"
1440 if eval "test x$enable_developer = xyes"; then
1441 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1445 # Check whether --enable-krb5developer or --disable-krb5developer was given.
1446 if test "${enable_krb5developer+set}" = set; then
1447 enableval="$enable_krb5developer"
1448 if eval "test x$enable_krb5developer = xyes"; then
1449 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1453 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1454 if test "${enable_dmalloc+set}" = set; then
1455 enableval="$enable_dmalloc"
1459 if test "x$enable_dmalloc" = xyes
1460 then
1462 cat >>confdefs.h <<\_ACEOF
1463 #define ENABLE_DMALLOC 1
1464 _ACEOF
1467 cat >>confdefs.h <<\_ACEOF
1468 #define DMALLOC_FUNC_CHECK 1
1469 _ACEOF
1471 LIBS="$LIBS -ldmalloc"
1474 # Check whether --enable-dynrpc or --disable-dynrpc was given.
1475 if test "${enable_dynrpc+set}" = set; then
1476 enableval="$enable_dynrpc"
1480 if test x$enable_dynrpc = xyes
1481 then
1482 enable_dynrpc=lsa,samr,reg,wks,netlog,dfs
1485 if test x$enable_dynrpc != xno
1486 then
1487 for i in `echo $enable_dynrpc | sed -e's/,/ /g'`
1488 do case $i in lsa)
1489 LSA_DYNAMIC=yes
1491 cat >>confdefs.h <<\_ACEOF
1492 #define RPC_LSA_DYNAMIC 1
1493 _ACEOF
1495 ;; samr)
1496 SAMR_DYNAMIC=yes
1498 cat >>confdefs.h <<\_ACEOF
1499 #define RPC_SAMR_DYNAMIC 1
1500 _ACEOF
1502 ;; svc)
1503 SVC_DYNAMIC=yes
1505 cat >>confdefs.h <<\_ACEOF
1506 #define RPC_SVC_DYNAMIC 1
1507 _ACEOF
1509 ;; wks)
1510 WKS_DYNAMIC=yes
1512 cat >>confdefs.h <<\_ACEOF
1513 #define RPC_WKS_DYNAMIC 1
1514 _ACEOF
1516 ;; netlog)
1517 NETLOG_DYNAMIC=yes
1519 cat >>confdefs.h <<\_ACEOF
1520 #define RPC_NETLOG_DYNAMIC 1
1521 _ACEOF
1523 ;; reg)
1524 REG_DYNAMIC=yes
1526 cat >>confdefs.h <<\_ACEOF
1527 #define RPC_REG_DYNAMIC 1
1528 _ACEOF
1530 ;; spoolss)
1531 SPOOLSS_DYNAMIC=yes
1533 cat >>confdefs.h <<\_ACEOF
1534 #define RPC_SPOOLSS_DYNAMIC 1
1535 _ACEOF
1537 ;; dfs)
1538 DFS_DYNAMIC=yes
1540 cat >>confdefs.h <<\_ACEOF
1541 #define RPC_DFS_DYNAMIC 1
1542 _ACEOF
1544 ;; esac
1545 done
1548 ac_ext=c
1549 ac_cpp='$CPP $CPPFLAGS'
1550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1553 if test -n "$ac_tool_prefix"; then
1554 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1555 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561 if test -n "$CC"; then
1562 ac_cv_prog_CC="$CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1567 IFS=$as_save_IFS
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 break 2
1575 done
1576 done
1580 CC=$ac_cv_prog_CC
1581 if test -n "$CC"; then
1582 echo "$as_me:$LINENO: result: $CC" >&5
1583 echo "${ECHO_T}$CC" >&6
1584 else
1585 echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1590 if test -z "$ac_cv_prog_CC"; then
1591 ac_ct_CC=$CC
1592 # Extract the first word of "gcc", so it can be a program name with args.
1593 set dummy gcc; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 else
1599 if test -n "$ac_ct_CC"; then
1600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1601 else
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1605 IFS=$as_save_IFS
1606 test -z "$as_dir" && as_dir=.
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 ac_cv_prog_ac_ct_CC="gcc"
1610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611 break 2
1613 done
1614 done
1618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1619 if test -n "$ac_ct_CC"; then
1620 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1621 echo "${ECHO_T}$ac_ct_CC" >&6
1622 else
1623 echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1627 CC=$ac_ct_CC
1628 else
1629 CC="$ac_cv_prog_CC"
1632 if test -z "$CC"; then
1633 if test -n "$ac_tool_prefix"; then
1634 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1635 set dummy ${ac_tool_prefix}cc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 if test -n "$CC"; then
1642 ac_cv_prog_CC="$CC" # Let the user override the test.
1643 else
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1647 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=.
1649 for ac_exec_ext in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651 ac_cv_prog_CC="${ac_tool_prefix}cc"
1652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 break 2
1655 done
1656 done
1660 CC=$ac_cv_prog_CC
1661 if test -n "$CC"; then
1662 echo "$as_me:$LINENO: result: $CC" >&5
1663 echo "${ECHO_T}$CC" >&6
1664 else
1665 echo "$as_me:$LINENO: result: no" >&5
1666 echo "${ECHO_T}no" >&6
1670 if test -z "$ac_cv_prog_CC"; then
1671 ac_ct_CC=$CC
1672 # Extract the first word of "cc", so it can be a program name with args.
1673 set dummy cc; ac_word=$2
1674 echo "$as_me:$LINENO: checking for $ac_word" >&5
1675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1678 else
1679 if test -n "$ac_ct_CC"; then
1680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1681 else
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 for as_dir in $PATH
1685 IFS=$as_save_IFS
1686 test -z "$as_dir" && as_dir=.
1687 for ac_exec_ext in '' $ac_executable_extensions; do
1688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689 ac_cv_prog_ac_ct_CC="cc"
1690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691 break 2
1693 done
1694 done
1698 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1699 if test -n "$ac_ct_CC"; then
1700 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1701 echo "${ECHO_T}$ac_ct_CC" >&6
1702 else
1703 echo "$as_me:$LINENO: result: no" >&5
1704 echo "${ECHO_T}no" >&6
1707 CC=$ac_ct_CC
1708 else
1709 CC="$ac_cv_prog_CC"
1713 if test -z "$CC"; then
1714 # Extract the first word of "cc", so it can be a program name with args.
1715 set dummy cc; ac_word=$2
1716 echo "$as_me:$LINENO: checking for $ac_word" >&5
1717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1718 if test "${ac_cv_prog_CC+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1720 else
1721 if test -n "$CC"; then
1722 ac_cv_prog_CC="$CC" # Let the user override the test.
1723 else
1724 ac_prog_rejected=no
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 for as_dir in $PATH
1728 IFS=$as_save_IFS
1729 test -z "$as_dir" && as_dir=.
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1733 ac_prog_rejected=yes
1734 continue
1736 ac_cv_prog_CC="cc"
1737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738 break 2
1740 done
1741 done
1743 if test $ac_prog_rejected = yes; then
1744 # We found a bogon in the path, so make sure we never use it.
1745 set dummy $ac_cv_prog_CC
1746 shift
1747 if test $# != 0; then
1748 # We chose a different compiler from the bogus one.
1749 # However, it has the same basename, so the bogon will be chosen
1750 # first if we set CC to just the basename; use the full file name.
1751 shift
1752 set dummy "$as_dir/$ac_word" ${1+"$@"}
1753 shift
1754 ac_cv_prog_CC="$@"
1759 CC=$ac_cv_prog_CC
1760 if test -n "$CC"; then
1761 echo "$as_me:$LINENO: result: $CC" >&5
1762 echo "${ECHO_T}$CC" >&6
1763 else
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1769 if test -z "$CC"; then
1770 if test -n "$ac_tool_prefix"; then
1771 for ac_prog in cl
1773 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1775 echo "$as_me:$LINENO: checking for $ac_word" >&5
1776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1777 if test "${ac_cv_prog_CC+set}" = set; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1779 else
1780 if test -n "$CC"; then
1781 ac_cv_prog_CC="$CC" # Let the user override the test.
1782 else
1783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1784 for as_dir in $PATH
1786 IFS=$as_save_IFS
1787 test -z "$as_dir" && as_dir=.
1788 for ac_exec_ext in '' $ac_executable_extensions; do
1789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1790 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 break 2
1794 done
1795 done
1799 CC=$ac_cv_prog_CC
1800 if test -n "$CC"; then
1801 echo "$as_me:$LINENO: result: $CC" >&5
1802 echo "${ECHO_T}$CC" >&6
1803 else
1804 echo "$as_me:$LINENO: result: no" >&5
1805 echo "${ECHO_T}no" >&6
1808 test -n "$CC" && break
1809 done
1811 if test -z "$CC"; then
1812 ac_ct_CC=$CC
1813 for ac_prog in cl
1815 # Extract the first word of "$ac_prog", so it can be a program name with args.
1816 set dummy $ac_prog; ac_word=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1821 else
1822 if test -n "$ac_ct_CC"; then
1823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1824 else
1825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826 for as_dir in $PATH
1828 IFS=$as_save_IFS
1829 test -z "$as_dir" && as_dir=.
1830 for ac_exec_ext in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_ac_ct_CC="$ac_prog"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 break 2
1836 done
1837 done
1841 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1842 if test -n "$ac_ct_CC"; then
1843 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1844 echo "${ECHO_T}$ac_ct_CC" >&6
1845 else
1846 echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1850 test -n "$ac_ct_CC" && break
1851 done
1853 CC=$ac_ct_CC
1859 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1860 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1861 { (exit 1); exit 1; }; }
1863 # Provide some information about the compiler.
1864 echo "$as_me:$LINENO:" \
1865 "checking for C compiler version" >&5
1866 ac_compiler=`set X $ac_compile; echo $2`
1867 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1868 (eval $ac_compiler --version </dev/null >&5) 2>&5
1869 ac_status=$?
1870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1871 (exit $ac_status); }
1872 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1873 (eval $ac_compiler -v </dev/null >&5) 2>&5
1874 ac_status=$?
1875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1876 (exit $ac_status); }
1877 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1878 (eval $ac_compiler -V </dev/null >&5) 2>&5
1879 ac_status=$?
1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881 (exit $ac_status); }
1883 cat >conftest.$ac_ext <<_ACEOF
1884 #line $LINENO "configure"
1885 #include "confdefs.h"
1887 #ifdef F77_DUMMY_MAIN
1888 # ifdef __cplusplus
1889 extern "C"
1890 # endif
1891 int F77_DUMMY_MAIN() { return 1; }
1892 #endif
1894 main ()
1898 return 0;
1900 _ACEOF
1901 ac_clean_files_save=$ac_clean_files
1902 ac_clean_files="$ac_clean_files a.out a.exe"
1903 # Try to create an executable without -o first, disregard a.out.
1904 # It will help us diagnose broken compilers, and finding out an intuition
1905 # of exeext.
1906 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1907 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1908 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1909 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1910 (eval $ac_link_default) 2>&5
1911 ac_status=$?
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; then
1914 # Find the output, starting from the most likely. This scheme is
1915 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1916 # resort.
1918 # Be careful to initialize this variable, since it used to be cached.
1919 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1920 ac_cv_exeext=
1921 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1922 ls a.out conftest 2>/dev/null;
1923 ls a.* conftest.* 2>/dev/null`; do
1924 case $ac_file in
1925 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1926 a.out ) # We found the default executable, but exeext='' is most
1927 # certainly right.
1928 break;;
1929 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1930 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1931 export ac_cv_exeext
1932 break;;
1933 * ) break;;
1934 esac
1935 done
1936 else
1937 echo "$as_me: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
1939 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1940 echo "$as_me: error: C compiler cannot create executables" >&2;}
1941 { (exit 77); exit 77; }; }
1944 ac_exeext=$ac_cv_exeext
1945 echo "$as_me:$LINENO: result: $ac_file" >&5
1946 echo "${ECHO_T}$ac_file" >&6
1948 # Check the compiler produces executables we can run. If not, either
1949 # the compiler is broken, or we cross compile.
1950 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1951 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1952 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1953 # If not cross compiling, check that we can run a simple program.
1954 if test "$cross_compiling" != yes; then
1955 if { ac_try='./$ac_file'
1956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1957 (eval $ac_try) 2>&5
1958 ac_status=$?
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }; }; then
1961 cross_compiling=no
1962 else
1963 if test "$cross_compiling" = maybe; then
1964 cross_compiling=yes
1965 else
1966 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1967 If you meant to cross compile, use \`--host'." >&5
1968 echo "$as_me: error: cannot run C compiled programs.
1969 If you meant to cross compile, use \`--host'." >&2;}
1970 { (exit 1); exit 1; }; }
1974 echo "$as_me:$LINENO: result: yes" >&5
1975 echo "${ECHO_T}yes" >&6
1977 rm -f a.out a.exe conftest$ac_cv_exeext
1978 ac_clean_files=$ac_clean_files_save
1979 # Check the compiler produces executables we can run. If not, either
1980 # the compiler is broken, or we cross compile.
1981 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1982 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1983 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1984 echo "${ECHO_T}$cross_compiling" >&6
1986 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1987 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1989 (eval $ac_link) 2>&5
1990 ac_status=$?
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); }; then
1993 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1994 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1995 # work properly (i.e., refer to `conftest.exe'), while it won't with
1996 # `rm'.
1997 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1998 case $ac_file in
1999 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2000 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2001 export ac_cv_exeext
2002 break;;
2003 * ) break;;
2004 esac
2005 done
2006 else
2007 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2008 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2009 { (exit 1); exit 1; }; }
2012 rm -f conftest$ac_cv_exeext
2013 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2014 echo "${ECHO_T}$ac_cv_exeext" >&6
2016 rm -f conftest.$ac_ext
2017 EXEEXT=$ac_cv_exeext
2018 ac_exeext=$EXEEXT
2019 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2020 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2021 if test "${ac_cv_objext+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024 cat >conftest.$ac_ext <<_ACEOF
2025 #line $LINENO "configure"
2026 #include "confdefs.h"
2028 #ifdef F77_DUMMY_MAIN
2029 # ifdef __cplusplus
2030 extern "C"
2031 # endif
2032 int F77_DUMMY_MAIN() { return 1; }
2033 #endif
2035 main ()
2039 return 0;
2041 _ACEOF
2042 rm -f conftest.o conftest.obj
2043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2044 (eval $ac_compile) 2>&5
2045 ac_status=$?
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); }; then
2048 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2049 case $ac_file in
2050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2051 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2052 break;;
2053 esac
2054 done
2055 else
2056 echo "$as_me: failed program was:" >&5
2057 cat conftest.$ac_ext >&5
2058 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2059 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2060 { (exit 1); exit 1; }; }
2063 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2065 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2066 echo "${ECHO_T}$ac_cv_objext" >&6
2067 OBJEXT=$ac_cv_objext
2068 ac_objext=$OBJEXT
2069 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2070 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2071 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074 cat >conftest.$ac_ext <<_ACEOF
2075 #line $LINENO "configure"
2076 #include "confdefs.h"
2078 #ifdef F77_DUMMY_MAIN
2079 # ifdef __cplusplus
2080 extern "C"
2081 # endif
2082 int F77_DUMMY_MAIN() { return 1; }
2083 #endif
2085 main ()
2087 #ifndef __GNUC__
2088 choke me
2089 #endif
2092 return 0;
2094 _ACEOF
2095 rm -f conftest.$ac_objext
2096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2097 (eval $ac_compile) 2>&5
2098 ac_status=$?
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); } &&
2101 { ac_try='test -s conftest.$ac_objext'
2102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103 (eval $ac_try) 2>&5
2104 ac_status=$?
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }; }; then
2107 ac_compiler_gnu=yes
2108 else
2109 echo "$as_me: failed program was:" >&5
2110 cat conftest.$ac_ext >&5
2111 ac_compiler_gnu=no
2113 rm -f conftest.$ac_objext conftest.$ac_ext
2114 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2117 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2118 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2119 GCC=`test $ac_compiler_gnu = yes && echo yes`
2120 ac_test_CFLAGS=${CFLAGS+set}
2121 ac_save_CFLAGS=$CFLAGS
2122 CFLAGS="-g"
2123 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2124 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2125 if test "${ac_cv_prog_cc_g+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128 cat >conftest.$ac_ext <<_ACEOF
2129 #line $LINENO "configure"
2130 #include "confdefs.h"
2132 #ifdef F77_DUMMY_MAIN
2133 # ifdef __cplusplus
2134 extern "C"
2135 # endif
2136 int F77_DUMMY_MAIN() { return 1; }
2137 #endif
2139 main ()
2143 return 0;
2145 _ACEOF
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148 (eval $ac_compile) 2>&5
2149 ac_status=$?
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); } &&
2152 { ac_try='test -s conftest.$ac_objext'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 (eval $ac_try) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2158 ac_cv_prog_cc_g=yes
2159 else
2160 echo "$as_me: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2162 ac_cv_prog_cc_g=no
2164 rm -f conftest.$ac_objext conftest.$ac_ext
2166 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2167 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2168 if test "$ac_test_CFLAGS" = set; then
2169 CFLAGS=$ac_save_CFLAGS
2170 elif test $ac_cv_prog_cc_g = yes; then
2171 if test "$GCC" = yes; then
2172 CFLAGS="-g -O2"
2173 else
2174 CFLAGS="-g"
2176 else
2177 if test "$GCC" = yes; then
2178 CFLAGS="-O2"
2179 else
2180 CFLAGS=
2183 # Some people use a C++ compiler to compile C. Since we use `exit',
2184 # in C++ we need to declare it. In case someone uses the same compiler
2185 # for both compiling C and C++ we need to have the C++ compiler decide
2186 # the declaration of exit, since it's the most demanding environment.
2187 cat >conftest.$ac_ext <<_ACEOF
2188 #ifndef __cplusplus
2189 choke me
2190 #endif
2191 _ACEOF
2192 rm -f conftest.$ac_objext
2193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194 (eval $ac_compile) 2>&5
2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); } &&
2198 { ac_try='test -s conftest.$ac_objext'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200 (eval $ac_try) 2>&5
2201 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; }; then
2204 for ac_declaration in \
2206 '#include <stdlib.h>' \
2207 'extern "C" void std::exit (int) throw (); using std::exit;' \
2208 'extern "C" void std::exit (int); using std::exit;' \
2209 'extern "C" void exit (int) throw ();' \
2210 'extern "C" void exit (int);' \
2211 'void exit (int);'
2213 cat >conftest.$ac_ext <<_ACEOF
2214 #line $LINENO "configure"
2215 #include "confdefs.h"
2216 #include <stdlib.h>
2217 $ac_declaration
2218 #ifdef F77_DUMMY_MAIN
2219 # ifdef __cplusplus
2220 extern "C"
2221 # endif
2222 int F77_DUMMY_MAIN() { return 1; }
2223 #endif
2225 main ()
2227 exit (42);
2229 return 0;
2231 _ACEOF
2232 rm -f conftest.$ac_objext
2233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2234 (eval $ac_compile) 2>&5
2235 ac_status=$?
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); } &&
2238 { ac_try='test -s conftest.$ac_objext'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 (eval $ac_try) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; }; then
2245 else
2246 echo "$as_me: failed program was:" >&5
2247 cat conftest.$ac_ext >&5
2248 continue
2250 rm -f conftest.$ac_objext conftest.$ac_ext
2251 cat >conftest.$ac_ext <<_ACEOF
2252 #line $LINENO "configure"
2253 #include "confdefs.h"
2254 $ac_declaration
2255 #ifdef F77_DUMMY_MAIN
2256 # ifdef __cplusplus
2257 extern "C"
2258 # endif
2259 int F77_DUMMY_MAIN() { return 1; }
2260 #endif
2262 main ()
2264 exit (42);
2266 return 0;
2268 _ACEOF
2269 rm -f conftest.$ac_objext
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); } &&
2275 { ac_try='test -s conftest.$ac_objext'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 (eval $ac_try) 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; }; then
2281 break
2282 else
2283 echo "$as_me: failed program was:" >&5
2284 cat conftest.$ac_ext >&5
2286 rm -f conftest.$ac_objext conftest.$ac_ext
2287 done
2288 rm -f conftest*
2289 if test -n "$ac_declaration"; then
2290 echo '#ifdef __cplusplus' >>confdefs.h
2291 echo $ac_declaration >>confdefs.h
2292 echo '#endif' >>confdefs.h
2295 else
2296 echo "$as_me: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
2299 rm -f conftest.$ac_objext conftest.$ac_ext
2300 ac_ext=c
2301 ac_cpp='$CPP $CPPFLAGS'
2302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2306 ac_aux_dir=
2307 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2308 if test -f $ac_dir/install-sh; then
2309 ac_aux_dir=$ac_dir
2310 ac_install_sh="$ac_aux_dir/install-sh -c"
2311 break
2312 elif test -f $ac_dir/install.sh; then
2313 ac_aux_dir=$ac_dir
2314 ac_install_sh="$ac_aux_dir/install.sh -c"
2315 break
2316 elif test -f $ac_dir/shtool; then
2317 ac_aux_dir=$ac_dir
2318 ac_install_sh="$ac_aux_dir/shtool install -c"
2319 break
2321 done
2322 if test -z "$ac_aux_dir"; then
2323 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2324 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2325 { (exit 1); exit 1; }; }
2327 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2328 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2329 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2331 # Find a good install program. We prefer a C program (faster),
2332 # so one script is as good as another. But avoid the broken or
2333 # incompatible versions:
2334 # SysV /etc/install, /usr/sbin/install
2335 # SunOS /usr/etc/install
2336 # IRIX /sbin/install
2337 # AIX /bin/install
2338 # AmigaOS /C/install, which installs bootblocks on floppy discs
2339 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2340 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2341 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2342 # ./install, which can be erroneously created by make from ./install.sh.
2343 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2344 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2345 if test -z "$INSTALL"; then
2346 if test "${ac_cv_path_install+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 else
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2352 IFS=$as_save_IFS
2353 test -z "$as_dir" && as_dir=.
2354 # Account for people who put trailing slashes in PATH elements.
2355 case $as_dir/ in
2356 ./ | .// | /cC/* | \
2357 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2358 /usr/ucb/* ) ;;
2360 # OSF1 and SCO ODT 3.0 have their own names for install.
2361 # Don't use installbsd from OSF since it installs stuff as root
2362 # by default.
2363 for ac_prog in ginstall scoinst install; do
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2366 if test $ac_prog = install &&
2367 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2368 # AIX install. It has an incompatible calling convention.
2370 elif test $ac_prog = install &&
2371 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2372 # program-specific install script used by HP pwplus--don't use.
2374 else
2375 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2376 break 3
2379 done
2380 done
2382 esac
2383 done
2387 if test "${ac_cv_path_install+set}" = set; then
2388 INSTALL=$ac_cv_path_install
2389 else
2390 # As a last resort, use the slow shell script. We don't cache a
2391 # path for INSTALL within a source directory, because that will
2392 # break other packages using the cache if that directory is
2393 # removed, or if the path is relative.
2394 INSTALL=$ac_install_sh
2397 echo "$as_me:$LINENO: result: $INSTALL" >&5
2398 echo "${ECHO_T}$INSTALL" >&6
2400 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2401 # It thinks the first close brace ends the variable substitution.
2402 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2404 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2406 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2408 for ac_prog in gawk mawk nawk awk
2410 # Extract the first word of "$ac_prog", so it can be a program name with args.
2411 set dummy $ac_prog; ac_word=$2
2412 echo "$as_me:$LINENO: checking for $ac_word" >&5
2413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2414 if test "${ac_cv_prog_AWK+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 else
2417 if test -n "$AWK"; then
2418 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2419 else
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 for as_dir in $PATH
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2427 ac_cv_prog_AWK="$ac_prog"
2428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 break 2
2431 done
2432 done
2436 AWK=$ac_cv_prog_AWK
2437 if test -n "$AWK"; then
2438 echo "$as_me:$LINENO: result: $AWK" >&5
2439 echo "${ECHO_T}$AWK" >&6
2440 else
2441 echo "$as_me:$LINENO: result: no" >&5
2442 echo "${ECHO_T}no" >&6
2445 test -n "$AWK" && break
2446 done
2449 LD=ld
2450 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2451 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2452 if test "${ac_cv_prog_gnu_ld+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
2454 else
2455 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2456 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2457 ac_cv_prog_gnu_ld=yes
2458 else
2459 ac_cv_prog_gnu_ld=no
2462 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
2463 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
2467 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2468 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2469 if test "${ac_cv_search_strerror+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 else
2472 ac_func_search_save_LIBS=$LIBS
2473 ac_cv_search_strerror=no
2474 cat >conftest.$ac_ext <<_ACEOF
2475 #line $LINENO "configure"
2476 #include "confdefs.h"
2478 /* Override any gcc2 internal prototype to avoid an error. */
2479 #ifdef __cplusplus
2480 extern "C"
2481 #endif
2482 /* We use char because int might match the return type of a gcc2
2483 builtin and then its argument prototype would still apply. */
2484 char strerror ();
2485 #ifdef F77_DUMMY_MAIN
2486 # ifdef __cplusplus
2487 extern "C"
2488 # endif
2489 int F77_DUMMY_MAIN() { return 1; }
2490 #endif
2492 main ()
2494 strerror ();
2496 return 0;
2498 _ACEOF
2499 rm -f conftest.$ac_objext conftest$ac_exeext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2501 (eval $ac_link) 2>&5
2502 ac_status=$?
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); } &&
2505 { ac_try='test -s conftest$ac_exeext'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 (eval $ac_try) 2>&5
2508 ac_status=$?
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; }; then
2511 ac_cv_search_strerror="none required"
2512 else
2513 echo "$as_me: failed program was:" >&5
2514 cat conftest.$ac_ext >&5
2516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2517 if test "$ac_cv_search_strerror" = no; then
2518 for ac_lib in cposix; do
2519 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2520 cat >conftest.$ac_ext <<_ACEOF
2521 #line $LINENO "configure"
2522 #include "confdefs.h"
2524 /* Override any gcc2 internal prototype to avoid an error. */
2525 #ifdef __cplusplus
2526 extern "C"
2527 #endif
2528 /* We use char because int might match the return type of a gcc2
2529 builtin and then its argument prototype would still apply. */
2530 char strerror ();
2531 #ifdef F77_DUMMY_MAIN
2532 # ifdef __cplusplus
2533 extern "C"
2534 # endif
2535 int F77_DUMMY_MAIN() { return 1; }
2536 #endif
2538 main ()
2540 strerror ();
2542 return 0;
2544 _ACEOF
2545 rm -f conftest.$ac_objext conftest$ac_exeext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2547 (eval $ac_link) 2>&5
2548 ac_status=$?
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try='test -s conftest$ac_exeext'
2552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 (eval $ac_try) 2>&5
2554 ac_status=$?
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; }; then
2557 ac_cv_search_strerror="-l$ac_lib"
2558 break
2559 else
2560 echo "$as_me: failed program was:" >&5
2561 cat conftest.$ac_ext >&5
2563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2564 done
2566 LIBS=$ac_func_search_save_LIBS
2568 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2569 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2570 if test "$ac_cv_search_strerror" != no; then
2571 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2578 if test "x$CC" != xcc; then
2579 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2580 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2581 else
2582 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2583 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2585 set dummy $CC; ac_cc=`echo $2 |
2586 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2587 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 else
2590 cat >conftest.$ac_ext <<_ACEOF
2591 #line $LINENO "configure"
2592 #include "confdefs.h"
2594 #ifdef F77_DUMMY_MAIN
2595 # ifdef __cplusplus
2596 extern "C"
2597 # endif
2598 int F77_DUMMY_MAIN() { return 1; }
2599 #endif
2601 main ()
2605 return 0;
2607 _ACEOF
2608 # Make sure it works both with $CC and with simple cc.
2609 # We do the test twice because some compilers refuse to overwrite an
2610 # existing .o file with -o, though they will create one.
2611 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2612 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 (eval $ac_try) 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } &&
2617 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 (eval $ac_try) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); };
2622 then
2623 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2624 if test "x$CC" != xcc; then
2625 # Test first that cc exists at all.
2626 if { ac_try='cc -c conftest.$ac_ext >&5'
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 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2633 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 (eval $ac_try) 2>&5
2635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } &&
2638 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); };
2643 then
2644 # cc works too.
2646 else
2647 # cc exists but doesn't like -o.
2648 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2652 else
2653 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2655 rm -f conftest*
2658 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2659 echo "$as_me:$LINENO: result: yes" >&5
2660 echo "${ECHO_T}yes" >&6
2661 else
2662 echo "$as_me:$LINENO: result: no" >&5
2663 echo "${ECHO_T}no" >&6
2665 cat >>confdefs.h <<\_ACEOF
2666 #define NO_MINUS_C_MINUS_O 1
2667 _ACEOF
2671 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2672 BROKEN_CC=
2673 else
2674 BROKEN_CC=#
2678 echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
2679 echo $ECHO_N "checking that the C compiler understands volatile... $ECHO_C" >&6
2680 if test "${samba_cv_volatile+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2684 cat >conftest.$ac_ext <<_ACEOF
2685 #line $LINENO "configure"
2686 #include "confdefs.h"
2687 #include <sys/types.h>
2688 #ifdef F77_DUMMY_MAIN
2689 # ifdef __cplusplus
2690 extern "C"
2691 # endif
2692 int F77_DUMMY_MAIN() { return 1; }
2693 #endif
2695 main ()
2697 volatile int i = 0
2699 return 0;
2701 _ACEOF
2702 rm -f conftest.$ac_objext
2703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704 (eval $ac_compile) 2>&5
2705 ac_status=$?
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } &&
2708 { ac_try='test -s conftest.$ac_objext'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 (eval $ac_try) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2714 samba_cv_volatile=yes
2715 else
2716 echo "$as_me: failed program was:" >&5
2717 cat conftest.$ac_ext >&5
2718 samba_cv_volatile=no
2720 rm -f conftest.$ac_objext conftest.$ac_ext
2722 echo "$as_me:$LINENO: result: $samba_cv_volatile" >&5
2723 echo "${ECHO_T}$samba_cv_volatile" >&6
2724 if test x"$samba_cv_volatile" = x"yes"; then
2726 cat >>confdefs.h <<\_ACEOF
2727 #define HAVE_VOLATILE 1
2728 _ACEOF
2733 # Make sure we can run config.sub.
2734 $ac_config_sub sun4 >/dev/null 2>&1 ||
2735 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2736 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2737 { (exit 1); exit 1; }; }
2739 echo "$as_me:$LINENO: checking build system type" >&5
2740 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2741 if test "${ac_cv_build+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744 ac_cv_build_alias=$build_alias
2745 test -z "$ac_cv_build_alias" &&
2746 ac_cv_build_alias=`$ac_config_guess`
2747 test -z "$ac_cv_build_alias" &&
2748 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2749 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2750 { (exit 1); exit 1; }; }
2751 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2752 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2753 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2754 { (exit 1); exit 1; }; }
2757 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2758 echo "${ECHO_T}$ac_cv_build" >&6
2759 build=$ac_cv_build
2760 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2761 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2762 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2765 echo "$as_me:$LINENO: checking host system type" >&5
2766 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2767 if test "${ac_cv_host+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 else
2770 ac_cv_host_alias=$host_alias
2771 test -z "$ac_cv_host_alias" &&
2772 ac_cv_host_alias=$ac_cv_build_alias
2773 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2774 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2775 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2776 { (exit 1); exit 1; }; }
2779 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2780 echo "${ECHO_T}$ac_cv_host" >&6
2781 host=$ac_cv_host
2782 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2783 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2784 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2787 echo "$as_me:$LINENO: checking target system type" >&5
2788 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2789 if test "${ac_cv_target+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2791 else
2792 ac_cv_target_alias=$target_alias
2793 test "x$ac_cv_target_alias" = "x" &&
2794 ac_cv_target_alias=$ac_cv_host_alias
2795 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2796 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2797 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2798 { (exit 1); exit 1; }; }
2801 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2802 echo "${ECHO_T}$ac_cv_target" >&6
2803 target=$ac_cv_target
2804 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2805 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2806 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2809 # The aliases save the names the user supplied, while $host etc.
2810 # will get canonicalized.
2811 test -n "$target_alias" &&
2812 test "$program_prefix$program_suffix$program_transform_name" = \
2813 NONENONEs,x,x, &&
2814 program_prefix=${target_alias}-
2816 case "$host_os" in
2817 *irix6*) cat >> confdefs.h <<\EOF
2818 #include <standards.h>
2822 esac
2826 echo "$as_me:$LINENO: checking config.cache system type" >&5
2827 echo $ECHO_N "checking config.cache system type... $ECHO_C" >&6
2828 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
2829 test x"$ac_cv_host_system_type" != x"$host"; } ||
2830 { test x"${ac_cv_build_system_type+set}" = x"set" &&
2831 test x"$ac_cv_build_system_type" != x"$build"; } ||
2832 { test x"${ac_cv_target_system_type+set}" = x"set" &&
2833 test x"$ac_cv_target_system_type" != x"$target"; }; then
2834 echo "$as_me:$LINENO: result: different" >&5
2835 echo "${ECHO_T}different" >&6
2836 { { echo "$as_me:$LINENO: error: \"you must remove config.cache and restart configure\"" >&5
2837 echo "$as_me: error: \"you must remove config.cache and restart configure\"" >&2;}
2838 { (exit 1); exit 1; }; }
2839 else
2840 echo "$as_me:$LINENO: result: same" >&5
2841 echo "${ECHO_T}same" >&6
2843 ac_cv_host_system_type="$host"
2844 ac_cv_build_system_type="$build"
2845 ac_cv_target_system_type="$target"
2848 DYNEXP=
2851 # Config CPPFLAG settings for strange OS's that must be set
2852 # before other tests.
2854 case "$host_os" in
2855 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
2856 *hpux*)
2858 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Ae" >&5
2859 echo $ECHO_N "checking whether ${CC-cc} accepts -Ae... $ECHO_C" >&6
2860 if test "${ac_cv_prog_cc_Ae+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863 echo 'void f(){}' > conftest.c
2864 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
2865 ac_cv_prog_cc_Ae=yes
2866 else
2867 ac_cv_prog_cc_Ae=no
2869 rm -f conftest*
2872 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_Ae" >&5
2873 echo "${ECHO_T}$ac_cv_prog_cc_Ae" >&6
2874 # mmap on HPUX is completely broken...
2876 cat >>confdefs.h <<\_ACEOF
2877 #define MMAP_BLACKLIST 1
2878 _ACEOF
2880 if test $ac_cv_prog_cc_Ae = yes; then
2881 CPPFLAGS="$CPPFLAGS -Ae"
2884 # Defines needed for HPUX support.
2885 # HPUX has bigcrypt but (sometimes?) doesn't use it for
2886 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
2888 case `uname -r` in
2889 *9*|*10*)
2890 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2892 cat >>confdefs.h <<\_ACEOF
2893 #define USE_BOTH_CRYPT_CALLS 1
2894 _ACEOF
2897 cat >>confdefs.h <<\_ACEOF
2898 #define _HPUX_SOURCE 1
2899 _ACEOF
2902 cat >>confdefs.h <<\_ACEOF
2903 #define _POSIX_SOURCE 1
2904 _ACEOF
2907 cat >>confdefs.h <<\_ACEOF
2908 #define _ALIGNMENT_REQUIRED 1
2909 _ACEOF
2912 cat >>confdefs.h <<\_ACEOF
2913 #define _MAX_ALIGNMENT 4
2914 _ACEOF
2917 *11*)
2918 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2920 cat >>confdefs.h <<\_ACEOF
2921 #define USE_BOTH_CRYPT_CALLS 1
2922 _ACEOF
2925 cat >>confdefs.h <<\_ACEOF
2926 #define _HPUX_SOURCE 1
2927 _ACEOF
2930 cat >>confdefs.h <<\_ACEOF
2931 #define _POSIX_SOURCE 1
2932 _ACEOF
2935 cat >>confdefs.h <<\_ACEOF
2936 #define _LARGEFILE64_SOURCE 1
2937 _ACEOF
2940 cat >>confdefs.h <<\_ACEOF
2941 #define _ALIGNMENT_REQUIRED 1
2942 _ACEOF
2945 cat >>confdefs.h <<\_ACEOF
2946 #define _MAX_ALIGNMENT 4
2947 _ACEOF
2950 esac
2951 DYNEXP="-Wl,-E"
2955 # CRAY Unicos has broken const handling
2956 *unicos*)
2957 echo "$as_me:$LINENO: result: disabling const" >&5
2958 echo "${ECHO_T}disabling const" >&6
2959 CPPFLAGS="$CPPFLAGS -Dconst="
2963 # AIX4.x doesn't even admit to having large
2964 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
2966 *aix4*)
2967 echo "$as_me:$LINENO: result: enabling large file support" >&5
2968 echo "${ECHO_T}enabling large file support" >&6
2969 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
2971 cat >>confdefs.h <<\_ACEOF
2972 #define _LARGE_FILES 1
2973 _ACEOF
2977 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
2978 # to the existance of large files..
2979 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
2980 # recommendations on large file support, however it makes the
2981 # compile work using gcc 2.7 and 2.8, whereas using the Sun
2982 # recommendation makes the compile fail on gcc2.7. JRA.
2984 *solaris*)
2985 case `uname -r` in
2986 5.0*|5.1*|5.2*|5.3*|5.5*)
2987 echo "$as_me:$LINENO: result: no large file support" >&5
2988 echo "${ECHO_T}no large file support" >&6
2990 5.*)
2991 echo "$as_me:$LINENO: result: enabling large file support" >&5
2992 echo "${ECHO_T}enabling large file support" >&6
2993 if test "$ac_cv_c_compiler_gnu" = yes; then
2994 ${CC-cc} -v >conftest.c 2>&1
2995 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
2996 rm -fr conftest.c
2997 case "$ac_cv_gcc_compiler_version_number" in
2998 *"gcc version 2.6"*|*"gcc version 2.7"*)
2999 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
3001 cat >>confdefs.h <<\_ACEOF
3002 #define _LARGEFILE64_SOURCE 1
3003 _ACEOF
3007 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
3009 cat >>confdefs.h <<\_ACEOF
3010 #define _LARGEFILE64_SOURCE 1
3011 _ACEOF
3014 cat >>confdefs.h <<\_ACEOF
3015 #define _FILE_OFFSET_BITS 64
3016 _ACEOF
3019 esac
3020 else
3021 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
3023 cat >>confdefs.h <<\_ACEOF
3024 #define _LARGEFILE64_SOURCE 1
3025 _ACEOF
3028 cat >>confdefs.h <<\_ACEOF
3029 #define _FILE_OFFSET_BITS 64
3030 _ACEOF
3034 esac
3037 # Tests needed for SINIX large file support.
3039 *sysv4*)
3040 if test $host = mips-sni-sysv4 ; then
3041 echo "$as_me:$LINENO: checking for LFS support" >&5
3042 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3043 old_CPPFLAGS="$CPPFLAGS"
3044 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
3045 if test "$cross_compiling" = yes; then
3046 SINIX_LFS_SUPPORT=cross
3047 else
3048 cat >conftest.$ac_ext <<_ACEOF
3049 #line $LINENO "configure"
3050 #include "confdefs.h"
3052 #include <unistd.h>
3053 main () {
3054 #if _LFS64_LARGEFILE == 1
3055 exit(0);
3056 #else
3057 exit(1);
3058 #endif
3060 _ACEOF
3061 rm -f conftest$ac_exeext
3062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3063 (eval $ac_link) 2>&5
3064 ac_status=$?
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068 (eval $ac_try) 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
3072 SINIX_LFS_SUPPORT=yes
3073 else
3074 echo "$as_me: program exited with status $ac_status" >&5
3075 echo "$as_me: failed program was:" >&5
3076 cat conftest.$ac_ext >&5
3077 ( exit $ac_status )
3078 SINIX_LFS_SUPPORT=no
3080 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3082 CPPFLAGS="$old_CPPFLAGS"
3083 if test x$SINIX_LFS_SUPPORT = xyes ; then
3084 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
3086 cat >>confdefs.h <<\_ACEOF
3087 #define _LARGEFILE64_SOURCE 1
3088 _ACEOF
3090 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
3091 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
3092 LIBS="`getconf LFS64_LIBS` $LIBS"
3094 echo "$as_me:$LINENO: result: $SINIX_LFS_SUPPORT" >&5
3095 echo "${ECHO_T}$SINIX_LFS_SUPPORT" >&6
3099 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
3101 *linux*)
3102 echo "$as_me:$LINENO: checking for LFS support" >&5
3103 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3104 old_CPPFLAGS="$CPPFLAGS"
3105 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3106 if test "$cross_compiling" = yes; then
3107 LINUX_LFS_SUPPORT=cross
3108 else
3109 cat >conftest.$ac_ext <<_ACEOF
3110 #line $LINENO "configure"
3111 #include "confdefs.h"
3113 #include <unistd.h>
3114 #include <sys/utsname.h>
3115 main() {
3116 #if _LFS64_LARGEFILE == 1
3117 struct utsname uts;
3118 char *release;
3119 int major, minor;
3121 /* Ensure this is glibc 2.2 or higher */
3122 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
3123 int libc_major = __GLIBC__;
3124 int libc_minor = __GLIBC_MINOR__;
3126 if (libc_major < 2)
3127 exit(1);
3128 if (libc_minor < 2)
3129 exit(1);
3130 #endif
3132 /* Ensure this is kernel 2.4 or higher */
3134 uname(&uts);
3135 release = uts.release;
3136 major = atoi(strsep(&release, "."));
3137 minor = atoi(strsep(&release, "."));
3139 if (major > 2 || (major == 2 && minor > 3))
3140 exit(0);
3141 exit(1);
3142 #else
3143 exit(1);
3144 #endif
3147 _ACEOF
3148 rm -f conftest$ac_exeext
3149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3150 (eval $ac_link) 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155 (eval $ac_try) 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 LINUX_LFS_SUPPORT=yes
3160 else
3161 echo "$as_me: program exited with status $ac_status" >&5
3162 echo "$as_me: failed program was:" >&5
3163 cat conftest.$ac_ext >&5
3164 ( exit $ac_status )
3165 LINUX_LFS_SUPPORT=no
3167 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3169 CPPFLAGS="$old_CPPFLAGS"
3170 if test x$LINUX_LFS_SUPPORT = xyes ; then
3171 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3173 cat >>confdefs.h <<\_ACEOF
3174 #define _LARGEFILE64_SOURCE 1
3175 _ACEOF
3178 cat >>confdefs.h <<\_ACEOF
3179 #define _FILE_OFFSET_BITS 64
3180 _ACEOF
3183 cat >>confdefs.h <<\_ACEOF
3184 #define _GNU_SOURCE 1
3185 _ACEOF
3188 echo "$as_me:$LINENO: result: $LINUX_LFS_SUPPORT" >&5
3189 echo "${ECHO_T}$LINUX_LFS_SUPPORT" >&6
3192 *hurd*)
3193 echo "$as_me:$LINENO: checking for LFS support" >&5
3194 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3195 old_CPPFLAGS="$CPPFLAGS"
3196 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3197 if test "$cross_compiling" = yes; then
3198 GLIBC_LFS_SUPPORT=cross
3199 else
3200 cat >conftest.$ac_ext <<_ACEOF
3201 #line $LINENO "configure"
3202 #include "confdefs.h"
3204 #include <unistd.h>
3205 main () {
3206 #if _LFS64_LARGEFILE == 1
3207 exit(0);
3208 #else
3209 exit(1);
3210 #endif
3212 _ACEOF
3213 rm -f conftest$ac_exeext
3214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3215 (eval $ac_link) 2>&5
3216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220 (eval $ac_try) 2>&5
3221 ac_status=$?
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }; }; then
3224 GLIBC_LFS_SUPPORT=yes
3225 else
3226 echo "$as_me: program exited with status $ac_status" >&5
3227 echo "$as_me: failed program was:" >&5
3228 cat conftest.$ac_ext >&5
3229 ( exit $ac_status )
3230 GLIBC_LFS_SUPPORT=no
3232 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3234 CPPFLAGS="$old_CPPFLAGS"
3235 if test x$GLIBC_LFS_SUPPORT = xyes ; then
3236 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3238 cat >>confdefs.h <<\_ACEOF
3239 #define _LARGEFILE64_SOURCE 1
3240 _ACEOF
3243 cat >>confdefs.h <<\_ACEOF
3244 #define _GNU_SOURCE 1
3245 _ACEOF
3248 echo "$as_me:$LINENO: result: $GLIBC_LFS_SUPPORT" >&5
3249 echo "${ECHO_T}$GLIBC_LFS_SUPPORT" >&6
3252 esac
3254 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3255 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3256 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259 ac_cv_prog_cc_stdc=no
3260 ac_save_CC=$CC
3261 cat >conftest.$ac_ext <<_ACEOF
3262 #line $LINENO "configure"
3263 #include "confdefs.h"
3264 #include <stdarg.h>
3265 #include <stdio.h>
3266 #include <sys/types.h>
3267 #include <sys/stat.h>
3268 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3269 struct buf { int x; };
3270 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3271 static char *e (p, i)
3272 char **p;
3273 int i;
3275 return p[i];
3277 static char *f (char * (*g) (char **, int), char **p, ...)
3279 char *s;
3280 va_list v;
3281 va_start (v,p);
3282 s = g (p, va_arg (v,int));
3283 va_end (v);
3284 return s;
3286 int test (int i, double x);
3287 struct s1 {int (*f) (int a);};
3288 struct s2 {int (*f) (double a);};
3289 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3290 int argc;
3291 char **argv;
3292 #ifdef F77_DUMMY_MAIN
3293 # ifdef __cplusplus
3294 extern "C"
3295 # endif
3296 int F77_DUMMY_MAIN() { return 1; }
3297 #endif
3299 main ()
3301 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3303 return 0;
3305 _ACEOF
3306 # Don't try gcc -ansi; that turns off useful extensions and
3307 # breaks some systems' header files.
3308 # AIX -qlanglvl=ansi
3309 # Ultrix and OSF/1 -std1
3310 # HP-UX 10.20 and later -Ae
3311 # HP-UX older versions -Aa -D_HPUX_SOURCE
3312 # SVR4 -Xc -D__EXTENSIONS__
3313 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3315 CC="$ac_save_CC $ac_arg"
3316 rm -f conftest.$ac_objext
3317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3318 (eval $ac_compile) 2>&5
3319 ac_status=$?
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); } &&
3322 { ac_try='test -s conftest.$ac_objext'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 (eval $ac_try) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; }; then
3328 ac_cv_prog_cc_stdc=$ac_arg
3329 break
3330 else
3331 echo "$as_me: failed program was:" >&5
3332 cat conftest.$ac_ext >&5
3334 rm -f conftest.$ac_objext
3335 done
3336 rm -f conftest.$ac_ext conftest.$ac_objext
3337 CC=$ac_save_CC
3341 case "x$ac_cv_prog_cc_stdc" in
3342 x|xno)
3343 echo "$as_me:$LINENO: result: none needed" >&5
3344 echo "${ECHO_T}none needed" >&6 ;;
3346 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3347 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3348 CC="$CC $ac_cv_prog_cc_stdc" ;;
3349 esac
3351 echo "$as_me:$LINENO: checking for inline" >&5
3352 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3353 if test "${ac_cv_c_inline+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356 ac_cv_c_inline=no
3357 for ac_kw in inline __inline__ __inline; do
3358 cat >conftest.$ac_ext <<_ACEOF
3359 #line $LINENO "configure"
3360 #include "confdefs.h"
3361 #ifndef __cplusplus
3362 static $ac_kw int static_foo () {return 0; }
3363 $ac_kw int foo () {return 0; }
3364 #endif
3366 _ACEOF
3367 rm -f conftest.$ac_objext
3368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3369 (eval $ac_compile) 2>&5
3370 ac_status=$?
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } &&
3373 { ac_try='test -s conftest.$ac_objext'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 (eval $ac_try) 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; }; then
3379 ac_cv_c_inline=$ac_kw; break
3380 else
3381 echo "$as_me: failed program was:" >&5
3382 cat conftest.$ac_ext >&5
3384 rm -f conftest.$ac_objext conftest.$ac_ext
3385 done
3388 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3389 echo "${ECHO_T}$ac_cv_c_inline" >&6
3390 case $ac_cv_c_inline in
3391 inline | yes) ;;
3393 cat >>confdefs.h <<\_ACEOF
3394 #define inline
3395 _ACEOF
3397 *) cat >>confdefs.h <<_ACEOF
3398 #define inline $ac_cv_c_inline
3399 _ACEOF
3401 esac
3403 ac_ext=c
3404 ac_cpp='$CPP $CPPFLAGS'
3405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3408 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3409 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3410 # On Suns, sometimes $CPP names a directory.
3411 if test -n "$CPP" && test -d "$CPP"; then
3412 CPP=
3414 if test -z "$CPP"; then
3415 if test "${ac_cv_prog_CPP+set}" = set; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 else
3418 # Double quotes because CPP needs to be expanded
3419 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3421 ac_preproc_ok=false
3422 for ac_c_preproc_warn_flag in '' yes
3424 # Use a header file that comes with gcc, so configuring glibc
3425 # with a fresh cross-compiler works.
3426 # On the NeXT, cc -E runs the code through the compiler's parser,
3427 # not just through cpp. "Syntax error" is here to catch this case.
3428 cat >conftest.$ac_ext <<_ACEOF
3429 #line $LINENO "configure"
3430 #include "confdefs.h"
3431 #include <assert.h>
3432 Syntax error
3433 _ACEOF
3434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3436 ac_status=$?
3437 egrep -v '^ *\+' conftest.er1 >conftest.err
3438 rm -f conftest.er1
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } >/dev/null; then
3442 if test -s conftest.err; then
3443 ac_cpp_err=$ac_c_preproc_warn_flag
3444 else
3445 ac_cpp_err=
3447 else
3448 ac_cpp_err=yes
3450 if test -z "$ac_cpp_err"; then
3452 else
3453 echo "$as_me: failed program was:" >&5
3454 cat conftest.$ac_ext >&5
3455 # Broken: fails on valid input.
3456 continue
3458 rm -f conftest.err conftest.$ac_ext
3460 # OK, works on sane cases. Now check whether non-existent headers
3461 # can be detected and how.
3462 cat >conftest.$ac_ext <<_ACEOF
3463 #line $LINENO "configure"
3464 #include "confdefs.h"
3465 #include <ac_nonexistent.h>
3466 _ACEOF
3467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3469 ac_status=$?
3470 egrep -v '^ *\+' conftest.er1 >conftest.err
3471 rm -f conftest.er1
3472 cat conftest.err >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } >/dev/null; then
3475 if test -s conftest.err; then
3476 ac_cpp_err=$ac_c_preproc_warn_flag
3477 else
3478 ac_cpp_err=
3480 else
3481 ac_cpp_err=yes
3483 if test -z "$ac_cpp_err"; then
3484 # Broken: success on invalid input.
3485 continue
3486 else
3487 echo "$as_me: failed program was:" >&5
3488 cat conftest.$ac_ext >&5
3489 # Passes both tests.
3490 ac_preproc_ok=:
3491 break
3493 rm -f conftest.err conftest.$ac_ext
3495 done
3496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3497 rm -f conftest.err conftest.$ac_ext
3498 if $ac_preproc_ok; then
3499 break
3502 done
3503 ac_cv_prog_CPP=$CPP
3506 CPP=$ac_cv_prog_CPP
3507 else
3508 ac_cv_prog_CPP=$CPP
3510 echo "$as_me:$LINENO: result: $CPP" >&5
3511 echo "${ECHO_T}$CPP" >&6
3512 ac_preproc_ok=false
3513 for ac_c_preproc_warn_flag in '' yes
3515 # Use a header file that comes with gcc, so configuring glibc
3516 # with a fresh cross-compiler works.
3517 # On the NeXT, cc -E runs the code through the compiler's parser,
3518 # not just through cpp. "Syntax error" is here to catch this case.
3519 cat >conftest.$ac_ext <<_ACEOF
3520 #line $LINENO "configure"
3521 #include "confdefs.h"
3522 #include <assert.h>
3523 Syntax error
3524 _ACEOF
3525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3527 ac_status=$?
3528 egrep -v '^ *\+' conftest.er1 >conftest.err
3529 rm -f conftest.er1
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } >/dev/null; then
3533 if test -s conftest.err; then
3534 ac_cpp_err=$ac_c_preproc_warn_flag
3535 else
3536 ac_cpp_err=
3538 else
3539 ac_cpp_err=yes
3541 if test -z "$ac_cpp_err"; then
3543 else
3544 echo "$as_me: failed program was:" >&5
3545 cat conftest.$ac_ext >&5
3546 # Broken: fails on valid input.
3547 continue
3549 rm -f conftest.err conftest.$ac_ext
3551 # OK, works on sane cases. Now check whether non-existent headers
3552 # can be detected and how.
3553 cat >conftest.$ac_ext <<_ACEOF
3554 #line $LINENO "configure"
3555 #include "confdefs.h"
3556 #include <ac_nonexistent.h>
3557 _ACEOF
3558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3560 ac_status=$?
3561 egrep -v '^ *\+' conftest.er1 >conftest.err
3562 rm -f conftest.er1
3563 cat conftest.err >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } >/dev/null; then
3566 if test -s conftest.err; then
3567 ac_cpp_err=$ac_c_preproc_warn_flag
3568 else
3569 ac_cpp_err=
3571 else
3572 ac_cpp_err=yes
3574 if test -z "$ac_cpp_err"; then
3575 # Broken: success on invalid input.
3576 continue
3577 else
3578 echo "$as_me: failed program was:" >&5
3579 cat conftest.$ac_ext >&5
3580 # Passes both tests.
3581 ac_preproc_ok=:
3582 break
3584 rm -f conftest.err conftest.$ac_ext
3586 done
3587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3588 rm -f conftest.err conftest.$ac_ext
3589 if $ac_preproc_ok; then
3591 else
3592 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3593 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3594 { (exit 1); exit 1; }; }
3597 ac_ext=c
3598 ac_cpp='$CPP $CPPFLAGS'
3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3604 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3605 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3606 if test "${ac_cv_header_stdc+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609 cat >conftest.$ac_ext <<_ACEOF
3610 #line $LINENO "configure"
3611 #include "confdefs.h"
3612 #include <stdlib.h>
3613 #include <stdarg.h>
3614 #include <string.h>
3615 #include <float.h>
3617 _ACEOF
3618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3620 ac_status=$?
3621 egrep -v '^ *\+' conftest.er1 >conftest.err
3622 rm -f conftest.er1
3623 cat conftest.err >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } >/dev/null; then
3626 if test -s conftest.err; then
3627 ac_cpp_err=$ac_c_preproc_warn_flag
3628 else
3629 ac_cpp_err=
3631 else
3632 ac_cpp_err=yes
3634 if test -z "$ac_cpp_err"; then
3635 ac_cv_header_stdc=yes
3636 else
3637 echo "$as_me: failed program was:" >&5
3638 cat conftest.$ac_ext >&5
3639 ac_cv_header_stdc=no
3641 rm -f conftest.err conftest.$ac_ext
3643 if test $ac_cv_header_stdc = yes; then
3644 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3645 cat >conftest.$ac_ext <<_ACEOF
3646 #line $LINENO "configure"
3647 #include "confdefs.h"
3648 #include <string.h>
3650 _ACEOF
3651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3652 egrep "memchr" >/dev/null 2>&1; then
3654 else
3655 ac_cv_header_stdc=no
3657 rm -f conftest*
3661 if test $ac_cv_header_stdc = yes; then
3662 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3663 cat >conftest.$ac_ext <<_ACEOF
3664 #line $LINENO "configure"
3665 #include "confdefs.h"
3666 #include <stdlib.h>
3668 _ACEOF
3669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3670 egrep "free" >/dev/null 2>&1; then
3672 else
3673 ac_cv_header_stdc=no
3675 rm -f conftest*
3679 if test $ac_cv_header_stdc = yes; then
3680 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3681 if test "$cross_compiling" = yes; then
3683 else
3684 cat >conftest.$ac_ext <<_ACEOF
3685 #line $LINENO "configure"
3686 #include "confdefs.h"
3687 #include <ctype.h>
3688 #if ((' ' & 0x0FF) == 0x020)
3689 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3690 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3691 #else
3692 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3693 || ('j' <= (c) && (c) <= 'r') \
3694 || ('s' <= (c) && (c) <= 'z'))
3695 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3696 #endif
3698 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3700 main ()
3702 int i;
3703 for (i = 0; i < 256; i++)
3704 if (XOR (islower (i), ISLOWER (i))
3705 || toupper (i) != TOUPPER (i))
3706 exit(2);
3707 exit (0);
3709 _ACEOF
3710 rm -f conftest$ac_exeext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3712 (eval $ac_link) 2>&5
3713 ac_status=$?
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 (eval $ac_try) 2>&5
3718 ac_status=$?
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; }; then
3722 else
3723 echo "$as_me: program exited with status $ac_status" >&5
3724 echo "$as_me: failed program was:" >&5
3725 cat conftest.$ac_ext >&5
3726 ( exit $ac_status )
3727 ac_cv_header_stdc=no
3729 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3733 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3734 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3735 if test $ac_cv_header_stdc = yes; then
3737 cat >>confdefs.h <<\_ACEOF
3738 #define STDC_HEADERS 1
3739 _ACEOF
3748 ac_header_dirent=no
3749 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3750 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3751 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3752 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756 cat >conftest.$ac_ext <<_ACEOF
3757 #line $LINENO "configure"
3758 #include "confdefs.h"
3759 #include <sys/types.h>
3760 #include <$ac_hdr>
3762 #ifdef F77_DUMMY_MAIN
3763 # ifdef __cplusplus
3764 extern "C"
3765 # endif
3766 int F77_DUMMY_MAIN() { return 1; }
3767 #endif
3769 main ()
3771 if ((DIR *) 0)
3772 return 0;
3774 return 0;
3776 _ACEOF
3777 rm -f conftest.$ac_objext
3778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3779 (eval $ac_compile) 2>&5
3780 ac_status=$?
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } &&
3783 { ac_try='test -s conftest.$ac_objext'
3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785 (eval $ac_try) 2>&5
3786 ac_status=$?
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3789 eval "$as_ac_Header=yes"
3790 else
3791 echo "$as_me: failed program was:" >&5
3792 cat conftest.$ac_ext >&5
3793 eval "$as_ac_Header=no"
3795 rm -f conftest.$ac_objext conftest.$ac_ext
3797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3800 cat >>confdefs.h <<_ACEOF
3801 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3802 _ACEOF
3804 ac_header_dirent=$ac_hdr; break
3807 done
3808 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3809 if test $ac_header_dirent = dirent.h; then
3810 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3811 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3812 if test "${ac_cv_search_opendir+set}" = set; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 else
3815 ac_func_search_save_LIBS=$LIBS
3816 ac_cv_search_opendir=no
3817 cat >conftest.$ac_ext <<_ACEOF
3818 #line $LINENO "configure"
3819 #include "confdefs.h"
3821 /* Override any gcc2 internal prototype to avoid an error. */
3822 #ifdef __cplusplus
3823 extern "C"
3824 #endif
3825 /* We use char because int might match the return type of a gcc2
3826 builtin and then its argument prototype would still apply. */
3827 char opendir ();
3828 #ifdef F77_DUMMY_MAIN
3829 # ifdef __cplusplus
3830 extern "C"
3831 # endif
3832 int F77_DUMMY_MAIN() { return 1; }
3833 #endif
3835 main ()
3837 opendir ();
3839 return 0;
3841 _ACEOF
3842 rm -f conftest.$ac_objext conftest$ac_exeext
3843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3844 (eval $ac_link) 2>&5
3845 ac_status=$?
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); } &&
3848 { ac_try='test -s conftest$ac_exeext'
3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 (eval $ac_try) 2>&5
3851 ac_status=$?
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; }; then
3854 ac_cv_search_opendir="none required"
3855 else
3856 echo "$as_me: failed program was:" >&5
3857 cat conftest.$ac_ext >&5
3859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3860 if test "$ac_cv_search_opendir" = no; then
3861 for ac_lib in dir; do
3862 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3863 cat >conftest.$ac_ext <<_ACEOF
3864 #line $LINENO "configure"
3865 #include "confdefs.h"
3867 /* Override any gcc2 internal prototype to avoid an error. */
3868 #ifdef __cplusplus
3869 extern "C"
3870 #endif
3871 /* We use char because int might match the return type of a gcc2
3872 builtin and then its argument prototype would still apply. */
3873 char opendir ();
3874 #ifdef F77_DUMMY_MAIN
3875 # ifdef __cplusplus
3876 extern "C"
3877 # endif
3878 int F77_DUMMY_MAIN() { return 1; }
3879 #endif
3881 main ()
3883 opendir ();
3885 return 0;
3887 _ACEOF
3888 rm -f conftest.$ac_objext conftest$ac_exeext
3889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3890 (eval $ac_link) 2>&5
3891 ac_status=$?
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } &&
3894 { ac_try='test -s conftest$ac_exeext'
3895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 (eval $ac_try) 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; }; then
3900 ac_cv_search_opendir="-l$ac_lib"
3901 break
3902 else
3903 echo "$as_me: failed program was:" >&5
3904 cat conftest.$ac_ext >&5
3906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3907 done
3909 LIBS=$ac_func_search_save_LIBS
3911 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3912 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3913 if test "$ac_cv_search_opendir" != no; then
3914 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3918 else
3919 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3920 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3921 if test "${ac_cv_search_opendir+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924 ac_func_search_save_LIBS=$LIBS
3925 ac_cv_search_opendir=no
3926 cat >conftest.$ac_ext <<_ACEOF
3927 #line $LINENO "configure"
3928 #include "confdefs.h"
3930 /* Override any gcc2 internal prototype to avoid an error. */
3931 #ifdef __cplusplus
3932 extern "C"
3933 #endif
3934 /* We use char because int might match the return type of a gcc2
3935 builtin and then its argument prototype would still apply. */
3936 char opendir ();
3937 #ifdef F77_DUMMY_MAIN
3938 # ifdef __cplusplus
3939 extern "C"
3940 # endif
3941 int F77_DUMMY_MAIN() { return 1; }
3942 #endif
3944 main ()
3946 opendir ();
3948 return 0;
3950 _ACEOF
3951 rm -f conftest.$ac_objext conftest$ac_exeext
3952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3953 (eval $ac_link) 2>&5
3954 ac_status=$?
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } &&
3957 { ac_try='test -s conftest$ac_exeext'
3958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959 (eval $ac_try) 2>&5
3960 ac_status=$?
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; }; then
3963 ac_cv_search_opendir="none required"
3964 else
3965 echo "$as_me: failed program was:" >&5
3966 cat conftest.$ac_ext >&5
3968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3969 if test "$ac_cv_search_opendir" = no; then
3970 for ac_lib in x; do
3971 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3972 cat >conftest.$ac_ext <<_ACEOF
3973 #line $LINENO "configure"
3974 #include "confdefs.h"
3976 /* Override any gcc2 internal prototype to avoid an error. */
3977 #ifdef __cplusplus
3978 extern "C"
3979 #endif
3980 /* We use char because int might match the return type of a gcc2
3981 builtin and then its argument prototype would still apply. */
3982 char opendir ();
3983 #ifdef F77_DUMMY_MAIN
3984 # ifdef __cplusplus
3985 extern "C"
3986 # endif
3987 int F77_DUMMY_MAIN() { return 1; }
3988 #endif
3990 main ()
3992 opendir ();
3994 return 0;
3996 _ACEOF
3997 rm -f conftest.$ac_objext conftest$ac_exeext
3998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3999 (eval $ac_link) 2>&5
4000 ac_status=$?
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); } &&
4003 { ac_try='test -s conftest$ac_exeext'
4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005 (eval $ac_try) 2>&5
4006 ac_status=$?
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; }; then
4009 ac_cv_search_opendir="-l$ac_lib"
4010 break
4011 else
4012 echo "$as_me: failed program was:" >&5
4013 cat conftest.$ac_ext >&5
4015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4016 done
4018 LIBS=$ac_func_search_save_LIBS
4020 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4021 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4022 if test "$ac_cv_search_opendir" != no; then
4023 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4029 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4030 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4031 if test "${ac_cv_header_time+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4033 else
4034 cat >conftest.$ac_ext <<_ACEOF
4035 #line $LINENO "configure"
4036 #include "confdefs.h"
4037 #include <sys/types.h>
4038 #include <sys/time.h>
4039 #include <time.h>
4041 #ifdef F77_DUMMY_MAIN
4042 # ifdef __cplusplus
4043 extern "C"
4044 # endif
4045 int F77_DUMMY_MAIN() { return 1; }
4046 #endif
4048 main ()
4050 if ((struct tm *) 0)
4051 return 0;
4053 return 0;
4055 _ACEOF
4056 rm -f conftest.$ac_objext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058 (eval $ac_compile) 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); } &&
4062 { ac_try='test -s conftest.$ac_objext'
4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 (eval $ac_try) 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; }; then
4068 ac_cv_header_time=yes
4069 else
4070 echo "$as_me: failed program was:" >&5
4071 cat conftest.$ac_ext >&5
4072 ac_cv_header_time=no
4074 rm -f conftest.$ac_objext conftest.$ac_ext
4076 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4077 echo "${ECHO_T}$ac_cv_header_time" >&6
4078 if test $ac_cv_header_time = yes; then
4080 cat >>confdefs.h <<\_ACEOF
4081 #define TIME_WITH_SYS_TIME 1
4082 _ACEOF
4086 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4087 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4088 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091 cat >conftest.$ac_ext <<_ACEOF
4092 #line $LINENO "configure"
4093 #include "confdefs.h"
4094 #include <sys/types.h>
4095 #include <sys/wait.h>
4096 #ifndef WEXITSTATUS
4097 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4098 #endif
4099 #ifndef WIFEXITED
4100 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4101 #endif
4103 #ifdef F77_DUMMY_MAIN
4104 # ifdef __cplusplus
4105 extern "C"
4106 # endif
4107 int F77_DUMMY_MAIN() { return 1; }
4108 #endif
4110 main ()
4112 int s;
4113 wait (&s);
4114 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4116 return 0;
4118 _ACEOF
4119 rm -f conftest.$ac_objext
4120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4121 (eval $ac_compile) 2>&5
4122 ac_status=$?
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try='test -s conftest.$ac_objext'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 (eval $ac_try) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
4131 ac_cv_header_sys_wait_h=yes
4132 else
4133 echo "$as_me: failed program was:" >&5
4134 cat conftest.$ac_ext >&5
4135 ac_cv_header_sys_wait_h=no
4137 rm -f conftest.$ac_objext conftest.$ac_ext
4139 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4140 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4141 if test $ac_cv_header_sys_wait_h = yes; then
4143 cat >>confdefs.h <<\_ACEOF
4144 #define HAVE_SYS_WAIT_H 1
4145 _ACEOF
4149 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4159 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4160 inttypes.h stdint.h unistd.h
4162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
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
4167 else
4168 cat >conftest.$ac_ext <<_ACEOF
4169 #line $LINENO "configure"
4170 #include "confdefs.h"
4171 $ac_includes_default
4173 #include <$ac_header>
4174 _ACEOF
4175 rm -f conftest.$ac_objext
4176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177 (eval $ac_compile) 2>&5
4178 ac_status=$?
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try='test -s conftest.$ac_objext'
4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183 (eval $ac_try) 2>&5
4184 ac_status=$?
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; }; then
4187 eval "$as_ac_Header=yes"
4188 else
4189 echo "$as_me: failed program was:" >&5
4190 cat conftest.$ac_ext >&5
4191 eval "$as_ac_Header=no"
4193 rm -f conftest.$ac_objext conftest.$ac_ext
4195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4198 cat >>confdefs.h <<_ACEOF
4199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4200 _ACEOF
4204 done
4213 for ac_header in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
4215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4217 echo "$as_me:$LINENO: checking for $ac_header" >&5
4218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4224 else
4225 # Is the header compilable?
4226 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4227 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4228 cat >conftest.$ac_ext <<_ACEOF
4229 #line $LINENO "configure"
4230 #include "confdefs.h"
4231 $ac_includes_default
4232 #include <$ac_header>
4233 _ACEOF
4234 rm -f conftest.$ac_objext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4236 (eval $ac_compile) 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } &&
4240 { ac_try='test -s conftest.$ac_objext'
4241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242 (eval $ac_try) 2>&5
4243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4246 ac_header_compiler=yes
4247 else
4248 echo "$as_me: failed program was:" >&5
4249 cat conftest.$ac_ext >&5
4250 ac_header_compiler=no
4252 rm -f conftest.$ac_objext conftest.$ac_ext
4253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4254 echo "${ECHO_T}$ac_header_compiler" >&6
4256 # Is the header present?
4257 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4259 cat >conftest.$ac_ext <<_ACEOF
4260 #line $LINENO "configure"
4261 #include "confdefs.h"
4262 #include <$ac_header>
4263 _ACEOF
4264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4266 ac_status=$?
4267 egrep -v '^ *\+' conftest.er1 >conftest.err
4268 rm -f conftest.er1
4269 cat conftest.err >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } >/dev/null; then
4272 if test -s conftest.err; then
4273 ac_cpp_err=$ac_c_preproc_warn_flag
4274 else
4275 ac_cpp_err=
4277 else
4278 ac_cpp_err=yes
4280 if test -z "$ac_cpp_err"; then
4281 ac_header_preproc=yes
4282 else
4283 echo "$as_me: failed program was:" >&5
4284 cat conftest.$ac_ext >&5
4285 ac_header_preproc=no
4287 rm -f conftest.err conftest.$ac_ext
4288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4289 echo "${ECHO_T}$ac_header_preproc" >&6
4291 # So? What about this header?
4292 case $ac_header_compiler:$ac_header_preproc in
4293 yes:no )
4294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4298 no:yes )
4299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4305 esac
4306 echo "$as_me:$LINENO: checking for $ac_header" >&5
4307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311 eval "$as_ac_Header=$ac_header_preproc"
4313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4318 cat >>confdefs.h <<_ACEOF
4319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4320 _ACEOF
4324 done
4333 for ac_header in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
4335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4337 echo "$as_me:$LINENO: checking for $ac_header" >&5
4338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4344 else
4345 # Is the header compilable?
4346 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4348 cat >conftest.$ac_ext <<_ACEOF
4349 #line $LINENO "configure"
4350 #include "confdefs.h"
4351 $ac_includes_default
4352 #include <$ac_header>
4353 _ACEOF
4354 rm -f conftest.$ac_objext
4355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4356 (eval $ac_compile) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } &&
4360 { ac_try='test -s conftest.$ac_objext'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 (eval $ac_try) 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 ac_header_compiler=yes
4367 else
4368 echo "$as_me: failed program was:" >&5
4369 cat conftest.$ac_ext >&5
4370 ac_header_compiler=no
4372 rm -f conftest.$ac_objext conftest.$ac_ext
4373 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4374 echo "${ECHO_T}$ac_header_compiler" >&6
4376 # Is the header present?
4377 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4379 cat >conftest.$ac_ext <<_ACEOF
4380 #line $LINENO "configure"
4381 #include "confdefs.h"
4382 #include <$ac_header>
4383 _ACEOF
4384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4386 ac_status=$?
4387 egrep -v '^ *\+' conftest.er1 >conftest.err
4388 rm -f conftest.er1
4389 cat conftest.err >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } >/dev/null; then
4392 if test -s conftest.err; then
4393 ac_cpp_err=$ac_c_preproc_warn_flag
4394 else
4395 ac_cpp_err=
4397 else
4398 ac_cpp_err=yes
4400 if test -z "$ac_cpp_err"; then
4401 ac_header_preproc=yes
4402 else
4403 echo "$as_me: failed program was:" >&5
4404 cat conftest.$ac_ext >&5
4405 ac_header_preproc=no
4407 rm -f conftest.err conftest.$ac_ext
4408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4409 echo "${ECHO_T}$ac_header_preproc" >&6
4411 # So? What about this header?
4412 case $ac_header_compiler:$ac_header_preproc in
4413 yes:no )
4414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4418 no:yes )
4419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4420 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4422 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4425 esac
4426 echo "$as_me:$LINENO: checking for $ac_header" >&5
4427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431 eval "$as_ac_Header=$ac_header_preproc"
4433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4438 cat >>confdefs.h <<_ACEOF
4439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4440 _ACEOF
4444 done
4451 for ac_header in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
4453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4455 echo "$as_me:$LINENO: checking for $ac_header" >&5
4456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4462 else
4463 # Is the header compilable?
4464 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4466 cat >conftest.$ac_ext <<_ACEOF
4467 #line $LINENO "configure"
4468 #include "confdefs.h"
4469 $ac_includes_default
4470 #include <$ac_header>
4471 _ACEOF
4472 rm -f conftest.$ac_objext
4473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474 (eval $ac_compile) 2>&5
4475 ac_status=$?
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } &&
4478 { ac_try='test -s conftest.$ac_objext'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 (eval $ac_try) 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4484 ac_header_compiler=yes
4485 else
4486 echo "$as_me: failed program was:" >&5
4487 cat conftest.$ac_ext >&5
4488 ac_header_compiler=no
4490 rm -f conftest.$ac_objext conftest.$ac_ext
4491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4492 echo "${ECHO_T}$ac_header_compiler" >&6
4494 # Is the header present?
4495 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4497 cat >conftest.$ac_ext <<_ACEOF
4498 #line $LINENO "configure"
4499 #include "confdefs.h"
4500 #include <$ac_header>
4501 _ACEOF
4502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4504 ac_status=$?
4505 egrep -v '^ *\+' conftest.er1 >conftest.err
4506 rm -f conftest.er1
4507 cat conftest.err >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } >/dev/null; then
4510 if test -s conftest.err; then
4511 ac_cpp_err=$ac_c_preproc_warn_flag
4512 else
4513 ac_cpp_err=
4515 else
4516 ac_cpp_err=yes
4518 if test -z "$ac_cpp_err"; then
4519 ac_header_preproc=yes
4520 else
4521 echo "$as_me: failed program was:" >&5
4522 cat conftest.$ac_ext >&5
4523 ac_header_preproc=no
4525 rm -f conftest.err conftest.$ac_ext
4526 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4527 echo "${ECHO_T}$ac_header_preproc" >&6
4529 # So? What about this header?
4530 case $ac_header_compiler:$ac_header_preproc in
4531 yes:no )
4532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4536 no:yes )
4537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4543 esac
4544 echo "$as_me:$LINENO: checking for $ac_header" >&5
4545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549 eval "$as_ac_Header=$ac_header_preproc"
4551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4556 cat >>confdefs.h <<_ACEOF
4557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4558 _ACEOF
4562 done
4571 for ac_header in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
4573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4575 echo "$as_me:$LINENO: checking for $ac_header" >&5
4576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4582 else
4583 # Is the header compilable?
4584 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4585 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4586 cat >conftest.$ac_ext <<_ACEOF
4587 #line $LINENO "configure"
4588 #include "confdefs.h"
4589 $ac_includes_default
4590 #include <$ac_header>
4591 _ACEOF
4592 rm -f conftest.$ac_objext
4593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4594 (eval $ac_compile) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); } &&
4598 { ac_try='test -s conftest.$ac_objext'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 (eval $ac_try) 2>&5
4601 ac_status=$?
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4604 ac_header_compiler=yes
4605 else
4606 echo "$as_me: failed program was:" >&5
4607 cat conftest.$ac_ext >&5
4608 ac_header_compiler=no
4610 rm -f conftest.$ac_objext conftest.$ac_ext
4611 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4612 echo "${ECHO_T}$ac_header_compiler" >&6
4614 # Is the header present?
4615 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4617 cat >conftest.$ac_ext <<_ACEOF
4618 #line $LINENO "configure"
4619 #include "confdefs.h"
4620 #include <$ac_header>
4621 _ACEOF
4622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4624 ac_status=$?
4625 egrep -v '^ *\+' conftest.er1 >conftest.err
4626 rm -f conftest.er1
4627 cat conftest.err >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } >/dev/null; then
4630 if test -s conftest.err; then
4631 ac_cpp_err=$ac_c_preproc_warn_flag
4632 else
4633 ac_cpp_err=
4635 else
4636 ac_cpp_err=yes
4638 if test -z "$ac_cpp_err"; then
4639 ac_header_preproc=yes
4640 else
4641 echo "$as_me: failed program was:" >&5
4642 cat conftest.$ac_ext >&5
4643 ac_header_preproc=no
4645 rm -f conftest.err conftest.$ac_ext
4646 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4647 echo "${ECHO_T}$ac_header_preproc" >&6
4649 # So? What about this header?
4650 case $ac_header_compiler:$ac_header_preproc in
4651 yes:no )
4652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4656 no:yes )
4657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4660 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4663 esac
4664 echo "$as_me:$LINENO: checking for $ac_header" >&5
4665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669 eval "$as_ac_Header=$ac_header_preproc"
4671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4676 cat >>confdefs.h <<_ACEOF
4677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4678 _ACEOF
4682 done
4692 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
4694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4696 echo "$as_me:$LINENO: checking for $ac_header" >&5
4697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4703 else
4704 # Is the header compilable?
4705 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4707 cat >conftest.$ac_ext <<_ACEOF
4708 #line $LINENO "configure"
4709 #include "confdefs.h"
4710 $ac_includes_default
4711 #include <$ac_header>
4712 _ACEOF
4713 rm -f conftest.$ac_objext
4714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4715 (eval $ac_compile) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } &&
4719 { ac_try='test -s conftest.$ac_objext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 (eval $ac_try) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 ac_header_compiler=yes
4726 else
4727 echo "$as_me: failed program was:" >&5
4728 cat conftest.$ac_ext >&5
4729 ac_header_compiler=no
4731 rm -f conftest.$ac_objext conftest.$ac_ext
4732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4733 echo "${ECHO_T}$ac_header_compiler" >&6
4735 # Is the header present?
4736 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4738 cat >conftest.$ac_ext <<_ACEOF
4739 #line $LINENO "configure"
4740 #include "confdefs.h"
4741 #include <$ac_header>
4742 _ACEOF
4743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4745 ac_status=$?
4746 egrep -v '^ *\+' conftest.er1 >conftest.err
4747 rm -f conftest.er1
4748 cat conftest.err >&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } >/dev/null; then
4751 if test -s conftest.err; then
4752 ac_cpp_err=$ac_c_preproc_warn_flag
4753 else
4754 ac_cpp_err=
4756 else
4757 ac_cpp_err=yes
4759 if test -z "$ac_cpp_err"; then
4760 ac_header_preproc=yes
4761 else
4762 echo "$as_me: failed program was:" >&5
4763 cat conftest.$ac_ext >&5
4764 ac_header_preproc=no
4766 rm -f conftest.err conftest.$ac_ext
4767 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4768 echo "${ECHO_T}$ac_header_preproc" >&6
4770 # So? What about this header?
4771 case $ac_header_compiler:$ac_header_preproc in
4772 yes:no )
4773 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4777 no:yes )
4778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4784 esac
4785 echo "$as_me:$LINENO: checking for $ac_header" >&5
4786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790 eval "$as_ac_Header=$ac_header_preproc"
4792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4797 cat >>confdefs.h <<_ACEOF
4798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4799 _ACEOF
4803 done
4811 for ac_header in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
4813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4815 echo "$as_me:$LINENO: checking for $ac_header" >&5
4816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4822 else
4823 # Is the header compilable?
4824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4826 cat >conftest.$ac_ext <<_ACEOF
4827 #line $LINENO "configure"
4828 #include "confdefs.h"
4829 $ac_includes_default
4830 #include <$ac_header>
4831 _ACEOF
4832 rm -f conftest.$ac_objext
4833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4834 (eval $ac_compile) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } &&
4838 { ac_try='test -s conftest.$ac_objext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 ac_header_compiler=yes
4845 else
4846 echo "$as_me: failed program was:" >&5
4847 cat conftest.$ac_ext >&5
4848 ac_header_compiler=no
4850 rm -f conftest.$ac_objext conftest.$ac_ext
4851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4852 echo "${ECHO_T}$ac_header_compiler" >&6
4854 # Is the header present?
4855 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4857 cat >conftest.$ac_ext <<_ACEOF
4858 #line $LINENO "configure"
4859 #include "confdefs.h"
4860 #include <$ac_header>
4861 _ACEOF
4862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4864 ac_status=$?
4865 egrep -v '^ *\+' conftest.er1 >conftest.err
4866 rm -f conftest.er1
4867 cat conftest.err >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } >/dev/null; then
4870 if test -s conftest.err; then
4871 ac_cpp_err=$ac_c_preproc_warn_flag
4872 else
4873 ac_cpp_err=
4875 else
4876 ac_cpp_err=yes
4878 if test -z "$ac_cpp_err"; then
4879 ac_header_preproc=yes
4880 else
4881 echo "$as_me: failed program was:" >&5
4882 cat conftest.$ac_ext >&5
4883 ac_header_preproc=no
4885 rm -f conftest.err conftest.$ac_ext
4886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4887 echo "${ECHO_T}$ac_header_preproc" >&6
4889 # So? What about this header?
4890 case $ac_header_compiler:$ac_header_preproc in
4891 yes:no )
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4896 no:yes )
4897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4903 esac
4904 echo "$as_me:$LINENO: checking for $ac_header" >&5
4905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909 eval "$as_ac_Header=$ac_header_preproc"
4911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4916 cat >>confdefs.h <<_ACEOF
4917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4918 _ACEOF
4922 done
4930 for ac_header in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
4932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4934 echo "$as_me:$LINENO: checking for $ac_header" >&5
4935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4937 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4941 else
4942 # Is the header compilable?
4943 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4945 cat >conftest.$ac_ext <<_ACEOF
4946 #line $LINENO "configure"
4947 #include "confdefs.h"
4948 $ac_includes_default
4949 #include <$ac_header>
4950 _ACEOF
4951 rm -f conftest.$ac_objext
4952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4953 (eval $ac_compile) 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } &&
4957 { ac_try='test -s conftest.$ac_objext'
4958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959 (eval $ac_try) 2>&5
4960 ac_status=$?
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }; }; then
4963 ac_header_compiler=yes
4964 else
4965 echo "$as_me: failed program was:" >&5
4966 cat conftest.$ac_ext >&5
4967 ac_header_compiler=no
4969 rm -f conftest.$ac_objext conftest.$ac_ext
4970 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4971 echo "${ECHO_T}$ac_header_compiler" >&6
4973 # Is the header present?
4974 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4976 cat >conftest.$ac_ext <<_ACEOF
4977 #line $LINENO "configure"
4978 #include "confdefs.h"
4979 #include <$ac_header>
4980 _ACEOF
4981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4983 ac_status=$?
4984 egrep -v '^ *\+' conftest.er1 >conftest.err
4985 rm -f conftest.er1
4986 cat conftest.err >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } >/dev/null; then
4989 if test -s conftest.err; then
4990 ac_cpp_err=$ac_c_preproc_warn_flag
4991 else
4992 ac_cpp_err=
4994 else
4995 ac_cpp_err=yes
4997 if test -z "$ac_cpp_err"; then
4998 ac_header_preproc=yes
4999 else
5000 echo "$as_me: failed program was:" >&5
5001 cat conftest.$ac_ext >&5
5002 ac_header_preproc=no
5004 rm -f conftest.err conftest.$ac_ext
5005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5006 echo "${ECHO_T}$ac_header_preproc" >&6
5008 # So? What about this header?
5009 case $ac_header_compiler:$ac_header_preproc in
5010 yes:no )
5011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5015 no:yes )
5016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5022 esac
5023 echo "$as_me:$LINENO: checking for $ac_header" >&5
5024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028 eval "$as_ac_Header=$ac_header_preproc"
5030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5035 cat >>confdefs.h <<_ACEOF
5036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5037 _ACEOF
5041 done
5048 for ac_header in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
5050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5052 echo "$as_me:$LINENO: checking for $ac_header" >&5
5053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5059 else
5060 # Is the header compilable?
5061 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5063 cat >conftest.$ac_ext <<_ACEOF
5064 #line $LINENO "configure"
5065 #include "confdefs.h"
5066 $ac_includes_default
5067 #include <$ac_header>
5068 _ACEOF
5069 rm -f conftest.$ac_objext
5070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5071 (eval $ac_compile) 2>&5
5072 ac_status=$?
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } &&
5075 { ac_try='test -s conftest.$ac_objext'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 (eval $ac_try) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; }; then
5081 ac_header_compiler=yes
5082 else
5083 echo "$as_me: failed program was:" >&5
5084 cat conftest.$ac_ext >&5
5085 ac_header_compiler=no
5087 rm -f conftest.$ac_objext conftest.$ac_ext
5088 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5089 echo "${ECHO_T}$ac_header_compiler" >&6
5091 # Is the header present?
5092 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5094 cat >conftest.$ac_ext <<_ACEOF
5095 #line $LINENO "configure"
5096 #include "confdefs.h"
5097 #include <$ac_header>
5098 _ACEOF
5099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5101 ac_status=$?
5102 egrep -v '^ *\+' conftest.er1 >conftest.err
5103 rm -f conftest.er1
5104 cat conftest.err >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } >/dev/null; then
5107 if test -s conftest.err; then
5108 ac_cpp_err=$ac_c_preproc_warn_flag
5109 else
5110 ac_cpp_err=
5112 else
5113 ac_cpp_err=yes
5115 if test -z "$ac_cpp_err"; then
5116 ac_header_preproc=yes
5117 else
5118 echo "$as_me: failed program was:" >&5
5119 cat conftest.$ac_ext >&5
5120 ac_header_preproc=no
5122 rm -f conftest.err conftest.$ac_ext
5123 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5124 echo "${ECHO_T}$ac_header_preproc" >&6
5126 # So? What about this header?
5127 case $ac_header_compiler:$ac_header_preproc in
5128 yes:no )
5129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5133 no:yes )
5134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5140 esac
5141 echo "$as_me:$LINENO: checking for $ac_header" >&5
5142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146 eval "$as_ac_Header=$ac_header_preproc"
5148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5153 cat >>confdefs.h <<_ACEOF
5154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5155 _ACEOF
5159 done
5163 for ac_header in sys/syslog.h syslog.h
5165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5167 echo "$as_me:$LINENO: checking for $ac_header" >&5
5168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5174 else
5175 # Is the header compilable?
5176 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5177 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5178 cat >conftest.$ac_ext <<_ACEOF
5179 #line $LINENO "configure"
5180 #include "confdefs.h"
5181 $ac_includes_default
5182 #include <$ac_header>
5183 _ACEOF
5184 rm -f conftest.$ac_objext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5186 (eval $ac_compile) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } &&
5190 { ac_try='test -s conftest.$ac_objext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 (eval $ac_try) 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 ac_header_compiler=yes
5197 else
5198 echo "$as_me: failed program was:" >&5
5199 cat conftest.$ac_ext >&5
5200 ac_header_compiler=no
5202 rm -f conftest.$ac_objext conftest.$ac_ext
5203 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5204 echo "${ECHO_T}$ac_header_compiler" >&6
5206 # Is the header present?
5207 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5209 cat >conftest.$ac_ext <<_ACEOF
5210 #line $LINENO "configure"
5211 #include "confdefs.h"
5212 #include <$ac_header>
5213 _ACEOF
5214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5216 ac_status=$?
5217 egrep -v '^ *\+' conftest.er1 >conftest.err
5218 rm -f conftest.er1
5219 cat conftest.err >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } >/dev/null; then
5222 if test -s conftest.err; then
5223 ac_cpp_err=$ac_c_preproc_warn_flag
5224 else
5225 ac_cpp_err=
5227 else
5228 ac_cpp_err=yes
5230 if test -z "$ac_cpp_err"; then
5231 ac_header_preproc=yes
5232 else
5233 echo "$as_me: failed program was:" >&5
5234 cat conftest.$ac_ext >&5
5235 ac_header_preproc=no
5237 rm -f conftest.err conftest.$ac_ext
5238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5239 echo "${ECHO_T}$ac_header_preproc" >&6
5241 # So? What about this header?
5242 case $ac_header_compiler:$ac_header_preproc in
5243 yes:no )
5244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5248 no:yes )
5249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5255 esac
5256 echo "$as_me:$LINENO: checking for $ac_header" >&5
5257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 else
5261 eval "$as_ac_Header=$ac_header_preproc"
5263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5268 cat >>confdefs.h <<_ACEOF
5269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5270 _ACEOF
5274 done
5278 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
5279 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
5281 case "$host_os" in
5282 *hpux*)
5283 cat >conftest.$ac_ext <<_ACEOF
5284 #line $LINENO "configure"
5285 #include "confdefs.h"
5286 #include <shadow.h>
5287 #ifdef F77_DUMMY_MAIN
5288 # ifdef __cplusplus
5289 extern "C"
5290 # endif
5291 int F77_DUMMY_MAIN() { return 1; }
5292 #endif
5294 main ()
5296 struct spwd testme
5298 return 0;
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_cv_header_shadow_h=yes
5314 else
5315 echo "$as_me: failed program was:" >&5
5316 cat conftest.$ac_ext >&5
5317 ac_cv_header_shadow_h=no
5319 rm -f conftest.$ac_objext conftest.$ac_ext
5320 if test x"$ac_cv_header_shadow_h" = x"yes"; then
5322 cat >>confdefs.h <<\_ACEOF
5323 #define HAVE_SHADOW_H 1
5324 _ACEOF
5328 esac
5334 for ac_header in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
5336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5338 echo "$as_me:$LINENO: checking for $ac_header" >&5
5339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5345 else
5346 # Is the header compilable?
5347 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5349 cat >conftest.$ac_ext <<_ACEOF
5350 #line $LINENO "configure"
5351 #include "confdefs.h"
5352 $ac_includes_default
5353 #include <$ac_header>
5354 _ACEOF
5355 rm -f conftest.$ac_objext
5356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5357 (eval $ac_compile) 2>&5
5358 ac_status=$?
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } &&
5361 { ac_try='test -s conftest.$ac_objext'
5362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363 (eval $ac_try) 2>&5
5364 ac_status=$?
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; }; then
5367 ac_header_compiler=yes
5368 else
5369 echo "$as_me: failed program was:" >&5
5370 cat conftest.$ac_ext >&5
5371 ac_header_compiler=no
5373 rm -f conftest.$ac_objext conftest.$ac_ext
5374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5375 echo "${ECHO_T}$ac_header_compiler" >&6
5377 # Is the header present?
5378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5380 cat >conftest.$ac_ext <<_ACEOF
5381 #line $LINENO "configure"
5382 #include "confdefs.h"
5383 #include <$ac_header>
5384 _ACEOF
5385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5387 ac_status=$?
5388 egrep -v '^ *\+' conftest.er1 >conftest.err
5389 rm -f conftest.er1
5390 cat conftest.err >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } >/dev/null; then
5393 if test -s conftest.err; then
5394 ac_cpp_err=$ac_c_preproc_warn_flag
5395 else
5396 ac_cpp_err=
5398 else
5399 ac_cpp_err=yes
5401 if test -z "$ac_cpp_err"; then
5402 ac_header_preproc=yes
5403 else
5404 echo "$as_me: failed program was:" >&5
5405 cat conftest.$ac_ext >&5
5406 ac_header_preproc=no
5408 rm -f conftest.err conftest.$ac_ext
5409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5410 echo "${ECHO_T}$ac_header_preproc" >&6
5412 # So? What about this header?
5413 case $ac_header_compiler:$ac_header_preproc in
5414 yes:no )
5415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5419 no:yes )
5420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5423 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5426 esac
5427 echo "$as_me:$LINENO: checking for $ac_header" >&5
5428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432 eval "$as_ac_Header=$ac_header_preproc"
5434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5439 cat >>confdefs.h <<_ACEOF
5440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5441 _ACEOF
5445 done
5453 for ac_header in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
5455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5457 echo "$as_me:$LINENO: checking for $ac_header" >&5
5458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5464 else
5465 # Is the header compilable?
5466 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5468 cat >conftest.$ac_ext <<_ACEOF
5469 #line $LINENO "configure"
5470 #include "confdefs.h"
5471 $ac_includes_default
5472 #include <$ac_header>
5473 _ACEOF
5474 rm -f conftest.$ac_objext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5476 (eval $ac_compile) 2>&5
5477 ac_status=$?
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try='test -s conftest.$ac_objext'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 (eval $ac_try) 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; }; then
5486 ac_header_compiler=yes
5487 else
5488 echo "$as_me: failed program was:" >&5
5489 cat conftest.$ac_ext >&5
5490 ac_header_compiler=no
5492 rm -f conftest.$ac_objext conftest.$ac_ext
5493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5494 echo "${ECHO_T}$ac_header_compiler" >&6
5496 # Is the header present?
5497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5499 cat >conftest.$ac_ext <<_ACEOF
5500 #line $LINENO "configure"
5501 #include "confdefs.h"
5502 #include <$ac_header>
5503 _ACEOF
5504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5506 ac_status=$?
5507 egrep -v '^ *\+' conftest.er1 >conftest.err
5508 rm -f conftest.er1
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } >/dev/null; then
5512 if test -s conftest.err; then
5513 ac_cpp_err=$ac_c_preproc_warn_flag
5514 else
5515 ac_cpp_err=
5517 else
5518 ac_cpp_err=yes
5520 if test -z "$ac_cpp_err"; then
5521 ac_header_preproc=yes
5522 else
5523 echo "$as_me: failed program was:" >&5
5524 cat conftest.$ac_ext >&5
5525 ac_header_preproc=no
5527 rm -f conftest.err conftest.$ac_ext
5528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5529 echo "${ECHO_T}$ac_header_preproc" >&6
5531 # So? What about this header?
5532 case $ac_header_compiler:$ac_header_preproc in
5533 yes:no )
5534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5538 no:yes )
5539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5545 esac
5546 echo "$as_me:$LINENO: checking for $ac_header" >&5
5547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551 eval "$as_ac_Header=$ac_header_preproc"
5553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5558 cat >>confdefs.h <<_ACEOF
5559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5560 _ACEOF
5564 done
5568 for ac_header in stropts.h poll.h
5570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5572 echo "$as_me:$LINENO: checking for $ac_header" >&5
5573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5579 else
5580 # Is the header compilable?
5581 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5583 cat >conftest.$ac_ext <<_ACEOF
5584 #line $LINENO "configure"
5585 #include "confdefs.h"
5586 $ac_includes_default
5587 #include <$ac_header>
5588 _ACEOF
5589 rm -f conftest.$ac_objext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5591 (eval $ac_compile) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } &&
5595 { ac_try='test -s conftest.$ac_objext'
5596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597 (eval $ac_try) 2>&5
5598 ac_status=$?
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; }; then
5601 ac_header_compiler=yes
5602 else
5603 echo "$as_me: failed program was:" >&5
5604 cat conftest.$ac_ext >&5
5605 ac_header_compiler=no
5607 rm -f conftest.$ac_objext conftest.$ac_ext
5608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5609 echo "${ECHO_T}$ac_header_compiler" >&6
5611 # Is the header present?
5612 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5614 cat >conftest.$ac_ext <<_ACEOF
5615 #line $LINENO "configure"
5616 #include "confdefs.h"
5617 #include <$ac_header>
5618 _ACEOF
5619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5621 ac_status=$?
5622 egrep -v '^ *\+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } >/dev/null; then
5627 if test -s conftest.err; then
5628 ac_cpp_err=$ac_c_preproc_warn_flag
5629 else
5630 ac_cpp_err=
5632 else
5633 ac_cpp_err=yes
5635 if test -z "$ac_cpp_err"; then
5636 ac_header_preproc=yes
5637 else
5638 echo "$as_me: failed program was:" >&5
5639 cat conftest.$ac_ext >&5
5640 ac_header_preproc=no
5642 rm -f conftest.err conftest.$ac_ext
5643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5644 echo "${ECHO_T}$ac_header_preproc" >&6
5646 # So? What about this header?
5647 case $ac_header_compiler:$ac_header_preproc in
5648 yes:no )
5649 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5653 no:yes )
5654 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5655 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5656 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5657 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5660 esac
5661 echo "$as_me:$LINENO: checking for $ac_header" >&5
5662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 else
5666 eval "$as_ac_Header=$ac_header_preproc"
5668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5673 cat >>confdefs.h <<_ACEOF
5674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5675 _ACEOF
5679 done
5684 for ac_header in sys/capability.h syscall.h sys/syscall.h
5686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5688 echo "$as_me:$LINENO: checking for $ac_header" >&5
5689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5695 else
5696 # Is the header compilable?
5697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5699 cat >conftest.$ac_ext <<_ACEOF
5700 #line $LINENO "configure"
5701 #include "confdefs.h"
5702 $ac_includes_default
5703 #include <$ac_header>
5704 _ACEOF
5705 rm -f conftest.$ac_objext
5706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5707 (eval $ac_compile) 2>&5
5708 ac_status=$?
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } &&
5711 { ac_try='test -s conftest.$ac_objext'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5717 ac_header_compiler=yes
5718 else
5719 echo "$as_me: failed program was:" >&5
5720 cat conftest.$ac_ext >&5
5721 ac_header_compiler=no
5723 rm -f conftest.$ac_objext conftest.$ac_ext
5724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5725 echo "${ECHO_T}$ac_header_compiler" >&6
5727 # Is the header present?
5728 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5730 cat >conftest.$ac_ext <<_ACEOF
5731 #line $LINENO "configure"
5732 #include "confdefs.h"
5733 #include <$ac_header>
5734 _ACEOF
5735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5737 ac_status=$?
5738 egrep -v '^ *\+' conftest.er1 >conftest.err
5739 rm -f conftest.er1
5740 cat conftest.err >&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); } >/dev/null; then
5743 if test -s conftest.err; then
5744 ac_cpp_err=$ac_c_preproc_warn_flag
5745 else
5746 ac_cpp_err=
5748 else
5749 ac_cpp_err=yes
5751 if test -z "$ac_cpp_err"; then
5752 ac_header_preproc=yes
5753 else
5754 echo "$as_me: failed program was:" >&5
5755 cat conftest.$ac_ext >&5
5756 ac_header_preproc=no
5758 rm -f conftest.err conftest.$ac_ext
5759 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5760 echo "${ECHO_T}$ac_header_preproc" >&6
5762 # So? What about this header?
5763 case $ac_header_compiler:$ac_header_preproc in
5764 yes:no )
5765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5769 no:yes )
5770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5776 esac
5777 echo "$as_me:$LINENO: checking for $ac_header" >&5
5778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782 eval "$as_ac_Header=$ac_header_preproc"
5784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5789 cat >>confdefs.h <<_ACEOF
5790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5791 _ACEOF
5795 done
5800 for ac_header in sys/acl.h sys/cdefs.h glob.h
5802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5804 echo "$as_me:$LINENO: checking for $ac_header" >&5
5805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5811 else
5812 # Is the header compilable?
5813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5815 cat >conftest.$ac_ext <<_ACEOF
5816 #line $LINENO "configure"
5817 #include "confdefs.h"
5818 $ac_includes_default
5819 #include <$ac_header>
5820 _ACEOF
5821 rm -f conftest.$ac_objext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823 (eval $ac_compile) 2>&5
5824 ac_status=$?
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } &&
5827 { ac_try='test -s conftest.$ac_objext'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 (eval $ac_try) 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5833 ac_header_compiler=yes
5834 else
5835 echo "$as_me: failed program was:" >&5
5836 cat conftest.$ac_ext >&5
5837 ac_header_compiler=no
5839 rm -f conftest.$ac_objext conftest.$ac_ext
5840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5841 echo "${ECHO_T}$ac_header_compiler" >&6
5843 # Is the header present?
5844 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5846 cat >conftest.$ac_ext <<_ACEOF
5847 #line $LINENO "configure"
5848 #include "confdefs.h"
5849 #include <$ac_header>
5850 _ACEOF
5851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5853 ac_status=$?
5854 egrep -v '^ *\+' conftest.er1 >conftest.err
5855 rm -f conftest.er1
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } >/dev/null; then
5859 if test -s conftest.err; then
5860 ac_cpp_err=$ac_c_preproc_warn_flag
5861 else
5862 ac_cpp_err=
5864 else
5865 ac_cpp_err=yes
5867 if test -z "$ac_cpp_err"; then
5868 ac_header_preproc=yes
5869 else
5870 echo "$as_me: failed program was:" >&5
5871 cat conftest.$ac_ext >&5
5872 ac_header_preproc=no
5874 rm -f conftest.err conftest.$ac_ext
5875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5876 echo "${ECHO_T}$ac_header_preproc" >&6
5878 # So? What about this header?
5879 case $ac_header_compiler:$ac_header_preproc in
5880 yes:no )
5881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5885 no:yes )
5886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5892 esac
5893 echo "$as_me:$LINENO: checking for $ac_header" >&5
5894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898 eval "$as_ac_Header=$ac_header_preproc"
5900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5905 cat >>confdefs.h <<_ACEOF
5906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5907 _ACEOF
5911 done
5914 # For experimental utmp support (lastlog on some BSD-like systems)
5918 for ac_header in utmp.h utmpx.h lastlog.h
5920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5922 echo "$as_me:$LINENO: checking for $ac_header" >&5
5923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5929 else
5930 # Is the header compilable?
5931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5933 cat >conftest.$ac_ext <<_ACEOF
5934 #line $LINENO "configure"
5935 #include "confdefs.h"
5936 $ac_includes_default
5937 #include <$ac_header>
5938 _ACEOF
5939 rm -f conftest.$ac_objext
5940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5941 (eval $ac_compile) 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } &&
5945 { ac_try='test -s conftest.$ac_objext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 (eval $ac_try) 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 ac_header_compiler=yes
5952 else
5953 echo "$as_me: failed program was:" >&5
5954 cat conftest.$ac_ext >&5
5955 ac_header_compiler=no
5957 rm -f conftest.$ac_objext conftest.$ac_ext
5958 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5959 echo "${ECHO_T}$ac_header_compiler" >&6
5961 # Is the header present?
5962 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5964 cat >conftest.$ac_ext <<_ACEOF
5965 #line $LINENO "configure"
5966 #include "confdefs.h"
5967 #include <$ac_header>
5968 _ACEOF
5969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5971 ac_status=$?
5972 egrep -v '^ *\+' conftest.er1 >conftest.err
5973 rm -f conftest.er1
5974 cat conftest.err >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } >/dev/null; then
5977 if test -s conftest.err; then
5978 ac_cpp_err=$ac_c_preproc_warn_flag
5979 else
5980 ac_cpp_err=
5982 else
5983 ac_cpp_err=yes
5985 if test -z "$ac_cpp_err"; then
5986 ac_header_preproc=yes
5987 else
5988 echo "$as_me: failed program was:" >&5
5989 cat conftest.$ac_ext >&5
5990 ac_header_preproc=no
5992 rm -f conftest.err conftest.$ac_ext
5993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5994 echo "${ECHO_T}$ac_header_preproc" >&6
5996 # So? What about this header?
5997 case $ac_header_compiler:$ac_header_preproc in
5998 yes:no )
5999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6003 no:yes )
6004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6007 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6010 esac
6011 echo "$as_me:$LINENO: checking for $ac_header" >&5
6012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016 eval "$as_ac_Header=$ac_header_preproc"
6018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6023 cat >>confdefs.h <<_ACEOF
6024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6025 _ACEOF
6029 done
6032 # For quotas on Veritas VxFS filesystems
6034 for ac_header in sys/fs/vx_quota.h
6036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6038 echo "$as_me:$LINENO: checking for $ac_header" >&5
6039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6045 else
6046 # Is the header compilable?
6047 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6049 cat >conftest.$ac_ext <<_ACEOF
6050 #line $LINENO "configure"
6051 #include "confdefs.h"
6052 $ac_includes_default
6053 #include <$ac_header>
6054 _ACEOF
6055 rm -f conftest.$ac_objext
6056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6057 (eval $ac_compile) 2>&5
6058 ac_status=$?
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); } &&
6061 { ac_try='test -s conftest.$ac_objext'
6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063 (eval $ac_try) 2>&5
6064 ac_status=$?
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; }; then
6067 ac_header_compiler=yes
6068 else
6069 echo "$as_me: failed program was:" >&5
6070 cat conftest.$ac_ext >&5
6071 ac_header_compiler=no
6073 rm -f conftest.$ac_objext conftest.$ac_ext
6074 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6075 echo "${ECHO_T}$ac_header_compiler" >&6
6077 # Is the header present?
6078 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6080 cat >conftest.$ac_ext <<_ACEOF
6081 #line $LINENO "configure"
6082 #include "confdefs.h"
6083 #include <$ac_header>
6084 _ACEOF
6085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6087 ac_status=$?
6088 egrep -v '^ *\+' conftest.er1 >conftest.err
6089 rm -f conftest.er1
6090 cat conftest.err >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } >/dev/null; then
6093 if test -s conftest.err; then
6094 ac_cpp_err=$ac_c_preproc_warn_flag
6095 else
6096 ac_cpp_err=
6098 else
6099 ac_cpp_err=yes
6101 if test -z "$ac_cpp_err"; then
6102 ac_header_preproc=yes
6103 else
6104 echo "$as_me: failed program was:" >&5
6105 cat conftest.$ac_ext >&5
6106 ac_header_preproc=no
6108 rm -f conftest.err conftest.$ac_ext
6109 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6110 echo "${ECHO_T}$ac_header_preproc" >&6
6112 # So? What about this header?
6113 case $ac_header_compiler:$ac_header_preproc in
6114 yes:no )
6115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6119 no:yes )
6120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6126 esac
6127 echo "$as_me:$LINENO: checking for $ac_header" >&5
6128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132 eval "$as_ac_Header=$ac_header_preproc"
6134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6139 cat >>confdefs.h <<_ACEOF
6140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6141 _ACEOF
6145 done
6148 # For quotas on Linux XFS filesystems
6150 for ac_header in linux/xqm.h
6152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6154 echo "$as_me:$LINENO: checking for $ac_header" >&5
6155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6161 else
6162 # Is the header compilable?
6163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6165 cat >conftest.$ac_ext <<_ACEOF
6166 #line $LINENO "configure"
6167 #include "confdefs.h"
6168 $ac_includes_default
6169 #include <$ac_header>
6170 _ACEOF
6171 rm -f conftest.$ac_objext
6172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6173 (eval $ac_compile) 2>&5
6174 ac_status=$?
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } &&
6177 { ac_try='test -s conftest.$ac_objext'
6178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179 (eval $ac_try) 2>&5
6180 ac_status=$?
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; }; then
6183 ac_header_compiler=yes
6184 else
6185 echo "$as_me: failed program was:" >&5
6186 cat conftest.$ac_ext >&5
6187 ac_header_compiler=no
6189 rm -f conftest.$ac_objext conftest.$ac_ext
6190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6191 echo "${ECHO_T}$ac_header_compiler" >&6
6193 # Is the header present?
6194 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6196 cat >conftest.$ac_ext <<_ACEOF
6197 #line $LINENO "configure"
6198 #include "confdefs.h"
6199 #include <$ac_header>
6200 _ACEOF
6201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6203 ac_status=$?
6204 egrep -v '^ *\+' conftest.er1 >conftest.err
6205 rm -f conftest.er1
6206 cat conftest.err >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } >/dev/null; then
6209 if test -s conftest.err; then
6210 ac_cpp_err=$ac_c_preproc_warn_flag
6211 else
6212 ac_cpp_err=
6214 else
6215 ac_cpp_err=yes
6217 if test -z "$ac_cpp_err"; then
6218 ac_header_preproc=yes
6219 else
6220 echo "$as_me: failed program was:" >&5
6221 cat conftest.$ac_ext >&5
6222 ac_header_preproc=no
6224 rm -f conftest.err conftest.$ac_ext
6225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6226 echo "${ECHO_T}$ac_header_preproc" >&6
6228 # So? What about this header?
6229 case $ac_header_compiler:$ac_header_preproc in
6230 yes:no )
6231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6235 no:yes )
6236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6239 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6242 esac
6243 echo "$as_me:$LINENO: checking for $ac_header" >&5
6244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 else
6248 eval "$as_ac_Header=$ac_header_preproc"
6250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6255 cat >>confdefs.h <<_ACEOF
6256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6257 _ACEOF
6261 done
6264 for ac_header in xfs/xqm.h
6266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6268 echo "$as_me:$LINENO: checking for $ac_header" >&5
6269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6275 else
6276 # Is the header compilable?
6277 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6279 cat >conftest.$ac_ext <<_ACEOF
6280 #line $LINENO "configure"
6281 #include "confdefs.h"
6282 $ac_includes_default
6283 #include <$ac_header>
6284 _ACEOF
6285 rm -f conftest.$ac_objext
6286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6287 (eval $ac_compile) 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } &&
6291 { ac_try='test -s conftest.$ac_objext'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 (eval $ac_try) 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; }; then
6297 ac_header_compiler=yes
6298 else
6299 echo "$as_me: failed program was:" >&5
6300 cat conftest.$ac_ext >&5
6301 ac_header_compiler=no
6303 rm -f conftest.$ac_objext conftest.$ac_ext
6304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6305 echo "${ECHO_T}$ac_header_compiler" >&6
6307 # Is the header present?
6308 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6310 cat >conftest.$ac_ext <<_ACEOF
6311 #line $LINENO "configure"
6312 #include "confdefs.h"
6313 #include <$ac_header>
6314 _ACEOF
6315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6317 ac_status=$?
6318 egrep -v '^ *\+' conftest.er1 >conftest.err
6319 rm -f conftest.er1
6320 cat conftest.err >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } >/dev/null; then
6323 if test -s conftest.err; then
6324 ac_cpp_err=$ac_c_preproc_warn_flag
6325 else
6326 ac_cpp_err=
6328 else
6329 ac_cpp_err=yes
6331 if test -z "$ac_cpp_err"; then
6332 ac_header_preproc=yes
6333 else
6334 echo "$as_me: failed program was:" >&5
6335 cat conftest.$ac_ext >&5
6336 ac_header_preproc=no
6338 rm -f conftest.err conftest.$ac_ext
6339 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6340 echo "${ECHO_T}$ac_header_preproc" >&6
6342 # So? What about this header?
6343 case $ac_header_compiler:$ac_header_preproc in
6344 yes:no )
6345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6349 no:yes )
6350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6356 esac
6357 echo "$as_me:$LINENO: checking for $ac_header" >&5
6358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 else
6362 eval "$as_ac_Header=$ac_header_preproc"
6364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6369 cat >>confdefs.h <<_ACEOF
6370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6371 _ACEOF
6375 done
6378 echo "$as_me:$LINENO: checking for int" >&5
6379 echo $ECHO_N "checking for int... $ECHO_C" >&6
6380 if test "${ac_cv_type_int+set}" = set; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6382 else
6383 cat >conftest.$ac_ext <<_ACEOF
6384 #line $LINENO "configure"
6385 #include "confdefs.h"
6386 $ac_includes_default
6387 #ifdef F77_DUMMY_MAIN
6388 # ifdef __cplusplus
6389 extern "C"
6390 # endif
6391 int F77_DUMMY_MAIN() { return 1; }
6392 #endif
6394 main ()
6396 if ((int *) 0)
6397 return 0;
6398 if (sizeof (int))
6399 return 0;
6401 return 0;
6403 _ACEOF
6404 rm -f conftest.$ac_objext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406 (eval $ac_compile) 2>&5
6407 ac_status=$?
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } &&
6410 { ac_try='test -s conftest.$ac_objext'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 (eval $ac_try) 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
6416 ac_cv_type_int=yes
6417 else
6418 echo "$as_me: failed program was:" >&5
6419 cat conftest.$ac_ext >&5
6420 ac_cv_type_int=no
6422 rm -f conftest.$ac_objext conftest.$ac_ext
6424 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6425 echo "${ECHO_T}$ac_cv_type_int" >&6
6427 echo "$as_me:$LINENO: checking size of int" >&5
6428 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6429 if test "${ac_cv_sizeof_int+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 else
6432 if test "$ac_cv_type_int" = yes; then
6433 # The cast to unsigned long works around a bug in the HP C Compiler
6434 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6435 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6436 # This bug is HP SR number 8606223364.
6437 if test "$cross_compiling" = yes; then
6438 # Depending upon the size, compute the lo and hi bounds.
6439 cat >conftest.$ac_ext <<_ACEOF
6440 #line $LINENO "configure"
6441 #include "confdefs.h"
6442 $ac_includes_default
6443 #ifdef F77_DUMMY_MAIN
6444 # ifdef __cplusplus
6445 extern "C"
6446 # endif
6447 int F77_DUMMY_MAIN() { return 1; }
6448 #endif
6450 main ()
6452 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6453 test_array [0] = 0
6456 return 0;
6458 _ACEOF
6459 rm -f conftest.$ac_objext
6460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6461 (eval $ac_compile) 2>&5
6462 ac_status=$?
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } &&
6465 { ac_try='test -s conftest.$ac_objext'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 (eval $ac_try) 2>&5
6468 ac_status=$?
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; }; then
6471 ac_lo=0 ac_mid=0
6472 while :; do
6473 cat >conftest.$ac_ext <<_ACEOF
6474 #line $LINENO "configure"
6475 #include "confdefs.h"
6476 $ac_includes_default
6477 #ifdef F77_DUMMY_MAIN
6478 # ifdef __cplusplus
6479 extern "C"
6480 # endif
6481 int F77_DUMMY_MAIN() { return 1; }
6482 #endif
6484 main ()
6486 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6487 test_array [0] = 0
6490 return 0;
6492 _ACEOF
6493 rm -f conftest.$ac_objext
6494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6495 (eval $ac_compile) 2>&5
6496 ac_status=$?
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } &&
6499 { ac_try='test -s conftest.$ac_objext'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 (eval $ac_try) 2>&5
6502 ac_status=$?
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; }; then
6505 ac_hi=$ac_mid; break
6506 else
6507 echo "$as_me: failed program was:" >&5
6508 cat conftest.$ac_ext >&5
6509 ac_lo=`expr $ac_mid + 1`
6510 if test $ac_lo -le $ac_mid; then
6511 ac_lo= ac_hi=
6512 break
6514 ac_mid=`expr 2 '*' $ac_mid + 1`
6516 rm -f conftest.$ac_objext conftest.$ac_ext
6517 done
6518 else
6519 echo "$as_me: failed program was:" >&5
6520 cat conftest.$ac_ext >&5
6521 cat >conftest.$ac_ext <<_ACEOF
6522 #line $LINENO "configure"
6523 #include "confdefs.h"
6524 $ac_includes_default
6525 #ifdef F77_DUMMY_MAIN
6526 # ifdef __cplusplus
6527 extern "C"
6528 # endif
6529 int F77_DUMMY_MAIN() { return 1; }
6530 #endif
6532 main ()
6534 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6535 test_array [0] = 0
6538 return 0;
6540 _ACEOF
6541 rm -f conftest.$ac_objext
6542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6543 (eval $ac_compile) 2>&5
6544 ac_status=$?
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } &&
6547 { ac_try='test -s conftest.$ac_objext'
6548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549 (eval $ac_try) 2>&5
6550 ac_status=$?
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); }; }; then
6553 ac_hi=-1 ac_mid=-1
6554 while :; do
6555 cat >conftest.$ac_ext <<_ACEOF
6556 #line $LINENO "configure"
6557 #include "confdefs.h"
6558 $ac_includes_default
6559 #ifdef F77_DUMMY_MAIN
6560 # ifdef __cplusplus
6561 extern "C"
6562 # endif
6563 int F77_DUMMY_MAIN() { return 1; }
6564 #endif
6566 main ()
6568 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6569 test_array [0] = 0
6572 return 0;
6574 _ACEOF
6575 rm -f conftest.$ac_objext
6576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6577 (eval $ac_compile) 2>&5
6578 ac_status=$?
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); } &&
6581 { ac_try='test -s conftest.$ac_objext'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583 (eval $ac_try) 2>&5
6584 ac_status=$?
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; }; then
6587 ac_lo=$ac_mid; break
6588 else
6589 echo "$as_me: failed program was:" >&5
6590 cat conftest.$ac_ext >&5
6591 ac_hi=`expr '(' $ac_mid ')' - 1`
6592 if test $ac_mid -le $ac_hi; then
6593 ac_lo= ac_hi=
6594 break
6596 ac_mid=`expr 2 '*' $ac_mid`
6598 rm -f conftest.$ac_objext conftest.$ac_ext
6599 done
6600 else
6601 echo "$as_me: failed program was:" >&5
6602 cat conftest.$ac_ext >&5
6603 ac_lo= ac_hi=
6605 rm -f conftest.$ac_objext conftest.$ac_ext
6607 rm -f conftest.$ac_objext conftest.$ac_ext
6608 # Binary search between lo and hi bounds.
6609 while test "x$ac_lo" != "x$ac_hi"; do
6610 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6611 cat >conftest.$ac_ext <<_ACEOF
6612 #line $LINENO "configure"
6613 #include "confdefs.h"
6614 $ac_includes_default
6615 #ifdef F77_DUMMY_MAIN
6616 # ifdef __cplusplus
6617 extern "C"
6618 # endif
6619 int F77_DUMMY_MAIN() { return 1; }
6620 #endif
6622 main ()
6624 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6625 test_array [0] = 0
6628 return 0;
6630 _ACEOF
6631 rm -f conftest.$ac_objext
6632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6633 (eval $ac_compile) 2>&5
6634 ac_status=$?
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } &&
6637 { ac_try='test -s conftest.$ac_objext'
6638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 (eval $ac_try) 2>&5
6640 ac_status=$?
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); }; }; then
6643 ac_hi=$ac_mid
6644 else
6645 echo "$as_me: failed program was:" >&5
6646 cat conftest.$ac_ext >&5
6647 ac_lo=`expr '(' $ac_mid ')' + 1`
6649 rm -f conftest.$ac_objext conftest.$ac_ext
6650 done
6651 case $ac_lo in
6652 ?*) ac_cv_sizeof_int=$ac_lo;;
6653 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6654 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6655 { (exit 1); exit 1; }; } ;;
6656 esac
6657 else
6658 if test "$cross_compiling" = yes; then
6659 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6660 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6661 { (exit 1); exit 1; }; }
6662 else
6663 cat >conftest.$ac_ext <<_ACEOF
6664 #line $LINENO "configure"
6665 #include "confdefs.h"
6666 $ac_includes_default
6667 long longval () { return (long) (sizeof (int)); }
6668 unsigned long ulongval () { return (long) (sizeof (int)); }
6669 #include <stdio.h>
6670 #include <stdlib.h>
6671 #ifdef F77_DUMMY_MAIN
6672 # ifdef __cplusplus
6673 extern "C"
6674 # endif
6675 int F77_DUMMY_MAIN() { return 1; }
6676 #endif
6678 main ()
6681 FILE *f = fopen ("conftest.val", "w");
6682 if (! f)
6683 exit (1);
6684 if (((long) (sizeof (int))) < 0)
6686 long i = longval ();
6687 if (i != ((long) (sizeof (int))))
6688 exit (1);
6689 fprintf (f, "%ld\n", i);
6691 else
6693 unsigned long i = ulongval ();
6694 if (i != ((long) (sizeof (int))))
6695 exit (1);
6696 fprintf (f, "%lu\n", i);
6698 exit (ferror (f) || fclose (f) != 0);
6701 return 0;
6703 _ACEOF
6704 rm -f conftest$ac_exeext
6705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6706 (eval $ac_link) 2>&5
6707 ac_status=$?
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 (eval $ac_try) 2>&5
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6715 ac_cv_sizeof_int=`cat conftest.val`
6716 else
6717 echo "$as_me: program exited with status $ac_status" >&5
6718 echo "$as_me: failed program was:" >&5
6719 cat conftest.$ac_ext >&5
6720 ( exit $ac_status )
6721 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6722 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6723 { (exit 1); exit 1; }; }
6725 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6728 rm -f conftest.val
6729 else
6730 ac_cv_sizeof_int=0
6733 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6734 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6735 cat >>confdefs.h <<_ACEOF
6736 #define SIZEOF_INT $ac_cv_sizeof_int
6737 _ACEOF
6740 echo "$as_me:$LINENO: checking for long" >&5
6741 echo $ECHO_N "checking for long... $ECHO_C" >&6
6742 if test "${ac_cv_type_long+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 else
6745 cat >conftest.$ac_ext <<_ACEOF
6746 #line $LINENO "configure"
6747 #include "confdefs.h"
6748 $ac_includes_default
6749 #ifdef F77_DUMMY_MAIN
6750 # ifdef __cplusplus
6751 extern "C"
6752 # endif
6753 int F77_DUMMY_MAIN() { return 1; }
6754 #endif
6756 main ()
6758 if ((long *) 0)
6759 return 0;
6760 if (sizeof (long))
6761 return 0;
6763 return 0;
6765 _ACEOF
6766 rm -f conftest.$ac_objext
6767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6768 (eval $ac_compile) 2>&5
6769 ac_status=$?
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); } &&
6772 { ac_try='test -s conftest.$ac_objext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 (eval $ac_try) 2>&5
6775 ac_status=$?
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 ac_cv_type_long=yes
6779 else
6780 echo "$as_me: failed program was:" >&5
6781 cat conftest.$ac_ext >&5
6782 ac_cv_type_long=no
6784 rm -f conftest.$ac_objext conftest.$ac_ext
6786 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6787 echo "${ECHO_T}$ac_cv_type_long" >&6
6789 echo "$as_me:$LINENO: checking size of long" >&5
6790 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6791 if test "${ac_cv_sizeof_long+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794 if test "$ac_cv_type_long" = yes; then
6795 # The cast to unsigned long works around a bug in the HP C Compiler
6796 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6797 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6798 # This bug is HP SR number 8606223364.
6799 if test "$cross_compiling" = yes; then
6800 # Depending upon the size, compute the lo and hi bounds.
6801 cat >conftest.$ac_ext <<_ACEOF
6802 #line $LINENO "configure"
6803 #include "confdefs.h"
6804 $ac_includes_default
6805 #ifdef F77_DUMMY_MAIN
6806 # ifdef __cplusplus
6807 extern "C"
6808 # endif
6809 int F77_DUMMY_MAIN() { return 1; }
6810 #endif
6812 main ()
6814 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6815 test_array [0] = 0
6818 return 0;
6820 _ACEOF
6821 rm -f conftest.$ac_objext
6822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6823 (eval $ac_compile) 2>&5
6824 ac_status=$?
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } &&
6827 { ac_try='test -s conftest.$ac_objext'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 (eval $ac_try) 2>&5
6830 ac_status=$?
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; }; then
6833 ac_lo=0 ac_mid=0
6834 while :; do
6835 cat >conftest.$ac_ext <<_ACEOF
6836 #line $LINENO "configure"
6837 #include "confdefs.h"
6838 $ac_includes_default
6839 #ifdef F77_DUMMY_MAIN
6840 # ifdef __cplusplus
6841 extern "C"
6842 # endif
6843 int F77_DUMMY_MAIN() { return 1; }
6844 #endif
6846 main ()
6848 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6849 test_array [0] = 0
6852 return 0;
6854 _ACEOF
6855 rm -f conftest.$ac_objext
6856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6857 (eval $ac_compile) 2>&5
6858 ac_status=$?
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); } &&
6861 { ac_try='test -s conftest.$ac_objext'
6862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6863 (eval $ac_try) 2>&5
6864 ac_status=$?
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); }; }; then
6867 ac_hi=$ac_mid; break
6868 else
6869 echo "$as_me: failed program was:" >&5
6870 cat conftest.$ac_ext >&5
6871 ac_lo=`expr $ac_mid + 1`
6872 if test $ac_lo -le $ac_mid; then
6873 ac_lo= ac_hi=
6874 break
6876 ac_mid=`expr 2 '*' $ac_mid + 1`
6878 rm -f conftest.$ac_objext conftest.$ac_ext
6879 done
6880 else
6881 echo "$as_me: failed program was:" >&5
6882 cat conftest.$ac_ext >&5
6883 cat >conftest.$ac_ext <<_ACEOF
6884 #line $LINENO "configure"
6885 #include "confdefs.h"
6886 $ac_includes_default
6887 #ifdef F77_DUMMY_MAIN
6888 # ifdef __cplusplus
6889 extern "C"
6890 # endif
6891 int F77_DUMMY_MAIN() { return 1; }
6892 #endif
6894 main ()
6896 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6897 test_array [0] = 0
6900 return 0;
6902 _ACEOF
6903 rm -f conftest.$ac_objext
6904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6905 (eval $ac_compile) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } &&
6909 { ac_try='test -s conftest.$ac_objext'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 (eval $ac_try) 2>&5
6912 ac_status=$?
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; }; then
6915 ac_hi=-1 ac_mid=-1
6916 while :; do
6917 cat >conftest.$ac_ext <<_ACEOF
6918 #line $LINENO "configure"
6919 #include "confdefs.h"
6920 $ac_includes_default
6921 #ifdef F77_DUMMY_MAIN
6922 # ifdef __cplusplus
6923 extern "C"
6924 # endif
6925 int F77_DUMMY_MAIN() { return 1; }
6926 #endif
6928 main ()
6930 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6931 test_array [0] = 0
6934 return 0;
6936 _ACEOF
6937 rm -f conftest.$ac_objext
6938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6939 (eval $ac_compile) 2>&5
6940 ac_status=$?
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } &&
6943 { ac_try='test -s conftest.$ac_objext'
6944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 (eval $ac_try) 2>&5
6946 ac_status=$?
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); }; }; then
6949 ac_lo=$ac_mid; break
6950 else
6951 echo "$as_me: failed program was:" >&5
6952 cat conftest.$ac_ext >&5
6953 ac_hi=`expr '(' $ac_mid ')' - 1`
6954 if test $ac_mid -le $ac_hi; then
6955 ac_lo= ac_hi=
6956 break
6958 ac_mid=`expr 2 '*' $ac_mid`
6960 rm -f conftest.$ac_objext conftest.$ac_ext
6961 done
6962 else
6963 echo "$as_me: failed program was:" >&5
6964 cat conftest.$ac_ext >&5
6965 ac_lo= ac_hi=
6967 rm -f conftest.$ac_objext conftest.$ac_ext
6969 rm -f conftest.$ac_objext conftest.$ac_ext
6970 # Binary search between lo and hi bounds.
6971 while test "x$ac_lo" != "x$ac_hi"; do
6972 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6973 cat >conftest.$ac_ext <<_ACEOF
6974 #line $LINENO "configure"
6975 #include "confdefs.h"
6976 $ac_includes_default
6977 #ifdef F77_DUMMY_MAIN
6978 # ifdef __cplusplus
6979 extern "C"
6980 # endif
6981 int F77_DUMMY_MAIN() { return 1; }
6982 #endif
6984 main ()
6986 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6987 test_array [0] = 0
6990 return 0;
6992 _ACEOF
6993 rm -f conftest.$ac_objext
6994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6995 (eval $ac_compile) 2>&5
6996 ac_status=$?
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); } &&
6999 { ac_try='test -s conftest.$ac_objext'
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 (eval $ac_try) 2>&5
7002 ac_status=$?
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; }; then
7005 ac_hi=$ac_mid
7006 else
7007 echo "$as_me: failed program was:" >&5
7008 cat conftest.$ac_ext >&5
7009 ac_lo=`expr '(' $ac_mid ')' + 1`
7011 rm -f conftest.$ac_objext conftest.$ac_ext
7012 done
7013 case $ac_lo in
7014 ?*) ac_cv_sizeof_long=$ac_lo;;
7015 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
7016 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
7017 { (exit 1); exit 1; }; } ;;
7018 esac
7019 else
7020 if test "$cross_compiling" = yes; then
7021 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7022 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7023 { (exit 1); exit 1; }; }
7024 else
7025 cat >conftest.$ac_ext <<_ACEOF
7026 #line $LINENO "configure"
7027 #include "confdefs.h"
7028 $ac_includes_default
7029 long longval () { return (long) (sizeof (long)); }
7030 unsigned long ulongval () { return (long) (sizeof (long)); }
7031 #include <stdio.h>
7032 #include <stdlib.h>
7033 #ifdef F77_DUMMY_MAIN
7034 # ifdef __cplusplus
7035 extern "C"
7036 # endif
7037 int F77_DUMMY_MAIN() { return 1; }
7038 #endif
7040 main ()
7043 FILE *f = fopen ("conftest.val", "w");
7044 if (! f)
7045 exit (1);
7046 if (((long) (sizeof (long))) < 0)
7048 long i = longval ();
7049 if (i != ((long) (sizeof (long))))
7050 exit (1);
7051 fprintf (f, "%ld\n", i);
7053 else
7055 unsigned long i = ulongval ();
7056 if (i != ((long) (sizeof (long))))
7057 exit (1);
7058 fprintf (f, "%lu\n", i);
7060 exit (ferror (f) || fclose (f) != 0);
7063 return 0;
7065 _ACEOF
7066 rm -f conftest$ac_exeext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7068 (eval $ac_link) 2>&5
7069 ac_status=$?
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 (eval $ac_try) 2>&5
7074 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then
7077 ac_cv_sizeof_long=`cat conftest.val`
7078 else
7079 echo "$as_me: program exited with status $ac_status" >&5
7080 echo "$as_me: failed program was:" >&5
7081 cat conftest.$ac_ext >&5
7082 ( exit $ac_status )
7083 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
7084 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
7085 { (exit 1); exit 1; }; }
7087 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7090 rm -f conftest.val
7091 else
7092 ac_cv_sizeof_long=0
7095 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7096 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7097 cat >>confdefs.h <<_ACEOF
7098 #define SIZEOF_LONG $ac_cv_sizeof_long
7099 _ACEOF
7102 echo "$as_me:$LINENO: checking for short" >&5
7103 echo $ECHO_N "checking for short... $ECHO_C" >&6
7104 if test "${ac_cv_type_short+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107 cat >conftest.$ac_ext <<_ACEOF
7108 #line $LINENO "configure"
7109 #include "confdefs.h"
7110 $ac_includes_default
7111 #ifdef F77_DUMMY_MAIN
7112 # ifdef __cplusplus
7113 extern "C"
7114 # endif
7115 int F77_DUMMY_MAIN() { return 1; }
7116 #endif
7118 main ()
7120 if ((short *) 0)
7121 return 0;
7122 if (sizeof (short))
7123 return 0;
7125 return 0;
7127 _ACEOF
7128 rm -f conftest.$ac_objext
7129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7130 (eval $ac_compile) 2>&5
7131 ac_status=$?
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } &&
7134 { ac_try='test -s conftest.$ac_objext'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136 (eval $ac_try) 2>&5
7137 ac_status=$?
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; }; then
7140 ac_cv_type_short=yes
7141 else
7142 echo "$as_me: failed program was:" >&5
7143 cat conftest.$ac_ext >&5
7144 ac_cv_type_short=no
7146 rm -f conftest.$ac_objext conftest.$ac_ext
7148 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7149 echo "${ECHO_T}$ac_cv_type_short" >&6
7151 echo "$as_me:$LINENO: checking size of short" >&5
7152 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7153 if test "${ac_cv_sizeof_short+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7155 else
7156 if test "$ac_cv_type_short" = yes; then
7157 # The cast to unsigned long works around a bug in the HP C Compiler
7158 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7159 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7160 # This bug is HP SR number 8606223364.
7161 if test "$cross_compiling" = yes; then
7162 # Depending upon the size, compute the lo and hi bounds.
7163 cat >conftest.$ac_ext <<_ACEOF
7164 #line $LINENO "configure"
7165 #include "confdefs.h"
7166 $ac_includes_default
7167 #ifdef F77_DUMMY_MAIN
7168 # ifdef __cplusplus
7169 extern "C"
7170 # endif
7171 int F77_DUMMY_MAIN() { return 1; }
7172 #endif
7174 main ()
7176 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7177 test_array [0] = 0
7180 return 0;
7182 _ACEOF
7183 rm -f conftest.$ac_objext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7185 (eval $ac_compile) 2>&5
7186 ac_status=$?
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); } &&
7189 { ac_try='test -s conftest.$ac_objext'
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 (eval $ac_try) 2>&5
7192 ac_status=$?
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7195 ac_lo=0 ac_mid=0
7196 while :; do
7197 cat >conftest.$ac_ext <<_ACEOF
7198 #line $LINENO "configure"
7199 #include "confdefs.h"
7200 $ac_includes_default
7201 #ifdef F77_DUMMY_MAIN
7202 # ifdef __cplusplus
7203 extern "C"
7204 # endif
7205 int F77_DUMMY_MAIN() { return 1; }
7206 #endif
7208 main ()
7210 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7211 test_array [0] = 0
7214 return 0;
7216 _ACEOF
7217 rm -f conftest.$ac_objext
7218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7219 (eval $ac_compile) 2>&5
7220 ac_status=$?
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); } &&
7223 { ac_try='test -s conftest.$ac_objext'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 (eval $ac_try) 2>&5
7226 ac_status=$?
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; }; then
7229 ac_hi=$ac_mid; break
7230 else
7231 echo "$as_me: failed program was:" >&5
7232 cat conftest.$ac_ext >&5
7233 ac_lo=`expr $ac_mid + 1`
7234 if test $ac_lo -le $ac_mid; then
7235 ac_lo= ac_hi=
7236 break
7238 ac_mid=`expr 2 '*' $ac_mid + 1`
7240 rm -f conftest.$ac_objext conftest.$ac_ext
7241 done
7242 else
7243 echo "$as_me: failed program was:" >&5
7244 cat conftest.$ac_ext >&5
7245 cat >conftest.$ac_ext <<_ACEOF
7246 #line $LINENO "configure"
7247 #include "confdefs.h"
7248 $ac_includes_default
7249 #ifdef F77_DUMMY_MAIN
7250 # ifdef __cplusplus
7251 extern "C"
7252 # endif
7253 int F77_DUMMY_MAIN() { return 1; }
7254 #endif
7256 main ()
7258 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7259 test_array [0] = 0
7262 return 0;
7264 _ACEOF
7265 rm -f conftest.$ac_objext
7266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7267 (eval $ac_compile) 2>&5
7268 ac_status=$?
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } &&
7271 { ac_try='test -s conftest.$ac_objext'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 (eval $ac_try) 2>&5
7274 ac_status=$?
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; }; then
7277 ac_hi=-1 ac_mid=-1
7278 while :; do
7279 cat >conftest.$ac_ext <<_ACEOF
7280 #line $LINENO "configure"
7281 #include "confdefs.h"
7282 $ac_includes_default
7283 #ifdef F77_DUMMY_MAIN
7284 # ifdef __cplusplus
7285 extern "C"
7286 # endif
7287 int F77_DUMMY_MAIN() { return 1; }
7288 #endif
7290 main ()
7292 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7293 test_array [0] = 0
7296 return 0;
7298 _ACEOF
7299 rm -f conftest.$ac_objext
7300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7301 (eval $ac_compile) 2>&5
7302 ac_status=$?
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } &&
7305 { ac_try='test -s conftest.$ac_objext'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307 (eval $ac_try) 2>&5
7308 ac_status=$?
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; }; then
7311 ac_lo=$ac_mid; break
7312 else
7313 echo "$as_me: failed program was:" >&5
7314 cat conftest.$ac_ext >&5
7315 ac_hi=`expr '(' $ac_mid ')' - 1`
7316 if test $ac_mid -le $ac_hi; then
7317 ac_lo= ac_hi=
7318 break
7320 ac_mid=`expr 2 '*' $ac_mid`
7322 rm -f conftest.$ac_objext conftest.$ac_ext
7323 done
7324 else
7325 echo "$as_me: failed program was:" >&5
7326 cat conftest.$ac_ext >&5
7327 ac_lo= ac_hi=
7329 rm -f conftest.$ac_objext conftest.$ac_ext
7331 rm -f conftest.$ac_objext conftest.$ac_ext
7332 # Binary search between lo and hi bounds.
7333 while test "x$ac_lo" != "x$ac_hi"; do
7334 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7335 cat >conftest.$ac_ext <<_ACEOF
7336 #line $LINENO "configure"
7337 #include "confdefs.h"
7338 $ac_includes_default
7339 #ifdef F77_DUMMY_MAIN
7340 # ifdef __cplusplus
7341 extern "C"
7342 # endif
7343 int F77_DUMMY_MAIN() { return 1; }
7344 #endif
7346 main ()
7348 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7349 test_array [0] = 0
7352 return 0;
7354 _ACEOF
7355 rm -f conftest.$ac_objext
7356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7357 (eval $ac_compile) 2>&5
7358 ac_status=$?
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } &&
7361 { ac_try='test -s conftest.$ac_objext'
7362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363 (eval $ac_try) 2>&5
7364 ac_status=$?
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); }; }; then
7367 ac_hi=$ac_mid
7368 else
7369 echo "$as_me: failed program was:" >&5
7370 cat conftest.$ac_ext >&5
7371 ac_lo=`expr '(' $ac_mid ')' + 1`
7373 rm -f conftest.$ac_objext conftest.$ac_ext
7374 done
7375 case $ac_lo in
7376 ?*) ac_cv_sizeof_short=$ac_lo;;
7377 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7378 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7379 { (exit 1); exit 1; }; } ;;
7380 esac
7381 else
7382 if test "$cross_compiling" = yes; then
7383 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7384 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7385 { (exit 1); exit 1; }; }
7386 else
7387 cat >conftest.$ac_ext <<_ACEOF
7388 #line $LINENO "configure"
7389 #include "confdefs.h"
7390 $ac_includes_default
7391 long longval () { return (long) (sizeof (short)); }
7392 unsigned long ulongval () { return (long) (sizeof (short)); }
7393 #include <stdio.h>
7394 #include <stdlib.h>
7395 #ifdef F77_DUMMY_MAIN
7396 # ifdef __cplusplus
7397 extern "C"
7398 # endif
7399 int F77_DUMMY_MAIN() { return 1; }
7400 #endif
7402 main ()
7405 FILE *f = fopen ("conftest.val", "w");
7406 if (! f)
7407 exit (1);
7408 if (((long) (sizeof (short))) < 0)
7410 long i = longval ();
7411 if (i != ((long) (sizeof (short))))
7412 exit (1);
7413 fprintf (f, "%ld\n", i);
7415 else
7417 unsigned long i = ulongval ();
7418 if (i != ((long) (sizeof (short))))
7419 exit (1);
7420 fprintf (f, "%lu\n", i);
7422 exit (ferror (f) || fclose (f) != 0);
7425 return 0;
7427 _ACEOF
7428 rm -f conftest$ac_exeext
7429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7430 (eval $ac_link) 2>&5
7431 ac_status=$?
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435 (eval $ac_try) 2>&5
7436 ac_status=$?
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); }; }; then
7439 ac_cv_sizeof_short=`cat conftest.val`
7440 else
7441 echo "$as_me: program exited with status $ac_status" >&5
7442 echo "$as_me: failed program was:" >&5
7443 cat conftest.$ac_ext >&5
7444 ( exit $ac_status )
7445 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7446 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7447 { (exit 1); exit 1; }; }
7449 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7452 rm -f conftest.val
7453 else
7454 ac_cv_sizeof_short=0
7457 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7458 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7459 cat >>confdefs.h <<_ACEOF
7460 #define SIZEOF_SHORT $ac_cv_sizeof_short
7461 _ACEOF
7465 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7466 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7467 if test "${ac_cv_c_const+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470 cat >conftest.$ac_ext <<_ACEOF
7471 #line $LINENO "configure"
7472 #include "confdefs.h"
7474 #ifdef F77_DUMMY_MAIN
7475 # ifdef __cplusplus
7476 extern "C"
7477 # endif
7478 int F77_DUMMY_MAIN() { return 1; }
7479 #endif
7481 main ()
7483 /* FIXME: Include the comments suggested by Paul. */
7484 #ifndef __cplusplus
7485 /* Ultrix mips cc rejects this. */
7486 typedef int charset[2];
7487 const charset x;
7488 /* SunOS 4.1.1 cc rejects this. */
7489 char const *const *ccp;
7490 char **p;
7491 /* NEC SVR4.0.2 mips cc rejects this. */
7492 struct point {int x, y;};
7493 static struct point const zero = {0,0};
7494 /* AIX XL C 1.02.0.0 rejects this.
7495 It does not let you subtract one const X* pointer from another in
7496 an arm of an if-expression whose if-part is not a constant
7497 expression */
7498 const char *g = "string";
7499 ccp = &g + (g ? g-g : 0);
7500 /* HPUX 7.0 cc rejects these. */
7501 ++ccp;
7502 p = (char**) ccp;
7503 ccp = (char const *const *) p;
7504 { /* SCO 3.2v4 cc rejects this. */
7505 char *t;
7506 char const *s = 0 ? (char *) 0 : (char const *) 0;
7508 *t++ = 0;
7510 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7511 int x[] = {25, 17};
7512 const int *foo = &x[0];
7513 ++foo;
7515 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7516 typedef const int *iptr;
7517 iptr p = 0;
7518 ++p;
7520 { /* AIX XL C 1.02.0.0 rejects this saying
7521 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7522 struct s { int j; const int *ap[3]; };
7523 struct s *b; b->j = 5;
7525 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7526 const int foo = 10;
7528 #endif
7531 return 0;
7533 _ACEOF
7534 rm -f conftest.$ac_objext
7535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7536 (eval $ac_compile) 2>&5
7537 ac_status=$?
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } &&
7540 { ac_try='test -s conftest.$ac_objext'
7541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542 (eval $ac_try) 2>&5
7543 ac_status=$?
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; }; then
7546 ac_cv_c_const=yes
7547 else
7548 echo "$as_me: failed program was:" >&5
7549 cat conftest.$ac_ext >&5
7550 ac_cv_c_const=no
7552 rm -f conftest.$ac_objext conftest.$ac_ext
7554 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7555 echo "${ECHO_T}$ac_cv_c_const" >&6
7556 if test $ac_cv_c_const = no; then
7558 cat >>confdefs.h <<\_ACEOF
7559 #define const
7560 _ACEOF
7564 echo "$as_me:$LINENO: checking for inline" >&5
7565 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7566 if test "${ac_cv_c_inline+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7568 else
7569 ac_cv_c_inline=no
7570 for ac_kw in inline __inline__ __inline; do
7571 cat >conftest.$ac_ext <<_ACEOF
7572 #line $LINENO "configure"
7573 #include "confdefs.h"
7574 #ifndef __cplusplus
7575 static $ac_kw int static_foo () {return 0; }
7576 $ac_kw int foo () {return 0; }
7577 #endif
7579 _ACEOF
7580 rm -f conftest.$ac_objext
7581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7582 (eval $ac_compile) 2>&5
7583 ac_status=$?
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } &&
7586 { ac_try='test -s conftest.$ac_objext'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588 (eval $ac_try) 2>&5
7589 ac_status=$?
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; }; then
7592 ac_cv_c_inline=$ac_kw; break
7593 else
7594 echo "$as_me: failed program was:" >&5
7595 cat conftest.$ac_ext >&5
7597 rm -f conftest.$ac_objext conftest.$ac_ext
7598 done
7601 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7602 echo "${ECHO_T}$ac_cv_c_inline" >&6
7603 case $ac_cv_c_inline in
7604 inline | yes) ;;
7606 cat >>confdefs.h <<\_ACEOF
7607 #define inline
7608 _ACEOF
7610 *) cat >>confdefs.h <<_ACEOF
7611 #define inline $ac_cv_c_inline
7612 _ACEOF
7614 esac
7616 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7617 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7618 if test "${ac_cv_c_bigendian+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 else
7621 # See if sys/param.h defines the BYTE_ORDER macro.
7622 cat >conftest.$ac_ext <<_ACEOF
7623 #line $LINENO "configure"
7624 #include "confdefs.h"
7625 #include <sys/types.h>
7626 #include <sys/param.h>
7628 #ifdef F77_DUMMY_MAIN
7629 # ifdef __cplusplus
7630 extern "C"
7631 # endif
7632 int F77_DUMMY_MAIN() { return 1; }
7633 #endif
7635 main ()
7637 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7638 bogus endian macros
7639 #endif
7642 return 0;
7644 _ACEOF
7645 rm -f conftest.$ac_objext
7646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7647 (eval $ac_compile) 2>&5
7648 ac_status=$?
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } &&
7651 { ac_try='test -s conftest.$ac_objext'
7652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7653 (eval $ac_try) 2>&5
7654 ac_status=$?
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); }; }; then
7657 # It does; now see whether it defined to BIG_ENDIAN or not.
7658 cat >conftest.$ac_ext <<_ACEOF
7659 #line $LINENO "configure"
7660 #include "confdefs.h"
7661 #include <sys/types.h>
7662 #include <sys/param.h>
7664 #ifdef F77_DUMMY_MAIN
7665 # ifdef __cplusplus
7666 extern "C"
7667 # endif
7668 int F77_DUMMY_MAIN() { return 1; }
7669 #endif
7671 main ()
7673 #if BYTE_ORDER != BIG_ENDIAN
7674 not big endian
7675 #endif
7678 return 0;
7680 _ACEOF
7681 rm -f conftest.$ac_objext
7682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7683 (eval $ac_compile) 2>&5
7684 ac_status=$?
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } &&
7687 { ac_try='test -s conftest.$ac_objext'
7688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689 (eval $ac_try) 2>&5
7690 ac_status=$?
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); }; }; then
7693 ac_cv_c_bigendian=yes
7694 else
7695 echo "$as_me: failed program was:" >&5
7696 cat conftest.$ac_ext >&5
7697 ac_cv_c_bigendian=no
7699 rm -f conftest.$ac_objext conftest.$ac_ext
7700 else
7701 echo "$as_me: failed program was:" >&5
7702 cat conftest.$ac_ext >&5
7703 # It does not; compile a test program.
7704 if test "$cross_compiling" = yes; then
7705 # try to guess the endianess by grep'ing values into an object file
7706 ac_cv_c_bigendian=unknown
7707 cat >conftest.$ac_ext <<_ACEOF
7708 #line $LINENO "configure"
7709 #include "confdefs.h"
7710 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7711 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7712 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7713 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7714 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7715 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7716 #ifdef F77_DUMMY_MAIN
7717 # ifdef __cplusplus
7718 extern "C"
7719 # endif
7720 int F77_DUMMY_MAIN() { return 1; }
7721 #endif
7723 main ()
7725 _ascii (); _ebcdic ();
7727 return 0;
7729 _ACEOF
7730 rm -f conftest.$ac_objext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7732 (eval $ac_compile) 2>&5
7733 ac_status=$?
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } &&
7736 { ac_try='test -s conftest.$ac_objext'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738 (eval $ac_try) 2>&5
7739 ac_status=$?
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7742 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7743 ac_cv_c_bigendian=yes
7745 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7746 if test "$ac_cv_c_bigendian" = unknown; then
7747 ac_cv_c_bigendian=no
7748 else
7749 # finding both strings is unlikely to happen, but who knows?
7750 ac_cv_c_bigendian=unknown
7753 else
7754 echo "$as_me: failed program was:" >&5
7755 cat conftest.$ac_ext >&5
7757 rm -f conftest.$ac_objext conftest.$ac_ext
7758 else
7759 cat >conftest.$ac_ext <<_ACEOF
7760 #line $LINENO "configure"
7761 #include "confdefs.h"
7763 main ()
7765 /* Are we little or big endian? From Harbison&Steele. */
7766 union
7768 long l;
7769 char c[sizeof (long)];
7770 } u;
7771 u.l = 1;
7772 exit (u.c[sizeof (long) - 1] == 1);
7774 _ACEOF
7775 rm -f conftest$ac_exeext
7776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7777 (eval $ac_link) 2>&5
7778 ac_status=$?
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782 (eval $ac_try) 2>&5
7783 ac_status=$?
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; }; then
7786 ac_cv_c_bigendian=no
7787 else
7788 echo "$as_me: program exited with status $ac_status" >&5
7789 echo "$as_me: failed program was:" >&5
7790 cat conftest.$ac_ext >&5
7791 ( exit $ac_status )
7792 ac_cv_c_bigendian=yes
7794 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7797 rm -f conftest.$ac_objext conftest.$ac_ext
7799 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7800 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7801 case $ac_cv_c_bigendian in
7802 yes)
7804 cat >>confdefs.h <<\_ACEOF
7805 #define WORDS_BIGENDIAN 1
7806 _ACEOF
7811 { { echo "$as_me:$LINENO: error: unknown endianess
7812 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7813 echo "$as_me: error: unknown endianess
7814 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7815 { (exit 1); exit 1; }; } ;;
7816 esac
7819 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
7820 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
7821 if test "${ac_cv_c_char_unsigned+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 else
7824 cat >conftest.$ac_ext <<_ACEOF
7825 #line $LINENO "configure"
7826 #include "confdefs.h"
7827 $ac_includes_default
7828 #ifdef F77_DUMMY_MAIN
7829 # ifdef __cplusplus
7830 extern "C"
7831 # endif
7832 int F77_DUMMY_MAIN() { return 1; }
7833 #endif
7835 main ()
7837 static int test_array [1 - 2 * !(((char) -1) < 0)];
7838 test_array [0] = 0
7841 return 0;
7843 _ACEOF
7844 rm -f conftest.$ac_objext
7845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7846 (eval $ac_compile) 2>&5
7847 ac_status=$?
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } &&
7850 { ac_try='test -s conftest.$ac_objext'
7851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7852 (eval $ac_try) 2>&5
7853 ac_status=$?
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); }; }; then
7856 ac_cv_c_char_unsigned=no
7857 else
7858 echo "$as_me: failed program was:" >&5
7859 cat conftest.$ac_ext >&5
7860 ac_cv_c_char_unsigned=yes
7862 rm -f conftest.$ac_objext conftest.$ac_ext
7864 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
7865 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
7866 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
7867 cat >>confdefs.h <<\_ACEOF
7868 #define __CHAR_UNSIGNED__ 1
7869 _ACEOF
7874 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7875 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7876 if test "${ac_cv_type_signal+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7878 else
7879 cat >conftest.$ac_ext <<_ACEOF
7880 #line $LINENO "configure"
7881 #include "confdefs.h"
7882 #include <sys/types.h>
7883 #include <signal.h>
7884 #ifdef signal
7885 # undef signal
7886 #endif
7887 #ifdef __cplusplus
7888 extern "C" void (*signal (int, void (*)(int)))(int);
7889 #else
7890 void (*signal ()) ();
7891 #endif
7893 #ifdef F77_DUMMY_MAIN
7894 # ifdef __cplusplus
7895 extern "C"
7896 # endif
7897 int F77_DUMMY_MAIN() { return 1; }
7898 #endif
7900 main ()
7902 int i;
7904 return 0;
7906 _ACEOF
7907 rm -f conftest.$ac_objext
7908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7909 (eval $ac_compile) 2>&5
7910 ac_status=$?
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); } &&
7913 { ac_try='test -s conftest.$ac_objext'
7914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915 (eval $ac_try) 2>&5
7916 ac_status=$?
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); }; }; then
7919 ac_cv_type_signal=void
7920 else
7921 echo "$as_me: failed program was:" >&5
7922 cat conftest.$ac_ext >&5
7923 ac_cv_type_signal=int
7925 rm -f conftest.$ac_objext conftest.$ac_ext
7927 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7928 echo "${ECHO_T}$ac_cv_type_signal" >&6
7930 cat >>confdefs.h <<_ACEOF
7931 #define RETSIGTYPE $ac_cv_type_signal
7932 _ACEOF
7935 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7936 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7937 if test "${ac_cv_type_uid_t+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 else
7940 cat >conftest.$ac_ext <<_ACEOF
7941 #line $LINENO "configure"
7942 #include "confdefs.h"
7943 #include <sys/types.h>
7945 _ACEOF
7946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7947 egrep "uid_t" >/dev/null 2>&1; then
7948 ac_cv_type_uid_t=yes
7949 else
7950 ac_cv_type_uid_t=no
7952 rm -f conftest*
7955 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7956 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7957 if test $ac_cv_type_uid_t = no; then
7959 cat >>confdefs.h <<\_ACEOF
7960 #define uid_t int
7961 _ACEOF
7964 cat >>confdefs.h <<\_ACEOF
7965 #define gid_t int
7966 _ACEOF
7970 echo "$as_me:$LINENO: checking for mode_t" >&5
7971 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7972 if test "${ac_cv_type_mode_t+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7974 else
7975 cat >conftest.$ac_ext <<_ACEOF
7976 #line $LINENO "configure"
7977 #include "confdefs.h"
7978 $ac_includes_default
7979 #ifdef F77_DUMMY_MAIN
7980 # ifdef __cplusplus
7981 extern "C"
7982 # endif
7983 int F77_DUMMY_MAIN() { return 1; }
7984 #endif
7986 main ()
7988 if ((mode_t *) 0)
7989 return 0;
7990 if (sizeof (mode_t))
7991 return 0;
7993 return 0;
7995 _ACEOF
7996 rm -f conftest.$ac_objext
7997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7998 (eval $ac_compile) 2>&5
7999 ac_status=$?
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } &&
8002 { ac_try='test -s conftest.$ac_objext'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 (eval $ac_try) 2>&5
8005 ac_status=$?
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8008 ac_cv_type_mode_t=yes
8009 else
8010 echo "$as_me: failed program was:" >&5
8011 cat conftest.$ac_ext >&5
8012 ac_cv_type_mode_t=no
8014 rm -f conftest.$ac_objext conftest.$ac_ext
8016 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8017 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
8018 if test $ac_cv_type_mode_t = yes; then
8020 else
8022 cat >>confdefs.h <<_ACEOF
8023 #define mode_t int
8024 _ACEOF
8028 echo "$as_me:$LINENO: checking for off_t" >&5
8029 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8030 if test "${ac_cv_type_off_t+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8032 else
8033 cat >conftest.$ac_ext <<_ACEOF
8034 #line $LINENO "configure"
8035 #include "confdefs.h"
8036 $ac_includes_default
8037 #ifdef F77_DUMMY_MAIN
8038 # ifdef __cplusplus
8039 extern "C"
8040 # endif
8041 int F77_DUMMY_MAIN() { return 1; }
8042 #endif
8044 main ()
8046 if ((off_t *) 0)
8047 return 0;
8048 if (sizeof (off_t))
8049 return 0;
8051 return 0;
8053 _ACEOF
8054 rm -f conftest.$ac_objext
8055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8056 (eval $ac_compile) 2>&5
8057 ac_status=$?
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); } &&
8060 { ac_try='test -s conftest.$ac_objext'
8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 (eval $ac_try) 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8066 ac_cv_type_off_t=yes
8067 else
8068 echo "$as_me: failed program was:" >&5
8069 cat conftest.$ac_ext >&5
8070 ac_cv_type_off_t=no
8072 rm -f conftest.$ac_objext conftest.$ac_ext
8074 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8075 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8076 if test $ac_cv_type_off_t = yes; then
8078 else
8080 cat >>confdefs.h <<_ACEOF
8081 #define off_t long
8082 _ACEOF
8086 echo "$as_me:$LINENO: checking for size_t" >&5
8087 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8088 if test "${ac_cv_type_size_t+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8090 else
8091 cat >conftest.$ac_ext <<_ACEOF
8092 #line $LINENO "configure"
8093 #include "confdefs.h"
8094 $ac_includes_default
8095 #ifdef F77_DUMMY_MAIN
8096 # ifdef __cplusplus
8097 extern "C"
8098 # endif
8099 int F77_DUMMY_MAIN() { return 1; }
8100 #endif
8102 main ()
8104 if ((size_t *) 0)
8105 return 0;
8106 if (sizeof (size_t))
8107 return 0;
8109 return 0;
8111 _ACEOF
8112 rm -f conftest.$ac_objext
8113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8114 (eval $ac_compile) 2>&5
8115 ac_status=$?
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try='test -s conftest.$ac_objext'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120 (eval $ac_try) 2>&5
8121 ac_status=$?
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8124 ac_cv_type_size_t=yes
8125 else
8126 echo "$as_me: failed program was:" >&5
8127 cat conftest.$ac_ext >&5
8128 ac_cv_type_size_t=no
8130 rm -f conftest.$ac_objext conftest.$ac_ext
8132 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8133 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8134 if test $ac_cv_type_size_t = yes; then
8136 else
8138 cat >>confdefs.h <<_ACEOF
8139 #define size_t unsigned
8140 _ACEOF
8144 echo "$as_me:$LINENO: checking for pid_t" >&5
8145 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8146 if test "${ac_cv_type_pid_t+set}" = set; then
8147 echo $ECHO_N "(cached) $ECHO_C" >&6
8148 else
8149 cat >conftest.$ac_ext <<_ACEOF
8150 #line $LINENO "configure"
8151 #include "confdefs.h"
8152 $ac_includes_default
8153 #ifdef F77_DUMMY_MAIN
8154 # ifdef __cplusplus
8155 extern "C"
8156 # endif
8157 int F77_DUMMY_MAIN() { return 1; }
8158 #endif
8160 main ()
8162 if ((pid_t *) 0)
8163 return 0;
8164 if (sizeof (pid_t))
8165 return 0;
8167 return 0;
8169 _ACEOF
8170 rm -f conftest.$ac_objext
8171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8172 (eval $ac_compile) 2>&5
8173 ac_status=$?
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } &&
8176 { ac_try='test -s conftest.$ac_objext'
8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178 (eval $ac_try) 2>&5
8179 ac_status=$?
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; }; then
8182 ac_cv_type_pid_t=yes
8183 else
8184 echo "$as_me: failed program was:" >&5
8185 cat conftest.$ac_ext >&5
8186 ac_cv_type_pid_t=no
8188 rm -f conftest.$ac_objext conftest.$ac_ext
8190 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8191 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8192 if test $ac_cv_type_pid_t = yes; then
8194 else
8196 cat >>confdefs.h <<_ACEOF
8197 #define pid_t int
8198 _ACEOF
8203 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
8204 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
8205 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
8206 echo $ECHO_N "(cached) $ECHO_C" >&6
8207 else
8208 cat >conftest.$ac_ext <<_ACEOF
8209 #line $LINENO "configure"
8210 #include "confdefs.h"
8211 $ac_includes_default
8212 #ifdef F77_DUMMY_MAIN
8213 # ifdef __cplusplus
8214 extern "C"
8215 # endif
8216 int F77_DUMMY_MAIN() { return 1; }
8217 #endif
8219 main ()
8221 static struct stat ac_aggr;
8222 if (ac_aggr.st_rdev)
8223 return 0;
8225 return 0;
8227 _ACEOF
8228 rm -f conftest.$ac_objext
8229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8230 (eval $ac_compile) 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } &&
8234 { ac_try='test -s conftest.$ac_objext'
8235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236 (eval $ac_try) 2>&5
8237 ac_status=$?
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
8240 ac_cv_member_struct_stat_st_rdev=yes
8241 else
8242 echo "$as_me: failed program was:" >&5
8243 cat conftest.$ac_ext >&5
8244 ac_cv_member_struct_stat_st_rdev=no
8246 rm -f conftest.$ac_objext conftest.$ac_ext
8248 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
8249 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
8250 if test $ac_cv_member_struct_stat_st_rdev = yes; then
8252 cat >>confdefs.h <<_ACEOF
8253 #define HAVE_STRUCT_STAT_ST_RDEV 1
8254 _ACEOF
8257 cat >>confdefs.h <<\_ACEOF
8258 #define HAVE_ST_RDEV 1
8259 _ACEOF
8264 echo "$as_me:$LINENO: checking for d_off in dirent" >&5
8265 echo $ECHO_N "checking for d_off in dirent... $ECHO_C" >&6
8266 if test "${ac_cv_dirent_d_off+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8269 cat >conftest.$ac_ext <<_ACEOF
8270 #line $LINENO "configure"
8271 #include "confdefs.h"
8273 #include <unistd.h>
8274 #include <sys/types.h>
8275 #include <dirent.h>
8276 #ifdef F77_DUMMY_MAIN
8277 # ifdef __cplusplus
8278 extern "C"
8279 # endif
8280 int F77_DUMMY_MAIN() { return 1; }
8281 #endif
8283 main ()
8285 struct dirent d; d.d_off;
8287 return 0;
8289 _ACEOF
8290 rm -f conftest.$ac_objext
8291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8292 (eval $ac_compile) 2>&5
8293 ac_status=$?
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } &&
8296 { ac_try='test -s conftest.$ac_objext'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 (eval $ac_try) 2>&5
8299 ac_status=$?
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8302 ac_cv_dirent_d_off=yes
8303 else
8304 echo "$as_me: failed program was:" >&5
8305 cat conftest.$ac_ext >&5
8306 ac_cv_dirent_d_off=no
8308 rm -f conftest.$ac_objext conftest.$ac_ext
8310 echo "$as_me:$LINENO: result: $ac_cv_dirent_d_off" >&5
8311 echo "${ECHO_T}$ac_cv_dirent_d_off" >&6
8312 if test $ac_cv_dirent_d_off = yes; then
8314 cat >>confdefs.h <<\_ACEOF
8315 #define HAVE_DIRENT_D_OFF 1
8316 _ACEOF
8320 echo "$as_me:$LINENO: checking for ino_t" >&5
8321 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
8322 if test "${ac_cv_type_ino_t+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 else
8325 cat >conftest.$ac_ext <<_ACEOF
8326 #line $LINENO "configure"
8327 #include "confdefs.h"
8328 $ac_includes_default
8329 #ifdef F77_DUMMY_MAIN
8330 # ifdef __cplusplus
8331 extern "C"
8332 # endif
8333 int F77_DUMMY_MAIN() { return 1; }
8334 #endif
8336 main ()
8338 if ((ino_t *) 0)
8339 return 0;
8340 if (sizeof (ino_t))
8341 return 0;
8343 return 0;
8345 _ACEOF
8346 rm -f conftest.$ac_objext
8347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8348 (eval $ac_compile) 2>&5
8349 ac_status=$?
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try='test -s conftest.$ac_objext'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 (eval $ac_try) 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; }; then
8358 ac_cv_type_ino_t=yes
8359 else
8360 echo "$as_me: failed program was:" >&5
8361 cat conftest.$ac_ext >&5
8362 ac_cv_type_ino_t=no
8364 rm -f conftest.$ac_objext conftest.$ac_ext
8366 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
8367 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
8368 if test $ac_cv_type_ino_t = yes; then
8370 else
8372 cat >>confdefs.h <<_ACEOF
8373 #define ino_t unsigned
8374 _ACEOF
8378 echo "$as_me:$LINENO: checking for loff_t" >&5
8379 echo $ECHO_N "checking for loff_t... $ECHO_C" >&6
8380 if test "${ac_cv_type_loff_t+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 else
8383 cat >conftest.$ac_ext <<_ACEOF
8384 #line $LINENO "configure"
8385 #include "confdefs.h"
8386 $ac_includes_default
8387 #ifdef F77_DUMMY_MAIN
8388 # ifdef __cplusplus
8389 extern "C"
8390 # endif
8391 int F77_DUMMY_MAIN() { return 1; }
8392 #endif
8394 main ()
8396 if ((loff_t *) 0)
8397 return 0;
8398 if (sizeof (loff_t))
8399 return 0;
8401 return 0;
8403 _ACEOF
8404 rm -f conftest.$ac_objext
8405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8406 (eval $ac_compile) 2>&5
8407 ac_status=$?
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } &&
8410 { ac_try='test -s conftest.$ac_objext'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 (eval $ac_try) 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; }; then
8416 ac_cv_type_loff_t=yes
8417 else
8418 echo "$as_me: failed program was:" >&5
8419 cat conftest.$ac_ext >&5
8420 ac_cv_type_loff_t=no
8422 rm -f conftest.$ac_objext conftest.$ac_ext
8424 echo "$as_me:$LINENO: result: $ac_cv_type_loff_t" >&5
8425 echo "${ECHO_T}$ac_cv_type_loff_t" >&6
8426 if test $ac_cv_type_loff_t = yes; then
8428 else
8430 cat >>confdefs.h <<_ACEOF
8431 #define loff_t off_t
8432 _ACEOF
8436 echo "$as_me:$LINENO: checking for offset_t" >&5
8437 echo $ECHO_N "checking for offset_t... $ECHO_C" >&6
8438 if test "${ac_cv_type_offset_t+set}" = set; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
8440 else
8441 cat >conftest.$ac_ext <<_ACEOF
8442 #line $LINENO "configure"
8443 #include "confdefs.h"
8444 $ac_includes_default
8445 #ifdef F77_DUMMY_MAIN
8446 # ifdef __cplusplus
8447 extern "C"
8448 # endif
8449 int F77_DUMMY_MAIN() { return 1; }
8450 #endif
8452 main ()
8454 if ((offset_t *) 0)
8455 return 0;
8456 if (sizeof (offset_t))
8457 return 0;
8459 return 0;
8461 _ACEOF
8462 rm -f conftest.$ac_objext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8464 (eval $ac_compile) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } &&
8468 { ac_try='test -s conftest.$ac_objext'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470 (eval $ac_try) 2>&5
8471 ac_status=$?
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8474 ac_cv_type_offset_t=yes
8475 else
8476 echo "$as_me: failed program was:" >&5
8477 cat conftest.$ac_ext >&5
8478 ac_cv_type_offset_t=no
8480 rm -f conftest.$ac_objext conftest.$ac_ext
8482 echo "$as_me:$LINENO: result: $ac_cv_type_offset_t" >&5
8483 echo "${ECHO_T}$ac_cv_type_offset_t" >&6
8484 if test $ac_cv_type_offset_t = yes; then
8486 else
8488 cat >>confdefs.h <<_ACEOF
8489 #define offset_t loff_t
8490 _ACEOF
8494 echo "$as_me:$LINENO: checking for ssize_t" >&5
8495 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
8496 if test "${ac_cv_type_ssize_t+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8498 else
8499 cat >conftest.$ac_ext <<_ACEOF
8500 #line $LINENO "configure"
8501 #include "confdefs.h"
8502 $ac_includes_default
8503 #ifdef F77_DUMMY_MAIN
8504 # ifdef __cplusplus
8505 extern "C"
8506 # endif
8507 int F77_DUMMY_MAIN() { return 1; }
8508 #endif
8510 main ()
8512 if ((ssize_t *) 0)
8513 return 0;
8514 if (sizeof (ssize_t))
8515 return 0;
8517 return 0;
8519 _ACEOF
8520 rm -f conftest.$ac_objext
8521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8522 (eval $ac_compile) 2>&5
8523 ac_status=$?
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
8526 { ac_try='test -s conftest.$ac_objext'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 (eval $ac_try) 2>&5
8529 ac_status=$?
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; }; then
8532 ac_cv_type_ssize_t=yes
8533 else
8534 echo "$as_me: failed program was:" >&5
8535 cat conftest.$ac_ext >&5
8536 ac_cv_type_ssize_t=no
8538 rm -f conftest.$ac_objext conftest.$ac_ext
8540 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8541 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
8542 if test $ac_cv_type_ssize_t = yes; then
8544 else
8546 cat >>confdefs.h <<_ACEOF
8547 #define ssize_t int
8548 _ACEOF
8552 echo "$as_me:$LINENO: checking for wchar_t" >&5
8553 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
8554 if test "${ac_cv_type_wchar_t+set}" = set; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8556 else
8557 cat >conftest.$ac_ext <<_ACEOF
8558 #line $LINENO "configure"
8559 #include "confdefs.h"
8560 $ac_includes_default
8561 #ifdef F77_DUMMY_MAIN
8562 # ifdef __cplusplus
8563 extern "C"
8564 # endif
8565 int F77_DUMMY_MAIN() { return 1; }
8566 #endif
8568 main ()
8570 if ((wchar_t *) 0)
8571 return 0;
8572 if (sizeof (wchar_t))
8573 return 0;
8575 return 0;
8577 _ACEOF
8578 rm -f conftest.$ac_objext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8580 (eval $ac_compile) 2>&5
8581 ac_status=$?
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } &&
8584 { ac_try='test -s conftest.$ac_objext'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 (eval $ac_try) 2>&5
8587 ac_status=$?
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; }; then
8590 ac_cv_type_wchar_t=yes
8591 else
8592 echo "$as_me: failed program was:" >&5
8593 cat conftest.$ac_ext >&5
8594 ac_cv_type_wchar_t=no
8596 rm -f conftest.$ac_objext conftest.$ac_ext
8598 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
8599 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
8600 if test $ac_cv_type_wchar_t = yes; then
8602 else
8604 cat >>confdefs.h <<_ACEOF
8605 #define wchar_t unsigned short
8606 _ACEOF
8611 ############################################
8612 # for cups support we need libcups, and a handful of header files
8614 # Check whether --enable-cups or --disable-cups was given.
8615 if test "${enable_cups+set}" = set; then
8616 enableval="$enable_cups"
8620 if test x$enable_cups != xno; then
8621 # Extract the first word of "cups-config", so it can be a program name with args.
8622 set dummy cups-config; ac_word=$2
8623 echo "$as_me:$LINENO: checking for $ac_word" >&5
8624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8625 if test "${ac_cv_path_CUPS_CONFIG+set}" = set; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
8627 else
8628 case $CUPS_CONFIG in
8629 [\\/]* | ?:[\\/]*)
8630 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
8633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 for as_dir in $PATH
8636 IFS=$as_save_IFS
8637 test -z "$as_dir" && as_dir=.
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8640 ac_cv_path_CUPS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8642 break 2
8644 done
8645 done
8648 esac
8650 CUPS_CONFIG=$ac_cv_path_CUPS_CONFIG
8652 if test -n "$CUPS_CONFIG"; then
8653 echo "$as_me:$LINENO: result: $CUPS_CONFIG" >&5
8654 echo "${ECHO_T}$CUPS_CONFIG" >&6
8655 else
8656 echo "$as_me:$LINENO: result: no" >&5
8657 echo "${ECHO_T}no" >&6
8661 if test "x$CUPS_CONFIG" != x; then
8663 cat >>confdefs.h <<\_ACEOF
8664 #define HAVE_CUPS 1
8665 _ACEOF
8667 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
8668 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
8669 PRINTLIBS="$PRINTLIBS `$CUPS_CONFIG --libs`"
8673 ############################################
8674 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
8675 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8676 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
8677 if test "${ac_cv_search_dlopen+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680 ac_func_search_save_LIBS=$LIBS
8681 ac_cv_search_dlopen=no
8682 cat >conftest.$ac_ext <<_ACEOF
8683 #line $LINENO "configure"
8684 #include "confdefs.h"
8686 /* Override any gcc2 internal prototype to avoid an error. */
8687 #ifdef __cplusplus
8688 extern "C"
8689 #endif
8690 /* We use char because int might match the return type of a gcc2
8691 builtin and then its argument prototype would still apply. */
8692 char dlopen ();
8693 #ifdef F77_DUMMY_MAIN
8694 # ifdef __cplusplus
8695 extern "C"
8696 # endif
8697 int F77_DUMMY_MAIN() { return 1; }
8698 #endif
8700 main ()
8702 dlopen ();
8704 return 0;
8706 _ACEOF
8707 rm -f conftest.$ac_objext conftest$ac_exeext
8708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8709 (eval $ac_link) 2>&5
8710 ac_status=$?
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } &&
8713 { ac_try='test -s conftest$ac_exeext'
8714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 (eval $ac_try) 2>&5
8716 ac_status=$?
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); }; }; then
8719 ac_cv_search_dlopen="none required"
8720 else
8721 echo "$as_me: failed program was:" >&5
8722 cat conftest.$ac_ext >&5
8724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8725 if test "$ac_cv_search_dlopen" = no; then
8726 for ac_lib in dl; do
8727 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8728 cat >conftest.$ac_ext <<_ACEOF
8729 #line $LINENO "configure"
8730 #include "confdefs.h"
8732 /* Override any gcc2 internal prototype to avoid an error. */
8733 #ifdef __cplusplus
8734 extern "C"
8735 #endif
8736 /* We use char because int might match the return type of a gcc2
8737 builtin and then its argument prototype would still apply. */
8738 char dlopen ();
8739 #ifdef F77_DUMMY_MAIN
8740 # ifdef __cplusplus
8741 extern "C"
8742 # endif
8743 int F77_DUMMY_MAIN() { return 1; }
8744 #endif
8746 main ()
8748 dlopen ();
8750 return 0;
8752 _ACEOF
8753 rm -f conftest.$ac_objext conftest$ac_exeext
8754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8755 (eval $ac_link) 2>&5
8756 ac_status=$?
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } &&
8759 { ac_try='test -s conftest$ac_exeext'
8760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761 (eval $ac_try) 2>&5
8762 ac_status=$?
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }; }; then
8765 ac_cv_search_dlopen="-l$ac_lib"
8766 break
8767 else
8768 echo "$as_me: failed program was:" >&5
8769 cat conftest.$ac_ext >&5
8771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8772 done
8774 LIBS=$ac_func_search_save_LIBS
8776 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8777 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
8778 if test "$ac_cv_search_dlopen" != no; then
8779 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
8783 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
8785 ############################################
8786 # check if the compiler can do immediate structures
8787 echo "$as_me:$LINENO: checking for immediate structures" >&5
8788 echo $ECHO_N "checking for immediate structures... $ECHO_C" >&6
8789 if test "${samba_cv_immediate_structures+set}" = set; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8791 else
8793 cat >conftest.$ac_ext <<_ACEOF
8794 #line $LINENO "configure"
8795 #include "confdefs.h"
8797 #include <stdio.h>
8798 #ifdef F77_DUMMY_MAIN
8799 # ifdef __cplusplus
8800 extern "C"
8801 # endif
8802 int F77_DUMMY_MAIN() { return 1; }
8803 #endif
8805 main ()
8808 typedef struct {unsigned x;} FOOBAR;
8809 #define X_FOOBAR(x) ((FOOBAR) { x })
8810 #define FOO_ONE X_FOOBAR(1)
8811 FOOBAR f = FOO_ONE;
8812 static struct {
8813 FOOBAR y;
8814 } f2[] = {
8815 {FOO_ONE}
8819 return 0;
8821 _ACEOF
8822 rm -f conftest.$ac_objext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8824 (eval $ac_compile) 2>&5
8825 ac_status=$?
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } &&
8828 { ac_try='test -s conftest.$ac_objext'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 (eval $ac_try) 2>&5
8831 ac_status=$?
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; }; then
8834 samba_cv_immediate_structures=yes
8835 else
8836 echo "$as_me: failed program was:" >&5
8837 cat conftest.$ac_ext >&5
8838 samba_cv_immediate_structures=no
8840 rm -f conftest.$ac_objext conftest.$ac_ext
8842 echo "$as_me:$LINENO: result: $samba_cv_immediate_structures" >&5
8843 echo "${ECHO_T}$samba_cv_immediate_structures" >&6
8844 if test x"$samba_cv_immediate_structures" = x"yes"; then
8846 cat >>confdefs.h <<\_ACEOF
8847 #define HAVE_IMMEDIATE_STRUCTURES 1
8848 _ACEOF
8852 ############################################
8853 # check for unix domain sockets
8854 echo "$as_me:$LINENO: checking for unix domain sockets" >&5
8855 echo $ECHO_N "checking for unix domain sockets... $ECHO_C" >&6
8856 if test "${samba_cv_unixsocket+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
8858 else
8860 cat >conftest.$ac_ext <<_ACEOF
8861 #line $LINENO "configure"
8862 #include "confdefs.h"
8864 #include <sys/types.h>
8865 #include <stdlib.h>
8866 #include <stddef.h>
8867 #include <sys/socket.h>
8868 #include <sys/un.h>
8869 #ifdef F77_DUMMY_MAIN
8870 # ifdef __cplusplus
8871 extern "C"
8872 # endif
8873 int F77_DUMMY_MAIN() { return 1; }
8874 #endif
8876 main ()
8879 struct sockaddr_un sunaddr;
8880 sunaddr.sun_family = AF_UNIX;
8883 return 0;
8885 _ACEOF
8886 rm -f conftest.$ac_objext
8887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8888 (eval $ac_compile) 2>&5
8889 ac_status=$?
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } &&
8892 { ac_try='test -s conftest.$ac_objext'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894 (eval $ac_try) 2>&5
8895 ac_status=$?
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; }; then
8898 samba_cv_unixsocket=yes
8899 else
8900 echo "$as_me: failed program was:" >&5
8901 cat conftest.$ac_ext >&5
8902 samba_cv_unixsocket=no
8904 rm -f conftest.$ac_objext conftest.$ac_ext
8906 echo "$as_me:$LINENO: result: $samba_cv_unixsocket" >&5
8907 echo "${ECHO_T}$samba_cv_unixsocket" >&6
8908 if test x"$samba_cv_unixsocket" = x"yes"; then
8910 cat >>confdefs.h <<\_ACEOF
8911 #define HAVE_UNIXSOCKET 1
8912 _ACEOF
8917 echo "$as_me:$LINENO: checking for socklen_t type" >&5
8918 echo $ECHO_N "checking for socklen_t type... $ECHO_C" >&6
8919 if test "${samba_cv_socklen_t+set}" = set; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 else
8923 cat >conftest.$ac_ext <<_ACEOF
8924 #line $LINENO "configure"
8925 #include "confdefs.h"
8927 #include <sys/types.h>
8928 #if STDC_HEADERS
8929 #include <stdlib.h>
8930 #include <stddef.h>
8931 #endif
8932 #include <sys/socket.h>
8933 #ifdef F77_DUMMY_MAIN
8934 # ifdef __cplusplus
8935 extern "C"
8936 # endif
8937 int F77_DUMMY_MAIN() { return 1; }
8938 #endif
8940 main ()
8942 socklen_t i = 0
8944 return 0;
8946 _ACEOF
8947 rm -f conftest.$ac_objext
8948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8949 (eval $ac_compile) 2>&5
8950 ac_status=$?
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } &&
8953 { ac_try='test -s conftest.$ac_objext'
8954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955 (eval $ac_try) 2>&5
8956 ac_status=$?
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; }; then
8959 samba_cv_socklen_t=yes
8960 else
8961 echo "$as_me: failed program was:" >&5
8962 cat conftest.$ac_ext >&5
8963 samba_cv_socklen_t=no
8965 rm -f conftest.$ac_objext conftest.$ac_ext
8967 echo "$as_me:$LINENO: result: $samba_cv_socklen_t" >&5
8968 echo "${ECHO_T}$samba_cv_socklen_t" >&6
8969 if test x"$samba_cv_socklen_t" = x"yes"; then
8971 cat >>confdefs.h <<\_ACEOF
8972 #define HAVE_SOCKLEN_T_TYPE 1
8973 _ACEOF
8977 echo "$as_me:$LINENO: checking for sig_atomic_t type" >&5
8978 echo $ECHO_N "checking for sig_atomic_t type... $ECHO_C" >&6
8979 if test "${samba_cv_sig_atomic_t+set}" = set; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8981 else
8983 cat >conftest.$ac_ext <<_ACEOF
8984 #line $LINENO "configure"
8985 #include "confdefs.h"
8987 #include <sys/types.h>
8988 #if STDC_HEADERS
8989 #include <stdlib.h>
8990 #include <stddef.h>
8991 #endif
8992 #include <signal.h>
8993 #ifdef F77_DUMMY_MAIN
8994 # ifdef __cplusplus
8995 extern "C"
8996 # endif
8997 int F77_DUMMY_MAIN() { return 1; }
8998 #endif
9000 main ()
9002 sig_atomic_t i = 0
9004 return 0;
9006 _ACEOF
9007 rm -f conftest.$ac_objext
9008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9009 (eval $ac_compile) 2>&5
9010 ac_status=$?
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } &&
9013 { ac_try='test -s conftest.$ac_objext'
9014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 (eval $ac_try) 2>&5
9016 ac_status=$?
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); }; }; then
9019 samba_cv_sig_atomic_t=yes
9020 else
9021 echo "$as_me: failed program was:" >&5
9022 cat conftest.$ac_ext >&5
9023 samba_cv_sig_atomic_t=no
9025 rm -f conftest.$ac_objext conftest.$ac_ext
9027 echo "$as_me:$LINENO: result: $samba_cv_sig_atomic_t" >&5
9028 echo "${ECHO_T}$samba_cv_sig_atomic_t" >&6
9029 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
9031 cat >>confdefs.h <<\_ACEOF
9032 #define HAVE_SIG_ATOMIC_T_TYPE 1
9033 _ACEOF
9037 # stupid headers have the functions but no declaration. grrrr.
9039 echo "$as_me:$LINENO: checking for errno declaration" >&5
9040 echo $ECHO_N "checking for errno declaration... $ECHO_C" >&6
9041 if test "${ac_cv_have_errno_decl+set}" = set; then
9042 echo $ECHO_N "(cached) $ECHO_C" >&6
9043 else
9045 cat >conftest.$ac_ext <<_ACEOF
9046 #line $LINENO "configure"
9047 #include "confdefs.h"
9048 #include <errno.h>
9049 #ifdef F77_DUMMY_MAIN
9050 # ifdef __cplusplus
9051 extern "C"
9052 # endif
9053 int F77_DUMMY_MAIN() { return 1; }
9054 #endif
9056 main ()
9058 int i = (int)errno
9060 return 0;
9062 _ACEOF
9063 rm -f conftest.$ac_objext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9065 (eval $ac_compile) 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } &&
9069 { ac_try='test -s conftest.$ac_objext'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 (eval $ac_try) 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 ac_cv_have_errno_decl=yes
9076 else
9077 echo "$as_me: failed program was:" >&5
9078 cat conftest.$ac_ext >&5
9079 ac_cv_have_errno_decl=no
9081 rm -f conftest.$ac_objext conftest.$ac_ext
9083 echo "$as_me:$LINENO: result: $ac_cv_have_errno_decl" >&5
9084 echo "${ECHO_T}$ac_cv_have_errno_decl" >&6
9085 if test x"$ac_cv_have_errno_decl" = x"yes"; then
9087 cat >>confdefs.h <<\_ACEOF
9088 #define HAVE_ERRNO_DECL 1
9089 _ACEOF
9094 echo "$as_me:$LINENO: checking for setresuid declaration" >&5
9095 echo $ECHO_N "checking for setresuid declaration... $ECHO_C" >&6
9096 if test "${ac_cv_have_setresuid_decl+set}" = set; then
9097 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 else
9100 cat >conftest.$ac_ext <<_ACEOF
9101 #line $LINENO "configure"
9102 #include "confdefs.h"
9103 #include <unistd.h>
9104 #ifdef F77_DUMMY_MAIN
9105 # ifdef __cplusplus
9106 extern "C"
9107 # endif
9108 int F77_DUMMY_MAIN() { return 1; }
9109 #endif
9111 main ()
9113 int i = (int)setresuid
9115 return 0;
9117 _ACEOF
9118 rm -f conftest.$ac_objext
9119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9120 (eval $ac_compile) 2>&5
9121 ac_status=$?
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -s conftest.$ac_objext'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 (eval $ac_try) 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 ac_cv_have_setresuid_decl=yes
9131 else
9132 echo "$as_me: failed program was:" >&5
9133 cat conftest.$ac_ext >&5
9134 ac_cv_have_setresuid_decl=no
9136 rm -f conftest.$ac_objext conftest.$ac_ext
9138 echo "$as_me:$LINENO: result: $ac_cv_have_setresuid_decl" >&5
9139 echo "${ECHO_T}$ac_cv_have_setresuid_decl" >&6
9140 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
9142 cat >>confdefs.h <<\_ACEOF
9143 #define HAVE_SETRESUID_DECL 1
9144 _ACEOF
9149 echo "$as_me:$LINENO: checking for setresgid declaration" >&5
9150 echo $ECHO_N "checking for setresgid declaration... $ECHO_C" >&6
9151 if test "${ac_cv_have_setresgid_decl+set}" = set; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 else
9155 cat >conftest.$ac_ext <<_ACEOF
9156 #line $LINENO "configure"
9157 #include "confdefs.h"
9158 #include <unistd.h>
9159 #ifdef F77_DUMMY_MAIN
9160 # ifdef __cplusplus
9161 extern "C"
9162 # endif
9163 int F77_DUMMY_MAIN() { return 1; }
9164 #endif
9166 main ()
9168 int i = (int)setresgid
9170 return 0;
9172 _ACEOF
9173 rm -f conftest.$ac_objext
9174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9175 (eval $ac_compile) 2>&5
9176 ac_status=$?
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try='test -s conftest.$ac_objext'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181 (eval $ac_try) 2>&5
9182 ac_status=$?
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; }; then
9185 ac_cv_have_setresgid_decl=yes
9186 else
9187 echo "$as_me: failed program was:" >&5
9188 cat conftest.$ac_ext >&5
9189 ac_cv_have_setresgid_decl=no
9191 rm -f conftest.$ac_objext conftest.$ac_ext
9193 echo "$as_me:$LINENO: result: $ac_cv_have_setresgid_decl" >&5
9194 echo "${ECHO_T}$ac_cv_have_setresgid_decl" >&6
9195 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
9197 cat >>confdefs.h <<\_ACEOF
9198 #define HAVE_SETRESGID_DECL 1
9199 _ACEOF
9204 echo "$as_me:$LINENO: checking for asprintf declaration" >&5
9205 echo $ECHO_N "checking for asprintf declaration... $ECHO_C" >&6
9206 if test "${ac_cv_have_asprintf_decl+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9210 cat >conftest.$ac_ext <<_ACEOF
9211 #line $LINENO "configure"
9212 #include "confdefs.h"
9213 #include <stdio.h>
9214 #ifdef F77_DUMMY_MAIN
9215 # ifdef __cplusplus
9216 extern "C"
9217 # endif
9218 int F77_DUMMY_MAIN() { return 1; }
9219 #endif
9221 main ()
9223 int i = (int)asprintf
9225 return 0;
9227 _ACEOF
9228 rm -f conftest.$ac_objext
9229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9230 (eval $ac_compile) 2>&5
9231 ac_status=$?
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); } &&
9234 { ac_try='test -s conftest.$ac_objext'
9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236 (eval $ac_try) 2>&5
9237 ac_status=$?
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; }; then
9240 ac_cv_have_asprintf_decl=yes
9241 else
9242 echo "$as_me: failed program was:" >&5
9243 cat conftest.$ac_ext >&5
9244 ac_cv_have_asprintf_decl=no
9246 rm -f conftest.$ac_objext conftest.$ac_ext
9248 echo "$as_me:$LINENO: result: $ac_cv_have_asprintf_decl" >&5
9249 echo "${ECHO_T}$ac_cv_have_asprintf_decl" >&6
9250 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
9252 cat >>confdefs.h <<\_ACEOF
9253 #define HAVE_ASPRINTF_DECL 1
9254 _ACEOF
9259 echo "$as_me:$LINENO: checking for vasprintf declaration" >&5
9260 echo $ECHO_N "checking for vasprintf declaration... $ECHO_C" >&6
9261 if test "${ac_cv_have_vasprintf_decl+set}" = set; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9263 else
9265 cat >conftest.$ac_ext <<_ACEOF
9266 #line $LINENO "configure"
9267 #include "confdefs.h"
9268 #include <stdio.h>
9269 #ifdef F77_DUMMY_MAIN
9270 # ifdef __cplusplus
9271 extern "C"
9272 # endif
9273 int F77_DUMMY_MAIN() { return 1; }
9274 #endif
9276 main ()
9278 int i = (int)vasprintf
9280 return 0;
9282 _ACEOF
9283 rm -f conftest.$ac_objext
9284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9285 (eval $ac_compile) 2>&5
9286 ac_status=$?
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } &&
9289 { ac_try='test -s conftest.$ac_objext'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291 (eval $ac_try) 2>&5
9292 ac_status=$?
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; }; then
9295 ac_cv_have_vasprintf_decl=yes
9296 else
9297 echo "$as_me: failed program was:" >&5
9298 cat conftest.$ac_ext >&5
9299 ac_cv_have_vasprintf_decl=no
9301 rm -f conftest.$ac_objext conftest.$ac_ext
9303 echo "$as_me:$LINENO: result: $ac_cv_have_vasprintf_decl" >&5
9304 echo "${ECHO_T}$ac_cv_have_vasprintf_decl" >&6
9305 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
9307 cat >>confdefs.h <<\_ACEOF
9308 #define HAVE_VASPRINTF_DECL 1
9309 _ACEOF
9314 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
9315 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
9316 if test "${ac_cv_have_vsnprintf_decl+set}" = set; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9318 else
9320 cat >conftest.$ac_ext <<_ACEOF
9321 #line $LINENO "configure"
9322 #include "confdefs.h"
9323 #include <stdio.h>
9324 #ifdef F77_DUMMY_MAIN
9325 # ifdef __cplusplus
9326 extern "C"
9327 # endif
9328 int F77_DUMMY_MAIN() { return 1; }
9329 #endif
9331 main ()
9333 int i = (int)vsnprintf
9335 return 0;
9337 _ACEOF
9338 rm -f conftest.$ac_objext
9339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9340 (eval $ac_compile) 2>&5
9341 ac_status=$?
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); } &&
9344 { ac_try='test -s conftest.$ac_objext'
9345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346 (eval $ac_try) 2>&5
9347 ac_status=$?
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; }; then
9350 ac_cv_have_vsnprintf_decl=yes
9351 else
9352 echo "$as_me: failed program was:" >&5
9353 cat conftest.$ac_ext >&5
9354 ac_cv_have_vsnprintf_decl=no
9356 rm -f conftest.$ac_objext conftest.$ac_ext
9358 echo "$as_me:$LINENO: result: $ac_cv_have_vsnprintf_decl" >&5
9359 echo "${ECHO_T}$ac_cv_have_vsnprintf_decl" >&6
9360 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
9362 cat >>confdefs.h <<\_ACEOF
9363 #define HAVE_VSNPRINTF_DECL 1
9364 _ACEOF
9369 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
9370 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
9371 if test "${ac_cv_have_snprintf_decl+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9373 else
9375 cat >conftest.$ac_ext <<_ACEOF
9376 #line $LINENO "configure"
9377 #include "confdefs.h"
9378 #include <stdio.h>
9379 #ifdef F77_DUMMY_MAIN
9380 # ifdef __cplusplus
9381 extern "C"
9382 # endif
9383 int F77_DUMMY_MAIN() { return 1; }
9384 #endif
9386 main ()
9388 int i = (int)snprintf
9390 return 0;
9392 _ACEOF
9393 rm -f conftest.$ac_objext
9394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9395 (eval $ac_compile) 2>&5
9396 ac_status=$?
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } &&
9399 { ac_try='test -s conftest.$ac_objext'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 (eval $ac_try) 2>&5
9402 ac_status=$?
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; }; then
9405 ac_cv_have_snprintf_decl=yes
9406 else
9407 echo "$as_me: failed program was:" >&5
9408 cat conftest.$ac_ext >&5
9409 ac_cv_have_snprintf_decl=no
9411 rm -f conftest.$ac_objext conftest.$ac_ext
9413 echo "$as_me:$LINENO: result: $ac_cv_have_snprintf_decl" >&5
9414 echo "${ECHO_T}$ac_cv_have_snprintf_decl" >&6
9415 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
9417 cat >>confdefs.h <<\_ACEOF
9418 #define HAVE_SNPRINTF_DECL 1
9419 _ACEOF
9424 # and glibc has setresuid under linux but the function does
9425 # nothing until kernel 2.1.44! very dumb.
9426 echo "$as_me:$LINENO: checking for real setresuid" >&5
9427 echo $ECHO_N "checking for real setresuid... $ECHO_C" >&6
9428 if test "${samba_cv_have_setresuid+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 else
9432 if test "$cross_compiling" = yes; then
9433 samba_cv_have_setresuid=cross
9434 else
9435 cat >conftest.$ac_ext <<_ACEOF
9436 #line $LINENO "configure"
9437 #include "confdefs.h"
9438 #include <errno.h>
9439 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
9440 _ACEOF
9441 rm -f conftest$ac_exeext
9442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9443 (eval $ac_link) 2>&5
9444 ac_status=$?
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448 (eval $ac_try) 2>&5
9449 ac_status=$?
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); }; }; then
9452 samba_cv_have_setresuid=yes
9453 else
9454 echo "$as_me: program exited with status $ac_status" >&5
9455 echo "$as_me: failed program was:" >&5
9456 cat conftest.$ac_ext >&5
9457 ( exit $ac_status )
9458 samba_cv_have_setresuid=no
9460 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9463 echo "$as_me:$LINENO: result: $samba_cv_have_setresuid" >&5
9464 echo "${ECHO_T}$samba_cv_have_setresuid" >&6
9465 if test x"$samba_cv_have_setresuid" = x"yes"; then
9467 cat >>confdefs.h <<\_ACEOF
9468 #define HAVE_SETRESUID 1
9469 _ACEOF
9473 # Do the same check for setresguid...
9475 echo "$as_me:$LINENO: checking for real setresgid" >&5
9476 echo $ECHO_N "checking for real setresgid... $ECHO_C" >&6
9477 if test "${samba_cv_have_setresgid+set}" = set; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9479 else
9481 if test "$cross_compiling" = yes; then
9482 samba_cv_have_setresgid=cross
9483 else
9484 cat >conftest.$ac_ext <<_ACEOF
9485 #line $LINENO "configure"
9486 #include "confdefs.h"
9487 #include <unistd.h>
9488 #include <errno.h>
9489 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
9490 _ACEOF
9491 rm -f conftest$ac_exeext
9492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9493 (eval $ac_link) 2>&5
9494 ac_status=$?
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 (eval $ac_try) 2>&5
9499 ac_status=$?
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; }; then
9502 samba_cv_have_setresgid=yes
9503 else
9504 echo "$as_me: program exited with status $ac_status" >&5
9505 echo "$as_me: failed program was:" >&5
9506 cat conftest.$ac_ext >&5
9507 ( exit $ac_status )
9508 samba_cv_have_setresgid=no
9510 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9513 echo "$as_me:$LINENO: result: $samba_cv_have_setresgid" >&5
9514 echo "${ECHO_T}$samba_cv_have_setresgid" >&6
9515 if test x"$samba_cv_have_setresgid" = x"yes"; then
9517 cat >>confdefs.h <<\_ACEOF
9518 #define HAVE_SETRESGID 1
9519 _ACEOF
9523 echo "$as_me:$LINENO: checking for working memcmp" >&5
9524 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9525 if test "${ac_cv_func_memcmp_working+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9527 else
9528 if test "$cross_compiling" = yes; then
9529 ac_cv_func_memcmp_working=no
9530 else
9531 cat >conftest.$ac_ext <<_ACEOF
9532 #line $LINENO "configure"
9533 #include "confdefs.h"
9535 #ifdef F77_DUMMY_MAIN
9536 # ifdef __cplusplus
9537 extern "C"
9538 # endif
9539 int F77_DUMMY_MAIN() { return 1; }
9540 #endif
9542 main ()
9545 /* Some versions of memcmp are not 8-bit clean. */
9546 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9547 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9548 exit (1);
9550 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9551 or more and with at least one buffer not starting on a 4-byte boundary.
9552 William Lewis provided this test program. */
9554 char foo[21];
9555 char bar[21];
9556 int i;
9557 for (i = 0; i < 4; i++)
9559 char *a = foo + i;
9560 char *b = bar + i;
9561 strcpy (a, "--------01111111");
9562 strcpy (b, "--------10000000");
9563 if (memcmp (a, b, 16) >= 0)
9564 exit (1);
9566 exit (0);
9570 return 0;
9572 _ACEOF
9573 rm -f conftest$ac_exeext
9574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575 (eval $ac_link) 2>&5
9576 ac_status=$?
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 (eval $ac_try) 2>&5
9581 ac_status=$?
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 ac_cv_func_memcmp_working=yes
9585 else
9586 echo "$as_me: program exited with status $ac_status" >&5
9587 echo "$as_me: failed program was:" >&5
9588 cat conftest.$ac_ext >&5
9589 ( exit $ac_status )
9590 ac_cv_func_memcmp_working=no
9592 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9595 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9596 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9597 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9600 ###############################################
9601 # test for where we get crypt() from
9602 echo "$as_me:$LINENO: checking for library containing crypt" >&5
9603 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
9604 if test "${ac_cv_search_crypt+set}" = set; then
9605 echo $ECHO_N "(cached) $ECHO_C" >&6
9606 else
9607 ac_func_search_save_LIBS=$LIBS
9608 ac_cv_search_crypt=no
9609 cat >conftest.$ac_ext <<_ACEOF
9610 #line $LINENO "configure"
9611 #include "confdefs.h"
9613 /* Override any gcc2 internal prototype to avoid an error. */
9614 #ifdef __cplusplus
9615 extern "C"
9616 #endif
9617 /* We use char because int might match the return type of a gcc2
9618 builtin and then its argument prototype would still apply. */
9619 char crypt ();
9620 #ifdef F77_DUMMY_MAIN
9621 # ifdef __cplusplus
9622 extern "C"
9623 # endif
9624 int F77_DUMMY_MAIN() { return 1; }
9625 #endif
9627 main ()
9629 crypt ();
9631 return 0;
9633 _ACEOF
9634 rm -f conftest.$ac_objext conftest$ac_exeext
9635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9636 (eval $ac_link) 2>&5
9637 ac_status=$?
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } &&
9640 { ac_try='test -s conftest$ac_exeext'
9641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642 (eval $ac_try) 2>&5
9643 ac_status=$?
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; }; then
9646 ac_cv_search_crypt="none required"
9647 else
9648 echo "$as_me: failed program was:" >&5
9649 cat conftest.$ac_ext >&5
9651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9652 if test "$ac_cv_search_crypt" = no; then
9653 for ac_lib in crypt; do
9654 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9655 cat >conftest.$ac_ext <<_ACEOF
9656 #line $LINENO "configure"
9657 #include "confdefs.h"
9659 /* Override any gcc2 internal prototype to avoid an error. */
9660 #ifdef __cplusplus
9661 extern "C"
9662 #endif
9663 /* We use char because int might match the return type of a gcc2
9664 builtin and then its argument prototype would still apply. */
9665 char crypt ();
9666 #ifdef F77_DUMMY_MAIN
9667 # ifdef __cplusplus
9668 extern "C"
9669 # endif
9670 int F77_DUMMY_MAIN() { return 1; }
9671 #endif
9673 main ()
9675 crypt ();
9677 return 0;
9679 _ACEOF
9680 rm -f conftest.$ac_objext conftest$ac_exeext
9681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9682 (eval $ac_link) 2>&5
9683 ac_status=$?
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } &&
9686 { ac_try='test -s conftest$ac_exeext'
9687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688 (eval $ac_try) 2>&5
9689 ac_status=$?
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; }; then
9692 ac_cv_search_crypt="-l$ac_lib"
9693 break
9694 else
9695 echo "$as_me: failed program was:" >&5
9696 cat conftest.$ac_ext >&5
9698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9699 done
9701 LIBS=$ac_func_search_save_LIBS
9703 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
9704 echo "${ECHO_T}$ac_cv_search_crypt" >&6
9705 if test "$ac_cv_search_crypt" != no; then
9706 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
9707 AUTHLIBS="$AUTHLIBS -lcrypt";
9709 cat >>confdefs.h <<\_ACEOF
9710 #define HAVE_CRYPT 1
9711 _ACEOF
9716 ###############################################
9717 # Readline included by default unless explicitly asked not to
9718 test "${with_readline+set}" != "set" && with_readline=yes
9720 # test for where we get readline() from
9721 echo "$as_me:$LINENO: checking whether to use readline" >&5
9722 echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6
9724 # Check whether --with-readline or --without-readline was given.
9725 if test "${with_readline+set}" = set; then
9726 withval="$with_readline"
9727 case "$with_readline" in
9728 yes)
9729 echo "$as_me:$LINENO: result: yes" >&5
9730 echo "${ECHO_T}yes" >&6
9735 for ac_header in readline.h history.h readline/readline.h
9737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9739 echo "$as_me:$LINENO: checking for $ac_header" >&5
9740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9746 else
9747 # Is the header compilable?
9748 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9750 cat >conftest.$ac_ext <<_ACEOF
9751 #line $LINENO "configure"
9752 #include "confdefs.h"
9753 $ac_includes_default
9754 #include <$ac_header>
9755 _ACEOF
9756 rm -f conftest.$ac_objext
9757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9758 (eval $ac_compile) 2>&5
9759 ac_status=$?
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } &&
9762 { ac_try='test -s conftest.$ac_objext'
9763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764 (eval $ac_try) 2>&5
9765 ac_status=$?
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; }; then
9768 ac_header_compiler=yes
9769 else
9770 echo "$as_me: failed program was:" >&5
9771 cat conftest.$ac_ext >&5
9772 ac_header_compiler=no
9774 rm -f conftest.$ac_objext conftest.$ac_ext
9775 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9776 echo "${ECHO_T}$ac_header_compiler" >&6
9778 # Is the header present?
9779 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9781 cat >conftest.$ac_ext <<_ACEOF
9782 #line $LINENO "configure"
9783 #include "confdefs.h"
9784 #include <$ac_header>
9785 _ACEOF
9786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9788 ac_status=$?
9789 egrep -v '^ *\+' conftest.er1 >conftest.err
9790 rm -f conftest.er1
9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } >/dev/null; then
9794 if test -s conftest.err; then
9795 ac_cpp_err=$ac_c_preproc_warn_flag
9796 else
9797 ac_cpp_err=
9799 else
9800 ac_cpp_err=yes
9802 if test -z "$ac_cpp_err"; then
9803 ac_header_preproc=yes
9804 else
9805 echo "$as_me: failed program was:" >&5
9806 cat conftest.$ac_ext >&5
9807 ac_header_preproc=no
9809 rm -f conftest.err conftest.$ac_ext
9810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9811 echo "${ECHO_T}$ac_header_preproc" >&6
9813 # So? What about this header?
9814 case $ac_header_compiler:$ac_header_preproc in
9815 yes:no )
9816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9820 no:yes )
9821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9824 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9827 esac
9828 echo "$as_me:$LINENO: checking for $ac_header" >&5
9829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 else
9833 eval "$as_ac_Header=$ac_header_preproc"
9835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9840 cat >>confdefs.h <<_ACEOF
9841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9842 _ACEOF
9846 done
9849 for ac_header in readline/history.h
9851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9853 echo "$as_me:$LINENO: checking for $ac_header" >&5
9854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9860 else
9861 # Is the header compilable?
9862 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9864 cat >conftest.$ac_ext <<_ACEOF
9865 #line $LINENO "configure"
9866 #include "confdefs.h"
9867 $ac_includes_default
9868 #include <$ac_header>
9869 _ACEOF
9870 rm -f conftest.$ac_objext
9871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9872 (eval $ac_compile) 2>&5
9873 ac_status=$?
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
9876 { ac_try='test -s conftest.$ac_objext'
9877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 (eval $ac_try) 2>&5
9879 ac_status=$?
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); }; }; then
9882 ac_header_compiler=yes
9883 else
9884 echo "$as_me: failed program was:" >&5
9885 cat conftest.$ac_ext >&5
9886 ac_header_compiler=no
9888 rm -f conftest.$ac_objext conftest.$ac_ext
9889 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9890 echo "${ECHO_T}$ac_header_compiler" >&6
9892 # Is the header present?
9893 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9894 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9895 cat >conftest.$ac_ext <<_ACEOF
9896 #line $LINENO "configure"
9897 #include "confdefs.h"
9898 #include <$ac_header>
9899 _ACEOF
9900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9902 ac_status=$?
9903 egrep -v '^ *\+' conftest.er1 >conftest.err
9904 rm -f conftest.er1
9905 cat conftest.err >&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } >/dev/null; then
9908 if test -s conftest.err; then
9909 ac_cpp_err=$ac_c_preproc_warn_flag
9910 else
9911 ac_cpp_err=
9913 else
9914 ac_cpp_err=yes
9916 if test -z "$ac_cpp_err"; then
9917 ac_header_preproc=yes
9918 else
9919 echo "$as_me: failed program was:" >&5
9920 cat conftest.$ac_ext >&5
9921 ac_header_preproc=no
9923 rm -f conftest.err conftest.$ac_ext
9924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9925 echo "${ECHO_T}$ac_header_preproc" >&6
9927 # So? What about this header?
9928 case $ac_header_compiler:$ac_header_preproc in
9929 yes:no )
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9934 no:yes )
9935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9938 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9941 esac
9942 echo "$as_me:$LINENO: checking for $ac_header" >&5
9943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 else
9947 eval "$as_ac_Header=$ac_header_preproc"
9949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9954 cat >>confdefs.h <<_ACEOF
9955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9956 _ACEOF
9960 done
9965 for ac_header in readline.h readline/readline.h
9967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9969 echo "$as_me:$LINENO: checking for $ac_header" >&5
9970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9976 else
9977 # Is the header compilable?
9978 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9980 cat >conftest.$ac_ext <<_ACEOF
9981 #line $LINENO "configure"
9982 #include "confdefs.h"
9983 $ac_includes_default
9984 #include <$ac_header>
9985 _ACEOF
9986 rm -f conftest.$ac_objext
9987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9988 (eval $ac_compile) 2>&5
9989 ac_status=$?
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } &&
9992 { ac_try='test -s conftest.$ac_objext'
9993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9994 (eval $ac_try) 2>&5
9995 ac_status=$?
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; }; then
9998 ac_header_compiler=yes
9999 else
10000 echo "$as_me: failed program was:" >&5
10001 cat conftest.$ac_ext >&5
10002 ac_header_compiler=no
10004 rm -f conftest.$ac_objext conftest.$ac_ext
10005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10006 echo "${ECHO_T}$ac_header_compiler" >&6
10008 # Is the header present?
10009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10011 cat >conftest.$ac_ext <<_ACEOF
10012 #line $LINENO "configure"
10013 #include "confdefs.h"
10014 #include <$ac_header>
10015 _ACEOF
10016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10018 ac_status=$?
10019 egrep -v '^ *\+' conftest.er1 >conftest.err
10020 rm -f conftest.er1
10021 cat conftest.err >&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); } >/dev/null; then
10024 if test -s conftest.err; then
10025 ac_cpp_err=$ac_c_preproc_warn_flag
10026 else
10027 ac_cpp_err=
10029 else
10030 ac_cpp_err=yes
10032 if test -z "$ac_cpp_err"; then
10033 ac_header_preproc=yes
10034 else
10035 echo "$as_me: failed program was:" >&5
10036 cat conftest.$ac_ext >&5
10037 ac_header_preproc=no
10039 rm -f conftest.err conftest.$ac_ext
10040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10041 echo "${ECHO_T}$ac_header_preproc" >&6
10043 # So? What about this header?
10044 case $ac_header_compiler:$ac_header_preproc in
10045 yes:no )
10046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10050 no:yes )
10051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10054 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10057 esac
10058 echo "$as_me:$LINENO: checking for $ac_header" >&5
10059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10062 else
10063 eval "$as_ac_Header=$ac_header_preproc"
10065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10070 cat >>confdefs.h <<_ACEOF
10071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10072 _ACEOF
10074 for termlib in ncurses curses termcap terminfo termlib; do
10075 as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
10076 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
10077 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
10078 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10080 else
10081 ac_check_lib_save_LIBS=$LIBS
10082 LIBS="-l${termlib} $LIBS"
10083 cat >conftest.$ac_ext <<_ACEOF
10084 #line $LINENO "configure"
10085 #include "confdefs.h"
10087 /* Override any gcc2 internal prototype to avoid an error. */
10088 #ifdef __cplusplus
10089 extern "C"
10090 #endif
10091 /* We use char because int might match the return type of a gcc2
10092 builtin and then its argument prototype would still apply. */
10093 char tgetent ();
10094 #ifdef F77_DUMMY_MAIN
10095 # ifdef __cplusplus
10096 extern "C"
10097 # endif
10098 int F77_DUMMY_MAIN() { return 1; }
10099 #endif
10101 main ()
10103 tgetent ();
10105 return 0;
10107 _ACEOF
10108 rm -f conftest.$ac_objext conftest$ac_exeext
10109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10110 (eval $ac_link) 2>&5
10111 ac_status=$?
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } &&
10114 { ac_try='test -s conftest$ac_exeext'
10115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116 (eval $ac_try) 2>&5
10117 ac_status=$?
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; }; then
10120 eval "$as_ac_Lib=yes"
10121 else
10122 echo "$as_me: failed program was:" >&5
10123 cat conftest.$ac_ext >&5
10124 eval "$as_ac_Lib=no"
10126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10127 LIBS=$ac_check_lib_save_LIBS
10129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10130 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10131 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10132 TERMLIBS="-l${termlib}"; break
10135 done
10136 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
10137 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
10138 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
10139 echo $ECHO_N "(cached) $ECHO_C" >&6
10140 else
10141 ac_check_lib_save_LIBS=$LIBS
10142 LIBS="-lreadline $TERMLIBS $LIBS"
10143 cat >conftest.$ac_ext <<_ACEOF
10144 #line $LINENO "configure"
10145 #include "confdefs.h"
10147 /* Override any gcc2 internal prototype to avoid an error. */
10148 #ifdef __cplusplus
10149 extern "C"
10150 #endif
10151 /* We use char because int might match the return type of a gcc2
10152 builtin and then its argument prototype would still apply. */
10153 char rl_callback_handler_install ();
10154 #ifdef F77_DUMMY_MAIN
10155 # ifdef __cplusplus
10156 extern "C"
10157 # endif
10158 int F77_DUMMY_MAIN() { return 1; }
10159 #endif
10161 main ()
10163 rl_callback_handler_install ();
10165 return 0;
10167 _ACEOF
10168 rm -f conftest.$ac_objext conftest$ac_exeext
10169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10170 (eval $ac_link) 2>&5
10171 ac_status=$?
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
10174 { ac_try='test -s conftest$ac_exeext'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10177 ac_status=$?
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; }; then
10180 ac_cv_lib_readline_rl_callback_handler_install=yes
10181 else
10182 echo "$as_me: failed program was:" >&5
10183 cat conftest.$ac_ext >&5
10184 ac_cv_lib_readline_rl_callback_handler_install=no
10186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10187 LIBS=$ac_check_lib_save_LIBS
10189 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
10190 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
10191 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
10192 TERMLIBS="-lreadline $TERMLIBS"
10194 cat >>confdefs.h <<\_ACEOF
10195 #define HAVE_LIBREADLINE 1
10196 _ACEOF
10198 break
10199 else
10200 TERMLIBS=
10205 done
10209 echo "$as_me:$LINENO: result: no" >&5
10210 echo "${ECHO_T}no" >&6
10213 echo "$as_me:$LINENO: result: yes" >&5
10214 echo "${ECHO_T}yes" >&6
10216 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
10217 # alternate readline path
10218 _ldflags=${LDFLAGS}
10219 _cppflags=${CPPFLAGS}
10221 # Add additional search path
10222 LDFLAGS="-L$with_readline/lib $LDFLAGS"
10223 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
10228 for ac_header in readline.h history.h readline/readline.h
10230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10232 echo "$as_me:$LINENO: checking for $ac_header" >&5
10233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10239 else
10240 # Is the header compilable?
10241 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10243 cat >conftest.$ac_ext <<_ACEOF
10244 #line $LINENO "configure"
10245 #include "confdefs.h"
10246 $ac_includes_default
10247 #include <$ac_header>
10248 _ACEOF
10249 rm -f conftest.$ac_objext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10251 (eval $ac_compile) 2>&5
10252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -s conftest.$ac_objext'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 ac_header_compiler=yes
10262 else
10263 echo "$as_me: failed program was:" >&5
10264 cat conftest.$ac_ext >&5
10265 ac_header_compiler=no
10267 rm -f conftest.$ac_objext conftest.$ac_ext
10268 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10269 echo "${ECHO_T}$ac_header_compiler" >&6
10271 # Is the header present?
10272 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10273 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10274 cat >conftest.$ac_ext <<_ACEOF
10275 #line $LINENO "configure"
10276 #include "confdefs.h"
10277 #include <$ac_header>
10278 _ACEOF
10279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10281 ac_status=$?
10282 egrep -v '^ *\+' conftest.er1 >conftest.err
10283 rm -f conftest.er1
10284 cat conftest.err >&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); } >/dev/null; then
10287 if test -s conftest.err; then
10288 ac_cpp_err=$ac_c_preproc_warn_flag
10289 else
10290 ac_cpp_err=
10292 else
10293 ac_cpp_err=yes
10295 if test -z "$ac_cpp_err"; then
10296 ac_header_preproc=yes
10297 else
10298 echo "$as_me: failed program was:" >&5
10299 cat conftest.$ac_ext >&5
10300 ac_header_preproc=no
10302 rm -f conftest.err conftest.$ac_ext
10303 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10304 echo "${ECHO_T}$ac_header_preproc" >&6
10306 # So? What about this header?
10307 case $ac_header_compiler:$ac_header_preproc in
10308 yes:no )
10309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10313 no:yes )
10314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10317 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10320 esac
10321 echo "$as_me:$LINENO: checking for $ac_header" >&5
10322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10325 else
10326 eval "$as_ac_Header=$ac_header_preproc"
10328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10333 cat >>confdefs.h <<_ACEOF
10334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10335 _ACEOF
10339 done
10342 for ac_header in readline/history.h
10344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10346 echo "$as_me:$LINENO: checking for $ac_header" >&5
10347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10353 else
10354 # Is the header compilable?
10355 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10357 cat >conftest.$ac_ext <<_ACEOF
10358 #line $LINENO "configure"
10359 #include "confdefs.h"
10360 $ac_includes_default
10361 #include <$ac_header>
10362 _ACEOF
10363 rm -f conftest.$ac_objext
10364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10365 (eval $ac_compile) 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } &&
10369 { ac_try='test -s conftest.$ac_objext'
10370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371 (eval $ac_try) 2>&5
10372 ac_status=$?
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; }; then
10375 ac_header_compiler=yes
10376 else
10377 echo "$as_me: failed program was:" >&5
10378 cat conftest.$ac_ext >&5
10379 ac_header_compiler=no
10381 rm -f conftest.$ac_objext conftest.$ac_ext
10382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10383 echo "${ECHO_T}$ac_header_compiler" >&6
10385 # Is the header present?
10386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10388 cat >conftest.$ac_ext <<_ACEOF
10389 #line $LINENO "configure"
10390 #include "confdefs.h"
10391 #include <$ac_header>
10392 _ACEOF
10393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10395 ac_status=$?
10396 egrep -v '^ *\+' conftest.er1 >conftest.err
10397 rm -f conftest.er1
10398 cat conftest.err >&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } >/dev/null; then
10401 if test -s conftest.err; then
10402 ac_cpp_err=$ac_c_preproc_warn_flag
10403 else
10404 ac_cpp_err=
10406 else
10407 ac_cpp_err=yes
10409 if test -z "$ac_cpp_err"; then
10410 ac_header_preproc=yes
10411 else
10412 echo "$as_me: failed program was:" >&5
10413 cat conftest.$ac_ext >&5
10414 ac_header_preproc=no
10416 rm -f conftest.err conftest.$ac_ext
10417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10418 echo "${ECHO_T}$ac_header_preproc" >&6
10420 # So? What about this header?
10421 case $ac_header_compiler:$ac_header_preproc in
10422 yes:no )
10423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10427 no:yes )
10428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10434 esac
10435 echo "$as_me:$LINENO: checking for $ac_header" >&5
10436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
10439 else
10440 eval "$as_ac_Header=$ac_header_preproc"
10442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10447 cat >>confdefs.h <<_ACEOF
10448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10449 _ACEOF
10453 done
10458 for ac_header in readline.h readline/readline.h
10460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10462 echo "$as_me:$LINENO: checking for $ac_header" >&5
10463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10465 echo $ECHO_N "(cached) $ECHO_C" >&6
10467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10469 else
10470 # Is the header compilable?
10471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10473 cat >conftest.$ac_ext <<_ACEOF
10474 #line $LINENO "configure"
10475 #include "confdefs.h"
10476 $ac_includes_default
10477 #include <$ac_header>
10478 _ACEOF
10479 rm -f conftest.$ac_objext
10480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10481 (eval $ac_compile) 2>&5
10482 ac_status=$?
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); } &&
10485 { ac_try='test -s conftest.$ac_objext'
10486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487 (eval $ac_try) 2>&5
10488 ac_status=$?
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; }; then
10491 ac_header_compiler=yes
10492 else
10493 echo "$as_me: failed program was:" >&5
10494 cat conftest.$ac_ext >&5
10495 ac_header_compiler=no
10497 rm -f conftest.$ac_objext conftest.$ac_ext
10498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10499 echo "${ECHO_T}$ac_header_compiler" >&6
10501 # Is the header present?
10502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10504 cat >conftest.$ac_ext <<_ACEOF
10505 #line $LINENO "configure"
10506 #include "confdefs.h"
10507 #include <$ac_header>
10508 _ACEOF
10509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10511 ac_status=$?
10512 egrep -v '^ *\+' conftest.er1 >conftest.err
10513 rm -f conftest.er1
10514 cat conftest.err >&5
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); } >/dev/null; then
10517 if test -s conftest.err; then
10518 ac_cpp_err=$ac_c_preproc_warn_flag
10519 else
10520 ac_cpp_err=
10522 else
10523 ac_cpp_err=yes
10525 if test -z "$ac_cpp_err"; then
10526 ac_header_preproc=yes
10527 else
10528 echo "$as_me: failed program was:" >&5
10529 cat conftest.$ac_ext >&5
10530 ac_header_preproc=no
10532 rm -f conftest.err conftest.$ac_ext
10533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10534 echo "${ECHO_T}$ac_header_preproc" >&6
10536 # So? What about this header?
10537 case $ac_header_compiler:$ac_header_preproc in
10538 yes:no )
10539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10543 no:yes )
10544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10550 esac
10551 echo "$as_me:$LINENO: checking for $ac_header" >&5
10552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 else
10556 eval "$as_ac_Header=$ac_header_preproc"
10558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10563 cat >>confdefs.h <<_ACEOF
10564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10565 _ACEOF
10567 for termlib in ncurses curses termcap terminfo termlib; do
10568 as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
10569 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
10570 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
10571 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10573 else
10574 ac_check_lib_save_LIBS=$LIBS
10575 LIBS="-l${termlib} $LIBS"
10576 cat >conftest.$ac_ext <<_ACEOF
10577 #line $LINENO "configure"
10578 #include "confdefs.h"
10580 /* Override any gcc2 internal prototype to avoid an error. */
10581 #ifdef __cplusplus
10582 extern "C"
10583 #endif
10584 /* We use char because int might match the return type of a gcc2
10585 builtin and then its argument prototype would still apply. */
10586 char tgetent ();
10587 #ifdef F77_DUMMY_MAIN
10588 # ifdef __cplusplus
10589 extern "C"
10590 # endif
10591 int F77_DUMMY_MAIN() { return 1; }
10592 #endif
10594 main ()
10596 tgetent ();
10598 return 0;
10600 _ACEOF
10601 rm -f conftest.$ac_objext conftest$ac_exeext
10602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10603 (eval $ac_link) 2>&5
10604 ac_status=$?
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } &&
10607 { ac_try='test -s conftest$ac_exeext'
10608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10609 (eval $ac_try) 2>&5
10610 ac_status=$?
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); }; }; then
10613 eval "$as_ac_Lib=yes"
10614 else
10615 echo "$as_me: failed program was:" >&5
10616 cat conftest.$ac_ext >&5
10617 eval "$as_ac_Lib=no"
10619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10620 LIBS=$ac_check_lib_save_LIBS
10622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10623 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10624 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10625 TERMLIBS="-l${termlib}"; break
10628 done
10629 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
10630 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
10631 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
10633 else
10634 ac_check_lib_save_LIBS=$LIBS
10635 LIBS="-lreadline $TERMLIBS $LIBS"
10636 cat >conftest.$ac_ext <<_ACEOF
10637 #line $LINENO "configure"
10638 #include "confdefs.h"
10640 /* Override any gcc2 internal prototype to avoid an error. */
10641 #ifdef __cplusplus
10642 extern "C"
10643 #endif
10644 /* We use char because int might match the return type of a gcc2
10645 builtin and then its argument prototype would still apply. */
10646 char rl_callback_handler_install ();
10647 #ifdef F77_DUMMY_MAIN
10648 # ifdef __cplusplus
10649 extern "C"
10650 # endif
10651 int F77_DUMMY_MAIN() { return 1; }
10652 #endif
10654 main ()
10656 rl_callback_handler_install ();
10658 return 0;
10660 _ACEOF
10661 rm -f conftest.$ac_objext conftest$ac_exeext
10662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10663 (eval $ac_link) 2>&5
10664 ac_status=$?
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); } &&
10667 { ac_try='test -s conftest$ac_exeext'
10668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669 (eval $ac_try) 2>&5
10670 ac_status=$?
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; }; then
10673 ac_cv_lib_readline_rl_callback_handler_install=yes
10674 else
10675 echo "$as_me: failed program was:" >&5
10676 cat conftest.$ac_ext >&5
10677 ac_cv_lib_readline_rl_callback_handler_install=no
10679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10680 LIBS=$ac_check_lib_save_LIBS
10682 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
10683 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
10684 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
10685 TERMLDFLAGS="-L$with_readline/lib"
10686 TERMCPPFLAGS="-I$with_readline/include"
10687 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
10688 TERMLIBS="-lreadline $TERMLIBS"
10690 cat >>confdefs.h <<\_ACEOF
10691 #define HAVE_LIBREADLINE 1
10692 _ACEOF
10694 break
10695 else
10696 TERMLIBS= CPPFLAGS=$_cppflags
10701 done
10704 LDFLAGS=$_ldflags
10706 esac
10707 else
10708 echo "$as_me:$LINENO: result: no" >&5
10709 echo "${ECHO_T}no" >&6
10715 # The readline API changed slightly from readline3 to readline4, so
10716 # code will generate warnings on one of them unless we have a few
10717 # special cases.
10718 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
10719 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
10720 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
10721 echo $ECHO_N "(cached) $ECHO_C" >&6
10722 else
10723 ac_check_lib_save_LIBS=$LIBS
10724 LIBS="-lreadline $TERMLIBS $LIBS"
10725 cat >conftest.$ac_ext <<_ACEOF
10726 #line $LINENO "configure"
10727 #include "confdefs.h"
10729 /* Override any gcc2 internal prototype to avoid an error. */
10730 #ifdef __cplusplus
10731 extern "C"
10732 #endif
10733 /* We use char because int might match the return type of a gcc2
10734 builtin and then its argument prototype would still apply. */
10735 char rl_completion_matches ();
10736 #ifdef F77_DUMMY_MAIN
10737 # ifdef __cplusplus
10738 extern "C"
10739 # endif
10740 int F77_DUMMY_MAIN() { return 1; }
10741 #endif
10743 main ()
10745 rl_completion_matches ();
10747 return 0;
10749 _ACEOF
10750 rm -f conftest.$ac_objext conftest$ac_exeext
10751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10752 (eval $ac_link) 2>&5
10753 ac_status=$?
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } &&
10756 { ac_try='test -s conftest$ac_exeext'
10757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758 (eval $ac_try) 2>&5
10759 ac_status=$?
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); }; }; then
10762 ac_cv_lib_readline_rl_completion_matches=yes
10763 else
10764 echo "$as_me: failed program was:" >&5
10765 cat conftest.$ac_ext >&5
10766 ac_cv_lib_readline_rl_completion_matches=no
10768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10769 LIBS=$ac_check_lib_save_LIBS
10771 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
10772 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
10773 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
10775 cat >>confdefs.h <<\_ACEOF
10776 #define HAVE_NEW_LIBREADLINE 1
10777 _ACEOF
10782 # The following test taken from the cvs sources
10783 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
10784 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
10785 # libsocket.so which has a bad implementation of gethostbyname (it
10786 # only looks in /etc/hosts), so we only look for -lsocket if we need
10787 # it.
10789 for ac_func in connect
10791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10792 echo "$as_me:$LINENO: checking for $ac_func" >&5
10793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10794 if eval "test \"\${$as_ac_var+set}\" = set"; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10796 else
10797 cat >conftest.$ac_ext <<_ACEOF
10798 #line $LINENO "configure"
10799 #include "confdefs.h"
10800 /* System header to define __stub macros and hopefully few prototypes,
10801 which can conflict with char $ac_func (); below. */
10802 #include <assert.h>
10803 /* Override any gcc2 internal prototype to avoid an error. */
10804 #ifdef __cplusplus
10805 extern "C"
10806 #endif
10807 /* We use char because int might match the return type of a gcc2
10808 builtin and then its argument prototype would still apply. */
10809 char $ac_func ();
10810 char (*f) ();
10812 #ifdef F77_DUMMY_MAIN
10813 # ifdef __cplusplus
10814 extern "C"
10815 # endif
10816 int F77_DUMMY_MAIN() { return 1; }
10817 #endif
10819 main ()
10821 /* The GNU C library defines this for functions which it implements
10822 to always fail with ENOSYS. Some functions are actually named
10823 something starting with __ and the normal name is an alias. */
10824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10825 choke me
10826 #else
10827 f = $ac_func;
10828 #endif
10831 return 0;
10833 _ACEOF
10834 rm -f conftest.$ac_objext conftest$ac_exeext
10835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10836 (eval $ac_link) 2>&5
10837 ac_status=$?
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } &&
10840 { ac_try='test -s conftest$ac_exeext'
10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10843 ac_status=$?
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; }; then
10846 eval "$as_ac_var=yes"
10847 else
10848 echo "$as_me: failed program was:" >&5
10849 cat conftest.$ac_ext >&5
10850 eval "$as_ac_var=no"
10852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10856 if test `eval echo '${'$as_ac_var'}'` = yes; then
10857 cat >>confdefs.h <<_ACEOF
10858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10859 _ACEOF
10862 done
10864 if test x"$ac_cv_func_connect" = x"no"; then
10865 case "$LIBS" in
10866 *-lnsl*) ;;
10868 echo "$as_me:$LINENO: checking for printf in -lnsl_s" >&5
10869 echo $ECHO_N "checking for printf in -lnsl_s... $ECHO_C" >&6
10870 if test "${ac_cv_lib_nsl_s_printf+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 else
10873 ac_check_lib_save_LIBS=$LIBS
10874 LIBS="-lnsl_s $LIBS"
10875 cat >conftest.$ac_ext <<_ACEOF
10876 #line $LINENO "configure"
10877 #include "confdefs.h"
10879 /* Override any gcc2 internal prototype to avoid an error. */
10880 #ifdef __cplusplus
10881 extern "C"
10882 #endif
10883 /* We use char because int might match the return type of a gcc2
10884 builtin and then its argument prototype would still apply. */
10885 char printf ();
10886 #ifdef F77_DUMMY_MAIN
10887 # ifdef __cplusplus
10888 extern "C"
10889 # endif
10890 int F77_DUMMY_MAIN() { return 1; }
10891 #endif
10893 main ()
10895 printf ();
10897 return 0;
10899 _ACEOF
10900 rm -f conftest.$ac_objext conftest$ac_exeext
10901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10902 (eval $ac_link) 2>&5
10903 ac_status=$?
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } &&
10906 { ac_try='test -s conftest$ac_exeext'
10907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908 (eval $ac_try) 2>&5
10909 ac_status=$?
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); }; }; then
10912 ac_cv_lib_nsl_s_printf=yes
10913 else
10914 echo "$as_me: failed program was:" >&5
10915 cat conftest.$ac_ext >&5
10916 ac_cv_lib_nsl_s_printf=no
10918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10919 LIBS=$ac_check_lib_save_LIBS
10921 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_printf" >&5
10922 echo "${ECHO_T}$ac_cv_lib_nsl_s_printf" >&6
10923 if test $ac_cv_lib_nsl_s_printf = yes; then
10924 cat >>confdefs.h <<_ACEOF
10925 #define HAVE_LIBNSL_S 1
10926 _ACEOF
10928 LIBS="-lnsl_s $LIBS"
10932 esac
10933 case "$LIBS" in
10934 *-lnsl*) ;;
10936 echo "$as_me:$LINENO: checking for printf in -lnsl" >&5
10937 echo $ECHO_N "checking for printf in -lnsl... $ECHO_C" >&6
10938 if test "${ac_cv_lib_nsl_printf+set}" = set; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10940 else
10941 ac_check_lib_save_LIBS=$LIBS
10942 LIBS="-lnsl $LIBS"
10943 cat >conftest.$ac_ext <<_ACEOF
10944 #line $LINENO "configure"
10945 #include "confdefs.h"
10947 /* Override any gcc2 internal prototype to avoid an error. */
10948 #ifdef __cplusplus
10949 extern "C"
10950 #endif
10951 /* We use char because int might match the return type of a gcc2
10952 builtin and then its argument prototype would still apply. */
10953 char printf ();
10954 #ifdef F77_DUMMY_MAIN
10955 # ifdef __cplusplus
10956 extern "C"
10957 # endif
10958 int F77_DUMMY_MAIN() { return 1; }
10959 #endif
10961 main ()
10963 printf ();
10965 return 0;
10967 _ACEOF
10968 rm -f conftest.$ac_objext conftest$ac_exeext
10969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10970 (eval $ac_link) 2>&5
10971 ac_status=$?
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } &&
10974 { ac_try='test -s conftest$ac_exeext'
10975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976 (eval $ac_try) 2>&5
10977 ac_status=$?
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); }; }; then
10980 ac_cv_lib_nsl_printf=yes
10981 else
10982 echo "$as_me: failed program was:" >&5
10983 cat conftest.$ac_ext >&5
10984 ac_cv_lib_nsl_printf=no
10986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10987 LIBS=$ac_check_lib_save_LIBS
10989 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_printf" >&5
10990 echo "${ECHO_T}$ac_cv_lib_nsl_printf" >&6
10991 if test $ac_cv_lib_nsl_printf = yes; then
10992 cat >>confdefs.h <<_ACEOF
10993 #define HAVE_LIBNSL 1
10994 _ACEOF
10996 LIBS="-lnsl $LIBS"
11000 esac
11001 case "$LIBS" in
11002 *-lsocket*) ;;
11004 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
11005 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
11006 if test "${ac_cv_lib_socket_connect+set}" = set; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11008 else
11009 ac_check_lib_save_LIBS=$LIBS
11010 LIBS="-lsocket $LIBS"
11011 cat >conftest.$ac_ext <<_ACEOF
11012 #line $LINENO "configure"
11013 #include "confdefs.h"
11015 /* Override any gcc2 internal prototype to avoid an error. */
11016 #ifdef __cplusplus
11017 extern "C"
11018 #endif
11019 /* We use char because int might match the return type of a gcc2
11020 builtin and then its argument prototype would still apply. */
11021 char connect ();
11022 #ifdef F77_DUMMY_MAIN
11023 # ifdef __cplusplus
11024 extern "C"
11025 # endif
11026 int F77_DUMMY_MAIN() { return 1; }
11027 #endif
11029 main ()
11031 connect ();
11033 return 0;
11035 _ACEOF
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11038 (eval $ac_link) 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
11042 { ac_try='test -s conftest$ac_exeext'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 ac_cv_lib_socket_connect=yes
11049 else
11050 echo "$as_me: failed program was:" >&5
11051 cat conftest.$ac_ext >&5
11052 ac_cv_lib_socket_connect=no
11054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11055 LIBS=$ac_check_lib_save_LIBS
11057 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
11058 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
11059 if test $ac_cv_lib_socket_connect = yes; then
11060 cat >>confdefs.h <<_ACEOF
11061 #define HAVE_LIBSOCKET 1
11062 _ACEOF
11064 LIBS="-lsocket $LIBS"
11068 esac
11069 case "$LIBS" in
11070 *-linet*) ;;
11072 echo "$as_me:$LINENO: checking for connect in -linet" >&5
11073 echo $ECHO_N "checking for connect in -linet... $ECHO_C" >&6
11074 if test "${ac_cv_lib_inet_connect+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11076 else
11077 ac_check_lib_save_LIBS=$LIBS
11078 LIBS="-linet $LIBS"
11079 cat >conftest.$ac_ext <<_ACEOF
11080 #line $LINENO "configure"
11081 #include "confdefs.h"
11083 /* Override any gcc2 internal prototype to avoid an error. */
11084 #ifdef __cplusplus
11085 extern "C"
11086 #endif
11087 /* We use char because int might match the return type of a gcc2
11088 builtin and then its argument prototype would still apply. */
11089 char connect ();
11090 #ifdef F77_DUMMY_MAIN
11091 # ifdef __cplusplus
11092 extern "C"
11093 # endif
11094 int F77_DUMMY_MAIN() { return 1; }
11095 #endif
11097 main ()
11099 connect ();
11101 return 0;
11103 _ACEOF
11104 rm -f conftest.$ac_objext conftest$ac_exeext
11105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11106 (eval $ac_link) 2>&5
11107 ac_status=$?
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } &&
11110 { ac_try='test -s conftest$ac_exeext'
11111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112 (eval $ac_try) 2>&5
11113 ac_status=$?
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; }; then
11116 ac_cv_lib_inet_connect=yes
11117 else
11118 echo "$as_me: failed program was:" >&5
11119 cat conftest.$ac_ext >&5
11120 ac_cv_lib_inet_connect=no
11122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11123 LIBS=$ac_check_lib_save_LIBS
11125 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_connect" >&5
11126 echo "${ECHO_T}$ac_cv_lib_inet_connect" >&6
11127 if test $ac_cv_lib_inet_connect = yes; then
11128 cat >>confdefs.h <<_ACEOF
11129 #define HAVE_LIBINET 1
11130 _ACEOF
11132 LIBS="-linet $LIBS"
11136 esac
11137 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
11138 test x"$ac_cv_lib_inet_connect" = x"yes"; then
11139 # ac_cv_func_connect=yes
11140 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
11142 cat >>confdefs.h <<\_ACEOF
11143 #define HAVE_CONNECT 1
11144 _ACEOF
11149 ###############################################
11150 # test for where we get yp_get_default_domain() from
11151 echo "$as_me:$LINENO: checking for library containing yp_get_default_domain" >&5
11152 echo $ECHO_N "checking for library containing yp_get_default_domain... $ECHO_C" >&6
11153 if test "${ac_cv_search_yp_get_default_domain+set}" = set; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 else
11156 ac_func_search_save_LIBS=$LIBS
11157 ac_cv_search_yp_get_default_domain=no
11158 cat >conftest.$ac_ext <<_ACEOF
11159 #line $LINENO "configure"
11160 #include "confdefs.h"
11162 /* Override any gcc2 internal prototype to avoid an error. */
11163 #ifdef __cplusplus
11164 extern "C"
11165 #endif
11166 /* We use char because int might match the return type of a gcc2
11167 builtin and then its argument prototype would still apply. */
11168 char yp_get_default_domain ();
11169 #ifdef F77_DUMMY_MAIN
11170 # ifdef __cplusplus
11171 extern "C"
11172 # endif
11173 int F77_DUMMY_MAIN() { return 1; }
11174 #endif
11176 main ()
11178 yp_get_default_domain ();
11180 return 0;
11182 _ACEOF
11183 rm -f conftest.$ac_objext conftest$ac_exeext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11185 (eval $ac_link) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } &&
11189 { ac_try='test -s conftest$ac_exeext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_cv_search_yp_get_default_domain="none required"
11196 else
11197 echo "$as_me: failed program was:" >&5
11198 cat conftest.$ac_ext >&5
11200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11201 if test "$ac_cv_search_yp_get_default_domain" = no; then
11202 for ac_lib in nsl; do
11203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11204 cat >conftest.$ac_ext <<_ACEOF
11205 #line $LINENO "configure"
11206 #include "confdefs.h"
11208 /* Override any gcc2 internal prototype to avoid an error. */
11209 #ifdef __cplusplus
11210 extern "C"
11211 #endif
11212 /* We use char because int might match the return type of a gcc2
11213 builtin and then its argument prototype would still apply. */
11214 char yp_get_default_domain ();
11215 #ifdef F77_DUMMY_MAIN
11216 # ifdef __cplusplus
11217 extern "C"
11218 # endif
11219 int F77_DUMMY_MAIN() { return 1; }
11220 #endif
11222 main ()
11224 yp_get_default_domain ();
11226 return 0;
11228 _ACEOF
11229 rm -f conftest.$ac_objext conftest$ac_exeext
11230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11231 (eval $ac_link) 2>&5
11232 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } &&
11235 { ac_try='test -s conftest$ac_exeext'
11236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237 (eval $ac_try) 2>&5
11238 ac_status=$?
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); }; }; then
11241 ac_cv_search_yp_get_default_domain="-l$ac_lib"
11242 break
11243 else
11244 echo "$as_me: failed program was:" >&5
11245 cat conftest.$ac_ext >&5
11247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11248 done
11250 LIBS=$ac_func_search_save_LIBS
11252 echo "$as_me:$LINENO: result: $ac_cv_search_yp_get_default_domain" >&5
11253 echo "${ECHO_T}$ac_cv_search_yp_get_default_domain" >&6
11254 if test "$ac_cv_search_yp_get_default_domain" != no; then
11255 test "$ac_cv_search_yp_get_default_domain" = "none required" || LIBS="$ac_cv_search_yp_get_default_domain $LIBS"
11260 for ac_func in yp_get_default_domain
11262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11263 echo "$as_me:$LINENO: checking for $ac_func" >&5
11264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11265 if eval "test \"\${$as_ac_var+set}\" = set"; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11267 else
11268 cat >conftest.$ac_ext <<_ACEOF
11269 #line $LINENO "configure"
11270 #include "confdefs.h"
11271 /* System header to define __stub macros and hopefully few prototypes,
11272 which can conflict with char $ac_func (); below. */
11273 #include <assert.h>
11274 /* Override any gcc2 internal prototype to avoid an error. */
11275 #ifdef __cplusplus
11276 extern "C"
11277 #endif
11278 /* We use char because int might match the return type of a gcc2
11279 builtin and then its argument prototype would still apply. */
11280 char $ac_func ();
11281 char (*f) ();
11283 #ifdef F77_DUMMY_MAIN
11284 # ifdef __cplusplus
11285 extern "C"
11286 # endif
11287 int F77_DUMMY_MAIN() { return 1; }
11288 #endif
11290 main ()
11292 /* The GNU C library defines this for functions which it implements
11293 to always fail with ENOSYS. Some functions are actually named
11294 something starting with __ and the normal name is an alias. */
11295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11296 choke me
11297 #else
11298 f = $ac_func;
11299 #endif
11302 return 0;
11304 _ACEOF
11305 rm -f conftest.$ac_objext conftest$ac_exeext
11306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11307 (eval $ac_link) 2>&5
11308 ac_status=$?
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } &&
11311 { ac_try='test -s conftest$ac_exeext'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11314 ac_status=$?
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; }; then
11317 eval "$as_ac_var=yes"
11318 else
11319 echo "$as_me: failed program was:" >&5
11320 cat conftest.$ac_ext >&5
11321 eval "$as_ac_var=no"
11323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11327 if test `eval echo '${'$as_ac_var'}'` = yes; then
11328 cat >>confdefs.h <<_ACEOF
11329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11330 _ACEOF
11333 done
11336 # Check if we have execl, if not we need to compile smbrun.
11338 for ac_func in execl
11340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11341 echo "$as_me:$LINENO: checking for $ac_func" >&5
11342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11343 if eval "test \"\${$as_ac_var+set}\" = set"; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11345 else
11346 cat >conftest.$ac_ext <<_ACEOF
11347 #line $LINENO "configure"
11348 #include "confdefs.h"
11349 /* System header to define __stub macros and hopefully few prototypes,
11350 which can conflict with char $ac_func (); below. */
11351 #include <assert.h>
11352 /* Override any gcc2 internal prototype to avoid an error. */
11353 #ifdef __cplusplus
11354 extern "C"
11355 #endif
11356 /* We use char because int might match the return type of a gcc2
11357 builtin and then its argument prototype would still apply. */
11358 char $ac_func ();
11359 char (*f) ();
11361 #ifdef F77_DUMMY_MAIN
11362 # ifdef __cplusplus
11363 extern "C"
11364 # endif
11365 int F77_DUMMY_MAIN() { return 1; }
11366 #endif
11368 main ()
11370 /* The GNU C library defines this for functions which it implements
11371 to always fail with ENOSYS. Some functions are actually named
11372 something starting with __ and the normal name is an alias. */
11373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11374 choke me
11375 #else
11376 f = $ac_func;
11377 #endif
11380 return 0;
11382 _ACEOF
11383 rm -f conftest.$ac_objext conftest$ac_exeext
11384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11385 (eval $ac_link) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } &&
11389 { ac_try='test -s conftest$ac_exeext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 eval "$as_ac_var=yes"
11396 else
11397 echo "$as_me: failed program was:" >&5
11398 cat conftest.$ac_ext >&5
11399 eval "$as_ac_var=no"
11401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11405 if test `eval echo '${'$as_ac_var'}'` = yes; then
11406 cat >>confdefs.h <<_ACEOF
11407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11408 _ACEOF
11411 done
11413 if test x"$ac_cv_func_execl" = x"no"; then
11414 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbrun\$(EXEEXT)"
11436 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
11438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11439 echo "$as_me:$LINENO: checking for $ac_func" >&5
11440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11441 if eval "test \"\${$as_ac_var+set}\" = set"; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11443 else
11444 cat >conftest.$ac_ext <<_ACEOF
11445 #line $LINENO "configure"
11446 #include "confdefs.h"
11447 /* System header to define __stub macros and hopefully few prototypes,
11448 which can conflict with char $ac_func (); below. */
11449 #include <assert.h>
11450 /* Override any gcc2 internal prototype to avoid an error. */
11451 #ifdef __cplusplus
11452 extern "C"
11453 #endif
11454 /* We use char because int might match the return type of a gcc2
11455 builtin and then its argument prototype would still apply. */
11456 char $ac_func ();
11457 char (*f) ();
11459 #ifdef F77_DUMMY_MAIN
11460 # ifdef __cplusplus
11461 extern "C"
11462 # endif
11463 int F77_DUMMY_MAIN() { return 1; }
11464 #endif
11466 main ()
11468 /* The GNU C library defines this for functions which it implements
11469 to always fail with ENOSYS. Some functions are actually named
11470 something starting with __ and the normal name is an alias. */
11471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11472 choke me
11473 #else
11474 f = $ac_func;
11475 #endif
11478 return 0;
11480 _ACEOF
11481 rm -f conftest.$ac_objext conftest$ac_exeext
11482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11483 (eval $ac_link) 2>&5
11484 ac_status=$?
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } &&
11487 { ac_try='test -s conftest$ac_exeext'
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11490 ac_status=$?
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; }; then
11493 eval "$as_ac_var=yes"
11494 else
11495 echo "$as_me: failed program was:" >&5
11496 cat conftest.$ac_ext >&5
11497 eval "$as_ac_var=no"
11499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11503 if test `eval echo '${'$as_ac_var'}'` = yes; then
11504 cat >>confdefs.h <<_ACEOF
11505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11506 _ACEOF
11509 done
11522 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
11524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11525 echo "$as_me:$LINENO: checking for $ac_func" >&5
11526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11527 if eval "test \"\${$as_ac_var+set}\" = set"; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
11529 else
11530 cat >conftest.$ac_ext <<_ACEOF
11531 #line $LINENO "configure"
11532 #include "confdefs.h"
11533 /* System header to define __stub macros and hopefully few prototypes,
11534 which can conflict with char $ac_func (); below. */
11535 #include <assert.h>
11536 /* Override any gcc2 internal prototype to avoid an error. */
11537 #ifdef __cplusplus
11538 extern "C"
11539 #endif
11540 /* We use char because int might match the return type of a gcc2
11541 builtin and then its argument prototype would still apply. */
11542 char $ac_func ();
11543 char (*f) ();
11545 #ifdef F77_DUMMY_MAIN
11546 # ifdef __cplusplus
11547 extern "C"
11548 # endif
11549 int F77_DUMMY_MAIN() { return 1; }
11550 #endif
11552 main ()
11554 /* The GNU C library defines this for functions which it implements
11555 to always fail with ENOSYS. Some functions are actually named
11556 something starting with __ and the normal name is an alias. */
11557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11558 choke me
11559 #else
11560 f = $ac_func;
11561 #endif
11564 return 0;
11566 _ACEOF
11567 rm -f conftest.$ac_objext conftest$ac_exeext
11568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11569 (eval $ac_link) 2>&5
11570 ac_status=$?
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); } &&
11573 { ac_try='test -s conftest$ac_exeext'
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11576 ac_status=$?
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }; then
11579 eval "$as_ac_var=yes"
11580 else
11581 echo "$as_me: failed program was:" >&5
11582 cat conftest.$ac_ext >&5
11583 eval "$as_ac_var=no"
11585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11589 if test `eval echo '${'$as_ac_var'}'` = yes; then
11590 cat >>confdefs.h <<_ACEOF
11591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11592 _ACEOF
11595 done
11608 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
11610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11611 echo "$as_me:$LINENO: checking for $ac_func" >&5
11612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11613 if eval "test \"\${$as_ac_var+set}\" = set"; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 else
11616 cat >conftest.$ac_ext <<_ACEOF
11617 #line $LINENO "configure"
11618 #include "confdefs.h"
11619 /* System header to define __stub macros and hopefully few prototypes,
11620 which can conflict with char $ac_func (); below. */
11621 #include <assert.h>
11622 /* Override any gcc2 internal prototype to avoid an error. */
11623 #ifdef __cplusplus
11624 extern "C"
11625 #endif
11626 /* We use char because int might match the return type of a gcc2
11627 builtin and then its argument prototype would still apply. */
11628 char $ac_func ();
11629 char (*f) ();
11631 #ifdef F77_DUMMY_MAIN
11632 # ifdef __cplusplus
11633 extern "C"
11634 # endif
11635 int F77_DUMMY_MAIN() { return 1; }
11636 #endif
11638 main ()
11640 /* The GNU C library defines this for functions which it implements
11641 to always fail with ENOSYS. Some functions are actually named
11642 something starting with __ and the normal name is an alias. */
11643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11644 choke me
11645 #else
11646 f = $ac_func;
11647 #endif
11650 return 0;
11652 _ACEOF
11653 rm -f conftest.$ac_objext conftest$ac_exeext
11654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11655 (eval $ac_link) 2>&5
11656 ac_status=$?
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } &&
11659 { ac_try='test -s conftest$ac_exeext'
11660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661 (eval $ac_try) 2>&5
11662 ac_status=$?
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; }; then
11665 eval "$as_ac_var=yes"
11666 else
11667 echo "$as_me: failed program was:" >&5
11668 cat conftest.$ac_ext >&5
11669 eval "$as_ac_var=no"
11671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11674 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11675 if test `eval echo '${'$as_ac_var'}'` = yes; then
11676 cat >>confdefs.h <<_ACEOF
11677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11678 _ACEOF
11681 done
11692 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
11694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11695 echo "$as_me:$LINENO: checking for $ac_func" >&5
11696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11697 if eval "test \"\${$as_ac_var+set}\" = set"; then
11698 echo $ECHO_N "(cached) $ECHO_C" >&6
11699 else
11700 cat >conftest.$ac_ext <<_ACEOF
11701 #line $LINENO "configure"
11702 #include "confdefs.h"
11703 /* System header to define __stub macros and hopefully few prototypes,
11704 which can conflict with char $ac_func (); below. */
11705 #include <assert.h>
11706 /* Override any gcc2 internal prototype to avoid an error. */
11707 #ifdef __cplusplus
11708 extern "C"
11709 #endif
11710 /* We use char because int might match the return type of a gcc2
11711 builtin and then its argument prototype would still apply. */
11712 char $ac_func ();
11713 char (*f) ();
11715 #ifdef F77_DUMMY_MAIN
11716 # ifdef __cplusplus
11717 extern "C"
11718 # endif
11719 int F77_DUMMY_MAIN() { return 1; }
11720 #endif
11722 main ()
11724 /* The GNU C library defines this for functions which it implements
11725 to always fail with ENOSYS. Some functions are actually named
11726 something starting with __ and the normal name is an alias. */
11727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11728 choke me
11729 #else
11730 f = $ac_func;
11731 #endif
11734 return 0;
11736 _ACEOF
11737 rm -f conftest.$ac_objext conftest$ac_exeext
11738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11739 (eval $ac_link) 2>&5
11740 ac_status=$?
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); } &&
11743 { ac_try='test -s conftest$ac_exeext'
11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745 (eval $ac_try) 2>&5
11746 ac_status=$?
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; }; then
11749 eval "$as_ac_var=yes"
11750 else
11751 echo "$as_me: failed program was:" >&5
11752 cat conftest.$ac_ext >&5
11753 eval "$as_ac_var=no"
11755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11759 if test `eval echo '${'$as_ac_var'}'` = yes; then
11760 cat >>confdefs.h <<_ACEOF
11761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11762 _ACEOF
11765 done
11775 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
11777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11778 echo "$as_me:$LINENO: checking for $ac_func" >&5
11779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11780 if eval "test \"\${$as_ac_var+set}\" = set"; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11782 else
11783 cat >conftest.$ac_ext <<_ACEOF
11784 #line $LINENO "configure"
11785 #include "confdefs.h"
11786 /* System header to define __stub macros and hopefully few prototypes,
11787 which can conflict with char $ac_func (); below. */
11788 #include <assert.h>
11789 /* Override any gcc2 internal prototype to avoid an error. */
11790 #ifdef __cplusplus
11791 extern "C"
11792 #endif
11793 /* We use char because int might match the return type of a gcc2
11794 builtin and then its argument prototype would still apply. */
11795 char $ac_func ();
11796 char (*f) ();
11798 #ifdef F77_DUMMY_MAIN
11799 # ifdef __cplusplus
11800 extern "C"
11801 # endif
11802 int F77_DUMMY_MAIN() { return 1; }
11803 #endif
11805 main ()
11807 /* The GNU C library defines this for functions which it implements
11808 to always fail with ENOSYS. Some functions are actually named
11809 something starting with __ and the normal name is an alias. */
11810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11811 choke me
11812 #else
11813 f = $ac_func;
11814 #endif
11817 return 0;
11819 _ACEOF
11820 rm -f conftest.$ac_objext conftest$ac_exeext
11821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11822 (eval $ac_link) 2>&5
11823 ac_status=$?
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } &&
11826 { ac_try='test -s conftest$ac_exeext'
11827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828 (eval $ac_try) 2>&5
11829 ac_status=$?
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; }; then
11832 eval "$as_ac_var=yes"
11833 else
11834 echo "$as_me: failed program was:" >&5
11835 cat conftest.$ac_ext >&5
11836 eval "$as_ac_var=no"
11838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11842 if test `eval echo '${'$as_ac_var'}'` = yes; then
11843 cat >>confdefs.h <<_ACEOF
11844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11845 _ACEOF
11848 done
11860 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
11862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11863 echo "$as_me:$LINENO: checking for $ac_func" >&5
11864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11865 if eval "test \"\${$as_ac_var+set}\" = set"; then
11866 echo $ECHO_N "(cached) $ECHO_C" >&6
11867 else
11868 cat >conftest.$ac_ext <<_ACEOF
11869 #line $LINENO "configure"
11870 #include "confdefs.h"
11871 /* System header to define __stub macros and hopefully few prototypes,
11872 which can conflict with char $ac_func (); below. */
11873 #include <assert.h>
11874 /* Override any gcc2 internal prototype to avoid an error. */
11875 #ifdef __cplusplus
11876 extern "C"
11877 #endif
11878 /* We use char because int might match the return type of a gcc2
11879 builtin and then its argument prototype would still apply. */
11880 char $ac_func ();
11881 char (*f) ();
11883 #ifdef F77_DUMMY_MAIN
11884 # ifdef __cplusplus
11885 extern "C"
11886 # endif
11887 int F77_DUMMY_MAIN() { return 1; }
11888 #endif
11890 main ()
11892 /* The GNU C library defines this for functions which it implements
11893 to always fail with ENOSYS. Some functions are actually named
11894 something starting with __ and the normal name is an alias. */
11895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11896 choke me
11897 #else
11898 f = $ac_func;
11899 #endif
11902 return 0;
11904 _ACEOF
11905 rm -f conftest.$ac_objext conftest$ac_exeext
11906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11907 (eval $ac_link) 2>&5
11908 ac_status=$?
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } &&
11911 { ac_try='test -s conftest$ac_exeext'
11912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913 (eval $ac_try) 2>&5
11914 ac_status=$?
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; }; then
11917 eval "$as_ac_var=yes"
11918 else
11919 echo "$as_me: failed program was:" >&5
11920 cat conftest.$ac_ext >&5
11921 eval "$as_ac_var=no"
11923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11927 if test `eval echo '${'$as_ac_var'}'` = yes; then
11928 cat >>confdefs.h <<_ACEOF
11929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11930 _ACEOF
11933 done
11943 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
11945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11946 echo "$as_me:$LINENO: checking for $ac_func" >&5
11947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11948 if eval "test \"\${$as_ac_var+set}\" = set"; then
11949 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 else
11951 cat >conftest.$ac_ext <<_ACEOF
11952 #line $LINENO "configure"
11953 #include "confdefs.h"
11954 /* System header to define __stub macros and hopefully few prototypes,
11955 which can conflict with char $ac_func (); below. */
11956 #include <assert.h>
11957 /* Override any gcc2 internal prototype to avoid an error. */
11958 #ifdef __cplusplus
11959 extern "C"
11960 #endif
11961 /* We use char because int might match the return type of a gcc2
11962 builtin and then its argument prototype would still apply. */
11963 char $ac_func ();
11964 char (*f) ();
11966 #ifdef F77_DUMMY_MAIN
11967 # ifdef __cplusplus
11968 extern "C"
11969 # endif
11970 int F77_DUMMY_MAIN() { return 1; }
11971 #endif
11973 main ()
11975 /* The GNU C library defines this for functions which it implements
11976 to always fail with ENOSYS. Some functions are actually named
11977 something starting with __ and the normal name is an alias. */
11978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11979 choke me
11980 #else
11981 f = $ac_func;
11982 #endif
11985 return 0;
11987 _ACEOF
11988 rm -f conftest.$ac_objext conftest$ac_exeext
11989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11990 (eval $ac_link) 2>&5
11991 ac_status=$?
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); } &&
11994 { ac_try='test -s conftest$ac_exeext'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; }; then
12000 eval "$as_ac_var=yes"
12001 else
12002 echo "$as_me: failed program was:" >&5
12003 cat conftest.$ac_ext >&5
12004 eval "$as_ac_var=no"
12006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12010 if test `eval echo '${'$as_ac_var'}'` = yes; then
12011 cat >>confdefs.h <<_ACEOF
12012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12013 _ACEOF
12016 done
12025 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
12027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12028 echo "$as_me:$LINENO: checking for $ac_func" >&5
12029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12030 if eval "test \"\${$as_ac_var+set}\" = set"; then
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12032 else
12033 cat >conftest.$ac_ext <<_ACEOF
12034 #line $LINENO "configure"
12035 #include "confdefs.h"
12036 /* System header to define __stub macros and hopefully few prototypes,
12037 which can conflict with char $ac_func (); below. */
12038 #include <assert.h>
12039 /* Override any gcc2 internal prototype to avoid an error. */
12040 #ifdef __cplusplus
12041 extern "C"
12042 #endif
12043 /* We use char because int might match the return type of a gcc2
12044 builtin and then its argument prototype would still apply. */
12045 char $ac_func ();
12046 char (*f) ();
12048 #ifdef F77_DUMMY_MAIN
12049 # ifdef __cplusplus
12050 extern "C"
12051 # endif
12052 int F77_DUMMY_MAIN() { return 1; }
12053 #endif
12055 main ()
12057 /* The GNU C library defines this for functions which it implements
12058 to always fail with ENOSYS. Some functions are actually named
12059 something starting with __ and the normal name is an alias. */
12060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12061 choke me
12062 #else
12063 f = $ac_func;
12064 #endif
12067 return 0;
12069 _ACEOF
12070 rm -f conftest.$ac_objext conftest$ac_exeext
12071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12072 (eval $ac_link) 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } &&
12076 { ac_try='test -s conftest$ac_exeext'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 eval "$as_ac_var=yes"
12083 else
12084 echo "$as_me: failed program was:" >&5
12085 cat conftest.$ac_ext >&5
12086 eval "$as_ac_var=no"
12088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12092 if test `eval echo '${'$as_ac_var'}'` = yes; then
12093 cat >>confdefs.h <<_ACEOF
12094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12095 _ACEOF
12098 done
12111 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
12113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12114 echo "$as_me:$LINENO: checking for $ac_func" >&5
12115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12116 if eval "test \"\${$as_ac_var+set}\" = set"; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 else
12119 cat >conftest.$ac_ext <<_ACEOF
12120 #line $LINENO "configure"
12121 #include "confdefs.h"
12122 /* System header to define __stub macros and hopefully few prototypes,
12123 which can conflict with char $ac_func (); below. */
12124 #include <assert.h>
12125 /* Override any gcc2 internal prototype to avoid an error. */
12126 #ifdef __cplusplus
12127 extern "C"
12128 #endif
12129 /* We use char because int might match the return type of a gcc2
12130 builtin and then its argument prototype would still apply. */
12131 char $ac_func ();
12132 char (*f) ();
12134 #ifdef F77_DUMMY_MAIN
12135 # ifdef __cplusplus
12136 extern "C"
12137 # endif
12138 int F77_DUMMY_MAIN() { return 1; }
12139 #endif
12141 main ()
12143 /* The GNU C library defines this for functions which it implements
12144 to always fail with ENOSYS. Some functions are actually named
12145 something starting with __ and the normal name is an alias. */
12146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12147 choke me
12148 #else
12149 f = $ac_func;
12150 #endif
12153 return 0;
12155 _ACEOF
12156 rm -f conftest.$ac_objext conftest$ac_exeext
12157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12158 (eval $ac_link) 2>&5
12159 ac_status=$?
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); } &&
12162 { ac_try='test -s conftest$ac_exeext'
12163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164 (eval $ac_try) 2>&5
12165 ac_status=$?
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); }; }; then
12168 eval "$as_ac_var=yes"
12169 else
12170 echo "$as_me: failed program was:" >&5
12171 cat conftest.$ac_ext >&5
12172 eval "$as_ac_var=no"
12174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12178 if test `eval echo '${'$as_ac_var'}'` = yes; then
12179 cat >>confdefs.h <<_ACEOF
12180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12181 _ACEOF
12184 done
12190 for ac_func in syslog vsyslog getgrouplist timegm
12192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12193 echo "$as_me:$LINENO: checking for $ac_func" >&5
12194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12195 if eval "test \"\${$as_ac_var+set}\" = set"; then
12196 echo $ECHO_N "(cached) $ECHO_C" >&6
12197 else
12198 cat >conftest.$ac_ext <<_ACEOF
12199 #line $LINENO "configure"
12200 #include "confdefs.h"
12201 /* System header to define __stub macros and hopefully few prototypes,
12202 which can conflict with char $ac_func (); below. */
12203 #include <assert.h>
12204 /* Override any gcc2 internal prototype to avoid an error. */
12205 #ifdef __cplusplus
12206 extern "C"
12207 #endif
12208 /* We use char because int might match the return type of a gcc2
12209 builtin and then its argument prototype would still apply. */
12210 char $ac_func ();
12211 char (*f) ();
12213 #ifdef F77_DUMMY_MAIN
12214 # ifdef __cplusplus
12215 extern "C"
12216 # endif
12217 int F77_DUMMY_MAIN() { return 1; }
12218 #endif
12220 main ()
12222 /* The GNU C library defines this for functions which it implements
12223 to always fail with ENOSYS. Some functions are actually named
12224 something starting with __ and the normal name is an alias. */
12225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12226 choke me
12227 #else
12228 f = $ac_func;
12229 #endif
12232 return 0;
12234 _ACEOF
12235 rm -f conftest.$ac_objext conftest$ac_exeext
12236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12237 (eval $ac_link) 2>&5
12238 ac_status=$?
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } &&
12241 { ac_try='test -s conftest$ac_exeext'
12242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243 (eval $ac_try) 2>&5
12244 ac_status=$?
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); }; }; then
12247 eval "$as_ac_var=yes"
12248 else
12249 echo "$as_me: failed program was:" >&5
12250 cat conftest.$ac_ext >&5
12251 eval "$as_ac_var=no"
12253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12256 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12257 if test `eval echo '${'$as_ac_var'}'` = yes; then
12258 cat >>confdefs.h <<_ACEOF
12259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12260 _ACEOF
12263 done
12265 # setbuffer, shmget, shm_open are needed for smbtorture
12269 for ac_func in setbuffer shmget shm_open
12271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12272 echo "$as_me:$LINENO: checking for $ac_func" >&5
12273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12274 if eval "test \"\${$as_ac_var+set}\" = set"; then
12275 echo $ECHO_N "(cached) $ECHO_C" >&6
12276 else
12277 cat >conftest.$ac_ext <<_ACEOF
12278 #line $LINENO "configure"
12279 #include "confdefs.h"
12280 /* System header to define __stub macros and hopefully few prototypes,
12281 which can conflict with char $ac_func (); below. */
12282 #include <assert.h>
12283 /* Override any gcc2 internal prototype to avoid an error. */
12284 #ifdef __cplusplus
12285 extern "C"
12286 #endif
12287 /* We use char because int might match the return type of a gcc2
12288 builtin and then its argument prototype would still apply. */
12289 char $ac_func ();
12290 char (*f) ();
12292 #ifdef F77_DUMMY_MAIN
12293 # ifdef __cplusplus
12294 extern "C"
12295 # endif
12296 int F77_DUMMY_MAIN() { return 1; }
12297 #endif
12299 main ()
12301 /* The GNU C library defines this for functions which it implements
12302 to always fail with ENOSYS. Some functions are actually named
12303 something starting with __ and the normal name is an alias. */
12304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12305 choke me
12306 #else
12307 f = $ac_func;
12308 #endif
12311 return 0;
12313 _ACEOF
12314 rm -f conftest.$ac_objext conftest$ac_exeext
12315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12316 (eval $ac_link) 2>&5
12317 ac_status=$?
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } &&
12320 { ac_try='test -s conftest$ac_exeext'
12321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322 (eval $ac_try) 2>&5
12323 ac_status=$?
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }; }; then
12326 eval "$as_ac_var=yes"
12327 else
12328 echo "$as_me: failed program was:" >&5
12329 cat conftest.$ac_ext >&5
12330 eval "$as_ac_var=no"
12332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12336 if test `eval echo '${'$as_ac_var'}'` = yes; then
12337 cat >>confdefs.h <<_ACEOF
12338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12339 _ACEOF
12342 done
12345 # syscall() is needed for smbwrapper.
12347 for ac_func in syscall
12349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12350 echo "$as_me:$LINENO: checking for $ac_func" >&5
12351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12352 if eval "test \"\${$as_ac_var+set}\" = set"; then
12353 echo $ECHO_N "(cached) $ECHO_C" >&6
12354 else
12355 cat >conftest.$ac_ext <<_ACEOF
12356 #line $LINENO "configure"
12357 #include "confdefs.h"
12358 /* System header to define __stub macros and hopefully few prototypes,
12359 which can conflict with char $ac_func (); below. */
12360 #include <assert.h>
12361 /* Override any gcc2 internal prototype to avoid an error. */
12362 #ifdef __cplusplus
12363 extern "C"
12364 #endif
12365 /* We use char because int might match the return type of a gcc2
12366 builtin and then its argument prototype would still apply. */
12367 char $ac_func ();
12368 char (*f) ();
12370 #ifdef F77_DUMMY_MAIN
12371 # ifdef __cplusplus
12372 extern "C"
12373 # endif
12374 int F77_DUMMY_MAIN() { return 1; }
12375 #endif
12377 main ()
12379 /* The GNU C library defines this for functions which it implements
12380 to always fail with ENOSYS. Some functions are actually named
12381 something starting with __ and the normal name is an alias. */
12382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12383 choke me
12384 #else
12385 f = $ac_func;
12386 #endif
12389 return 0;
12391 _ACEOF
12392 rm -f conftest.$ac_objext conftest$ac_exeext
12393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12394 (eval $ac_link) 2>&5
12395 ac_status=$?
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); } &&
12398 { ac_try='test -s conftest$ac_exeext'
12399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400 (eval $ac_try) 2>&5
12401 ac_status=$?
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; }; then
12404 eval "$as_ac_var=yes"
12405 else
12406 echo "$as_me: failed program was:" >&5
12407 cat conftest.$ac_ext >&5
12408 eval "$as_ac_var=no"
12410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12414 if test `eval echo '${'$as_ac_var'}'` = yes; then
12415 cat >>confdefs.h <<_ACEOF
12416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12417 _ACEOF
12420 done
12430 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
12432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12433 echo "$as_me:$LINENO: checking for $ac_func" >&5
12434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12435 if eval "test \"\${$as_ac_var+set}\" = set"; then
12436 echo $ECHO_N "(cached) $ECHO_C" >&6
12437 else
12438 cat >conftest.$ac_ext <<_ACEOF
12439 #line $LINENO "configure"
12440 #include "confdefs.h"
12441 /* System header to define __stub macros and hopefully few prototypes,
12442 which can conflict with char $ac_func (); below. */
12443 #include <assert.h>
12444 /* Override any gcc2 internal prototype to avoid an error. */
12445 #ifdef __cplusplus
12446 extern "C"
12447 #endif
12448 /* We use char because int might match the return type of a gcc2
12449 builtin and then its argument prototype would still apply. */
12450 char $ac_func ();
12451 char (*f) ();
12453 #ifdef F77_DUMMY_MAIN
12454 # ifdef __cplusplus
12455 extern "C"
12456 # endif
12457 int F77_DUMMY_MAIN() { return 1; }
12458 #endif
12460 main ()
12462 /* The GNU C library defines this for functions which it implements
12463 to always fail with ENOSYS. Some functions are actually named
12464 something starting with __ and the normal name is an alias. */
12465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12466 choke me
12467 #else
12468 f = $ac_func;
12469 #endif
12472 return 0;
12474 _ACEOF
12475 rm -f conftest.$ac_objext conftest$ac_exeext
12476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12477 (eval $ac_link) 2>&5
12478 ac_status=$?
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } &&
12481 { ac_try='test -s conftest$ac_exeext'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; }; then
12487 eval "$as_ac_var=yes"
12488 else
12489 echo "$as_me: failed program was:" >&5
12490 cat conftest.$ac_ext >&5
12491 eval "$as_ac_var=no"
12493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12496 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12497 if test `eval echo '${'$as_ac_var'}'` = yes; then
12498 cat >>confdefs.h <<_ACEOF
12499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12500 _ACEOF
12503 done
12512 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
12514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12515 echo "$as_me:$LINENO: checking for $ac_func" >&5
12516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12517 if eval "test \"\${$as_ac_var+set}\" = set"; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 else
12520 cat >conftest.$ac_ext <<_ACEOF
12521 #line $LINENO "configure"
12522 #include "confdefs.h"
12523 /* System header to define __stub macros and hopefully few prototypes,
12524 which can conflict with char $ac_func (); below. */
12525 #include <assert.h>
12526 /* Override any gcc2 internal prototype to avoid an error. */
12527 #ifdef __cplusplus
12528 extern "C"
12529 #endif
12530 /* We use char because int might match the return type of a gcc2
12531 builtin and then its argument prototype would still apply. */
12532 char $ac_func ();
12533 char (*f) ();
12535 #ifdef F77_DUMMY_MAIN
12536 # ifdef __cplusplus
12537 extern "C"
12538 # endif
12539 int F77_DUMMY_MAIN() { return 1; }
12540 #endif
12542 main ()
12544 /* The GNU C library defines this for functions which it implements
12545 to always fail with ENOSYS. Some functions are actually named
12546 something starting with __ and the normal name is an alias. */
12547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12548 choke me
12549 #else
12550 f = $ac_func;
12551 #endif
12554 return 0;
12556 _ACEOF
12557 rm -f conftest.$ac_objext conftest$ac_exeext
12558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12559 (eval $ac_link) 2>&5
12560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try='test -s conftest$ac_exeext'
12564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565 (eval $ac_try) 2>&5
12566 ac_status=$?
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; }; then
12569 eval "$as_ac_var=yes"
12570 else
12571 echo "$as_me: failed program was:" >&5
12572 cat conftest.$ac_ext >&5
12573 eval "$as_ac_var=no"
12575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12579 if test `eval echo '${'$as_ac_var'}'` = yes; then
12580 cat >>confdefs.h <<_ACEOF
12581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12582 _ACEOF
12585 done
12589 for ac_func in __getcwd _getcwd
12591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12592 echo "$as_me:$LINENO: checking for $ac_func" >&5
12593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12594 if eval "test \"\${$as_ac_var+set}\" = set"; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596 else
12597 cat >conftest.$ac_ext <<_ACEOF
12598 #line $LINENO "configure"
12599 #include "confdefs.h"
12600 /* System header to define __stub macros and hopefully few prototypes,
12601 which can conflict with char $ac_func (); below. */
12602 #include <assert.h>
12603 /* Override any gcc2 internal prototype to avoid an error. */
12604 #ifdef __cplusplus
12605 extern "C"
12606 #endif
12607 /* We use char because int might match the return type of a gcc2
12608 builtin and then its argument prototype would still apply. */
12609 char $ac_func ();
12610 char (*f) ();
12612 #ifdef F77_DUMMY_MAIN
12613 # ifdef __cplusplus
12614 extern "C"
12615 # endif
12616 int F77_DUMMY_MAIN() { return 1; }
12617 #endif
12619 main ()
12621 /* The GNU C library defines this for functions which it implements
12622 to always fail with ENOSYS. Some functions are actually named
12623 something starting with __ and the normal name is an alias. */
12624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12625 choke me
12626 #else
12627 f = $ac_func;
12628 #endif
12631 return 0;
12633 _ACEOF
12634 rm -f conftest.$ac_objext conftest$ac_exeext
12635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12636 (eval $ac_link) 2>&5
12637 ac_status=$?
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } &&
12640 { ac_try='test -s conftest$ac_exeext'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; }; then
12646 eval "$as_ac_var=yes"
12647 else
12648 echo "$as_me: failed program was:" >&5
12649 cat conftest.$ac_ext >&5
12650 eval "$as_ac_var=no"
12652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12656 if test `eval echo '${'$as_ac_var'}'` = yes; then
12657 cat >>confdefs.h <<_ACEOF
12658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12659 _ACEOF
12662 done
12667 for ac_func in __xstat __fxstat __lxstat
12669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12670 echo "$as_me:$LINENO: checking for $ac_func" >&5
12671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12672 if eval "test \"\${$as_ac_var+set}\" = set"; then
12673 echo $ECHO_N "(cached) $ECHO_C" >&6
12674 else
12675 cat >conftest.$ac_ext <<_ACEOF
12676 #line $LINENO "configure"
12677 #include "confdefs.h"
12678 /* System header to define __stub macros and hopefully few prototypes,
12679 which can conflict with char $ac_func (); below. */
12680 #include <assert.h>
12681 /* Override any gcc2 internal prototype to avoid an error. */
12682 #ifdef __cplusplus
12683 extern "C"
12684 #endif
12685 /* We use char because int might match the return type of a gcc2
12686 builtin and then its argument prototype would still apply. */
12687 char $ac_func ();
12688 char (*f) ();
12690 #ifdef F77_DUMMY_MAIN
12691 # ifdef __cplusplus
12692 extern "C"
12693 # endif
12694 int F77_DUMMY_MAIN() { return 1; }
12695 #endif
12697 main ()
12699 /* The GNU C library defines this for functions which it implements
12700 to always fail with ENOSYS. Some functions are actually named
12701 something starting with __ and the normal name is an alias. */
12702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12703 choke me
12704 #else
12705 f = $ac_func;
12706 #endif
12709 return 0;
12711 _ACEOF
12712 rm -f conftest.$ac_objext conftest$ac_exeext
12713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12714 (eval $ac_link) 2>&5
12715 ac_status=$?
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); } &&
12718 { ac_try='test -s conftest$ac_exeext'
12719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12720 (eval $ac_try) 2>&5
12721 ac_status=$?
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); }; }; then
12724 eval "$as_ac_var=yes"
12725 else
12726 echo "$as_me: failed program was:" >&5
12727 cat conftest.$ac_ext >&5
12728 eval "$as_ac_var=no"
12730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12734 if test `eval echo '${'$as_ac_var'}'` = yes; then
12735 cat >>confdefs.h <<_ACEOF
12736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12737 _ACEOF
12740 done
12748 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
12750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12751 echo "$as_me:$LINENO: checking for $ac_func" >&5
12752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12753 if eval "test \"\${$as_ac_var+set}\" = set"; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12755 else
12756 cat >conftest.$ac_ext <<_ACEOF
12757 #line $LINENO "configure"
12758 #include "confdefs.h"
12759 /* System header to define __stub macros and hopefully few prototypes,
12760 which can conflict with char $ac_func (); below. */
12761 #include <assert.h>
12762 /* Override any gcc2 internal prototype to avoid an error. */
12763 #ifdef __cplusplus
12764 extern "C"
12765 #endif
12766 /* We use char because int might match the return type of a gcc2
12767 builtin and then its argument prototype would still apply. */
12768 char $ac_func ();
12769 char (*f) ();
12771 #ifdef F77_DUMMY_MAIN
12772 # ifdef __cplusplus
12773 extern "C"
12774 # endif
12775 int F77_DUMMY_MAIN() { return 1; }
12776 #endif
12778 main ()
12780 /* The GNU C library defines this for functions which it implements
12781 to always fail with ENOSYS. Some functions are actually named
12782 something starting with __ and the normal name is an alias. */
12783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12784 choke me
12785 #else
12786 f = $ac_func;
12787 #endif
12790 return 0;
12792 _ACEOF
12793 rm -f conftest.$ac_objext conftest$ac_exeext
12794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12795 (eval $ac_link) 2>&5
12796 ac_status=$?
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } &&
12799 { ac_try='test -s conftest$ac_exeext'
12800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12801 (eval $ac_try) 2>&5
12802 ac_status=$?
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; }; then
12805 eval "$as_ac_var=yes"
12806 else
12807 echo "$as_me: failed program was:" >&5
12808 cat conftest.$ac_ext >&5
12809 eval "$as_ac_var=no"
12811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12815 if test `eval echo '${'$as_ac_var'}'` = yes; then
12816 cat >>confdefs.h <<_ACEOF
12817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12818 _ACEOF
12821 done
12831 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
12833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12834 echo "$as_me:$LINENO: checking for $ac_func" >&5
12835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12836 if eval "test \"\${$as_ac_var+set}\" = set"; then
12837 echo $ECHO_N "(cached) $ECHO_C" >&6
12838 else
12839 cat >conftest.$ac_ext <<_ACEOF
12840 #line $LINENO "configure"
12841 #include "confdefs.h"
12842 /* System header to define __stub macros and hopefully few prototypes,
12843 which can conflict with char $ac_func (); below. */
12844 #include <assert.h>
12845 /* Override any gcc2 internal prototype to avoid an error. */
12846 #ifdef __cplusplus
12847 extern "C"
12848 #endif
12849 /* We use char because int might match the return type of a gcc2
12850 builtin and then its argument prototype would still apply. */
12851 char $ac_func ();
12852 char (*f) ();
12854 #ifdef F77_DUMMY_MAIN
12855 # ifdef __cplusplus
12856 extern "C"
12857 # endif
12858 int F77_DUMMY_MAIN() { return 1; }
12859 #endif
12861 main ()
12863 /* The GNU C library defines this for functions which it implements
12864 to always fail with ENOSYS. Some functions are actually named
12865 something starting with __ and the normal name is an alias. */
12866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12867 choke me
12868 #else
12869 f = $ac_func;
12870 #endif
12873 return 0;
12875 _ACEOF
12876 rm -f conftest.$ac_objext conftest$ac_exeext
12877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12878 (eval $ac_link) 2>&5
12879 ac_status=$?
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } &&
12882 { ac_try='test -s conftest$ac_exeext'
12883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884 (eval $ac_try) 2>&5
12885 ac_status=$?
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; }; then
12888 eval "$as_ac_var=yes"
12889 else
12890 echo "$as_me: failed program was:" >&5
12891 cat conftest.$ac_ext >&5
12892 eval "$as_ac_var=no"
12894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12898 if test `eval echo '${'$as_ac_var'}'` = yes; then
12899 cat >>confdefs.h <<_ACEOF
12900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12901 _ACEOF
12904 done
12912 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
12914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12915 echo "$as_me:$LINENO: checking for $ac_func" >&5
12916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12917 if eval "test \"\${$as_ac_var+set}\" = set"; then
12918 echo $ECHO_N "(cached) $ECHO_C" >&6
12919 else
12920 cat >conftest.$ac_ext <<_ACEOF
12921 #line $LINENO "configure"
12922 #include "confdefs.h"
12923 /* System header to define __stub macros and hopefully few prototypes,
12924 which can conflict with char $ac_func (); below. */
12925 #include <assert.h>
12926 /* Override any gcc2 internal prototype to avoid an error. */
12927 #ifdef __cplusplus
12928 extern "C"
12929 #endif
12930 /* We use char because int might match the return type of a gcc2
12931 builtin and then its argument prototype would still apply. */
12932 char $ac_func ();
12933 char (*f) ();
12935 #ifdef F77_DUMMY_MAIN
12936 # ifdef __cplusplus
12937 extern "C"
12938 # endif
12939 int F77_DUMMY_MAIN() { return 1; }
12940 #endif
12942 main ()
12944 /* The GNU C library defines this for functions which it implements
12945 to always fail with ENOSYS. Some functions are actually named
12946 something starting with __ and the normal name is an alias. */
12947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12948 choke me
12949 #else
12950 f = $ac_func;
12951 #endif
12954 return 0;
12956 _ACEOF
12957 rm -f conftest.$ac_objext conftest$ac_exeext
12958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12959 (eval $ac_link) 2>&5
12960 ac_status=$?
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } &&
12963 { ac_try='test -s conftest$ac_exeext'
12964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12965 (eval $ac_try) 2>&5
12966 ac_status=$?
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); }; }; then
12969 eval "$as_ac_var=yes"
12970 else
12971 echo "$as_me: failed program was:" >&5
12972 cat conftest.$ac_ext >&5
12973 eval "$as_ac_var=no"
12975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12979 if test `eval echo '${'$as_ac_var'}'` = yes; then
12980 cat >>confdefs.h <<_ACEOF
12981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12982 _ACEOF
12985 done
12994 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
12996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12997 echo "$as_me:$LINENO: checking for $ac_func" >&5
12998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12999 if eval "test \"\${$as_ac_var+set}\" = set"; then
13000 echo $ECHO_N "(cached) $ECHO_C" >&6
13001 else
13002 cat >conftest.$ac_ext <<_ACEOF
13003 #line $LINENO "configure"
13004 #include "confdefs.h"
13005 /* System header to define __stub macros and hopefully few prototypes,
13006 which can conflict with char $ac_func (); below. */
13007 #include <assert.h>
13008 /* Override any gcc2 internal prototype to avoid an error. */
13009 #ifdef __cplusplus
13010 extern "C"
13011 #endif
13012 /* We use char because int might match the return type of a gcc2
13013 builtin and then its argument prototype would still apply. */
13014 char $ac_func ();
13015 char (*f) ();
13017 #ifdef F77_DUMMY_MAIN
13018 # ifdef __cplusplus
13019 extern "C"
13020 # endif
13021 int F77_DUMMY_MAIN() { return 1; }
13022 #endif
13024 main ()
13026 /* The GNU C library defines this for functions which it implements
13027 to always fail with ENOSYS. Some functions are actually named
13028 something starting with __ and the normal name is an alias. */
13029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13030 choke me
13031 #else
13032 f = $ac_func;
13033 #endif
13036 return 0;
13038 _ACEOF
13039 rm -f conftest.$ac_objext conftest$ac_exeext
13040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13041 (eval $ac_link) 2>&5
13042 ac_status=$?
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } &&
13045 { ac_try='test -s conftest$ac_exeext'
13046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13047 (eval $ac_try) 2>&5
13048 ac_status=$?
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; }; then
13051 eval "$as_ac_var=yes"
13052 else
13053 echo "$as_me: failed program was:" >&5
13054 cat conftest.$ac_ext >&5
13055 eval "$as_ac_var=no"
13057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13061 if test `eval echo '${'$as_ac_var'}'` = yes; then
13062 cat >>confdefs.h <<_ACEOF
13063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13064 _ACEOF
13067 done
13073 for ac_func in _write __write _fork __fork
13075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13076 echo "$as_me:$LINENO: checking for $ac_func" >&5
13077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13078 if eval "test \"\${$as_ac_var+set}\" = set"; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
13080 else
13081 cat >conftest.$ac_ext <<_ACEOF
13082 #line $LINENO "configure"
13083 #include "confdefs.h"
13084 /* System header to define __stub macros and hopefully few prototypes,
13085 which can conflict with char $ac_func (); below. */
13086 #include <assert.h>
13087 /* Override any gcc2 internal prototype to avoid an error. */
13088 #ifdef __cplusplus
13089 extern "C"
13090 #endif
13091 /* We use char because int might match the return type of a gcc2
13092 builtin and then its argument prototype would still apply. */
13093 char $ac_func ();
13094 char (*f) ();
13096 #ifdef F77_DUMMY_MAIN
13097 # ifdef __cplusplus
13098 extern "C"
13099 # endif
13100 int F77_DUMMY_MAIN() { return 1; }
13101 #endif
13103 main ()
13105 /* The GNU C library defines this for functions which it implements
13106 to always fail with ENOSYS. Some functions are actually named
13107 something starting with __ and the normal name is an alias. */
13108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13109 choke me
13110 #else
13111 f = $ac_func;
13112 #endif
13115 return 0;
13117 _ACEOF
13118 rm -f conftest.$ac_objext conftest$ac_exeext
13119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13120 (eval $ac_link) 2>&5
13121 ac_status=$?
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); } &&
13124 { ac_try='test -s conftest$ac_exeext'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; }; then
13130 eval "$as_ac_var=yes"
13131 else
13132 echo "$as_me: failed program was:" >&5
13133 cat conftest.$ac_ext >&5
13134 eval "$as_ac_var=no"
13136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13140 if test `eval echo '${'$as_ac_var'}'` = yes; then
13141 cat >>confdefs.h <<_ACEOF
13142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13143 _ACEOF
13146 done
13154 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
13156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13157 echo "$as_me:$LINENO: checking for $ac_func" >&5
13158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13159 if eval "test \"\${$as_ac_var+set}\" = set"; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13161 else
13162 cat >conftest.$ac_ext <<_ACEOF
13163 #line $LINENO "configure"
13164 #include "confdefs.h"
13165 /* System header to define __stub macros and hopefully few prototypes,
13166 which can conflict with char $ac_func (); below. */
13167 #include <assert.h>
13168 /* Override any gcc2 internal prototype to avoid an error. */
13169 #ifdef __cplusplus
13170 extern "C"
13171 #endif
13172 /* We use char because int might match the return type of a gcc2
13173 builtin and then its argument prototype would still apply. */
13174 char $ac_func ();
13175 char (*f) ();
13177 #ifdef F77_DUMMY_MAIN
13178 # ifdef __cplusplus
13179 extern "C"
13180 # endif
13181 int F77_DUMMY_MAIN() { return 1; }
13182 #endif
13184 main ()
13186 /* The GNU C library defines this for functions which it implements
13187 to always fail with ENOSYS. Some functions are actually named
13188 something starting with __ and the normal name is an alias. */
13189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13190 choke me
13191 #else
13192 f = $ac_func;
13193 #endif
13196 return 0;
13198 _ACEOF
13199 rm -f conftest.$ac_objext conftest$ac_exeext
13200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13201 (eval $ac_link) 2>&5
13202 ac_status=$?
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } &&
13205 { ac_try='test -s conftest$ac_exeext'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13208 ac_status=$?
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; }; then
13211 eval "$as_ac_var=yes"
13212 else
13213 echo "$as_me: failed program was:" >&5
13214 cat conftest.$ac_ext >&5
13215 eval "$as_ac_var=no"
13217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13221 if test `eval echo '${'$as_ac_var'}'` = yes; then
13222 cat >>confdefs.h <<_ACEOF
13223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13224 _ACEOF
13227 done
13236 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
13238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13239 echo "$as_me:$LINENO: checking for $ac_func" >&5
13240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13241 if eval "test \"\${$as_ac_var+set}\" = set"; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 else
13244 cat >conftest.$ac_ext <<_ACEOF
13245 #line $LINENO "configure"
13246 #include "confdefs.h"
13247 /* System header to define __stub macros and hopefully few prototypes,
13248 which can conflict with char $ac_func (); below. */
13249 #include <assert.h>
13250 /* Override any gcc2 internal prototype to avoid an error. */
13251 #ifdef __cplusplus
13252 extern "C"
13253 #endif
13254 /* We use char because int might match the return type of a gcc2
13255 builtin and then its argument prototype would still apply. */
13256 char $ac_func ();
13257 char (*f) ();
13259 #ifdef F77_DUMMY_MAIN
13260 # ifdef __cplusplus
13261 extern "C"
13262 # endif
13263 int F77_DUMMY_MAIN() { return 1; }
13264 #endif
13266 main ()
13268 /* The GNU C library defines this for functions which it implements
13269 to always fail with ENOSYS. Some functions are actually named
13270 something starting with __ and the normal name is an alias. */
13271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13272 choke me
13273 #else
13274 f = $ac_func;
13275 #endif
13278 return 0;
13280 _ACEOF
13281 rm -f conftest.$ac_objext conftest$ac_exeext
13282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13283 (eval $ac_link) 2>&5
13284 ac_status=$?
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } &&
13287 { ac_try='test -s conftest$ac_exeext'
13288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289 (eval $ac_try) 2>&5
13290 ac_status=$?
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; }; then
13293 eval "$as_ac_var=yes"
13294 else
13295 echo "$as_me: failed program was:" >&5
13296 cat conftest.$ac_ext >&5
13297 eval "$as_ac_var=no"
13299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13302 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13303 if test `eval echo '${'$as_ac_var'}'` = yes; then
13304 cat >>confdefs.h <<_ACEOF
13305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13306 _ACEOF
13309 done
13317 for ac_func in pread _pread __pread pread64 _pread64 __pread64
13319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13320 echo "$as_me:$LINENO: checking for $ac_func" >&5
13321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13322 if eval "test \"\${$as_ac_var+set}\" = set"; then
13323 echo $ECHO_N "(cached) $ECHO_C" >&6
13324 else
13325 cat >conftest.$ac_ext <<_ACEOF
13326 #line $LINENO "configure"
13327 #include "confdefs.h"
13328 /* System header to define __stub macros and hopefully few prototypes,
13329 which can conflict with char $ac_func (); below. */
13330 #include <assert.h>
13331 /* Override any gcc2 internal prototype to avoid an error. */
13332 #ifdef __cplusplus
13333 extern "C"
13334 #endif
13335 /* We use char because int might match the return type of a gcc2
13336 builtin and then its argument prototype would still apply. */
13337 char $ac_func ();
13338 char (*f) ();
13340 #ifdef F77_DUMMY_MAIN
13341 # ifdef __cplusplus
13342 extern "C"
13343 # endif
13344 int F77_DUMMY_MAIN() { return 1; }
13345 #endif
13347 main ()
13349 /* The GNU C library defines this for functions which it implements
13350 to always fail with ENOSYS. Some functions are actually named
13351 something starting with __ and the normal name is an alias. */
13352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13353 choke me
13354 #else
13355 f = $ac_func;
13356 #endif
13359 return 0;
13361 _ACEOF
13362 rm -f conftest.$ac_objext conftest$ac_exeext
13363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13364 (eval $ac_link) 2>&5
13365 ac_status=$?
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } &&
13368 { ac_try='test -s conftest$ac_exeext'
13369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370 (eval $ac_try) 2>&5
13371 ac_status=$?
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; }; then
13374 eval "$as_ac_var=yes"
13375 else
13376 echo "$as_me: failed program was:" >&5
13377 cat conftest.$ac_ext >&5
13378 eval "$as_ac_var=no"
13380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13383 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13384 if test `eval echo '${'$as_ac_var'}'` = yes; then
13385 cat >>confdefs.h <<_ACEOF
13386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13387 _ACEOF
13390 done
13398 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
13400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13401 echo "$as_me:$LINENO: checking for $ac_func" >&5
13402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13403 if eval "test \"\${$as_ac_var+set}\" = set"; then
13404 echo $ECHO_N "(cached) $ECHO_C" >&6
13405 else
13406 cat >conftest.$ac_ext <<_ACEOF
13407 #line $LINENO "configure"
13408 #include "confdefs.h"
13409 /* System header to define __stub macros and hopefully few prototypes,
13410 which can conflict with char $ac_func (); below. */
13411 #include <assert.h>
13412 /* Override any gcc2 internal prototype to avoid an error. */
13413 #ifdef __cplusplus
13414 extern "C"
13415 #endif
13416 /* We use char because int might match the return type of a gcc2
13417 builtin and then its argument prototype would still apply. */
13418 char $ac_func ();
13419 char (*f) ();
13421 #ifdef F77_DUMMY_MAIN
13422 # ifdef __cplusplus
13423 extern "C"
13424 # endif
13425 int F77_DUMMY_MAIN() { return 1; }
13426 #endif
13428 main ()
13430 /* The GNU C library defines this for functions which it implements
13431 to always fail with ENOSYS. Some functions are actually named
13432 something starting with __ and the normal name is an alias. */
13433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13434 choke me
13435 #else
13436 f = $ac_func;
13437 #endif
13440 return 0;
13442 _ACEOF
13443 rm -f conftest.$ac_objext conftest$ac_exeext
13444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13445 (eval $ac_link) 2>&5
13446 ac_status=$?
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } &&
13449 { ac_try='test -s conftest$ac_exeext'
13450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13451 (eval $ac_try) 2>&5
13452 ac_status=$?
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); }; }; then
13455 eval "$as_ac_var=yes"
13456 else
13457 echo "$as_me: failed program was:" >&5
13458 cat conftest.$ac_ext >&5
13459 eval "$as_ac_var=no"
13461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13465 if test `eval echo '${'$as_ac_var'}'` = yes; then
13466 cat >>confdefs.h <<_ACEOF
13467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13468 _ACEOF
13471 done
13477 for ac_func in open64 _open64 __open64 creat64
13479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13480 echo "$as_me:$LINENO: checking for $ac_func" >&5
13481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13482 if eval "test \"\${$as_ac_var+set}\" = set"; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
13484 else
13485 cat >conftest.$ac_ext <<_ACEOF
13486 #line $LINENO "configure"
13487 #include "confdefs.h"
13488 /* System header to define __stub macros and hopefully few prototypes,
13489 which can conflict with char $ac_func (); below. */
13490 #include <assert.h>
13491 /* Override any gcc2 internal prototype to avoid an error. */
13492 #ifdef __cplusplus
13493 extern "C"
13494 #endif
13495 /* We use char because int might match the return type of a gcc2
13496 builtin and then its argument prototype would still apply. */
13497 char $ac_func ();
13498 char (*f) ();
13500 #ifdef F77_DUMMY_MAIN
13501 # ifdef __cplusplus
13502 extern "C"
13503 # endif
13504 int F77_DUMMY_MAIN() { return 1; }
13505 #endif
13507 main ()
13509 /* The GNU C library defines this for functions which it implements
13510 to always fail with ENOSYS. Some functions are actually named
13511 something starting with __ and the normal name is an alias. */
13512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13513 choke me
13514 #else
13515 f = $ac_func;
13516 #endif
13519 return 0;
13521 _ACEOF
13522 rm -f conftest.$ac_objext conftest$ac_exeext
13523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13524 (eval $ac_link) 2>&5
13525 ac_status=$?
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } &&
13528 { ac_try='test -s conftest$ac_exeext'
13529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530 (eval $ac_try) 2>&5
13531 ac_status=$?
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); }; }; then
13534 eval "$as_ac_var=yes"
13535 else
13536 echo "$as_me: failed program was:" >&5
13537 cat conftest.$ac_ext >&5
13538 eval "$as_ac_var=no"
13540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13544 if test `eval echo '${'$as_ac_var'}'` = yes; then
13545 cat >>confdefs.h <<_ACEOF
13546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13547 _ACEOF
13550 done
13554 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
13557 if test x$ac_cv_func_stat64 = xno ; then
13558 echo "$as_me:$LINENO: checking for stat64 in <sys/stat.h>" >&5
13559 echo $ECHO_N "checking for stat64 in <sys/stat.h>... $ECHO_C" >&6
13560 cat >conftest.$ac_ext <<_ACEOF
13561 #line $LINENO "configure"
13562 #include "confdefs.h"
13564 #if defined(HAVE_UNISTD_H)
13565 #include <unistd.h>
13566 #endif
13567 #include <sys/stat.h>
13569 #ifdef F77_DUMMY_MAIN
13570 # ifdef __cplusplus
13571 extern "C"
13572 # endif
13573 int F77_DUMMY_MAIN() { return 1; }
13574 #endif
13576 main ()
13578 struct stat64 st64; exit(stat64(".",&st64));
13580 return 0;
13582 _ACEOF
13583 rm -f conftest.$ac_objext conftest$ac_exeext
13584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13585 (eval $ac_link) 2>&5
13586 ac_status=$?
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); } &&
13589 { ac_try='test -s conftest$ac_exeext'
13590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13591 (eval $ac_try) 2>&5
13592 ac_status=$?
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; }; then
13595 ac_cv_func_stat64=yes
13596 else
13597 echo "$as_me: failed program was:" >&5
13598 cat conftest.$ac_ext >&5
13600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13601 echo "$as_me:$LINENO: result: $ac_cv_func_stat64" >&5
13602 echo "${ECHO_T}$ac_cv_func_stat64" >&6
13603 if test x$ac_cv_func_stat64 = xyes ; then
13605 cat >>confdefs.h <<\_ACEOF
13606 #define HAVE_STAT64 1
13607 _ACEOF
13612 if test x$ac_cv_func_lstat64 = xno ; then
13613 echo "$as_me:$LINENO: checking for lstat64 in <sys/stat.h>" >&5
13614 echo $ECHO_N "checking for lstat64 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(lstat64(".",&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_lstat64=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_lstat64" >&5
13657 echo "${ECHO_T}$ac_cv_func_lstat64" >&6
13658 if test x$ac_cv_func_lstat64 = xyes ; then
13659 cat >>confdefs.h <<\_ACEOF
13660 #define HAVE_LSTAT64 Whether lstat64() is available
13661 _ACEOF
13666 if test x$ac_cv_func_fstat64 = xno ; then
13667 echo "$as_me:$LINENO: checking for fstat64 in <sys/stat.h>" >&5
13668 echo $ECHO_N "checking for fstat64 in <sys/stat.h>... $ECHO_C" >&6
13669 cat >conftest.$ac_ext <<_ACEOF
13670 #line $LINENO "configure"
13671 #include "confdefs.h"
13673 #if defined(HAVE_UNISTD_H)
13674 #include <unistd.h>
13675 #endif
13676 #include <sys/stat.h>
13678 #ifdef F77_DUMMY_MAIN
13679 # ifdef __cplusplus
13680 extern "C"
13681 # endif
13682 int F77_DUMMY_MAIN() { return 1; }
13683 #endif
13685 main ()
13687 struct stat64 st64; exit(fstat64(0,&st64));
13689 return 0;
13691 _ACEOF
13692 rm -f conftest.$ac_objext conftest$ac_exeext
13693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13694 (eval $ac_link) 2>&5
13695 ac_status=$?
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } &&
13698 { ac_try='test -s conftest$ac_exeext'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }; then
13704 ac_cv_func_fstat64=yes
13705 else
13706 echo "$as_me: failed program was:" >&5
13707 cat conftest.$ac_ext >&5
13709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13710 echo "$as_me:$LINENO: result: $ac_cv_func_fstat64" >&5
13711 echo "${ECHO_T}$ac_cv_func_fstat64" >&6
13712 if test x$ac_cv_func_fstat64 = xyes ; then
13714 cat >>confdefs.h <<\_ACEOF
13715 #define HAVE_FSTAT64 1
13716 _ACEOF
13721 #####################################
13722 # we might need the resolv library on some systems
13724 echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
13725 echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
13726 if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13728 else
13729 ac_check_lib_save_LIBS=$LIBS
13730 LIBS="-lresolv $LIBS"
13731 cat >conftest.$ac_ext <<_ACEOF
13732 #line $LINENO "configure"
13733 #include "confdefs.h"
13735 /* Override any gcc2 internal prototype to avoid an error. */
13736 #ifdef __cplusplus
13737 extern "C"
13738 #endif
13739 /* We use char because int might match the return type of a gcc2
13740 builtin and then its argument prototype would still apply. */
13741 char dn_expand ();
13742 #ifdef F77_DUMMY_MAIN
13743 # ifdef __cplusplus
13744 extern "C"
13745 # endif
13746 int F77_DUMMY_MAIN() { return 1; }
13747 #endif
13749 main ()
13751 dn_expand ();
13753 return 0;
13755 _ACEOF
13756 rm -f conftest.$ac_objext conftest$ac_exeext
13757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13758 (eval $ac_link) 2>&5
13759 ac_status=$?
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); } &&
13762 { ac_try='test -s conftest$ac_exeext'
13763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764 (eval $ac_try) 2>&5
13765 ac_status=$?
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; }; then
13768 ac_cv_lib_resolv_dn_expand=yes
13769 else
13770 echo "$as_me: failed program was:" >&5
13771 cat conftest.$ac_ext >&5
13772 ac_cv_lib_resolv_dn_expand=no
13774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13775 LIBS=$ac_check_lib_save_LIBS
13777 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
13778 echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
13779 if test $ac_cv_lib_resolv_dn_expand = yes; then
13780 cat >>confdefs.h <<_ACEOF
13781 #define HAVE_LIBRESOLV 1
13782 _ACEOF
13784 LIBS="-lresolv $LIBS"
13790 # Check for the functions putprpwnam, set_auth_parameters,
13791 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
13792 # Needed for OSF1 and HPUX.
13795 case "$LIBS" in
13796 *-lsecurity*)
13797 for ac_func in putprpwnam
13799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13800 echo "$as_me:$LINENO: checking for $ac_func" >&5
13801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13802 if eval "test \"\${$as_ac_var+set}\" = set"; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
13804 else
13805 cat >conftest.$ac_ext <<_ACEOF
13806 #line $LINENO "configure"
13807 #include "confdefs.h"
13808 /* System header to define __stub macros and hopefully few prototypes,
13809 which can conflict with char $ac_func (); below. */
13810 #include <assert.h>
13811 /* Override any gcc2 internal prototype to avoid an error. */
13812 #ifdef __cplusplus
13813 extern "C"
13814 #endif
13815 /* We use char because int might match the return type of a gcc2
13816 builtin and then its argument prototype would still apply. */
13817 char $ac_func ();
13818 char (*f) ();
13820 #ifdef F77_DUMMY_MAIN
13821 # ifdef __cplusplus
13822 extern "C"
13823 # endif
13824 int F77_DUMMY_MAIN() { return 1; }
13825 #endif
13827 main ()
13829 /* The GNU C library defines this for functions which it implements
13830 to always fail with ENOSYS. Some functions are actually named
13831 something starting with __ and the normal name is an alias. */
13832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13833 choke me
13834 #else
13835 f = $ac_func;
13836 #endif
13839 return 0;
13841 _ACEOF
13842 rm -f conftest.$ac_objext conftest$ac_exeext
13843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13844 (eval $ac_link) 2>&5
13845 ac_status=$?
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
13848 { ac_try='test -s conftest$ac_exeext'
13849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13851 ac_status=$?
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
13854 eval "$as_ac_var=yes"
13855 else
13856 echo "$as_me: failed program was:" >&5
13857 cat conftest.$ac_ext >&5
13858 eval "$as_ac_var=no"
13860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13863 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13864 if test `eval echo '${'$as_ac_var'}'` = yes; then
13865 cat >>confdefs.h <<_ACEOF
13866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13867 _ACEOF
13870 done
13873 echo "$as_me:$LINENO: checking for putprpwnam in -lsecurity" >&5
13874 echo $ECHO_N "checking for putprpwnam in -lsecurity... $ECHO_C" >&6
13875 if test "${ac_cv_lib_security_putprpwnam+set}" = set; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13877 else
13878 ac_check_lib_save_LIBS=$LIBS
13879 LIBS="-lsecurity $LIBS"
13880 cat >conftest.$ac_ext <<_ACEOF
13881 #line $LINENO "configure"
13882 #include "confdefs.h"
13884 /* Override any gcc2 internal prototype to avoid an error. */
13885 #ifdef __cplusplus
13886 extern "C"
13887 #endif
13888 /* We use char because int might match the return type of a gcc2
13889 builtin and then its argument prototype would still apply. */
13890 char putprpwnam ();
13891 #ifdef F77_DUMMY_MAIN
13892 # ifdef __cplusplus
13893 extern "C"
13894 # endif
13895 int F77_DUMMY_MAIN() { return 1; }
13896 #endif
13898 main ()
13900 putprpwnam ();
13902 return 0;
13904 _ACEOF
13905 rm -f conftest.$ac_objext conftest$ac_exeext
13906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13907 (eval $ac_link) 2>&5
13908 ac_status=$?
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } &&
13911 { ac_try='test -s conftest$ac_exeext'
13912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13913 (eval $ac_try) 2>&5
13914 ac_status=$?
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; }; then
13917 ac_cv_lib_security_putprpwnam=yes
13918 else
13919 echo "$as_me: failed program was:" >&5
13920 cat conftest.$ac_ext >&5
13921 ac_cv_lib_security_putprpwnam=no
13923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13924 LIBS=$ac_check_lib_save_LIBS
13926 echo "$as_me:$LINENO: result: $ac_cv_lib_security_putprpwnam" >&5
13927 echo "${ECHO_T}$ac_cv_lib_security_putprpwnam" >&6
13928 if test $ac_cv_lib_security_putprpwnam = yes; then
13929 cat >>confdefs.h <<_ACEOF
13930 #define HAVE_LIBSECURITY 1
13931 _ACEOF
13933 LIBS="-lsecurity $LIBS"
13938 for ac_func in putprpwnam
13940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13941 echo "$as_me:$LINENO: checking for $ac_func" >&5
13942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13943 if eval "test \"\${$as_ac_var+set}\" = set"; then
13944 echo $ECHO_N "(cached) $ECHO_C" >&6
13945 else
13946 cat >conftest.$ac_ext <<_ACEOF
13947 #line $LINENO "configure"
13948 #include "confdefs.h"
13949 /* System header to define __stub macros and hopefully few prototypes,
13950 which can conflict with char $ac_func (); below. */
13951 #include <assert.h>
13952 /* Override any gcc2 internal prototype to avoid an error. */
13953 #ifdef __cplusplus
13954 extern "C"
13955 #endif
13956 /* We use char because int might match the return type of a gcc2
13957 builtin and then its argument prototype would still apply. */
13958 char $ac_func ();
13959 char (*f) ();
13961 #ifdef F77_DUMMY_MAIN
13962 # ifdef __cplusplus
13963 extern "C"
13964 # endif
13965 int F77_DUMMY_MAIN() { return 1; }
13966 #endif
13968 main ()
13970 /* The GNU C library defines this for functions which it implements
13971 to always fail with ENOSYS. Some functions are actually named
13972 something starting with __ and the normal name is an alias. */
13973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13974 choke me
13975 #else
13976 f = $ac_func;
13977 #endif
13980 return 0;
13982 _ACEOF
13983 rm -f conftest.$ac_objext conftest$ac_exeext
13984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13985 (eval $ac_link) 2>&5
13986 ac_status=$?
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } &&
13989 { ac_try='test -s conftest$ac_exeext'
13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; }; then
13995 eval "$as_ac_var=yes"
13996 else
13997 echo "$as_me: failed program was:" >&5
13998 cat conftest.$ac_ext >&5
13999 eval "$as_ac_var=no"
14001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14004 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14005 if test `eval echo '${'$as_ac_var'}'` = yes; then
14006 cat >>confdefs.h <<_ACEOF
14007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14008 _ACEOF
14011 done
14014 esac
14016 case "$LIBS" in
14017 *-lsec*)
14018 for ac_func in putprpwnam
14020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14021 echo "$as_me:$LINENO: checking for $ac_func" >&5
14022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14023 if eval "test \"\${$as_ac_var+set}\" = set"; then
14024 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 else
14026 cat >conftest.$ac_ext <<_ACEOF
14027 #line $LINENO "configure"
14028 #include "confdefs.h"
14029 /* System header to define __stub macros and hopefully few prototypes,
14030 which can conflict with char $ac_func (); below. */
14031 #include <assert.h>
14032 /* Override any gcc2 internal prototype to avoid an error. */
14033 #ifdef __cplusplus
14034 extern "C"
14035 #endif
14036 /* We use char because int might match the return type of a gcc2
14037 builtin and then its argument prototype would still apply. */
14038 char $ac_func ();
14039 char (*f) ();
14041 #ifdef F77_DUMMY_MAIN
14042 # ifdef __cplusplus
14043 extern "C"
14044 # endif
14045 int F77_DUMMY_MAIN() { return 1; }
14046 #endif
14048 main ()
14050 /* The GNU C library defines this for functions which it implements
14051 to always fail with ENOSYS. Some functions are actually named
14052 something starting with __ and the normal name is an alias. */
14053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14054 choke me
14055 #else
14056 f = $ac_func;
14057 #endif
14060 return 0;
14062 _ACEOF
14063 rm -f conftest.$ac_objext conftest$ac_exeext
14064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14065 (eval $ac_link) 2>&5
14066 ac_status=$?
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } &&
14069 { ac_try='test -s conftest$ac_exeext'
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14072 ac_status=$?
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; }; then
14075 eval "$as_ac_var=yes"
14076 else
14077 echo "$as_me: failed program was:" >&5
14078 cat conftest.$ac_ext >&5
14079 eval "$as_ac_var=no"
14081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14085 if test `eval echo '${'$as_ac_var'}'` = yes; then
14086 cat >>confdefs.h <<_ACEOF
14087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14088 _ACEOF
14091 done
14094 echo "$as_me:$LINENO: checking for putprpwnam in -lsec" >&5
14095 echo $ECHO_N "checking for putprpwnam in -lsec... $ECHO_C" >&6
14096 if test "${ac_cv_lib_sec_putprpwnam+set}" = set; then
14097 echo $ECHO_N "(cached) $ECHO_C" >&6
14098 else
14099 ac_check_lib_save_LIBS=$LIBS
14100 LIBS="-lsec $LIBS"
14101 cat >conftest.$ac_ext <<_ACEOF
14102 #line $LINENO "configure"
14103 #include "confdefs.h"
14105 /* Override any gcc2 internal prototype to avoid an error. */
14106 #ifdef __cplusplus
14107 extern "C"
14108 #endif
14109 /* We use char because int might match the return type of a gcc2
14110 builtin and then its argument prototype would still apply. */
14111 char putprpwnam ();
14112 #ifdef F77_DUMMY_MAIN
14113 # ifdef __cplusplus
14114 extern "C"
14115 # endif
14116 int F77_DUMMY_MAIN() { return 1; }
14117 #endif
14119 main ()
14121 putprpwnam ();
14123 return 0;
14125 _ACEOF
14126 rm -f conftest.$ac_objext conftest$ac_exeext
14127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14128 (eval $ac_link) 2>&5
14129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); } &&
14132 { ac_try='test -s conftest$ac_exeext'
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14135 ac_status=$?
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; }; then
14138 ac_cv_lib_sec_putprpwnam=yes
14139 else
14140 echo "$as_me: failed program was:" >&5
14141 cat conftest.$ac_ext >&5
14142 ac_cv_lib_sec_putprpwnam=no
14144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14145 LIBS=$ac_check_lib_save_LIBS
14147 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_putprpwnam" >&5
14148 echo "${ECHO_T}$ac_cv_lib_sec_putprpwnam" >&6
14149 if test $ac_cv_lib_sec_putprpwnam = yes; then
14150 cat >>confdefs.h <<_ACEOF
14151 #define HAVE_LIBSEC 1
14152 _ACEOF
14154 LIBS="-lsec $LIBS"
14159 for ac_func in putprpwnam
14161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14162 echo "$as_me:$LINENO: checking for $ac_func" >&5
14163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14164 if eval "test \"\${$as_ac_var+set}\" = set"; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14166 else
14167 cat >conftest.$ac_ext <<_ACEOF
14168 #line $LINENO "configure"
14169 #include "confdefs.h"
14170 /* System header to define __stub macros and hopefully few prototypes,
14171 which can conflict with char $ac_func (); below. */
14172 #include <assert.h>
14173 /* Override any gcc2 internal prototype to avoid an error. */
14174 #ifdef __cplusplus
14175 extern "C"
14176 #endif
14177 /* We use char because int might match the return type of a gcc2
14178 builtin and then its argument prototype would still apply. */
14179 char $ac_func ();
14180 char (*f) ();
14182 #ifdef F77_DUMMY_MAIN
14183 # ifdef __cplusplus
14184 extern "C"
14185 # endif
14186 int F77_DUMMY_MAIN() { return 1; }
14187 #endif
14189 main ()
14191 /* The GNU C library defines this for functions which it implements
14192 to always fail with ENOSYS. Some functions are actually named
14193 something starting with __ and the normal name is an alias. */
14194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14195 choke me
14196 #else
14197 f = $ac_func;
14198 #endif
14201 return 0;
14203 _ACEOF
14204 rm -f conftest.$ac_objext conftest$ac_exeext
14205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14206 (eval $ac_link) 2>&5
14207 ac_status=$?
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } &&
14210 { ac_try='test -s conftest$ac_exeext'
14211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14212 (eval $ac_try) 2>&5
14213 ac_status=$?
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; }; then
14216 eval "$as_ac_var=yes"
14217 else
14218 echo "$as_me: failed program was:" >&5
14219 cat conftest.$ac_ext >&5
14220 eval "$as_ac_var=no"
14222 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14226 if test `eval echo '${'$as_ac_var'}'` = yes; then
14227 cat >>confdefs.h <<_ACEOF
14228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14229 _ACEOF
14232 done
14235 esac
14238 case "$LIBS" in
14239 *-lsecurity*)
14240 for ac_func in set_auth_parameters
14242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14243 echo "$as_me:$LINENO: checking for $ac_func" >&5
14244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14245 if eval "test \"\${$as_ac_var+set}\" = set"; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14247 else
14248 cat >conftest.$ac_ext <<_ACEOF
14249 #line $LINENO "configure"
14250 #include "confdefs.h"
14251 /* System header to define __stub macros and hopefully few prototypes,
14252 which can conflict with char $ac_func (); below. */
14253 #include <assert.h>
14254 /* Override any gcc2 internal prototype to avoid an error. */
14255 #ifdef __cplusplus
14256 extern "C"
14257 #endif
14258 /* We use char because int might match the return type of a gcc2
14259 builtin and then its argument prototype would still apply. */
14260 char $ac_func ();
14261 char (*f) ();
14263 #ifdef F77_DUMMY_MAIN
14264 # ifdef __cplusplus
14265 extern "C"
14266 # endif
14267 int F77_DUMMY_MAIN() { return 1; }
14268 #endif
14270 main ()
14272 /* The GNU C library defines this for functions which it implements
14273 to always fail with ENOSYS. Some functions are actually named
14274 something starting with __ and the normal name is an alias. */
14275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14276 choke me
14277 #else
14278 f = $ac_func;
14279 #endif
14282 return 0;
14284 _ACEOF
14285 rm -f conftest.$ac_objext conftest$ac_exeext
14286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14287 (eval $ac_link) 2>&5
14288 ac_status=$?
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } &&
14291 { ac_try='test -s conftest$ac_exeext'
14292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293 (eval $ac_try) 2>&5
14294 ac_status=$?
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); }; }; then
14297 eval "$as_ac_var=yes"
14298 else
14299 echo "$as_me: failed program was:" >&5
14300 cat conftest.$ac_ext >&5
14301 eval "$as_ac_var=no"
14303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14307 if test `eval echo '${'$as_ac_var'}'` = yes; then
14308 cat >>confdefs.h <<_ACEOF
14309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14310 _ACEOF
14313 done
14316 echo "$as_me:$LINENO: checking for set_auth_parameters in -lsecurity" >&5
14317 echo $ECHO_N "checking for set_auth_parameters in -lsecurity... $ECHO_C" >&6
14318 if test "${ac_cv_lib_security_set_auth_parameters+set}" = set; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14320 else
14321 ac_check_lib_save_LIBS=$LIBS
14322 LIBS="-lsecurity $LIBS"
14323 cat >conftest.$ac_ext <<_ACEOF
14324 #line $LINENO "configure"
14325 #include "confdefs.h"
14327 /* Override any gcc2 internal prototype to avoid an error. */
14328 #ifdef __cplusplus
14329 extern "C"
14330 #endif
14331 /* We use char because int might match the return type of a gcc2
14332 builtin and then its argument prototype would still apply. */
14333 char set_auth_parameters ();
14334 #ifdef F77_DUMMY_MAIN
14335 # ifdef __cplusplus
14336 extern "C"
14337 # endif
14338 int F77_DUMMY_MAIN() { return 1; }
14339 #endif
14341 main ()
14343 set_auth_parameters ();
14345 return 0;
14347 _ACEOF
14348 rm -f conftest.$ac_objext conftest$ac_exeext
14349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14350 (eval $ac_link) 2>&5
14351 ac_status=$?
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } &&
14354 { ac_try='test -s conftest$ac_exeext'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14357 ac_status=$?
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; }; then
14360 ac_cv_lib_security_set_auth_parameters=yes
14361 else
14362 echo "$as_me: failed program was:" >&5
14363 cat conftest.$ac_ext >&5
14364 ac_cv_lib_security_set_auth_parameters=no
14366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14367 LIBS=$ac_check_lib_save_LIBS
14369 echo "$as_me:$LINENO: result: $ac_cv_lib_security_set_auth_parameters" >&5
14370 echo "${ECHO_T}$ac_cv_lib_security_set_auth_parameters" >&6
14371 if test $ac_cv_lib_security_set_auth_parameters = yes; then
14372 cat >>confdefs.h <<_ACEOF
14373 #define HAVE_LIBSECURITY 1
14374 _ACEOF
14376 LIBS="-lsecurity $LIBS"
14381 for ac_func in set_auth_parameters
14383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14384 echo "$as_me:$LINENO: checking for $ac_func" >&5
14385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14386 if eval "test \"\${$as_ac_var+set}\" = set"; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14388 else
14389 cat >conftest.$ac_ext <<_ACEOF
14390 #line $LINENO "configure"
14391 #include "confdefs.h"
14392 /* System header to define __stub macros and hopefully few prototypes,
14393 which can conflict with char $ac_func (); below. */
14394 #include <assert.h>
14395 /* Override any gcc2 internal prototype to avoid an error. */
14396 #ifdef __cplusplus
14397 extern "C"
14398 #endif
14399 /* We use char because int might match the return type of a gcc2
14400 builtin and then its argument prototype would still apply. */
14401 char $ac_func ();
14402 char (*f) ();
14404 #ifdef F77_DUMMY_MAIN
14405 # ifdef __cplusplus
14406 extern "C"
14407 # endif
14408 int F77_DUMMY_MAIN() { return 1; }
14409 #endif
14411 main ()
14413 /* The GNU C library defines this for functions which it implements
14414 to always fail with ENOSYS. Some functions are actually named
14415 something starting with __ and the normal name is an alias. */
14416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14417 choke me
14418 #else
14419 f = $ac_func;
14420 #endif
14423 return 0;
14425 _ACEOF
14426 rm -f conftest.$ac_objext conftest$ac_exeext
14427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14428 (eval $ac_link) 2>&5
14429 ac_status=$?
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); } &&
14432 { ac_try='test -s conftest$ac_exeext'
14433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434 (eval $ac_try) 2>&5
14435 ac_status=$?
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; }; then
14438 eval "$as_ac_var=yes"
14439 else
14440 echo "$as_me: failed program was:" >&5
14441 cat conftest.$ac_ext >&5
14442 eval "$as_ac_var=no"
14444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14448 if test `eval echo '${'$as_ac_var'}'` = yes; then
14449 cat >>confdefs.h <<_ACEOF
14450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14451 _ACEOF
14454 done
14457 esac
14459 case "$LIBS" in
14460 *-lsec*)
14461 for ac_func in set_auth_parameters
14463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14464 echo "$as_me:$LINENO: checking for $ac_func" >&5
14465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14466 if eval "test \"\${$as_ac_var+set}\" = set"; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
14468 else
14469 cat >conftest.$ac_ext <<_ACEOF
14470 #line $LINENO "configure"
14471 #include "confdefs.h"
14472 /* System header to define __stub macros and hopefully few prototypes,
14473 which can conflict with char $ac_func (); below. */
14474 #include <assert.h>
14475 /* Override any gcc2 internal prototype to avoid an error. */
14476 #ifdef __cplusplus
14477 extern "C"
14478 #endif
14479 /* We use char because int might match the return type of a gcc2
14480 builtin and then its argument prototype would still apply. */
14481 char $ac_func ();
14482 char (*f) ();
14484 #ifdef F77_DUMMY_MAIN
14485 # ifdef __cplusplus
14486 extern "C"
14487 # endif
14488 int F77_DUMMY_MAIN() { return 1; }
14489 #endif
14491 main ()
14493 /* The GNU C library defines this for functions which it implements
14494 to always fail with ENOSYS. Some functions are actually named
14495 something starting with __ and the normal name is an alias. */
14496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14497 choke me
14498 #else
14499 f = $ac_func;
14500 #endif
14503 return 0;
14505 _ACEOF
14506 rm -f conftest.$ac_objext conftest$ac_exeext
14507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14508 (eval $ac_link) 2>&5
14509 ac_status=$?
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } &&
14512 { ac_try='test -s conftest$ac_exeext'
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14515 ac_status=$?
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; }; then
14518 eval "$as_ac_var=yes"
14519 else
14520 echo "$as_me: failed program was:" >&5
14521 cat conftest.$ac_ext >&5
14522 eval "$as_ac_var=no"
14524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14528 if test `eval echo '${'$as_ac_var'}'` = yes; then
14529 cat >>confdefs.h <<_ACEOF
14530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14531 _ACEOF
14534 done
14537 echo "$as_me:$LINENO: checking for set_auth_parameters in -lsec" >&5
14538 echo $ECHO_N "checking for set_auth_parameters in -lsec... $ECHO_C" >&6
14539 if test "${ac_cv_lib_sec_set_auth_parameters+set}" = set; then
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14541 else
14542 ac_check_lib_save_LIBS=$LIBS
14543 LIBS="-lsec $LIBS"
14544 cat >conftest.$ac_ext <<_ACEOF
14545 #line $LINENO "configure"
14546 #include "confdefs.h"
14548 /* Override any gcc2 internal prototype to avoid an error. */
14549 #ifdef __cplusplus
14550 extern "C"
14551 #endif
14552 /* We use char because int might match the return type of a gcc2
14553 builtin and then its argument prototype would still apply. */
14554 char set_auth_parameters ();
14555 #ifdef F77_DUMMY_MAIN
14556 # ifdef __cplusplus
14557 extern "C"
14558 # endif
14559 int F77_DUMMY_MAIN() { return 1; }
14560 #endif
14562 main ()
14564 set_auth_parameters ();
14566 return 0;
14568 _ACEOF
14569 rm -f conftest.$ac_objext conftest$ac_exeext
14570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14571 (eval $ac_link) 2>&5
14572 ac_status=$?
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } &&
14575 { ac_try='test -s conftest$ac_exeext'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14578 ac_status=$?
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; }; then
14581 ac_cv_lib_sec_set_auth_parameters=yes
14582 else
14583 echo "$as_me: failed program was:" >&5
14584 cat conftest.$ac_ext >&5
14585 ac_cv_lib_sec_set_auth_parameters=no
14587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14588 LIBS=$ac_check_lib_save_LIBS
14590 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_set_auth_parameters" >&5
14591 echo "${ECHO_T}$ac_cv_lib_sec_set_auth_parameters" >&6
14592 if test $ac_cv_lib_sec_set_auth_parameters = yes; then
14593 cat >>confdefs.h <<_ACEOF
14594 #define HAVE_LIBSEC 1
14595 _ACEOF
14597 LIBS="-lsec $LIBS"
14602 for ac_func in set_auth_parameters
14604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14605 echo "$as_me:$LINENO: checking for $ac_func" >&5
14606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14607 if eval "test \"\${$as_ac_var+set}\" = set"; then
14608 echo $ECHO_N "(cached) $ECHO_C" >&6
14609 else
14610 cat >conftest.$ac_ext <<_ACEOF
14611 #line $LINENO "configure"
14612 #include "confdefs.h"
14613 /* System header to define __stub macros and hopefully few prototypes,
14614 which can conflict with char $ac_func (); below. */
14615 #include <assert.h>
14616 /* Override any gcc2 internal prototype to avoid an error. */
14617 #ifdef __cplusplus
14618 extern "C"
14619 #endif
14620 /* We use char because int might match the return type of a gcc2
14621 builtin and then its argument prototype would still apply. */
14622 char $ac_func ();
14623 char (*f) ();
14625 #ifdef F77_DUMMY_MAIN
14626 # ifdef __cplusplus
14627 extern "C"
14628 # endif
14629 int F77_DUMMY_MAIN() { return 1; }
14630 #endif
14632 main ()
14634 /* The GNU C library defines this for functions which it implements
14635 to always fail with ENOSYS. Some functions are actually named
14636 something starting with __ and the normal name is an alias. */
14637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14638 choke me
14639 #else
14640 f = $ac_func;
14641 #endif
14644 return 0;
14646 _ACEOF
14647 rm -f conftest.$ac_objext conftest$ac_exeext
14648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14649 (eval $ac_link) 2>&5
14650 ac_status=$?
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } &&
14653 { ac_try='test -s conftest$ac_exeext'
14654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655 (eval $ac_try) 2>&5
14656 ac_status=$?
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; }; then
14659 eval "$as_ac_var=yes"
14660 else
14661 echo "$as_me: failed program was:" >&5
14662 cat conftest.$ac_ext >&5
14663 eval "$as_ac_var=no"
14665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14669 if test `eval echo '${'$as_ac_var'}'` = yes; then
14670 cat >>confdefs.h <<_ACEOF
14671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14672 _ACEOF
14675 done
14678 esac
14681 # UnixWare 7.x has its getspnam in -lgen
14682 case "$LIBS" in
14683 *-lgen*)
14684 for ac_func in getspnam
14686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14687 echo "$as_me:$LINENO: checking for $ac_func" >&5
14688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14689 if eval "test \"\${$as_ac_var+set}\" = set"; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14691 else
14692 cat >conftest.$ac_ext <<_ACEOF
14693 #line $LINENO "configure"
14694 #include "confdefs.h"
14695 /* System header to define __stub macros and hopefully few prototypes,
14696 which can conflict with char $ac_func (); below. */
14697 #include <assert.h>
14698 /* Override any gcc2 internal prototype to avoid an error. */
14699 #ifdef __cplusplus
14700 extern "C"
14701 #endif
14702 /* We use char because int might match the return type of a gcc2
14703 builtin and then its argument prototype would still apply. */
14704 char $ac_func ();
14705 char (*f) ();
14707 #ifdef F77_DUMMY_MAIN
14708 # ifdef __cplusplus
14709 extern "C"
14710 # endif
14711 int F77_DUMMY_MAIN() { return 1; }
14712 #endif
14714 main ()
14716 /* The GNU C library defines this for functions which it implements
14717 to always fail with ENOSYS. Some functions are actually named
14718 something starting with __ and the normal name is an alias. */
14719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14720 choke me
14721 #else
14722 f = $ac_func;
14723 #endif
14726 return 0;
14728 _ACEOF
14729 rm -f conftest.$ac_objext conftest$ac_exeext
14730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14731 (eval $ac_link) 2>&5
14732 ac_status=$?
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); } &&
14735 { ac_try='test -s conftest$ac_exeext'
14736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737 (eval $ac_try) 2>&5
14738 ac_status=$?
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; }; then
14741 eval "$as_ac_var=yes"
14742 else
14743 echo "$as_me: failed program was:" >&5
14744 cat conftest.$ac_ext >&5
14745 eval "$as_ac_var=no"
14747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14751 if test `eval echo '${'$as_ac_var'}'` = yes; then
14752 cat >>confdefs.h <<_ACEOF
14753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14754 _ACEOF
14757 done
14760 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
14761 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
14762 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14764 else
14765 ac_check_lib_save_LIBS=$LIBS
14766 LIBS="-lgen $LIBS"
14767 cat >conftest.$ac_ext <<_ACEOF
14768 #line $LINENO "configure"
14769 #include "confdefs.h"
14771 /* Override any gcc2 internal prototype to avoid an error. */
14772 #ifdef __cplusplus
14773 extern "C"
14774 #endif
14775 /* We use char because int might match the return type of a gcc2
14776 builtin and then its argument prototype would still apply. */
14777 char getspnam ();
14778 #ifdef F77_DUMMY_MAIN
14779 # ifdef __cplusplus
14780 extern "C"
14781 # endif
14782 int F77_DUMMY_MAIN() { return 1; }
14783 #endif
14785 main ()
14787 getspnam ();
14789 return 0;
14791 _ACEOF
14792 rm -f conftest.$ac_objext conftest$ac_exeext
14793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14794 (eval $ac_link) 2>&5
14795 ac_status=$?
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); } &&
14798 { ac_try='test -s conftest$ac_exeext'
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; }; then
14804 ac_cv_lib_gen_getspnam=yes
14805 else
14806 echo "$as_me: failed program was:" >&5
14807 cat conftest.$ac_ext >&5
14808 ac_cv_lib_gen_getspnam=no
14810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14811 LIBS=$ac_check_lib_save_LIBS
14813 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
14814 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
14815 if test $ac_cv_lib_gen_getspnam = yes; then
14816 cat >>confdefs.h <<_ACEOF
14817 #define HAVE_LIBGEN 1
14818 _ACEOF
14820 LIBS="-lgen $LIBS"
14825 for ac_func in getspnam
14827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14828 echo "$as_me:$LINENO: checking for $ac_func" >&5
14829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14830 if eval "test \"\${$as_ac_var+set}\" = set"; then
14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14832 else
14833 cat >conftest.$ac_ext <<_ACEOF
14834 #line $LINENO "configure"
14835 #include "confdefs.h"
14836 /* System header to define __stub macros and hopefully few prototypes,
14837 which can conflict with char $ac_func (); below. */
14838 #include <assert.h>
14839 /* Override any gcc2 internal prototype to avoid an error. */
14840 #ifdef __cplusplus
14841 extern "C"
14842 #endif
14843 /* We use char because int might match the return type of a gcc2
14844 builtin and then its argument prototype would still apply. */
14845 char $ac_func ();
14846 char (*f) ();
14848 #ifdef F77_DUMMY_MAIN
14849 # ifdef __cplusplus
14850 extern "C"
14851 # endif
14852 int F77_DUMMY_MAIN() { return 1; }
14853 #endif
14855 main ()
14857 /* The GNU C library defines this for functions which it implements
14858 to always fail with ENOSYS. Some functions are actually named
14859 something starting with __ and the normal name is an alias. */
14860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14861 choke me
14862 #else
14863 f = $ac_func;
14864 #endif
14867 return 0;
14869 _ACEOF
14870 rm -f conftest.$ac_objext conftest$ac_exeext
14871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14872 (eval $ac_link) 2>&5
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } &&
14876 { ac_try='test -s conftest$ac_exeext'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14879 ac_status=$?
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; }; then
14882 eval "$as_ac_var=yes"
14883 else
14884 echo "$as_me: failed program was:" >&5
14885 cat conftest.$ac_ext >&5
14886 eval "$as_ac_var=no"
14888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14891 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14892 if test `eval echo '${'$as_ac_var'}'` = yes; then
14893 cat >>confdefs.h <<_ACEOF
14894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14895 _ACEOF
14898 done
14901 esac
14904 case "$LIBS" in
14905 *-lsecurity*)
14906 for ac_func in getspnam
14908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14909 echo "$as_me:$LINENO: checking for $ac_func" >&5
14910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14911 if eval "test \"\${$as_ac_var+set}\" = set"; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14913 else
14914 cat >conftest.$ac_ext <<_ACEOF
14915 #line $LINENO "configure"
14916 #include "confdefs.h"
14917 /* System header to define __stub macros and hopefully few prototypes,
14918 which can conflict with char $ac_func (); below. */
14919 #include <assert.h>
14920 /* Override any gcc2 internal prototype to avoid an error. */
14921 #ifdef __cplusplus
14922 extern "C"
14923 #endif
14924 /* We use char because int might match the return type of a gcc2
14925 builtin and then its argument prototype would still apply. */
14926 char $ac_func ();
14927 char (*f) ();
14929 #ifdef F77_DUMMY_MAIN
14930 # ifdef __cplusplus
14931 extern "C"
14932 # endif
14933 int F77_DUMMY_MAIN() { return 1; }
14934 #endif
14936 main ()
14938 /* The GNU C library defines this for functions which it implements
14939 to always fail with ENOSYS. Some functions are actually named
14940 something starting with __ and the normal name is an alias. */
14941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14942 choke me
14943 #else
14944 f = $ac_func;
14945 #endif
14948 return 0;
14950 _ACEOF
14951 rm -f conftest.$ac_objext conftest$ac_exeext
14952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14953 (eval $ac_link) 2>&5
14954 ac_status=$?
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } &&
14957 { ac_try='test -s conftest$ac_exeext'
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959 (eval $ac_try) 2>&5
14960 ac_status=$?
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; }; then
14963 eval "$as_ac_var=yes"
14964 else
14965 echo "$as_me: failed program was:" >&5
14966 cat conftest.$ac_ext >&5
14967 eval "$as_ac_var=no"
14969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14973 if test `eval echo '${'$as_ac_var'}'` = yes; then
14974 cat >>confdefs.h <<_ACEOF
14975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14976 _ACEOF
14979 done
14982 echo "$as_me:$LINENO: checking for getspnam in -lsecurity" >&5
14983 echo $ECHO_N "checking for getspnam in -lsecurity... $ECHO_C" >&6
14984 if test "${ac_cv_lib_security_getspnam+set}" = set; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
14986 else
14987 ac_check_lib_save_LIBS=$LIBS
14988 LIBS="-lsecurity $LIBS"
14989 cat >conftest.$ac_ext <<_ACEOF
14990 #line $LINENO "configure"
14991 #include "confdefs.h"
14993 /* Override any gcc2 internal prototype to avoid an error. */
14994 #ifdef __cplusplus
14995 extern "C"
14996 #endif
14997 /* We use char because int might match the return type of a gcc2
14998 builtin and then its argument prototype would still apply. */
14999 char getspnam ();
15000 #ifdef F77_DUMMY_MAIN
15001 # ifdef __cplusplus
15002 extern "C"
15003 # endif
15004 int F77_DUMMY_MAIN() { return 1; }
15005 #endif
15007 main ()
15009 getspnam ();
15011 return 0;
15013 _ACEOF
15014 rm -f conftest.$ac_objext conftest$ac_exeext
15015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15016 (eval $ac_link) 2>&5
15017 ac_status=$?
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } &&
15020 { ac_try='test -s conftest$ac_exeext'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15023 ac_status=$?
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; }; then
15026 ac_cv_lib_security_getspnam=yes
15027 else
15028 echo "$as_me: failed program was:" >&5
15029 cat conftest.$ac_ext >&5
15030 ac_cv_lib_security_getspnam=no
15032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15033 LIBS=$ac_check_lib_save_LIBS
15035 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getspnam" >&5
15036 echo "${ECHO_T}$ac_cv_lib_security_getspnam" >&6
15037 if test $ac_cv_lib_security_getspnam = yes; then
15038 cat >>confdefs.h <<_ACEOF
15039 #define HAVE_LIBSECURITY 1
15040 _ACEOF
15042 LIBS="-lsecurity $LIBS"
15047 for ac_func in getspnam
15049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15050 echo "$as_me:$LINENO: checking for $ac_func" >&5
15051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15052 if eval "test \"\${$as_ac_var+set}\" = set"; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15054 else
15055 cat >conftest.$ac_ext <<_ACEOF
15056 #line $LINENO "configure"
15057 #include "confdefs.h"
15058 /* System header to define __stub macros and hopefully few prototypes,
15059 which can conflict with char $ac_func (); below. */
15060 #include <assert.h>
15061 /* Override any gcc2 internal prototype to avoid an error. */
15062 #ifdef __cplusplus
15063 extern "C"
15064 #endif
15065 /* We use char because int might match the return type of a gcc2
15066 builtin and then its argument prototype would still apply. */
15067 char $ac_func ();
15068 char (*f) ();
15070 #ifdef F77_DUMMY_MAIN
15071 # ifdef __cplusplus
15072 extern "C"
15073 # endif
15074 int F77_DUMMY_MAIN() { return 1; }
15075 #endif
15077 main ()
15079 /* The GNU C library defines this for functions which it implements
15080 to always fail with ENOSYS. Some functions are actually named
15081 something starting with __ and the normal name is an alias. */
15082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15083 choke me
15084 #else
15085 f = $ac_func;
15086 #endif
15089 return 0;
15091 _ACEOF
15092 rm -f conftest.$ac_objext conftest$ac_exeext
15093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15094 (eval $ac_link) 2>&5
15095 ac_status=$?
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); } &&
15098 { ac_try='test -s conftest$ac_exeext'
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15101 ac_status=$?
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15104 eval "$as_ac_var=yes"
15105 else
15106 echo "$as_me: failed program was:" >&5
15107 cat conftest.$ac_ext >&5
15108 eval "$as_ac_var=no"
15110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15113 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15114 if test `eval echo '${'$as_ac_var'}'` = yes; then
15115 cat >>confdefs.h <<_ACEOF
15116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15117 _ACEOF
15120 done
15123 esac
15125 case "$LIBS" in
15126 *-lsec*)
15127 for ac_func in getspnam
15129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15130 echo "$as_me:$LINENO: checking for $ac_func" >&5
15131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15132 if eval "test \"\${$as_ac_var+set}\" = set"; then
15133 echo $ECHO_N "(cached) $ECHO_C" >&6
15134 else
15135 cat >conftest.$ac_ext <<_ACEOF
15136 #line $LINENO "configure"
15137 #include "confdefs.h"
15138 /* System header to define __stub macros and hopefully few prototypes,
15139 which can conflict with char $ac_func (); below. */
15140 #include <assert.h>
15141 /* Override any gcc2 internal prototype to avoid an error. */
15142 #ifdef __cplusplus
15143 extern "C"
15144 #endif
15145 /* We use char because int might match the return type of a gcc2
15146 builtin and then its argument prototype would still apply. */
15147 char $ac_func ();
15148 char (*f) ();
15150 #ifdef F77_DUMMY_MAIN
15151 # ifdef __cplusplus
15152 extern "C"
15153 # endif
15154 int F77_DUMMY_MAIN() { return 1; }
15155 #endif
15157 main ()
15159 /* The GNU C library defines this for functions which it implements
15160 to always fail with ENOSYS. Some functions are actually named
15161 something starting with __ and the normal name is an alias. */
15162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15163 choke me
15164 #else
15165 f = $ac_func;
15166 #endif
15169 return 0;
15171 _ACEOF
15172 rm -f conftest.$ac_objext conftest$ac_exeext
15173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15174 (eval $ac_link) 2>&5
15175 ac_status=$?
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); } &&
15178 { ac_try='test -s conftest$ac_exeext'
15179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180 (eval $ac_try) 2>&5
15181 ac_status=$?
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; }; then
15184 eval "$as_ac_var=yes"
15185 else
15186 echo "$as_me: failed program was:" >&5
15187 cat conftest.$ac_ext >&5
15188 eval "$as_ac_var=no"
15190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15194 if test `eval echo '${'$as_ac_var'}'` = yes; then
15195 cat >>confdefs.h <<_ACEOF
15196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15197 _ACEOF
15200 done
15203 echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
15204 echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
15205 if test "${ac_cv_lib_sec_getspnam+set}" = set; then
15206 echo $ECHO_N "(cached) $ECHO_C" >&6
15207 else
15208 ac_check_lib_save_LIBS=$LIBS
15209 LIBS="-lsec $LIBS"
15210 cat >conftest.$ac_ext <<_ACEOF
15211 #line $LINENO "configure"
15212 #include "confdefs.h"
15214 /* Override any gcc2 internal prototype to avoid an error. */
15215 #ifdef __cplusplus
15216 extern "C"
15217 #endif
15218 /* We use char because int might match the return type of a gcc2
15219 builtin and then its argument prototype would still apply. */
15220 char getspnam ();
15221 #ifdef F77_DUMMY_MAIN
15222 # ifdef __cplusplus
15223 extern "C"
15224 # endif
15225 int F77_DUMMY_MAIN() { return 1; }
15226 #endif
15228 main ()
15230 getspnam ();
15232 return 0;
15234 _ACEOF
15235 rm -f conftest.$ac_objext conftest$ac_exeext
15236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15237 (eval $ac_link) 2>&5
15238 ac_status=$?
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } &&
15241 { ac_try='test -s conftest$ac_exeext'
15242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243 (eval $ac_try) 2>&5
15244 ac_status=$?
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; }; then
15247 ac_cv_lib_sec_getspnam=yes
15248 else
15249 echo "$as_me: failed program was:" >&5
15250 cat conftest.$ac_ext >&5
15251 ac_cv_lib_sec_getspnam=no
15253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15254 LIBS=$ac_check_lib_save_LIBS
15256 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
15257 echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
15258 if test $ac_cv_lib_sec_getspnam = yes; then
15259 cat >>confdefs.h <<_ACEOF
15260 #define HAVE_LIBSEC 1
15261 _ACEOF
15263 LIBS="-lsec $LIBS"
15268 for ac_func in getspnam
15270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15271 echo "$as_me:$LINENO: checking for $ac_func" >&5
15272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15273 if eval "test \"\${$as_ac_var+set}\" = set"; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15275 else
15276 cat >conftest.$ac_ext <<_ACEOF
15277 #line $LINENO "configure"
15278 #include "confdefs.h"
15279 /* System header to define __stub macros and hopefully few prototypes,
15280 which can conflict with char $ac_func (); below. */
15281 #include <assert.h>
15282 /* Override any gcc2 internal prototype to avoid an error. */
15283 #ifdef __cplusplus
15284 extern "C"
15285 #endif
15286 /* We use char because int might match the return type of a gcc2
15287 builtin and then its argument prototype would still apply. */
15288 char $ac_func ();
15289 char (*f) ();
15291 #ifdef F77_DUMMY_MAIN
15292 # ifdef __cplusplus
15293 extern "C"
15294 # endif
15295 int F77_DUMMY_MAIN() { return 1; }
15296 #endif
15298 main ()
15300 /* The GNU C library defines this for functions which it implements
15301 to always fail with ENOSYS. Some functions are actually named
15302 something starting with __ and the normal name is an alias. */
15303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15304 choke me
15305 #else
15306 f = $ac_func;
15307 #endif
15310 return 0;
15312 _ACEOF
15313 rm -f conftest.$ac_objext conftest$ac_exeext
15314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15315 (eval $ac_link) 2>&5
15316 ac_status=$?
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } &&
15319 { ac_try='test -s conftest$ac_exeext'
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15322 ac_status=$?
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; }; then
15325 eval "$as_ac_var=yes"
15326 else
15327 echo "$as_me: failed program was:" >&5
15328 cat conftest.$ac_ext >&5
15329 eval "$as_ac_var=no"
15331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15334 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15335 if test `eval echo '${'$as_ac_var'}'` = yes; then
15336 cat >>confdefs.h <<_ACEOF
15337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15338 _ACEOF
15341 done
15344 esac
15347 case "$LIBS" in
15348 *-lsecurity*)
15349 for ac_func in bigcrypt
15351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15352 echo "$as_me:$LINENO: checking for $ac_func" >&5
15353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15354 if eval "test \"\${$as_ac_var+set}\" = set"; then
15355 echo $ECHO_N "(cached) $ECHO_C" >&6
15356 else
15357 cat >conftest.$ac_ext <<_ACEOF
15358 #line $LINENO "configure"
15359 #include "confdefs.h"
15360 /* System header to define __stub macros and hopefully few prototypes,
15361 which can conflict with char $ac_func (); below. */
15362 #include <assert.h>
15363 /* Override any gcc2 internal prototype to avoid an error. */
15364 #ifdef __cplusplus
15365 extern "C"
15366 #endif
15367 /* We use char because int might match the return type of a gcc2
15368 builtin and then its argument prototype would still apply. */
15369 char $ac_func ();
15370 char (*f) ();
15372 #ifdef F77_DUMMY_MAIN
15373 # ifdef __cplusplus
15374 extern "C"
15375 # endif
15376 int F77_DUMMY_MAIN() { return 1; }
15377 #endif
15379 main ()
15381 /* The GNU C library defines this for functions which it implements
15382 to always fail with ENOSYS. Some functions are actually named
15383 something starting with __ and the normal name is an alias. */
15384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15385 choke me
15386 #else
15387 f = $ac_func;
15388 #endif
15391 return 0;
15393 _ACEOF
15394 rm -f conftest.$ac_objext conftest$ac_exeext
15395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15396 (eval $ac_link) 2>&5
15397 ac_status=$?
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); } &&
15400 { ac_try='test -s conftest$ac_exeext'
15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15403 ac_status=$?
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; }; then
15406 eval "$as_ac_var=yes"
15407 else
15408 echo "$as_me: failed program was:" >&5
15409 cat conftest.$ac_ext >&5
15410 eval "$as_ac_var=no"
15412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15416 if test `eval echo '${'$as_ac_var'}'` = yes; then
15417 cat >>confdefs.h <<_ACEOF
15418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15419 _ACEOF
15422 done
15425 echo "$as_me:$LINENO: checking for bigcrypt in -lsecurity" >&5
15426 echo $ECHO_N "checking for bigcrypt in -lsecurity... $ECHO_C" >&6
15427 if test "${ac_cv_lib_security_bigcrypt+set}" = set; then
15428 echo $ECHO_N "(cached) $ECHO_C" >&6
15429 else
15430 ac_check_lib_save_LIBS=$LIBS
15431 LIBS="-lsecurity $LIBS"
15432 cat >conftest.$ac_ext <<_ACEOF
15433 #line $LINENO "configure"
15434 #include "confdefs.h"
15436 /* Override any gcc2 internal prototype to avoid an error. */
15437 #ifdef __cplusplus
15438 extern "C"
15439 #endif
15440 /* We use char because int might match the return type of a gcc2
15441 builtin and then its argument prototype would still apply. */
15442 char bigcrypt ();
15443 #ifdef F77_DUMMY_MAIN
15444 # ifdef __cplusplus
15445 extern "C"
15446 # endif
15447 int F77_DUMMY_MAIN() { return 1; }
15448 #endif
15450 main ()
15452 bigcrypt ();
15454 return 0;
15456 _ACEOF
15457 rm -f conftest.$ac_objext conftest$ac_exeext
15458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15459 (eval $ac_link) 2>&5
15460 ac_status=$?
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); } &&
15463 { ac_try='test -s conftest$ac_exeext'
15464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465 (eval $ac_try) 2>&5
15466 ac_status=$?
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); }; }; then
15469 ac_cv_lib_security_bigcrypt=yes
15470 else
15471 echo "$as_me: failed program was:" >&5
15472 cat conftest.$ac_ext >&5
15473 ac_cv_lib_security_bigcrypt=no
15475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15476 LIBS=$ac_check_lib_save_LIBS
15478 echo "$as_me:$LINENO: result: $ac_cv_lib_security_bigcrypt" >&5
15479 echo "${ECHO_T}$ac_cv_lib_security_bigcrypt" >&6
15480 if test $ac_cv_lib_security_bigcrypt = yes; then
15481 cat >>confdefs.h <<_ACEOF
15482 #define HAVE_LIBSECURITY 1
15483 _ACEOF
15485 LIBS="-lsecurity $LIBS"
15490 for ac_func in bigcrypt
15492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15493 echo "$as_me:$LINENO: checking for $ac_func" >&5
15494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15495 if eval "test \"\${$as_ac_var+set}\" = set"; then
15496 echo $ECHO_N "(cached) $ECHO_C" >&6
15497 else
15498 cat >conftest.$ac_ext <<_ACEOF
15499 #line $LINENO "configure"
15500 #include "confdefs.h"
15501 /* System header to define __stub macros and hopefully few prototypes,
15502 which can conflict with char $ac_func (); below. */
15503 #include <assert.h>
15504 /* Override any gcc2 internal prototype to avoid an error. */
15505 #ifdef __cplusplus
15506 extern "C"
15507 #endif
15508 /* We use char because int might match the return type of a gcc2
15509 builtin and then its argument prototype would still apply. */
15510 char $ac_func ();
15511 char (*f) ();
15513 #ifdef F77_DUMMY_MAIN
15514 # ifdef __cplusplus
15515 extern "C"
15516 # endif
15517 int F77_DUMMY_MAIN() { return 1; }
15518 #endif
15520 main ()
15522 /* The GNU C library defines this for functions which it implements
15523 to always fail with ENOSYS. Some functions are actually named
15524 something starting with __ and the normal name is an alias. */
15525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15526 choke me
15527 #else
15528 f = $ac_func;
15529 #endif
15532 return 0;
15534 _ACEOF
15535 rm -f conftest.$ac_objext conftest$ac_exeext
15536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15537 (eval $ac_link) 2>&5
15538 ac_status=$?
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); } &&
15541 { ac_try='test -s conftest$ac_exeext'
15542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543 (eval $ac_try) 2>&5
15544 ac_status=$?
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); }; }; then
15547 eval "$as_ac_var=yes"
15548 else
15549 echo "$as_me: failed program was:" >&5
15550 cat conftest.$ac_ext >&5
15551 eval "$as_ac_var=no"
15553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15557 if test `eval echo '${'$as_ac_var'}'` = yes; then
15558 cat >>confdefs.h <<_ACEOF
15559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15560 _ACEOF
15563 done
15566 esac
15568 case "$LIBS" in
15569 *-lsec*)
15570 for ac_func in bigcrypt
15572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15573 echo "$as_me:$LINENO: checking for $ac_func" >&5
15574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15575 if eval "test \"\${$as_ac_var+set}\" = set"; then
15576 echo $ECHO_N "(cached) $ECHO_C" >&6
15577 else
15578 cat >conftest.$ac_ext <<_ACEOF
15579 #line $LINENO "configure"
15580 #include "confdefs.h"
15581 /* System header to define __stub macros and hopefully few prototypes,
15582 which can conflict with char $ac_func (); below. */
15583 #include <assert.h>
15584 /* Override any gcc2 internal prototype to avoid an error. */
15585 #ifdef __cplusplus
15586 extern "C"
15587 #endif
15588 /* We use char because int might match the return type of a gcc2
15589 builtin and then its argument prototype would still apply. */
15590 char $ac_func ();
15591 char (*f) ();
15593 #ifdef F77_DUMMY_MAIN
15594 # ifdef __cplusplus
15595 extern "C"
15596 # endif
15597 int F77_DUMMY_MAIN() { return 1; }
15598 #endif
15600 main ()
15602 /* The GNU C library defines this for functions which it implements
15603 to always fail with ENOSYS. Some functions are actually named
15604 something starting with __ and the normal name is an alias. */
15605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15606 choke me
15607 #else
15608 f = $ac_func;
15609 #endif
15612 return 0;
15614 _ACEOF
15615 rm -f conftest.$ac_objext conftest$ac_exeext
15616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15617 (eval $ac_link) 2>&5
15618 ac_status=$?
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } &&
15621 { ac_try='test -s conftest$ac_exeext'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15624 ac_status=$?
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; }; then
15627 eval "$as_ac_var=yes"
15628 else
15629 echo "$as_me: failed program was:" >&5
15630 cat conftest.$ac_ext >&5
15631 eval "$as_ac_var=no"
15633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15637 if test `eval echo '${'$as_ac_var'}'` = yes; then
15638 cat >>confdefs.h <<_ACEOF
15639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15640 _ACEOF
15643 done
15646 echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
15647 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
15648 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
15649 echo $ECHO_N "(cached) $ECHO_C" >&6
15650 else
15651 ac_check_lib_save_LIBS=$LIBS
15652 LIBS="-lsec $LIBS"
15653 cat >conftest.$ac_ext <<_ACEOF
15654 #line $LINENO "configure"
15655 #include "confdefs.h"
15657 /* Override any gcc2 internal prototype to avoid an error. */
15658 #ifdef __cplusplus
15659 extern "C"
15660 #endif
15661 /* We use char because int might match the return type of a gcc2
15662 builtin and then its argument prototype would still apply. */
15663 char bigcrypt ();
15664 #ifdef F77_DUMMY_MAIN
15665 # ifdef __cplusplus
15666 extern "C"
15667 # endif
15668 int F77_DUMMY_MAIN() { return 1; }
15669 #endif
15671 main ()
15673 bigcrypt ();
15675 return 0;
15677 _ACEOF
15678 rm -f conftest.$ac_objext conftest$ac_exeext
15679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15680 (eval $ac_link) 2>&5
15681 ac_status=$?
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); } &&
15684 { ac_try='test -s conftest$ac_exeext'
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15687 ac_status=$?
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; }; then
15690 ac_cv_lib_sec_bigcrypt=yes
15691 else
15692 echo "$as_me: failed program was:" >&5
15693 cat conftest.$ac_ext >&5
15694 ac_cv_lib_sec_bigcrypt=no
15696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15697 LIBS=$ac_check_lib_save_LIBS
15699 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
15700 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
15701 if test $ac_cv_lib_sec_bigcrypt = yes; then
15702 cat >>confdefs.h <<_ACEOF
15703 #define HAVE_LIBSEC 1
15704 _ACEOF
15706 LIBS="-lsec $LIBS"
15711 for ac_func in bigcrypt
15713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15714 echo "$as_me:$LINENO: checking for $ac_func" >&5
15715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15716 if eval "test \"\${$as_ac_var+set}\" = set"; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15718 else
15719 cat >conftest.$ac_ext <<_ACEOF
15720 #line $LINENO "configure"
15721 #include "confdefs.h"
15722 /* System header to define __stub macros and hopefully few prototypes,
15723 which can conflict with char $ac_func (); below. */
15724 #include <assert.h>
15725 /* Override any gcc2 internal prototype to avoid an error. */
15726 #ifdef __cplusplus
15727 extern "C"
15728 #endif
15729 /* We use char because int might match the return type of a gcc2
15730 builtin and then its argument prototype would still apply. */
15731 char $ac_func ();
15732 char (*f) ();
15734 #ifdef F77_DUMMY_MAIN
15735 # ifdef __cplusplus
15736 extern "C"
15737 # endif
15738 int F77_DUMMY_MAIN() { return 1; }
15739 #endif
15741 main ()
15743 /* The GNU C library defines this for functions which it implements
15744 to always fail with ENOSYS. Some functions are actually named
15745 something starting with __ and the normal name is an alias. */
15746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15747 choke me
15748 #else
15749 f = $ac_func;
15750 #endif
15753 return 0;
15755 _ACEOF
15756 rm -f conftest.$ac_objext conftest$ac_exeext
15757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15758 (eval $ac_link) 2>&5
15759 ac_status=$?
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); } &&
15762 { ac_try='test -s conftest$ac_exeext'
15763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15764 (eval $ac_try) 2>&5
15765 ac_status=$?
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); }; }; then
15768 eval "$as_ac_var=yes"
15769 else
15770 echo "$as_me: failed program was:" >&5
15771 cat conftest.$ac_ext >&5
15772 eval "$as_ac_var=no"
15774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15778 if test `eval echo '${'$as_ac_var'}'` = yes; then
15779 cat >>confdefs.h <<_ACEOF
15780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15781 _ACEOF
15784 done
15787 esac
15790 case "$LIBS" in
15791 *-lsecurity*)
15792 for ac_func in getprpwnam
15794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15795 echo "$as_me:$LINENO: checking for $ac_func" >&5
15796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15797 if eval "test \"\${$as_ac_var+set}\" = set"; then
15798 echo $ECHO_N "(cached) $ECHO_C" >&6
15799 else
15800 cat >conftest.$ac_ext <<_ACEOF
15801 #line $LINENO "configure"
15802 #include "confdefs.h"
15803 /* System header to define __stub macros and hopefully few prototypes,
15804 which can conflict with char $ac_func (); below. */
15805 #include <assert.h>
15806 /* Override any gcc2 internal prototype to avoid an error. */
15807 #ifdef __cplusplus
15808 extern "C"
15809 #endif
15810 /* We use char because int might match the return type of a gcc2
15811 builtin and then its argument prototype would still apply. */
15812 char $ac_func ();
15813 char (*f) ();
15815 #ifdef F77_DUMMY_MAIN
15816 # ifdef __cplusplus
15817 extern "C"
15818 # endif
15819 int F77_DUMMY_MAIN() { return 1; }
15820 #endif
15822 main ()
15824 /* The GNU C library defines this for functions which it implements
15825 to always fail with ENOSYS. Some functions are actually named
15826 something starting with __ and the normal name is an alias. */
15827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15828 choke me
15829 #else
15830 f = $ac_func;
15831 #endif
15834 return 0;
15836 _ACEOF
15837 rm -f conftest.$ac_objext conftest$ac_exeext
15838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15839 (eval $ac_link) 2>&5
15840 ac_status=$?
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); } &&
15843 { ac_try='test -s conftest$ac_exeext'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15849 eval "$as_ac_var=yes"
15850 else
15851 echo "$as_me: failed program was:" >&5
15852 cat conftest.$ac_ext >&5
15853 eval "$as_ac_var=no"
15855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15859 if test `eval echo '${'$as_ac_var'}'` = yes; then
15860 cat >>confdefs.h <<_ACEOF
15861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15862 _ACEOF
15865 done
15868 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
15869 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
15870 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
15871 echo $ECHO_N "(cached) $ECHO_C" >&6
15872 else
15873 ac_check_lib_save_LIBS=$LIBS
15874 LIBS="-lsecurity $LIBS"
15875 cat >conftest.$ac_ext <<_ACEOF
15876 #line $LINENO "configure"
15877 #include "confdefs.h"
15879 /* Override any gcc2 internal prototype to avoid an error. */
15880 #ifdef __cplusplus
15881 extern "C"
15882 #endif
15883 /* We use char because int might match the return type of a gcc2
15884 builtin and then its argument prototype would still apply. */
15885 char getprpwnam ();
15886 #ifdef F77_DUMMY_MAIN
15887 # ifdef __cplusplus
15888 extern "C"
15889 # endif
15890 int F77_DUMMY_MAIN() { return 1; }
15891 #endif
15893 main ()
15895 getprpwnam ();
15897 return 0;
15899 _ACEOF
15900 rm -f conftest.$ac_objext conftest$ac_exeext
15901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15902 (eval $ac_link) 2>&5
15903 ac_status=$?
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); } &&
15906 { ac_try='test -s conftest$ac_exeext'
15907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908 (eval $ac_try) 2>&5
15909 ac_status=$?
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; }; then
15912 ac_cv_lib_security_getprpwnam=yes
15913 else
15914 echo "$as_me: failed program was:" >&5
15915 cat conftest.$ac_ext >&5
15916 ac_cv_lib_security_getprpwnam=no
15918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15919 LIBS=$ac_check_lib_save_LIBS
15921 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
15922 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
15923 if test $ac_cv_lib_security_getprpwnam = yes; then
15924 cat >>confdefs.h <<_ACEOF
15925 #define HAVE_LIBSECURITY 1
15926 _ACEOF
15928 LIBS="-lsecurity $LIBS"
15933 for ac_func in getprpwnam
15935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15936 echo "$as_me:$LINENO: checking for $ac_func" >&5
15937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15938 if eval "test \"\${$as_ac_var+set}\" = set"; then
15939 echo $ECHO_N "(cached) $ECHO_C" >&6
15940 else
15941 cat >conftest.$ac_ext <<_ACEOF
15942 #line $LINENO "configure"
15943 #include "confdefs.h"
15944 /* System header to define __stub macros and hopefully few prototypes,
15945 which can conflict with char $ac_func (); below. */
15946 #include <assert.h>
15947 /* Override any gcc2 internal prototype to avoid an error. */
15948 #ifdef __cplusplus
15949 extern "C"
15950 #endif
15951 /* We use char because int might match the return type of a gcc2
15952 builtin and then its argument prototype would still apply. */
15953 char $ac_func ();
15954 char (*f) ();
15956 #ifdef F77_DUMMY_MAIN
15957 # ifdef __cplusplus
15958 extern "C"
15959 # endif
15960 int F77_DUMMY_MAIN() { return 1; }
15961 #endif
15963 main ()
15965 /* The GNU C library defines this for functions which it implements
15966 to always fail with ENOSYS. Some functions are actually named
15967 something starting with __ and the normal name is an alias. */
15968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15969 choke me
15970 #else
15971 f = $ac_func;
15972 #endif
15975 return 0;
15977 _ACEOF
15978 rm -f conftest.$ac_objext conftest$ac_exeext
15979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15980 (eval $ac_link) 2>&5
15981 ac_status=$?
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
15984 { ac_try='test -s conftest$ac_exeext'
15985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986 (eval $ac_try) 2>&5
15987 ac_status=$?
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }; }; then
15990 eval "$as_ac_var=yes"
15991 else
15992 echo "$as_me: failed program was:" >&5
15993 cat conftest.$ac_ext >&5
15994 eval "$as_ac_var=no"
15996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15999 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16000 if test `eval echo '${'$as_ac_var'}'` = yes; then
16001 cat >>confdefs.h <<_ACEOF
16002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16003 _ACEOF
16006 done
16009 esac
16011 case "$LIBS" in
16012 *-lsec*)
16013 for ac_func in getprpwnam
16015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16016 echo "$as_me:$LINENO: checking for $ac_func" >&5
16017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16018 if eval "test \"\${$as_ac_var+set}\" = set"; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021 cat >conftest.$ac_ext <<_ACEOF
16022 #line $LINENO "configure"
16023 #include "confdefs.h"
16024 /* System header to define __stub macros and hopefully few prototypes,
16025 which can conflict with char $ac_func (); below. */
16026 #include <assert.h>
16027 /* Override any gcc2 internal prototype to avoid an error. */
16028 #ifdef __cplusplus
16029 extern "C"
16030 #endif
16031 /* We use char because int might match the return type of a gcc2
16032 builtin and then its argument prototype would still apply. */
16033 char $ac_func ();
16034 char (*f) ();
16036 #ifdef F77_DUMMY_MAIN
16037 # ifdef __cplusplus
16038 extern "C"
16039 # endif
16040 int F77_DUMMY_MAIN() { return 1; }
16041 #endif
16043 main ()
16045 /* The GNU C library defines this for functions which it implements
16046 to always fail with ENOSYS. Some functions are actually named
16047 something starting with __ and the normal name is an alias. */
16048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16049 choke me
16050 #else
16051 f = $ac_func;
16052 #endif
16055 return 0;
16057 _ACEOF
16058 rm -f conftest.$ac_objext conftest$ac_exeext
16059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16060 (eval $ac_link) 2>&5
16061 ac_status=$?
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); } &&
16064 { ac_try='test -s conftest$ac_exeext'
16065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066 (eval $ac_try) 2>&5
16067 ac_status=$?
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; }; then
16070 eval "$as_ac_var=yes"
16071 else
16072 echo "$as_me: failed program was:" >&5
16073 cat conftest.$ac_ext >&5
16074 eval "$as_ac_var=no"
16076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16080 if test `eval echo '${'$as_ac_var'}'` = yes; then
16081 cat >>confdefs.h <<_ACEOF
16082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16083 _ACEOF
16086 done
16089 echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
16090 echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
16091 if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
16092 echo $ECHO_N "(cached) $ECHO_C" >&6
16093 else
16094 ac_check_lib_save_LIBS=$LIBS
16095 LIBS="-lsec $LIBS"
16096 cat >conftest.$ac_ext <<_ACEOF
16097 #line $LINENO "configure"
16098 #include "confdefs.h"
16100 /* Override any gcc2 internal prototype to avoid an error. */
16101 #ifdef __cplusplus
16102 extern "C"
16103 #endif
16104 /* We use char because int might match the return type of a gcc2
16105 builtin and then its argument prototype would still apply. */
16106 char getprpwnam ();
16107 #ifdef F77_DUMMY_MAIN
16108 # ifdef __cplusplus
16109 extern "C"
16110 # endif
16111 int F77_DUMMY_MAIN() { return 1; }
16112 #endif
16114 main ()
16116 getprpwnam ();
16118 return 0;
16120 _ACEOF
16121 rm -f conftest.$ac_objext conftest$ac_exeext
16122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16123 (eval $ac_link) 2>&5
16124 ac_status=$?
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); } &&
16127 { ac_try='test -s conftest$ac_exeext'
16128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16129 (eval $ac_try) 2>&5
16130 ac_status=$?
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); }; }; then
16133 ac_cv_lib_sec_getprpwnam=yes
16134 else
16135 echo "$as_me: failed program was:" >&5
16136 cat conftest.$ac_ext >&5
16137 ac_cv_lib_sec_getprpwnam=no
16139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16140 LIBS=$ac_check_lib_save_LIBS
16142 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
16143 echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
16144 if test $ac_cv_lib_sec_getprpwnam = yes; then
16145 cat >>confdefs.h <<_ACEOF
16146 #define HAVE_LIBSEC 1
16147 _ACEOF
16149 LIBS="-lsec $LIBS"
16154 for ac_func in getprpwnam
16156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16157 echo "$as_me:$LINENO: checking for $ac_func" >&5
16158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16159 if eval "test \"\${$as_ac_var+set}\" = set"; then
16160 echo $ECHO_N "(cached) $ECHO_C" >&6
16161 else
16162 cat >conftest.$ac_ext <<_ACEOF
16163 #line $LINENO "configure"
16164 #include "confdefs.h"
16165 /* System header to define __stub macros and hopefully few prototypes,
16166 which can conflict with char $ac_func (); below. */
16167 #include <assert.h>
16168 /* Override any gcc2 internal prototype to avoid an error. */
16169 #ifdef __cplusplus
16170 extern "C"
16171 #endif
16172 /* We use char because int might match the return type of a gcc2
16173 builtin and then its argument prototype would still apply. */
16174 char $ac_func ();
16175 char (*f) ();
16177 #ifdef F77_DUMMY_MAIN
16178 # ifdef __cplusplus
16179 extern "C"
16180 # endif
16181 int F77_DUMMY_MAIN() { return 1; }
16182 #endif
16184 main ()
16186 /* The GNU C library defines this for functions which it implements
16187 to always fail with ENOSYS. Some functions are actually named
16188 something starting with __ and the normal name is an alias. */
16189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16190 choke me
16191 #else
16192 f = $ac_func;
16193 #endif
16196 return 0;
16198 _ACEOF
16199 rm -f conftest.$ac_objext conftest$ac_exeext
16200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16201 (eval $ac_link) 2>&5
16202 ac_status=$?
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); } &&
16205 { ac_try='test -s conftest$ac_exeext'
16206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16208 ac_status=$?
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }; then
16211 eval "$as_ac_var=yes"
16212 else
16213 echo "$as_me: failed program was:" >&5
16214 cat conftest.$ac_ext >&5
16215 eval "$as_ac_var=no"
16217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16221 if test `eval echo '${'$as_ac_var'}'` = yes; then
16222 cat >>confdefs.h <<_ACEOF
16223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16224 _ACEOF
16227 done
16230 esac
16233 # this bit needs to be modified for each OS that is suported by
16234 # smbwrapper. You need to specify how to created a shared library and
16235 # how to compile C code to produce PIC object files
16237 # these are the defaults, good for lots of systems
16238 HOST_OS="$host_os"
16239 LDSHFLAGS="-shared"
16240 SONAMEFLAG="#"
16241 SHLD="\${CC}"
16242 PICFLAG=""
16243 PICSUFFIX="po"
16244 POBAD_CC="#"
16245 SHLIBEXT="so"
16246 # Assume non-shared by default and override below
16247 BLDSHARED="false"
16248 echo "$as_me:$LINENO: checking ability to build shared libraries" >&5
16249 echo $ECHO_N "checking ability to build shared libraries... $ECHO_C" >&6
16251 # and these are for particular systems
16252 case "$host_os" in
16253 *linux*)
16254 cat >>confdefs.h <<\_ACEOF
16255 #define LINUX 1
16256 _ACEOF
16258 BLDSHARED="true"
16259 LDSHFLAGS="-shared"
16260 DYNEXP="-Wl,--export-dynamic"
16261 PICFLAG="-fPIC"
16262 SONAMEFLAG="-Wl,-soname="
16263 cat >>confdefs.h <<\_ACEOF
16264 #define STAT_ST_BLOCKSIZE 512
16265 _ACEOF
16268 *solaris*)
16269 cat >>confdefs.h <<\_ACEOF
16270 #define SUNOS5 1
16271 _ACEOF
16273 BLDSHARED="true"
16274 LDSHFLAGS="-G"
16275 SONAMEFLAG="-h "
16276 if test "${GCC}" = "yes"; then
16277 PICFLAG="-fPIC"
16278 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
16279 DYNEXP="-Wl,-E"
16281 else
16282 PICFLAG="-KPIC"
16283 ## ${CFLAGS} added for building 64-bit shared
16284 ## libs using Sun's Compiler
16285 LDSHFLAGS="-G \${CFLAGS}"
16286 POBAD_CC=""
16287 PICSUFFIX="po.o"
16290 cat >>confdefs.h <<\_ACEOF
16291 #define STAT_ST_BLOCKSIZE 512
16292 _ACEOF
16295 *sunos*)
16296 cat >>confdefs.h <<\_ACEOF
16297 #define SUNOS4 1
16298 _ACEOF
16300 BLDSHARED="true"
16301 LDSHFLAGS="-G"
16302 SONAMEFLAG="-Wl,-h,"
16303 PICFLAG="-KPIC" # Is this correct for SunOS
16304 cat >>confdefs.h <<\_ACEOF
16305 #define STAT_ST_BLOCKSIZE 512
16306 _ACEOF
16309 *freebsd*) BLDSHARED="true"
16310 LDSHFLAGS="-shared"
16311 DYNEXP="-Wl,--export-dynamic"
16312 SONAMEFLAG="-Wl,-soname,"
16313 PICFLAG="-fPIC -DPIC"
16315 cat >>confdefs.h <<\_ACEOF
16316 #define STAT_ST_BLOCKSIZE 512
16317 _ACEOF
16320 *openbsd*) BLDSHARED="true"
16321 LDSHFLAGS="-shared"
16322 DYNEXP="-Wl,-Bdynamic"
16323 SONAMEFLAG="-Wl,-soname,"
16324 PICFLAG="-fPIC"
16326 cat >>confdefs.h <<\_ACEOF
16327 #define STAT_ST_BLOCKSIZE 512
16328 _ACEOF
16331 *irix*)
16332 cat >>confdefs.h <<\_ACEOF
16333 #define IRIX 1
16334 _ACEOF
16336 case "$host_os" in
16337 *irix6*)
16338 cat >>confdefs.h <<\_ACEOF
16339 #define IRIX6 1
16340 _ACEOF
16343 esac
16344 ATTEMPT_WRAP32_BUILD=yes
16345 BLDSHARED="true"
16346 LDSHFLAGS="-set_version sgi1.0 -shared"
16347 SONAMEFLAG="-soname "
16348 SHLD="\${LD}"
16349 if test "${GCC}" = "yes"; then
16350 PICFLAG="-fPIC"
16351 else
16352 PICFLAG="-KPIC"
16355 cat >>confdefs.h <<\_ACEOF
16356 #define STAT_ST_BLOCKSIZE 512
16357 _ACEOF
16360 *aix*)
16361 cat >>confdefs.h <<\_ACEOF
16362 #define AIX 1
16363 _ACEOF
16365 BLDSHARED="true"
16366 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
16367 DYNEXP="-Wl,-brtl,-bexpall"
16368 PICFLAG="-O2"
16369 if test "${GCC}" != "yes"; then
16370 ## for funky AIX compiler using strncpy()
16371 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
16375 cat >>confdefs.h <<\_ACEOF
16376 #define STAT_ST_BLOCKSIZE DEV_BSIZE
16377 _ACEOF
16380 *hpux*)
16381 cat >>confdefs.h <<\_ACEOF
16382 #define HPUX 1
16383 _ACEOF
16385 SHLIBEXT="sl"
16386 # Use special PIC flags for the native HP-UX compiler.
16387 if test $ac_cv_prog_cc_Ae = yes; then
16388 BLDSHARED="true"
16389 SHLD="/usr/bin/ld"
16390 LDSHFLAGS="-B symbolic -b -z"
16391 SONAMEFLAG="+h "
16392 PICFLAG="+z"
16394 DYNEXP="-Wl,-E"
16396 cat >>confdefs.h <<\_ACEOF
16397 #define STAT_ST_BLOCKSIZE 8192
16398 _ACEOF
16401 *qnx*)
16402 cat >>confdefs.h <<\_ACEOF
16403 #define QNX 1
16404 _ACEOF
16406 cat >>confdefs.h <<\_ACEOF
16407 #define STAT_ST_BLOCKSIZE 512
16408 _ACEOF
16411 *osf*)
16412 cat >>confdefs.h <<\_ACEOF
16413 #define OSF1 1
16414 _ACEOF
16416 BLDSHARED="true"
16417 LDSHFLAGS="-shared"
16418 SONAMEFLAG="-Wl,-soname,"
16419 PICFLAG="-fPIC"
16420 cat >>confdefs.h <<\_ACEOF
16421 #define STAT_ST_BLOCKSIZE 512
16422 _ACEOF
16425 *sco*)
16426 cat >>confdefs.h <<\_ACEOF
16427 #define SCO 1
16428 _ACEOF
16430 cat >>confdefs.h <<\_ACEOF
16431 #define STAT_ST_BLOCKSIZE 512
16432 _ACEOF
16435 *unixware*)
16436 cat >>confdefs.h <<\_ACEOF
16437 #define UNIXWARE 1
16438 _ACEOF
16440 BLDSHARED="true"
16441 LDSHFLAGS="-shared"
16442 SONAMEFLAG="-Wl,-soname,"
16443 PICFLAG="-KPIC"
16444 cat >>confdefs.h <<\_ACEOF
16445 #define STAT_ST_BLOCKSIZE 512
16446 _ACEOF
16449 *next2*)
16450 cat >>confdefs.h <<\_ACEOF
16451 #define NEXT2 1
16452 _ACEOF
16454 cat >>confdefs.h <<\_ACEOF
16455 #define STAT_ST_BLOCKSIZE 512
16456 _ACEOF
16459 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
16460 set dummy groff; ac_word=$2
16461 echo "$as_me:$LINENO: checking for $ac_word" >&5
16462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16463 if test "${ac_cv_prog_ROFF+set}" = set; then
16464 echo $ECHO_N "(cached) $ECHO_C" >&6
16465 else
16466 if test -n "$ROFF"; then
16467 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
16468 else
16469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16470 for as_dir in $PATH
16472 IFS=$as_save_IFS
16473 test -z "$as_dir" && as_dir=.
16474 for ac_exec_ext in '' $ac_executable_extensions; do
16475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16476 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
16477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16478 break 2
16480 done
16481 done
16485 ROFF=$ac_cv_prog_ROFF
16486 if test -n "$ROFF"; then
16487 echo "$as_me:$LINENO: result: $ROFF" >&5
16488 echo "${ECHO_T}$ROFF" >&6
16489 else
16490 echo "$as_me:$LINENO: result: no" >&5
16491 echo "${ECHO_T}no" >&6
16494 cat >>confdefs.h <<\_ACEOF
16495 #define STAT_ST_BLOCKSIZE 512
16496 _ACEOF
16499 *sysv4*)
16500 cat >>confdefs.h <<\_ACEOF
16501 #define SYSV 1
16502 _ACEOF
16504 case "$host" in
16505 *-univel-*) if test "$GCC" != yes ; then
16507 cat >>confdefs.h <<\_ACEOF
16508 #define HAVE_MEMSET 1
16509 _ACEOF
16512 LDSHFLAGS="-G"
16513 DYNEXP="-Bexport"
16515 *mips-sni-sysv4*)
16516 cat >>confdefs.h <<\_ACEOF
16517 #define RELIANTUNIX 1
16518 _ACEOF
16520 esac
16521 cat >>confdefs.h <<\_ACEOF
16522 #define STAT_ST_BLOCKSIZE 512
16523 _ACEOF
16527 *sysv5*)
16528 cat >>confdefs.h <<\_ACEOF
16529 #define SYSV 1
16530 _ACEOF
16532 if test "$GCC" != yes ; then
16534 cat >>confdefs.h <<\_ACEOF
16535 #define HAVE_MEMSET 1
16536 _ACEOF
16539 LDSHFLAGS="-G"
16540 cat >>confdefs.h <<\_ACEOF
16541 #define STAT_ST_BLOCKSIZE 512
16542 _ACEOF
16546 cat >>confdefs.h <<\_ACEOF
16547 #define STAT_ST_BLOCKSIZE 512
16548 _ACEOF
16551 esac
16553 echo "$as_me:$LINENO: result: $BLDSHARED" >&5
16554 echo "${ECHO_T}$BLDSHARED" >&6
16555 echo "$as_me:$LINENO: checking linker flags for shared libraries" >&5
16556 echo $ECHO_N "checking linker flags for shared libraries... $ECHO_C" >&6
16557 echo "$as_me:$LINENO: result: $LDSHFLAGS" >&5
16558 echo "${ECHO_T}$LDSHFLAGS" >&6
16559 echo "$as_me:$LINENO: checking compiler flags for position-independent code" >&5
16560 echo $ECHO_N "checking compiler flags for position-independent code... $ECHO_C" >&6
16561 echo "$as_me:$LINENO: result: $PICFLAGS" >&5
16562 echo "${ECHO_T}$PICFLAGS" >&6
16564 #######################################################
16565 # test whether building a shared library actually works
16566 if test $BLDSHARED = true; then
16567 echo "$as_me:$LINENO: checking whether building shared libraries actually works" >&5
16568 echo $ECHO_N "checking whether building shared libraries actually works... $ECHO_C" >&6
16569 if test "${ac_cv_shlib_works+set}" = set; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16571 else
16573 ac_cv_shlib_works=no
16574 # try building a trivial shared library
16575 if test "$PICSUFFIX" = "po"; then
16576 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
16577 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po &&
16578 ac_cv_shlib_works=yes
16579 else
16580 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.$PICSUFFIX ${srcdir-.}/tests/shlib.c &&
16581 mv shlib.$PICSUFFIX shlib.po &&
16582 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po &&
16583 ac_cv_shlib_works=yes
16585 rm -f shlib.so shlib.po
16588 echo "$as_me:$LINENO: result: $ac_cv_shlib_works" >&5
16589 echo "${ECHO_T}$ac_cv_shlib_works" >&6
16590 if test $ac_cv_shlib_works = no; then
16591 BLDSHARED=false
16595 # this updates our target list if we can build shared libs
16596 if test $BLDSHARED = true; then
16597 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
16598 else
16599 LIBSMBCLIENT_SHARED=
16602 ################
16604 echo "$as_me:$LINENO: checking for long long" >&5
16605 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16606 if test "${samba_cv_have_longlong+set}" = set; then
16607 echo $ECHO_N "(cached) $ECHO_C" >&6
16608 else
16610 if test "$cross_compiling" = yes; then
16611 samba_cv_have_longlong=cross
16612 else
16613 cat >conftest.$ac_ext <<_ACEOF
16614 #line $LINENO "configure"
16615 #include "confdefs.h"
16616 #include <stdio.h>
16617 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
16618 _ACEOF
16619 rm -f conftest$ac_exeext
16620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16621 (eval $ac_link) 2>&5
16622 ac_status=$?
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626 (eval $ac_try) 2>&5
16627 ac_status=$?
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; }; then
16630 samba_cv_have_longlong=yes
16631 else
16632 echo "$as_me: program exited with status $ac_status" >&5
16633 echo "$as_me: failed program was:" >&5
16634 cat conftest.$ac_ext >&5
16635 ( exit $ac_status )
16636 samba_cv_have_longlong=no
16638 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16641 echo "$as_me:$LINENO: result: $samba_cv_have_longlong" >&5
16642 echo "${ECHO_T}$samba_cv_have_longlong" >&6
16643 if test x"$samba_cv_have_longlong" = x"yes"; then
16645 cat >>confdefs.h <<\_ACEOF
16646 #define HAVE_LONGLONG 1
16647 _ACEOF
16652 # Check if the compiler supports the LL prefix on long long integers.
16653 # AIX needs this.
16655 echo "$as_me:$LINENO: checking for LL suffix on long long integers" >&5
16656 echo $ECHO_N "checking for LL suffix on long long integers... $ECHO_C" >&6
16657 if test "${samba_cv_compiler_supports_ll+set}" = set; then
16658 echo $ECHO_N "(cached) $ECHO_C" >&6
16659 else
16661 cat >conftest.$ac_ext <<_ACEOF
16662 #line $LINENO "configure"
16663 #include "confdefs.h"
16664 #include <stdio.h>
16665 #ifdef F77_DUMMY_MAIN
16666 # ifdef __cplusplus
16667 extern "C"
16668 # endif
16669 int F77_DUMMY_MAIN() { return 1; }
16670 #endif
16672 main ()
16674 long long i = 0x8000000000LL
16676 return 0;
16678 _ACEOF
16679 rm -f conftest.$ac_objext
16680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16681 (eval $ac_compile) 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); } &&
16685 { ac_try='test -s conftest.$ac_objext'
16686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687 (eval $ac_try) 2>&5
16688 ac_status=$?
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; }; then
16691 samba_cv_compiler_supports_ll=yes
16692 else
16693 echo "$as_me: failed program was:" >&5
16694 cat conftest.$ac_ext >&5
16695 samba_cv_compiler_supports_ll=no
16697 rm -f conftest.$ac_objext conftest.$ac_ext
16699 echo "$as_me:$LINENO: result: $samba_cv_compiler_supports_ll" >&5
16700 echo "${ECHO_T}$samba_cv_compiler_supports_ll" >&6
16701 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
16703 cat >>confdefs.h <<\_ACEOF
16704 #define COMPILER_SUPPORTS_LL 1
16705 _ACEOF
16710 echo "$as_me:$LINENO: checking for 64 bit off_t" >&5
16711 echo $ECHO_N "checking for 64 bit off_t... $ECHO_C" >&6
16712 if test "${samba_cv_SIZEOF_OFF_T+set}" = set; then
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16714 else
16716 if test "$cross_compiling" = yes; then
16717 samba_cv_SIZEOF_OFF_T=cross
16718 else
16719 cat >conftest.$ac_ext <<_ACEOF
16720 #line $LINENO "configure"
16721 #include "confdefs.h"
16722 #include <stdio.h>
16723 #include <sys/stat.h>
16724 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
16725 _ACEOF
16726 rm -f conftest$ac_exeext
16727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16728 (eval $ac_link) 2>&5
16729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733 (eval $ac_try) 2>&5
16734 ac_status=$?
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; }; then
16737 samba_cv_SIZEOF_OFF_T=yes
16738 else
16739 echo "$as_me: program exited with status $ac_status" >&5
16740 echo "$as_me: failed program was:" >&5
16741 cat conftest.$ac_ext >&5
16742 ( exit $ac_status )
16743 samba_cv_SIZEOF_OFF_T=no
16745 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16748 echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_OFF_T" >&5
16749 echo "${ECHO_T}$samba_cv_SIZEOF_OFF_T" >&6
16750 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
16752 cat >>confdefs.h <<\_ACEOF
16753 #define SIZEOF_OFF_T 8
16754 _ACEOF
16758 echo "$as_me:$LINENO: checking for off64_t" >&5
16759 echo $ECHO_N "checking for off64_t... $ECHO_C" >&6
16760 if test "${samba_cv_HAVE_OFF64_T+set}" = set; then
16761 echo $ECHO_N "(cached) $ECHO_C" >&6
16762 else
16764 if test "$cross_compiling" = yes; then
16765 samba_cv_HAVE_OFF64_T=cross
16766 else
16767 cat >conftest.$ac_ext <<_ACEOF
16768 #line $LINENO "configure"
16769 #include "confdefs.h"
16771 #if defined(HAVE_UNISTD_H)
16772 #include <unistd.h>
16773 #endif
16774 #include <stdio.h>
16775 #include <sys/stat.h>
16776 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
16777 _ACEOF
16778 rm -f conftest$ac_exeext
16779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16780 (eval $ac_link) 2>&5
16781 ac_status=$?
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785 (eval $ac_try) 2>&5
16786 ac_status=$?
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; }; then
16789 samba_cv_HAVE_OFF64_T=yes
16790 else
16791 echo "$as_me: program exited with status $ac_status" >&5
16792 echo "$as_me: failed program was:" >&5
16793 cat conftest.$ac_ext >&5
16794 ( exit $ac_status )
16795 samba_cv_HAVE_OFF64_T=no
16797 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16800 echo "$as_me:$LINENO: result: $samba_cv_HAVE_OFF64_T" >&5
16801 echo "${ECHO_T}$samba_cv_HAVE_OFF64_T" >&6
16802 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
16804 cat >>confdefs.h <<\_ACEOF
16805 #define HAVE_OFF64_T 1
16806 _ACEOF
16810 echo "$as_me:$LINENO: checking for 64 bit ino_t" >&5
16811 echo $ECHO_N "checking for 64 bit ino_t... $ECHO_C" >&6
16812 if test "${samba_cv_SIZEOF_INO_T+set}" = set; then
16813 echo $ECHO_N "(cached) $ECHO_C" >&6
16814 else
16816 if test "$cross_compiling" = yes; then
16817 samba_cv_SIZEOF_INO_T=cross
16818 else
16819 cat >conftest.$ac_ext <<_ACEOF
16820 #line $LINENO "configure"
16821 #include "confdefs.h"
16822 #include <stdio.h>
16823 #include <sys/stat.h>
16824 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
16825 _ACEOF
16826 rm -f conftest$ac_exeext
16827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16828 (eval $ac_link) 2>&5
16829 ac_status=$?
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16837 samba_cv_SIZEOF_INO_T=yes
16838 else
16839 echo "$as_me: program exited with status $ac_status" >&5
16840 echo "$as_me: failed program was:" >&5
16841 cat conftest.$ac_ext >&5
16842 ( exit $ac_status )
16843 samba_cv_SIZEOF_INO_T=no
16845 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16848 echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_INO_T" >&5
16849 echo "${ECHO_T}$samba_cv_SIZEOF_INO_T" >&6
16850 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
16852 cat >>confdefs.h <<\_ACEOF
16853 #define SIZEOF_INO_T 8
16854 _ACEOF
16858 echo "$as_me:$LINENO: checking for ino64_t" >&5
16859 echo $ECHO_N "checking for ino64_t... $ECHO_C" >&6
16860 if test "${samba_cv_HAVE_INO64_T+set}" = set; then
16861 echo $ECHO_N "(cached) $ECHO_C" >&6
16862 else
16864 if test "$cross_compiling" = yes; then
16865 samba_cv_HAVE_INO64_T=cross
16866 else
16867 cat >conftest.$ac_ext <<_ACEOF
16868 #line $LINENO "configure"
16869 #include "confdefs.h"
16871 #if defined(HAVE_UNISTD_H)
16872 #include <unistd.h>
16873 #endif
16874 #include <stdio.h>
16875 #include <sys/stat.h>
16876 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
16877 _ACEOF
16878 rm -f conftest$ac_exeext
16879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16880 (eval $ac_link) 2>&5
16881 ac_status=$?
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16885 (eval $ac_try) 2>&5
16886 ac_status=$?
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); }; }; then
16889 samba_cv_HAVE_INO64_T=yes
16890 else
16891 echo "$as_me: program exited with status $ac_status" >&5
16892 echo "$as_me: failed program was:" >&5
16893 cat conftest.$ac_ext >&5
16894 ( exit $ac_status )
16895 samba_cv_HAVE_INO64_T=no
16897 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16900 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INO64_T" >&5
16901 echo "${ECHO_T}$samba_cv_HAVE_INO64_T" >&6
16902 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
16904 cat >>confdefs.h <<\_ACEOF
16905 #define HAVE_INO64_T 1
16906 _ACEOF
16910 echo "$as_me:$LINENO: checking for dev64_t" >&5
16911 echo $ECHO_N "checking for dev64_t... $ECHO_C" >&6
16912 if test "${samba_cv_HAVE_DEV64_T+set}" = set; then
16913 echo $ECHO_N "(cached) $ECHO_C" >&6
16914 else
16916 if test "$cross_compiling" = yes; then
16917 samba_cv_HAVE_DEV64_T=cross
16918 else
16919 cat >conftest.$ac_ext <<_ACEOF
16920 #line $LINENO "configure"
16921 #include "confdefs.h"
16923 #if defined(HAVE_UNISTD_H)
16924 #include <unistd.h>
16925 #endif
16926 #include <stdio.h>
16927 #include <sys/stat.h>
16928 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
16929 _ACEOF
16930 rm -f conftest$ac_exeext
16931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16932 (eval $ac_link) 2>&5
16933 ac_status=$?
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16937 (eval $ac_try) 2>&5
16938 ac_status=$?
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; }; then
16941 samba_cv_HAVE_DEV64_T=yes
16942 else
16943 echo "$as_me: program exited with status $ac_status" >&5
16944 echo "$as_me: failed program was:" >&5
16945 cat conftest.$ac_ext >&5
16946 ( exit $ac_status )
16947 samba_cv_HAVE_DEV64_T=no
16949 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16952 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEV64_T" >&5
16953 echo "${ECHO_T}$samba_cv_HAVE_DEV64_T" >&6
16954 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
16956 cat >>confdefs.h <<\_ACEOF
16957 #define HAVE_DEV64_T 1
16958 _ACEOF
16962 echo "$as_me:$LINENO: checking for struct dirent64" >&5
16963 echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6
16964 if test "${samba_cv_HAVE_STRUCT_DIRENT64+set}" = set; then
16965 echo $ECHO_N "(cached) $ECHO_C" >&6
16966 else
16968 cat >conftest.$ac_ext <<_ACEOF
16969 #line $LINENO "configure"
16970 #include "confdefs.h"
16972 #if defined(HAVE_UNISTD_H)
16973 #include <unistd.h>
16974 #endif
16975 #include <sys/types.h>
16976 #include <dirent.h>
16977 #ifdef F77_DUMMY_MAIN
16978 # ifdef __cplusplus
16979 extern "C"
16980 # endif
16981 int F77_DUMMY_MAIN() { return 1; }
16982 #endif
16984 main ()
16986 struct dirent64 de;
16988 return 0;
16990 _ACEOF
16991 rm -f conftest.$ac_objext
16992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16993 (eval $ac_compile) 2>&5
16994 ac_status=$?
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } &&
16997 { ac_try='test -s conftest.$ac_objext'
16998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999 (eval $ac_try) 2>&5
17000 ac_status=$?
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; }; then
17003 samba_cv_HAVE_STRUCT_DIRENT64=yes
17004 else
17005 echo "$as_me: failed program was:" >&5
17006 cat conftest.$ac_ext >&5
17007 samba_cv_HAVE_STRUCT_DIRENT64=no
17009 rm -f conftest.$ac_objext conftest.$ac_ext
17011 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_DIRENT64" >&5
17012 echo "${ECHO_T}$samba_cv_HAVE_STRUCT_DIRENT64" >&6
17013 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
17015 cat >>confdefs.h <<\_ACEOF
17016 #define HAVE_STRUCT_DIRENT64 1
17017 _ACEOF
17021 echo "$as_me:$LINENO: checking for major macro" >&5
17022 echo $ECHO_N "checking for major macro... $ECHO_C" >&6
17023 if test "${samba_cv_HAVE_DEVICE_MAJOR_FN+set}" = set; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17025 else
17027 if test "$cross_compiling" = yes; then
17028 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
17029 else
17030 cat >conftest.$ac_ext <<_ACEOF
17031 #line $LINENO "configure"
17032 #include "confdefs.h"
17034 #if defined(HAVE_UNISTD_H)
17035 #include <unistd.h>
17036 #endif
17037 #include <sys/types.h>
17038 main() { dev_t dev; int i = major(dev); return 0; }
17039 _ACEOF
17040 rm -f conftest$ac_exeext
17041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17042 (eval $ac_link) 2>&5
17043 ac_status=$?
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17047 (eval $ac_try) 2>&5
17048 ac_status=$?
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; }; then
17051 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
17052 else
17053 echo "$as_me: program exited with status $ac_status" >&5
17054 echo "$as_me: failed program was:" >&5
17055 cat conftest.$ac_ext >&5
17056 ( exit $ac_status )
17057 samba_cv_HAVE_DEVICE_MAJOR_FN=no
17059 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17062 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MAJOR_FN" >&5
17063 echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MAJOR_FN" >&6
17064 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
17066 cat >>confdefs.h <<\_ACEOF
17067 #define HAVE_DEVICE_MAJOR_FN 1
17068 _ACEOF
17072 echo "$as_me:$LINENO: checking for minor macro" >&5
17073 echo $ECHO_N "checking for minor macro... $ECHO_C" >&6
17074 if test "${samba_cv_HAVE_DEVICE_MINOR_FN+set}" = set; then
17075 echo $ECHO_N "(cached) $ECHO_C" >&6
17076 else
17078 if test "$cross_compiling" = yes; then
17079 samba_cv_HAVE_DEVICE_MINOR_FN=cross
17080 else
17081 cat >conftest.$ac_ext <<_ACEOF
17082 #line $LINENO "configure"
17083 #include "confdefs.h"
17085 #if defined(HAVE_UNISTD_H)
17086 #include <unistd.h>
17087 #endif
17088 #include <sys/types.h>
17089 main() { dev_t dev; int i = minor(dev); return 0; }
17090 _ACEOF
17091 rm -f conftest$ac_exeext
17092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17093 (eval $ac_link) 2>&5
17094 ac_status=$?
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17098 (eval $ac_try) 2>&5
17099 ac_status=$?
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; }; then
17102 samba_cv_HAVE_DEVICE_MINOR_FN=yes
17103 else
17104 echo "$as_me: program exited with status $ac_status" >&5
17105 echo "$as_me: failed program was:" >&5
17106 cat conftest.$ac_ext >&5
17107 ( exit $ac_status )
17108 samba_cv_HAVE_DEVICE_MINOR_FN=no
17110 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17113 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MINOR_FN" >&5
17114 echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MINOR_FN" >&6
17115 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
17117 cat >>confdefs.h <<\_ACEOF
17118 #define HAVE_DEVICE_MINOR_FN 1
17119 _ACEOF
17123 echo "$as_me:$LINENO: checking for unsigned char" >&5
17124 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
17125 if test "${samba_cv_HAVE_UNSIGNED_CHAR+set}" = set; then
17126 echo $ECHO_N "(cached) $ECHO_C" >&6
17127 else
17129 if test "$cross_compiling" = yes; then
17130 samba_cv_HAVE_UNSIGNED_CHAR=cross
17131 else
17132 cat >conftest.$ac_ext <<_ACEOF
17133 #line $LINENO "configure"
17134 #include "confdefs.h"
17135 #include <stdio.h>
17136 main() { char c; c=250; exit((c > 0)?0:1); }
17137 _ACEOF
17138 rm -f conftest$ac_exeext
17139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17140 (eval $ac_link) 2>&5
17141 ac_status=$?
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17145 (eval $ac_try) 2>&5
17146 ac_status=$?
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); }; }; then
17149 samba_cv_HAVE_UNSIGNED_CHAR=yes
17150 else
17151 echo "$as_me: program exited with status $ac_status" >&5
17152 echo "$as_me: failed program was:" >&5
17153 cat conftest.$ac_ext >&5
17154 ( exit $ac_status )
17155 samba_cv_HAVE_UNSIGNED_CHAR=no
17157 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17160 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UNSIGNED_CHAR" >&5
17161 echo "${ECHO_T}$samba_cv_HAVE_UNSIGNED_CHAR" >&6
17162 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
17164 cat >>confdefs.h <<\_ACEOF
17165 #define HAVE_UNSIGNED_CHAR 1
17166 _ACEOF
17170 echo "$as_me:$LINENO: checking for sin_len in sock" >&5
17171 echo $ECHO_N "checking for sin_len in sock... $ECHO_C" >&6
17172 if test "${samba_cv_HAVE_SOCK_SIN_LEN+set}" = set; then
17173 echo $ECHO_N "(cached) $ECHO_C" >&6
17174 else
17176 cat >conftest.$ac_ext <<_ACEOF
17177 #line $LINENO "configure"
17178 #include "confdefs.h"
17179 #include <sys/types.h>
17180 #include <sys/socket.h>
17181 #include <netinet/in.h>
17182 #ifdef F77_DUMMY_MAIN
17183 # ifdef __cplusplus
17184 extern "C"
17185 # endif
17186 int F77_DUMMY_MAIN() { return 1; }
17187 #endif
17189 main ()
17191 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
17193 return 0;
17195 _ACEOF
17196 rm -f conftest.$ac_objext
17197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17198 (eval $ac_compile) 2>&5
17199 ac_status=$?
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); } &&
17202 { ac_try='test -s conftest.$ac_objext'
17203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17204 (eval $ac_try) 2>&5
17205 ac_status=$?
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); }; }; then
17208 samba_cv_HAVE_SOCK_SIN_LEN=yes
17209 else
17210 echo "$as_me: failed program was:" >&5
17211 cat conftest.$ac_ext >&5
17212 samba_cv_HAVE_SOCK_SIN_LEN=no
17214 rm -f conftest.$ac_objext conftest.$ac_ext
17216 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SOCK_SIN_LEN" >&5
17217 echo "${ECHO_T}$samba_cv_HAVE_SOCK_SIN_LEN" >&6
17218 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
17220 cat >>confdefs.h <<\_ACEOF
17221 #define HAVE_SOCK_SIN_LEN 1
17222 _ACEOF
17226 echo "$as_me:$LINENO: checking whether seekdir returns void" >&5
17227 echo $ECHO_N "checking whether seekdir returns void... $ECHO_C" >&6
17228 if test "${samba_cv_SEEKDIR_RETURNS_VOID+set}" = set; then
17229 echo $ECHO_N "(cached) $ECHO_C" >&6
17230 else
17232 cat >conftest.$ac_ext <<_ACEOF
17233 #line $LINENO "configure"
17234 #include "confdefs.h"
17235 #include <sys/types.h>
17236 #include <dirent.h>
17237 void seekdir(DIR *d, long loc) { return; }
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 return 0;
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_SEEKDIR_RETURNS_VOID=yes
17265 else
17266 echo "$as_me: failed program was:" >&5
17267 cat conftest.$ac_ext >&5
17268 samba_cv_SEEKDIR_RETURNS_VOID=no
17270 rm -f conftest.$ac_objext conftest.$ac_ext
17272 echo "$as_me:$LINENO: result: $samba_cv_SEEKDIR_RETURNS_VOID" >&5
17273 echo "${ECHO_T}$samba_cv_SEEKDIR_RETURNS_VOID" >&6
17274 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
17276 cat >>confdefs.h <<\_ACEOF
17277 #define SEEKDIR_RETURNS_VOID 1
17278 _ACEOF
17282 echo "$as_me:$LINENO: checking for __FUNCTION__ macro" >&5
17283 echo $ECHO_N "checking for __FUNCTION__ macro... $ECHO_C" >&6
17284 if test "${samba_cv_HAVE_FUNCTION_MACRO+set}" = set; then
17285 echo $ECHO_N "(cached) $ECHO_C" >&6
17286 else
17288 cat >conftest.$ac_ext <<_ACEOF
17289 #line $LINENO "configure"
17290 #include "confdefs.h"
17291 #include <stdio.h>
17292 #ifdef F77_DUMMY_MAIN
17293 # ifdef __cplusplus
17294 extern "C"
17295 # endif
17296 int F77_DUMMY_MAIN() { return 1; }
17297 #endif
17299 main ()
17301 printf("%s\n", __FUNCTION__);
17303 return 0;
17305 _ACEOF
17306 rm -f conftest.$ac_objext
17307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17308 (eval $ac_compile) 2>&5
17309 ac_status=$?
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } &&
17312 { ac_try='test -s conftest.$ac_objext'
17313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17314 (eval $ac_try) 2>&5
17315 ac_status=$?
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); }; }; then
17318 samba_cv_HAVE_FUNCTION_MACRO=yes
17319 else
17320 echo "$as_me: failed program was:" >&5
17321 cat conftest.$ac_ext >&5
17322 samba_cv_HAVE_FUNCTION_MACRO=no
17324 rm -f conftest.$ac_objext conftest.$ac_ext
17326 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FUNCTION_MACRO" >&5
17327 echo "${ECHO_T}$samba_cv_HAVE_FUNCTION_MACRO" >&6
17328 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
17330 cat >>confdefs.h <<\_ACEOF
17331 #define HAVE_FUNCTION_MACRO 1
17332 _ACEOF
17336 echo "$as_me:$LINENO: checking if gettimeofday takes tz argument" >&5
17337 echo $ECHO_N "checking if gettimeofday takes tz argument... $ECHO_C" >&6
17338 if test "${samba_cv_HAVE_GETTIMEOFDAY_TZ+set}" = set; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17340 else
17342 if test "$cross_compiling" = yes; then
17343 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
17344 else
17345 cat >conftest.$ac_ext <<_ACEOF
17346 #line $LINENO "configure"
17347 #include "confdefs.h"
17349 #include <sys/time.h>
17350 #include <unistd.h>
17351 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
17352 _ACEOF
17353 rm -f conftest$ac_exeext
17354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17355 (eval $ac_link) 2>&5
17356 ac_status=$?
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360 (eval $ac_try) 2>&5
17361 ac_status=$?
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; }; then
17364 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
17365 else
17366 echo "$as_me: program exited with status $ac_status" >&5
17367 echo "$as_me: failed program was:" >&5
17368 cat conftest.$ac_ext >&5
17369 ( exit $ac_status )
17370 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
17372 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17375 echo "$as_me:$LINENO: result: $samba_cv_HAVE_GETTIMEOFDAY_TZ" >&5
17376 echo "${ECHO_T}$samba_cv_HAVE_GETTIMEOFDAY_TZ" >&6
17377 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
17379 cat >>confdefs.h <<\_ACEOF
17380 #define HAVE_GETTIMEOFDAY_TZ 1
17381 _ACEOF
17385 echo "$as_me:$LINENO: checking for __va_copy" >&5
17386 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
17387 if test "${samba_cv_HAVE_VA_COPY+set}" = set; then
17388 echo $ECHO_N "(cached) $ECHO_C" >&6
17389 else
17391 cat >conftest.$ac_ext <<_ACEOF
17392 #line $LINENO "configure"
17393 #include "confdefs.h"
17394 #include <stdarg.h>
17395 va_list ap1,ap2;
17396 #ifdef F77_DUMMY_MAIN
17397 # ifdef __cplusplus
17398 extern "C"
17399 # endif
17400 int F77_DUMMY_MAIN() { return 1; }
17401 #endif
17403 main ()
17405 __va_copy(ap1,ap2);
17407 return 0;
17409 _ACEOF
17410 rm -f conftest.$ac_objext conftest$ac_exeext
17411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17412 (eval $ac_link) 2>&5
17413 ac_status=$?
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } &&
17416 { ac_try='test -s conftest$ac_exeext'
17417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17419 ac_status=$?
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; }; then
17422 samba_cv_HAVE_VA_COPY=yes
17423 else
17424 echo "$as_me: failed program was:" >&5
17425 cat conftest.$ac_ext >&5
17426 samba_cv_HAVE_VA_COPY=no
17428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17430 echo "$as_me:$LINENO: result: $samba_cv_HAVE_VA_COPY" >&5
17431 echo "${ECHO_T}$samba_cv_HAVE_VA_COPY" >&6
17432 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
17434 cat >>confdefs.h <<\_ACEOF
17435 #define HAVE_VA_COPY 1
17436 _ACEOF
17440 echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
17441 echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6
17442 if test "${samba_cv_HAVE_C99_VSNPRINTF+set}" = set; then
17443 echo $ECHO_N "(cached) $ECHO_C" >&6
17444 else
17446 if test "$cross_compiling" = yes; then
17447 samba_cv_HAVE_C99_VSNPRINTF=cross
17448 else
17449 cat >conftest.$ac_ext <<_ACEOF
17450 #line $LINENO "configure"
17451 #include "confdefs.h"
17453 #include <sys/types.h>
17454 #include <stdarg.h>
17455 void foo(const char *format, ...) {
17456 va_list ap;
17457 int len;
17458 char buf[5];
17460 va_start(ap, format);
17461 len = vsnprintf(buf, 0, format, ap);
17462 va_end(ap);
17463 if (len != 5) exit(1);
17465 va_start(ap, format);
17466 len = vsnprintf(0, 0, format, ap);
17467 va_end(ap);
17468 if (len != 5) exit(1);
17470 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
17472 exit(0);
17474 main() { foo("hello"); }
17476 _ACEOF
17477 rm -f conftest$ac_exeext
17478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17479 (eval $ac_link) 2>&5
17480 ac_status=$?
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484 (eval $ac_try) 2>&5
17485 ac_status=$?
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; }; then
17488 samba_cv_HAVE_C99_VSNPRINTF=yes
17489 else
17490 echo "$as_me: program exited with status $ac_status" >&5
17491 echo "$as_me: failed program was:" >&5
17492 cat conftest.$ac_ext >&5
17493 ( exit $ac_status )
17494 samba_cv_HAVE_C99_VSNPRINTF=no
17496 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17499 echo "$as_me:$LINENO: result: $samba_cv_HAVE_C99_VSNPRINTF" >&5
17500 echo "${ECHO_T}$samba_cv_HAVE_C99_VSNPRINTF" >&6
17501 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
17503 cat >>confdefs.h <<\_ACEOF
17504 #define HAVE_C99_VSNPRINTF 1
17505 _ACEOF
17509 echo "$as_me:$LINENO: checking for broken readdir" >&5
17510 echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6
17511 if test "${samba_cv_HAVE_BROKEN_READDIR+set}" = set; then
17512 echo $ECHO_N "(cached) $ECHO_C" >&6
17513 else
17515 if test "$cross_compiling" = yes; then
17516 samba_cv_HAVE_BROKEN_READDIR=cross
17517 else
17518 cat >conftest.$ac_ext <<_ACEOF
17519 #line $LINENO "configure"
17520 #include "confdefs.h"
17521 #include <sys/types.h>
17522 #include <dirent.h>
17523 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
17524 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
17525 di->d_name[0] == 0) exit(0); exit(1);}
17526 _ACEOF
17527 rm -f conftest$ac_exeext
17528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17529 (eval $ac_link) 2>&5
17530 ac_status=$?
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17535 ac_status=$?
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; }; then
17538 samba_cv_HAVE_BROKEN_READDIR=yes
17539 else
17540 echo "$as_me: program exited with status $ac_status" >&5
17541 echo "$as_me: failed program was:" >&5
17542 cat conftest.$ac_ext >&5
17543 ( exit $ac_status )
17544 samba_cv_HAVE_BROKEN_READDIR=no
17546 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17549 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_READDIR" >&5
17550 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_READDIR" >&6
17551 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
17553 cat >>confdefs.h <<\_ACEOF
17554 #define HAVE_BROKEN_READDIR 1
17555 _ACEOF
17559 echo "$as_me:$LINENO: checking for utimbuf" >&5
17560 echo $ECHO_N "checking for utimbuf... $ECHO_C" >&6
17561 if test "${samba_cv_HAVE_UTIMBUF+set}" = set; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17563 else
17565 cat >conftest.$ac_ext <<_ACEOF
17566 #line $LINENO "configure"
17567 #include "confdefs.h"
17568 #include <sys/types.h>
17569 #include <utime.h>
17570 #ifdef F77_DUMMY_MAIN
17571 # ifdef __cplusplus
17572 extern "C"
17573 # endif
17574 int F77_DUMMY_MAIN() { return 1; }
17575 #endif
17577 main ()
17579 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
17581 return 0;
17583 _ACEOF
17584 rm -f conftest.$ac_objext
17585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17586 (eval $ac_compile) 2>&5
17587 ac_status=$?
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); } &&
17590 { ac_try='test -s conftest.$ac_objext'
17591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592 (eval $ac_try) 2>&5
17593 ac_status=$?
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); }; }; then
17596 samba_cv_HAVE_UTIMBUF=yes
17597 else
17598 echo "$as_me: failed program was:" >&5
17599 cat conftest.$ac_ext >&5
17600 samba_cv_HAVE_UTIMBUF=no
17602 rm -f conftest.$ac_objext conftest.$ac_ext
17604 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UTIMBUF" >&5
17605 echo "${ECHO_T}$samba_cv_HAVE_UTIMBUF" >&6
17606 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
17608 cat >>confdefs.h <<\_ACEOF
17609 #define HAVE_UTIMBUF 1
17610 _ACEOF
17620 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
17622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17623 echo "$as_me:$LINENO: checking for $ac_func" >&5
17624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17625 if eval "test \"\${$as_ac_var+set}\" = set"; then
17626 echo $ECHO_N "(cached) $ECHO_C" >&6
17627 else
17628 cat >conftest.$ac_ext <<_ACEOF
17629 #line $LINENO "configure"
17630 #include "confdefs.h"
17631 /* System header to define __stub macros and hopefully few prototypes,
17632 which can conflict with char $ac_func (); below. */
17633 #include <assert.h>
17634 /* Override any gcc2 internal prototype to avoid an error. */
17635 #ifdef __cplusplus
17636 extern "C"
17637 #endif
17638 /* We use char because int might match the return type of a gcc2
17639 builtin and then its argument prototype would still apply. */
17640 char $ac_func ();
17641 char (*f) ();
17643 #ifdef F77_DUMMY_MAIN
17644 # ifdef __cplusplus
17645 extern "C"
17646 # endif
17647 int F77_DUMMY_MAIN() { return 1; }
17648 #endif
17650 main ()
17652 /* The GNU C library defines this for functions which it implements
17653 to always fail with ENOSYS. Some functions are actually named
17654 something starting with __ and the normal name is an alias. */
17655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17656 choke me
17657 #else
17658 f = $ac_func;
17659 #endif
17662 return 0;
17664 _ACEOF
17665 rm -f conftest.$ac_objext conftest$ac_exeext
17666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17667 (eval $ac_link) 2>&5
17668 ac_status=$?
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } &&
17671 { ac_try='test -s conftest$ac_exeext'
17672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17673 (eval $ac_try) 2>&5
17674 ac_status=$?
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }; }; then
17677 eval "$as_ac_var=yes"
17678 else
17679 echo "$as_me: failed program was:" >&5
17680 cat conftest.$ac_ext >&5
17681 eval "$as_ac_var=no"
17683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17687 if test `eval echo '${'$as_ac_var'}'` = yes; then
17688 cat >>confdefs.h <<_ACEOF
17689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17690 _ACEOF
17693 done
17696 echo "$as_me:$LINENO: checking for ut_name in utmp" >&5
17697 echo $ECHO_N "checking for ut_name in utmp... $ECHO_C" >&6
17698 if test "${samba_cv_HAVE_UT_UT_NAME+set}" = set; then
17699 echo $ECHO_N "(cached) $ECHO_C" >&6
17700 else
17702 cat >conftest.$ac_ext <<_ACEOF
17703 #line $LINENO "configure"
17704 #include "confdefs.h"
17705 #include <sys/types.h>
17706 #include <utmp.h>
17707 #ifdef F77_DUMMY_MAIN
17708 # ifdef __cplusplus
17709 extern "C"
17710 # endif
17711 int F77_DUMMY_MAIN() { return 1; }
17712 #endif
17714 main ()
17716 struct utmp ut; ut.ut_name[0] = 'a';
17718 return 0;
17720 _ACEOF
17721 rm -f conftest.$ac_objext
17722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17723 (eval $ac_compile) 2>&5
17724 ac_status=$?
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } &&
17727 { ac_try='test -s conftest.$ac_objext'
17728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729 (eval $ac_try) 2>&5
17730 ac_status=$?
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; }; then
17733 samba_cv_HAVE_UT_UT_NAME=yes
17734 else
17735 echo "$as_me: failed program was:" >&5
17736 cat conftest.$ac_ext >&5
17737 samba_cv_HAVE_UT_UT_NAME=no
17739 rm -f conftest.$ac_objext conftest.$ac_ext
17741 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_NAME" >&5
17742 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_NAME" >&6
17743 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
17745 cat >>confdefs.h <<\_ACEOF
17746 #define HAVE_UT_UT_NAME 1
17747 _ACEOF
17751 echo "$as_me:$LINENO: checking for ut_user in utmp" >&5
17752 echo $ECHO_N "checking for ut_user in utmp... $ECHO_C" >&6
17753 if test "${samba_cv_HAVE_UT_UT_USER+set}" = set; then
17754 echo $ECHO_N "(cached) $ECHO_C" >&6
17755 else
17757 cat >conftest.$ac_ext <<_ACEOF
17758 #line $LINENO "configure"
17759 #include "confdefs.h"
17760 #include <sys/types.h>
17761 #include <utmp.h>
17762 #ifdef F77_DUMMY_MAIN
17763 # ifdef __cplusplus
17764 extern "C"
17765 # endif
17766 int F77_DUMMY_MAIN() { return 1; }
17767 #endif
17769 main ()
17771 struct utmp ut; ut.ut_user[0] = 'a';
17773 return 0;
17775 _ACEOF
17776 rm -f conftest.$ac_objext
17777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17778 (eval $ac_compile) 2>&5
17779 ac_status=$?
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } &&
17782 { ac_try='test -s conftest.$ac_objext'
17783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17785 ac_status=$?
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; }; then
17788 samba_cv_HAVE_UT_UT_USER=yes
17789 else
17790 echo "$as_me: failed program was:" >&5
17791 cat conftest.$ac_ext >&5
17792 samba_cv_HAVE_UT_UT_USER=no
17794 rm -f conftest.$ac_objext conftest.$ac_ext
17796 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_USER" >&5
17797 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_USER" >&6
17798 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
17800 cat >>confdefs.h <<\_ACEOF
17801 #define HAVE_UT_UT_USER 1
17802 _ACEOF
17806 echo "$as_me:$LINENO: checking for ut_id in utmp" >&5
17807 echo $ECHO_N "checking for ut_id in utmp... $ECHO_C" >&6
17808 if test "${samba_cv_HAVE_UT_UT_ID+set}" = set; then
17809 echo $ECHO_N "(cached) $ECHO_C" >&6
17810 else
17812 cat >conftest.$ac_ext <<_ACEOF
17813 #line $LINENO "configure"
17814 #include "confdefs.h"
17815 #include <sys/types.h>
17816 #include <utmp.h>
17817 #ifdef F77_DUMMY_MAIN
17818 # ifdef __cplusplus
17819 extern "C"
17820 # endif
17821 int F77_DUMMY_MAIN() { return 1; }
17822 #endif
17824 main ()
17826 struct utmp ut; ut.ut_id[0] = 'a';
17828 return 0;
17830 _ACEOF
17831 rm -f conftest.$ac_objext
17832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17833 (eval $ac_compile) 2>&5
17834 ac_status=$?
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } &&
17837 { ac_try='test -s conftest.$ac_objext'
17838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17839 (eval $ac_try) 2>&5
17840 ac_status=$?
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; }; then
17843 samba_cv_HAVE_UT_UT_ID=yes
17844 else
17845 echo "$as_me: failed program was:" >&5
17846 cat conftest.$ac_ext >&5
17847 samba_cv_HAVE_UT_UT_ID=no
17849 rm -f conftest.$ac_objext conftest.$ac_ext
17851 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ID" >&5
17852 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ID" >&6
17853 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
17855 cat >>confdefs.h <<\_ACEOF
17856 #define HAVE_UT_UT_ID 1
17857 _ACEOF
17861 echo "$as_me:$LINENO: checking for ut_host in utmp" >&5
17862 echo $ECHO_N "checking for ut_host in utmp... $ECHO_C" >&6
17863 if test "${samba_cv_HAVE_UT_UT_HOST+set}" = set; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17865 else
17867 cat >conftest.$ac_ext <<_ACEOF
17868 #line $LINENO "configure"
17869 #include "confdefs.h"
17870 #include <sys/types.h>
17871 #include <utmp.h>
17872 #ifdef F77_DUMMY_MAIN
17873 # ifdef __cplusplus
17874 extern "C"
17875 # endif
17876 int F77_DUMMY_MAIN() { return 1; }
17877 #endif
17879 main ()
17881 struct utmp ut; ut.ut_host[0] = 'a';
17883 return 0;
17885 _ACEOF
17886 rm -f conftest.$ac_objext
17887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17888 (eval $ac_compile) 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); } &&
17892 { ac_try='test -s conftest.$ac_objext'
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17895 ac_status=$?
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }; then
17898 samba_cv_HAVE_UT_UT_HOST=yes
17899 else
17900 echo "$as_me: failed program was:" >&5
17901 cat conftest.$ac_ext >&5
17902 samba_cv_HAVE_UT_UT_HOST=no
17904 rm -f conftest.$ac_objext conftest.$ac_ext
17906 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_HOST" >&5
17907 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_HOST" >&6
17908 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
17910 cat >>confdefs.h <<\_ACEOF
17911 #define HAVE_UT_UT_HOST 1
17912 _ACEOF
17916 echo "$as_me:$LINENO: checking for ut_time in utmp" >&5
17917 echo $ECHO_N "checking for ut_time in utmp... $ECHO_C" >&6
17918 if test "${samba_cv_HAVE_UT_UT_TIME+set}" = set; then
17919 echo $ECHO_N "(cached) $ECHO_C" >&6
17920 else
17922 cat >conftest.$ac_ext <<_ACEOF
17923 #line $LINENO "configure"
17924 #include "confdefs.h"
17925 #include <sys/types.h>
17926 #include <utmp.h>
17927 #ifdef F77_DUMMY_MAIN
17928 # ifdef __cplusplus
17929 extern "C"
17930 # endif
17931 int F77_DUMMY_MAIN() { return 1; }
17932 #endif
17934 main ()
17936 struct utmp ut; time_t t; ut.ut_time = t;
17938 return 0;
17940 _ACEOF
17941 rm -f conftest.$ac_objext
17942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17943 (eval $ac_compile) 2>&5
17944 ac_status=$?
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); } &&
17947 { ac_try='test -s conftest.$ac_objext'
17948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17949 (eval $ac_try) 2>&5
17950 ac_status=$?
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; }; then
17953 samba_cv_HAVE_UT_UT_TIME=yes
17954 else
17955 echo "$as_me: failed program was:" >&5
17956 cat conftest.$ac_ext >&5
17957 samba_cv_HAVE_UT_UT_TIME=no
17959 rm -f conftest.$ac_objext conftest.$ac_ext
17961 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TIME" >&5
17962 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TIME" >&6
17963 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
17965 cat >>confdefs.h <<\_ACEOF
17966 #define HAVE_UT_UT_TIME 1
17967 _ACEOF
17971 echo "$as_me:$LINENO: checking for ut_tv in utmp" >&5
17972 echo $ECHO_N "checking for ut_tv in utmp... $ECHO_C" >&6
17973 if test "${samba_cv_HAVE_UT_UT_TV+set}" = set; then
17974 echo $ECHO_N "(cached) $ECHO_C" >&6
17975 else
17977 cat >conftest.$ac_ext <<_ACEOF
17978 #line $LINENO "configure"
17979 #include "confdefs.h"
17980 #include <sys/types.h>
17981 #include <utmp.h>
17982 #ifdef F77_DUMMY_MAIN
17983 # ifdef __cplusplus
17984 extern "C"
17985 # endif
17986 int F77_DUMMY_MAIN() { return 1; }
17987 #endif
17989 main ()
17991 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
17993 return 0;
17995 _ACEOF
17996 rm -f conftest.$ac_objext
17997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17998 (eval $ac_compile) 2>&5
17999 ac_status=$?
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); } &&
18002 { ac_try='test -s conftest.$ac_objext'
18003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004 (eval $ac_try) 2>&5
18005 ac_status=$?
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; }; then
18008 samba_cv_HAVE_UT_UT_TV=yes
18009 else
18010 echo "$as_me: failed program was:" >&5
18011 cat conftest.$ac_ext >&5
18012 samba_cv_HAVE_UT_UT_TV=no
18014 rm -f conftest.$ac_objext conftest.$ac_ext
18016 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TV" >&5
18017 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TV" >&6
18018 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
18020 cat >>confdefs.h <<\_ACEOF
18021 #define HAVE_UT_UT_TV 1
18022 _ACEOF
18026 echo "$as_me:$LINENO: checking for ut_type in utmp" >&5
18027 echo $ECHO_N "checking for ut_type in utmp... $ECHO_C" >&6
18028 if test "${samba_cv_HAVE_UT_UT_TYPE+set}" = set; then
18029 echo $ECHO_N "(cached) $ECHO_C" >&6
18030 else
18032 cat >conftest.$ac_ext <<_ACEOF
18033 #line $LINENO "configure"
18034 #include "confdefs.h"
18035 #include <sys/types.h>
18036 #include <utmp.h>
18037 #ifdef F77_DUMMY_MAIN
18038 # ifdef __cplusplus
18039 extern "C"
18040 # endif
18041 int F77_DUMMY_MAIN() { return 1; }
18042 #endif
18044 main ()
18046 struct utmp ut; ut.ut_type = 0;
18048 return 0;
18050 _ACEOF
18051 rm -f conftest.$ac_objext
18052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18053 (eval $ac_compile) 2>&5
18054 ac_status=$?
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); } &&
18057 { ac_try='test -s conftest.$ac_objext'
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18060 ac_status=$?
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; }; then
18063 samba_cv_HAVE_UT_UT_TYPE=yes
18064 else
18065 echo "$as_me: failed program was:" >&5
18066 cat conftest.$ac_ext >&5
18067 samba_cv_HAVE_UT_UT_TYPE=no
18069 rm -f conftest.$ac_objext conftest.$ac_ext
18071 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TYPE" >&5
18072 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TYPE" >&6
18073 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
18075 cat >>confdefs.h <<\_ACEOF
18076 #define HAVE_UT_UT_TYPE 1
18077 _ACEOF
18081 echo "$as_me:$LINENO: checking for ut_pid in utmp" >&5
18082 echo $ECHO_N "checking for ut_pid in utmp... $ECHO_C" >&6
18083 if test "${samba_cv_HAVE_UT_UT_PID+set}" = set; then
18084 echo $ECHO_N "(cached) $ECHO_C" >&6
18085 else
18087 cat >conftest.$ac_ext <<_ACEOF
18088 #line $LINENO "configure"
18089 #include "confdefs.h"
18090 #include <sys/types.h>
18091 #include <utmp.h>
18092 #ifdef F77_DUMMY_MAIN
18093 # ifdef __cplusplus
18094 extern "C"
18095 # endif
18096 int F77_DUMMY_MAIN() { return 1; }
18097 #endif
18099 main ()
18101 struct utmp ut; ut.ut_pid = 0;
18103 return 0;
18105 _ACEOF
18106 rm -f conftest.$ac_objext
18107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18108 (eval $ac_compile) 2>&5
18109 ac_status=$?
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); } &&
18112 { ac_try='test -s conftest.$ac_objext'
18113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18114 (eval $ac_try) 2>&5
18115 ac_status=$?
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; }; then
18118 samba_cv_HAVE_UT_UT_PID=yes
18119 else
18120 echo "$as_me: failed program was:" >&5
18121 cat conftest.$ac_ext >&5
18122 samba_cv_HAVE_UT_UT_PID=no
18124 rm -f conftest.$ac_objext conftest.$ac_ext
18126 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_PID" >&5
18127 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_PID" >&6
18128 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
18130 cat >>confdefs.h <<\_ACEOF
18131 #define HAVE_UT_UT_PID 1
18132 _ACEOF
18136 echo "$as_me:$LINENO: checking for ut_exit in utmp" >&5
18137 echo $ECHO_N "checking for ut_exit in utmp... $ECHO_C" >&6
18138 if test "${samba_cv_HAVE_UT_UT_EXIT+set}" = set; then
18139 echo $ECHO_N "(cached) $ECHO_C" >&6
18140 else
18142 cat >conftest.$ac_ext <<_ACEOF
18143 #line $LINENO "configure"
18144 #include "confdefs.h"
18145 #include <sys/types.h>
18146 #include <utmp.h>
18147 #ifdef F77_DUMMY_MAIN
18148 # ifdef __cplusplus
18149 extern "C"
18150 # endif
18151 int F77_DUMMY_MAIN() { return 1; }
18152 #endif
18154 main ()
18156 struct utmp ut; ut.ut_exit.e_exit = 0;
18158 return 0;
18160 _ACEOF
18161 rm -f conftest.$ac_objext
18162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18163 (eval $ac_compile) 2>&5
18164 ac_status=$?
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); } &&
18167 { ac_try='test -s conftest.$ac_objext'
18168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18169 (eval $ac_try) 2>&5
18170 ac_status=$?
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; }; then
18173 samba_cv_HAVE_UT_UT_EXIT=yes
18174 else
18175 echo "$as_me: failed program was:" >&5
18176 cat conftest.$ac_ext >&5
18177 samba_cv_HAVE_UT_UT_EXIT=no
18179 rm -f conftest.$ac_objext conftest.$ac_ext
18181 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_EXIT" >&5
18182 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_EXIT" >&6
18183 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
18185 cat >>confdefs.h <<\_ACEOF
18186 #define HAVE_UT_UT_EXIT 1
18187 _ACEOF
18191 echo "$as_me:$LINENO: checking for ut_addr in utmp" >&5
18192 echo $ECHO_N "checking for ut_addr in utmp... $ECHO_C" >&6
18193 if test "${samba_cv_HAVE_UT_UT_ADDR+set}" = set; then
18194 echo $ECHO_N "(cached) $ECHO_C" >&6
18195 else
18197 cat >conftest.$ac_ext <<_ACEOF
18198 #line $LINENO "configure"
18199 #include "confdefs.h"
18200 #include <sys/types.h>
18201 #include <utmp.h>
18202 #ifdef F77_DUMMY_MAIN
18203 # ifdef __cplusplus
18204 extern "C"
18205 # endif
18206 int F77_DUMMY_MAIN() { return 1; }
18207 #endif
18209 main ()
18211 struct utmp ut; ut.ut_addr = 0;
18213 return 0;
18215 _ACEOF
18216 rm -f conftest.$ac_objext
18217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18218 (eval $ac_compile) 2>&5
18219 ac_status=$?
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); } &&
18222 { ac_try='test -s conftest.$ac_objext'
18223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224 (eval $ac_try) 2>&5
18225 ac_status=$?
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; }; then
18228 samba_cv_HAVE_UT_UT_ADDR=yes
18229 else
18230 echo "$as_me: failed program was:" >&5
18231 cat conftest.$ac_ext >&5
18232 samba_cv_HAVE_UT_UT_ADDR=no
18234 rm -f conftest.$ac_objext conftest.$ac_ext
18236 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ADDR" >&5
18237 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ADDR" >&6
18238 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
18240 cat >>confdefs.h <<\_ACEOF
18241 #define HAVE_UT_UT_ADDR 1
18242 _ACEOF
18246 if test x$ac_cv_func_pututline = xyes ; then
18247 echo "$as_me:$LINENO: checking whether pututline returns pointer" >&5
18248 echo $ECHO_N "checking whether pututline returns pointer... $ECHO_C" >&6
18249 if test "${samba_cv_PUTUTLINE_RETURNS_UTMP+set}" = set; then
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18251 else
18253 cat >conftest.$ac_ext <<_ACEOF
18254 #line $LINENO "configure"
18255 #include "confdefs.h"
18256 #include <sys/types.h>
18257 #include <utmp.h>
18258 #ifdef F77_DUMMY_MAIN
18259 # ifdef __cplusplus
18260 extern "C"
18261 # endif
18262 int F77_DUMMY_MAIN() { return 1; }
18263 #endif
18265 main ()
18267 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
18269 return 0;
18271 _ACEOF
18272 rm -f conftest.$ac_objext
18273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18274 (eval $ac_compile) 2>&5
18275 ac_status=$?
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); } &&
18278 { ac_try='test -s conftest.$ac_objext'
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; }; then
18284 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
18285 else
18286 echo "$as_me: failed program was:" >&5
18287 cat conftest.$ac_ext >&5
18288 samba_cv_PUTUTLINE_RETURNS_UTMP=no
18290 rm -f conftest.$ac_objext conftest.$ac_ext
18292 echo "$as_me:$LINENO: result: $samba_cv_PUTUTLINE_RETURNS_UTMP" >&5
18293 echo "${ECHO_T}$samba_cv_PUTUTLINE_RETURNS_UTMP" >&6
18294 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
18296 cat >>confdefs.h <<\_ACEOF
18297 #define PUTUTLINE_RETURNS_UTMP 1
18298 _ACEOF
18303 echo "$as_me:$LINENO: checking for ut_syslen in utmpx" >&5
18304 echo $ECHO_N "checking for ut_syslen in utmpx... $ECHO_C" >&6
18305 if test "${samba_cv_HAVE_UX_UT_SYSLEN+set}" = set; then
18306 echo $ECHO_N "(cached) $ECHO_C" >&6
18307 else
18309 cat >conftest.$ac_ext <<_ACEOF
18310 #line $LINENO "configure"
18311 #include "confdefs.h"
18312 #include <sys/types.h>
18313 #include <utmpx.h>
18314 #ifdef F77_DUMMY_MAIN
18315 # ifdef __cplusplus
18316 extern "C"
18317 # endif
18318 int F77_DUMMY_MAIN() { return 1; }
18319 #endif
18321 main ()
18323 struct utmpx ux; ux.ut_syslen = 0;
18325 return 0;
18327 _ACEOF
18328 rm -f conftest.$ac_objext
18329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18330 (eval $ac_compile) 2>&5
18331 ac_status=$?
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); } &&
18334 { ac_try='test -s conftest.$ac_objext'
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; }; then
18340 samba_cv_HAVE_UX_UT_SYSLEN=yes
18341 else
18342 echo "$as_me: failed program was:" >&5
18343 cat conftest.$ac_ext >&5
18344 samba_cv_HAVE_UX_UT_SYSLEN=no
18346 rm -f conftest.$ac_objext conftest.$ac_ext
18348 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UX_UT_SYSLEN" >&5
18349 echo "${ECHO_T}$samba_cv_HAVE_UX_UT_SYSLEN" >&6
18350 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
18352 cat >>confdefs.h <<\_ACEOF
18353 #define HAVE_UX_UT_SYSLEN 1
18354 _ACEOF
18359 #################################################
18360 # check for libiconv support
18361 echo "$as_me:$LINENO: checking whether to use libiconv" >&5
18362 echo $ECHO_N "checking whether to use libiconv... $ECHO_C" >&6
18364 # Check whether --with-libiconv or --without-libiconv was given.
18365 if test "${with_libiconv+set}" = set; then
18366 withval="$with_libiconv"
18367 case "$withval" in
18369 echo "$as_me:$LINENO: result: no" >&5
18370 echo "${ECHO_T}no" >&6
18373 echo "$as_me:$LINENO: result: yes" >&5
18374 echo "${ECHO_T}yes" >&6
18375 CFLAGS="$CFLAGS -I$withval/include"
18376 LDFLAGS="$LDFLAGS -L$withval/lib"
18378 echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
18379 echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6
18380 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
18382 else
18383 ac_check_lib_save_LIBS=$LIBS
18384 LIBS="-liconv $LIBS"
18385 cat >conftest.$ac_ext <<_ACEOF
18386 #line $LINENO "configure"
18387 #include "confdefs.h"
18389 /* Override any gcc2 internal prototype to avoid an error. */
18390 #ifdef __cplusplus
18391 extern "C"
18392 #endif
18393 /* We use char because int might match the return type of a gcc2
18394 builtin and then its argument prototype would still apply. */
18395 char iconv_open ();
18396 #ifdef F77_DUMMY_MAIN
18397 # ifdef __cplusplus
18398 extern "C"
18399 # endif
18400 int F77_DUMMY_MAIN() { return 1; }
18401 #endif
18403 main ()
18405 iconv_open ();
18407 return 0;
18409 _ACEOF
18410 rm -f conftest.$ac_objext conftest$ac_exeext
18411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18412 (eval $ac_link) 2>&5
18413 ac_status=$?
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); } &&
18416 { ac_try='test -s conftest$ac_exeext'
18417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418 (eval $ac_try) 2>&5
18419 ac_status=$?
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); }; }; then
18422 ac_cv_lib_iconv_iconv_open=yes
18423 else
18424 echo "$as_me: failed program was:" >&5
18425 cat conftest.$ac_ext >&5
18426 ac_cv_lib_iconv_iconv_open=no
18428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18429 LIBS=$ac_check_lib_save_LIBS
18431 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
18432 echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6
18433 if test $ac_cv_lib_iconv_iconv_open = yes; then
18434 cat >>confdefs.h <<_ACEOF
18435 #define HAVE_LIBICONV 1
18436 _ACEOF
18438 LIBS="-liconv $LIBS"
18443 cat >>confdefs.h <<_ACEOF
18444 #define WITH_LIBICONV "${withval}"
18445 _ACEOF
18448 esac
18449 else
18450 echo "$as_me:$LINENO: result: no" >&5
18451 echo "${ECHO_T}no" >&6
18456 ############
18457 # check for iconv in libc
18458 echo "$as_me:$LINENO: checking for working iconv" >&5
18459 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6
18460 if test "${samba_cv_HAVE_NATIVE_ICONV+set}" = set; then
18461 echo $ECHO_N "(cached) $ECHO_C" >&6
18462 else
18464 if test "$cross_compiling" = yes; then
18465 samba_cv_HAVE_NATIVE_ICONV=cross
18466 else
18467 cat >conftest.$ac_ext <<_ACEOF
18468 #line $LINENO "configure"
18469 #include "confdefs.h"
18471 #include <iconv.h>
18472 main() {
18473 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
18474 if (cd == 0 || cd == (iconv_t)-1) return -1;
18475 return 0;
18478 _ACEOF
18479 rm -f conftest$ac_exeext
18480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18481 (eval $ac_link) 2>&5
18482 ac_status=$?
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486 (eval $ac_try) 2>&5
18487 ac_status=$?
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); }; }; then
18490 samba_cv_HAVE_NATIVE_ICONV=yes
18491 else
18492 echo "$as_me: program exited with status $ac_status" >&5
18493 echo "$as_me: failed program was:" >&5
18494 cat conftest.$ac_ext >&5
18495 ( exit $ac_status )
18496 samba_cv_HAVE_NATIVE_ICONV=no
18498 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18501 echo "$as_me:$LINENO: result: $samba_cv_HAVE_NATIVE_ICONV" >&5
18502 echo "${ECHO_T}$samba_cv_HAVE_NATIVE_ICONV" >&6
18503 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
18505 cat >>confdefs.h <<\_ACEOF
18506 #define HAVE_NATIVE_ICONV 1
18507 _ACEOF
18512 echo "$as_me:$LINENO: checking for Linux kernel oplocks" >&5
18513 echo $ECHO_N "checking for Linux kernel oplocks... $ECHO_C" >&6
18514 if test "${samba_cv_HAVE_KERNEL_OPLOCKS_LINUX+set}" = set; then
18515 echo $ECHO_N "(cached) $ECHO_C" >&6
18516 else
18518 if test "$cross_compiling" = yes; then
18519 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
18520 else
18521 cat >conftest.$ac_ext <<_ACEOF
18522 #line $LINENO "configure"
18523 #include "confdefs.h"
18525 #include <sys/types.h>
18526 #include <fcntl.h>
18527 #ifndef F_GETLEASE
18528 #define F_GETLEASE 1025
18529 #endif
18530 main() {
18531 int fd = open("/dev/null", O_RDONLY);
18532 return fcntl(fd, F_GETLEASE, 0) == -1;
18535 _ACEOF
18536 rm -f conftest$ac_exeext
18537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18538 (eval $ac_link) 2>&5
18539 ac_status=$?
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; }; then
18547 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
18548 else
18549 echo "$as_me: program exited with status $ac_status" >&5
18550 echo "$as_me: failed program was:" >&5
18551 cat conftest.$ac_ext >&5
18552 ( exit $ac_status )
18553 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
18555 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18558 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&5
18559 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&6
18560 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
18562 cat >>confdefs.h <<\_ACEOF
18563 #define HAVE_KERNEL_OPLOCKS_LINUX 1
18564 _ACEOF
18568 echo "$as_me:$LINENO: checking for kernel change notify support" >&5
18569 echo $ECHO_N "checking for kernel change notify support... $ECHO_C" >&6
18570 if test "${samba_cv_HAVE_KERNEL_CHANGE_NOTIFY+set}" = set; then
18571 echo $ECHO_N "(cached) $ECHO_C" >&6
18572 else
18574 if test "$cross_compiling" = yes; then
18575 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
18576 else
18577 cat >conftest.$ac_ext <<_ACEOF
18578 #line $LINENO "configure"
18579 #include "confdefs.h"
18581 #include <sys/types.h>
18582 #include <fcntl.h>
18583 #include <signal.h>
18584 #ifndef F_NOTIFY
18585 #define F_NOTIFY 1026
18586 #endif
18587 main() {
18588 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
18591 _ACEOF
18592 rm -f conftest$ac_exeext
18593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18594 (eval $ac_link) 2>&5
18595 ac_status=$?
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18599 (eval $ac_try) 2>&5
18600 ac_status=$?
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; }; then
18603 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
18604 else
18605 echo "$as_me: program exited with status $ac_status" >&5
18606 echo "$as_me: failed program was:" >&5
18607 cat conftest.$ac_ext >&5
18608 ( exit $ac_status )
18609 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
18611 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18614 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&5
18615 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&6
18616 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
18618 cat >>confdefs.h <<\_ACEOF
18619 #define HAVE_KERNEL_CHANGE_NOTIFY 1
18620 _ACEOF
18624 echo "$as_me:$LINENO: checking for kernel share modes" >&5
18625 echo $ECHO_N "checking for kernel share modes... $ECHO_C" >&6
18626 if test "${samba_cv_HAVE_KERNEL_SHARE_MODES+set}" = set; then
18627 echo $ECHO_N "(cached) $ECHO_C" >&6
18628 else
18630 if test "$cross_compiling" = yes; then
18631 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
18632 else
18633 cat >conftest.$ac_ext <<_ACEOF
18634 #line $LINENO "configure"
18635 #include "confdefs.h"
18637 #include <sys/types.h>
18638 #include <fcntl.h>
18639 #include <signal.h>
18640 #include <sys/file.h>
18641 #ifndef LOCK_MAND
18642 #define LOCK_MAND 32
18643 #define LOCK_READ 64
18644 #endif
18645 main() {
18646 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
18649 _ACEOF
18650 rm -f conftest$ac_exeext
18651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18652 (eval $ac_link) 2>&5
18653 ac_status=$?
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18657 (eval $ac_try) 2>&5
18658 ac_status=$?
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); }; }; then
18661 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
18662 else
18663 echo "$as_me: program exited with status $ac_status" >&5
18664 echo "$as_me: failed program was:" >&5
18665 cat conftest.$ac_ext >&5
18666 ( exit $ac_status )
18667 samba_cv_HAVE_KERNEL_SHARE_MODES=no
18669 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18672 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_SHARE_MODES" >&5
18673 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_SHARE_MODES" >&6
18674 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
18676 cat >>confdefs.h <<\_ACEOF
18677 #define HAVE_KERNEL_SHARE_MODES 1
18678 _ACEOF
18685 echo "$as_me:$LINENO: checking for IRIX kernel oplock type definitions" >&5
18686 echo $ECHO_N "checking for IRIX kernel oplock type definitions... $ECHO_C" >&6
18687 if test "${samba_cv_HAVE_KERNEL_OPLOCKS_IRIX+set}" = set; then
18688 echo $ECHO_N "(cached) $ECHO_C" >&6
18689 else
18691 cat >conftest.$ac_ext <<_ACEOF
18692 #line $LINENO "configure"
18693 #include "confdefs.h"
18694 #include <sys/types.h>
18695 #include <fcntl.h>
18696 #ifdef F77_DUMMY_MAIN
18697 # ifdef __cplusplus
18698 extern "C"
18699 # endif
18700 int F77_DUMMY_MAIN() { return 1; }
18701 #endif
18703 main ()
18705 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
18707 return 0;
18709 _ACEOF
18710 rm -f conftest.$ac_objext
18711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18712 (eval $ac_compile) 2>&5
18713 ac_status=$?
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } &&
18716 { ac_try='test -s conftest.$ac_objext'
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_KERNEL_OPLOCKS_IRIX=yes
18723 else
18724 echo "$as_me: failed program was:" >&5
18725 cat conftest.$ac_ext >&5
18726 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
18728 rm -f conftest.$ac_objext conftest.$ac_ext
18730 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&5
18731 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&6
18732 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
18734 cat >>confdefs.h <<\_ACEOF
18735 #define HAVE_KERNEL_OPLOCKS_IRIX 1
18736 _ACEOF
18740 echo "$as_me:$LINENO: checking for irix specific capabilities" >&5
18741 echo $ECHO_N "checking for irix specific capabilities... $ECHO_C" >&6
18742 if test "${samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES+set}" = set; then
18743 echo $ECHO_N "(cached) $ECHO_C" >&6
18744 else
18746 if test "$cross_compiling" = yes; then
18747 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
18748 else
18749 cat >conftest.$ac_ext <<_ACEOF
18750 #line $LINENO "configure"
18751 #include "confdefs.h"
18752 #include <sys/types.h>
18753 #include <sys/capability.h>
18754 main() {
18755 cap_t cap;
18756 if ((cap = cap_get_proc()) == NULL)
18757 exit(1);
18758 cap->cap_effective |= CAP_NETWORK_MGT;
18759 cap->cap_inheritable |= CAP_NETWORK_MGT;
18760 cap_set_proc(cap);
18761 exit(0);
18764 _ACEOF
18765 rm -f conftest$ac_exeext
18766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18767 (eval $ac_link) 2>&5
18768 ac_status=$?
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18772 (eval $ac_try) 2>&5
18773 ac_status=$?
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); }; }; then
18776 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
18777 else
18778 echo "$as_me: program exited with status $ac_status" >&5
18779 echo "$as_me: failed program was:" >&5
18780 cat conftest.$ac_ext >&5
18781 ( exit $ac_status )
18782 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
18784 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18787 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&5
18788 echo "${ECHO_T}$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&6
18789 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
18791 cat >>confdefs.h <<\_ACEOF
18792 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
18793 _ACEOF
18798 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
18799 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
18802 echo "$as_me:$LINENO: checking for int16 typedef included by rpc/rpc.h" >&5
18803 echo $ECHO_N "checking for int16 typedef included by rpc/rpc.h... $ECHO_C" >&6
18804 if test "${samba_cv_HAVE_INT16_FROM_RPC_RPC_H+set}" = set; then
18805 echo $ECHO_N "(cached) $ECHO_C" >&6
18806 else
18808 cat >conftest.$ac_ext <<_ACEOF
18809 #line $LINENO "configure"
18810 #include "confdefs.h"
18811 #include <sys/types.h>
18812 #if defined(HAVE_RPC_RPC_H)
18813 #include <rpc/rpc.h>
18814 #endif
18815 #ifdef F77_DUMMY_MAIN
18816 # ifdef __cplusplus
18817 extern "C"
18818 # endif
18819 int F77_DUMMY_MAIN() { return 1; }
18820 #endif
18822 main ()
18824 int16 testvar;
18826 return 0;
18828 _ACEOF
18829 rm -f conftest.$ac_objext
18830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18831 (eval $ac_compile) 2>&5
18832 ac_status=$?
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } &&
18835 { ac_try='test -s conftest.$ac_objext'
18836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837 (eval $ac_try) 2>&5
18838 ac_status=$?
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; }; then
18841 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
18842 else
18843 echo "$as_me: failed program was:" >&5
18844 cat conftest.$ac_ext >&5
18845 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
18847 rm -f conftest.$ac_objext conftest.$ac_ext
18849 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&5
18850 echo "${ECHO_T}$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&6
18851 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
18853 cat >>confdefs.h <<\_ACEOF
18854 #define HAVE_INT16_FROM_RPC_RPC_H 1
18855 _ACEOF
18859 echo "$as_me:$LINENO: checking for uint16 typedef included by rpc/rpc.h" >&5
18860 echo $ECHO_N "checking for uint16 typedef included by rpc/rpc.h... $ECHO_C" >&6
18861 if test "${samba_cv_HAVE_UINT16_FROM_RPC_RPC_H+set}" = set; then
18862 echo $ECHO_N "(cached) $ECHO_C" >&6
18863 else
18865 cat >conftest.$ac_ext <<_ACEOF
18866 #line $LINENO "configure"
18867 #include "confdefs.h"
18868 #include <sys/types.h>
18869 #if defined(HAVE_RPC_RPC_H)
18870 #include <rpc/rpc.h>
18871 #endif
18872 #ifdef F77_DUMMY_MAIN
18873 # ifdef __cplusplus
18874 extern "C"
18875 # endif
18876 int F77_DUMMY_MAIN() { return 1; }
18877 #endif
18879 main ()
18881 uint16 testvar;
18883 return 0;
18885 _ACEOF
18886 rm -f conftest.$ac_objext
18887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18888 (eval $ac_compile) 2>&5
18889 ac_status=$?
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); } &&
18892 { ac_try='test -s conftest.$ac_objext'
18893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894 (eval $ac_try) 2>&5
18895 ac_status=$?
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; }; then
18898 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
18899 else
18900 echo "$as_me: failed program was:" >&5
18901 cat conftest.$ac_ext >&5
18902 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
18904 rm -f conftest.$ac_objext conftest.$ac_ext
18906 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&5
18907 echo "${ECHO_T}$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&6
18908 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
18910 cat >>confdefs.h <<\_ACEOF
18911 #define HAVE_UINT16_FROM_RPC_RPC_H 1
18912 _ACEOF
18916 echo "$as_me:$LINENO: checking for int32 typedef included by rpc/rpc.h" >&5
18917 echo $ECHO_N "checking for int32 typedef included by rpc/rpc.h... $ECHO_C" >&6
18918 if test "${samba_cv_HAVE_INT32_FROM_RPC_RPC_H+set}" = set; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18920 else
18922 cat >conftest.$ac_ext <<_ACEOF
18923 #line $LINENO "configure"
18924 #include "confdefs.h"
18925 #include <sys/types.h>
18926 #if defined(HAVE_RPC_RPC_H)
18927 #include <rpc/rpc.h>
18928 #endif
18929 #ifdef F77_DUMMY_MAIN
18930 # ifdef __cplusplus
18931 extern "C"
18932 # endif
18933 int F77_DUMMY_MAIN() { return 1; }
18934 #endif
18936 main ()
18938 int32 testvar;
18940 return 0;
18942 _ACEOF
18943 rm -f conftest.$ac_objext
18944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18945 (eval $ac_compile) 2>&5
18946 ac_status=$?
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } &&
18949 { ac_try='test -s conftest.$ac_objext'
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18952 ac_status=$?
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; }; then
18955 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
18956 else
18957 echo "$as_me: failed program was:" >&5
18958 cat conftest.$ac_ext >&5
18959 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
18961 rm -f conftest.$ac_objext conftest.$ac_ext
18963 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&5
18964 echo "${ECHO_T}$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&6
18965 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
18967 cat >>confdefs.h <<\_ACEOF
18968 #define HAVE_INT32_FROM_RPC_RPC_H 1
18969 _ACEOF
18973 echo "$as_me:$LINENO: checking for uint32 typedef included by rpc/rpc.h" >&5
18974 echo $ECHO_N "checking for uint32 typedef included by rpc/rpc.h... $ECHO_C" >&6
18975 if test "${samba_cv_HAVE_UINT32_FROM_RPC_RPC_H+set}" = set; then
18976 echo $ECHO_N "(cached) $ECHO_C" >&6
18977 else
18979 cat >conftest.$ac_ext <<_ACEOF
18980 #line $LINENO "configure"
18981 #include "confdefs.h"
18982 #include <sys/types.h>
18983 #if defined(HAVE_RPC_RPC_H)
18984 #include <rpc/rpc.h>
18985 #endif
18986 #ifdef F77_DUMMY_MAIN
18987 # ifdef __cplusplus
18988 extern "C"
18989 # endif
18990 int F77_DUMMY_MAIN() { return 1; }
18991 #endif
18993 main ()
18995 uint32 testvar;
18997 return 0;
18999 _ACEOF
19000 rm -f conftest.$ac_objext
19001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19002 (eval $ac_compile) 2>&5
19003 ac_status=$?
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); } &&
19006 { ac_try='test -s conftest.$ac_objext'
19007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19008 (eval $ac_try) 2>&5
19009 ac_status=$?
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; }; then
19012 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
19013 else
19014 echo "$as_me: failed program was:" >&5
19015 cat conftest.$ac_ext >&5
19016 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
19018 rm -f conftest.$ac_objext conftest.$ac_ext
19020 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&5
19021 echo "${ECHO_T}$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&6
19022 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
19024 cat >>confdefs.h <<\_ACEOF
19025 #define HAVE_UINT32_FROM_RPC_RPC_H 1
19026 _ACEOF
19031 echo "$as_me:$LINENO: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
19032 echo $ECHO_N "checking for conflicting AUTH_ERROR define in rpc/rpc.h... $ECHO_C" >&6
19033 if test "${samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT+set}" = set; then
19034 echo $ECHO_N "(cached) $ECHO_C" >&6
19035 else
19037 cat >conftest.$ac_ext <<_ACEOF
19038 #line $LINENO "configure"
19039 #include "confdefs.h"
19040 #include <sys/types.h>
19041 #ifdef HAVE_SYS_SECURITY_H
19042 #include <sys/security.h>
19043 #include <prot.h>
19044 #endif /* HAVE_SYS_SECURITY_H */
19045 #if defined(HAVE_RPC_RPC_H)
19046 #include <rpc/rpc.h>
19047 #endif
19048 #ifdef F77_DUMMY_MAIN
19049 # ifdef __cplusplus
19050 extern "C"
19051 # endif
19052 int F77_DUMMY_MAIN() { return 1; }
19053 #endif
19055 main ()
19057 int testvar;
19059 return 0;
19061 _ACEOF
19062 rm -f conftest.$ac_objext
19063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19064 (eval $ac_compile) 2>&5
19065 ac_status=$?
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } &&
19068 { ac_try='test -s conftest.$ac_objext'
19069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19070 (eval $ac_try) 2>&5
19071 ac_status=$?
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); }; }; then
19074 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
19075 else
19076 echo "$as_me: failed program was:" >&5
19077 cat conftest.$ac_ext >&5
19078 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
19080 rm -f conftest.$ac_objext conftest.$ac_ext
19082 echo "$as_me:$LINENO: result: $samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&5
19083 echo "${ECHO_T}$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&6
19084 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
19086 cat >>confdefs.h <<\_ACEOF
19087 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
19088 _ACEOF
19092 echo "$as_me:$LINENO: checking for test routines" >&5
19093 echo $ECHO_N "checking for test routines... $ECHO_C" >&6
19094 if test "$cross_compiling" = yes; then
19095 { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
19096 echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
19097 else
19098 cat >conftest.$ac_ext <<_ACEOF
19099 #line $LINENO "configure"
19100 #include "confdefs.h"
19101 #include "${srcdir-.}/tests/trivial.c"
19102 _ACEOF
19103 rm -f conftest$ac_exeext
19104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19105 (eval $ac_link) 2>&5
19106 ac_status=$?
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19111 ac_status=$?
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; }; then
19114 echo "$as_me:$LINENO: result: yes" >&5
19115 echo "${ECHO_T}yes" >&6
19116 else
19117 echo "$as_me: program exited with status $ac_status" >&5
19118 echo "$as_me: failed program was:" >&5
19119 cat conftest.$ac_ext >&5
19120 ( exit $ac_status )
19121 { { echo "$as_me:$LINENO: error: cant find test code. Aborting config" >&5
19122 echo "$as_me: error: cant find test code. Aborting config" >&2;}
19123 { (exit 1); exit 1; }; }
19125 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19128 echo "$as_me:$LINENO: checking for ftruncate extend" >&5
19129 echo $ECHO_N "checking for ftruncate extend... $ECHO_C" >&6
19130 if test "${samba_cv_HAVE_FTRUNCATE_EXTEND+set}" = set; then
19131 echo $ECHO_N "(cached) $ECHO_C" >&6
19132 else
19134 if test "$cross_compiling" = yes; then
19135 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
19136 else
19137 cat >conftest.$ac_ext <<_ACEOF
19138 #line $LINENO "configure"
19139 #include "confdefs.h"
19140 #include "${srcdir-.}/tests/ftruncate.c"
19141 _ACEOF
19142 rm -f conftest$ac_exeext
19143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19144 (eval $ac_link) 2>&5
19145 ac_status=$?
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149 (eval $ac_try) 2>&5
19150 ac_status=$?
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; }; then
19153 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
19154 else
19155 echo "$as_me: program exited with status $ac_status" >&5
19156 echo "$as_me: failed program was:" >&5
19157 cat conftest.$ac_ext >&5
19158 ( exit $ac_status )
19159 samba_cv_HAVE_FTRUNCATE_EXTEND=no
19161 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19164 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FTRUNCATE_EXTEND" >&5
19165 echo "${ECHO_T}$samba_cv_HAVE_FTRUNCATE_EXTEND" >&6
19166 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
19168 cat >>confdefs.h <<\_ACEOF
19169 #define HAVE_FTRUNCATE_EXTEND 1
19170 _ACEOF
19174 echo "$as_me:$LINENO: checking for AF_LOCAL socket support" >&5
19175 echo $ECHO_N "checking for AF_LOCAL socket support... $ECHO_C" >&6
19176 if test "${samba_cv_HAVE_WORKING_AF_LOCAL+set}" = set; then
19177 echo $ECHO_N "(cached) $ECHO_C" >&6
19178 else
19180 if test "$cross_compiling" = yes; then
19181 samba_cv_HAVE_WORKING_AF_LOCAL=cross
19182 else
19183 cat >conftest.$ac_ext <<_ACEOF
19184 #line $LINENO "configure"
19185 #include "confdefs.h"
19186 #include "${srcdir-.}/tests/unixsock.c"
19187 _ACEOF
19188 rm -f conftest$ac_exeext
19189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19190 (eval $ac_link) 2>&5
19191 ac_status=$?
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195 (eval $ac_try) 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; }; then
19199 samba_cv_HAVE_WORKING_AF_LOCAL=yes
19200 else
19201 echo "$as_me: program exited with status $ac_status" >&5
19202 echo "$as_me: failed program was:" >&5
19203 cat conftest.$ac_ext >&5
19204 ( exit $ac_status )
19205 samba_cv_HAVE_WORKING_AF_LOCAL=no
19207 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19210 echo "$as_me:$LINENO: result: $samba_cv_HAVE_WORKING_AF_LOCAL" >&5
19211 echo "${ECHO_T}$samba_cv_HAVE_WORKING_AF_LOCAL" >&6
19212 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
19213 then
19215 cat >>confdefs.h <<\_ACEOF
19216 #define HAVE_WORKING_AF_LOCAL 1
19217 _ACEOF
19221 echo "$as_me:$LINENO: checking for broken getgroups" >&5
19222 echo $ECHO_N "checking for broken getgroups... $ECHO_C" >&6
19223 if test "${samba_cv_HAVE_BROKEN_GETGROUPS+set}" = set; then
19224 echo $ECHO_N "(cached) $ECHO_C" >&6
19225 else
19227 if test "$cross_compiling" = yes; then
19228 samba_cv_HAVE_BROKEN_GETGROUPS=cross
19229 else
19230 cat >conftest.$ac_ext <<_ACEOF
19231 #line $LINENO "configure"
19232 #include "confdefs.h"
19233 #include "${srcdir-.}/tests/getgroups.c"
19234 _ACEOF
19235 rm -f conftest$ac_exeext
19236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19237 (eval $ac_link) 2>&5
19238 ac_status=$?
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242 (eval $ac_try) 2>&5
19243 ac_status=$?
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; }; then
19246 samba_cv_HAVE_BROKEN_GETGROUPS=yes
19247 else
19248 echo "$as_me: program exited with status $ac_status" >&5
19249 echo "$as_me: failed program was:" >&5
19250 cat conftest.$ac_ext >&5
19251 ( exit $ac_status )
19252 samba_cv_HAVE_BROKEN_GETGROUPS=no
19254 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19257 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_GETGROUPS" >&5
19258 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_GETGROUPS" >&6
19259 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
19261 cat >>confdefs.h <<\_ACEOF
19262 #define HAVE_BROKEN_GETGROUPS 1
19263 _ACEOF
19267 echo "$as_me:$LINENO: checking whether getpass should be replaced" >&5
19268 echo $ECHO_N "checking whether getpass should be replaced... $ECHO_C" >&6
19269 if test "${samba_cv_REPLACE_GETPASS+set}" = set; then
19270 echo $ECHO_N "(cached) $ECHO_C" >&6
19271 else
19273 SAVE_CPPFLAGS="$CPPFLAGS"
19274 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
19275 cat >conftest.$ac_ext <<_ACEOF
19276 #line $LINENO "configure"
19277 #include "confdefs.h"
19279 #define REPLACE_GETPASS 1
19280 #define NO_CONFIG_H 1
19281 #define main dont_declare_main
19282 #include "${srcdir-.}/lib/getsmbpass.c"
19283 #undef main
19285 #ifdef F77_DUMMY_MAIN
19286 # ifdef __cplusplus
19287 extern "C"
19288 # endif
19289 int F77_DUMMY_MAIN() { return 1; }
19290 #endif
19292 main ()
19296 return 0;
19298 _ACEOF
19299 rm -f conftest.$ac_objext
19300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19301 (eval $ac_compile) 2>&5
19302 ac_status=$?
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } &&
19305 { ac_try='test -s conftest.$ac_objext'
19306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307 (eval $ac_try) 2>&5
19308 ac_status=$?
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); }; }; then
19311 samba_cv_REPLACE_GETPASS=yes
19312 else
19313 echo "$as_me: failed program was:" >&5
19314 cat conftest.$ac_ext >&5
19315 samba_cv_REPLACE_GETPASS=no
19317 rm -f conftest.$ac_objext conftest.$ac_ext
19318 CPPFLAGS="$SAVE_CPPFLAGS"
19321 echo "$as_me:$LINENO: result: $samba_cv_REPLACE_GETPASS" >&5
19322 echo "${ECHO_T}$samba_cv_REPLACE_GETPASS" >&6
19323 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
19325 cat >>confdefs.h <<\_ACEOF
19326 #define REPLACE_GETPASS 1
19327 _ACEOF
19331 echo "$as_me:$LINENO: checking for broken inet_ntoa" >&5
19332 echo $ECHO_N "checking for broken inet_ntoa... $ECHO_C" >&6
19333 if test "${samba_cv_REPLACE_INET_NTOA+set}" = set; then
19334 echo $ECHO_N "(cached) $ECHO_C" >&6
19335 else
19337 if test "$cross_compiling" = yes; then
19338 samba_cv_REPLACE_INET_NTOA=cross
19339 else
19340 cat >conftest.$ac_ext <<_ACEOF
19341 #line $LINENO "configure"
19342 #include "confdefs.h"
19344 #include <stdio.h>
19345 #include <sys/types.h>
19346 #include <netinet/in.h>
19347 #ifdef HAVE_ARPA_INET_H
19348 #include <arpa/inet.h>
19349 #endif
19350 main() { struct in_addr ip; ip.s_addr = 0x12345678;
19351 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
19352 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
19353 exit(1);}
19354 _ACEOF
19355 rm -f conftest$ac_exeext
19356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19357 (eval $ac_link) 2>&5
19358 ac_status=$?
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19362 (eval $ac_try) 2>&5
19363 ac_status=$?
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }; }; then
19366 samba_cv_REPLACE_INET_NTOA=yes
19367 else
19368 echo "$as_me: program exited with status $ac_status" >&5
19369 echo "$as_me: failed program was:" >&5
19370 cat conftest.$ac_ext >&5
19371 ( exit $ac_status )
19372 samba_cv_REPLACE_INET_NTOA=no
19374 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19377 echo "$as_me:$LINENO: result: $samba_cv_REPLACE_INET_NTOA" >&5
19378 echo "${ECHO_T}$samba_cv_REPLACE_INET_NTOA" >&6
19379 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
19381 cat >>confdefs.h <<\_ACEOF
19382 #define REPLACE_INET_NTOA 1
19383 _ACEOF
19387 echo "$as_me:$LINENO: checking for secure mkstemp" >&5
19388 echo $ECHO_N "checking for secure mkstemp... $ECHO_C" >&6
19389 if test "${samba_cv_HAVE_SECURE_MKSTEMP+set}" = set; then
19390 echo $ECHO_N "(cached) $ECHO_C" >&6
19391 else
19393 if test "$cross_compiling" = yes; then
19394 samba_cv_HAVE_SECURE_MKSTEMP=cross
19395 else
19396 cat >conftest.$ac_ext <<_ACEOF
19397 #line $LINENO "configure"
19398 #include "confdefs.h"
19399 #include <stdlib.h>
19400 #include <sys/types.h>
19401 #include <sys/stat.h>
19402 #include <unistd.h>
19403 main() {
19404 struct stat st;
19405 char tpl[20]="/tmp/test.XXXXXX";
19406 int fd = mkstemp(tpl);
19407 if (fd == -1) exit(1);
19408 unlink(tpl);
19409 if (fstat(fd, &st) != 0) exit(1);
19410 if ((st.st_mode & 0777) != 0600) exit(1);
19411 exit(0);
19413 _ACEOF
19414 rm -f conftest$ac_exeext
19415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19416 (eval $ac_link) 2>&5
19417 ac_status=$?
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421 (eval $ac_try) 2>&5
19422 ac_status=$?
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); }; }; then
19425 samba_cv_HAVE_SECURE_MKSTEMP=yes
19426 else
19427 echo "$as_me: program exited with status $ac_status" >&5
19428 echo "$as_me: failed program was:" >&5
19429 cat conftest.$ac_ext >&5
19430 ( exit $ac_status )
19431 samba_cv_HAVE_SECURE_MKSTEMP=no
19433 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19436 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SECURE_MKSTEMP" >&5
19437 echo "${ECHO_T}$samba_cv_HAVE_SECURE_MKSTEMP" >&6
19438 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
19440 cat >>confdefs.h <<\_ACEOF
19441 #define HAVE_SECURE_MKSTEMP 1
19442 _ACEOF
19446 echo "$as_me:$LINENO: checking for sysconf(_SC_NGROUPS_MAX)" >&5
19447 echo $ECHO_N "checking for sysconf(_SC_NGROUPS_MAX)... $ECHO_C" >&6
19448 if test "${samba_cv_SYSCONF_SC_NGROUPS_MAX+set}" = set; then
19449 echo $ECHO_N "(cached) $ECHO_C" >&6
19450 else
19452 if test "$cross_compiling" = yes; then
19453 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
19454 else
19455 cat >conftest.$ac_ext <<_ACEOF
19456 #line $LINENO "configure"
19457 #include "confdefs.h"
19458 #include <unistd.h>
19459 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
19460 _ACEOF
19461 rm -f conftest$ac_exeext
19462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19463 (eval $ac_link) 2>&5
19464 ac_status=$?
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19469 ac_status=$?
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; }; then
19472 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
19473 else
19474 echo "$as_me: program exited with status $ac_status" >&5
19475 echo "$as_me: failed program was:" >&5
19476 cat conftest.$ac_ext >&5
19477 ( exit $ac_status )
19478 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
19480 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19483 echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NGROUPS_MAX" >&5
19484 echo "${ECHO_T}$samba_cv_SYSCONF_SC_NGROUPS_MAX" >&6
19485 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
19487 cat >>confdefs.h <<\_ACEOF
19488 #define SYSCONF_SC_NGROUPS_MAX 1
19489 _ACEOF
19493 echo "$as_me:$LINENO: checking for root" >&5
19494 echo $ECHO_N "checking for root... $ECHO_C" >&6
19495 if test "${samba_cv_HAVE_ROOT+set}" = set; then
19496 echo $ECHO_N "(cached) $ECHO_C" >&6
19497 else
19499 if test "$cross_compiling" = yes; then
19500 samba_cv_HAVE_ROOT=cross
19501 else
19502 cat >conftest.$ac_ext <<_ACEOF
19503 #line $LINENO "configure"
19504 #include "confdefs.h"
19505 main() { exit(getuid() != 0); }
19506 _ACEOF
19507 rm -f conftest$ac_exeext
19508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19509 (eval $ac_link) 2>&5
19510 ac_status=$?
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; }; then
19518 samba_cv_HAVE_ROOT=yes
19519 else
19520 echo "$as_me: program exited with status $ac_status" >&5
19521 echo "$as_me: failed program was:" >&5
19522 cat conftest.$ac_ext >&5
19523 ( exit $ac_status )
19524 samba_cv_HAVE_ROOT=no
19526 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19529 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ROOT" >&5
19530 echo "${ECHO_T}$samba_cv_HAVE_ROOT" >&6
19531 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
19533 cat >>confdefs.h <<\_ACEOF
19534 #define HAVE_ROOT 1
19535 _ACEOF
19537 else
19538 { echo "$as_me:$LINENO: WARNING: running as non-root will disable some tests" >&5
19539 echo "$as_me: WARNING: running as non-root will disable some tests" >&2;}
19542 ##################
19543 # look for a method of finding the list of network interfaces
19544 iface=no;
19545 echo "$as_me:$LINENO: checking for iface AIX" >&5
19546 echo $ECHO_N "checking for iface AIX... $ECHO_C" >&6
19547 if test "${samba_cv_HAVE_IFACE_AIX+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19549 else
19551 if test "$cross_compiling" = yes; then
19552 samba_cv_HAVE_IFACE_AIX=cross
19553 else
19554 cat >conftest.$ac_ext <<_ACEOF
19555 #line $LINENO "configure"
19556 #include "confdefs.h"
19558 #define HAVE_IFACE_AIX 1
19559 #define AUTOCONF_TEST 1
19560 #include "confdefs.h"
19561 #include "${srcdir-.}/lib/interfaces.c"
19562 _ACEOF
19563 rm -f conftest$ac_exeext
19564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19565 (eval $ac_link) 2>&5
19566 ac_status=$?
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19570 (eval $ac_try) 2>&5
19571 ac_status=$?
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); }; }; then
19574 samba_cv_HAVE_IFACE_AIX=yes
19575 else
19576 echo "$as_me: program exited with status $ac_status" >&5
19577 echo "$as_me: failed program was:" >&5
19578 cat conftest.$ac_ext >&5
19579 ( exit $ac_status )
19580 samba_cv_HAVE_IFACE_AIX=no
19582 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19585 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_AIX" >&5
19586 echo "${ECHO_T}$samba_cv_HAVE_IFACE_AIX" >&6
19587 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
19588 iface=yes;
19589 cat >>confdefs.h <<\_ACEOF
19590 #define HAVE_IFACE_AIX 1
19591 _ACEOF
19595 if test $iface = no; then
19596 echo "$as_me:$LINENO: checking for iface ifconf" >&5
19597 echo $ECHO_N "checking for iface ifconf... $ECHO_C" >&6
19598 if test "${samba_cv_HAVE_IFACE_IFCONF+set}" = set; then
19599 echo $ECHO_N "(cached) $ECHO_C" >&6
19600 else
19602 if test "$cross_compiling" = yes; then
19603 samba_cv_HAVE_IFACE_IFCONF=cross
19604 else
19605 cat >conftest.$ac_ext <<_ACEOF
19606 #line $LINENO "configure"
19607 #include "confdefs.h"
19609 #define HAVE_IFACE_IFCONF 1
19610 #define AUTOCONF_TEST 1
19611 #include "confdefs.h"
19612 #include "${srcdir-.}/lib/interfaces.c"
19613 _ACEOF
19614 rm -f conftest$ac_exeext
19615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19616 (eval $ac_link) 2>&5
19617 ac_status=$?
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621 (eval $ac_try) 2>&5
19622 ac_status=$?
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; }; then
19625 samba_cv_HAVE_IFACE_IFCONF=yes
19626 else
19627 echo "$as_me: program exited with status $ac_status" >&5
19628 echo "$as_me: failed program was:" >&5
19629 cat conftest.$ac_ext >&5
19630 ( exit $ac_status )
19631 samba_cv_HAVE_IFACE_IFCONF=no
19633 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19636 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFCONF" >&5
19637 echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFCONF" >&6
19638 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
19639 iface=yes;
19640 cat >>confdefs.h <<\_ACEOF
19641 #define HAVE_IFACE_IFCONF 1
19642 _ACEOF
19647 if test $iface = no; then
19648 echo "$as_me:$LINENO: checking for iface ifreq" >&5
19649 echo $ECHO_N "checking for iface ifreq... $ECHO_C" >&6
19650 if test "${samba_cv_HAVE_IFACE_IFREQ+set}" = set; then
19651 echo $ECHO_N "(cached) $ECHO_C" >&6
19652 else
19654 if test "$cross_compiling" = yes; then
19655 samba_cv_HAVE_IFACE_IFREQ=cross
19656 else
19657 cat >conftest.$ac_ext <<_ACEOF
19658 #line $LINENO "configure"
19659 #include "confdefs.h"
19661 #define HAVE_IFACE_IFREQ 1
19662 #define AUTOCONF_TEST 1
19663 #include "confdefs.h"
19664 #include "${srcdir-.}/lib/interfaces.c"
19665 _ACEOF
19666 rm -f conftest$ac_exeext
19667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19668 (eval $ac_link) 2>&5
19669 ac_status=$?
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673 (eval $ac_try) 2>&5
19674 ac_status=$?
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; }; then
19677 samba_cv_HAVE_IFACE_IFREQ=yes
19678 else
19679 echo "$as_me: program exited with status $ac_status" >&5
19680 echo "$as_me: failed program was:" >&5
19681 cat conftest.$ac_ext >&5
19682 ( exit $ac_status )
19683 samba_cv_HAVE_IFACE_IFREQ=no
19685 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19688 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFREQ" >&5
19689 echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFREQ" >&6
19690 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
19691 iface=yes;
19692 cat >>confdefs.h <<\_ACEOF
19693 #define HAVE_IFACE_IFREQ 1
19694 _ACEOF
19700 ################################################
19701 # look for a method of setting the effective uid
19702 seteuid=no;
19703 if test $seteuid = no; then
19704 echo "$as_me:$LINENO: checking for setresuid" >&5
19705 echo $ECHO_N "checking for setresuid... $ECHO_C" >&6
19706 if test "${samba_cv_USE_SETRESUID+set}" = set; then
19707 echo $ECHO_N "(cached) $ECHO_C" >&6
19708 else
19710 if test "$cross_compiling" = yes; then
19711 samba_cv_USE_SETRESUID=cross
19712 else
19713 cat >conftest.$ac_ext <<_ACEOF
19714 #line $LINENO "configure"
19715 #include "confdefs.h"
19717 #define AUTOCONF_TEST 1
19718 #define USE_SETRESUID 1
19719 #include "confdefs.h"
19720 #include "${srcdir-.}/lib/util_sec.c"
19721 _ACEOF
19722 rm -f conftest$ac_exeext
19723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19724 (eval $ac_link) 2>&5
19725 ac_status=$?
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19729 (eval $ac_try) 2>&5
19730 ac_status=$?
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); }; }; then
19733 samba_cv_USE_SETRESUID=yes
19734 else
19735 echo "$as_me: program exited with status $ac_status" >&5
19736 echo "$as_me: failed program was:" >&5
19737 cat conftest.$ac_ext >&5
19738 ( exit $ac_status )
19739 samba_cv_USE_SETRESUID=no
19741 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19744 echo "$as_me:$LINENO: result: $samba_cv_USE_SETRESUID" >&5
19745 echo "${ECHO_T}$samba_cv_USE_SETRESUID" >&6
19746 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
19747 seteuid=yes;
19748 cat >>confdefs.h <<\_ACEOF
19749 #define USE_SETRESUID 1
19750 _ACEOF
19756 if test $seteuid = no; then
19757 echo "$as_me:$LINENO: checking for setreuid" >&5
19758 echo $ECHO_N "checking for setreuid... $ECHO_C" >&6
19759 if test "${samba_cv_USE_SETREUID+set}" = set; then
19760 echo $ECHO_N "(cached) $ECHO_C" >&6
19761 else
19763 if test "$cross_compiling" = yes; then
19764 samba_cv_USE_SETREUID=cross
19765 else
19766 cat >conftest.$ac_ext <<_ACEOF
19767 #line $LINENO "configure"
19768 #include "confdefs.h"
19770 #define AUTOCONF_TEST 1
19771 #define USE_SETREUID 1
19772 #include "confdefs.h"
19773 #include "${srcdir-.}/lib/util_sec.c"
19774 _ACEOF
19775 rm -f conftest$ac_exeext
19776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19777 (eval $ac_link) 2>&5
19778 ac_status=$?
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; }; then
19786 samba_cv_USE_SETREUID=yes
19787 else
19788 echo "$as_me: program exited with status $ac_status" >&5
19789 echo "$as_me: failed program was:" >&5
19790 cat conftest.$ac_ext >&5
19791 ( exit $ac_status )
19792 samba_cv_USE_SETREUID=no
19794 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19797 echo "$as_me:$LINENO: result: $samba_cv_USE_SETREUID" >&5
19798 echo "${ECHO_T}$samba_cv_USE_SETREUID" >&6
19799 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
19800 seteuid=yes;
19801 cat >>confdefs.h <<\_ACEOF
19802 #define USE_SETREUID 1
19803 _ACEOF
19808 if test $seteuid = no; then
19809 echo "$as_me:$LINENO: checking for seteuid" >&5
19810 echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
19811 if test "${samba_cv_USE_SETEUID+set}" = set; then
19812 echo $ECHO_N "(cached) $ECHO_C" >&6
19813 else
19815 if test "$cross_compiling" = yes; then
19816 samba_cv_USE_SETEUID=cross
19817 else
19818 cat >conftest.$ac_ext <<_ACEOF
19819 #line $LINENO "configure"
19820 #include "confdefs.h"
19822 #define AUTOCONF_TEST 1
19823 #define USE_SETEUID 1
19824 #include "confdefs.h"
19825 #include "${srcdir-.}/lib/util_sec.c"
19826 _ACEOF
19827 rm -f conftest$ac_exeext
19828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19829 (eval $ac_link) 2>&5
19830 ac_status=$?
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19835 ac_status=$?
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; }; then
19838 samba_cv_USE_SETEUID=yes
19839 else
19840 echo "$as_me: program exited with status $ac_status" >&5
19841 echo "$as_me: failed program was:" >&5
19842 cat conftest.$ac_ext >&5
19843 ( exit $ac_status )
19844 samba_cv_USE_SETEUID=no
19846 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19849 echo "$as_me:$LINENO: result: $samba_cv_USE_SETEUID" >&5
19850 echo "${ECHO_T}$samba_cv_USE_SETEUID" >&6
19851 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
19852 seteuid=yes;
19853 cat >>confdefs.h <<\_ACEOF
19854 #define USE_SETEUID 1
19855 _ACEOF
19860 if test $seteuid = no; then
19861 echo "$as_me:$LINENO: checking for setuidx" >&5
19862 echo $ECHO_N "checking for setuidx... $ECHO_C" >&6
19863 if test "${samba_cv_USE_SETUIDX+set}" = set; then
19864 echo $ECHO_N "(cached) $ECHO_C" >&6
19865 else
19867 if test "$cross_compiling" = yes; then
19868 samba_cv_USE_SETUIDX=cross
19869 else
19870 cat >conftest.$ac_ext <<_ACEOF
19871 #line $LINENO "configure"
19872 #include "confdefs.h"
19874 #define AUTOCONF_TEST 1
19875 #define USE_SETUIDX 1
19876 #include "confdefs.h"
19877 #include "${srcdir-.}/lib/util_sec.c"
19878 _ACEOF
19879 rm -f conftest$ac_exeext
19880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19881 (eval $ac_link) 2>&5
19882 ac_status=$?
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19886 (eval $ac_try) 2>&5
19887 ac_status=$?
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; }; then
19890 samba_cv_USE_SETUIDX=yes
19891 else
19892 echo "$as_me: program exited with status $ac_status" >&5
19893 echo "$as_me: failed program was:" >&5
19894 cat conftest.$ac_ext >&5
19895 ( exit $ac_status )
19896 samba_cv_USE_SETUIDX=no
19898 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19901 echo "$as_me:$LINENO: result: $samba_cv_USE_SETUIDX" >&5
19902 echo "${ECHO_T}$samba_cv_USE_SETUIDX" >&6
19903 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
19904 seteuid=yes;
19905 cat >>confdefs.h <<\_ACEOF
19906 #define USE_SETUIDX 1
19907 _ACEOF
19913 echo "$as_me:$LINENO: checking for working mmap" >&5
19914 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
19915 if test "${samba_cv_HAVE_MMAP+set}" = set; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19917 else
19919 if test "$cross_compiling" = yes; then
19920 samba_cv_HAVE_MMAP=cross
19921 else
19922 cat >conftest.$ac_ext <<_ACEOF
19923 #line $LINENO "configure"
19924 #include "confdefs.h"
19925 #include "${srcdir-.}/tests/shared_mmap.c"
19926 _ACEOF
19927 rm -f conftest$ac_exeext
19928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19929 (eval $ac_link) 2>&5
19930 ac_status=$?
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934 (eval $ac_try) 2>&5
19935 ac_status=$?
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); }; }; then
19938 samba_cv_HAVE_MMAP=yes
19939 else
19940 echo "$as_me: program exited with status $ac_status" >&5
19941 echo "$as_me: failed program was:" >&5
19942 cat conftest.$ac_ext >&5
19943 ( exit $ac_status )
19944 samba_cv_HAVE_MMAP=no
19946 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19949 echo "$as_me:$LINENO: result: $samba_cv_HAVE_MMAP" >&5
19950 echo "${ECHO_T}$samba_cv_HAVE_MMAP" >&6
19951 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
19953 cat >>confdefs.h <<\_ACEOF
19954 #define HAVE_MMAP 1
19955 _ACEOF
19959 echo "$as_me:$LINENO: checking for ftruncate needs root" >&5
19960 echo $ECHO_N "checking for ftruncate needs root... $ECHO_C" >&6
19961 if test "${samba_cv_FTRUNCATE_NEEDS_ROOT+set}" = set; then
19962 echo $ECHO_N "(cached) $ECHO_C" >&6
19963 else
19965 if test "$cross_compiling" = yes; then
19966 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
19967 else
19968 cat >conftest.$ac_ext <<_ACEOF
19969 #line $LINENO "configure"
19970 #include "confdefs.h"
19971 #include "${srcdir-.}/tests/ftruncroot.c"
19972 _ACEOF
19973 rm -f conftest$ac_exeext
19974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19975 (eval $ac_link) 2>&5
19976 ac_status=$?
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980 (eval $ac_try) 2>&5
19981 ac_status=$?
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; }; then
19984 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
19985 else
19986 echo "$as_me: program exited with status $ac_status" >&5
19987 echo "$as_me: failed program was:" >&5
19988 cat conftest.$ac_ext >&5
19989 ( exit $ac_status )
19990 samba_cv_FTRUNCATE_NEEDS_ROOT=no
19992 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19995 echo "$as_me:$LINENO: result: $samba_cv_FTRUNCATE_NEEDS_ROOT" >&5
19996 echo "${ECHO_T}$samba_cv_FTRUNCATE_NEEDS_ROOT" >&6
19997 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
19999 cat >>confdefs.h <<\_ACEOF
20000 #define FTRUNCATE_NEEDS_ROOT 1
20001 _ACEOF
20005 echo "$as_me:$LINENO: checking for fcntl locking" >&5
20006 echo $ECHO_N "checking for fcntl locking... $ECHO_C" >&6
20007 if test "${samba_cv_HAVE_FCNTL_LOCK+set}" = set; then
20008 echo $ECHO_N "(cached) $ECHO_C" >&6
20009 else
20011 if test "$cross_compiling" = yes; then
20012 samba_cv_HAVE_FCNTL_LOCK=cross
20013 else
20014 cat >conftest.$ac_ext <<_ACEOF
20015 #line $LINENO "configure"
20016 #include "confdefs.h"
20017 #include "${srcdir-.}/tests/fcntl_lock.c"
20018 _ACEOF
20019 rm -f conftest$ac_exeext
20020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20021 (eval $ac_link) 2>&5
20022 ac_status=$?
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026 (eval $ac_try) 2>&5
20027 ac_status=$?
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; }; then
20030 samba_cv_HAVE_FCNTL_LOCK=yes
20031 else
20032 echo "$as_me: program exited with status $ac_status" >&5
20033 echo "$as_me: failed program was:" >&5
20034 cat conftest.$ac_ext >&5
20035 ( exit $ac_status )
20036 samba_cv_HAVE_FCNTL_LOCK=no
20038 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20041 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FCNTL_LOCK" >&5
20042 echo "${ECHO_T}$samba_cv_HAVE_FCNTL_LOCK" >&6
20043 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
20045 cat >>confdefs.h <<\_ACEOF
20046 #define HAVE_FCNTL_LOCK 1
20047 _ACEOF
20051 echo "$as_me:$LINENO: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
20052 echo $ECHO_N "checking for broken (glibc2.1/x86) 64 bit fcntl locking... $ECHO_C" >&6
20053 if test "${samba_cv_HAVE_BROKEN_FCNTL64_LOCKS+set}" = set; then
20054 echo $ECHO_N "(cached) $ECHO_C" >&6
20055 else
20057 if test "$cross_compiling" = yes; then
20058 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
20059 else
20060 cat >conftest.$ac_ext <<_ACEOF
20061 #line $LINENO "configure"
20062 #include "confdefs.h"
20063 #include "${srcdir-.}/tests/fcntl_lock64.c"
20064 _ACEOF
20065 rm -f conftest$ac_exeext
20066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20067 (eval $ac_link) 2>&5
20068 ac_status=$?
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20072 (eval $ac_try) 2>&5
20073 ac_status=$?
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); }; }; then
20076 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
20077 else
20078 echo "$as_me: program exited with status $ac_status" >&5
20079 echo "$as_me: failed program was:" >&5
20080 cat conftest.$ac_ext >&5
20081 ( exit $ac_status )
20082 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
20084 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20087 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&5
20088 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&6
20089 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
20091 cat >>confdefs.h <<\_ACEOF
20092 #define HAVE_BROKEN_FCNTL64_LOCKS 1
20093 _ACEOF
20096 else
20099 echo "$as_me:$LINENO: checking for 64 bit fcntl locking" >&5
20100 echo $ECHO_N "checking for 64 bit fcntl locking... $ECHO_C" >&6
20101 if test "${samba_cv_HAVE_STRUCT_FLOCK64+set}" = set; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
20103 else
20105 if test "$cross_compiling" = yes; then
20106 samba_cv_HAVE_STRUCT_FLOCK64=cross
20107 else
20108 cat >conftest.$ac_ext <<_ACEOF
20109 #line $LINENO "configure"
20110 #include "confdefs.h"
20112 #if defined(HAVE_UNISTD_H)
20113 #include <unistd.h>
20114 #endif
20115 #include <stdio.h>
20116 #include <stdlib.h>
20118 #ifdef HAVE_FCNTL_H
20119 #include <fcntl.h>
20120 #endif
20122 #ifdef HAVE_SYS_FCNTL_H
20123 #include <sys/fcntl.h>
20124 #endif
20125 main() { struct flock64 fl64;
20126 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
20127 exit(0);
20128 #else
20129 exit(1);
20130 #endif
20132 _ACEOF
20133 rm -f conftest$ac_exeext
20134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20135 (eval $ac_link) 2>&5
20136 ac_status=$?
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20140 (eval $ac_try) 2>&5
20141 ac_status=$?
20142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143 (exit $ac_status); }; }; then
20144 samba_cv_HAVE_STRUCT_FLOCK64=yes
20145 else
20146 echo "$as_me: program exited with status $ac_status" >&5
20147 echo "$as_me: failed program was:" >&5
20148 cat conftest.$ac_ext >&5
20149 ( exit $ac_status )
20150 samba_cv_HAVE_STRUCT_FLOCK64=no
20152 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20155 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_FLOCK64" >&5
20156 echo "${ECHO_T}$samba_cv_HAVE_STRUCT_FLOCK64" >&6
20158 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
20160 cat >>confdefs.h <<\_ACEOF
20161 #define HAVE_STRUCT_FLOCK64 1
20162 _ACEOF
20167 echo "$as_me:$LINENO: checking for st_blocks in struct stat" >&5
20168 echo $ECHO_N "checking for st_blocks in struct stat... $ECHO_C" >&6
20169 if test "${samba_cv_HAVE_STAT_ST_BLOCKS+set}" = set; then
20170 echo $ECHO_N "(cached) $ECHO_C" >&6
20171 else
20173 cat >conftest.$ac_ext <<_ACEOF
20174 #line $LINENO "configure"
20175 #include "confdefs.h"
20176 #include <sys/types.h>
20177 #include <sys/stat.h>
20178 #include <unistd.h>
20179 #ifdef F77_DUMMY_MAIN
20180 # ifdef __cplusplus
20181 extern "C"
20182 # endif
20183 int F77_DUMMY_MAIN() { return 1; }
20184 #endif
20186 main ()
20188 struct stat st; st.st_blocks = 0;
20190 return 0;
20192 _ACEOF
20193 rm -f conftest.$ac_objext
20194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20195 (eval $ac_compile) 2>&5
20196 ac_status=$?
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } &&
20199 { ac_try='test -s conftest.$ac_objext'
20200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201 (eval $ac_try) 2>&5
20202 ac_status=$?
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; }; then
20205 samba_cv_HAVE_STAT_ST_BLOCKS=yes
20206 else
20207 echo "$as_me: failed program was:" >&5
20208 cat conftest.$ac_ext >&5
20209 samba_cv_HAVE_STAT_ST_BLOCKS=no
20211 rm -f conftest.$ac_objext conftest.$ac_ext
20213 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLOCKS" >&5
20214 echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLOCKS" >&6
20215 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
20217 cat >>confdefs.h <<\_ACEOF
20218 #define HAVE_STAT_ST_BLOCKS 1
20219 _ACEOF
20223 echo "$as_me:$LINENO: checking for st_blksize in struct stat" >&5
20224 echo $ECHO_N "checking for st_blksize in struct stat... $ECHO_C" >&6
20225 if test "${samba_cv_HAVE_STAT_ST_BLKSIZE+set}" = set; then
20226 echo $ECHO_N "(cached) $ECHO_C" >&6
20227 else
20229 cat >conftest.$ac_ext <<_ACEOF
20230 #line $LINENO "configure"
20231 #include "confdefs.h"
20232 #include <sys/types.h>
20233 #include <sys/stat.h>
20234 #include <unistd.h>
20235 #ifdef F77_DUMMY_MAIN
20236 # ifdef __cplusplus
20237 extern "C"
20238 # endif
20239 int F77_DUMMY_MAIN() { return 1; }
20240 #endif
20242 main ()
20244 struct stat st; st.st_blksize = 0;
20246 return 0;
20248 _ACEOF
20249 rm -f conftest.$ac_objext
20250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20251 (eval $ac_compile) 2>&5
20252 ac_status=$?
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } &&
20255 { ac_try='test -s conftest.$ac_objext'
20256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20257 (eval $ac_try) 2>&5
20258 ac_status=$?
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); }; }; then
20261 samba_cv_HAVE_STAT_ST_BLKSIZE=yes
20262 else
20263 echo "$as_me: failed program was:" >&5
20264 cat conftest.$ac_ext >&5
20265 samba_cv_HAVE_STAT_ST_BLKSIZE=no
20267 rm -f conftest.$ac_objext conftest.$ac_ext
20269 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLKSIZE" >&5
20270 echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLKSIZE" >&6
20271 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
20273 cat >>confdefs.h <<\_ACEOF
20274 #define HAVE_STAT_ST_BLKSIZE 1
20275 _ACEOF
20279 case "$host_os" in
20280 *linux*)
20281 echo "$as_me:$LINENO: checking for broken RedHat 7.2 system header files" >&5
20282 echo $ECHO_N "checking for broken RedHat 7.2 system header files... $ECHO_C" >&6
20283 if test "${samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS+set}" = set; then
20284 echo $ECHO_N "(cached) $ECHO_C" >&6
20285 else
20287 cat >conftest.$ac_ext <<_ACEOF
20288 #line $LINENO "configure"
20289 #include "confdefs.h"
20291 #ifdef HAVE_SYS_VFS_H
20292 #include <sys/vfs.h>
20293 #endif
20294 #ifdef HAVE_SYS_CAPABILITY_H
20295 #include <sys/capability.h>
20296 #endif
20298 #ifdef F77_DUMMY_MAIN
20299 # ifdef __cplusplus
20300 extern "C"
20301 # endif
20302 int F77_DUMMY_MAIN() { return 1; }
20303 #endif
20305 main ()
20307 int i;
20309 return 0;
20311 _ACEOF
20312 rm -f conftest.$ac_objext
20313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20314 (eval $ac_compile) 2>&5
20315 ac_status=$?
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); } &&
20318 { ac_try='test -s conftest.$ac_objext'
20319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20320 (eval $ac_try) 2>&5
20321 ac_status=$?
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); }; }; then
20324 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
20325 else
20326 echo "$as_me: failed program was:" >&5
20327 cat conftest.$ac_ext >&5
20328 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
20330 rm -f conftest.$ac_objext conftest.$ac_ext
20332 echo "$as_me:$LINENO: result: $samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&5
20333 echo "${ECHO_T}$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&6
20334 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
20336 cat >>confdefs.h <<\_ACEOF
20337 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
20338 _ACEOF
20342 esac
20344 echo "$as_me:$LINENO: checking for broken nisplus include files" >&5
20345 echo $ECHO_N "checking for broken nisplus include files... $ECHO_C" >&6
20346 if test "${samba_cv_BROKEN_NISPLUS_INCLUDE_FILES+set}" = set; then
20347 echo $ECHO_N "(cached) $ECHO_C" >&6
20348 else
20350 cat >conftest.$ac_ext <<_ACEOF
20351 #line $LINENO "configure"
20352 #include "confdefs.h"
20353 #include <sys/acl.h>
20354 #if defined(HAVE_RPCSVC_NIS_H)
20355 #include <rpcsvc/nis.h>
20356 #endif
20357 #ifdef F77_DUMMY_MAIN
20358 # ifdef __cplusplus
20359 extern "C"
20360 # endif
20361 int F77_DUMMY_MAIN() { return 1; }
20362 #endif
20364 main ()
20366 int i;
20368 return 0;
20370 _ACEOF
20371 rm -f conftest.$ac_objext
20372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20373 (eval $ac_compile) 2>&5
20374 ac_status=$?
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); } &&
20377 { ac_try='test -s conftest.$ac_objext'
20378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379 (eval $ac_try) 2>&5
20380 ac_status=$?
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; }; then
20383 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
20384 else
20385 echo "$as_me: failed program was:" >&5
20386 cat conftest.$ac_ext >&5
20387 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
20389 rm -f conftest.$ac_objext conftest.$ac_ext
20391 echo "$as_me:$LINENO: result: $samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&5
20392 echo "${ECHO_T}$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&6
20393 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
20395 cat >>confdefs.h <<\_ACEOF
20396 #define BROKEN_NISPLUS_INCLUDE_FILES 1
20397 _ACEOF
20402 #################################################
20403 # check for smbwrapper support
20404 echo "$as_me:$LINENO: checking whether to use smbwrapper" >&5
20405 echo $ECHO_N "checking whether to use smbwrapper... $ECHO_C" >&6
20407 # Check whether --with-smbwrapper or --without-smbwrapper was given.
20408 if test "${with_smbwrapper+set}" = set; then
20409 withval="$with_smbwrapper"
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_SMBWRAPPER 1
20417 _ACEOF
20419 WRAPPROG="bin/smbsh\$(EXEEXT)"
20420 WRAP="bin/smbwrapper.$SHLIBEXT"
20422 if test x$ATTEMPT_WRAP32_BUILD = x; then
20423 WRAP32=""
20424 else
20425 WRAP32=bin/smbwrapper.32.$SHLIBEXT
20428 # Conditions under which smbwrapper should not be built.
20430 if test x$PICFLAG = x; then
20431 echo No support for PIC code - disabling smbwrapper and smbsh
20432 WRAPPROG=""
20433 WRAP=""
20434 WRAP32=""
20435 elif test x$ac_cv_func_syscall = xno; then
20436 echo "$as_me:$LINENO: result: No syscall() -- disabling smbwrapper and smbsh" >&5
20437 echo "${ECHO_T}No syscall() -- disabling smbwrapper and smbsh" >&6
20438 WRAPPROG=""
20439 WRAP=""
20440 WRAP32=""
20442 EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS $WRAPPROG $WRAP $WRAP32"
20443 SMBWRAPPER="$WRAPPROG $WRAP $WRAP32"
20446 echo "$as_me:$LINENO: result: no" >&5
20447 echo "${ECHO_T}no" >&6
20449 esac
20450 else
20451 echo "$as_me:$LINENO: result: no" >&5
20452 echo "${ECHO_T}no" >&6
20456 #################################################
20457 # check for AFS clear-text auth support
20458 echo "$as_me:$LINENO: checking whether to use AFS clear-text auth" >&5
20459 echo $ECHO_N "checking whether to use AFS clear-text auth... $ECHO_C" >&6
20461 # Check whether --with-afs or --without-afs was given.
20462 if test "${with_afs+set}" = set; then
20463 withval="$with_afs"
20464 case "$withval" in
20465 yes)
20466 echo "$as_me:$LINENO: result: yes" >&5
20467 echo "${ECHO_T}yes" >&6
20469 cat >>confdefs.h <<\_ACEOF
20470 #define WITH_AFS 1
20471 _ACEOF
20475 echo "$as_me:$LINENO: result: no" >&5
20476 echo "${ECHO_T}no" >&6
20478 esac
20479 else
20480 echo "$as_me:$LINENO: result: no" >&5
20481 echo "${ECHO_T}no" >&6
20486 #################################################
20487 # check for the DFS clear-text auth system
20488 echo "$as_me:$LINENO: checking whether to use DFS clear-text auth" >&5
20489 echo $ECHO_N "checking whether to use DFS clear-text auth... $ECHO_C" >&6
20491 # Check whether --with-dfs or --without-dfs was given.
20492 if test "${with_dfs+set}" = set; then
20493 withval="$with_dfs"
20494 case "$withval" in
20495 yes)
20496 echo "$as_me:$LINENO: result: yes" >&5
20497 echo "${ECHO_T}yes" >&6
20499 cat >>confdefs.h <<\_ACEOF
20500 #define WITH_DFS 1
20501 _ACEOF
20505 echo "$as_me:$LINENO: result: no" >&5
20506 echo "${ECHO_T}no" >&6
20508 esac
20509 else
20510 echo "$as_me:$LINENO: result: no" >&5
20511 echo "${ECHO_T}no" >&6
20515 #################################################
20516 # active directory support
20518 with_ads_support=yes
20519 echo "$as_me:$LINENO: checking whether to use Active Directory" >&5
20520 echo $ECHO_N "checking whether to use Active Directory... $ECHO_C" >&6
20523 # Check whether --with-ads or --without-ads was given.
20524 if test "${with_ads+set}" = set; then
20525 withval="$with_ads"
20526 case "$withval" in
20528 with_ads_support=no
20530 esac
20533 if test x"$with_ads_support" = x"yes"; then
20535 cat >>confdefs.h <<\_ACEOF
20536 #define WITH_ADS 1
20537 _ACEOF
20541 echo "$as_me:$LINENO: result: $with_ads_support" >&5
20542 echo "${ECHO_T}$with_ads_support" >&6
20544 FOUND_KRB5=no
20545 if test x"$with_ads_support" = x"yes"; then
20547 #################################################
20548 # check for location of Kerberos 5 install
20549 echo "$as_me:$LINENO: checking for kerberos 5 install path" >&5
20550 echo $ECHO_N "checking for kerberos 5 install path... $ECHO_C" >&6
20552 # Check whether --with-krb5 or --without-krb5 was given.
20553 if test "${with_krb5+set}" = set; then
20554 withval="$with_krb5"
20555 case "$withval" in
20557 echo "$as_me:$LINENO: result: no" >&5
20558 echo "${ECHO_T}no" >&6
20561 echo "$as_me:$LINENO: result: yes" >&5
20562 echo "${ECHO_T}yes" >&6
20563 LIBS="$LIBS -lkrb5"
20564 CFLAGS="$CFLAGS -I$withval/include"
20565 CPPFLAGS="$CPPFLAGS -I$withval/include"
20566 LDFLAGS="$LDFLAGS -L$withval/lib"
20567 FOUND_KRB5=yes
20569 esac
20570 else
20571 echo "$as_me:$LINENO: result: no" >&5
20572 echo "${ECHO_T}no" >&6
20577 if test x$FOUND_KRB5 = x"no"; then
20578 #################################################
20579 # see if this box has the SuSE location for the heimdal kerberos implementation
20580 echo "$as_me:$LINENO: checking for /usr/include/heimdal" >&5
20581 echo $ECHO_N "checking for /usr/include/heimdal... $ECHO_C" >&6
20582 if test -d /usr/include/heimdal; then
20583 CFLAGS="$CFLAGS -I/usr/include/heimdal"
20584 CPPFLAGS="$CPPFLAGS -I/usr/include/heimdal"
20585 echo "$as_me:$LINENO: result: yes" >&5
20586 echo "${ECHO_T}yes" >&6
20587 else
20588 echo "$as_me:$LINENO: result: no" >&5
20589 echo "${ECHO_T}no" >&6
20594 if test x$FOUND_KRB5 = x"no"; then
20595 #################################################
20596 # see if this box has the RedHat location for kerberos
20597 echo "$as_me:$LINENO: checking for /usr/kerberos" >&5
20598 echo $ECHO_N "checking for /usr/kerberos... $ECHO_C" >&6
20599 if test -d /usr/kerberos; then
20600 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
20601 CFLAGS="$CFLAGS -I/usr/kerberos/include"
20602 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
20603 echo "$as_me:$LINENO: result: yes" >&5
20604 echo "${ECHO_T}yes" >&6
20605 else
20606 echo "$as_me:$LINENO: result: no" >&5
20607 echo "${ECHO_T}no" >&6
20612 # now check for krb5.h. Some systems have the libraries without the headers!
20613 # note that this check is done here to allow for different kerberos
20614 # include paths
20616 for ac_header in krb5.h
20618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20620 echo "$as_me:$LINENO: checking for $ac_header" >&5
20621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20623 echo $ECHO_N "(cached) $ECHO_C" >&6
20625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20627 else
20628 # Is the header compilable?
20629 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20631 cat >conftest.$ac_ext <<_ACEOF
20632 #line $LINENO "configure"
20633 #include "confdefs.h"
20634 $ac_includes_default
20635 #include <$ac_header>
20636 _ACEOF
20637 rm -f conftest.$ac_objext
20638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20639 (eval $ac_compile) 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } &&
20643 { ac_try='test -s conftest.$ac_objext'
20644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645 (eval $ac_try) 2>&5
20646 ac_status=$?
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; }; then
20649 ac_header_compiler=yes
20650 else
20651 echo "$as_me: failed program was:" >&5
20652 cat conftest.$ac_ext >&5
20653 ac_header_compiler=no
20655 rm -f conftest.$ac_objext conftest.$ac_ext
20656 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20657 echo "${ECHO_T}$ac_header_compiler" >&6
20659 # Is the header present?
20660 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20662 cat >conftest.$ac_ext <<_ACEOF
20663 #line $LINENO "configure"
20664 #include "confdefs.h"
20665 #include <$ac_header>
20666 _ACEOF
20667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20669 ac_status=$?
20670 egrep -v '^ *\+' conftest.er1 >conftest.err
20671 rm -f conftest.er1
20672 cat conftest.err >&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); } >/dev/null; then
20675 if test -s conftest.err; then
20676 ac_cpp_err=$ac_c_preproc_warn_flag
20677 else
20678 ac_cpp_err=
20680 else
20681 ac_cpp_err=yes
20683 if test -z "$ac_cpp_err"; then
20684 ac_header_preproc=yes
20685 else
20686 echo "$as_me: failed program was:" >&5
20687 cat conftest.$ac_ext >&5
20688 ac_header_preproc=no
20690 rm -f conftest.err conftest.$ac_ext
20691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20692 echo "${ECHO_T}$ac_header_preproc" >&6
20694 # So? What about this header?
20695 case $ac_header_compiler:$ac_header_preproc in
20696 yes:no )
20697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20701 no:yes )
20702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20705 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20708 esac
20709 echo "$as_me:$LINENO: checking for $ac_header" >&5
20710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20712 echo $ECHO_N "(cached) $ECHO_C" >&6
20713 else
20714 eval "$as_ac_Header=$ac_header_preproc"
20716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20721 cat >>confdefs.h <<_ACEOF
20722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20723 _ACEOF
20727 done
20730 # now check for gssapi headers. This is also done here to allow for
20731 # different kerberos include paths
20736 for ac_header in gssapi.h gssapi/gssapi_generic.h gssapi/gssapi.h com_err.h
20738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20740 echo "$as_me:$LINENO: checking for $ac_header" >&5
20741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20743 echo $ECHO_N "(cached) $ECHO_C" >&6
20745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20747 else
20748 # Is the header compilable?
20749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20751 cat >conftest.$ac_ext <<_ACEOF
20752 #line $LINENO "configure"
20753 #include "confdefs.h"
20754 $ac_includes_default
20755 #include <$ac_header>
20756 _ACEOF
20757 rm -f conftest.$ac_objext
20758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20759 (eval $ac_compile) 2>&5
20760 ac_status=$?
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); } &&
20763 { ac_try='test -s conftest.$ac_objext'
20764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20765 (eval $ac_try) 2>&5
20766 ac_status=$?
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); }; }; then
20769 ac_header_compiler=yes
20770 else
20771 echo "$as_me: failed program was:" >&5
20772 cat conftest.$ac_ext >&5
20773 ac_header_compiler=no
20775 rm -f conftest.$ac_objext conftest.$ac_ext
20776 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20777 echo "${ECHO_T}$ac_header_compiler" >&6
20779 # Is the header present?
20780 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20782 cat >conftest.$ac_ext <<_ACEOF
20783 #line $LINENO "configure"
20784 #include "confdefs.h"
20785 #include <$ac_header>
20786 _ACEOF
20787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20789 ac_status=$?
20790 egrep -v '^ *\+' conftest.er1 >conftest.err
20791 rm -f conftest.er1
20792 cat conftest.err >&5
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); } >/dev/null; then
20795 if test -s conftest.err; then
20796 ac_cpp_err=$ac_c_preproc_warn_flag
20797 else
20798 ac_cpp_err=
20800 else
20801 ac_cpp_err=yes
20803 if test -z "$ac_cpp_err"; then
20804 ac_header_preproc=yes
20805 else
20806 echo "$as_me: failed program was:" >&5
20807 cat conftest.$ac_ext >&5
20808 ac_header_preproc=no
20810 rm -f conftest.err conftest.$ac_ext
20811 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20812 echo "${ECHO_T}$ac_header_preproc" >&6
20814 # So? What about this header?
20815 case $ac_header_compiler:$ac_header_preproc in
20816 yes:no )
20817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20821 no:yes )
20822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20828 esac
20829 echo "$as_me:$LINENO: checking for $ac_header" >&5
20830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20832 echo $ECHO_N "(cached) $ECHO_C" >&6
20833 else
20834 eval "$as_ac_Header=$ac_header_preproc"
20836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20841 cat >>confdefs.h <<_ACEOF
20842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20843 _ACEOF
20847 done
20850 ##################################################################
20851 # we might need the k5crypto and com_err libraries on some systems
20852 echo "$as_me:$LINENO: checking for _et_list in -lcom_err" >&5
20853 echo $ECHO_N "checking for _et_list in -lcom_err... $ECHO_C" >&6
20854 if test "${ac_cv_lib_com_err__et_list+set}" = set; then
20855 echo $ECHO_N "(cached) $ECHO_C" >&6
20856 else
20857 ac_check_lib_save_LIBS=$LIBS
20858 LIBS="-lcom_err $LIBS"
20859 cat >conftest.$ac_ext <<_ACEOF
20860 #line $LINENO "configure"
20861 #include "confdefs.h"
20863 /* Override any gcc2 internal prototype to avoid an error. */
20864 #ifdef __cplusplus
20865 extern "C"
20866 #endif
20867 /* We use char because int might match the return type of a gcc2
20868 builtin and then its argument prototype would still apply. */
20869 char _et_list ();
20870 #ifdef F77_DUMMY_MAIN
20871 # ifdef __cplusplus
20872 extern "C"
20873 # endif
20874 int F77_DUMMY_MAIN() { return 1; }
20875 #endif
20877 main ()
20879 _et_list ();
20881 return 0;
20883 _ACEOF
20884 rm -f conftest.$ac_objext conftest$ac_exeext
20885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20886 (eval $ac_link) 2>&5
20887 ac_status=$?
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); } &&
20890 { ac_try='test -s conftest$ac_exeext'
20891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20892 (eval $ac_try) 2>&5
20893 ac_status=$?
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); }; }; then
20896 ac_cv_lib_com_err__et_list=yes
20897 else
20898 echo "$as_me: failed program was:" >&5
20899 cat conftest.$ac_ext >&5
20900 ac_cv_lib_com_err__et_list=no
20902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20903 LIBS=$ac_check_lib_save_LIBS
20905 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err__et_list" >&5
20906 echo "${ECHO_T}$ac_cv_lib_com_err__et_list" >&6
20907 if test $ac_cv_lib_com_err__et_list = yes; then
20908 LIBS="$LIBS -lcom_err"
20911 echo "$as_me:$LINENO: checking for krb5_encrypt_data in -lk5crypto" >&5
20912 echo $ECHO_N "checking for krb5_encrypt_data in -lk5crypto... $ECHO_C" >&6
20913 if test "${ac_cv_lib_k5crypto_krb5_encrypt_data+set}" = set; then
20914 echo $ECHO_N "(cached) $ECHO_C" >&6
20915 else
20916 ac_check_lib_save_LIBS=$LIBS
20917 LIBS="-lk5crypto $LIBS"
20918 cat >conftest.$ac_ext <<_ACEOF
20919 #line $LINENO "configure"
20920 #include "confdefs.h"
20922 /* Override any gcc2 internal prototype to avoid an error. */
20923 #ifdef __cplusplus
20924 extern "C"
20925 #endif
20926 /* We use char because int might match the return type of a gcc2
20927 builtin and then its argument prototype would still apply. */
20928 char krb5_encrypt_data ();
20929 #ifdef F77_DUMMY_MAIN
20930 # ifdef __cplusplus
20931 extern "C"
20932 # endif
20933 int F77_DUMMY_MAIN() { return 1; }
20934 #endif
20936 main ()
20938 krb5_encrypt_data ();
20940 return 0;
20942 _ACEOF
20943 rm -f conftest.$ac_objext conftest$ac_exeext
20944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20945 (eval $ac_link) 2>&5
20946 ac_status=$?
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); } &&
20949 { ac_try='test -s conftest$ac_exeext'
20950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20951 (eval $ac_try) 2>&5
20952 ac_status=$?
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); }; }; then
20955 ac_cv_lib_k5crypto_krb5_encrypt_data=yes
20956 else
20957 echo "$as_me: failed program was:" >&5
20958 cat conftest.$ac_ext >&5
20959 ac_cv_lib_k5crypto_krb5_encrypt_data=no
20961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20962 LIBS=$ac_check_lib_save_LIBS
20964 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_krb5_encrypt_data" >&5
20965 echo "${ECHO_T}$ac_cv_lib_k5crypto_krb5_encrypt_data" >&6
20966 if test $ac_cv_lib_k5crypto_krb5_encrypt_data = yes; then
20967 LIBS="$LIBS -lk5crypto"
20970 # Heimdal checks.
20971 echo "$as_me:$LINENO: checking for des_set_key in -lcrypto" >&5
20972 echo $ECHO_N "checking for des_set_key in -lcrypto... $ECHO_C" >&6
20973 if test "${ac_cv_lib_crypto_des_set_key+set}" = set; then
20974 echo $ECHO_N "(cached) $ECHO_C" >&6
20975 else
20976 ac_check_lib_save_LIBS=$LIBS
20977 LIBS="-lcrypto $LIBS"
20978 cat >conftest.$ac_ext <<_ACEOF
20979 #line $LINENO "configure"
20980 #include "confdefs.h"
20982 /* Override any gcc2 internal prototype to avoid an error. */
20983 #ifdef __cplusplus
20984 extern "C"
20985 #endif
20986 /* We use char because int might match the return type of a gcc2
20987 builtin and then its argument prototype would still apply. */
20988 char des_set_key ();
20989 #ifdef F77_DUMMY_MAIN
20990 # ifdef __cplusplus
20991 extern "C"
20992 # endif
20993 int F77_DUMMY_MAIN() { return 1; }
20994 #endif
20996 main ()
20998 des_set_key ();
21000 return 0;
21002 _ACEOF
21003 rm -f conftest.$ac_objext conftest$ac_exeext
21004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21005 (eval $ac_link) 2>&5
21006 ac_status=$?
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); } &&
21009 { ac_try='test -s conftest$ac_exeext'
21010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011 (eval $ac_try) 2>&5
21012 ac_status=$?
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; }; then
21015 ac_cv_lib_crypto_des_set_key=yes
21016 else
21017 echo "$as_me: failed program was:" >&5
21018 cat conftest.$ac_ext >&5
21019 ac_cv_lib_crypto_des_set_key=no
21021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21022 LIBS=$ac_check_lib_save_LIBS
21024 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_set_key" >&5
21025 echo "${ECHO_T}$ac_cv_lib_crypto_des_set_key" >&6
21026 if test $ac_cv_lib_crypto_des_set_key = yes; then
21027 LIBS="$LIBS -lcrypto"
21030 echo "$as_me:$LINENO: checking for copy_Authenticator in -lasn1" >&5
21031 echo $ECHO_N "checking for copy_Authenticator in -lasn1... $ECHO_C" >&6
21032 if test "${ac_cv_lib_asn1_copy_Authenticator+set}" = set; then
21033 echo $ECHO_N "(cached) $ECHO_C" >&6
21034 else
21035 ac_check_lib_save_LIBS=$LIBS
21036 LIBS="-lasn1 $LIBS"
21037 cat >conftest.$ac_ext <<_ACEOF
21038 #line $LINENO "configure"
21039 #include "confdefs.h"
21041 /* Override any gcc2 internal prototype to avoid an error. */
21042 #ifdef __cplusplus
21043 extern "C"
21044 #endif
21045 /* We use char because int might match the return type of a gcc2
21046 builtin and then its argument prototype would still apply. */
21047 char copy_Authenticator ();
21048 #ifdef F77_DUMMY_MAIN
21049 # ifdef __cplusplus
21050 extern "C"
21051 # endif
21052 int F77_DUMMY_MAIN() { return 1; }
21053 #endif
21055 main ()
21057 copy_Authenticator ();
21059 return 0;
21061 _ACEOF
21062 rm -f conftest.$ac_objext conftest$ac_exeext
21063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21064 (eval $ac_link) 2>&5
21065 ac_status=$?
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); } &&
21068 { ac_try='test -s conftest$ac_exeext'
21069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070 (eval $ac_try) 2>&5
21071 ac_status=$?
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); }; }; then
21074 ac_cv_lib_asn1_copy_Authenticator=yes
21075 else
21076 echo "$as_me: failed program was:" >&5
21077 cat conftest.$ac_ext >&5
21078 ac_cv_lib_asn1_copy_Authenticator=no
21080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21081 LIBS=$ac_check_lib_save_LIBS
21083 echo "$as_me:$LINENO: result: $ac_cv_lib_asn1_copy_Authenticator" >&5
21084 echo "${ECHO_T}$ac_cv_lib_asn1_copy_Authenticator" >&6
21085 if test $ac_cv_lib_asn1_copy_Authenticator = yes; then
21086 LIBS="$LIBS -lasn1 -lroken"
21089 echo "$as_me:$LINENO: checking for krb5_set_real_time in -lkrb5" >&5
21090 echo $ECHO_N "checking for krb5_set_real_time in -lkrb5... $ECHO_C" >&6
21091 if test "${ac_cv_lib_krb5_krb5_set_real_time+set}" = set; then
21092 echo $ECHO_N "(cached) $ECHO_C" >&6
21093 else
21094 ac_check_lib_save_LIBS=$LIBS
21095 LIBS="-lkrb5 $LIBS"
21096 cat >conftest.$ac_ext <<_ACEOF
21097 #line $LINENO "configure"
21098 #include "confdefs.h"
21100 /* Override any gcc2 internal prototype to avoid an error. */
21101 #ifdef __cplusplus
21102 extern "C"
21103 #endif
21104 /* We use char because int might match the return type of a gcc2
21105 builtin and then its argument prototype would still apply. */
21106 char krb5_set_real_time ();
21107 #ifdef F77_DUMMY_MAIN
21108 # ifdef __cplusplus
21109 extern "C"
21110 # endif
21111 int F77_DUMMY_MAIN() { return 1; }
21112 #endif
21114 main ()
21116 krb5_set_real_time ();
21118 return 0;
21120 _ACEOF
21121 rm -f conftest.$ac_objext conftest$ac_exeext
21122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21123 (eval $ac_link) 2>&5
21124 ac_status=$?
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } &&
21127 { ac_try='test -s conftest$ac_exeext'
21128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21129 (eval $ac_try) 2>&5
21130 ac_status=$?
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); }; }; then
21133 ac_cv_lib_krb5_krb5_set_real_time=yes
21134 else
21135 echo "$as_me: failed program was:" >&5
21136 cat conftest.$ac_ext >&5
21137 ac_cv_lib_krb5_krb5_set_real_time=no
21139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21140 LIBS=$ac_check_lib_save_LIBS
21142 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_set_real_time" >&5
21143 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_set_real_time" >&6
21144 if test $ac_cv_lib_krb5_krb5_set_real_time = yes; then
21146 cat >>confdefs.h <<\_ACEOF
21147 #define HAVE_KRB5_SET_REAL_TIME 1
21148 _ACEOF
21152 echo "$as_me:$LINENO: checking for krb5_set_default_in_tkt_etypes in -lkrb5" >&5
21153 echo $ECHO_N "checking for krb5_set_default_in_tkt_etypes in -lkrb5... $ECHO_C" >&6
21154 if test "${ac_cv_lib_krb5_krb5_set_default_in_tkt_etypes+set}" = set; then
21155 echo $ECHO_N "(cached) $ECHO_C" >&6
21156 else
21157 ac_check_lib_save_LIBS=$LIBS
21158 LIBS="-lkrb5 $LIBS"
21159 cat >conftest.$ac_ext <<_ACEOF
21160 #line $LINENO "configure"
21161 #include "confdefs.h"
21163 /* Override any gcc2 internal prototype to avoid an error. */
21164 #ifdef __cplusplus
21165 extern "C"
21166 #endif
21167 /* We use char because int might match the return type of a gcc2
21168 builtin and then its argument prototype would still apply. */
21169 char krb5_set_default_in_tkt_etypes ();
21170 #ifdef F77_DUMMY_MAIN
21171 # ifdef __cplusplus
21172 extern "C"
21173 # endif
21174 int F77_DUMMY_MAIN() { return 1; }
21175 #endif
21177 main ()
21179 krb5_set_default_in_tkt_etypes ();
21181 return 0;
21183 _ACEOF
21184 rm -f conftest.$ac_objext conftest$ac_exeext
21185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21186 (eval $ac_link) 2>&5
21187 ac_status=$?
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } &&
21190 { ac_try='test -s conftest$ac_exeext'
21191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192 (eval $ac_try) 2>&5
21193 ac_status=$?
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); }; }; then
21196 ac_cv_lib_krb5_krb5_set_default_in_tkt_etypes=yes
21197 else
21198 echo "$as_me: failed program was:" >&5
21199 cat conftest.$ac_ext >&5
21200 ac_cv_lib_krb5_krb5_set_default_in_tkt_etypes=no
21202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21203 LIBS=$ac_check_lib_save_LIBS
21205 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_set_default_in_tkt_etypes" >&5
21206 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_set_default_in_tkt_etypes" >&6
21207 if test $ac_cv_lib_krb5_krb5_set_default_in_tkt_etypes = yes; then
21209 cat >>confdefs.h <<\_ACEOF
21210 #define HAVE_KRB5_SET_DEFAULT_IN_TKT_ETYPES 1
21211 _ACEOF
21215 echo "$as_me:$LINENO: checking for krb5_set_default_tgs_ktypes in -lkrb5" >&5
21216 echo $ECHO_N "checking for krb5_set_default_tgs_ktypes in -lkrb5... $ECHO_C" >&6
21217 if test "${ac_cv_lib_krb5_krb5_set_default_tgs_ktypes+set}" = set; then
21218 echo $ECHO_N "(cached) $ECHO_C" >&6
21219 else
21220 ac_check_lib_save_LIBS=$LIBS
21221 LIBS="-lkrb5 $LIBS"
21222 cat >conftest.$ac_ext <<_ACEOF
21223 #line $LINENO "configure"
21224 #include "confdefs.h"
21226 /* Override any gcc2 internal prototype to avoid an error. */
21227 #ifdef __cplusplus
21228 extern "C"
21229 #endif
21230 /* We use char because int might match the return type of a gcc2
21231 builtin and then its argument prototype would still apply. */
21232 char krb5_set_default_tgs_ktypes ();
21233 #ifdef F77_DUMMY_MAIN
21234 # ifdef __cplusplus
21235 extern "C"
21236 # endif
21237 int F77_DUMMY_MAIN() { return 1; }
21238 #endif
21240 main ()
21242 krb5_set_default_tgs_ktypes ();
21244 return 0;
21246 _ACEOF
21247 rm -f conftest.$ac_objext conftest$ac_exeext
21248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21249 (eval $ac_link) 2>&5
21250 ac_status=$?
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); } &&
21253 { ac_try='test -s conftest$ac_exeext'
21254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21255 (eval $ac_try) 2>&5
21256 ac_status=$?
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); }; }; then
21259 ac_cv_lib_krb5_krb5_set_default_tgs_ktypes=yes
21260 else
21261 echo "$as_me: failed program was:" >&5
21262 cat conftest.$ac_ext >&5
21263 ac_cv_lib_krb5_krb5_set_default_tgs_ktypes=no
21265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21266 LIBS=$ac_check_lib_save_LIBS
21268 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_set_default_tgs_ktypes" >&5
21269 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_set_default_tgs_ktypes" >&6
21270 if test $ac_cv_lib_krb5_krb5_set_default_tgs_ktypes = yes; then
21272 cat >>confdefs.h <<\_ACEOF
21273 #define HAVE_KRB5_SET_DEFAULT_TGS_KTYPES 1
21274 _ACEOF
21279 echo "$as_me:$LINENO: checking for addrtype in krb5_address" >&5
21280 echo $ECHO_N "checking for addrtype in krb5_address... $ECHO_C" >&6
21281 if test "${samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS+set}" = set; then
21282 echo $ECHO_N "(cached) $ECHO_C" >&6
21283 else
21285 cat >conftest.$ac_ext <<_ACEOF
21286 #line $LINENO "configure"
21287 #include "confdefs.h"
21288 #include <krb5.h>
21289 #ifdef F77_DUMMY_MAIN
21290 # ifdef __cplusplus
21291 extern "C"
21292 # endif
21293 int F77_DUMMY_MAIN() { return 1; }
21294 #endif
21296 main ()
21298 krb5_address kaddr; kaddr.addrtype = ADDRTYPE_INET;
21300 return 0;
21302 _ACEOF
21303 rm -f conftest.$ac_objext
21304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21305 (eval $ac_compile) 2>&5
21306 ac_status=$?
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); } &&
21309 { ac_try='test -s conftest.$ac_objext'
21310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311 (eval $ac_try) 2>&5
21312 ac_status=$?
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); }; }; then
21315 samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS=yes
21316 else
21317 echo "$as_me: failed program was:" >&5
21318 cat conftest.$ac_ext >&5
21319 samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS=no
21321 rm -f conftest.$ac_objext conftest.$ac_ext
21323 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS" >&5
21324 echo "${ECHO_T}$samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS" >&6
21325 if test x"$samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS" = x"yes"; then
21327 cat >>confdefs.h <<\_ACEOF
21328 #define HAVE_ADDRTYPE_IN_KRB5_ADDRESS 1
21329 _ACEOF
21333 echo "$as_me:$LINENO: checking for addr_type in krb5_address" >&5
21334 echo $ECHO_N "checking for addr_type in krb5_address... $ECHO_C" >&6
21335 if test "${samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS+set}" = set; then
21336 echo $ECHO_N "(cached) $ECHO_C" >&6
21337 else
21339 cat >conftest.$ac_ext <<_ACEOF
21340 #line $LINENO "configure"
21341 #include "confdefs.h"
21342 #include <krb5.h>
21343 #ifdef F77_DUMMY_MAIN
21344 # ifdef __cplusplus
21345 extern "C"
21346 # endif
21347 int F77_DUMMY_MAIN() { return 1; }
21348 #endif
21350 main ()
21352 krb5_address kaddr; kaddr.addr_type = KRB5_ADDRESS_INET;
21354 return 0;
21356 _ACEOF
21357 rm -f conftest.$ac_objext
21358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21359 (eval $ac_compile) 2>&5
21360 ac_status=$?
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); } &&
21363 { ac_try='test -s conftest.$ac_objext'
21364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365 (eval $ac_try) 2>&5
21366 ac_status=$?
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; }; then
21369 samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS=yes
21370 else
21371 echo "$as_me: failed program was:" >&5
21372 cat conftest.$ac_ext >&5
21373 samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS=no
21375 rm -f conftest.$ac_objext conftest.$ac_ext
21377 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS" >&5
21378 echo "${ECHO_T}$samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS" >&6
21379 if test x"$samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS" = x"yes"; then
21381 cat >>confdefs.h <<\_ACEOF
21382 #define HAVE_ADDR_TYPE_IN_KRB5_ADDRESS 1
21383 _ACEOF
21387 ########################################################
21388 # now see if we can find the krb5 libs in standard paths
21389 # or as specified above
21390 echo "$as_me:$LINENO: checking for krb5_mk_req_extended in -lkrb5" >&5
21391 echo $ECHO_N "checking for krb5_mk_req_extended in -lkrb5... $ECHO_C" >&6
21392 if test "${ac_cv_lib_krb5_krb5_mk_req_extended+set}" = set; then
21393 echo $ECHO_N "(cached) $ECHO_C" >&6
21394 else
21395 ac_check_lib_save_LIBS=$LIBS
21396 LIBS="-lkrb5 $LIBS"
21397 cat >conftest.$ac_ext <<_ACEOF
21398 #line $LINENO "configure"
21399 #include "confdefs.h"
21401 /* Override any gcc2 internal prototype to avoid an error. */
21402 #ifdef __cplusplus
21403 extern "C"
21404 #endif
21405 /* We use char because int might match the return type of a gcc2
21406 builtin and then its argument prototype would still apply. */
21407 char krb5_mk_req_extended ();
21408 #ifdef F77_DUMMY_MAIN
21409 # ifdef __cplusplus
21410 extern "C"
21411 # endif
21412 int F77_DUMMY_MAIN() { return 1; }
21413 #endif
21415 main ()
21417 krb5_mk_req_extended ();
21419 return 0;
21421 _ACEOF
21422 rm -f conftest.$ac_objext conftest$ac_exeext
21423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21424 (eval $ac_link) 2>&5
21425 ac_status=$?
21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 (exit $ac_status); } &&
21428 { ac_try='test -s conftest$ac_exeext'
21429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21430 (eval $ac_try) 2>&5
21431 ac_status=$?
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); }; }; then
21434 ac_cv_lib_krb5_krb5_mk_req_extended=yes
21435 else
21436 echo "$as_me: failed program was:" >&5
21437 cat conftest.$ac_ext >&5
21438 ac_cv_lib_krb5_krb5_mk_req_extended=no
21440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21441 LIBS=$ac_check_lib_save_LIBS
21443 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_mk_req_extended" >&5
21444 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_mk_req_extended" >&6
21445 if test $ac_cv_lib_krb5_krb5_mk_req_extended = yes; then
21446 LIBS="$LIBS -lkrb5";
21448 cat >>confdefs.h <<\_ACEOF
21449 #define HAVE_KRB5 1
21450 _ACEOF
21455 ########################################################
21456 # now see if we can find the gssapi libs in standard paths
21457 echo "$as_me:$LINENO: checking for gss_display_status in -lgssapi_krb5" >&5
21458 echo $ECHO_N "checking for gss_display_status in -lgssapi_krb5... $ECHO_C" >&6
21459 if test "${ac_cv_lib_gssapi_krb5_gss_display_status+set}" = set; then
21460 echo $ECHO_N "(cached) $ECHO_C" >&6
21461 else
21462 ac_check_lib_save_LIBS=$LIBS
21463 LIBS="-lgssapi_krb5 $LIBS"
21464 cat >conftest.$ac_ext <<_ACEOF
21465 #line $LINENO "configure"
21466 #include "confdefs.h"
21468 /* Override any gcc2 internal prototype to avoid an error. */
21469 #ifdef __cplusplus
21470 extern "C"
21471 #endif
21472 /* We use char because int might match the return type of a gcc2
21473 builtin and then its argument prototype would still apply. */
21474 char gss_display_status ();
21475 #ifdef F77_DUMMY_MAIN
21476 # ifdef __cplusplus
21477 extern "C"
21478 # endif
21479 int F77_DUMMY_MAIN() { return 1; }
21480 #endif
21482 main ()
21484 gss_display_status ();
21486 return 0;
21488 _ACEOF
21489 rm -f conftest.$ac_objext conftest$ac_exeext
21490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21491 (eval $ac_link) 2>&5
21492 ac_status=$?
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); } &&
21495 { ac_try='test -s conftest$ac_exeext'
21496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497 (eval $ac_try) 2>&5
21498 ac_status=$?
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); }; }; then
21501 ac_cv_lib_gssapi_krb5_gss_display_status=yes
21502 else
21503 echo "$as_me: failed program was:" >&5
21504 cat conftest.$ac_ext >&5
21505 ac_cv_lib_gssapi_krb5_gss_display_status=no
21507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21508 LIBS=$ac_check_lib_save_LIBS
21510 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_display_status" >&5
21511 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_display_status" >&6
21512 if test $ac_cv_lib_gssapi_krb5_gss_display_status = yes; then
21513 LIBS="$LIBS -lgssapi_krb5";
21515 cat >>confdefs.h <<\_ACEOF
21516 #define HAVE_GSSAPI 1
21517 _ACEOF
21521 # Heimdal checks.
21522 echo "$as_me:$LINENO: checking for gss_display_status in -lgssapi" >&5
21523 echo $ECHO_N "checking for gss_display_status in -lgssapi... $ECHO_C" >&6
21524 if test "${ac_cv_lib_gssapi_gss_display_status+set}" = set; then
21525 echo $ECHO_N "(cached) $ECHO_C" >&6
21526 else
21527 ac_check_lib_save_LIBS=$LIBS
21528 LIBS="-lgssapi $LIBS"
21529 cat >conftest.$ac_ext <<_ACEOF
21530 #line $LINENO "configure"
21531 #include "confdefs.h"
21533 /* Override any gcc2 internal prototype to avoid an error. */
21534 #ifdef __cplusplus
21535 extern "C"
21536 #endif
21537 /* We use char because int might match the return type of a gcc2
21538 builtin and then its argument prototype would still apply. */
21539 char gss_display_status ();
21540 #ifdef F77_DUMMY_MAIN
21541 # ifdef __cplusplus
21542 extern "C"
21543 # endif
21544 int F77_DUMMY_MAIN() { return 1; }
21545 #endif
21547 main ()
21549 gss_display_status ();
21551 return 0;
21553 _ACEOF
21554 rm -f conftest.$ac_objext conftest$ac_exeext
21555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21556 (eval $ac_link) 2>&5
21557 ac_status=$?
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559 (exit $ac_status); } &&
21560 { ac_try='test -s conftest$ac_exeext'
21561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21562 (eval $ac_try) 2>&5
21563 ac_status=$?
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); }; }; then
21566 ac_cv_lib_gssapi_gss_display_status=yes
21567 else
21568 echo "$as_me: failed program was:" >&5
21569 cat conftest.$ac_ext >&5
21570 ac_cv_lib_gssapi_gss_display_status=no
21572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21573 LIBS=$ac_check_lib_save_LIBS
21575 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_display_status" >&5
21576 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_display_status" >&6
21577 if test $ac_cv_lib_gssapi_gss_display_status = yes; then
21578 LIBS="$LIBS -lgssapi";
21580 cat >>confdefs.h <<\_ACEOF
21581 #define HAVE_GSSAPI 1
21582 _ACEOF
21588 ########################################################
21589 # Compile with LDAP support?
21591 with_ldap_support=yes
21592 echo "$as_me:$LINENO: checking whether to use LDAP" >&5
21593 echo $ECHO_N "checking whether to use LDAP... $ECHO_C" >&6
21596 # Check whether --with-ldap or --without-ldap was given.
21597 if test "${with_ldap+set}" = set; then
21598 withval="$with_ldap"
21599 case "$withval" in
21601 with_ldap_support=no
21603 esac
21606 echo "$as_me:$LINENO: result: $with_ldap_support" >&5
21607 echo "${ECHO_T}$with_ldap_support" >&6
21609 if test x"$with_ldap_support" = x"yes"; then
21611 ##################################################################
21612 # we might need the lber lib on some systems. To avoid link errors
21613 # this test must be before the libldap test
21614 echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5
21615 echo $ECHO_N "checking for ber_scanf in -llber... $ECHO_C" >&6
21616 if test "${ac_cv_lib_lber_ber_scanf+set}" = set; then
21617 echo $ECHO_N "(cached) $ECHO_C" >&6
21618 else
21619 ac_check_lib_save_LIBS=$LIBS
21620 LIBS="-llber $LIBS"
21621 cat >conftest.$ac_ext <<_ACEOF
21622 #line $LINENO "configure"
21623 #include "confdefs.h"
21625 /* Override any gcc2 internal prototype to avoid an error. */
21626 #ifdef __cplusplus
21627 extern "C"
21628 #endif
21629 /* We use char because int might match the return type of a gcc2
21630 builtin and then its argument prototype would still apply. */
21631 char ber_scanf ();
21632 #ifdef F77_DUMMY_MAIN
21633 # ifdef __cplusplus
21634 extern "C"
21635 # endif
21636 int F77_DUMMY_MAIN() { return 1; }
21637 #endif
21639 main ()
21641 ber_scanf ();
21643 return 0;
21645 _ACEOF
21646 rm -f conftest.$ac_objext conftest$ac_exeext
21647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21648 (eval $ac_link) 2>&5
21649 ac_status=$?
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } &&
21652 { ac_try='test -s conftest$ac_exeext'
21653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654 (eval $ac_try) 2>&5
21655 ac_status=$?
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); }; }; then
21658 ac_cv_lib_lber_ber_scanf=yes
21659 else
21660 echo "$as_me: failed program was:" >&5
21661 cat conftest.$ac_ext >&5
21662 ac_cv_lib_lber_ber_scanf=no
21664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21665 LIBS=$ac_check_lib_save_LIBS
21667 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_scanf" >&5
21668 echo "${ECHO_T}$ac_cv_lib_lber_ber_scanf" >&6
21669 if test $ac_cv_lib_lber_ber_scanf = yes; then
21670 LIBS="$LIBS -llber"
21674 ########################################################
21675 # now see if we can find the ldap libs in standard paths
21676 if test x$have_ldap != xyes; then
21677 echo "$as_me:$LINENO: checking for ldap_domain2hostlist in -lldap" >&5
21678 echo $ECHO_N "checking for ldap_domain2hostlist in -lldap... $ECHO_C" >&6
21679 if test "${ac_cv_lib_ldap_ldap_domain2hostlist+set}" = set; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21681 else
21682 ac_check_lib_save_LIBS=$LIBS
21683 LIBS="-lldap $LIBS"
21684 cat >conftest.$ac_ext <<_ACEOF
21685 #line $LINENO "configure"
21686 #include "confdefs.h"
21688 /* Override any gcc2 internal prototype to avoid an error. */
21689 #ifdef __cplusplus
21690 extern "C"
21691 #endif
21692 /* We use char because int might match the return type of a gcc2
21693 builtin and then its argument prototype would still apply. */
21694 char ldap_domain2hostlist ();
21695 #ifdef F77_DUMMY_MAIN
21696 # ifdef __cplusplus
21697 extern "C"
21698 # endif
21699 int F77_DUMMY_MAIN() { return 1; }
21700 #endif
21702 main ()
21704 ldap_domain2hostlist ();
21706 return 0;
21708 _ACEOF
21709 rm -f conftest.$ac_objext conftest$ac_exeext
21710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21711 (eval $ac_link) 2>&5
21712 ac_status=$?
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); } &&
21715 { ac_try='test -s conftest$ac_exeext'
21716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21717 (eval $ac_try) 2>&5
21718 ac_status=$?
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); }; }; then
21721 ac_cv_lib_ldap_ldap_domain2hostlist=yes
21722 else
21723 echo "$as_me: failed program was:" >&5
21724 cat conftest.$ac_ext >&5
21725 ac_cv_lib_ldap_ldap_domain2hostlist=no
21727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21728 LIBS=$ac_check_lib_save_LIBS
21730 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_domain2hostlist" >&5
21731 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_domain2hostlist" >&6
21732 if test $ac_cv_lib_ldap_ldap_domain2hostlist = yes; then
21733 LIBS="$LIBS -lldap";
21735 cat >>confdefs.h <<\_ACEOF
21736 #define HAVE_LDAP 1
21737 _ACEOF
21742 ########################################################
21743 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
21744 # Check found in pam_ldap 145.
21746 for ac_func in ldap_set_rebind_proc
21748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21749 echo "$as_me:$LINENO: checking for $ac_func" >&5
21750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21751 if eval "test \"\${$as_ac_var+set}\" = set"; then
21752 echo $ECHO_N "(cached) $ECHO_C" >&6
21753 else
21754 cat >conftest.$ac_ext <<_ACEOF
21755 #line $LINENO "configure"
21756 #include "confdefs.h"
21757 /* System header to define __stub macros and hopefully few prototypes,
21758 which can conflict with char $ac_func (); below. */
21759 #include <assert.h>
21760 /* Override any gcc2 internal prototype to avoid an error. */
21761 #ifdef __cplusplus
21762 extern "C"
21763 #endif
21764 /* We use char because int might match the return type of a gcc2
21765 builtin and then its argument prototype would still apply. */
21766 char $ac_func ();
21767 char (*f) ();
21769 #ifdef F77_DUMMY_MAIN
21770 # ifdef __cplusplus
21771 extern "C"
21772 # endif
21773 int F77_DUMMY_MAIN() { return 1; }
21774 #endif
21776 main ()
21778 /* The GNU C library defines this for functions which it implements
21779 to always fail with ENOSYS. Some functions are actually named
21780 something starting with __ and the normal name is an alias. */
21781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21782 choke me
21783 #else
21784 f = $ac_func;
21785 #endif
21788 return 0;
21790 _ACEOF
21791 rm -f conftest.$ac_objext conftest$ac_exeext
21792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21793 (eval $ac_link) 2>&5
21794 ac_status=$?
21795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796 (exit $ac_status); } &&
21797 { ac_try='test -s conftest$ac_exeext'
21798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21799 (eval $ac_try) 2>&5
21800 ac_status=$?
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); }; }; then
21803 eval "$as_ac_var=yes"
21804 else
21805 echo "$as_me: failed program was:" >&5
21806 cat conftest.$ac_ext >&5
21807 eval "$as_ac_var=no"
21809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21813 if test `eval echo '${'$as_ac_var'}'` = yes; then
21814 cat >>confdefs.h <<_ACEOF
21815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21816 _ACEOF
21819 done
21821 echo "$as_me:$LINENO: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
21822 echo $ECHO_N "checking whether ldap_set_rebind_proc takes 3 arguments... $ECHO_C" >&6
21823 if test "${pam_ldap_cv_ldap_set_rebind_proc+set}" = set; then
21824 echo $ECHO_N "(cached) $ECHO_C" >&6
21825 else
21827 cat >conftest.$ac_ext <<_ACEOF
21828 #line $LINENO "configure"
21829 #include "confdefs.h"
21831 #include <lber.h>
21832 #include <ldap.h>
21833 #ifdef F77_DUMMY_MAIN
21834 # ifdef __cplusplus
21835 extern "C"
21836 # endif
21837 int F77_DUMMY_MAIN() { return 1; }
21838 #endif
21840 main ()
21842 ldap_set_rebind_proc(0, 0, 0);
21844 return 0;
21846 _ACEOF
21847 rm -f conftest.$ac_objext
21848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21849 (eval $ac_compile) 2>&5
21850 ac_status=$?
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); } &&
21853 { ac_try='test -s conftest.$ac_objext'
21854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21855 (eval $ac_try) 2>&5
21856 ac_status=$?
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); }; }; then
21859 pam_ldap_cv_ldap_set_rebind_proc=3
21860 else
21861 echo "$as_me: failed program was:" >&5
21862 cat conftest.$ac_ext >&5
21863 pam_ldap_cv_ldap_set_rebind_proc=2
21865 rm -f conftest.$ac_objext conftest.$ac_ext
21867 echo "$as_me:$LINENO: result: $pam_ldap_cv_ldap_set_rebind_proc" >&5
21868 echo "${ECHO_T}$pam_ldap_cv_ldap_set_rebind_proc" >&6
21870 cat >>confdefs.h <<_ACEOF
21871 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
21872 _ACEOF
21877 ########################################################
21878 # Compile with MySQL support?
21880 # Check whether --with-mysql-prefix or --without-mysql-prefix was given.
21881 if test "${with_mysql_prefix+set}" = set; then
21882 withval="$with_mysql_prefix"
21883 mysql_prefix="$withval"
21884 else
21885 mysql_prefix=""
21888 # Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
21889 if test "${with_mysql_exec_prefix+set}" = set; then
21890 withval="$with_mysql_exec_prefix"
21891 mysql_exec_prefix="$withval"
21892 else
21893 mysql_exec_prefix=""
21895 # Check whether --enable-mysqltest or --disable-mysqltest was given.
21896 if test "${enable_mysqltest+set}" = set; then
21897 enableval="$enable_mysqltest"
21899 else
21900 enable_mysqltest=yes
21903 if test x$mysql_exec_prefix != x ; then
21904 mysql_args="$mysql_args --exec-prefix=$mysql_exec_prefix"
21905 if test x${MYSQL_CONFIG+set} != xset ; then
21906 MYSQL_CONFIG=$mysql_exec_prefix/bin/mysql_config
21909 if test x$mysql_prefix != x ; then
21910 mysql_args="$mysql_args --prefix=$mysql_prefix"
21911 if test x${MYSQL_CONFIG+set} != xset ; then
21912 MYSQL_CONFIG=$mysql_prefix/bin/mysql_config
21917 # Extract the first word of "mysql_config", so it can be a program name with args.
21918 set dummy mysql_config; ac_word=$2
21919 echo "$as_me:$LINENO: checking for $ac_word" >&5
21920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21921 if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
21922 echo $ECHO_N "(cached) $ECHO_C" >&6
21923 else
21924 case $MYSQL_CONFIG in
21925 [\\/]* | ?:[\\/]*)
21926 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
21929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21930 for as_dir in $PATH
21932 IFS=$as_save_IFS
21933 test -z "$as_dir" && as_dir=.
21934 for ac_exec_ext in '' $ac_executable_extensions; do
21935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21936 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21938 break 2
21940 done
21941 done
21943 test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG="no"
21945 esac
21947 MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
21949 if test -n "$MYSQL_CONFIG"; then
21950 echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
21951 echo "${ECHO_T}$MYSQL_CONFIG" >&6
21952 else
21953 echo "$as_me:$LINENO: result: no" >&5
21954 echo "${ECHO_T}no" >&6
21957 min_mysql_version=0.11.0
21958 echo "$as_me:$LINENO: checking for MYSQL - version >= $min_mysql_version" >&5
21959 echo $ECHO_N "checking for MYSQL - version >= $min_mysql_version... $ECHO_C" >&6
21960 no_mysql=""
21961 if test "$MYSQL_CONFIG" = "no" ; then
21962 no_mysql=yes
21963 else
21964 MYSQL_CFLAGS=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
21965 MYSQL_LIBS=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
21967 mysql_major_version=`$MYSQL_CONFIG $mysql_args --version | \
21968 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21969 mysql_minor_version=`$MYSQL_CONFIG $mysql_args --version | \
21970 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21971 mysql_micro_version=`$MYSQL_CONFIG $mysql_config_args --version | \
21972 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21973 if test "x$enable_mysqltest" = "xyes" ; then
21974 ac_save_CFLAGS="$CFLAGS"
21975 ac_save_LIBS="$LIBS"
21976 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
21977 LIBS="$LIBS $MYSQL_LIBS"
21978 rm -f conf.mysqltest
21979 if test "$cross_compiling" = yes; then
21980 echo $ac_n "cross compiling; assumed OK... $ac_c"
21981 else
21982 cat >conftest.$ac_ext <<_ACEOF
21983 #line $LINENO "configure"
21984 #include "confdefs.h"
21986 #include <stdio.h>
21987 #include <stdlib.h>
21988 #include <string.h>
21989 #include <mysql.h>
21991 char*
21992 my_strdup (char *str)
21994 char *new_str;
21996 if (str)
21998 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
21999 strcpy (new_str, str);
22001 else
22002 new_str = NULL;
22004 return new_str;
22007 int main (int argc, char *argv[])
22009 int major, minor, micro;
22010 char *tmp_version;
22012 /* This hangs on some systems (?)
22013 system ("touch conf.mysqltest");
22015 { FILE *fp = fopen("conf.mysqltest", "a"); if ( fp ) fclose(fp); }
22017 /* HP/UX 9 (%@#!) writes to sscanf strings */
22018 tmp_version = my_strdup("$min_mysql_version");
22019 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22020 printf("%s, bad version string\n", "$min_mysql_version");
22021 exit(1);
22024 if (($mysql_major_version > major) ||
22025 (($mysql_major_version == major) && ($mysql_minor_version > minor)) ||
22026 (($mysql_major_version == major) && ($mysql_minor_version == minor) && ($mysql_micro_version >= micro)))
22028 return 0;
22030 else
22032 printf("\n*** 'mysql_config --version' returned %d.%d.%d, but the minimum version\n", $mysql_major_version, $mysql_minor_version, $mysql_micro_version);
22033 printf("*** of MYSQL required is %d.%d.%d. If mysql_config is correct, then it is\n", major, minor, micro);
22034 printf("*** best to upgrade to the required version.\n");
22035 printf("*** If mysql_config was wrong, set the environment variable MYSQL_CONFIG\n");
22036 printf("*** to point to the correct copy of mysql_config, and remove the file\n");
22037 printf("*** config.cache before re-running configure\n");
22038 return 1;
22043 _ACEOF
22044 rm -f conftest$ac_exeext
22045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22046 (eval $ac_link) 2>&5
22047 ac_status=$?
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22051 (eval $ac_try) 2>&5
22052 ac_status=$?
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); }; }; then
22056 else
22057 echo "$as_me: program exited with status $ac_status" >&5
22058 echo "$as_me: failed program was:" >&5
22059 cat conftest.$ac_ext >&5
22060 ( exit $ac_status )
22061 no_mysql=yes
22063 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22065 CFLAGS="$ac_save_CFLAGS"
22066 LIBS="$ac_save_LIBS"
22069 if test "x$no_mysql" = x ; then
22070 echo "$as_me:$LINENO: result: yes" >&5
22071 echo "${ECHO_T}yes" >&6
22072 MODULE_MYSQL=bin/mysql.so
22073 else
22074 echo "$as_me:$LINENO: result: no" >&5
22075 echo "${ECHO_T}no" >&6
22076 if test "$MYSQL_CONFIG" = "no" ; then
22077 echo "*** The mysql_config script installed by MYSQL could not be found"
22078 echo "*** If MYSQL was installed in PREFIX, make sure PREFIX/bin is in"
22079 echo "*** your path, or set the MYSQL_CONFIG environment variable to the"
22080 echo "*** full path to mysql_config."
22081 else
22082 if test -f conf.mysqltest ; then
22084 else
22085 echo "*** Could not run MYSQL test program, checking why..."
22086 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
22087 LIBS="$LIBS $MYSQL_LIBS"
22088 cat >conftest.$ac_ext <<_ACEOF
22089 #line $LINENO "configure"
22090 #include "confdefs.h"
22092 #include <stdio.h>
22093 #include <mysql.h>
22095 int main(int argc, char *argv[])
22096 { return 0; }
22097 #undef main
22098 #define main K_and_R_C_main
22100 #ifdef F77_DUMMY_MAIN
22101 # ifdef __cplusplus
22102 extern "C"
22103 # endif
22104 int F77_DUMMY_MAIN() { return 1; }
22105 #endif
22107 main ()
22109 return 0;
22111 return 0;
22113 _ACEOF
22114 rm -f conftest.$ac_objext conftest$ac_exeext
22115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22116 (eval $ac_link) 2>&5
22117 ac_status=$?
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); } &&
22120 { ac_try='test -s conftest$ac_exeext'
22121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22122 (eval $ac_try) 2>&5
22123 ac_status=$?
22124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22125 (exit $ac_status); }; }; then
22126 echo "*** The test program compiled, but did not run. This usually means"
22127 echo "*** that the run-time linker is not finding MYSQL or finding the wrong"
22128 echo "*** version of MYSQL. If it is not finding MYSQL, you'll need to set your"
22129 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22130 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22131 echo "*** is required on your system"
22132 echo "***"
22133 echo "*** If you have an old version installed, it is best to remove it, although"
22134 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22135 else
22136 echo "$as_me: failed program was:" >&5
22137 cat conftest.$ac_ext >&5
22138 echo "*** The test program failed to compile or link. See the file config.log for the"
22139 echo "*** exact error that occured. This usually means MYSQL was incorrectly installed"
22140 echo "*** or that you have moved MYSQL since it was installed. In the latter case, you"
22141 echo "*** may want to edit the mysql_config script: $MYSQL_CONFIG"
22143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22144 CFLAGS="$ac_save_CFLAGS"
22145 LIBS="$ac_save_LIBS"
22148 MYSQL_CFLAGS=""
22149 MYSQL_LIBS=""
22150 MODULE_MYSQL=
22154 rm -f conf.mysqltest
22156 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
22159 ########################################################
22160 # Compile with XML support?
22163 # Check whether --with-xml-prefix or --without-xml-prefix was given.
22164 if test "${with_xml_prefix+set}" = set; then
22165 withval="$with_xml_prefix"
22166 xml_config_prefix="$withval"
22167 else
22168 xml_config_prefix=""
22171 # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
22172 if test "${with_xml_exec_prefix+set}" = set; then
22173 withval="$with_xml_exec_prefix"
22174 xml_config_exec_prefix="$withval"
22175 else
22176 xml_config_exec_prefix=""
22178 # Check whether --enable-xmltest or --disable-xmltest was given.
22179 if test "${enable_xmltest+set}" = set; then
22180 enableval="$enable_xmltest"
22182 else
22183 enable_xmltest=yes
22186 if test x$xml_config_exec_prefix != x ; then
22187 xml_config_args="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
22188 if test x${XML2_CONFIG+set} != xset ; then
22189 XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
22192 if test x$xml_config_prefix != x ; then
22193 xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
22194 if test x${XML2_CONFIG+set} != xset ; then
22195 XML2_CONFIG=$xml_config_prefix/bin/xml2-config
22199 # Extract the first word of "xml2-config", so it can be a program name with args.
22200 set dummy xml2-config; ac_word=$2
22201 echo "$as_me:$LINENO: checking for $ac_word" >&5
22202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22203 if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
22204 echo $ECHO_N "(cached) $ECHO_C" >&6
22205 else
22206 case $XML2_CONFIG in
22207 [\\/]* | ?:[\\/]*)
22208 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
22211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22212 for as_dir in $PATH
22214 IFS=$as_save_IFS
22215 test -z "$as_dir" && as_dir=.
22216 for ac_exec_ext in '' $ac_executable_extensions; do
22217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22218 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22220 break 2
22222 done
22223 done
22225 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
22227 esac
22229 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
22231 if test -n "$XML2_CONFIG"; then
22232 echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
22233 echo "${ECHO_T}$XML2_CONFIG" >&6
22234 else
22235 echo "$as_me:$LINENO: result: no" >&5
22236 echo "${ECHO_T}no" >&6
22239 min_xml_version=2.0.0
22240 echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
22241 echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
22242 no_xml=""
22243 if test "$XML2_CONFIG" = "no" ; then
22244 no_xml=yes
22245 else
22246 XML_CFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
22247 XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
22248 xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
22249 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22250 xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
22251 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22252 xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
22253 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22254 if test "x$enable_xmltest" = "xyes" ; then
22255 ac_save_CFLAGS="$CFLAGS"
22256 ac_save_LIBS="$LIBS"
22257 CFLAGS="$CFLAGS $XML_CFLAGS"
22258 LIBS="$XML_LIBS $LIBS"
22259 rm -f conf.xmltest
22260 if test "$cross_compiling" = yes; then
22261 echo $ac_n "cross compiling; assumed OK... $ac_c"
22262 else
22263 cat >conftest.$ac_ext <<_ACEOF
22264 #line $LINENO "configure"
22265 #include "confdefs.h"
22267 #include <stdlib.h>
22268 #include <stdio.h>
22269 #include <string.h>
22270 #include <libxml/xmlversion.h>
22273 main()
22275 int xml_major_version, xml_minor_version, xml_micro_version;
22276 int major, minor, micro;
22277 char *tmp_version;
22279 system("touch conf.xmltest");
22281 /* Capture xml2-config output via autoconf/configure variables */
22282 /* HP/UX 9 (%@#!) writes to sscanf strings */
22283 tmp_version = (char *)strdup("$min_xml_version");
22284 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22285 printf("%s, bad version string from xml2-config\n", "$min_xml_version");
22286 exit(1);
22288 free(tmp_version);
22290 /* Capture the version information from the header files */
22291 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
22292 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
22293 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
22294 exit(1);
22296 free(tmp_version);
22298 /* Compare xml2-config output to the libxml headers */
22299 if ((xml_major_version != $xml_config_major_version) ||
22300 (xml_minor_version != $xml_config_minor_version) ||
22301 (xml_micro_version != $xml_config_micro_version))
22303 printf("*** libxml header files (version %d.%d.%d) do not match\n",
22304 xml_major_version, xml_minor_version, xml_micro_version);
22305 printf("*** xml2-config (version %d.%d.%d)\n",
22306 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
22307 return 1;
22309 /* Compare the headers to the library to make sure we match */
22310 /* Less than ideal -- doesn't provide us with return value feedback,
22311 * only exits if there's a serious mismatch between header and library.
22313 LIBXML_TEST_VERSION;
22315 /* Test that the library is greater than our minimum version */
22316 if ((xml_major_version > major) ||
22317 ((xml_major_version == major) && (xml_minor_version > minor)) ||
22318 ((xml_major_version == major) && (xml_minor_version == minor) &&
22319 (xml_micro_version >= micro)))
22321 return 0;
22323 else
22325 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
22326 xml_major_version, xml_minor_version, xml_micro_version);
22327 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
22328 major, minor, micro);
22329 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
22330 printf("***\n");
22331 printf("*** If you have already installed a sufficiently new version, this error\n");
22332 printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
22333 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22334 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
22335 printf("*** correct copy of xml2-config. (In this case, you will have to\n");
22336 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22337 printf("*** so that the correct libraries are found at run-time))\n");
22339 return 1;
22342 _ACEOF
22343 rm -f conftest$ac_exeext
22344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22345 (eval $ac_link) 2>&5
22346 ac_status=$?
22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22350 (eval $ac_try) 2>&5
22351 ac_status=$?
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); }; }; then
22355 else
22356 echo "$as_me: program exited with status $ac_status" >&5
22357 echo "$as_me: failed program was:" >&5
22358 cat conftest.$ac_ext >&5
22359 ( exit $ac_status )
22360 no_xml=yes
22362 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22364 CFLAGS="$ac_save_CFLAGS"
22365 LIBS="$ac_save_LIBS"
22369 if test "x$no_xml" = x ; then
22370 echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
22371 echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6
22372 MODULE_XML=bin/xml.so
22373 else
22374 echo "$as_me:$LINENO: result: no" >&5
22375 echo "${ECHO_T}no" >&6
22376 if test "$XML2_CONFIG" = "no" ; then
22377 echo "*** The xml2-config script installed by LIBXML could not be found"
22378 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
22379 echo "*** your path, or set the XML2_CONFIG environment variable to the"
22380 echo "*** full path to xml2-config."
22381 else
22382 if test -f conf.xmltest ; then
22384 else
22385 echo "*** Could not run libxml test program, checking why..."
22386 CFLAGS="$CFLAGS $XML_CFLAGS"
22387 LIBS="$LIBS $XML_LIBS"
22388 cat >conftest.$ac_ext <<_ACEOF
22389 #line $LINENO "configure"
22390 #include "confdefs.h"
22392 #include <libxml/xmlversion.h>
22393 #include <stdio.h>
22395 #ifdef F77_DUMMY_MAIN
22396 # ifdef __cplusplus
22397 extern "C"
22398 # endif
22399 int F77_DUMMY_MAIN() { return 1; }
22400 #endif
22402 main ()
22404 LIBXML_TEST_VERSION; return 0;
22406 return 0;
22408 _ACEOF
22409 rm -f conftest.$ac_objext conftest$ac_exeext
22410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22411 (eval $ac_link) 2>&5
22412 ac_status=$?
22413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414 (exit $ac_status); } &&
22415 { ac_try='test -s conftest$ac_exeext'
22416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22417 (eval $ac_try) 2>&5
22418 ac_status=$?
22419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420 (exit $ac_status); }; }; then
22421 echo "*** The test program compiled, but did not run. This usually means"
22422 echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
22423 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
22424 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22425 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22426 echo "*** is required on your system"
22427 echo "***"
22428 echo "*** If you have an old version installed, it is best to remove it, although"
22429 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22430 else
22431 echo "$as_me: failed program was:" >&5
22432 cat conftest.$ac_ext >&5
22433 echo "*** The test program failed to compile or link. See the file config.log for the"
22434 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
22435 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
22436 echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
22438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22439 CFLAGS="$ac_save_CFLAGS"
22440 LIBS="$ac_save_LIBS"
22444 XML_CFLAGS=""
22445 XML_LIBS=""
22446 MODULE_XML=
22450 rm -f conf.xmltest
22452 CFLAGS="$CFLAGS $XML_CFLAGS"
22455 #################################################
22456 # check for automount support
22457 echo "$as_me:$LINENO: checking whether to use automount" >&5
22458 echo $ECHO_N "checking whether to use automount... $ECHO_C" >&6
22460 # Check whether --with-automount or --without-automount was given.
22461 if test "${with_automount+set}" = set; then
22462 withval="$with_automount"
22463 case "$withval" in
22464 yes)
22465 echo "$as_me:$LINENO: result: yes" >&5
22466 echo "${ECHO_T}yes" >&6
22468 cat >>confdefs.h <<\_ACEOF
22469 #define WITH_AUTOMOUNT 1
22470 _ACEOF
22474 echo "$as_me:$LINENO: result: no" >&5
22475 echo "${ECHO_T}no" >&6
22477 esac
22478 else
22479 echo "$as_me:$LINENO: result: no" >&5
22480 echo "${ECHO_T}no" >&6
22484 #################################################
22485 # check for smbmount support
22486 echo "$as_me:$LINENO: checking whether to use smbmount" >&5
22487 echo $ECHO_N "checking whether to use smbmount... $ECHO_C" >&6
22489 # Check whether --with-smbmount or --without-smbmount was given.
22490 if test "${with_smbmount+set}" = set; then
22491 withval="$with_smbmount"
22492 case "$withval" in
22493 yes)
22494 case "$host_os" in
22495 *linux*)
22496 echo "$as_me:$LINENO: result: yes" >&5
22497 echo "${ECHO_T}yes" >&6
22499 cat >>confdefs.h <<\_ACEOF
22500 #define WITH_SMBMOUNT 1
22501 _ACEOF
22503 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbmount bin/smbmnt bin/smbumount"
22506 { { echo "$as_me:$LINENO: error: not on a linux system!" >&5
22507 echo "$as_me: error: not on a linux system!" >&2;}
22508 { (exit 1); exit 1; }; }
22510 esac
22513 echo "$as_me:$LINENO: result: no" >&5
22514 echo "${ECHO_T}no" >&6
22516 esac
22517 else
22518 echo "$as_me:$LINENO: result: no" >&5
22519 echo "${ECHO_T}no" >&6
22524 #################################################
22525 # check for a PAM clear-text auth, accounts, password and session support
22526 with_pam_for_crypt=no
22527 echo "$as_me:$LINENO: checking whether to use PAM" >&5
22528 echo $ECHO_N "checking whether to use PAM... $ECHO_C" >&6
22530 # Check whether --with-pam or --without-pam was given.
22531 if test "${with_pam+set}" = set; then
22532 withval="$with_pam"
22533 case "$withval" in
22534 yes)
22535 echo "$as_me:$LINENO: result: yes" >&5
22536 echo "${ECHO_T}yes" >&6
22538 cat >>confdefs.h <<\_ACEOF
22539 #define WITH_PAM 1
22540 _ACEOF
22542 AUTHLIBS="$AUTHLIBS -lpam"
22543 with_pam_for_crypt=yes
22546 echo "$as_me:$LINENO: result: no" >&5
22547 echo "${ECHO_T}no" >&6
22549 esac
22550 else
22551 echo "$as_me:$LINENO: result: no" >&5
22552 echo "${ECHO_T}no" >&6
22556 # we can't build a pam module if we don't have pam.
22557 echo "$as_me:$LINENO: checking for pam_get_data in -lpam" >&5
22558 echo $ECHO_N "checking for pam_get_data in -lpam... $ECHO_C" >&6
22559 if test "${ac_cv_lib_pam_pam_get_data+set}" = set; then
22560 echo $ECHO_N "(cached) $ECHO_C" >&6
22561 else
22562 ac_check_lib_save_LIBS=$LIBS
22563 LIBS="-lpam $LIBS"
22564 cat >conftest.$ac_ext <<_ACEOF
22565 #line $LINENO "configure"
22566 #include "confdefs.h"
22568 /* Override any gcc2 internal prototype to avoid an error. */
22569 #ifdef __cplusplus
22570 extern "C"
22571 #endif
22572 /* We use char because int might match the return type of a gcc2
22573 builtin and then its argument prototype would still apply. */
22574 char pam_get_data ();
22575 #ifdef F77_DUMMY_MAIN
22576 # ifdef __cplusplus
22577 extern "C"
22578 # endif
22579 int F77_DUMMY_MAIN() { return 1; }
22580 #endif
22582 main ()
22584 pam_get_data ();
22586 return 0;
22588 _ACEOF
22589 rm -f conftest.$ac_objext conftest$ac_exeext
22590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22591 (eval $ac_link) 2>&5
22592 ac_status=$?
22593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594 (exit $ac_status); } &&
22595 { ac_try='test -s conftest$ac_exeext'
22596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22597 (eval $ac_try) 2>&5
22598 ac_status=$?
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); }; }; then
22601 ac_cv_lib_pam_pam_get_data=yes
22602 else
22603 echo "$as_me: failed program was:" >&5
22604 cat conftest.$ac_ext >&5
22605 ac_cv_lib_pam_pam_get_data=no
22607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22608 LIBS=$ac_check_lib_save_LIBS
22610 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_get_data" >&5
22611 echo "${ECHO_T}$ac_cv_lib_pam_pam_get_data" >&6
22612 if test $ac_cv_lib_pam_pam_get_data = yes; then
22614 cat >>confdefs.h <<\_ACEOF
22615 #define HAVE_LIBPAM 1
22616 _ACEOF
22621 #################################################
22622 # check for pam_smbpass support
22623 echo "$as_me:$LINENO: checking whether to use pam_smbpass" >&5
22624 echo $ECHO_N "checking whether to use pam_smbpass... $ECHO_C" >&6
22626 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
22627 if test "${with_pam_smbpass+set}" = set; then
22628 withval="$with_pam_smbpass"
22629 case "$withval" in
22630 yes)
22631 echo "$as_me:$LINENO: result: yes" >&5
22632 echo "${ECHO_T}yes" >&6
22634 # Conditions under which pam_smbpass should not be built.
22636 if test x$PICFLAG = x; then
22637 echo "$as_me:$LINENO: result: No support for PIC code - disabling pam_smbpass" >&5
22638 echo "${ECHO_T}No support for PIC code - disabling pam_smbpass" >&6
22639 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
22640 echo "$as_me:$LINENO: result: No libpam found -- disabling pam_smbpass" >&5
22641 echo "${ECHO_T}No libpam found -- disabling pam_smbpass" >&6
22642 else
22643 SHLIB_PROGS="$SHLIB_PROGS bin/pam_smbpass.so"
22647 echo "$as_me:$LINENO: result: no" >&5
22648 echo "${ECHO_T}no" >&6
22650 esac
22651 else
22652 echo "$as_me:$LINENO: result: no" >&5
22653 echo "${ECHO_T}no" >&6
22658 ###############################################
22659 # test for where we get crypt() from, but only
22660 # if not using PAM
22661 if test x"$with_pam_for_crypt" = x"no"; then
22663 for ac_func in crypt
22665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22666 echo "$as_me:$LINENO: checking for $ac_func" >&5
22667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22668 if eval "test \"\${$as_ac_var+set}\" = set"; then
22669 echo $ECHO_N "(cached) $ECHO_C" >&6
22670 else
22671 cat >conftest.$ac_ext <<_ACEOF
22672 #line $LINENO "configure"
22673 #include "confdefs.h"
22674 /* System header to define __stub macros and hopefully few prototypes,
22675 which can conflict with char $ac_func (); below. */
22676 #include <assert.h>
22677 /* Override any gcc2 internal prototype to avoid an error. */
22678 #ifdef __cplusplus
22679 extern "C"
22680 #endif
22681 /* We use char because int might match the return type of a gcc2
22682 builtin and then its argument prototype would still apply. */
22683 char $ac_func ();
22684 char (*f) ();
22686 #ifdef F77_DUMMY_MAIN
22687 # ifdef __cplusplus
22688 extern "C"
22689 # endif
22690 int F77_DUMMY_MAIN() { return 1; }
22691 #endif
22693 main ()
22695 /* The GNU C library defines this for functions which it implements
22696 to always fail with ENOSYS. Some functions are actually named
22697 something starting with __ and the normal name is an alias. */
22698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22699 choke me
22700 #else
22701 f = $ac_func;
22702 #endif
22705 return 0;
22707 _ACEOF
22708 rm -f conftest.$ac_objext conftest$ac_exeext
22709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22710 (eval $ac_link) 2>&5
22711 ac_status=$?
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); } &&
22714 { ac_try='test -s conftest$ac_exeext'
22715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716 (eval $ac_try) 2>&5
22717 ac_status=$?
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); }; }; then
22720 eval "$as_ac_var=yes"
22721 else
22722 echo "$as_me: failed program was:" >&5
22723 cat conftest.$ac_ext >&5
22724 eval "$as_ac_var=no"
22726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22730 if test `eval echo '${'$as_ac_var'}'` = yes; then
22731 cat >>confdefs.h <<_ACEOF
22732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22733 _ACEOF
22736 done
22738 if test x"$ac_cv_func_crypt" = x"no"; then
22739 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22740 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
22741 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22742 echo $ECHO_N "(cached) $ECHO_C" >&6
22743 else
22744 ac_check_lib_save_LIBS=$LIBS
22745 LIBS="-lcrypt $LIBS"
22746 cat >conftest.$ac_ext <<_ACEOF
22747 #line $LINENO "configure"
22748 #include "confdefs.h"
22750 /* Override any gcc2 internal prototype to avoid an error. */
22751 #ifdef __cplusplus
22752 extern "C"
22753 #endif
22754 /* We use char because int might match the return type of a gcc2
22755 builtin and then its argument prototype would still apply. */
22756 char crypt ();
22757 #ifdef F77_DUMMY_MAIN
22758 # ifdef __cplusplus
22759 extern "C"
22760 # endif
22761 int F77_DUMMY_MAIN() { return 1; }
22762 #endif
22764 main ()
22766 crypt ();
22768 return 0;
22770 _ACEOF
22771 rm -f conftest.$ac_objext conftest$ac_exeext
22772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22773 (eval $ac_link) 2>&5
22774 ac_status=$?
22775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); } &&
22777 { ac_try='test -s conftest$ac_exeext'
22778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22779 (eval $ac_try) 2>&5
22780 ac_status=$?
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); }; }; then
22783 ac_cv_lib_crypt_crypt=yes
22784 else
22785 echo "$as_me: failed program was:" >&5
22786 cat conftest.$ac_ext >&5
22787 ac_cv_lib_crypt_crypt=no
22789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22790 LIBS=$ac_check_lib_save_LIBS
22792 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22793 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
22794 if test $ac_cv_lib_crypt_crypt = yes; then
22795 AUTHLIBS="$AUTHLIBS -lcrypt";
22797 cat >>confdefs.h <<\_ACEOF
22798 #define HAVE_CRYPT 1
22799 _ACEOF
22807 ## moved after the check for -lcrypt in order to
22808 ## ensure that the necessary libraries are included
22809 ## check checking for truncated salt. Wrapped by the
22810 ## $with_pam_for_crypt variable as above --jerry
22812 if test $with_pam_for_crypt = no; then
22813 echo "$as_me:$LINENO: checking for a crypt that needs truncated salt" >&5
22814 echo $ECHO_N "checking for a crypt that needs truncated salt... $ECHO_C" >&6
22815 if test "${samba_cv_HAVE_TRUNCATED_SALT+set}" = set; then
22816 echo $ECHO_N "(cached) $ECHO_C" >&6
22817 else
22819 crypt_LIBS="$LIBS"
22820 LIBS="$AUTHLIBS $LIBS"
22821 if test "$cross_compiling" = yes; then
22822 samba_cv_HAVE_TRUNCATED_SALT=cross
22823 else
22824 cat >conftest.$ac_ext <<_ACEOF
22825 #line $LINENO "configure"
22826 #include "confdefs.h"
22827 #include "${srcdir-.}/tests/crypttest.c"
22828 _ACEOF
22829 rm -f conftest$ac_exeext
22830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22831 (eval $ac_link) 2>&5
22832 ac_status=$?
22833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22836 (eval $ac_try) 2>&5
22837 ac_status=$?
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); }; }; then
22840 samba_cv_HAVE_TRUNCATED_SALT=no
22841 else
22842 echo "$as_me: program exited with status $ac_status" >&5
22843 echo "$as_me: failed program was:" >&5
22844 cat conftest.$ac_ext >&5
22845 ( exit $ac_status )
22846 samba_cv_HAVE_TRUNCATED_SALT=yes
22848 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22850 LIBS="$crypt_LIBS"
22852 echo "$as_me:$LINENO: result: $samba_cv_HAVE_TRUNCATED_SALT" >&5
22853 echo "${ECHO_T}$samba_cv_HAVE_TRUNCATED_SALT" >&6
22854 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
22856 cat >>confdefs.h <<\_ACEOF
22857 #define HAVE_TRUNCATED_SALT 1
22858 _ACEOF
22863 # New experimental SAM system
22865 echo "$as_me:$LINENO: checking whether to build the new (experimental) SAM database" >&5
22866 echo $ECHO_N "checking whether to build the new (experimental) SAM database... $ECHO_C" >&6
22868 # Check whether --with-sam or --without-sam was given.
22869 if test "${with_sam+set}" = set; then
22870 withval="$with_sam"
22871 case "$withval" in
22872 yes)
22873 echo "$as_me:$LINENO: result: yes" >&5
22874 echo "${ECHO_T}yes" >&6
22876 cat >>confdefs.h <<\_ACEOF
22877 #define WITH_SAM 1
22878 _ACEOF
22882 echo "$as_me:$LINENO: result: no" >&5
22883 echo "${ECHO_T}no" >&6
22885 esac
22886 else
22887 echo "$as_me:$LINENO: result: no" >&5
22888 echo "${ECHO_T}no" >&6
22893 ########################################################################################
22895 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
22897 ########################################################################################
22899 #################################################
22900 # check for a LDAP password database configuration backwards compatibility
22901 echo "$as_me:$LINENO: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
22902 echo $ECHO_N "checking whether to use LDAP SAM 2.2 compatible configuration... $ECHO_C" >&6
22904 # Check whether --with-ldapsam or --without-ldapsam was given.
22905 if test "${with_ldapsam+set}" = set; then
22906 withval="$with_ldapsam"
22907 case "$withval" in
22908 yes)
22909 echo "$as_me:$LINENO: result: yes" >&5
22910 echo "${ECHO_T}yes" >&6
22912 cat >>confdefs.h <<\_ACEOF
22913 #define WITH_LDAP_SAMCONFIG 1
22914 _ACEOF
22918 echo "$as_me:$LINENO: result: no" >&5
22919 echo "${ECHO_T}no" >&6
22921 esac
22922 else
22923 echo "$as_me:$LINENO: result: no" >&5
22924 echo "${ECHO_T}no" >&6
22928 #################################################
22929 # check for a TDB password database
22930 echo "$as_me:$LINENO: checking whether to use TDB SAM database" >&5
22931 echo $ECHO_N "checking whether to use TDB SAM database... $ECHO_C" >&6
22933 # Check whether --with-tdbsam or --without-tdbsam was given.
22934 if test "${with_tdbsam+set}" = set; then
22935 withval="$with_tdbsam"
22936 case "$withval" in
22937 yes)
22938 echo "$as_me:$LINENO: result: yes" >&5
22939 echo "${ECHO_T}yes" >&6
22941 cat >>confdefs.h <<\_ACEOF
22942 #define WITH_TDB_SAM 1
22943 _ACEOF
22947 echo "$as_me:$LINENO: result: no" >&5
22948 echo "${ECHO_T}no" >&6
22950 esac
22951 else
22952 echo "$as_me:$LINENO: result: no" >&5
22953 echo "${ECHO_T}no" >&6
22957 #################################################
22958 # check for a NISPLUS password database
22959 echo "$as_me:$LINENO: checking whether to use NISPLUS SAM database" >&5
22960 echo $ECHO_N "checking whether to use NISPLUS SAM database... $ECHO_C" >&6
22962 # Check whether --with-nisplussam or --without-nisplussam was given.
22963 if test "${with_nisplussam+set}" = set; then
22964 withval="$with_nisplussam"
22965 case "$withval" in
22966 yes)
22967 echo "$as_me:$LINENO: result: yes" >&5
22968 echo "${ECHO_T}yes" >&6
22970 cat >>confdefs.h <<\_ACEOF
22971 #define WITH_NISPLUS_SAM 1
22972 _ACEOF
22976 echo "$as_me:$LINENO: result: no" >&5
22977 echo "${ECHO_T}no" >&6
22979 esac
22980 else
22981 echo "$as_me:$LINENO: result: no" >&5
22982 echo "${ECHO_T}no" >&6
22986 ########################################################################################
22988 ## END OF TESTS FOR SAM BACKENDS.
22990 ########################################################################################
22992 #################################################
22993 # check for a NISPLUS_HOME support
22994 echo "$as_me:$LINENO: checking whether to use NISPLUS_HOME" >&5
22995 echo $ECHO_N "checking whether to use NISPLUS_HOME... $ECHO_C" >&6
22997 # Check whether --with-nisplus-home or --without-nisplus-home was given.
22998 if test "${with_nisplus_home+set}" = set; then
22999 withval="$with_nisplus_home"
23000 case "$withval" in
23001 yes)
23002 echo "$as_me:$LINENO: result: yes" >&5
23003 echo "${ECHO_T}yes" >&6
23005 cat >>confdefs.h <<\_ACEOF
23006 #define WITH_NISPLUS_HOME 1
23007 _ACEOF
23011 echo "$as_me:$LINENO: result: no" >&5
23012 echo "${ECHO_T}no" >&6
23014 esac
23015 else
23016 echo "$as_me:$LINENO: result: no" >&5
23017 echo "${ECHO_T}no" >&6
23021 #################################################
23022 # check for syslog logging
23023 echo "$as_me:$LINENO: checking whether to use syslog logging" >&5
23024 echo $ECHO_N "checking whether to use syslog logging... $ECHO_C" >&6
23026 # Check whether --with-syslog or --without-syslog was given.
23027 if test "${with_syslog+set}" = set; then
23028 withval="$with_syslog"
23029 case "$withval" in
23030 yes)
23031 echo "$as_me:$LINENO: result: yes" >&5
23032 echo "${ECHO_T}yes" >&6
23034 cat >>confdefs.h <<\_ACEOF
23035 #define WITH_SYSLOG 1
23036 _ACEOF
23040 echo "$as_me:$LINENO: result: no" >&5
23041 echo "${ECHO_T}no" >&6
23043 esac
23044 else
23045 echo "$as_me:$LINENO: result: no" >&5
23046 echo "${ECHO_T}no" >&6
23050 #################################################
23051 # check for a shared memory profiling support
23052 echo "$as_me:$LINENO: checking whether to use profiling" >&5
23053 echo $ECHO_N "checking whether to use profiling... $ECHO_C" >&6
23055 # Check whether --with-profiling-data or --without-profiling-data was given.
23056 if test "${with_profiling_data+set}" = set; then
23057 withval="$with_profiling_data"
23058 case "$withval" in
23059 yes)
23060 echo "$as_me:$LINENO: result: yes" >&5
23061 echo "${ECHO_T}yes" >&6
23063 cat >>confdefs.h <<\_ACEOF
23064 #define WITH_PROFILE 1
23065 _ACEOF
23069 echo "$as_me:$LINENO: result: no" >&5
23070 echo "${ECHO_T}no" >&6
23072 esac
23073 else
23074 echo "$as_me:$LINENO: result: no" >&5
23075 echo "${ECHO_T}no" >&6
23080 #################################################
23081 # check for experimental disk-quotas support
23082 QUOTAOBJS=smbd/noquotas.o
23084 echo "$as_me:$LINENO: checking whether to support disk-quotas" >&5
23085 echo $ECHO_N "checking whether to support disk-quotas... $ECHO_C" >&6
23087 # Check whether --with-quotas or --without-quotas was given.
23088 if test "${with_quotas+set}" = set; then
23089 withval="$with_quotas"
23090 case "$withval" in
23091 yes)
23092 echo "$as_me:$LINENO: result: yes" >&5
23093 echo "${ECHO_T}yes" >&6
23094 case "$host_os" in
23095 *linux*)
23096 # Check for kernel 2.4.x quota braindamage...
23097 echo "$as_me:$LINENO: checking for linux 2.4.x quota braindamage.." >&5
23098 echo $ECHO_N "checking for linux 2.4.x quota braindamage..... $ECHO_C" >&6
23099 if test "${samba_cv_linux_2_4_quota_braindamage+set}" = set; then
23100 echo $ECHO_N "(cached) $ECHO_C" >&6
23101 else
23103 cat >conftest.$ac_ext <<_ACEOF
23104 #line $LINENO "configure"
23105 #include "confdefs.h"
23106 #include <stdio.h>
23107 #include <sys/types.h>
23108 #include <asm/types.h>
23109 #include <linux/quota.h>
23110 #include <mntent.h>
23111 #include <linux/unistd.h>
23112 #ifdef F77_DUMMY_MAIN
23113 # ifdef __cplusplus
23114 extern "C"
23115 # endif
23116 int F77_DUMMY_MAIN() { return 1; }
23117 #endif
23119 main ()
23121 struct mem_dqblk D;
23123 return 0;
23125 _ACEOF
23126 rm -f conftest.$ac_objext
23127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23128 (eval $ac_compile) 2>&5
23129 ac_status=$?
23130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); } &&
23132 { ac_try='test -s conftest.$ac_objext'
23133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23134 (eval $ac_try) 2>&5
23135 ac_status=$?
23136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137 (exit $ac_status); }; }; then
23138 samba_cv_linux_2_4_quota_braindamage=yes
23139 else
23140 echo "$as_me: failed program was:" >&5
23141 cat conftest.$ac_ext >&5
23142 samba_cv_linux_2_4_quota_braindamage=no
23144 rm -f conftest.$ac_objext conftest.$ac_ext
23146 echo "$as_me:$LINENO: result: $samba_cv_linux_2_4_quota_braindamage" >&5
23147 echo "${ECHO_T}$samba_cv_linux_2_4_quota_braindamage" >&6
23148 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
23150 cat >>confdefs.h <<\_ACEOF
23151 #define LINUX_QUOTAS_2 1
23152 _ACEOF
23154 else
23156 cat >>confdefs.h <<\_ACEOF
23157 #define LINUX_QUOTAS_1 1
23158 _ACEOF
23164 esac
23165 QUOTAOBJS=smbd/quotas.o
23167 cat >>confdefs.h <<\_ACEOF
23168 #define WITH_QUOTAS 1
23169 _ACEOF
23173 echo "$as_me:$LINENO: result: no" >&5
23174 echo "${ECHO_T}no" >&6
23176 esac
23177 else
23178 echo "$as_me:$LINENO: result: no" >&5
23179 echo "${ECHO_T}no" >&6
23184 #################################################
23185 # check for experimental utmp accounting
23187 echo "$as_me:$LINENO: checking whether to support utmp accounting" >&5
23188 echo $ECHO_N "checking whether to support utmp accounting... $ECHO_C" >&6
23190 # Check whether --with-utmp or --without-utmp was given.
23191 if test "${with_utmp+set}" = set; then
23192 withval="$with_utmp"
23193 case "$withval" in
23194 yes)
23195 echo "$as_me:$LINENO: result: yes" >&5
23196 echo "${ECHO_T}yes" >&6
23198 cat >>confdefs.h <<\_ACEOF
23199 #define WITH_UTMP 1
23200 _ACEOF
23204 echo "$as_me:$LINENO: result: no" >&5
23205 echo "${ECHO_T}no" >&6
23207 esac
23208 else
23209 echo "$as_me:$LINENO: result: no" >&5
23210 echo "${ECHO_T}no" >&6
23214 #################################################
23215 # choose native language(s) of man pages
23216 echo "$as_me:$LINENO: checking chosen man pages' language(s)" >&5
23217 echo $ECHO_N "checking chosen man pages' language(s)... $ECHO_C" >&6
23219 # Check whether --with-manpages-langs or --without-manpages-langs was given.
23220 if test "${with_manpages_langs+set}" = set; then
23221 withval="$with_manpages_langs"
23222 case "$withval" in
23223 yes|no)
23224 { echo "$as_me:$LINENO: WARNING: --with-manpages-langs called without argument - will use default" >&5
23225 echo "$as_me: WARNING: --with-manpages-langs called without argument - will use default" >&2;}
23226 manlangs="en"
23229 manlangs="$withval"
23231 esac
23233 echo "$as_me:$LINENO: result: $manlangs" >&5
23234 echo "${ECHO_T}$manlangs" >&6
23235 manlangs=`echo $manlangs | sed "s/,/ /g"` # replacing commas with spaces to produce a list
23237 else
23238 manlangs="en"
23239 echo "$as_me:$LINENO: result: $manlangs" >&5
23240 echo "${ECHO_T}$manlangs" >&6
23245 #################################################
23246 # should we build libsmbclient?
23248 LIBSMBCLIENT_SHARED=
23249 LIBSMBCLIENT=
23250 echo "$as_me:$LINENO: checking whether to build the libsmbclient shared library" >&5
23251 echo $ECHO_N "checking whether to build the libsmbclient shared library... $ECHO_C" >&6
23253 # Check whether --with-libsmbclient or --without-libsmbclient was given.
23254 if test "${with_libsmbclient+set}" = set; then
23255 withval="$with_libsmbclient"
23256 case "$withval" in
23258 echo "$as_me:$LINENO: result: no" >&5
23259 echo "${ECHO_T}no" >&6
23262 if test $BLDSHARED = true; then
23263 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
23264 LIBSMBCLIENT=libsmbclient
23265 echo "$as_me:$LINENO: result: yes" >&5
23266 echo "${ECHO_T}yes" >&6
23267 else
23268 echo "$as_me:$LINENO: result: no shared library support" >&5
23269 echo "${ECHO_T}no shared library support" >&6
23272 esac
23273 else
23274 echo "$as_me:$LINENO: result: yes" >&5
23275 echo "${ECHO_T}yes" >&6
23280 #################################################
23281 # these tests are taken from the GNU fileutils package
23282 { echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
23283 echo "$as_me: checking how to get filesystem space usage..." >&6;}
23284 space=no
23286 # Test for statvfs64.
23287 if test $space = no; then
23288 # SVR4
23289 echo "$as_me:$LINENO: checking statvfs64 function (SVR4)" >&5
23290 echo $ECHO_N "checking statvfs64 function (SVR4)... $ECHO_C" >&6
23291 if test "${fu_cv_sys_stat_statvfs64+set}" = set; then
23292 echo $ECHO_N "(cached) $ECHO_C" >&6
23293 else
23294 if test "$cross_compiling" = yes; then
23295 fu_cv_sys_stat_statvfs64=cross
23296 else
23297 cat >conftest.$ac_ext <<_ACEOF
23298 #line $LINENO "configure"
23299 #include "confdefs.h"
23301 #if defined(HAVE_UNISTD_H)
23302 #include <unistd.h>
23303 #endif
23304 #include <sys/types.h>
23305 #include <sys/statvfs.h>
23306 main ()
23308 struct statvfs64 fsd;
23309 exit (statvfs64 (".", &fsd));
23311 _ACEOF
23312 rm -f conftest$ac_exeext
23313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23314 (eval $ac_link) 2>&5
23315 ac_status=$?
23316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23319 (eval $ac_try) 2>&5
23320 ac_status=$?
23321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322 (exit $ac_status); }; }; then
23323 fu_cv_sys_stat_statvfs64=yes
23324 else
23325 echo "$as_me: program exited with status $ac_status" >&5
23326 echo "$as_me: failed program was:" >&5
23327 cat conftest.$ac_ext >&5
23328 ( exit $ac_status )
23329 fu_cv_sys_stat_statvfs64=no
23331 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23334 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs64" >&5
23335 echo "${ECHO_T}$fu_cv_sys_stat_statvfs64" >&6
23336 if test $fu_cv_sys_stat_statvfs64 = yes; then
23337 space=yes
23339 cat >>confdefs.h <<\_ACEOF
23340 #define STAT_STATVFS64 1
23341 _ACEOF
23346 # Perform only the link test since it seems there are no variants of the
23347 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
23348 # because that got a false positive on SCO OSR5. Adding the declaration
23349 # of a `struct statvfs' causes this test to fail (as it should) on such
23350 # systems. That system is reported to work fine with STAT_STATFS4 which
23351 # is what it gets when this test fails.
23352 if test $space = no; then
23353 # SVR4
23354 echo "$as_me:$LINENO: checking statvfs function (SVR4)" >&5
23355 echo $ECHO_N "checking statvfs function (SVR4)... $ECHO_C" >&6
23356 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
23357 echo $ECHO_N "(cached) $ECHO_C" >&6
23358 else
23359 cat >conftest.$ac_ext <<_ACEOF
23360 #line $LINENO "configure"
23361 #include "confdefs.h"
23362 #include <sys/types.h>
23363 #include <sys/statvfs.h>
23364 #ifdef F77_DUMMY_MAIN
23365 # ifdef __cplusplus
23366 extern "C"
23367 # endif
23368 int F77_DUMMY_MAIN() { return 1; }
23369 #endif
23371 main ()
23373 struct statvfs fsd; statvfs (0, &fsd);
23375 return 0;
23377 _ACEOF
23378 rm -f conftest.$ac_objext conftest$ac_exeext
23379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23380 (eval $ac_link) 2>&5
23381 ac_status=$?
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); } &&
23384 { ac_try='test -s conftest$ac_exeext'
23385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386 (eval $ac_try) 2>&5
23387 ac_status=$?
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); }; }; then
23390 fu_cv_sys_stat_statvfs=yes
23391 else
23392 echo "$as_me: failed program was:" >&5
23393 cat conftest.$ac_ext >&5
23394 fu_cv_sys_stat_statvfs=no
23396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23398 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
23399 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
23400 if test $fu_cv_sys_stat_statvfs = yes; then
23401 space=yes
23403 cat >>confdefs.h <<\_ACEOF
23404 #define STAT_STATVFS 1
23405 _ACEOF
23410 if test $space = no; then
23411 # DEC Alpha running OSF/1
23412 echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
23413 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
23414 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
23415 echo $ECHO_N "(cached) $ECHO_C" >&6
23416 else
23417 if test "$cross_compiling" = yes; then
23418 fu_cv_sys_stat_statfs3_osf1=no
23419 else
23420 cat >conftest.$ac_ext <<_ACEOF
23421 #line $LINENO "configure"
23422 #include "confdefs.h"
23424 #include <sys/param.h>
23425 #include <sys/types.h>
23426 #include <sys/mount.h>
23427 main ()
23429 struct statfs fsd;
23430 fsd.f_fsize = 0;
23431 exit (statfs (".", &fsd, sizeof (struct statfs)));
23433 _ACEOF
23434 rm -f conftest$ac_exeext
23435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23436 (eval $ac_link) 2>&5
23437 ac_status=$?
23438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23441 (eval $ac_try) 2>&5
23442 ac_status=$?
23443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444 (exit $ac_status); }; }; then
23445 fu_cv_sys_stat_statfs3_osf1=yes
23446 else
23447 echo "$as_me: program exited with status $ac_status" >&5
23448 echo "$as_me: failed program was:" >&5
23449 cat conftest.$ac_ext >&5
23450 ( exit $ac_status )
23451 fu_cv_sys_stat_statfs3_osf1=no
23453 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23457 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
23458 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
23459 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
23460 space=yes
23462 cat >>confdefs.h <<\_ACEOF
23463 #define STAT_STATFS3_OSF1 1
23464 _ACEOF
23469 if test $space = no; then
23470 # AIX
23471 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
23472 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
23473 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
23474 echo $ECHO_N "(cached) $ECHO_C" >&6
23475 else
23476 if test "$cross_compiling" = yes; then
23477 fu_cv_sys_stat_statfs2_bsize=no
23478 else
23479 cat >conftest.$ac_ext <<_ACEOF
23480 #line $LINENO "configure"
23481 #include "confdefs.h"
23483 #ifdef HAVE_SYS_PARAM_H
23484 #include <sys/param.h>
23485 #endif
23486 #ifdef HAVE_SYS_MOUNT_H
23487 #include <sys/mount.h>
23488 #endif
23489 #ifdef HAVE_SYS_VFS_H
23490 #include <sys/vfs.h>
23491 #endif
23492 main ()
23494 struct statfs fsd;
23495 fsd.f_bsize = 0;
23496 exit (statfs (".", &fsd));
23498 _ACEOF
23499 rm -f conftest$ac_exeext
23500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23501 (eval $ac_link) 2>&5
23502 ac_status=$?
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506 (eval $ac_try) 2>&5
23507 ac_status=$?
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); }; }; then
23510 fu_cv_sys_stat_statfs2_bsize=yes
23511 else
23512 echo "$as_me: program exited with status $ac_status" >&5
23513 echo "$as_me: failed program was:" >&5
23514 cat conftest.$ac_ext >&5
23515 ( exit $ac_status )
23516 fu_cv_sys_stat_statfs2_bsize=no
23518 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23522 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
23523 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
23524 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
23525 space=yes
23527 cat >>confdefs.h <<\_ACEOF
23528 #define STAT_STATFS2_BSIZE 1
23529 _ACEOF
23534 if test $space = no; then
23535 # SVR3
23536 echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
23537 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
23538 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
23539 echo $ECHO_N "(cached) $ECHO_C" >&6
23540 else
23541 if test "$cross_compiling" = yes; then
23542 fu_cv_sys_stat_statfs4=no
23543 else
23544 cat >conftest.$ac_ext <<_ACEOF
23545 #line $LINENO "configure"
23546 #include "confdefs.h"
23547 #include <sys/types.h>
23548 #include <sys/statfs.h>
23549 main ()
23551 struct statfs fsd;
23552 exit (statfs (".", &fsd, sizeof fsd, 0));
23554 _ACEOF
23555 rm -f conftest$ac_exeext
23556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23557 (eval $ac_link) 2>&5
23558 ac_status=$?
23559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23562 (eval $ac_try) 2>&5
23563 ac_status=$?
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); }; }; then
23566 fu_cv_sys_stat_statfs4=yes
23567 else
23568 echo "$as_me: program exited with status $ac_status" >&5
23569 echo "$as_me: failed program was:" >&5
23570 cat conftest.$ac_ext >&5
23571 ( exit $ac_status )
23572 fu_cv_sys_stat_statfs4=no
23574 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23578 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
23579 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
23580 if test $fu_cv_sys_stat_statfs4 = yes; then
23581 space=yes
23583 cat >>confdefs.h <<\_ACEOF
23584 #define STAT_STATFS4 1
23585 _ACEOF
23590 if test $space = no; then
23591 # 4.4BSD and NetBSD
23592 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
23593 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
23594 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
23595 echo $ECHO_N "(cached) $ECHO_C" >&6
23596 else
23597 if test "$cross_compiling" = yes; then
23598 fu_cv_sys_stat_statfs2_fsize=no
23599 else
23600 cat >conftest.$ac_ext <<_ACEOF
23601 #line $LINENO "configure"
23602 #include "confdefs.h"
23603 #include <sys/types.h>
23604 #ifdef HAVE_SYS_PARAM_H
23605 #include <sys/param.h>
23606 #endif
23607 #ifdef HAVE_SYS_MOUNT_H
23608 #include <sys/mount.h>
23609 #endif
23610 main ()
23612 struct statfs fsd;
23613 fsd.f_fsize = 0;
23614 exit (statfs (".", &fsd));
23616 _ACEOF
23617 rm -f conftest$ac_exeext
23618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23619 (eval $ac_link) 2>&5
23620 ac_status=$?
23621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23624 (eval $ac_try) 2>&5
23625 ac_status=$?
23626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); }; }; then
23628 fu_cv_sys_stat_statfs2_fsize=yes
23629 else
23630 echo "$as_me: program exited with status $ac_status" >&5
23631 echo "$as_me: failed program was:" >&5
23632 cat conftest.$ac_ext >&5
23633 ( exit $ac_status )
23634 fu_cv_sys_stat_statfs2_fsize=no
23636 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23640 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
23641 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
23642 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
23643 space=yes
23645 cat >>confdefs.h <<\_ACEOF
23646 #define STAT_STATFS2_FSIZE 1
23647 _ACEOF
23652 if test $space = no; then
23653 # Ultrix
23654 echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
23655 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
23656 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
23657 echo $ECHO_N "(cached) $ECHO_C" >&6
23658 else
23659 if test "$cross_compiling" = yes; then
23660 fu_cv_sys_stat_fs_data=no
23661 else
23662 cat >conftest.$ac_ext <<_ACEOF
23663 #line $LINENO "configure"
23664 #include "confdefs.h"
23665 #include <sys/types.h>
23666 #ifdef HAVE_SYS_PARAM_H
23667 #include <sys/param.h>
23668 #endif
23669 #ifdef HAVE_SYS_MOUNT_H
23670 #include <sys/mount.h>
23671 #endif
23672 #ifdef HAVE_SYS_FS_TYPES_H
23673 #include <sys/fs_types.h>
23674 #endif
23675 main ()
23677 struct fs_data fsd;
23678 /* Ultrix's statfs returns 1 for success,
23679 0 for not mounted, -1 for failure. */
23680 exit (statfs (".", &fsd) != 1);
23682 _ACEOF
23683 rm -f conftest$ac_exeext
23684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23685 (eval $ac_link) 2>&5
23686 ac_status=$?
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23690 (eval $ac_try) 2>&5
23691 ac_status=$?
23692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693 (exit $ac_status); }; }; then
23694 fu_cv_sys_stat_fs_data=yes
23695 else
23696 echo "$as_me: program exited with status $ac_status" >&5
23697 echo "$as_me: failed program was:" >&5
23698 cat conftest.$ac_ext >&5
23699 ( exit $ac_status )
23700 fu_cv_sys_stat_fs_data=no
23702 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23706 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
23707 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
23708 if test $fu_cv_sys_stat_fs_data = yes; then
23709 space=yes
23711 cat >>confdefs.h <<\_ACEOF
23712 #define STAT_STATFS2_FS_DATA 1
23713 _ACEOF
23719 # As a gating factor for large file support, in order to
23720 # use <4GB files we must have the following minimal support
23721 # available.
23722 # long long, and a 64 bit off_t or off64_t.
23723 # If we don't have all of these then disable large
23724 # file support.
23726 echo "$as_me:$LINENO: checking if large file support can be enabled" >&5
23727 echo $ECHO_N "checking if large file support can be enabled... $ECHO_C" >&6
23728 cat >conftest.$ac_ext <<_ACEOF
23729 #line $LINENO "configure"
23730 #include "confdefs.h"
23732 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
23733 #include <sys/types.h>
23734 #else
23735 __COMPILE_ERROR_
23736 #endif
23738 #ifdef F77_DUMMY_MAIN
23739 # ifdef __cplusplus
23740 extern "C"
23741 # endif
23742 int F77_DUMMY_MAIN() { return 1; }
23743 #endif
23745 main ()
23747 int i
23749 return 0;
23751 _ACEOF
23752 rm -f conftest.$ac_objext
23753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23754 (eval $ac_compile) 2>&5
23755 ac_status=$?
23756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); } &&
23758 { ac_try='test -s conftest.$ac_objext'
23759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23760 (eval $ac_try) 2>&5
23761 ac_status=$?
23762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763 (exit $ac_status); }; }; then
23764 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
23765 else
23766 echo "$as_me: failed program was:" >&5
23767 cat conftest.$ac_ext >&5
23768 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
23770 rm -f conftest.$ac_objext conftest.$ac_ext
23771 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
23773 cat >>confdefs.h <<\_ACEOF
23774 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
23775 _ACEOF
23778 echo "$as_me:$LINENO: result: $samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&5
23779 echo "${ECHO_T}$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&6
23782 # Check whether --with-spinlocks or --without-spinlocks was given.
23783 if test "${with_spinlocks+set}" = set; then
23784 withval="$with_spinlocks"
23787 if test "x$with_spinlocks" = "xyes"; then
23789 cat >>confdefs.h <<\_ACEOF
23790 #define USE_SPINLOCKS 1
23791 _ACEOF
23794 case "$host_cpu" in
23795 sparc)
23797 cat >>confdefs.h <<\_ACEOF
23798 #define SPARC_SPINLOCKS 1
23799 _ACEOF
23803 i386|i486|i586|i686)
23805 cat >>confdefs.h <<\_ACEOF
23806 #define INTEL_SPINLOCKS 1
23807 _ACEOF
23811 mips)
23813 cat >>confdefs.h <<\_ACEOF
23814 #define MIPS_SPINLOCKS 1
23815 _ACEOF
23819 powerpc)
23821 cat >>confdefs.h <<\_ACEOF
23822 #define POWERPC_SPINLOCKS 1
23823 _ACEOF
23826 esac
23829 #################################################
23830 # check for ACL support
23832 echo "$as_me:$LINENO: checking whether to support ACLs" >&5
23833 echo $ECHO_N "checking whether to support ACLs... $ECHO_C" >&6
23835 # Check whether --with-acl-support or --without-acl-support was given.
23836 if test "${with_acl_support+set}" = set; then
23837 withval="$with_acl_support"
23838 case "$withval" in
23839 yes)
23841 case "$host_os" in
23842 *sysv5*)
23843 echo "$as_me:$LINENO: result: Using UnixWare ACLs" >&5
23844 echo "${ECHO_T}Using UnixWare ACLs" >&6
23846 cat >>confdefs.h <<\_ACEOF
23847 #define HAVE_UNIXWARE_ACLS 1
23848 _ACEOF
23851 *solaris*)
23852 echo "$as_me:$LINENO: result: Using solaris ACLs" >&5
23853 echo "${ECHO_T}Using solaris ACLs" >&6
23855 cat >>confdefs.h <<\_ACEOF
23856 #define HAVE_SOLARIS_ACLS 1
23857 _ACEOF
23860 *hpux*)
23861 echo "$as_me:$LINENO: result: Using HPUX ACLs" >&5
23862 echo "${ECHO_T}Using HPUX ACLs" >&6
23864 cat >>confdefs.h <<\_ACEOF
23865 #define HAVE_HPUX_ACLS 1
23866 _ACEOF
23869 *irix*)
23870 echo "$as_me:$LINENO: result: Using IRIX ACLs" >&5
23871 echo "${ECHO_T}Using IRIX ACLs" >&6
23873 cat >>confdefs.h <<\_ACEOF
23874 #define HAVE_IRIX_ACLS 1
23875 _ACEOF
23878 *aix*)
23879 echo "$as_me:$LINENO: result: Using AIX ACLs" >&5
23880 echo "${ECHO_T}Using AIX ACLs" >&6
23882 cat >>confdefs.h <<\_ACEOF
23883 #define HAVE_AIX_ACLS 1
23884 _ACEOF
23887 *osf*)
23888 echo "$as_me:$LINENO: result: Using Tru64 ACLs" >&5
23889 echo "${ECHO_T}Using Tru64 ACLs" >&6
23891 cat >>confdefs.h <<\_ACEOF
23892 #define HAVE_TRU64_ACLS 1
23893 _ACEOF
23895 LIBS="$LIBS -lpacl"
23899 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
23900 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
23901 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
23902 echo $ECHO_N "(cached) $ECHO_C" >&6
23903 else
23904 ac_check_lib_save_LIBS=$LIBS
23905 LIBS="-lacl $LIBS"
23906 cat >conftest.$ac_ext <<_ACEOF
23907 #line $LINENO "configure"
23908 #include "confdefs.h"
23910 /* Override any gcc2 internal prototype to avoid an error. */
23911 #ifdef __cplusplus
23912 extern "C"
23913 #endif
23914 /* We use char because int might match the return type of a gcc2
23915 builtin and then its argument prototype would still apply. */
23916 char acl_get_file ();
23917 #ifdef F77_DUMMY_MAIN
23918 # ifdef __cplusplus
23919 extern "C"
23920 # endif
23921 int F77_DUMMY_MAIN() { return 1; }
23922 #endif
23924 main ()
23926 acl_get_file ();
23928 return 0;
23930 _ACEOF
23931 rm -f conftest.$ac_objext conftest$ac_exeext
23932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23933 (eval $ac_link) 2>&5
23934 ac_status=$?
23935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936 (exit $ac_status); } &&
23937 { ac_try='test -s conftest$ac_exeext'
23938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23939 (eval $ac_try) 2>&5
23940 ac_status=$?
23941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); }; }; then
23943 ac_cv_lib_acl_acl_get_file=yes
23944 else
23945 echo "$as_me: failed program was:" >&5
23946 cat conftest.$ac_ext >&5
23947 ac_cv_lib_acl_acl_get_file=no
23949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23950 LIBS=$ac_check_lib_save_LIBS
23952 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
23953 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
23954 if test $ac_cv_lib_acl_acl_get_file = yes; then
23955 cat >>confdefs.h <<_ACEOF
23956 #define HAVE_LIBACL 1
23957 _ACEOF
23959 LIBS="-lacl $LIBS"
23963 echo "$as_me:$LINENO: checking for ACL support" >&5
23964 echo $ECHO_N "checking for ACL support... $ECHO_C" >&6
23965 if test "${samba_cv_HAVE_POSIX_ACLS+set}" = set; then
23966 echo $ECHO_N "(cached) $ECHO_C" >&6
23967 else
23969 cat >conftest.$ac_ext <<_ACEOF
23970 #line $LINENO "configure"
23971 #include "confdefs.h"
23972 #include <sys/types.h>
23973 #include <sys/acl.h>
23974 #ifdef F77_DUMMY_MAIN
23975 # ifdef __cplusplus
23976 extern "C"
23977 # endif
23978 int F77_DUMMY_MAIN() { return 1; }
23979 #endif
23981 main ()
23983 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
23985 return 0;
23987 _ACEOF
23988 rm -f conftest.$ac_objext conftest$ac_exeext
23989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23990 (eval $ac_link) 2>&5
23991 ac_status=$?
23992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993 (exit $ac_status); } &&
23994 { ac_try='test -s conftest$ac_exeext'
23995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23996 (eval $ac_try) 2>&5
23997 ac_status=$?
23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); }; }; then
24000 samba_cv_HAVE_POSIX_ACLS=yes
24001 else
24002 echo "$as_me: failed program was:" >&5
24003 cat conftest.$ac_ext >&5
24004 samba_cv_HAVE_POSIX_ACLS=no
24006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24008 echo "$as_me:$LINENO: result: $samba_cv_HAVE_POSIX_ACLS" >&5
24009 echo "${ECHO_T}$samba_cv_HAVE_POSIX_ACLS" >&6
24010 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
24011 echo "$as_me:$LINENO: result: Using posix ACLs" >&5
24012 echo "${ECHO_T}Using posix ACLs" >&6
24014 cat >>confdefs.h <<\_ACEOF
24015 #define HAVE_POSIX_ACLS 1
24016 _ACEOF
24018 echo "$as_me:$LINENO: checking for acl_get_perm_np" >&5
24019 echo $ECHO_N "checking for acl_get_perm_np... $ECHO_C" >&6
24020 if test "${samba_cv_HAVE_ACL_GET_PERM_NP+set}" = set; then
24021 echo $ECHO_N "(cached) $ECHO_C" >&6
24022 else
24024 cat >conftest.$ac_ext <<_ACEOF
24025 #line $LINENO "configure"
24026 #include "confdefs.h"
24027 #include <sys/types.h>
24028 #include <sys/acl.h>
24029 #ifdef F77_DUMMY_MAIN
24030 # ifdef __cplusplus
24031 extern "C"
24032 # endif
24033 int F77_DUMMY_MAIN() { return 1; }
24034 #endif
24036 main ()
24038 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
24040 return 0;
24042 _ACEOF
24043 rm -f conftest.$ac_objext conftest$ac_exeext
24044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24045 (eval $ac_link) 2>&5
24046 ac_status=$?
24047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048 (exit $ac_status); } &&
24049 { ac_try='test -s conftest$ac_exeext'
24050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24051 (eval $ac_try) 2>&5
24052 ac_status=$?
24053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054 (exit $ac_status); }; }; then
24055 samba_cv_HAVE_ACL_GET_PERM_NP=yes
24056 else
24057 echo "$as_me: failed program was:" >&5
24058 cat conftest.$ac_ext >&5
24059 samba_cv_HAVE_ACL_GET_PERM_NP=no
24061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24063 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ACL_GET_PERM_NP" >&5
24064 echo "${ECHO_T}$samba_cv_HAVE_ACL_GET_PERM_NP" >&6
24065 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
24067 cat >>confdefs.h <<\_ACEOF
24068 #define HAVE_ACL_GET_PERM_NP 1
24069 _ACEOF
24074 esac
24077 echo "$as_me:$LINENO: result: no" >&5
24078 echo "${ECHO_T}no" >&6
24080 cat >>confdefs.h <<\_ACEOF
24081 #define HAVE_NO_ACLS 1
24082 _ACEOF
24085 esac
24086 else
24088 cat >>confdefs.h <<\_ACEOF
24089 #define HAVE_NO_ACLS 1
24090 _ACEOF
24092 echo "$as_me:$LINENO: result: no" >&5
24093 echo "${ECHO_T}no" >&6
24097 #################################################
24098 # check for sendfile support
24100 with_sendfile_support=yes
24101 echo "$as_me:$LINENO: checking whether to check to support sendfile" >&5
24102 echo $ECHO_N "checking whether to check to support sendfile... $ECHO_C" >&6
24104 # Check whether --with-sendfile-support or --without-sendfile-support was given.
24105 if test "${with_sendfile_support+set}" = set; then
24106 withval="$with_sendfile_support"
24107 case "$withval" in
24108 yes)
24110 echo "$as_me:$LINENO: result: yes" >&5
24111 echo "${ECHO_T}yes" >&6;
24113 case "$host_os" in
24114 *linux*)
24115 echo "$as_me:$LINENO: checking for linux sendfile64 support" >&5
24116 echo $ECHO_N "checking for linux sendfile64 support... $ECHO_C" >&6
24117 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
24118 echo $ECHO_N "(cached) $ECHO_C" >&6
24119 else
24121 cat >conftest.$ac_ext <<_ACEOF
24122 #line $LINENO "configure"
24123 #include "confdefs.h"
24124 #include <sys/sendfile.h>
24125 #ifdef F77_DUMMY_MAIN
24126 # ifdef __cplusplus
24127 extern "C"
24128 # endif
24129 int F77_DUMMY_MAIN() { return 1; }
24130 #endif
24132 main ()
24135 int tofd, fromfd;
24136 off64_t offset;
24137 size_t total;
24138 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
24141 return 0;
24143 _ACEOF
24144 rm -f conftest.$ac_objext conftest$ac_exeext
24145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24146 (eval $ac_link) 2>&5
24147 ac_status=$?
24148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); } &&
24150 { ac_try='test -s conftest$ac_exeext'
24151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24152 (eval $ac_try) 2>&5
24153 ac_status=$?
24154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155 (exit $ac_status); }; }; then
24156 samba_cv_HAVE_SENDFILE64=yes
24157 else
24158 echo "$as_me: failed program was:" >&5
24159 cat conftest.$ac_ext >&5
24160 samba_cv_HAVE_SENDFILE64=no
24162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24164 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
24165 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
24167 echo "$as_me:$LINENO: checking for linux sendfile support" >&5
24168 echo $ECHO_N "checking for linux sendfile support... $ECHO_C" >&6
24169 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
24170 echo $ECHO_N "(cached) $ECHO_C" >&6
24171 else
24173 cat >conftest.$ac_ext <<_ACEOF
24174 #line $LINENO "configure"
24175 #include "confdefs.h"
24176 #include <sys/sendfile.h>
24177 #ifdef F77_DUMMY_MAIN
24178 # ifdef __cplusplus
24179 extern "C"
24180 # endif
24181 int F77_DUMMY_MAIN() { return 1; }
24182 #endif
24184 main ()
24187 int tofd, fromfd;
24188 off_t offset;
24189 size_t total;
24190 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
24193 return 0;
24195 _ACEOF
24196 rm -f conftest.$ac_objext conftest$ac_exeext
24197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24198 (eval $ac_link) 2>&5
24199 ac_status=$?
24200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201 (exit $ac_status); } &&
24202 { ac_try='test -s conftest$ac_exeext'
24203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24204 (eval $ac_try) 2>&5
24205 ac_status=$?
24206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207 (exit $ac_status); }; }; then
24208 samba_cv_HAVE_SENDFILE=yes
24209 else
24210 echo "$as_me: failed program was:" >&5
24211 cat conftest.$ac_ext >&5
24212 samba_cv_HAVE_SENDFILE=no
24214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24216 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
24217 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
24219 # Try and cope with broken Linux sendfile....
24220 echo "$as_me:$LINENO: checking for broken linux sendfile support" >&5
24221 echo $ECHO_N "checking for broken linux sendfile support... $ECHO_C" >&6
24222 if test "${samba_cv_HAVE_BROKEN_LINUX_SENDFILE+set}" = set; then
24223 echo $ECHO_N "(cached) $ECHO_C" >&6
24224 else
24226 cat >conftest.$ac_ext <<_ACEOF
24227 #line $LINENO "configure"
24228 #include "confdefs.h"
24230 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
24231 #undef _FILE_OFFSET_BITS
24232 #endif
24233 #include <sys/sendfile.h>
24234 #ifdef F77_DUMMY_MAIN
24235 # ifdef __cplusplus
24236 extern "C"
24237 # endif
24238 int F77_DUMMY_MAIN() { return 1; }
24239 #endif
24241 main ()
24244 int tofd, fromfd;
24245 off_t offset;
24246 size_t total;
24247 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
24250 return 0;
24252 _ACEOF
24253 rm -f conftest.$ac_objext conftest$ac_exeext
24254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24255 (eval $ac_link) 2>&5
24256 ac_status=$?
24257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258 (exit $ac_status); } &&
24259 { ac_try='test -s conftest$ac_exeext'
24260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24261 (eval $ac_try) 2>&5
24262 ac_status=$?
24263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264 (exit $ac_status); }; }; then
24265 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
24266 else
24267 echo "$as_me: failed program was:" >&5
24268 cat conftest.$ac_ext >&5
24269 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
24271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24273 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&5
24274 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&6
24276 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
24278 cat >>confdefs.h <<\_ACEOF
24279 #define HAVE_SENDFILE64 1
24280 _ACEOF
24283 cat >>confdefs.h <<\_ACEOF
24284 #define LINUX_SENDFILE_API 1
24285 _ACEOF
24288 cat >>confdefs.h <<\_ACEOF
24289 #define WITH_SENDFILE 1
24290 _ACEOF
24292 elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
24294 cat >>confdefs.h <<\_ACEOF
24295 #define HAVE_SENDFILE 1
24296 _ACEOF
24299 cat >>confdefs.h <<\_ACEOF
24300 #define LINUX_SENDFILE_API 1
24301 _ACEOF
24304 cat >>confdefs.h <<\_ACEOF
24305 #define WITH_SENDFILE 1
24306 _ACEOF
24308 elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
24310 cat >>confdefs.h <<\_ACEOF
24311 #define LINUX_BROKEN_SENDFILE_API 1
24312 _ACEOF
24315 cat >>confdefs.h <<\_ACEOF
24316 #define WITH_SENDFILE 1
24317 _ACEOF
24319 else
24320 echo "$as_me:$LINENO: result: no" >&5
24321 echo "${ECHO_T}no" >&6;
24325 *freebsd*)
24326 echo "$as_me:$LINENO: checking for freebsd sendfile support" >&5
24327 echo $ECHO_N "checking for freebsd sendfile support... $ECHO_C" >&6
24328 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
24329 echo $ECHO_N "(cached) $ECHO_C" >&6
24330 else
24332 cat >conftest.$ac_ext <<_ACEOF
24333 #line $LINENO "configure"
24334 #include "confdefs.h"
24336 #include <sys/types.h>
24337 #include <unistd.h>
24338 #include <sys/socket.h>
24339 #include <sys/uio.h>
24340 #ifdef F77_DUMMY_MAIN
24341 # ifdef __cplusplus
24342 extern "C"
24343 # endif
24344 int F77_DUMMY_MAIN() { return 1; }
24345 #endif
24347 main ()
24350 int fromfd, tofd, ret, total=0;
24351 off_t offset, nwritten;
24352 struct sf_hdtr hdr;
24353 struct iovec hdtrl;
24354 hdr.headers = &hdtrl;
24355 hdr.hdr_cnt = 1;
24356 hdr.trailers = NULL;
24357 hdr.trl_cnt = 0;
24358 hdtrl.iov_base = NULL;
24359 hdtrl.iov_len = 0;
24360 ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
24363 return 0;
24365 _ACEOF
24366 rm -f conftest.$ac_objext conftest$ac_exeext
24367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24368 (eval $ac_link) 2>&5
24369 ac_status=$?
24370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); } &&
24372 { ac_try='test -s conftest$ac_exeext'
24373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24374 (eval $ac_try) 2>&5
24375 ac_status=$?
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); }; }; then
24378 samba_cv_HAVE_SENDFILE=yes
24379 else
24380 echo "$as_me: failed program was:" >&5
24381 cat conftest.$ac_ext >&5
24382 samba_cv_HAVE_SENDFILE=no
24384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24386 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
24387 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
24389 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
24391 cat >>confdefs.h <<\_ACEOF
24392 #define HAVE_SENDFILE 1
24393 _ACEOF
24396 cat >>confdefs.h <<\_ACEOF
24397 #define FREEBSD_SENDFILE_API 1
24398 _ACEOF
24401 cat >>confdefs.h <<\_ACEOF
24402 #define WITH_SENDFILE 1
24403 _ACEOF
24405 else
24406 echo "$as_me:$LINENO: result: no" >&5
24407 echo "${ECHO_T}no" >&6;
24411 *hpux*)
24412 echo "$as_me:$LINENO: checking for hpux sendfile64 support" >&5
24413 echo $ECHO_N "checking for hpux sendfile64 support... $ECHO_C" >&6
24414 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
24415 echo $ECHO_N "(cached) $ECHO_C" >&6
24416 else
24418 cat >conftest.$ac_ext <<_ACEOF
24419 #line $LINENO "configure"
24420 #include "confdefs.h"
24422 #include <sys/socket.h>
24423 #include <sys/uio.h>
24424 #ifdef F77_DUMMY_MAIN
24425 # ifdef __cplusplus
24426 extern "C"
24427 # endif
24428 int F77_DUMMY_MAIN() { return 1; }
24429 #endif
24431 main ()
24434 int fromfd, tofd;
24435 size_t total=0;
24436 struct iovec hdtrl[2];
24437 ssize_t nwritten;
24438 off64_t offset;
24440 hdtrl[0].iov_base = 0;
24441 hdtrl[0].iov_len = 0;
24443 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
24446 return 0;
24448 _ACEOF
24449 rm -f conftest.$ac_objext conftest$ac_exeext
24450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24451 (eval $ac_link) 2>&5
24452 ac_status=$?
24453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454 (exit $ac_status); } &&
24455 { ac_try='test -s conftest$ac_exeext'
24456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24457 (eval $ac_try) 2>&5
24458 ac_status=$?
24459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460 (exit $ac_status); }; }; then
24461 samba_cv_HAVE_SENDFILE64=yes
24462 else
24463 echo "$as_me: failed program was:" >&5
24464 cat conftest.$ac_ext >&5
24465 samba_cv_HAVE_SENDFILE64=no
24467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24469 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
24470 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
24471 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
24473 cat >>confdefs.h <<\_ACEOF
24474 #define HAVE_SENDFILE64 1
24475 _ACEOF
24478 cat >>confdefs.h <<\_ACEOF
24479 #define HPUX_SENDFILE_API 1
24480 _ACEOF
24483 cat >>confdefs.h <<\_ACEOF
24484 #define WITH_SENDFILE 1
24485 _ACEOF
24487 else
24488 echo "$as_me:$LINENO: result: no" >&5
24489 echo "${ECHO_T}no" >&6;
24492 echo "$as_me:$LINENO: checking for hpux sendfile support" >&5
24493 echo $ECHO_N "checking for hpux sendfile support... $ECHO_C" >&6
24494 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
24495 echo $ECHO_N "(cached) $ECHO_C" >&6
24496 else
24498 cat >conftest.$ac_ext <<_ACEOF
24499 #line $LINENO "configure"
24500 #include "confdefs.h"
24502 #include <sys/socket.h>
24503 #include <sys/uio.h>
24504 #ifdef F77_DUMMY_MAIN
24505 # ifdef __cplusplus
24506 extern "C"
24507 # endif
24508 int F77_DUMMY_MAIN() { return 1; }
24509 #endif
24511 main ()
24514 int fromfd, tofd;
24515 size_t total=0;
24516 struct iovec hdtrl[2];
24517 ssize_t nwritten;
24518 off_t offset;
24520 hdtrl[0].iov_base = 0;
24521 hdtrl[0].iov_len = 0;
24523 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
24526 return 0;
24528 _ACEOF
24529 rm -f conftest.$ac_objext conftest$ac_exeext
24530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24531 (eval $ac_link) 2>&5
24532 ac_status=$?
24533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534 (exit $ac_status); } &&
24535 { ac_try='test -s conftest$ac_exeext'
24536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24537 (eval $ac_try) 2>&5
24538 ac_status=$?
24539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540 (exit $ac_status); }; }; then
24541 samba_cv_HAVE_SENDFILE=yes
24542 else
24543 echo "$as_me: failed program was:" >&5
24544 cat conftest.$ac_ext >&5
24545 samba_cv_HAVE_SENDFILE=no
24547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24549 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
24550 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
24551 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
24553 cat >>confdefs.h <<\_ACEOF
24554 #define HAVE_SENDFILE 1
24555 _ACEOF
24558 cat >>confdefs.h <<\_ACEOF
24559 #define HPUX_SENDFILE_API 1
24560 _ACEOF
24563 cat >>confdefs.h <<\_ACEOF
24564 #define WITH_SENDFILE 1
24565 _ACEOF
24567 else
24568 echo "$as_me:$LINENO: result: no" >&5
24569 echo "${ECHO_T}no" >&6;
24573 *solaris*)
24575 echo "$as_me:$LINENO: checking for sendfilev in -lsendfile" >&5
24576 echo $ECHO_N "checking for sendfilev in -lsendfile... $ECHO_C" >&6
24577 if test "${ac_cv_lib_sendfile_sendfilev+set}" = set; then
24578 echo $ECHO_N "(cached) $ECHO_C" >&6
24579 else
24580 ac_check_lib_save_LIBS=$LIBS
24581 LIBS="-lsendfile $LIBS"
24582 cat >conftest.$ac_ext <<_ACEOF
24583 #line $LINENO "configure"
24584 #include "confdefs.h"
24586 /* Override any gcc2 internal prototype to avoid an error. */
24587 #ifdef __cplusplus
24588 extern "C"
24589 #endif
24590 /* We use char because int might match the return type of a gcc2
24591 builtin and then its argument prototype would still apply. */
24592 char sendfilev ();
24593 #ifdef F77_DUMMY_MAIN
24594 # ifdef __cplusplus
24595 extern "C"
24596 # endif
24597 int F77_DUMMY_MAIN() { return 1; }
24598 #endif
24600 main ()
24602 sendfilev ();
24604 return 0;
24606 _ACEOF
24607 rm -f conftest.$ac_objext conftest$ac_exeext
24608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24609 (eval $ac_link) 2>&5
24610 ac_status=$?
24611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612 (exit $ac_status); } &&
24613 { ac_try='test -s conftest$ac_exeext'
24614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24615 (eval $ac_try) 2>&5
24616 ac_status=$?
24617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618 (exit $ac_status); }; }; then
24619 ac_cv_lib_sendfile_sendfilev=yes
24620 else
24621 echo "$as_me: failed program was:" >&5
24622 cat conftest.$ac_ext >&5
24623 ac_cv_lib_sendfile_sendfilev=no
24625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24626 LIBS=$ac_check_lib_save_LIBS
24628 echo "$as_me:$LINENO: result: $ac_cv_lib_sendfile_sendfilev" >&5
24629 echo "${ECHO_T}$ac_cv_lib_sendfile_sendfilev" >&6
24630 if test $ac_cv_lib_sendfile_sendfilev = yes; then
24631 cat >>confdefs.h <<_ACEOF
24632 #define HAVE_LIBSENDFILE 1
24633 _ACEOF
24635 LIBS="-lsendfile $LIBS"
24639 echo "$as_me:$LINENO: checking for solaris sendfilev64 support" >&5
24640 echo $ECHO_N "checking for solaris sendfilev64 support... $ECHO_C" >&6
24641 if test "${samba_cv_HAVE_SENDFILEV64+set}" = set; then
24642 echo $ECHO_N "(cached) $ECHO_C" >&6
24643 else
24645 cat >conftest.$ac_ext <<_ACEOF
24646 #line $LINENO "configure"
24647 #include "confdefs.h"
24649 #include <sys/sendfile.h>
24650 #ifdef F77_DUMMY_MAIN
24651 # ifdef __cplusplus
24652 extern "C"
24653 # endif
24654 int F77_DUMMY_MAIN() { return 1; }
24655 #endif
24657 main ()
24660 int sfvcnt;
24661 size_t xferred;
24662 struct sendfilevec vec[2];
24663 ssize_t nwritten;
24664 int tofd;
24666 sfvcnt = 2;
24668 vec[0].sfv_fd = SFV_FD_SELF;
24669 vec[0].sfv_flag = 0;
24670 vec[0].sfv_off = 0;
24671 vec[0].sfv_len = 0;
24673 vec[1].sfv_fd = 0;
24674 vec[1].sfv_flag = 0;
24675 vec[1].sfv_off = 0;
24676 vec[1].sfv_len = 0;
24677 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
24680 return 0;
24682 _ACEOF
24683 rm -f conftest.$ac_objext conftest$ac_exeext
24684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24685 (eval $ac_link) 2>&5
24686 ac_status=$?
24687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688 (exit $ac_status); } &&
24689 { ac_try='test -s conftest$ac_exeext'
24690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24691 (eval $ac_try) 2>&5
24692 ac_status=$?
24693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24694 (exit $ac_status); }; }; then
24695 samba_cv_HAVE_SENDFILEV64=yes
24696 else
24697 echo "$as_me: failed program was:" >&5
24698 cat conftest.$ac_ext >&5
24699 samba_cv_HAVE_SENDFILEV64=no
24701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24703 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV64" >&5
24704 echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV64" >&6
24706 if test x"$samba_cv_HAVE_SENDFILEV64" = x"yes"; then
24708 cat >>confdefs.h <<\_ACEOF
24709 #define HAVE_SENDFILEV64 1
24710 _ACEOF
24713 cat >>confdefs.h <<\_ACEOF
24714 #define SOLARIS_SENDFILE_API 1
24715 _ACEOF
24718 cat >>confdefs.h <<\_ACEOF
24719 #define WITH_SENDFILE 1
24720 _ACEOF
24722 else
24723 echo "$as_me:$LINENO: result: no" >&5
24724 echo "${ECHO_T}no" >&6;
24727 echo "$as_me:$LINENO: checking for solaris sendfilev support" >&5
24728 echo $ECHO_N "checking for solaris sendfilev support... $ECHO_C" >&6
24729 if test "${samba_cv_HAVE_SENDFILEV+set}" = set; then
24730 echo $ECHO_N "(cached) $ECHO_C" >&6
24731 else
24733 cat >conftest.$ac_ext <<_ACEOF
24734 #line $LINENO "configure"
24735 #include "confdefs.h"
24737 #include <sys/sendfile.h>
24738 #ifdef F77_DUMMY_MAIN
24739 # ifdef __cplusplus
24740 extern "C"
24741 # endif
24742 int F77_DUMMY_MAIN() { return 1; }
24743 #endif
24745 main ()
24748 int sfvcnt;
24749 size_t xferred;
24750 struct sendfilevec vec[2];
24751 ssize_t nwritten;
24752 int tofd;
24754 sfvcnt = 2;
24756 vec[0].sfv_fd = SFV_FD_SELF;
24757 vec[0].sfv_flag = 0;
24758 vec[0].sfv_off = 0;
24759 vec[0].sfv_len = 0;
24761 vec[1].sfv_fd = 0;
24762 vec[1].sfv_flag = 0;
24763 vec[1].sfv_off = 0;
24764 vec[1].sfv_len = 0;
24765 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
24768 return 0;
24770 _ACEOF
24771 rm -f conftest.$ac_objext conftest$ac_exeext
24772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24773 (eval $ac_link) 2>&5
24774 ac_status=$?
24775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776 (exit $ac_status); } &&
24777 { ac_try='test -s conftest$ac_exeext'
24778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24779 (eval $ac_try) 2>&5
24780 ac_status=$?
24781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782 (exit $ac_status); }; }; then
24783 samba_cv_HAVE_SENDFILEV=yes
24784 else
24785 echo "$as_me: failed program was:" >&5
24786 cat conftest.$ac_ext >&5
24787 samba_cv_HAVE_SENDFILEV=no
24789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24791 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV" >&5
24792 echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV" >&6
24794 if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then
24796 cat >>confdefs.h <<\_ACEOF
24797 #define HAVE_SENDFILEV 1
24798 _ACEOF
24801 cat >>confdefs.h <<\_ACEOF
24802 #define SOLARIS_SENDFILE_API 1
24803 _ACEOF
24806 cat >>confdefs.h <<\_ACEOF
24807 #define WITH_SENDFILE 1
24808 _ACEOF
24810 else
24811 echo "$as_me:$LINENO: result: no" >&5
24812 echo "${ECHO_T}no" >&6;
24818 esac
24821 echo "$as_me:$LINENO: result: no" >&5
24822 echo "${ECHO_T}no" >&6
24824 esac
24825 else
24826 echo "$as_me:$LINENO: result: yes" >&5
24827 echo "${ECHO_T}yes" >&6
24832 #################################################
24833 # Check whether winbind is supported on this platform. If so we need to
24834 # build and install client programs, sbin programs and shared libraries
24836 echo "$as_me:$LINENO: checking whether to build winbind" >&5
24837 echo $ECHO_N "checking whether to build winbind... $ECHO_C" >&6
24839 # Initially, the value of $host_os decides whether winbind is supported
24841 case "$host_os" in
24842 *linux*|*irix*)
24843 HAVE_WINBIND=yes
24845 *solaris*)
24846 HAVE_WINBIND=yes
24847 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
24848 WINBIND_NSS_EXTRA_LIBS="-lsocket"
24850 *hpux11*)
24851 HAVE_WINBIND=yes
24852 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
24855 HAVE_WINBIND=no
24856 winbind_no_reason=", unsupported on $host_os"
24858 esac
24863 # Check the setting of --with-winbindd
24866 # Check whether --with-winbind or --without-winbind was given.
24867 if test "${with_winbind+set}" = set; then
24868 withval="$with_winbind"
24870 case "$withval" in
24871 yes)
24872 HAVE_WINBIND=yes
24875 HAVE_WINBIND=no
24876 winbind_reason=""
24878 esac
24881 # We need unix domain sockets for winbind
24883 if test x"$HAVE_WINBIND" = x"yes"; then
24884 if test x"$samba_cv_unixsocket" = x"no"; then
24885 winbind_no_reason=", no unix domain socket support on $host_os"
24886 HAVE_WINBIND=no
24890 # Display test results
24892 if test x"$HAVE_WINBIND" = x"yes"; then
24893 echo "$as_me:$LINENO: result: yes" >&5
24894 echo "${ECHO_T}yes" >&6
24896 cat >>confdefs.h <<\_ACEOF
24897 #define WITH_WINBIND 1
24898 _ACEOF
24901 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/wbinfo\$(EXEEXT)"
24902 EXTRA_SBIN_PROGS="$EXTRA_SBIN_PROGS bin/winbindd\$(EXEEXT)"
24903 if test x"$BLDSHARED" = x"true"; then
24904 case "$host_os" in
24905 *irix*)
24906 SHLIB_PROGS="$SHLIB_PROGS nsswitch/libns_winbind.so"
24909 SHLIB_PROGS="$SHLIB_PROGS nsswitch/libnss_winbind.so"
24911 esac
24912 if test x"$with_pam" = x"yes"; then
24913 SHLIB_PROGS="$SHLIB_PROGS nsswitch/pam_winbind.so"
24916 else
24917 echo "$as_me:$LINENO: result: no$winbind_no_reason" >&5
24918 echo "${ECHO_T}no$winbind_no_reason" >&6
24921 # Solaris has some extra fields in struct passwd that need to be
24922 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
24923 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
24924 # this.
24926 #AC_CHECK_MEMBER(struct passwd.pw_comment,
24927 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
24928 # [#include <pwd.h>])
24930 echo "$as_me:$LINENO: checking whether struct passwd has pw_comment" >&5
24931 echo $ECHO_N "checking whether struct passwd has pw_comment... $ECHO_C" >&6
24932 if test "${samba_cv_passwd_pw_comment+set}" = set; then
24933 echo $ECHO_N "(cached) $ECHO_C" >&6
24934 else
24936 cat >conftest.$ac_ext <<_ACEOF
24937 #line $LINENO "configure"
24938 #include "confdefs.h"
24939 #include <pwd.h>
24940 #ifdef F77_DUMMY_MAIN
24941 # ifdef __cplusplus
24942 extern "C"
24943 # endif
24944 int F77_DUMMY_MAIN() { return 1; }
24945 #endif
24947 main ()
24949 struct passwd p; p.pw_comment;
24951 return 0;
24953 _ACEOF
24954 rm -f conftest.$ac_objext
24955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24956 (eval $ac_compile) 2>&5
24957 ac_status=$?
24958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959 (exit $ac_status); } &&
24960 { ac_try='test -s conftest.$ac_objext'
24961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24962 (eval $ac_try) 2>&5
24963 ac_status=$?
24964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965 (exit $ac_status); }; }; then
24966 samba_cv_passwd_pw_comment=yes
24967 else
24968 echo "$as_me: failed program was:" >&5
24969 cat conftest.$ac_ext >&5
24970 samba_cv_passwd_pw_comment=no
24972 rm -f conftest.$ac_objext conftest.$ac_ext
24974 echo "$as_me:$LINENO: result: $samba_cv_passwd_pw_comment" >&5
24975 echo "${ECHO_T}$samba_cv_passwd_pw_comment" >&6
24976 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
24978 cat >>confdefs.h <<\_ACEOF
24979 #define HAVE_PASSWD_PW_COMMENT 1
24980 _ACEOF
24984 #AC_CHECK_MEMBER(struct passwd.pw_age,
24985 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
24986 # [#include <pwd.h>])
24988 echo "$as_me:$LINENO: checking whether struct passwd has pw_age" >&5
24989 echo $ECHO_N "checking whether struct passwd has pw_age... $ECHO_C" >&6
24990 if test "${samba_cv_passwd_pw_age+set}" = set; then
24991 echo $ECHO_N "(cached) $ECHO_C" >&6
24992 else
24994 cat >conftest.$ac_ext <<_ACEOF
24995 #line $LINENO "configure"
24996 #include "confdefs.h"
24997 #include <pwd.h>
24998 #ifdef F77_DUMMY_MAIN
24999 # ifdef __cplusplus
25000 extern "C"
25001 # endif
25002 int F77_DUMMY_MAIN() { return 1; }
25003 #endif
25005 main ()
25007 struct passwd p; p.pw_age;
25009 return 0;
25011 _ACEOF
25012 rm -f conftest.$ac_objext
25013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25014 (eval $ac_compile) 2>&5
25015 ac_status=$?
25016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017 (exit $ac_status); } &&
25018 { ac_try='test -s conftest.$ac_objext'
25019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020 (eval $ac_try) 2>&5
25021 ac_status=$?
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); }; }; then
25024 samba_cv_passwd_pw_age=yes
25025 else
25026 echo "$as_me: failed program was:" >&5
25027 cat conftest.$ac_ext >&5
25028 samba_cv_passwd_pw_age=no
25030 rm -f conftest.$ac_objext conftest.$ac_ext
25032 echo "$as_me:$LINENO: result: $samba_cv_passwd_pw_age" >&5
25033 echo "${ECHO_T}$samba_cv_passwd_pw_age" >&6
25034 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
25036 cat >>confdefs.h <<\_ACEOF
25037 #define HAVE_PASSWD_PW_AGE 1
25038 _ACEOF
25042 #################################################
25043 # Check to see if we should use the included popt
25046 # Check whether --with-included-popt or --without-included-popt was given.
25047 if test "${with_included_popt+set}" = set; then
25048 withval="$with_included_popt"
25050 case "$withval" in
25051 yes)
25052 INCLUDED_POPT=yes
25055 INCLUDED_POPT=no
25057 esac
25059 if test x"$INCLUDED_POPT" != x"yes"; then
25060 echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
25061 echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6
25062 if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
25063 echo $ECHO_N "(cached) $ECHO_C" >&6
25064 else
25065 ac_check_lib_save_LIBS=$LIBS
25066 LIBS="-lpopt $LIBS"
25067 cat >conftest.$ac_ext <<_ACEOF
25068 #line $LINENO "configure"
25069 #include "confdefs.h"
25071 /* Override any gcc2 internal prototype to avoid an error. */
25072 #ifdef __cplusplus
25073 extern "C"
25074 #endif
25075 /* We use char because int might match the return type of a gcc2
25076 builtin and then its argument prototype would still apply. */
25077 char poptGetContext ();
25078 #ifdef F77_DUMMY_MAIN
25079 # ifdef __cplusplus
25080 extern "C"
25081 # endif
25082 int F77_DUMMY_MAIN() { return 1; }
25083 #endif
25085 main ()
25087 poptGetContext ();
25089 return 0;
25091 _ACEOF
25092 rm -f conftest.$ac_objext conftest$ac_exeext
25093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25094 (eval $ac_link) 2>&5
25095 ac_status=$?
25096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097 (exit $ac_status); } &&
25098 { ac_try='test -s conftest$ac_exeext'
25099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25100 (eval $ac_try) 2>&5
25101 ac_status=$?
25102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103 (exit $ac_status); }; }; then
25104 ac_cv_lib_popt_poptGetContext=yes
25105 else
25106 echo "$as_me: failed program was:" >&5
25107 cat conftest.$ac_ext >&5
25108 ac_cv_lib_popt_poptGetContext=no
25110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25111 LIBS=$ac_check_lib_save_LIBS
25113 echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
25114 echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6
25115 if test $ac_cv_lib_popt_poptGetContext = yes; then
25116 INCLUDED_POPT=no
25117 else
25118 INCLUDED_POPT=yes
25123 echo "$as_me:$LINENO: checking whether to use included popt" >&5
25124 echo $ECHO_N "checking whether to use included popt... $ECHO_C" >&6
25125 if test x"$INCLUDED_POPT" = x"yes"; then
25126 echo "$as_me:$LINENO: result: yes" >&5
25127 echo "${ECHO_T}yes" >&6
25128 BUILD_POPT='$(POPT_OBJS)'
25129 FLAGS1="-I$srcdir/popt"
25130 else
25131 echo "$as_me:$LINENO: result: no" >&5
25132 echo "${ECHO_T}no" >&6
25133 LIBS="$LIBS -lpopt"
25138 #################################################
25139 # Check if the user wants Python
25141 # At the moment, you can use this to set which Python binary to link
25142 # against. (Libraries built for Python2.2 can't be used by 2.1,
25143 # though they can coexist in different directories.) In the future
25144 # this might make the Python stuff be built by default.
25146 # Defaulting python breaks the clean target if python isn't installed
25148 PYTHON=
25151 # Check whether --with-python or --without-python was given.
25152 if test "${with_python+set}" = set; then
25153 withval="$with_python"
25154 case "${withval-python}" in
25155 yes)
25156 PYTHON=python
25157 EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS python_ext"
25160 PYTHON=
25163 PYTHON=${withval-python}
25165 esac
25169 #################################################
25170 # do extra things if we are running insure
25172 if test "${ac_cv_prog_CC}" = "insure"; then
25173 CPPFLAGS="$CPPFLAGS -D__INSURE__"
25176 #################################################
25177 # final configure stuff
25179 echo "$as_me:$LINENO: checking configure summary" >&5
25180 echo $ECHO_N "checking configure summary... $ECHO_C" >&6
25181 if test "$cross_compiling" = yes; then
25182 { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
25183 echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
25184 else
25185 cat >conftest.$ac_ext <<_ACEOF
25186 #line $LINENO "configure"
25187 #include "confdefs.h"
25188 #include "${srcdir-.}/tests/summary.c"
25189 _ACEOF
25190 rm -f conftest$ac_exeext
25191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25192 (eval $ac_link) 2>&5
25193 ac_status=$?
25194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25197 (eval $ac_try) 2>&5
25198 ac_status=$?
25199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25200 (exit $ac_status); }; }; then
25201 echo "$as_me:$LINENO: result: yes" >&5
25202 echo "${ECHO_T}yes" >&6
25203 else
25204 echo "$as_me: program exited with status $ac_status" >&5
25205 echo "$as_me: failed program was:" >&5
25206 cat conftest.$ac_ext >&5
25207 ( exit $ac_status )
25208 { { echo "$as_me:$LINENO: error: summary failure. Aborting config" >&5
25209 echo "$as_me: error: summary failure. Aborting config" >&2;}
25210 { (exit 1); exit 1; }; }; exit 1;
25212 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25215 builddir=`pwd`
25218 ac_config_files="$ac_config_files include/stamp-h Makefile script/findsmb"
25219 cat >confcache <<\_ACEOF
25220 # This file is a shell script that caches the results of configure
25221 # tests run on this system so they can be shared between configure
25222 # scripts and configure runs, see configure's option --config-cache.
25223 # It is not useful on other systems. If it contains results you don't
25224 # want to keep, you may remove or edit it.
25226 # config.status only pays attention to the cache file if you give it
25227 # the --recheck option to rerun configure.
25229 # `ac_cv_env_foo' variables (set or unset) will be overriden when
25230 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25231 # following values.
25233 _ACEOF
25235 # The following way of writing the cache mishandles newlines in values,
25236 # but we know of no workaround that is simple, portable, and efficient.
25237 # So, don't put newlines in cache variables' values.
25238 # Ultrix sh set writes to stderr and can't be redirected directly,
25239 # and sets the high bit in the cache file unless we assign to the vars.
25241 (set) 2>&1 |
25242 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25243 *ac_space=\ *)
25244 # `set' does not quote correctly, so add quotes (double-quote
25245 # substitution turns \\\\ into \\, and sed turns \\ into \).
25246 sed -n \
25247 "s/'/'\\\\''/g;
25248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25251 # `set' quotes correctly as required by POSIX, so do not add quotes.
25252 sed -n \
25253 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25255 esac;
25257 sed '
25258 t clear
25259 : clear
25260 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25261 t end
25262 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25263 : end' >>confcache
25264 if cmp -s $cache_file confcache; then :; else
25265 if test -w $cache_file; then
25266 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25267 cat confcache >$cache_file
25268 else
25269 echo "not updating unwritable cache $cache_file"
25272 rm -f confcache
25274 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25275 # Let make expand exec_prefix.
25276 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25278 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25279 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25280 # trailing colons and then remove the whole line if VPATH becomes empty
25281 # (actually we leave an empty line to preserve line numbers).
25282 if test "x$srcdir" = x.; then
25283 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25284 s/:*\$(srcdir):*/:/;
25285 s/:*\${srcdir}:*/:/;
25286 s/:*@srcdir@:*/:/;
25287 s/^\([^=]*=[ ]*\):*/\1/;
25288 s/:*$//;
25289 s/^[^=]*=[ ]*$//;
25293 DEFS=-DHAVE_CONFIG_H
25296 : ${CONFIG_STATUS=./config.status}
25297 ac_clean_files_save=$ac_clean_files
25298 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25299 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25300 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25301 cat >$CONFIG_STATUS <<_ACEOF
25302 #! $SHELL
25303 # Generated by $as_me.
25304 # Run this file to recreate the current configuration.
25305 # Compiler output produced by configure, useful for debugging
25306 # configure, is in config.log if it exists.
25308 debug=false
25309 SHELL=\${CONFIG_SHELL-$SHELL}
25310 _ACEOF
25312 cat >>$CONFIG_STATUS <<\_ACEOF
25314 ## --------------------- ##
25315 ## M4sh Initialization. ##
25316 ## --------------------- ##
25318 # Be Bourne compatible
25319 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25320 emulate sh
25321 NULLCMD=:
25322 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25323 set -o posix
25326 # NLS nuisances.
25327 # Support unset when possible.
25328 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
25329 as_unset=unset
25330 else
25331 as_unset=false
25334 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
25335 { $as_unset LANG || test "${LANG+set}" != set; } ||
25336 { LANG=C; export LANG; }
25337 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
25338 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
25339 { LC_ALL=C; export LC_ALL; }
25340 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
25341 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
25342 { LC_TIME=C; export LC_TIME; }
25343 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
25344 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
25345 { LC_CTYPE=C; export LC_CTYPE; }
25346 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
25347 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
25348 { LANGUAGE=C; export LANGUAGE; }
25349 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
25350 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
25351 { LC_COLLATE=C; export LC_COLLATE; }
25352 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
25353 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
25354 { LC_NUMERIC=C; export LC_NUMERIC; }
25355 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
25356 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
25357 { LC_MESSAGES=C; export LC_MESSAGES; }
25360 # Name of the executable.
25361 as_me=`(basename "$0") 2>/dev/null ||
25362 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25363 X"$0" : 'X\(//\)$' \| \
25364 X"$0" : 'X\(/\)$' \| \
25365 . : '\(.\)' 2>/dev/null ||
25366 echo X/"$0" |
25367 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25368 /^X\/\(\/\/\)$/{ s//\1/; q; }
25369 /^X\/\(\/\).*/{ s//\1/; q; }
25370 s/.*/./; q'`
25372 # PATH needs CR, and LINENO needs CR and PATH.
25373 # Avoid depending upon Character Ranges.
25374 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25375 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25376 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25377 as_cr_digits='0123456789'
25378 as_cr_alnum=$as_cr_Letters$as_cr_digits
25380 # The user is always right.
25381 if test "${PATH_SEPARATOR+set}" != set; then
25382 echo "#! /bin/sh" >conftest.sh
25383 echo "exit 0" >>conftest.sh
25384 chmod +x conftest.sh
25385 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
25386 PATH_SEPARATOR=';'
25387 else
25388 PATH_SEPARATOR=:
25390 rm -f conftest.sh
25394 as_lineno_1=$LINENO
25395 as_lineno_2=$LINENO
25396 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25397 test "x$as_lineno_1" != "x$as_lineno_2" &&
25398 test "x$as_lineno_3" = "x$as_lineno_2" || {
25399 # Find who we are. Look in the path if we contain no path at all
25400 # relative or not.
25401 case $0 in
25402 *[\\/]* ) as_myself=$0 ;;
25403 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25404 for as_dir in $PATH
25406 IFS=$as_save_IFS
25407 test -z "$as_dir" && as_dir=.
25408 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25409 done
25412 esac
25413 # We did not find ourselves, most probably we were run as `sh COMMAND'
25414 # in which case we are not to be found in the path.
25415 if test "x$as_myself" = x; then
25416 as_myself=$0
25418 if test ! -f "$as_myself"; then
25419 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25420 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25421 { (exit 1); exit 1; }; }
25423 case $CONFIG_SHELL in
25425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25426 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25428 IFS=$as_save_IFS
25429 test -z "$as_dir" && as_dir=.
25430 for as_base in sh bash ksh sh5; do
25431 case $as_dir in
25433 if ("$as_dir/$as_base" -c '
25434 as_lineno_1=$LINENO
25435 as_lineno_2=$LINENO
25436 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25437 test "x$as_lineno_1" != "x$as_lineno_2" &&
25438 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25439 CONFIG_SHELL=$as_dir/$as_base
25440 export CONFIG_SHELL
25441 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25442 fi;;
25443 esac
25444 done
25445 done
25447 esac
25449 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25450 # uniformly replaced by the line number. The first 'sed' inserts a
25451 # line-number line before each line; the second 'sed' does the real
25452 # work. The second script uses 'N' to pair each line-number line
25453 # with the numbered line, and appends trailing '-' during
25454 # substitution so that $LINENO is not a special case at line end.
25455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25456 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25457 sed '=' <$as_myself |
25458 sed '
25460 s,$,-,
25461 : loop
25462 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25463 t loop
25464 s,-$,,
25465 s,^['$as_cr_digits']*\n,,
25466 ' >$as_me.lineno &&
25467 chmod +x $as_me.lineno ||
25468 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25469 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25470 { (exit 1); exit 1; }; }
25472 # Don't try to exec as it changes $[0], causing all sort of problems
25473 # (the dirname of $[0] is not the place where we might find the
25474 # original and so on. Autoconf is especially sensible to this).
25475 . ./$as_me.lineno
25476 # Exit status is that of the last command.
25477 exit
25481 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25482 *c*,-n*) ECHO_N= ECHO_C='
25483 ' ECHO_T=' ' ;;
25484 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25485 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25486 esac
25488 if expr a : '\(a\)' >/dev/null 2>&1; then
25489 as_expr=expr
25490 else
25491 as_expr=false
25494 rm -f conf$$ conf$$.exe conf$$.file
25495 echo >conf$$.file
25496 if ln -s conf$$.file conf$$ 2>/dev/null; then
25497 # We could just check for DJGPP; but this test a) works b) is more generic
25498 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25499 if test -f conf$$.exe; then
25500 # Don't use ln at all; we don't have any links
25501 as_ln_s='cp -p'
25502 else
25503 as_ln_s='ln -s'
25505 elif ln conf$$.file conf$$ 2>/dev/null; then
25506 as_ln_s=ln
25507 else
25508 as_ln_s='cp -p'
25510 rm -f conf$$ conf$$.exe conf$$.file
25512 as_executable_p="test -f"
25514 # Sed expression to map a string onto a valid CPP name.
25515 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
25517 # Sed expression to map a string onto a valid variable name.
25518 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
25521 # IFS
25522 # We need space, tab and new line, in precisely that order.
25523 as_nl='
25525 IFS=" $as_nl"
25527 # CDPATH.
25528 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
25530 exec 6>&1
25532 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25533 # report actual input values of CONFIG_FILES etc. instead of their
25534 # values after options handling. Logging --version etc. is OK.
25535 exec 5>>config.log
25537 echo
25538 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25539 ## Running $as_me. ##
25540 _ASBOX
25541 } >&5
25542 cat >&5 <<_CSEOF
25544 This file was extended by $as_me, which was
25545 generated by GNU Autoconf 2.53. Invocation command line was
25547 CONFIG_FILES = $CONFIG_FILES
25548 CONFIG_HEADERS = $CONFIG_HEADERS
25549 CONFIG_LINKS = $CONFIG_LINKS
25550 CONFIG_COMMANDS = $CONFIG_COMMANDS
25551 $ $0 $@
25553 _CSEOF
25554 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25555 echo >&5
25556 _ACEOF
25558 # Files that config.status was made for.
25559 if test -n "$ac_config_files"; then
25560 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25563 if test -n "$ac_config_headers"; then
25564 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25567 if test -n "$ac_config_links"; then
25568 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25571 if test -n "$ac_config_commands"; then
25572 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25575 cat >>$CONFIG_STATUS <<\_ACEOF
25577 ac_cs_usage="\
25578 \`$as_me' instantiates files from templates according to the
25579 current configuration.
25581 Usage: $0 [OPTIONS] [FILE]...
25583 -h, --help print this help, then exit
25584 -V, --version print version number, then exit
25585 -d, --debug don't remove temporary files
25586 --recheck update $as_me by reconfiguring in the same conditions
25587 --file=FILE[:TEMPLATE]
25588 instantiate the configuration file FILE
25589 --header=FILE[:TEMPLATE]
25590 instantiate the configuration header FILE
25592 Configuration files:
25593 $config_files
25595 Configuration headers:
25596 $config_headers
25598 Report bugs to <bug-autoconf@gnu.org>."
25599 _ACEOF
25601 cat >>$CONFIG_STATUS <<_ACEOF
25602 ac_cs_version="\\
25603 config.status
25604 configured by $0, generated by GNU Autoconf 2.53,
25605 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25607 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
25608 Free Software Foundation, Inc.
25609 This config.status script is free software; the Free Software Foundation
25610 gives unlimited permission to copy, distribute and modify it."
25611 srcdir=$srcdir
25612 INSTALL="$INSTALL"
25613 _ACEOF
25615 cat >>$CONFIG_STATUS <<\_ACEOF
25616 # If no file are specified by the user, then we need to provide default
25617 # value. By we need to know if files were specified by the user.
25618 ac_need_defaults=:
25619 while test $# != 0
25621 case $1 in
25622 --*=*)
25623 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25624 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25625 shift
25626 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
25627 shift
25629 -*);;
25630 *) # This is not an option, so the user has probably given explicit
25631 # arguments.
25632 ac_need_defaults=false;;
25633 esac
25635 case $1 in
25636 # Handling of the options.
25637 _ACEOF
25638 cat >>$CONFIG_STATUS <<_ACEOF
25639 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25640 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
25641 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
25642 _ACEOF
25643 cat >>$CONFIG_STATUS <<\_ACEOF
25644 --version | --vers* | -V )
25645 echo "$ac_cs_version"; exit 0 ;;
25646 --he | --h)
25647 # Conflict between --help and --header
25648 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25649 Try \`$0 --help' for more information." >&5
25650 echo "$as_me: error: ambiguous option: $1
25651 Try \`$0 --help' for more information." >&2;}
25652 { (exit 1); exit 1; }; };;
25653 --help | --hel | -h )
25654 echo "$ac_cs_usage"; exit 0 ;;
25655 --debug | --d* | -d )
25656 debug=: ;;
25657 --file | --fil | --fi | --f )
25658 shift
25659 CONFIG_FILES="$CONFIG_FILES $1"
25660 ac_need_defaults=false;;
25661 --header | --heade | --head | --hea )
25662 shift
25663 CONFIG_HEADERS="$CONFIG_HEADERS $1"
25664 ac_need_defaults=false;;
25666 # This is an error.
25667 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25668 Try \`$0 --help' for more information." >&5
25669 echo "$as_me: error: unrecognized option: $1
25670 Try \`$0 --help' for more information." >&2;}
25671 { (exit 1); exit 1; }; } ;;
25673 *) ac_config_targets="$ac_config_targets $1" ;;
25675 esac
25676 shift
25677 done
25679 _ACEOF
25685 cat >>$CONFIG_STATUS <<\_ACEOF
25686 for ac_config_target in $ac_config_targets
25688 case "$ac_config_target" in
25689 # Handling of arguments.
25690 "include/stamp-h" ) CONFIG_FILES="$CONFIG_FILES include/stamp-h" ;;
25691 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25692 "script/findsmb" ) CONFIG_FILES="$CONFIG_FILES script/findsmb" ;;
25693 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25694 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25695 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25696 { (exit 1); exit 1; }; };;
25697 esac
25698 done
25700 # If the user did not use the arguments to specify the items to instantiate,
25701 # then the envvar interface is used. Set only those that are not.
25702 # We use the long form for the default assignment because of an extremely
25703 # bizarre bug on SunOS 4.1.3.
25704 if $ac_need_defaults; then
25705 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25706 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25709 # Create a temporary directory, and hook for its removal unless debugging.
25710 $debug ||
25712 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25713 trap '{ (exit 1); exit 1; }' 1 2 13 15
25716 # Create a (secure) tmp directory for tmp files.
25717 : ${TMPDIR=/tmp}
25719 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
25720 test -n "$tmp" && test -d "$tmp"
25721 } ||
25723 tmp=$TMPDIR/cs$$-$RANDOM
25724 (umask 077 && mkdir $tmp)
25725 } ||
25727 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
25728 { (exit 1); exit 1; }
25731 _ACEOF
25733 cat >>$CONFIG_STATUS <<_ACEOF
25736 # CONFIG_FILES section.
25739 # No need to generate the scripts if there are no CONFIG_FILES.
25740 # This happens for instance when ./config.status config.h
25741 if test -n "\$CONFIG_FILES"; then
25742 # Protect against being on the right side of a sed subst in config.status.
25743 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25744 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25745 s,@SHELL@,$SHELL,;t t
25746 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25747 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25748 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25749 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25750 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25751 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25752 s,@exec_prefix@,$exec_prefix,;t t
25753 s,@prefix@,$prefix,;t t
25754 s,@program_transform_name@,$program_transform_name,;t t
25755 s,@bindir@,$bindir,;t t
25756 s,@sbindir@,$sbindir,;t t
25757 s,@libexecdir@,$libexecdir,;t t
25758 s,@datadir@,$datadir,;t t
25759 s,@sysconfdir@,$sysconfdir,;t t
25760 s,@sharedstatedir@,$sharedstatedir,;t t
25761 s,@localstatedir@,$localstatedir,;t t
25762 s,@libdir@,$libdir,;t t
25763 s,@includedir@,$includedir,;t t
25764 s,@oldincludedir@,$oldincludedir,;t t
25765 s,@infodir@,$infodir,;t t
25766 s,@mandir@,$mandir,;t t
25767 s,@build_alias@,$build_alias,;t t
25768 s,@host_alias@,$host_alias,;t t
25769 s,@target_alias@,$target_alias,;t t
25770 s,@DEFS@,$DEFS,;t t
25771 s,@ECHO_C@,$ECHO_C,;t t
25772 s,@ECHO_N@,$ECHO_N,;t t
25773 s,@ECHO_T@,$ECHO_T,;t t
25774 s,@LIBS@,$LIBS,;t t
25775 s,@configdir@,$configdir,;t t
25776 s,@lockdir@,$lockdir,;t t
25777 s,@piddir@,$piddir,;t t
25778 s,@logfilebase@,$logfilebase,;t t
25779 s,@privatedir@,$privatedir,;t t
25780 s,@swatdir@,$swatdir,;t t
25781 s,@LDSHFLAGS@,$LDSHFLAGS,;t t
25782 s,@SONAMEFLAG@,$SONAMEFLAG,;t t
25783 s,@SHLD@,$SHLD,;t t
25784 s,@HOST_OS@,$HOST_OS,;t t
25785 s,@PICFLAG@,$PICFLAG,;t t
25786 s,@PICSUFFIX@,$PICSUFFIX,;t t
25787 s,@POBAD_CC@,$POBAD_CC,;t t
25788 s,@SHLIBEXT@,$SHLIBEXT,;t t
25789 s,@LIBSMBCLIENT_SHARED@,$LIBSMBCLIENT_SHARED,;t t
25790 s,@LIBSMBCLIENT@,$LIBSMBCLIENT,;t t
25791 s,@PRINTLIBS@,$PRINTLIBS,;t t
25792 s,@AUTHLIBS@,$AUTHLIBS,;t t
25793 s,@SHLIB_PROGS@,$SHLIB_PROGS,;t t
25794 s,@SMBWRAPPER@,$SMBWRAPPER,;t t
25795 s,@EXTRA_BIN_PROGS@,$EXTRA_BIN_PROGS,;t t
25796 s,@EXTRA_SBIN_PROGS@,$EXTRA_SBIN_PROGS,;t t
25797 s,@EXTRA_ALL_TARGETS@,$EXTRA_ALL_TARGETS,;t t
25798 s,@LSA_DYNAMIC@,$LSA_DYNAMIC,;t t
25799 s,@NETLOG_DYNAMIC@,$NETLOG_DYNAMIC,;t t
25800 s,@SAMR_DYNAMIC@,$SAMR_DYNAMIC,;t t
25801 s,@SVC_DYNAMIC@,$SVC_DYNAMIC,;t t
25802 s,@WKS_DYNAMIC@,$WKS_DYNAMIC,;t t
25803 s,@REG_DYNAMIC@,$REG_DYNAMIC,;t t
25804 s,@SPOOLSS_DYNAMIC@,$SPOOLSS_DYNAMIC,;t t
25805 s,@DFS_DYNAMIC@,$DFS_DYNAMIC,;t t
25806 s,@CC@,$CC,;t t
25807 s,@CFLAGS@,$CFLAGS,;t t
25808 s,@LDFLAGS@,$LDFLAGS,;t t
25809 s,@CPPFLAGS@,$CPPFLAGS,;t t
25810 s,@ac_ct_CC@,$ac_ct_CC,;t t
25811 s,@EXEEXT@,$EXEEXT,;t t
25812 s,@OBJEXT@,$OBJEXT,;t t
25813 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25814 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25815 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25816 s,@AWK@,$AWK,;t t
25817 s,@BROKEN_CC@,$BROKEN_CC,;t t
25818 s,@build@,$build,;t t
25819 s,@build_cpu@,$build_cpu,;t t
25820 s,@build_vendor@,$build_vendor,;t t
25821 s,@build_os@,$build_os,;t t
25822 s,@host@,$host,;t t
25823 s,@host_cpu@,$host_cpu,;t t
25824 s,@host_vendor@,$host_vendor,;t t
25825 s,@host_os@,$host_os,;t t
25826 s,@target@,$target,;t t
25827 s,@target_cpu@,$target_cpu,;t t
25828 s,@target_vendor@,$target_vendor,;t t
25829 s,@target_os@,$target_os,;t t
25830 s,@CPP@,$CPP,;t t
25831 s,@CUPS_CONFIG@,$CUPS_CONFIG,;t t
25832 s,@LIBOBJS@,$LIBOBJS,;t t
25833 s,@TERMLIBS@,$TERMLIBS,;t t
25834 s,@TERMLDFLAGS@,$TERMLDFLAGS,;t t
25835 s,@ROFF@,$ROFF,;t t
25836 s,@DYNEXP@,$DYNEXP,;t t
25837 s,@MYSQL_CONFIG@,$MYSQL_CONFIG,;t t
25838 s,@MYSQL_CFLAGS@,$MYSQL_CFLAGS,;t t
25839 s,@MYSQL_LIBS@,$MYSQL_LIBS,;t t
25840 s,@MODULE_MYSQL@,$MODULE_MYSQL,;t t
25841 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
25842 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
25843 s,@XML_LIBS@,$XML_LIBS,;t t
25844 s,@MODULE_XML@,$MODULE_XML,;t t
25845 s,@QUOTAOBJS@,$QUOTAOBJS,;t t
25846 s,@manlangs@,$manlangs,;t t
25847 s,@WINBIND_NSS_EXTRA_OBJS@,$WINBIND_NSS_EXTRA_OBJS,;t t
25848 s,@WINBIND_NSS_EXTRA_LIBS@,$WINBIND_NSS_EXTRA_LIBS,;t t
25849 s,@BUILD_POPT@,$BUILD_POPT,;t t
25850 s,@FLAGS1@,$FLAGS1,;t t
25851 s,@PYTHON@,$PYTHON,;t t
25852 s,@builddir@,$builddir,;t t
25853 CEOF
25855 _ACEOF
25857 cat >>$CONFIG_STATUS <<\_ACEOF
25858 # Split the substitutions into bite-sized pieces for seds with
25859 # small command number limits, like on Digital OSF/1 and HP-UX.
25860 ac_max_sed_lines=48
25861 ac_sed_frag=1 # Number of current file.
25862 ac_beg=1 # First line for current file.
25863 ac_end=$ac_max_sed_lines # Line after last line for current file.
25864 ac_more_lines=:
25865 ac_sed_cmds=
25866 while $ac_more_lines; do
25867 if test $ac_beg -gt 1; then
25868 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25869 else
25870 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25872 if test ! -s $tmp/subs.frag; then
25873 ac_more_lines=false
25874 else
25875 # The purpose of the label and of the branching condition is to
25876 # speed up the sed processing (if there are no `@' at all, there
25877 # is no need to browse any of the substitutions).
25878 # These are the two extra sed commands mentioned above.
25879 (echo ':t
25880 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25881 if test -z "$ac_sed_cmds"; then
25882 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25883 else
25884 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25886 ac_sed_frag=`expr $ac_sed_frag + 1`
25887 ac_beg=$ac_end
25888 ac_end=`expr $ac_end + $ac_max_sed_lines`
25890 done
25891 if test -z "$ac_sed_cmds"; then
25892 ac_sed_cmds=cat
25894 fi # test -n "$CONFIG_FILES"
25896 _ACEOF
25897 cat >>$CONFIG_STATUS <<\_ACEOF
25898 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25899 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25900 case $ac_file in
25901 - | *:- | *:-:* ) # input from stdin
25902 cat >$tmp/stdin
25903 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25904 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25905 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25906 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25907 * ) ac_file_in=$ac_file.in ;;
25908 esac
25910 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25911 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25912 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25913 X"$ac_file" : 'X\(//\)[^/]' \| \
25914 X"$ac_file" : 'X\(//\)$' \| \
25915 X"$ac_file" : 'X\(/\)' \| \
25916 . : '\(.\)' 2>/dev/null ||
25917 echo X"$ac_file" |
25918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25919 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25920 /^X\(\/\/\)$/{ s//\1/; q; }
25921 /^X\(\/\).*/{ s//\1/; q; }
25922 s/.*/./; q'`
25923 { case "$ac_dir" in
25924 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
25925 *) as_incr_dir=.;;
25926 esac
25927 as_dummy="$ac_dir"
25928 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25929 case $as_mkdir_dir in
25930 # Skip DOS drivespec
25931 ?:) as_incr_dir=$as_mkdir_dir ;;
25933 as_incr_dir=$as_incr_dir/$as_mkdir_dir
25934 test -d "$as_incr_dir" ||
25935 mkdir "$as_incr_dir" ||
25936 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
25937 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
25938 { (exit 1); exit 1; }; }
25940 esac
25941 done; }
25943 ac_builddir=.
25945 if test "$ac_dir" != .; then
25946 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25947 # A "../" for each directory in $ac_dir_suffix.
25948 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25949 else
25950 ac_dir_suffix= ac_top_builddir=
25953 case $srcdir in
25954 .) # No --srcdir option. We are building in place.
25955 ac_srcdir=.
25956 if test -z "$ac_top_builddir"; then
25957 ac_top_srcdir=.
25958 else
25959 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25960 fi ;;
25961 [\\/]* | ?:[\\/]* ) # Absolute path.
25962 ac_srcdir=$srcdir$ac_dir_suffix;
25963 ac_top_srcdir=$srcdir ;;
25964 *) # Relative path.
25965 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25966 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25967 esac
25968 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25969 # absolute.
25970 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25971 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
25972 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25973 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25976 case $INSTALL in
25977 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25978 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25979 esac
25981 if test x"$ac_file" != x-; then
25982 { echo "$as_me:$LINENO: creating $ac_file" >&5
25983 echo "$as_me: creating $ac_file" >&6;}
25984 rm -f "$ac_file"
25986 # Let's still pretend it is `configure' which instantiates (i.e., don't
25987 # use $as_me), people would be surprised to read:
25988 # /* config.h. Generated by config.status. */
25989 if test x"$ac_file" = x-; then
25990 configure_input=
25991 else
25992 configure_input="$ac_file. "
25994 configure_input=$configure_input"Generated from `echo $ac_file_in |
25995 sed 's,.*/,,'` by configure."
25997 # First look for the input files in the build tree, otherwise in the
25998 # src tree.
25999 ac_file_inputs=`IFS=:
26000 for f in $ac_file_in; do
26001 case $f in
26002 -) echo $tmp/stdin ;;
26003 [\\/$]*)
26004 # Absolute (can't be DOS-style, as IFS=:)
26005 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26006 echo "$as_me: error: cannot find input file: $f" >&2;}
26007 { (exit 1); exit 1; }; }
26008 echo $f;;
26009 *) # Relative
26010 if test -f "$f"; then
26011 # Build tree
26012 echo $f
26013 elif test -f "$srcdir/$f"; then
26014 # Source tree
26015 echo $srcdir/$f
26016 else
26017 # /dev/null tree
26018 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26019 echo "$as_me: error: cannot find input file: $f" >&2;}
26020 { (exit 1); exit 1; }; }
26021 fi;;
26022 esac
26023 done` || { (exit 1); exit 1; }
26024 _ACEOF
26025 cat >>$CONFIG_STATUS <<_ACEOF
26026 sed "$ac_vpsub
26027 $extrasub
26028 _ACEOF
26029 cat >>$CONFIG_STATUS <<\_ACEOF
26031 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26032 s,@configure_input@,$configure_input,;t t
26033 s,@srcdir@,$ac_srcdir,;t t
26034 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26035 s,@top_srcdir@,$ac_top_srcdir,;t t
26036 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26037 s,@builddir@,$ac_builddir,;t t
26038 s,@abs_builddir@,$ac_abs_builddir,;t t
26039 s,@top_builddir@,$ac_top_builddir,;t t
26040 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26041 s,@INSTALL@,$ac_INSTALL,;t t
26042 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26043 rm -f $tmp/stdin
26044 if test x"$ac_file" != x-; then
26045 mv $tmp/out $ac_file
26046 else
26047 cat $tmp/out
26048 rm -f $tmp/out
26051 done
26052 _ACEOF
26053 cat >>$CONFIG_STATUS <<\_ACEOF
26056 # CONFIG_HEADER section.
26059 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26060 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26062 # ac_d sets the value in "#define NAME VALUE" lines.
26063 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26064 ac_dB='[ ].*$,\1#\2'
26065 ac_dC=' '
26066 ac_dD=',;t'
26067 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26068 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26069 ac_uB='$,\1#\2define\3'
26070 ac_uC=' '
26071 ac_uD=',;t'
26073 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26074 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26075 case $ac_file in
26076 - | *:- | *:-:* ) # input from stdin
26077 cat >$tmp/stdin
26078 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26079 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26080 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26081 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26082 * ) ac_file_in=$ac_file.in ;;
26083 esac
26085 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26086 echo "$as_me: creating $ac_file" >&6;}
26088 # First look for the input files in the build tree, otherwise in the
26089 # src tree.
26090 ac_file_inputs=`IFS=:
26091 for f in $ac_file_in; do
26092 case $f in
26093 -) echo $tmp/stdin ;;
26094 [\\/$]*)
26095 # Absolute (can't be DOS-style, as IFS=:)
26096 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26097 echo "$as_me: error: cannot find input file: $f" >&2;}
26098 { (exit 1); exit 1; }; }
26099 echo $f;;
26100 *) # Relative
26101 if test -f "$f"; then
26102 # Build tree
26103 echo $f
26104 elif test -f "$srcdir/$f"; then
26105 # Source tree
26106 echo $srcdir/$f
26107 else
26108 # /dev/null tree
26109 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26110 echo "$as_me: error: cannot find input file: $f" >&2;}
26111 { (exit 1); exit 1; }; }
26112 fi;;
26113 esac
26114 done` || { (exit 1); exit 1; }
26115 # Remove the trailing spaces.
26116 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26118 _ACEOF
26120 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26121 # `conftest.undefs', that substitutes the proper values into
26122 # config.h.in to produce config.h. The first handles `#define'
26123 # templates, and the second `#undef' templates.
26124 # And first: Protect against being on the right side of a sed subst in
26125 # config.status. Protect against being in an unquoted here document
26126 # in config.status.
26127 rm -f conftest.defines conftest.undefs
26128 # Using a here document instead of a string reduces the quoting nightmare.
26129 # Putting comments in sed scripts is not portable.
26131 # `end' is used to avoid that the second main sed command (meant for
26132 # 0-ary CPP macros) applies to n-ary macro definitions.
26133 # See the Autoconf documentation for `clear'.
26134 cat >confdef2sed.sed <<\_ACEOF
26135 s/[\\&,]/\\&/g
26136 s,[\\$`],\\&,g
26137 t clear
26138 : clear
26139 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26140 t end
26141 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26142 : end
26143 _ACEOF
26144 # If some macros were called several times there might be several times
26145 # the same #defines, which is useless. Nevertheless, we may not want to
26146 # sort them, since we want the *last* AC-DEFINE to be honored.
26147 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26148 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26149 rm -f confdef2sed.sed
26151 # This sed command replaces #undef with comments. This is necessary, for
26152 # example, in the case of _POSIX_SOURCE, which is predefined and required
26153 # on some systems where configure will not decide to define it.
26154 cat >>conftest.undefs <<\_ACEOF
26155 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26156 _ACEOF
26158 # Break up conftest.defines because some shells have a limit on the size
26159 # of here documents, and old seds have small limits too (100 cmds).
26160 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26161 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26162 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26163 echo ' :' >>$CONFIG_STATUS
26164 rm -f conftest.tail
26165 while grep . conftest.defines >/dev/null
26167 # Write a limited-size here document to $tmp/defines.sed.
26168 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26169 # Speed up: don't consider the non `#define' lines.
26170 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26171 # Work around the forget-to-reset-the-flag bug.
26172 echo 't clr' >>$CONFIG_STATUS
26173 echo ': clr' >>$CONFIG_STATUS
26174 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26175 echo 'CEOF
26176 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26177 rm -f $tmp/in
26178 mv $tmp/out $tmp/in
26179 ' >>$CONFIG_STATUS
26180 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26181 rm -f conftest.defines
26182 mv conftest.tail conftest.defines
26183 done
26184 rm -f conftest.defines
26185 echo ' fi # egrep' >>$CONFIG_STATUS
26186 echo >>$CONFIG_STATUS
26188 # Break up conftest.undefs because some shells have a limit on the size
26189 # of here documents, and old seds have small limits too (100 cmds).
26190 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26191 rm -f conftest.tail
26192 while grep . conftest.undefs >/dev/null
26194 # Write a limited-size here document to $tmp/undefs.sed.
26195 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26196 # Speed up: don't consider the non `#undef'
26197 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26198 # Work around the forget-to-reset-the-flag bug.
26199 echo 't clr' >>$CONFIG_STATUS
26200 echo ': clr' >>$CONFIG_STATUS
26201 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26202 echo 'CEOF
26203 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26204 rm -f $tmp/in
26205 mv $tmp/out $tmp/in
26206 ' >>$CONFIG_STATUS
26207 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26208 rm -f conftest.undefs
26209 mv conftest.tail conftest.undefs
26210 done
26211 rm -f conftest.undefs
26213 cat >>$CONFIG_STATUS <<\_ACEOF
26214 # Let's still pretend it is `configure' which instantiates (i.e., don't
26215 # use $as_me), people would be surprised to read:
26216 # /* config.h. Generated by config.status. */
26217 if test x"$ac_file" = x-; then
26218 echo "/* Generated by configure. */" >$tmp/config.h
26219 else
26220 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26222 cat $tmp/in >>$tmp/config.h
26223 rm -f $tmp/in
26224 if test x"$ac_file" != x-; then
26225 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
26226 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26227 echo "$as_me: $ac_file is unchanged" >&6;}
26228 else
26229 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26230 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26231 X"$ac_file" : 'X\(//\)[^/]' \| \
26232 X"$ac_file" : 'X\(//\)$' \| \
26233 X"$ac_file" : 'X\(/\)' \| \
26234 . : '\(.\)' 2>/dev/null ||
26235 echo X"$ac_file" |
26236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26237 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26238 /^X\(\/\/\)$/{ s//\1/; q; }
26239 /^X\(\/\).*/{ s//\1/; q; }
26240 s/.*/./; q'`
26241 { case "$ac_dir" in
26242 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
26243 *) as_incr_dir=.;;
26244 esac
26245 as_dummy="$ac_dir"
26246 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
26247 case $as_mkdir_dir in
26248 # Skip DOS drivespec
26249 ?:) as_incr_dir=$as_mkdir_dir ;;
26251 as_incr_dir=$as_incr_dir/$as_mkdir_dir
26252 test -d "$as_incr_dir" ||
26253 mkdir "$as_incr_dir" ||
26254 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
26255 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
26256 { (exit 1); exit 1; }; }
26258 esac
26259 done; }
26261 rm -f $ac_file
26262 mv $tmp/config.h $ac_file
26264 else
26265 cat $tmp/config.h
26266 rm -f $tmp/config.h
26268 done
26269 _ACEOF
26271 cat >>$CONFIG_STATUS <<\_ACEOF
26273 { (exit 0); exit 0; }
26274 _ACEOF
26275 chmod +x $CONFIG_STATUS
26276 ac_clean_files=$ac_clean_files_save
26279 # configure is writing to config.log, and then calls config.status.
26280 # config.status does its own redirection, appending to config.log.
26281 # Unfortunately, on DOS this fails, as config.log is still kept open
26282 # by configure, so config.status won't be able to write to it; its
26283 # output is simply discarded. So we exec the FD to /dev/null,
26284 # effectively closing config.log, so it can be properly (re)opened and
26285 # appended to by config.status. When coming back to configure, we
26286 # need to make the FD available again.
26287 if test "$no_create" != yes; then
26288 ac_cs_success=:
26289 exec 5>/dev/null
26290 $SHELL $CONFIG_STATUS || ac_cs_success=false
26291 exec 5>>config.log
26292 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26293 # would make configure fail if this is the last instruction.
26294 $ac_cs_success || { (exit 1); exit 1; }
26298 #################################################
26299 # Print very concise instructions on building/use
26300 if test "x$enable_dmalloc" = xyes
26301 then
26302 echo "$as_me:$LINENO: result: Note: The dmalloc debug library will be included. To turn it on use" >&5
26303 echo "${ECHO_T}Note: The dmalloc debug library will be included. To turn it on use" >&6
26304 echo "$as_me:$LINENO: result: \$ eval \\`dmalloc samba\\`." >&5
26305 echo "${ECHO_T} \$ eval \\`dmalloc samba\\`." >&6