Remove the assumption that all Solaris has -lsendfile.
[samba.git] / source3 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 if expr a : '\(a\)' >/dev/null 2>&1; then
11   as_expr=expr
12 else
13   as_expr=false
14 fi
15
16
17 ## --------------------- ##
18 ## M4sh Initialization.  ##
19 ## --------------------- ##
20
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
27 fi
28
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
35 fi
36
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; }
61
62
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'`
74
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
82
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=:
92   fi
93   rm -f conftest.sh
94 fi
95
96
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
108 do
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
113
114        ;;
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
120   fi
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; }; }
124   fi
125   case $CONFIG_SHELL in
126   '')
127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
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
134          /*)
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
148 ;;
149   esac
150
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 '
161       N
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; }; }
172
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
179 }
180
181
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
188
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190   as_expr=expr
191 else
192   as_expr=false
193 fi
194
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'
205   fi
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207   as_ln_s=ln
208 else
209   as_ln_s='cp -p'
210 fi
211 rm -f conf$$ conf$$.exe conf$$.file
212
213 as_executable_p="test -f"
214
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"
217
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
225 '
226 IFS="   $as_nl"
227
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
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`
236
237 exec 6>&1
238
239 #
240 # Initializations.
241 #
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
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}
253
254 # Identity of this package.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
260
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"
299
300
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
320
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'
338
339 ac_prev=
340 for ac_option
341 do
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
347   fi
348
349   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350
351   # Accept the important Cygnus configure options, so we can diagnose typos.
352
353   case $ac_option in
354
355   -bindir | --bindir | --bindi | --bind | --bin | --bi)
356     ac_prev=bindir ;;
357   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
358     bindir=$ac_optarg ;;
359
360   -build | --build | --buil | --bui | --bu)
361     ac_prev=build_alias ;;
362   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
363     build_alias=$ac_optarg ;;
364
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 ;;
371
372   --config-cache | -C)
373     cache_file=config.cache ;;
374
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 ;;
380
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" ;;
389
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'" ;;
402
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 ;;
411
412   -gas | --gas | --ga | --g)
413     # Obsolete; use --with-gas.
414     with_gas=yes ;;
415
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 ;;
422
423   -host | --host | --hos | --ho)
424     ac_prev=host_alias ;;
425   -host=* | --host=* | --hos=* | --ho=*)
426     host_alias=$ac_optarg ;;
427
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 ;;
434
435   -infodir | --infodir | --infodi | --infod | --info | --inf)
436     ac_prev=infodir ;;
437   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
438     infodir=$ac_optarg ;;
439
440   -libdir | --libdir | --libdi | --libd)
441     ac_prev=libdir ;;
442   -libdir=* | --libdir=* | --libdi=* | --libd=*)
443     libdir=$ac_optarg ;;
444
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 ;;
451
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 ;;
460
461   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
462     ac_prev=mandir ;;
463   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
464     mandir=$ac_optarg ;;
465
466   -nfp | --nfp | --nf)
467     # Obsolete; use --without-fp.
468     with_fp=no ;;
469
470   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
471   | --no-cr | --no-c | -n)
472     no_create=yes ;;
473
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 ;;
477
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 ;;
486
487   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
488     ac_prev=prefix ;;
489   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
490     prefix=$ac_optarg ;;
491
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 ;;
498
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 ;;
505
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 ;;
522
523   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
524   | -silent | --silent | --silen | --sile | --sil)
525     silent=yes ;;
526
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 ;;
532
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 ;;
543
544   -site | --site | --sit)
545     ac_prev=site ;;
546   -site=* | --site=* | --sit=*)
547     site=$ac_optarg ;;
548
549   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550     ac_prev=srcdir ;;
551   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
552     srcdir=$ac_optarg ;;
553
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 ;;
560
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 ;;
565
566   -v | -verbose | --verbose | --verbos | --verbo | --verb)
567     verbose=yes ;;
568
569   -version | --version | --versio | --versi | --vers | -V)
570     ac_init_version=: ;;
571
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'" ;;
584
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" ;;
593
594   --x)
595     # Obsolete; use --with-x.
596     with_x=yes ;;
597
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 ;;
604
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 ;;
611
612   -*) { echo "$as_me: error: unrecognized option: $ac_option
613 Try \`$0 --help' for more information." >&2
614    { (exit 1); exit 1; }; }
615     ;;
616
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 ;;
626
627   *)
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}
633     ;;
634
635   esac
636 done
637
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; }; }
642 fi
643
644 # Be sure to have absolute paths.
645 for ac_var in exec_prefix prefix
646 do
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
654
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
658 do
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
666
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
673
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
682   fi
683 fi
684
685 ac_tool_prefix=
686 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687
688 test "$silent" = yes && exec 6>/dev/null
689
690
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=..
710   fi
711 else
712   ac_srcdir_defaulted=no
713 fi
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; }; }
721   fi
722 fi
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
756
757 #
758 # Report the --help message.
759 #
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.
765
766 Usage: $0 [OPTION]... [VAR=VALUE]...
767
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.
770
771 Defaults for the options are specified in brackets.
772
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 \`..']
783
784 _ACEOF
785
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]
792
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'.
797
798 For better control, use the options below.
799
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
814
815   cat <<\_ACEOF
816
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
822 fi
823
824 if test -n "$ac_init_help"; then
825
826   cat <<\_ACEOF
827
828 Optional Features:
829   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
830   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
831   --enable-debug          Turn on compiler debugging information (default=no)
832   --enable-developer      Turn on developer warnings and debugging (default=no)
833   --enable-krb5developer  Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)
834   --enable-dmalloc        Enable heap debugging default=no
835   --enable-cups           Turn on CUPS support (default=auto)
836   --disable-mysqltest       Do not try to compile and run a test MYSQL program
837   --disable-xmltest       Do not try to compile and run a test LIBXML program
838
839 Optional Packages:
840   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
841   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
842   --with-fhs              Use FHS-compliant paths (default=no)
843   --with-privatedir=DIR   Where to put smbpasswd ($ac_default_prefix/private)
844   --with-lockdir=DIR      Where to put lock files ($ac_default_prefix/var/locks)
845   --with-piddir=DIR       Where to put pid files ($ac_default_prefix/var/locks)
846   --with-swatdir=DIR      Where to put SWAT files ($ac_default_prefix/swat)
847   --with-configdir=DIR    Where to put configuration files (\$libdir)
848   --with-logfilebase=DIR  Where to put log files (\$(VARDIR))
849   --with-readline=DIR   Look for readline include/libs in DIR (default=auto)
850   --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto)
851   --with-smbwrapper       Include SMB wrapper support (default=no)
852   --with-afs              Include AFS clear-text auth support (default=no)
853   --with-dce-dfs          Include DCE/DFS clear-text auth support (default=no)
854    --with-ads  Active Directory support (default yes)
855   --with-krb5=base-dir    Locate Kerberos 5 support (default=/usr)
856    --with-ldap  LDAP support (default yes)
857   --with-mysql-prefix=PFX   Prefix where MYSQL is installed (optional)
858   --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed (optional)
859   --with-xml-prefix=PFX   Prefix where libxml is installed (optional)
860   --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
861   --with-automount        Include AUTOMOUNT support (default=no)
862   --with-smbmount         Include SMBMOUNT (Linux only) support (default=no)
863   --with-pam              Include PAM support (default=no)
864   --with-pam_smbpass      Build a PAM module to allow other applications to use our smbpasswd file (default=no)
865   --with-sam              Build new (experimental) SAM database (default=no)
866   --with-ldapsam           Include LDAP SAM 2.2 compatible configuration (default=no)
867   --with-tdbsam           Include experimental TDB SAM support (default=no)
868   --with-nisplussam       Include NISPLUS SAM support (default=no)
869   --with-nisplus-home     Include NISPLUS_HOME support (default=no)
870   --with-syslog           Include experimental SYSLOG support (default=no)
871   --with-profiling-data   Include gathering source code profile information (default=no)
872   --with-quotas           Include experimental disk-quota support (default=no)
873   --with-utmp             Include experimental utmp accounting (default=no)
874   --with-manpages-langs={en,ja,pl}  Choose man pages' language(s). (en)
875   --with-libsmbclient     Build the libsmbclient shared library (default=yes)
876   --with-spinlocks        Use spin locks instead of fcntl locks (default=no)
877   --with-acl-support      Include ACL support (default=no)
878   --with-sendfile-support      Check for sendfile support (default=yes)
879   --with-winbind          Build winbind (default, if supported by OS)
880   --with-included-popt    use bundled popt library, not from system
881   --with-python=PYTHONNAME  build Python libraries
882
883 Some influential environment variables:
884   CC          C compiler command
885   CFLAGS      C compiler flags
886   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
887               nonstandard directory <lib dir>
888   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
889               headers in a nonstandard directory <include dir>
890   CPP         C preprocessor
891
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
894
895 _ACEOF
896 fi
897
898 if test "$ac_init_help" = "recursive"; then
899   # If there are subdirs, report their specific --help.
900   ac_popdir=`pwd`
901   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902     test -d $ac_dir || continue
903     ac_builddir=.
904
905 if test "$ac_dir" != .; then
906   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907   # A "../" for each directory in $ac_dir_suffix.
908   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
909 else
910   ac_dir_suffix= ac_top_builddir=
911 fi
912
913 case $srcdir in
914   .)  # No --srcdir option.  We are building in place.
915     ac_srcdir=.
916     if test -z "$ac_top_builddir"; then
917        ac_top_srcdir=.
918     else
919        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920     fi ;;
921   [\\/]* | ?:[\\/]* )  # Absolute path.
922     ac_srcdir=$srcdir$ac_dir_suffix;
923     ac_top_srcdir=$srcdir ;;
924   *) # Relative path.
925     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926     ac_top_srcdir=$ac_top_builddir$srcdir ;;
927 esac
928 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
929 # absolute.
930 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
931 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
932 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
933 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
934
935     cd $ac_dir
936     # Check for guested configure; otherwise get Cygnus style configure.
937     if test -f $ac_srcdir/configure.gnu; then
938       echo
939       $SHELL $ac_srcdir/configure.gnu  --help=recursive
940     elif test -f $ac_srcdir/configure; then
941       echo
942       $SHELL $ac_srcdir/configure  --help=recursive
943     elif test -f $ac_srcdir/configure.ac ||
944            test -f $ac_srcdir/configure.in; then
945       echo
946       $ac_configure --help
947     else
948       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
949     fi
950     cd $ac_popdir
951   done
952 fi
953
954 test -n "$ac_init_help" && exit 0
955 if $ac_init_version; then
956   cat <<\_ACEOF
957
958 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
959 Free Software Foundation, Inc.
960 This configure script is free software; the Free Software Foundation
961 gives unlimited permission to copy, distribute and modify it.
962 _ACEOF
963   exit 0
964 fi
965 exec 5>config.log
966 cat >&5 <<_ACEOF
967 This file contains any messages produced by compilers while
968 running configure, to aid debugging if configure makes a mistake.
969
970 It was created by $as_me, which was
971 generated by GNU Autoconf 2.53.  Invocation command line was
972
973   $ $0 $@
974
975 _ACEOF
976 {
977 cat <<_ASUNAME
978 ## --------- ##
979 ## Platform. ##
980 ## --------- ##
981
982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
987
988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
989 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
990
991 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
992 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
994 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
995 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
996 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
997 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
998
999 _ASUNAME
1000
1001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1002 for as_dir in $PATH
1003 do
1004   IFS=$as_save_IFS
1005   test -z "$as_dir" && as_dir=.
1006   echo "PATH: $as_dir"
1007 done
1008
1009 } >&5
1010
1011 cat >&5 <<_ACEOF
1012
1013
1014 ## ----------- ##
1015 ## Core tests. ##
1016 ## ----------- ##
1017
1018 _ACEOF
1019
1020
1021 # Keep a trace of the command line.
1022 # Strip out --no-create and --no-recursion so they do not pile up.
1023 # Also quote any args containing shell meta-characters.
1024 ac_configure_args=
1025 ac_sep=
1026 for ac_arg
1027 do
1028   case $ac_arg in
1029   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030   | --no-cr | --no-c | -n ) continue ;;
1031   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033     continue ;;
1034   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1036   esac
1037   case " $ac_configure_args " in
1038     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1039     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1040        ac_sep=" " ;;
1041   esac
1042   # Get rid of the leading space.
1043 done
1044
1045 # When interrupted or exit'd, cleanup temporary files, and complete
1046 # config.log.  We remove comments because anyway the quotes in there
1047 # would cause problems or look ugly.
1048 # WARNING: Be sure not to use single quotes in there, as some shells,
1049 # such as our DU 5.0 friend, will then `close' the trap.
1050 trap 'exit_status=$?
1051   # Save into config.log some information that might help in debugging.
1052   {
1053     echo
1054     cat <<\_ASBOX
1055 ## ---------------- ##
1056 ## Cache variables. ##
1057 ## ---------------- ##
1058 _ASBOX
1059     echo
1060     # The following way of writing the cache mishandles newlines in values,
1061 {
1062   (set) 2>&1 |
1063     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1064     *ac_space=\ *)
1065       sed -n \
1066         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1067           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1068       ;;
1069     *)
1070       sed -n \
1071         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1072       ;;
1073     esac;
1074 }
1075     echo
1076     if test -s confdefs.h; then
1077       cat <<\_ASBOX
1078 ## ----------- ##
1079 ## confdefs.h. ##
1080 ## ----------- ##
1081 _ASBOX
1082       echo
1083       sed "/^$/d" confdefs.h
1084       echo
1085     fi
1086     test "$ac_signal" != 0 &&
1087       echo "$as_me: caught signal $ac_signal"
1088     echo "$as_me: exit $exit_status"
1089   } >&5
1090   rm -f core core.* *.core &&
1091   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1092     exit $exit_status
1093      ' 0
1094 for ac_signal in 1 2 13 15; do
1095   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1096 done
1097 ac_signal=0
1098
1099 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1100 rm -rf conftest* confdefs.h
1101 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1102 echo >confdefs.h
1103
1104 # Predefined preprocessor variables.
1105
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_NAME "$PACKAGE_NAME"
1108 _ACEOF
1109
1110
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1113 _ACEOF
1114
1115
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1118 _ACEOF
1119
1120
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_STRING "$PACKAGE_STRING"
1123 _ACEOF
1124
1125
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1128 _ACEOF
1129
1130
1131 # Let the site file select an alternate cache file if it wants to.
1132 # Prefer explicitly selected file to automatically selected ones.
1133 if test -z "$CONFIG_SITE"; then
1134   if test "x$prefix" != xNONE; then
1135     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1136   else
1137     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1138   fi
1139 fi
1140 for ac_site_file in $CONFIG_SITE; do
1141   if test -r "$ac_site_file"; then
1142     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1143 echo "$as_me: loading site script $ac_site_file" >&6;}
1144     sed 's/^/| /' "$ac_site_file" >&5
1145     . "$ac_site_file"
1146   fi
1147 done
1148
1149 if test -r "$cache_file"; then
1150   # Some versions of bash will fail to source /dev/null (special
1151   # files actually), so we avoid doing that.
1152   if test -f "$cache_file"; then
1153     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1154 echo "$as_me: loading cache $cache_file" >&6;}
1155     case $cache_file in
1156       [\\/]* | ?:[\\/]* ) . $cache_file;;
1157       *)                      . ./$cache_file;;
1158     esac
1159   fi
1160 else
1161   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1162 echo "$as_me: creating cache $cache_file" >&6;}
1163   >$cache_file
1164 fi
1165
1166 # Check that the precious variables saved in the cache have kept the same
1167 # value.
1168 ac_cache_corrupted=false
1169 for ac_var in `(set) 2>&1 |
1170                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1171   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1172   eval ac_new_set=\$ac_env_${ac_var}_set
1173   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1174   eval ac_new_val="\$ac_env_${ac_var}_value"
1175   case $ac_old_set,$ac_new_set in
1176     set,)
1177       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1178 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1179       ac_cache_corrupted=: ;;
1180     ,set)
1181       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1182 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1183       ac_cache_corrupted=: ;;
1184     ,);;
1185     *)
1186       if test "x$ac_old_val" != "x$ac_new_val"; then
1187         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1188 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1189         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1190 echo "$as_me:   former value:  $ac_old_val" >&2;}
1191         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1192 echo "$as_me:   current value: $ac_new_val" >&2;}
1193         ac_cache_corrupted=:
1194       fi;;
1195   esac
1196   # Pass precious variables to config.status.
1197   if test "$ac_new_set" = set; then
1198     case $ac_new_val in
1199     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1200       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1201     *) ac_arg=$ac_var=$ac_new_val ;;
1202     esac
1203     case " $ac_configure_args " in
1204       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1205       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1206     esac
1207   fi
1208 done
1209 if $ac_cache_corrupted; then
1210   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1211 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1212   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1213 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1214    { (exit 1); exit 1; }; }
1215 fi
1216
1217 ac_ext=c
1218 ac_cpp='$CPP $CPPFLAGS'
1219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240 ac_config_headers="$ac_config_headers include/config.h"
1241
1242
1243 #################################################
1244 # Directory handling stuff to support both the
1245 # legacy SAMBA directories and FHS compliant
1246 # ones...
1247
1248
1249
1250 # Check whether --with-fhs or --without-fhs was given.
1251 if test "${with_fhs+set}" = set; then
1252   withval="$with_fhs"
1253   configdir="${sysconfdir}/samba"
1254     lockdir="\${VARDIR}/cache/samba"
1255     piddir="\$(VARDIR)/run/samba"
1256     logfilebase="\${VARDIR}/log/samba"
1257     privatedir="\${CONFIGDIR}/private"
1258     swatdir="\${DATADIR}/samba/swat"
1259 else
1260   configdir="\$(LIBDIR)"
1261     logfilebase="\$(VARDIR)"
1262     lockdir="\${VARDIR}/locks"
1263     piddir="\$(VARDIR)/locks"
1264     privatedir="\${prefix}/private"
1265     swatdir="\${prefix}/swat"
1266 fi;
1267
1268 #################################################
1269 # set private directory location
1270
1271 # Check whether --with-privatedir or --without-privatedir was given.
1272 if test "${with_privatedir+set}" = set; then
1273   withval="$with_privatedir"
1274    case "$withval" in
1275   yes|no)
1276   #
1277   # Just in case anybody calls it without argument
1278   #
1279     { echo "$as_me:$LINENO: WARNING: --with-privatedir called without argument - will use default" >&5
1280 echo "$as_me: WARNING: --with-privatedir called without argument - will use default" >&2;}
1281   ;;
1282   * )
1283     privatedir="$withval"
1284     ;;
1285   esac
1286 fi;
1287
1288 #################################################
1289 # set lock directory location
1290
1291 # Check whether --with-lockdir or --without-lockdir was given.
1292 if test "${with_lockdir+set}" = set; then
1293   withval="$with_lockdir"
1294    case "$withval" in
1295   yes|no)
1296   #
1297   # Just in case anybody calls it without argument
1298   #
1299     { echo "$as_me:$LINENO: WARNING: --with-lockdir called without argument - will use default" >&5
1300 echo "$as_me: WARNING: --with-lockdir called without argument - will use default" >&2;}
1301   ;;
1302   * )
1303     lockdir="$withval"
1304     ;;
1305   esac
1306 fi;
1307
1308 #################################################
1309 # set pid directory location
1310
1311 # Check whether --with-piddir or --without-piddir was given.
1312 if test "${with_piddir+set}" = set; then
1313   withval="$with_piddir"
1314    case "$withval" in
1315   yes|no)
1316   #
1317   # Just in case anybody calls it without argument
1318   #
1319     { echo "$as_me:$LINENO: WARNING: --with-piddir called without argument - will use default" >&5
1320 echo "$as_me: WARNING: --with-piddir called without argument - will use default" >&2;}
1321   ;;
1322   * )
1323     piddir="$withval"
1324     ;;
1325   esac
1326 fi;
1327
1328 #################################################
1329 # set SWAT directory location
1330
1331 # Check whether --with-swatdir or --without-swatdir was given.
1332 if test "${with_swatdir+set}" = set; then
1333   withval="$with_swatdir"
1334    case "$withval" in
1335   yes|no)
1336   #
1337   # Just in case anybody does it
1338   #
1339     { echo "$as_me:$LINENO: WARNING: --with-swatdir called without argument - will use default" >&5
1340 echo "$as_me: WARNING: --with-swatdir called without argument - will use default" >&2;}
1341   ;;
1342   * )
1343     swatdir="$withval"
1344     ;;
1345   esac
1346 fi;
1347
1348 #################################################
1349 # set configuration directory location
1350
1351 # Check whether --with-configdir or --without-configdir was given.
1352 if test "${with_configdir+set}" = set; then
1353   withval="$with_configdir"
1354    case "$withval" in
1355   yes|no)
1356   #
1357   # Just in case anybody does it
1358   #
1359     { echo "$as_me:$LINENO: WARNING: --with-configdir called without argument - will use default" >&5
1360 echo "$as_me: WARNING: --with-configdir called without argument - will use default" >&2;}
1361   ;;
1362   * )
1363     configdir="$withval"
1364     ;;
1365   esac
1366 fi;
1367
1368 #################################################
1369 # set log directory location
1370
1371 # Check whether --with-logfilebase or --without-logfilebase was given.
1372 if test "${with_logfilebase+set}" = set; then
1373   withval="$with_logfilebase"
1374    case "$withval" in
1375   yes|no)
1376   #
1377   # Just in case anybody does it
1378   #
1379     { echo "$as_me:$LINENO: WARNING: --with-logfilebase called without argument - will use default" >&5
1380 echo "$as_me: WARNING: --with-logfilebase called without argument - will use default" >&2;}
1381   ;;
1382   * )
1383     logfilebase="$withval"
1384     ;;
1385   esac
1386 fi;
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417 # compile with optimization and without debugging by default
1418 CFLAGS="-O ${CFLAGS}"
1419
1420 # Check whether --enable-debug or --disable-debug was given.
1421 if test "${enable_debug+set}" = set; then
1422   enableval="$enable_debug"
1423   if eval "test x$enable_debug = xyes"; then
1424         CFLAGS="${CFLAGS} -g"
1425     fi
1426 fi;
1427
1428 # Check whether --enable-developer or --disable-developer was given.
1429 if test "${enable_developer+set}" = set; then
1430   enableval="$enable_developer"
1431   if eval "test x$enable_developer = xyes"; then
1432         CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1433     fi
1434 fi;
1435
1436 # Check whether --enable-krb5developer or --disable-krb5developer was given.
1437 if test "${enable_krb5developer+set}" = set; then
1438   enableval="$enable_krb5developer"
1439   if eval "test x$enable_krb5developer = xyes"; then
1440         CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1441     fi
1442 fi;
1443
1444 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1445 if test "${enable_dmalloc+set}" = set; then
1446   enableval="$enable_dmalloc"
1447
1448 fi;
1449
1450 if test "x$enable_dmalloc" = xyes
1451 then
1452
1453 cat >>confdefs.h <<\_ACEOF
1454 #define ENABLE_DMALLOC 1
1455 _ACEOF
1456
1457
1458 cat >>confdefs.h <<\_ACEOF
1459 #define DMALLOC_FUNC_CHECK 1
1460 _ACEOF
1461
1462         LIBS="$LIBS -ldmalloc"
1463 fi
1464
1465 ac_ext=c
1466 ac_cpp='$CPP $CPPFLAGS'
1467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470 if test -n "$ac_tool_prefix"; then
1471   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1472 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1473 echo "$as_me:$LINENO: checking for $ac_word" >&5
1474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 if test "${ac_cv_prog_CC+set}" = set; then
1476   echo $ECHO_N "(cached) $ECHO_C" >&6
1477 else
1478   if test -n "$CC"; then
1479   ac_cv_prog_CC="$CC" # Let the user override the test.
1480 else
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 for as_dir in $PATH
1483 do
1484   IFS=$as_save_IFS
1485   test -z "$as_dir" && as_dir=.
1486   for ac_exec_ext in '' $ac_executable_extensions; do
1487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1490     break 2
1491   fi
1492 done
1493 done
1494
1495 fi
1496 fi
1497 CC=$ac_cv_prog_CC
1498 if test -n "$CC"; then
1499   echo "$as_me:$LINENO: result: $CC" >&5
1500 echo "${ECHO_T}$CC" >&6
1501 else
1502   echo "$as_me:$LINENO: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1504 fi
1505
1506 fi
1507 if test -z "$ac_cv_prog_CC"; then
1508   ac_ct_CC=$CC
1509   # Extract the first word of "gcc", so it can be a program name with args.
1510 set dummy gcc; ac_word=$2
1511 echo "$as_me:$LINENO: checking for $ac_word" >&5
1512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1513 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1514   echo $ECHO_N "(cached) $ECHO_C" >&6
1515 else
1516   if test -n "$ac_ct_CC"; then
1517   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1518 else
1519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1520 for as_dir in $PATH
1521 do
1522   IFS=$as_save_IFS
1523   test -z "$as_dir" && as_dir=.
1524   for ac_exec_ext in '' $ac_executable_extensions; do
1525   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1526     ac_cv_prog_ac_ct_CC="gcc"
1527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1528     break 2
1529   fi
1530 done
1531 done
1532
1533 fi
1534 fi
1535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1536 if test -n "$ac_ct_CC"; then
1537   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1538 echo "${ECHO_T}$ac_ct_CC" >&6
1539 else
1540   echo "$as_me:$LINENO: result: no" >&5
1541 echo "${ECHO_T}no" >&6
1542 fi
1543
1544   CC=$ac_ct_CC
1545 else
1546   CC="$ac_cv_prog_CC"
1547 fi
1548
1549 if test -z "$CC"; then
1550   if test -n "$ac_tool_prefix"; then
1551   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1552 set dummy ${ac_tool_prefix}cc; ac_word=$2
1553 echo "$as_me:$LINENO: checking for $ac_word" >&5
1554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555 if test "${ac_cv_prog_CC+set}" = set; then
1556   echo $ECHO_N "(cached) $ECHO_C" >&6
1557 else
1558   if test -n "$CC"; then
1559   ac_cv_prog_CC="$CC" # Let the user override the test.
1560 else
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 for as_dir in $PATH
1563 do
1564   IFS=$as_save_IFS
1565   test -z "$as_dir" && as_dir=.
1566   for ac_exec_ext in '' $ac_executable_extensions; do
1567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568     ac_cv_prog_CC="${ac_tool_prefix}cc"
1569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570     break 2
1571   fi
1572 done
1573 done
1574
1575 fi
1576 fi
1577 CC=$ac_cv_prog_CC
1578 if test -n "$CC"; then
1579   echo "$as_me:$LINENO: result: $CC" >&5
1580 echo "${ECHO_T}$CC" >&6
1581 else
1582   echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1584 fi
1585
1586 fi
1587 if test -z "$ac_cv_prog_CC"; then
1588   ac_ct_CC=$CC
1589   # Extract the first word of "cc", so it can be a program name with args.
1590 set dummy cc; ac_word=$2
1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1594   echo $ECHO_N "(cached) $ECHO_C" >&6
1595 else
1596   if test -n "$ac_ct_CC"; then
1597   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1598 else
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600 for as_dir in $PATH
1601 do
1602   IFS=$as_save_IFS
1603   test -z "$as_dir" && as_dir=.
1604   for ac_exec_ext in '' $ac_executable_extensions; do
1605   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606     ac_cv_prog_ac_ct_CC="cc"
1607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608     break 2
1609   fi
1610 done
1611 done
1612
1613 fi
1614 fi
1615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1616 if test -n "$ac_ct_CC"; then
1617   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1618 echo "${ECHO_T}$ac_ct_CC" >&6
1619 else
1620   echo "$as_me:$LINENO: result: no" >&5
1621 echo "${ECHO_T}no" >&6
1622 fi
1623
1624   CC=$ac_ct_CC
1625 else
1626   CC="$ac_cv_prog_CC"
1627 fi
1628
1629 fi
1630 if test -z "$CC"; then
1631   # Extract the first word of "cc", so it can be a program name with args.
1632 set dummy cc; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_CC+set}" = set; then
1636   echo $ECHO_N "(cached) $ECHO_C" >&6
1637 else
1638   if test -n "$CC"; then
1639   ac_cv_prog_CC="$CC" # Let the user override the test.
1640 else
1641   ac_prog_rejected=no
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643 for as_dir in $PATH
1644 do
1645   IFS=$as_save_IFS
1646   test -z "$as_dir" && as_dir=.
1647   for ac_exec_ext in '' $ac_executable_extensions; do
1648   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1650        ac_prog_rejected=yes
1651        continue
1652      fi
1653     ac_cv_prog_CC="cc"
1654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655     break 2
1656   fi
1657 done
1658 done
1659
1660 if test $ac_prog_rejected = yes; then
1661   # We found a bogon in the path, so make sure we never use it.
1662   set dummy $ac_cv_prog_CC
1663   shift
1664   if test $# != 0; then
1665     # We chose a different compiler from the bogus one.
1666     # However, it has the same basename, so the bogon will be chosen
1667     # first if we set CC to just the basename; use the full file name.
1668     shift
1669     set dummy "$as_dir/$ac_word" ${1+"$@"}
1670     shift
1671     ac_cv_prog_CC="$@"
1672   fi
1673 fi
1674 fi
1675 fi
1676 CC=$ac_cv_prog_CC
1677 if test -n "$CC"; then
1678   echo "$as_me:$LINENO: result: $CC" >&5
1679 echo "${ECHO_T}$CC" >&6
1680 else
1681   echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1683 fi
1684
1685 fi
1686 if test -z "$CC"; then
1687   if test -n "$ac_tool_prefix"; then
1688   for ac_prog in cl
1689   do
1690     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_CC+set}" = set; then
1695   echo $ECHO_N "(cached) $ECHO_C" >&6
1696 else
1697   if test -n "$CC"; then
1698   ac_cv_prog_CC="$CC" # Let the user override the test.
1699 else
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703   IFS=$as_save_IFS
1704   test -z "$as_dir" && as_dir=.
1705   for ac_exec_ext in '' $ac_executable_extensions; do
1706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709     break 2
1710   fi
1711 done
1712 done
1713
1714 fi
1715 fi
1716 CC=$ac_cv_prog_CC
1717 if test -n "$CC"; then
1718   echo "$as_me:$LINENO: result: $CC" >&5
1719 echo "${ECHO_T}$CC" >&6
1720 else
1721   echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1723 fi
1724
1725     test -n "$CC" && break
1726   done
1727 fi
1728 if test -z "$CC"; then
1729   ac_ct_CC=$CC
1730   for ac_prog in cl
1731 do
1732   # Extract the first word of "$ac_prog", so it can be a program name with args.
1733 set dummy $ac_prog; ac_word=$2
1734 echo "$as_me:$LINENO: checking for $ac_word" >&5
1735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737   echo $ECHO_N "(cached) $ECHO_C" >&6
1738 else
1739   if test -n "$ac_ct_CC"; then
1740   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1741 else
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 for as_dir in $PATH
1744 do
1745   IFS=$as_save_IFS
1746   test -z "$as_dir" && as_dir=.
1747   for ac_exec_ext in '' $ac_executable_extensions; do
1748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749     ac_cv_prog_ac_ct_CC="$ac_prog"
1750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751     break 2
1752   fi
1753 done
1754 done
1755
1756 fi
1757 fi
1758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759 if test -n "$ac_ct_CC"; then
1760   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761 echo "${ECHO_T}$ac_ct_CC" >&6
1762 else
1763   echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1765 fi
1766
1767   test -n "$ac_ct_CC" && break
1768 done
1769
1770   CC=$ac_ct_CC
1771 fi
1772
1773 fi
1774
1775
1776 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1777 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1778    { (exit 1); exit 1; }; }
1779
1780 # Provide some information about the compiler.
1781 echo "$as_me:$LINENO:" \
1782      "checking for C compiler version" >&5
1783 ac_compiler=`set X $ac_compile; echo $2`
1784 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1785   (eval $ac_compiler --version </dev/null >&5) 2>&5
1786   ac_status=$?
1787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788   (exit $ac_status); }
1789 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1790   (eval $ac_compiler -v </dev/null >&5) 2>&5
1791   ac_status=$?
1792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793   (exit $ac_status); }
1794 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1795   (eval $ac_compiler -V </dev/null >&5) 2>&5
1796   ac_status=$?
1797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798   (exit $ac_status); }
1799
1800 cat >conftest.$ac_ext <<_ACEOF
1801 #line $LINENO "configure"
1802 #include "confdefs.h"
1803
1804 #ifdef F77_DUMMY_MAIN
1805 #  ifdef __cplusplus
1806      extern "C"
1807 #  endif
1808    int F77_DUMMY_MAIN() { return 1; }
1809 #endif
1810 int
1811 main ()
1812 {
1813
1814   ;
1815   return 0;
1816 }
1817 _ACEOF
1818 ac_clean_files_save=$ac_clean_files
1819 ac_clean_files="$ac_clean_files a.out a.exe"
1820 # Try to create an executable without -o first, disregard a.out.
1821 # It will help us diagnose broken compilers, and finding out an intuition
1822 # of exeext.
1823 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1824 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1825 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1826 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1827   (eval $ac_link_default) 2>&5
1828   ac_status=$?
1829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1830   (exit $ac_status); }; then
1831   # Find the output, starting from the most likely.  This scheme is
1832 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1833 # resort.
1834
1835 # Be careful to initialize this variable, since it used to be cached.
1836 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1837 ac_cv_exeext=
1838 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1839                 ls a.out conftest 2>/dev/null;
1840                 ls a.* conftest.* 2>/dev/null`; do
1841   case $ac_file in
1842     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1843     a.out ) # We found the default executable, but exeext='' is most
1844             # certainly right.
1845             break;;
1846     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1847           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1848           export ac_cv_exeext
1849           break;;
1850     * ) break;;
1851   esac
1852 done
1853 else
1854   echo "$as_me: failed program was:" >&5
1855 cat conftest.$ac_ext >&5
1856 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1857 echo "$as_me: error: C compiler cannot create executables" >&2;}
1858    { (exit 77); exit 77; }; }
1859 fi
1860
1861 ac_exeext=$ac_cv_exeext
1862 echo "$as_me:$LINENO: result: $ac_file" >&5
1863 echo "${ECHO_T}$ac_file" >&6
1864
1865 # Check the compiler produces executables we can run.  If not, either
1866 # the compiler is broken, or we cross compile.
1867 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1868 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1869 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1870 # If not cross compiling, check that we can run a simple program.
1871 if test "$cross_compiling" != yes; then
1872   if { ac_try='./$ac_file'
1873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1874   (eval $ac_try) 2>&5
1875   ac_status=$?
1876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877   (exit $ac_status); }; }; then
1878     cross_compiling=no
1879   else
1880     if test "$cross_compiling" = maybe; then
1881         cross_compiling=yes
1882     else
1883         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1884 If you meant to cross compile, use \`--host'." >&5
1885 echo "$as_me: error: cannot run C compiled programs.
1886 If you meant to cross compile, use \`--host'." >&2;}
1887    { (exit 1); exit 1; }; }
1888     fi
1889   fi
1890 fi
1891 echo "$as_me:$LINENO: result: yes" >&5
1892 echo "${ECHO_T}yes" >&6
1893
1894 rm -f a.out a.exe conftest$ac_cv_exeext
1895 ac_clean_files=$ac_clean_files_save
1896 # Check the compiler produces executables we can run.  If not, either
1897 # the compiler is broken, or we cross compile.
1898 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1899 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1900 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1901 echo "${ECHO_T}$cross_compiling" >&6
1902
1903 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1904 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1906   (eval $ac_link) 2>&5
1907   ac_status=$?
1908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1909   (exit $ac_status); }; then
1910   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1911 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1912 # work properly (i.e., refer to `conftest.exe'), while it won't with
1913 # `rm'.
1914 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1915   case $ac_file in
1916     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1917     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1918           export ac_cv_exeext
1919           break;;
1920     * ) break;;
1921   esac
1922 done
1923 else
1924   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1925 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1926    { (exit 1); exit 1; }; }
1927 fi
1928
1929 rm -f conftest$ac_cv_exeext
1930 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1931 echo "${ECHO_T}$ac_cv_exeext" >&6
1932
1933 rm -f conftest.$ac_ext
1934 EXEEXT=$ac_cv_exeext
1935 ac_exeext=$EXEEXT
1936 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1937 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1938 if test "${ac_cv_objext+set}" = set; then
1939   echo $ECHO_N "(cached) $ECHO_C" >&6
1940 else
1941   cat >conftest.$ac_ext <<_ACEOF
1942 #line $LINENO "configure"
1943 #include "confdefs.h"
1944
1945 #ifdef F77_DUMMY_MAIN
1946 #  ifdef __cplusplus
1947      extern "C"
1948 #  endif
1949    int F77_DUMMY_MAIN() { return 1; }
1950 #endif
1951 int
1952 main ()
1953 {
1954
1955   ;
1956   return 0;
1957 }
1958 _ACEOF
1959 rm -f conftest.o conftest.obj
1960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1961   (eval $ac_compile) 2>&5
1962   ac_status=$?
1963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964   (exit $ac_status); }; then
1965   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1966   case $ac_file in
1967     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1968     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1969        break;;
1970   esac
1971 done
1972 else
1973   echo "$as_me: failed program was:" >&5
1974 cat conftest.$ac_ext >&5
1975 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1976 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1977    { (exit 1); exit 1; }; }
1978 fi
1979
1980 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1981 fi
1982 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1983 echo "${ECHO_T}$ac_cv_objext" >&6
1984 OBJEXT=$ac_cv_objext
1985 ac_objext=$OBJEXT
1986 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1987 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1988 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1989   echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991   cat >conftest.$ac_ext <<_ACEOF
1992 #line $LINENO "configure"
1993 #include "confdefs.h"
1994
1995 #ifdef F77_DUMMY_MAIN
1996 #  ifdef __cplusplus
1997      extern "C"
1998 #  endif
1999    int F77_DUMMY_MAIN() { return 1; }
2000 #endif
2001 int
2002 main ()
2003 {
2004 #ifndef __GNUC__
2005        choke me
2006 #endif
2007
2008   ;
2009   return 0;
2010 }
2011 _ACEOF
2012 rm -f conftest.$ac_objext
2013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2014   (eval $ac_compile) 2>&5
2015   ac_status=$?
2016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017   (exit $ac_status); } &&
2018          { ac_try='test -s conftest.$ac_objext'
2019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2020   (eval $ac_try) 2>&5
2021   ac_status=$?
2022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023   (exit $ac_status); }; }; then
2024   ac_compiler_gnu=yes
2025 else
2026   echo "$as_me: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2028 ac_compiler_gnu=no
2029 fi
2030 rm -f conftest.$ac_objext conftest.$ac_ext
2031 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2032
2033 fi
2034 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2035 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2036 GCC=`test $ac_compiler_gnu = yes && echo yes`
2037 ac_test_CFLAGS=${CFLAGS+set}
2038 ac_save_CFLAGS=$CFLAGS
2039 CFLAGS="-g"
2040 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2041 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2042 if test "${ac_cv_prog_cc_g+set}" = set; then
2043   echo $ECHO_N "(cached) $ECHO_C" >&6
2044 else
2045   cat >conftest.$ac_ext <<_ACEOF
2046 #line $LINENO "configure"
2047 #include "confdefs.h"
2048
2049 #ifdef F77_DUMMY_MAIN
2050 #  ifdef __cplusplus
2051      extern "C"
2052 #  endif
2053    int F77_DUMMY_MAIN() { return 1; }
2054 #endif
2055 int
2056 main ()
2057 {
2058
2059   ;
2060   return 0;
2061 }
2062 _ACEOF
2063 rm -f conftest.$ac_objext
2064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2065   (eval $ac_compile) 2>&5
2066   ac_status=$?
2067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068   (exit $ac_status); } &&
2069          { ac_try='test -s conftest.$ac_objext'
2070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2071   (eval $ac_try) 2>&5
2072   ac_status=$?
2073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074   (exit $ac_status); }; }; then
2075   ac_cv_prog_cc_g=yes
2076 else
2077   echo "$as_me: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2079 ac_cv_prog_cc_g=no
2080 fi
2081 rm -f conftest.$ac_objext conftest.$ac_ext
2082 fi
2083 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2084 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2085 if test "$ac_test_CFLAGS" = set; then
2086   CFLAGS=$ac_save_CFLAGS
2087 elif test $ac_cv_prog_cc_g = yes; then
2088   if test "$GCC" = yes; then
2089     CFLAGS="-g -O2"
2090   else
2091     CFLAGS="-g"
2092   fi
2093 else
2094   if test "$GCC" = yes; then
2095     CFLAGS="-O2"
2096   else
2097     CFLAGS=
2098   fi
2099 fi
2100 # Some people use a C++ compiler to compile C.  Since we use `exit',
2101 # in C++ we need to declare it.  In case someone uses the same compiler
2102 # for both compiling C and C++ we need to have the C++ compiler decide
2103 # the declaration of exit, since it's the most demanding environment.
2104 cat >conftest.$ac_ext <<_ACEOF
2105 #ifndef __cplusplus
2106   choke me
2107 #endif
2108 _ACEOF
2109 rm -f conftest.$ac_objext
2110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2111   (eval $ac_compile) 2>&5
2112   ac_status=$?
2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114   (exit $ac_status); } &&
2115          { ac_try='test -s conftest.$ac_objext'
2116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117   (eval $ac_try) 2>&5
2118   ac_status=$?
2119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120   (exit $ac_status); }; }; then
2121   for ac_declaration in \
2122    ''\
2123    '#include <stdlib.h>' \
2124    'extern "C" void std::exit (int) throw (); using std::exit;' \
2125    'extern "C" void std::exit (int); using std::exit;' \
2126    'extern "C" void exit (int) throw ();' \
2127    'extern "C" void exit (int);' \
2128    'void exit (int);'
2129 do
2130   cat >conftest.$ac_ext <<_ACEOF
2131 #line $LINENO "configure"
2132 #include "confdefs.h"
2133 #include <stdlib.h>
2134 $ac_declaration
2135 #ifdef F77_DUMMY_MAIN
2136 #  ifdef __cplusplus
2137      extern "C"
2138 #  endif
2139    int F77_DUMMY_MAIN() { return 1; }
2140 #endif
2141 int
2142 main ()
2143 {
2144 exit (42);
2145   ;
2146   return 0;
2147 }
2148 _ACEOF
2149 rm -f conftest.$ac_objext
2150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2151   (eval $ac_compile) 2>&5
2152   ac_status=$?
2153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154   (exit $ac_status); } &&
2155          { ac_try='test -s conftest.$ac_objext'
2156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157   (eval $ac_try) 2>&5
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); }; }; then
2161   :
2162 else
2163   echo "$as_me: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2165 continue
2166 fi
2167 rm -f conftest.$ac_objext conftest.$ac_ext
2168   cat >conftest.$ac_ext <<_ACEOF
2169 #line $LINENO "configure"
2170 #include "confdefs.h"
2171 $ac_declaration
2172 #ifdef F77_DUMMY_MAIN
2173 #  ifdef __cplusplus
2174      extern "C"
2175 #  endif
2176    int F77_DUMMY_MAIN() { return 1; }
2177 #endif
2178 int
2179 main ()
2180 {
2181 exit (42);
2182   ;
2183   return 0;
2184 }
2185 _ACEOF
2186 rm -f conftest.$ac_objext
2187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2188   (eval $ac_compile) 2>&5
2189   ac_status=$?
2190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191   (exit $ac_status); } &&
2192          { ac_try='test -s conftest.$ac_objext'
2193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194   (eval $ac_try) 2>&5
2195   ac_status=$?
2196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197   (exit $ac_status); }; }; then
2198   break
2199 else
2200   echo "$as_me: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2202 fi
2203 rm -f conftest.$ac_objext conftest.$ac_ext
2204 done
2205 rm -f conftest*
2206 if test -n "$ac_declaration"; then
2207   echo '#ifdef __cplusplus' >>confdefs.h
2208   echo $ac_declaration      >>confdefs.h
2209   echo '#endif'             >>confdefs.h
2210 fi
2211
2212 else
2213   echo "$as_me: failed program was:" >&5
2214 cat conftest.$ac_ext >&5
2215 fi
2216 rm -f conftest.$ac_objext conftest.$ac_ext
2217 ac_ext=c
2218 ac_cpp='$CPP $CPPFLAGS'
2219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2222
2223 ac_aux_dir=
2224 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2225   if test -f $ac_dir/install-sh; then
2226     ac_aux_dir=$ac_dir
2227     ac_install_sh="$ac_aux_dir/install-sh -c"
2228     break
2229   elif test -f $ac_dir/install.sh; then
2230     ac_aux_dir=$ac_dir
2231     ac_install_sh="$ac_aux_dir/install.sh -c"
2232     break
2233   elif test -f $ac_dir/shtool; then
2234     ac_aux_dir=$ac_dir
2235     ac_install_sh="$ac_aux_dir/shtool install -c"
2236     break
2237   fi
2238 done
2239 if test -z "$ac_aux_dir"; then
2240   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2241 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2242    { (exit 1); exit 1; }; }
2243 fi
2244 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2245 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2246 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2247
2248 # Find a good install program.  We prefer a C program (faster),
2249 # so one script is as good as another.  But avoid the broken or
2250 # incompatible versions:
2251 # SysV /etc/install, /usr/sbin/install
2252 # SunOS /usr/etc/install
2253 # IRIX /sbin/install
2254 # AIX /bin/install
2255 # AmigaOS /C/install, which installs bootblocks on floppy discs
2256 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2257 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2258 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2259 # ./install, which can be erroneously created by make from ./install.sh.
2260 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2261 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2262 if test -z "$INSTALL"; then
2263 if test "${ac_cv_path_install+set}" = set; then
2264   echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 for as_dir in $PATH
2268 do
2269   IFS=$as_save_IFS
2270   test -z "$as_dir" && as_dir=.
2271   # Account for people who put trailing slashes in PATH elements.
2272 case $as_dir/ in
2273   ./ | .// | /cC/* | \
2274   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2275   /usr/ucb/* ) ;;
2276   *)
2277     # OSF1 and SCO ODT 3.0 have their own names for install.
2278     # Don't use installbsd from OSF since it installs stuff as root
2279     # by default.
2280     for ac_prog in ginstall scoinst install; do
2281       for ac_exec_ext in '' $ac_executable_extensions; do
2282         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2283           if test $ac_prog = install &&
2284             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2285             # AIX install.  It has an incompatible calling convention.
2286             :
2287           elif test $ac_prog = install &&
2288             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2289             # program-specific install script used by HP pwplus--don't use.
2290             :
2291           else
2292             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2293             break 3
2294           fi
2295         fi
2296       done
2297     done
2298     ;;
2299 esac
2300 done
2301
2302
2303 fi
2304   if test "${ac_cv_path_install+set}" = set; then
2305     INSTALL=$ac_cv_path_install
2306   else
2307     # As a last resort, use the slow shell script.  We don't cache a
2308     # path for INSTALL within a source directory, because that will
2309     # break other packages using the cache if that directory is
2310     # removed, or if the path is relative.
2311     INSTALL=$ac_install_sh
2312   fi
2313 fi
2314 echo "$as_me:$LINENO: result: $INSTALL" >&5
2315 echo "${ECHO_T}$INSTALL" >&6
2316
2317 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2318 # It thinks the first close brace ends the variable substitution.
2319 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2320
2321 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2322
2323 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2324
2325 for ac_prog in gawk mawk nawk awk
2326 do
2327   # Extract the first word of "$ac_prog", so it can be a program name with args.
2328 set dummy $ac_prog; ac_word=$2
2329 echo "$as_me:$LINENO: checking for $ac_word" >&5
2330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2331 if test "${ac_cv_prog_AWK+set}" = set; then
2332   echo $ECHO_N "(cached) $ECHO_C" >&6
2333 else
2334   if test -n "$AWK"; then
2335   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2336 else
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH
2339 do
2340   IFS=$as_save_IFS
2341   test -z "$as_dir" && as_dir=.
2342   for ac_exec_ext in '' $ac_executable_extensions; do
2343   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2344     ac_cv_prog_AWK="$ac_prog"
2345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346     break 2
2347   fi
2348 done
2349 done
2350
2351 fi
2352 fi
2353 AWK=$ac_cv_prog_AWK
2354 if test -n "$AWK"; then
2355   echo "$as_me:$LINENO: result: $AWK" >&5
2356 echo "${ECHO_T}$AWK" >&6
2357 else
2358   echo "$as_me:$LINENO: result: no" >&5
2359 echo "${ECHO_T}no" >&6
2360 fi
2361
2362   test -n "$AWK" && break
2363 done
2364
2365
2366 LD=ld
2367 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2368 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2369 if test "${ac_cv_prog_gnu_ld+set}" = set; then
2370   echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2373 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2374   ac_cv_prog_gnu_ld=yes
2375 else
2376   ac_cv_prog_gnu_ld=no
2377 fi
2378 fi
2379 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
2380 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
2381
2382
2383
2384 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2385 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2386 if test "${ac_cv_search_strerror+set}" = set; then
2387   echo $ECHO_N "(cached) $ECHO_C" >&6
2388 else
2389   ac_func_search_save_LIBS=$LIBS
2390 ac_cv_search_strerror=no
2391 cat >conftest.$ac_ext <<_ACEOF
2392 #line $LINENO "configure"
2393 #include "confdefs.h"
2394
2395 /* Override any gcc2 internal prototype to avoid an error.  */
2396 #ifdef __cplusplus
2397 extern "C"
2398 #endif
2399 /* We use char because int might match the return type of a gcc2
2400    builtin and then its argument prototype would still apply.  */
2401 char strerror ();
2402 #ifdef F77_DUMMY_MAIN
2403 #  ifdef __cplusplus
2404      extern "C"
2405 #  endif
2406    int F77_DUMMY_MAIN() { return 1; }
2407 #endif
2408 int
2409 main ()
2410 {
2411 strerror ();
2412   ;
2413   return 0;
2414 }
2415 _ACEOF
2416 rm -f conftest.$ac_objext conftest$ac_exeext
2417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2418   (eval $ac_link) 2>&5
2419   ac_status=$?
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); } &&
2422          { ac_try='test -s conftest$ac_exeext'
2423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424   (eval $ac_try) 2>&5
2425   ac_status=$?
2426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427   (exit $ac_status); }; }; then
2428   ac_cv_search_strerror="none required"
2429 else
2430   echo "$as_me: failed program was:" >&5
2431 cat conftest.$ac_ext >&5
2432 fi
2433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2434 if test "$ac_cv_search_strerror" = no; then
2435   for ac_lib in cposix; do
2436     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2437     cat >conftest.$ac_ext <<_ACEOF
2438 #line $LINENO "configure"
2439 #include "confdefs.h"
2440
2441 /* Override any gcc2 internal prototype to avoid an error.  */
2442 #ifdef __cplusplus
2443 extern "C"
2444 #endif
2445 /* We use char because int might match the return type of a gcc2
2446    builtin and then its argument prototype would still apply.  */
2447 char strerror ();
2448 #ifdef F77_DUMMY_MAIN
2449 #  ifdef __cplusplus
2450      extern "C"
2451 #  endif
2452    int F77_DUMMY_MAIN() { return 1; }
2453 #endif
2454 int
2455 main ()
2456 {
2457 strerror ();
2458   ;
2459   return 0;
2460 }
2461 _ACEOF
2462 rm -f conftest.$ac_objext conftest$ac_exeext
2463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2464   (eval $ac_link) 2>&5
2465   ac_status=$?
2466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467   (exit $ac_status); } &&
2468          { ac_try='test -s conftest$ac_exeext'
2469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470   (eval $ac_try) 2>&5
2471   ac_status=$?
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); }; }; then
2474   ac_cv_search_strerror="-l$ac_lib"
2475 break
2476 else
2477   echo "$as_me: failed program was:" >&5
2478 cat conftest.$ac_ext >&5
2479 fi
2480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2481   done
2482 fi
2483 LIBS=$ac_func_search_save_LIBS
2484 fi
2485 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2486 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2487 if test "$ac_cv_search_strerror" != no; then
2488   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2489
2490 fi
2491
2492
2493 if test "x$CC" != xcc; then
2494   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2495 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2496 else
2497   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2498 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2499 fi
2500 set dummy $CC; ac_cc=`echo $2 |
2501                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2502 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2503   echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505   cat >conftest.$ac_ext <<_ACEOF
2506 #line $LINENO "configure"
2507 #include "confdefs.h"
2508
2509 #ifdef F77_DUMMY_MAIN
2510 #  ifdef __cplusplus
2511      extern "C"
2512 #  endif
2513    int F77_DUMMY_MAIN() { return 1; }
2514 #endif
2515 int
2516 main ()
2517 {
2518
2519   ;
2520   return 0;
2521 }
2522 _ACEOF
2523 # Make sure it works both with $CC and with simple cc.
2524 # We do the test twice because some compilers refuse to overwrite an
2525 # existing .o file with -o, though they will create one.
2526 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2527 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528   (eval $ac_try) 2>&5
2529   ac_status=$?
2530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531   (exit $ac_status); } &&
2532    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533   (eval $ac_try) 2>&5
2534   ac_status=$?
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); };
2537 then
2538   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2539   if test "x$CC" != xcc; then
2540     # Test first that cc exists at all.
2541     if { ac_try='cc -c conftest.$ac_ext >&5'
2542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543   (eval $ac_try) 2>&5
2544   ac_status=$?
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); }; }; then
2547       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2548       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549   (eval $ac_try) 2>&5
2550   ac_status=$?
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); } &&
2553          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554   (eval $ac_try) 2>&5
2555   ac_status=$?
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); };
2558       then
2559         # cc works too.
2560         :
2561       else
2562         # cc exists but doesn't like -o.
2563         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2564       fi
2565     fi
2566   fi
2567 else
2568   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2569 fi
2570 rm -f conftest*
2571
2572 fi
2573 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2574   echo "$as_me:$LINENO: result: yes" >&5
2575 echo "${ECHO_T}yes" >&6
2576 else
2577   echo "$as_me:$LINENO: result: no" >&5
2578 echo "${ECHO_T}no" >&6
2579
2580 cat >>confdefs.h <<\_ACEOF
2581 #define NO_MINUS_C_MINUS_O 1
2582 _ACEOF
2583
2584 fi
2585
2586 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2587       BROKEN_CC=
2588 else
2589       BROKEN_CC=#
2590 fi
2591
2592
2593 echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
2594 echo $ECHO_N "checking that the C compiler understands volatile... $ECHO_C" >&6
2595 if test "${samba_cv_volatile+set}" = set; then
2596   echo $ECHO_N "(cached) $ECHO_C" >&6
2597 else
2598
2599     cat >conftest.$ac_ext <<_ACEOF
2600 #line $LINENO "configure"
2601 #include "confdefs.h"
2602 #include <sys/types.h>
2603 #ifdef F77_DUMMY_MAIN
2604 #  ifdef __cplusplus
2605      extern "C"
2606 #  endif
2607    int F77_DUMMY_MAIN() { return 1; }
2608 #endif
2609 int
2610 main ()
2611 {
2612 volatile int i = 0
2613   ;
2614   return 0;
2615 }
2616 _ACEOF
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619   (eval $ac_compile) 2>&5
2620   ac_status=$?
2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622   (exit $ac_status); } &&
2623          { ac_try='test -s conftest.$ac_objext'
2624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625   (eval $ac_try) 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); }; }; then
2629   samba_cv_volatile=yes
2630 else
2631   echo "$as_me: failed program was:" >&5
2632 cat conftest.$ac_ext >&5
2633 samba_cv_volatile=no
2634 fi
2635 rm -f conftest.$ac_objext conftest.$ac_ext
2636 fi
2637 echo "$as_me:$LINENO: result: $samba_cv_volatile" >&5
2638 echo "${ECHO_T}$samba_cv_volatile" >&6
2639 if test x"$samba_cv_volatile" = x"yes"; then
2640
2641 cat >>confdefs.h <<\_ACEOF
2642 #define HAVE_VOLATILE 1
2643 _ACEOF
2644
2645 fi
2646
2647
2648 # Make sure we can run config.sub.
2649 $ac_config_sub sun4 >/dev/null 2>&1 ||
2650   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2651 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2652    { (exit 1); exit 1; }; }
2653
2654 echo "$as_me:$LINENO: checking build system type" >&5
2655 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2656 if test "${ac_cv_build+set}" = set; then
2657   echo $ECHO_N "(cached) $ECHO_C" >&6
2658 else
2659   ac_cv_build_alias=$build_alias
2660 test -z "$ac_cv_build_alias" &&
2661   ac_cv_build_alias=`$ac_config_guess`
2662 test -z "$ac_cv_build_alias" &&
2663   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2664 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2665    { (exit 1); exit 1; }; }
2666 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2667   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2668 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2669    { (exit 1); exit 1; }; }
2670
2671 fi
2672 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2673 echo "${ECHO_T}$ac_cv_build" >&6
2674 build=$ac_cv_build
2675 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2676 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2677 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2678
2679
2680 echo "$as_me:$LINENO: checking host system type" >&5
2681 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2682 if test "${ac_cv_host+set}" = set; then
2683   echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685   ac_cv_host_alias=$host_alias
2686 test -z "$ac_cv_host_alias" &&
2687   ac_cv_host_alias=$ac_cv_build_alias
2688 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2689   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2690 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2691    { (exit 1); exit 1; }; }
2692
2693 fi
2694 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2695 echo "${ECHO_T}$ac_cv_host" >&6
2696 host=$ac_cv_host
2697 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2698 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2699 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2700
2701
2702 echo "$as_me:$LINENO: checking target system type" >&5
2703 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2704 if test "${ac_cv_target+set}" = set; then
2705   echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707   ac_cv_target_alias=$target_alias
2708 test "x$ac_cv_target_alias" = "x" &&
2709   ac_cv_target_alias=$ac_cv_host_alias
2710 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2711   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2712 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2713    { (exit 1); exit 1; }; }
2714
2715 fi
2716 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2717 echo "${ECHO_T}$ac_cv_target" >&6
2718 target=$ac_cv_target
2719 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2720 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2721 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2722
2723
2724 # The aliases save the names the user supplied, while $host etc.
2725 # will get canonicalized.
2726 test -n "$target_alias" &&
2727   test "$program_prefix$program_suffix$program_transform_name" = \
2728     NONENONEs,x,x, &&
2729   program_prefix=${target_alias}-
2730
2731   case "$host_os" in
2732         *irix6*) cat >> confdefs.h <<\EOF
2733 #include <standards.h>
2734 EOF
2735
2736         ;;
2737 esac
2738
2739
2740
2741     echo "$as_me:$LINENO: checking config.cache system type" >&5
2742 echo $ECHO_N "checking config.cache system type... $ECHO_C" >&6
2743     if { test x"${ac_cv_host_system_type+set}" = x"set" &&
2744          test x"$ac_cv_host_system_type" != x"$host"; } ||
2745        { test x"${ac_cv_build_system_type+set}" = x"set" &&
2746          test x"$ac_cv_build_system_type" != x"$build"; } ||
2747        { test x"${ac_cv_target_system_type+set}" = x"set" &&
2748          test x"$ac_cv_target_system_type" != x"$target"; }; then
2749         echo "$as_me:$LINENO: result: different" >&5
2750 echo "${ECHO_T}different" >&6
2751         { { echo "$as_me:$LINENO: error: \"you must remove config.cache and restart configure\"" >&5
2752 echo "$as_me: error: \"you must remove config.cache and restart configure\"" >&2;}
2753    { (exit 1); exit 1; }; }
2754     else
2755         echo "$as_me:$LINENO: result: same" >&5
2756 echo "${ECHO_T}same" >&6
2757     fi
2758     ac_cv_host_system_type="$host"
2759     ac_cv_build_system_type="$build"
2760     ac_cv_target_system_type="$target"
2761
2762
2763 DYNEXP=
2764
2765 #
2766 # Config CPPFLAG settings for strange OS's that must be set
2767 # before other tests.
2768 #
2769 case "$host_os" in
2770 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
2771     *hpux*)
2772
2773       echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Ae" >&5
2774 echo $ECHO_N "checking whether ${CC-cc} accepts -Ae... $ECHO_C" >&6
2775 if test "${ac_cv_prog_cc_Ae+set}" = set; then
2776   echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778   echo 'void f(){}' > conftest.c
2779 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
2780   ac_cv_prog_cc_Ae=yes
2781 else
2782   ac_cv_prog_cc_Ae=no
2783 fi
2784 rm -f conftest*
2785
2786 fi
2787 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_Ae" >&5
2788 echo "${ECHO_T}$ac_cv_prog_cc_Ae" >&6
2789       # mmap on HPUX is completely broken...
2790
2791 cat >>confdefs.h <<\_ACEOF
2792 #define MMAP_BLACKLIST 1
2793 _ACEOF
2794
2795       if test $ac_cv_prog_cc_Ae = yes; then
2796         CPPFLAGS="$CPPFLAGS -Ae"
2797       fi
2798 #
2799 # Defines needed for HPUX support.
2800 # HPUX has bigcrypt but (sometimes?) doesn't use it for
2801 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
2802 #
2803       case `uname -r` in
2804                         *9*|*10*)
2805                                 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2806
2807 cat >>confdefs.h <<\_ACEOF
2808 #define USE_BOTH_CRYPT_CALLS 1
2809 _ACEOF
2810
2811
2812 cat >>confdefs.h <<\_ACEOF
2813 #define _HPUX_SOURCE 1
2814 _ACEOF
2815
2816
2817 cat >>confdefs.h <<\_ACEOF
2818 #define _POSIX_SOURCE 1
2819 _ACEOF
2820
2821
2822 cat >>confdefs.h <<\_ACEOF
2823 #define _ALIGNMENT_REQUIRED 1
2824 _ACEOF
2825
2826
2827 cat >>confdefs.h <<\_ACEOF
2828 #define _MAX_ALIGNMENT 4
2829 _ACEOF
2830
2831                                 ;;
2832                         *11*)
2833                                 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2834
2835 cat >>confdefs.h <<\_ACEOF
2836 #define USE_BOTH_CRYPT_CALLS 1
2837 _ACEOF
2838
2839
2840 cat >>confdefs.h <<\_ACEOF
2841 #define _HPUX_SOURCE 1
2842 _ACEOF
2843
2844
2845 cat >>confdefs.h <<\_ACEOF
2846 #define _POSIX_SOURCE 1
2847 _ACEOF
2848
2849
2850 cat >>confdefs.h <<\_ACEOF
2851 #define _LARGEFILE64_SOURCE 1
2852 _ACEOF
2853
2854
2855 cat >>confdefs.h <<\_ACEOF
2856 #define _ALIGNMENT_REQUIRED 1
2857 _ACEOF
2858
2859
2860 cat >>confdefs.h <<\_ACEOF
2861 #define _MAX_ALIGNMENT 4
2862 _ACEOF
2863
2864                                 ;;
2865       esac
2866       DYNEXP="-Wl,-E"
2867       ;;
2868
2869 #
2870 # CRAY Unicos has broken const handling
2871        *unicos*)
2872           echo "$as_me:$LINENO: result: disabling const" >&5
2873 echo "${ECHO_T}disabling const" >&6
2874           CPPFLAGS="$CPPFLAGS -Dconst="
2875           ;;
2876
2877 #
2878 # AIX4.x doesn't even admit to having large
2879 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
2880 #
2881     *aix4*)
2882           echo "$as_me:$LINENO: result: enabling large file support" >&5
2883 echo "${ECHO_T}enabling large file support" >&6
2884       CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
2885
2886 cat >>confdefs.h <<\_ACEOF
2887 #define _LARGE_FILES 1
2888 _ACEOF
2889
2890       ;;
2891 #
2892 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
2893 # to the existance of large files..
2894 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
2895 # recommendations on large file support, however it makes the
2896 # compile work using gcc 2.7 and 2.8, whereas using the Sun
2897 # recommendation makes the compile fail on gcc2.7. JRA.
2898 #
2899         *solaris*)
2900                 case `uname -r` in
2901                         5.0*|5.1*|5.2*|5.3*|5.5*)
2902                                 echo "$as_me:$LINENO: result: no large file support" >&5
2903 echo "${ECHO_T}no large file support" >&6
2904                                 ;;
2905                         5.*)
2906                         echo "$as_me:$LINENO: result: enabling large file support" >&5
2907 echo "${ECHO_T}enabling large file support" >&6
2908                         if test "$ac_cv_c_compiler_gnu" = yes; then
2909                                 ${CC-cc} -v >conftest.c 2>&1
2910                                 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
2911                                 rm -fr conftest.c
2912                                 case "$ac_cv_gcc_compiler_version_number" in
2913                                         *"gcc version 2.6"*|*"gcc version 2.7"*)
2914                                                 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
2915
2916 cat >>confdefs.h <<\_ACEOF
2917 #define _LARGEFILE64_SOURCE 1
2918 _ACEOF
2919
2920                                                 ;;
2921                                         *)
2922                                                 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2923
2924 cat >>confdefs.h <<\_ACEOF
2925 #define _LARGEFILE64_SOURCE 1
2926 _ACEOF
2927
2928
2929 cat >>confdefs.h <<\_ACEOF
2930 #define _FILE_OFFSET_BITS 64
2931 _ACEOF
2932
2933                                                 ;;
2934                                 esac
2935                         else
2936                                 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2937
2938 cat >>confdefs.h <<\_ACEOF
2939 #define _LARGEFILE64_SOURCE 1
2940 _ACEOF
2941
2942
2943 cat >>confdefs.h <<\_ACEOF
2944 #define _FILE_OFFSET_BITS 64
2945 _ACEOF
2946
2947                         fi
2948                         ;;
2949                 esac
2950                 ;;
2951 #
2952 # Tests needed for SINIX large file support.
2953 #
2954     *sysv4*)
2955       if test $host = mips-sni-sysv4 ; then
2956         echo "$as_me:$LINENO: checking for LFS support" >&5
2957 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
2958         old_CPPFLAGS="$CPPFLAGS"
2959         CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
2960         if test "$cross_compiling" = yes; then
2961   SINIX_LFS_SUPPORT=cross
2962 else
2963   cat >conftest.$ac_ext <<_ACEOF
2964 #line $LINENO "configure"
2965 #include "confdefs.h"
2966
2967 #include <unistd.h>
2968 main () {
2969 #if _LFS64_LARGEFILE == 1
2970 exit(0);
2971 #else
2972 exit(1);
2973 #endif
2974 }
2975 _ACEOF
2976 rm -f conftest$ac_exeext
2977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2978   (eval $ac_link) 2>&5
2979   ac_status=$?
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983   (eval $ac_try) 2>&5
2984   ac_status=$?
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); }; }; then
2987   SINIX_LFS_SUPPORT=yes
2988 else
2989   echo "$as_me: program exited with status $ac_status" >&5
2990 echo "$as_me: failed program was:" >&5
2991 cat conftest.$ac_ext >&5
2992 ( exit $ac_status )
2993 SINIX_LFS_SUPPORT=no
2994 fi
2995 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2996 fi
2997         CPPFLAGS="$old_CPPFLAGS"
2998         if test x$SINIX_LFS_SUPPORT = xyes ; then
2999           CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
3000
3001 cat >>confdefs.h <<\_ACEOF
3002 #define _LARGEFILE64_SOURCE 1
3003 _ACEOF
3004
3005           CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
3006           LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
3007           LIBS="`getconf LFS64_LIBS` $LIBS"
3008         fi
3009       echo "$as_me:$LINENO: result: $SINIX_LFS_SUPPORT" >&5
3010 echo "${ECHO_T}$SINIX_LFS_SUPPORT" >&6
3011       fi
3012     ;;
3013
3014 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
3015 #
3016     *linux*)
3017         echo "$as_me:$LINENO: checking for LFS support" >&5
3018 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3019         old_CPPFLAGS="$CPPFLAGS"
3020         CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3021        if test "$cross_compiling" = yes; then
3022   LINUX_LFS_SUPPORT=cross
3023 else
3024   cat >conftest.$ac_ext <<_ACEOF
3025 #line $LINENO "configure"
3026 #include "confdefs.h"
3027
3028 #include <unistd.h>
3029 #include <sys/utsname.h>
3030 main() {
3031 #if _LFS64_LARGEFILE == 1
3032        struct utsname uts;
3033        char *release;
3034        int major, minor;
3035
3036        /* Ensure this is glibc 2.2 or higher */
3037 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
3038        int libc_major = __GLIBC__;
3039        int libc_minor = __GLIBC_MINOR__;
3040
3041        if (libc_major < 2)
3042               exit(1);
3043        if (libc_minor < 2)
3044               exit(1);
3045 #endif
3046
3047        /* Ensure this is kernel 2.4 or higher */
3048
3049        uname(&uts);
3050        release = uts.release;
3051        major = atoi(strsep(&release, "."));
3052        minor = atoi(strsep(&release, "."));
3053
3054        if (major > 2 || (major == 2 && minor > 3))
3055                exit(0);
3056        exit(1);
3057 #else
3058        exit(1);
3059 #endif
3060 }
3061
3062 _ACEOF
3063 rm -f conftest$ac_exeext
3064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3065   (eval $ac_link) 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070   (eval $ac_try) 2>&5
3071   ac_status=$?
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); }; }; then
3074   LINUX_LFS_SUPPORT=yes
3075 else
3076   echo "$as_me: program exited with status $ac_status" >&5
3077 echo "$as_me: failed program was:" >&5
3078 cat conftest.$ac_ext >&5
3079 ( exit $ac_status )
3080 LINUX_LFS_SUPPORT=no
3081 fi
3082 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3083 fi
3084         CPPFLAGS="$old_CPPFLAGS"
3085         if test x$LINUX_LFS_SUPPORT = xyes ; then
3086           CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3087
3088 cat >>confdefs.h <<\_ACEOF
3089 #define _LARGEFILE64_SOURCE 1
3090 _ACEOF
3091
3092
3093 cat >>confdefs.h <<\_ACEOF
3094 #define _FILE_OFFSET_BITS 64
3095 _ACEOF
3096
3097
3098 cat >>confdefs.h <<\_ACEOF
3099 #define _GNU_SOURCE 1
3100 _ACEOF
3101
3102         fi
3103        echo "$as_me:$LINENO: result: $LINUX_LFS_SUPPORT" >&5
3104 echo "${ECHO_T}$LINUX_LFS_SUPPORT" >&6
3105                 ;;
3106
3107     *hurd*)
3108         echo "$as_me:$LINENO: checking for LFS support" >&5
3109 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3110         old_CPPFLAGS="$CPPFLAGS"
3111         CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3112         if test "$cross_compiling" = yes; then
3113   GLIBC_LFS_SUPPORT=cross
3114 else
3115   cat >conftest.$ac_ext <<_ACEOF
3116 #line $LINENO "configure"
3117 #include "confdefs.h"
3118
3119 #include <unistd.h>
3120 main () {
3121 #if _LFS64_LARGEFILE == 1
3122 exit(0);
3123 #else
3124 exit(1);
3125 #endif
3126 }
3127 _ACEOF
3128 rm -f conftest$ac_exeext
3129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3130   (eval $ac_link) 2>&5
3131   ac_status=$?
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135   (eval $ac_try) 2>&5
3136   ac_status=$?
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); }; }; then
3139   GLIBC_LFS_SUPPORT=yes
3140 else
3141   echo "$as_me: program exited with status $ac_status" >&5
3142 echo "$as_me: failed program was:" >&5
3143 cat conftest.$ac_ext >&5
3144 ( exit $ac_status )
3145 GLIBC_LFS_SUPPORT=no
3146 fi
3147 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3148 fi
3149         CPPFLAGS="$old_CPPFLAGS"
3150         if test x$GLIBC_LFS_SUPPORT = xyes ; then
3151           CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3152
3153 cat >>confdefs.h <<\_ACEOF
3154 #define _LARGEFILE64_SOURCE 1
3155 _ACEOF
3156
3157
3158 cat >>confdefs.h <<\_ACEOF
3159 #define _GNU_SOURCE 1
3160 _ACEOF
3161
3162         fi
3163       echo "$as_me:$LINENO: result: $GLIBC_LFS_SUPPORT" >&5
3164 echo "${ECHO_T}$GLIBC_LFS_SUPPORT" >&6
3165     ;;
3166
3167 esac
3168
3169 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3170 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3171 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3172   echo $ECHO_N "(cached) $ECHO_C" >&6
3173 else
3174   ac_cv_prog_cc_stdc=no
3175 ac_save_CC=$CC
3176 cat >conftest.$ac_ext <<_ACEOF
3177 #line $LINENO "configure"
3178 #include "confdefs.h"
3179 #include <stdarg.h>
3180 #include <stdio.h>
3181 #include <sys/types.h>
3182 #include <sys/stat.h>
3183 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3184 struct buf { int x; };
3185 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3186 static char *e (p, i)
3187      char **p;
3188      int i;
3189 {
3190   return p[i];
3191 }
3192 static char *f (char * (*g) (char **, int), char **p, ...)
3193 {
3194   char *s;
3195   va_list v;
3196   va_start (v,p);
3197   s = g (p, va_arg (v,int));
3198   va_end (v);
3199   return s;
3200 }
3201 int test (int i, double x);
3202 struct s1 {int (*f) (int a);};
3203 struct s2 {int (*f) (double a);};
3204 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3205 int argc;
3206 char **argv;
3207 #ifdef F77_DUMMY_MAIN
3208 #  ifdef __cplusplus
3209      extern "C"
3210 #  endif
3211    int F77_DUMMY_MAIN() { return 1; }
3212 #endif
3213 int
3214 main ()
3215 {
3216 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3217   ;
3218   return 0;
3219 }
3220 _ACEOF
3221 # Don't try gcc -ansi; that turns off useful extensions and
3222 # breaks some systems' header files.
3223 # AIX                   -qlanglvl=ansi
3224 # Ultrix and OSF/1      -std1
3225 # HP-UX 10.20 and later -Ae
3226 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3227 # SVR4                  -Xc -D__EXTENSIONS__
3228 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3229 do
3230   CC="$ac_save_CC $ac_arg"
3231   rm -f conftest.$ac_objext
3232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3233   (eval $ac_compile) 2>&5
3234   ac_status=$?
3235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236   (exit $ac_status); } &&
3237          { ac_try='test -s conftest.$ac_objext'
3238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239   (eval $ac_try) 2>&5
3240   ac_status=$?
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); }; }; then
3243   ac_cv_prog_cc_stdc=$ac_arg
3244 break
3245 else
3246   echo "$as_me: failed program was:" >&5
3247 cat conftest.$ac_ext >&5
3248 fi
3249 rm -f conftest.$ac_objext
3250 done
3251 rm -f conftest.$ac_ext conftest.$ac_objext
3252 CC=$ac_save_CC
3253
3254 fi
3255
3256 case "x$ac_cv_prog_cc_stdc" in
3257   x|xno)
3258     echo "$as_me:$LINENO: result: none needed" >&5
3259 echo "${ECHO_T}none needed" >&6 ;;
3260   *)
3261     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3262 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3263     CC="$CC $ac_cv_prog_cc_stdc" ;;
3264 esac
3265
3266 echo "$as_me:$LINENO: checking for inline" >&5
3267 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3268 if test "${ac_cv_c_inline+set}" = set; then
3269   echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271   ac_cv_c_inline=no
3272 for ac_kw in inline __inline__ __inline; do
3273   cat >conftest.$ac_ext <<_ACEOF
3274 #line $LINENO "configure"
3275 #include "confdefs.h"
3276 #ifndef __cplusplus
3277 static $ac_kw int static_foo () {return 0; }
3278 $ac_kw int foo () {return 0; }
3279 #endif
3280
3281 _ACEOF
3282 rm -f conftest.$ac_objext
3283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3284   (eval $ac_compile) 2>&5
3285   ac_status=$?
3286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287   (exit $ac_status); } &&
3288          { ac_try='test -s conftest.$ac_objext'
3289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290   (eval $ac_try) 2>&5
3291   ac_status=$?
3292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293   (exit $ac_status); }; }; then
3294   ac_cv_c_inline=$ac_kw; break
3295 else
3296   echo "$as_me: failed program was:" >&5
3297 cat conftest.$ac_ext >&5
3298 fi
3299 rm -f conftest.$ac_objext conftest.$ac_ext
3300 done
3301
3302 fi
3303 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3304 echo "${ECHO_T}$ac_cv_c_inline" >&6
3305 case $ac_cv_c_inline in
3306   inline | yes) ;;
3307   no)
3308 cat >>confdefs.h <<\_ACEOF
3309 #define inline
3310 _ACEOF
3311  ;;
3312   *)  cat >>confdefs.h <<_ACEOF
3313 #define inline $ac_cv_c_inline
3314 _ACEOF
3315  ;;
3316 esac
3317
3318 ac_ext=c
3319 ac_cpp='$CPP $CPPFLAGS'
3320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3323 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3324 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3325 # On Suns, sometimes $CPP names a directory.
3326 if test -n "$CPP" && test -d "$CPP"; then
3327   CPP=
3328 fi
3329 if test -z "$CPP"; then
3330   if test "${ac_cv_prog_CPP+set}" = set; then
3331   echo $ECHO_N "(cached) $ECHO_C" >&6
3332 else
3333       # Double quotes because CPP needs to be expanded
3334     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3335     do
3336       ac_preproc_ok=false
3337 for ac_c_preproc_warn_flag in '' yes
3338 do
3339   # Use a header file that comes with gcc, so configuring glibc
3340   # with a fresh cross-compiler works.
3341   # On the NeXT, cc -E runs the code through the compiler's parser,
3342   # not just through cpp. "Syntax error" is here to catch this case.
3343   cat >conftest.$ac_ext <<_ACEOF
3344 #line $LINENO "configure"
3345 #include "confdefs.h"
3346 #include <assert.h>
3347                      Syntax error
3348 _ACEOF
3349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3350   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3351   ac_status=$?
3352   egrep -v '^ *\+' conftest.er1 >conftest.err
3353   rm -f conftest.er1
3354   cat conftest.err >&5
3355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356   (exit $ac_status); } >/dev/null; then
3357   if test -s conftest.err; then
3358     ac_cpp_err=$ac_c_preproc_warn_flag
3359   else
3360     ac_cpp_err=
3361   fi
3362 else
3363   ac_cpp_err=yes
3364 fi
3365 if test -z "$ac_cpp_err"; then
3366   :
3367 else
3368   echo "$as_me: failed program was:" >&5
3369   cat conftest.$ac_ext >&5
3370   # Broken: fails on valid input.
3371 continue
3372 fi
3373 rm -f conftest.err conftest.$ac_ext
3374
3375   # OK, works on sane cases.  Now check whether non-existent headers
3376   # can be detected and how.
3377   cat >conftest.$ac_ext <<_ACEOF
3378 #line $LINENO "configure"
3379 #include "confdefs.h"
3380 #include <ac_nonexistent.h>
3381 _ACEOF
3382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3383   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3384   ac_status=$?
3385   egrep -v '^ *\+' conftest.er1 >conftest.err
3386   rm -f conftest.er1
3387   cat conftest.err >&5
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); } >/dev/null; then
3390   if test -s conftest.err; then
3391     ac_cpp_err=$ac_c_preproc_warn_flag
3392   else
3393     ac_cpp_err=
3394   fi
3395 else
3396   ac_cpp_err=yes
3397 fi
3398 if test -z "$ac_cpp_err"; then
3399   # Broken: success on invalid input.
3400 continue
3401 else
3402   echo "$as_me: failed program was:" >&5
3403   cat conftest.$ac_ext >&5
3404   # Passes both tests.
3405 ac_preproc_ok=:
3406 break
3407 fi
3408 rm -f conftest.err conftest.$ac_ext
3409
3410 done
3411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3412 rm -f conftest.err conftest.$ac_ext
3413 if $ac_preproc_ok; then
3414   break
3415 fi
3416
3417     done
3418     ac_cv_prog_CPP=$CPP
3419
3420 fi
3421   CPP=$ac_cv_prog_CPP
3422 else
3423   ac_cv_prog_CPP=$CPP
3424 fi
3425 echo "$as_me:$LINENO: result: $CPP" >&5
3426 echo "${ECHO_T}$CPP" >&6
3427 ac_preproc_ok=false
3428 for ac_c_preproc_warn_flag in '' yes
3429 do
3430   # Use a header file that comes with gcc, so configuring glibc
3431   # with a fresh cross-compiler works.
3432   # On the NeXT, cc -E runs the code through the compiler's parser,
3433   # not just through cpp. "Syntax error" is here to catch this case.
3434   cat >conftest.$ac_ext <<_ACEOF
3435 #line $LINENO "configure"
3436 #include "confdefs.h"
3437 #include <assert.h>
3438                      Syntax error
3439 _ACEOF
3440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3441   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3442   ac_status=$?
3443   egrep -v '^ *\+' conftest.er1 >conftest.err
3444   rm -f conftest.er1
3445   cat conftest.err >&5
3446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447   (exit $ac_status); } >/dev/null; then
3448   if test -s conftest.err; then
3449     ac_cpp_err=$ac_c_preproc_warn_flag
3450   else
3451     ac_cpp_err=
3452   fi
3453 else
3454   ac_cpp_err=yes
3455 fi
3456 if test -z "$ac_cpp_err"; then
3457   :
3458 else
3459   echo "$as_me: failed program was:" >&5
3460   cat conftest.$ac_ext >&5
3461   # Broken: fails on valid input.
3462 continue
3463 fi
3464 rm -f conftest.err conftest.$ac_ext
3465
3466   # OK, works on sane cases.  Now check whether non-existent headers
3467   # can be detected and how.
3468   cat >conftest.$ac_ext <<_ACEOF
3469 #line $LINENO "configure"
3470 #include "confdefs.h"
3471 #include <ac_nonexistent.h>
3472 _ACEOF
3473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3474   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3475   ac_status=$?
3476   egrep -v '^ *\+' conftest.er1 >conftest.err
3477   rm -f conftest.er1
3478   cat conftest.err >&5
3479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480   (exit $ac_status); } >/dev/null; then
3481   if test -s conftest.err; then
3482     ac_cpp_err=$ac_c_preproc_warn_flag
3483   else
3484     ac_cpp_err=
3485   fi
3486 else
3487   ac_cpp_err=yes
3488 fi
3489 if test -z "$ac_cpp_err"; then
3490   # Broken: success on invalid input.
3491 continue
3492 else
3493   echo "$as_me: failed program was:" >&5
3494   cat conftest.$ac_ext >&5
3495   # Passes both tests.
3496 ac_preproc_ok=:
3497 break
3498 fi
3499 rm -f conftest.err conftest.$ac_ext
3500
3501 done
3502 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3503 rm -f conftest.err conftest.$ac_ext
3504 if $ac_preproc_ok; then
3505   :
3506 else
3507   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3508 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3509    { (exit 1); exit 1; }; }
3510 fi
3511
3512 ac_ext=c
3513 ac_cpp='$CPP $CPPFLAGS'
3514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517
3518
3519 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3520 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3521 if test "${ac_cv_header_stdc+set}" = set; then
3522   echo $ECHO_N "(cached) $ECHO_C" >&6
3523 else
3524   cat >conftest.$ac_ext <<_ACEOF
3525 #line $LINENO "configure"
3526 #include "confdefs.h"
3527 #include <stdlib.h>
3528 #include <stdarg.h>
3529 #include <string.h>
3530 #include <float.h>
3531
3532 _ACEOF
3533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3534   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3535   ac_status=$?
3536   egrep -v '^ *\+' conftest.er1 >conftest.err
3537   rm -f conftest.er1
3538   cat conftest.err >&5
3539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540   (exit $ac_status); } >/dev/null; then
3541   if test -s conftest.err; then
3542     ac_cpp_err=$ac_c_preproc_warn_flag
3543   else
3544     ac_cpp_err=
3545   fi
3546 else
3547   ac_cpp_err=yes
3548 fi
3549 if test -z "$ac_cpp_err"; then
3550   ac_cv_header_stdc=yes
3551 else
3552   echo "$as_me: failed program was:" >&5
3553   cat conftest.$ac_ext >&5
3554   ac_cv_header_stdc=no
3555 fi
3556 rm -f conftest.err conftest.$ac_ext
3557
3558 if test $ac_cv_header_stdc = yes; then
3559   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3560   cat >conftest.$ac_ext <<_ACEOF
3561 #line $LINENO "configure"
3562 #include "confdefs.h"
3563 #include <string.h>
3564
3565 _ACEOF
3566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3567   egrep "memchr" >/dev/null 2>&1; then
3568   :
3569 else
3570   ac_cv_header_stdc=no
3571 fi
3572 rm -f conftest*
3573
3574 fi
3575
3576 if test $ac_cv_header_stdc = yes; then
3577   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3578   cat >conftest.$ac_ext <<_ACEOF
3579 #line $LINENO "configure"
3580 #include "confdefs.h"
3581 #include <stdlib.h>
3582
3583 _ACEOF
3584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3585   egrep "free" >/dev/null 2>&1; then
3586   :
3587 else
3588   ac_cv_header_stdc=no
3589 fi
3590 rm -f conftest*
3591
3592 fi
3593
3594 if test $ac_cv_header_stdc = yes; then
3595   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3596   if test "$cross_compiling" = yes; then
3597   :
3598 else
3599   cat >conftest.$ac_ext <<_ACEOF
3600 #line $LINENO "configure"
3601 #include "confdefs.h"
3602 #include <ctype.h>
3603 #if ((' ' & 0x0FF) == 0x020)
3604 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3605 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3606 #else
3607 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3608                      || ('j' <= (c) && (c) <= 'r') \
3609                      || ('s' <= (c) && (c) <= 'z'))
3610 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3611 #endif
3612
3613 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3614 int
3615 main ()
3616 {
3617   int i;
3618   for (i = 0; i < 256; i++)
3619     if (XOR (islower (i), ISLOWER (i))
3620         || toupper (i) != TOUPPER (i))
3621       exit(2);
3622   exit (0);
3623 }
3624 _ACEOF
3625 rm -f conftest$ac_exeext
3626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3627   (eval $ac_link) 2>&5
3628   ac_status=$?
3629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632   (eval $ac_try) 2>&5
3633   ac_status=$?
3634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635   (exit $ac_status); }; }; then
3636   :
3637 else
3638   echo "$as_me: program exited with status $ac_status" >&5
3639 echo "$as_me: failed program was:" >&5
3640 cat conftest.$ac_ext >&5
3641 ( exit $ac_status )
3642 ac_cv_header_stdc=no
3643 fi
3644 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3645 fi
3646 fi
3647 fi
3648 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3649 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3650 if test $ac_cv_header_stdc = yes; then
3651
3652 cat >>confdefs.h <<\_ACEOF
3653 #define STDC_HEADERS 1
3654 _ACEOF
3655
3656 fi
3657
3658
3659
3660
3661
3662
3663 ac_header_dirent=no
3664 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3665   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3666 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3667 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3669   echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671   cat >conftest.$ac_ext <<_ACEOF
3672 #line $LINENO "configure"
3673 #include "confdefs.h"
3674 #include <sys/types.h>
3675 #include <$ac_hdr>
3676
3677 #ifdef F77_DUMMY_MAIN
3678 #  ifdef __cplusplus
3679      extern "C"
3680 #  endif
3681    int F77_DUMMY_MAIN() { return 1; }
3682 #endif
3683 int
3684 main ()
3685 {
3686 if ((DIR *) 0)
3687 return 0;
3688   ;
3689   return 0;
3690 }
3691 _ACEOF
3692 rm -f conftest.$ac_objext
3693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694   (eval $ac_compile) 2>&5
3695   ac_status=$?
3696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697   (exit $ac_status); } &&
3698          { ac_try='test -s conftest.$ac_objext'
3699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700   (eval $ac_try) 2>&5
3701   ac_status=$?
3702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703   (exit $ac_status); }; }; then
3704   eval "$as_ac_Header=yes"
3705 else
3706   echo "$as_me: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3708 eval "$as_ac_Header=no"
3709 fi
3710 rm -f conftest.$ac_objext conftest.$ac_ext
3711 fi
3712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3715   cat >>confdefs.h <<_ACEOF
3716 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3717 _ACEOF
3718
3719 ac_header_dirent=$ac_hdr; break
3720 fi
3721
3722 done
3723 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3724 if test $ac_header_dirent = dirent.h; then
3725   echo "$as_me:$LINENO: checking for library containing opendir" >&5
3726 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3727 if test "${ac_cv_search_opendir+set}" = set; then
3728   echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730   ac_func_search_save_LIBS=$LIBS
3731 ac_cv_search_opendir=no
3732 cat >conftest.$ac_ext <<_ACEOF
3733 #line $LINENO "configure"
3734 #include "confdefs.h"
3735
3736 /* Override any gcc2 internal prototype to avoid an error.  */
3737 #ifdef __cplusplus
3738 extern "C"
3739 #endif
3740 /* We use char because int might match the return type of a gcc2
3741    builtin and then its argument prototype would still apply.  */
3742 char opendir ();
3743 #ifdef F77_DUMMY_MAIN
3744 #  ifdef __cplusplus
3745      extern "C"
3746 #  endif
3747    int F77_DUMMY_MAIN() { return 1; }
3748 #endif
3749 int
3750 main ()
3751 {
3752 opendir ();
3753   ;
3754   return 0;
3755 }
3756 _ACEOF
3757 rm -f conftest.$ac_objext conftest$ac_exeext
3758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3759   (eval $ac_link) 2>&5
3760   ac_status=$?
3761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762   (exit $ac_status); } &&
3763          { ac_try='test -s conftest$ac_exeext'
3764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765   (eval $ac_try) 2>&5
3766   ac_status=$?
3767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768   (exit $ac_status); }; }; then
3769   ac_cv_search_opendir="none required"
3770 else
3771   echo "$as_me: failed program was:" >&5
3772 cat conftest.$ac_ext >&5
3773 fi
3774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3775 if test "$ac_cv_search_opendir" = no; then
3776   for ac_lib in dir; do
3777     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3778     cat >conftest.$ac_ext <<_ACEOF
3779 #line $LINENO "configure"
3780 #include "confdefs.h"
3781
3782 /* Override any gcc2 internal prototype to avoid an error.  */
3783 #ifdef __cplusplus
3784 extern "C"
3785 #endif
3786 /* We use char because int might match the return type of a gcc2
3787    builtin and then its argument prototype would still apply.  */
3788 char opendir ();
3789 #ifdef F77_DUMMY_MAIN
3790 #  ifdef __cplusplus
3791      extern "C"
3792 #  endif
3793    int F77_DUMMY_MAIN() { return 1; }
3794 #endif
3795 int
3796 main ()
3797 {
3798 opendir ();
3799   ;
3800   return 0;
3801 }
3802 _ACEOF
3803 rm -f conftest.$ac_objext conftest$ac_exeext
3804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3805   (eval $ac_link) 2>&5
3806   ac_status=$?
3807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808   (exit $ac_status); } &&
3809          { ac_try='test -s conftest$ac_exeext'
3810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811   (eval $ac_try) 2>&5
3812   ac_status=$?
3813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814   (exit $ac_status); }; }; then
3815   ac_cv_search_opendir="-l$ac_lib"
3816 break
3817 else
3818   echo "$as_me: failed program was:" >&5
3819 cat conftest.$ac_ext >&5
3820 fi
3821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3822   done
3823 fi
3824 LIBS=$ac_func_search_save_LIBS
3825 fi
3826 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3827 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3828 if test "$ac_cv_search_opendir" != no; then
3829   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3830
3831 fi
3832
3833 else
3834   echo "$as_me:$LINENO: checking for library containing opendir" >&5
3835 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3836 if test "${ac_cv_search_opendir+set}" = set; then
3837   echo $ECHO_N "(cached) $ECHO_C" >&6
3838 else
3839   ac_func_search_save_LIBS=$LIBS
3840 ac_cv_search_opendir=no
3841 cat >conftest.$ac_ext <<_ACEOF
3842 #line $LINENO "configure"
3843 #include "confdefs.h"
3844
3845 /* Override any gcc2 internal prototype to avoid an error.  */
3846 #ifdef __cplusplus
3847 extern "C"
3848 #endif
3849 /* We use char because int might match the return type of a gcc2
3850    builtin and then its argument prototype would still apply.  */
3851 char opendir ();
3852 #ifdef F77_DUMMY_MAIN
3853 #  ifdef __cplusplus
3854      extern "C"
3855 #  endif
3856    int F77_DUMMY_MAIN() { return 1; }
3857 #endif
3858 int
3859 main ()
3860 {
3861 opendir ();
3862   ;
3863   return 0;
3864 }
3865 _ACEOF
3866 rm -f conftest.$ac_objext conftest$ac_exeext
3867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3868   (eval $ac_link) 2>&5
3869   ac_status=$?
3870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871   (exit $ac_status); } &&
3872          { ac_try='test -s conftest$ac_exeext'
3873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874   (eval $ac_try) 2>&5
3875   ac_status=$?
3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); }; }; then
3878   ac_cv_search_opendir="none required"
3879 else
3880   echo "$as_me: failed program was:" >&5
3881 cat conftest.$ac_ext >&5
3882 fi
3883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3884 if test "$ac_cv_search_opendir" = no; then
3885   for ac_lib in x; do
3886     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3887     cat >conftest.$ac_ext <<_ACEOF
3888 #line $LINENO "configure"
3889 #include "confdefs.h"
3890
3891 /* Override any gcc2 internal prototype to avoid an error.  */
3892 #ifdef __cplusplus
3893 extern "C"
3894 #endif
3895 /* We use char because int might match the return type of a gcc2
3896    builtin and then its argument prototype would still apply.  */
3897 char opendir ();
3898 #ifdef F77_DUMMY_MAIN
3899 #  ifdef __cplusplus
3900      extern "C"
3901 #  endif
3902    int F77_DUMMY_MAIN() { return 1; }
3903 #endif
3904 int
3905 main ()
3906 {
3907 opendir ();
3908   ;
3909   return 0;
3910 }
3911 _ACEOF
3912 rm -f conftest.$ac_objext conftest$ac_exeext
3913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3914   (eval $ac_link) 2>&5
3915   ac_status=$?
3916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917   (exit $ac_status); } &&
3918          { ac_try='test -s conftest$ac_exeext'
3919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920   (eval $ac_try) 2>&5
3921   ac_status=$?
3922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923   (exit $ac_status); }; }; then
3924   ac_cv_search_opendir="-l$ac_lib"
3925 break
3926 else
3927   echo "$as_me: failed program was:" >&5
3928 cat conftest.$ac_ext >&5
3929 fi
3930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3931   done
3932 fi
3933 LIBS=$ac_func_search_save_LIBS
3934 fi
3935 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3936 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3937 if test "$ac_cv_search_opendir" != no; then
3938   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3939
3940 fi
3941
3942 fi
3943
3944 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3945 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3946 if test "${ac_cv_header_time+set}" = set; then
3947   echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949   cat >conftest.$ac_ext <<_ACEOF
3950 #line $LINENO "configure"
3951 #include "confdefs.h"
3952 #include <sys/types.h>
3953 #include <sys/time.h>
3954 #include <time.h>
3955
3956 #ifdef F77_DUMMY_MAIN
3957 #  ifdef __cplusplus
3958      extern "C"
3959 #  endif
3960    int F77_DUMMY_MAIN() { return 1; }
3961 #endif
3962 int
3963 main ()
3964 {
3965 if ((struct tm *) 0)
3966 return 0;
3967   ;
3968   return 0;
3969 }
3970 _ACEOF
3971 rm -f conftest.$ac_objext
3972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3973   (eval $ac_compile) 2>&5
3974   ac_status=$?
3975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976   (exit $ac_status); } &&
3977          { ac_try='test -s conftest.$ac_objext'
3978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979   (eval $ac_try) 2>&5
3980   ac_status=$?
3981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982   (exit $ac_status); }; }; then
3983   ac_cv_header_time=yes
3984 else
3985   echo "$as_me: failed program was:" >&5
3986 cat conftest.$ac_ext >&5
3987 ac_cv_header_time=no
3988 fi
3989 rm -f conftest.$ac_objext conftest.$ac_ext
3990 fi
3991 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3992 echo "${ECHO_T}$ac_cv_header_time" >&6
3993 if test $ac_cv_header_time = yes; then
3994
3995 cat >>confdefs.h <<\_ACEOF
3996 #define TIME_WITH_SYS_TIME 1
3997 _ACEOF
3998
3999 fi
4000
4001 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4002 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4003 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4004   echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006   cat >conftest.$ac_ext <<_ACEOF
4007 #line $LINENO "configure"
4008 #include "confdefs.h"
4009 #include <sys/types.h>
4010 #include <sys/wait.h>
4011 #ifndef WEXITSTATUS
4012 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4013 #endif
4014 #ifndef WIFEXITED
4015 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4016 #endif
4017
4018 #ifdef F77_DUMMY_MAIN
4019 #  ifdef __cplusplus
4020      extern "C"
4021 #  endif
4022    int F77_DUMMY_MAIN() { return 1; }
4023 #endif
4024 int
4025 main ()
4026 {
4027   int s;
4028   wait (&s);
4029   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4030   ;
4031   return 0;
4032 }
4033 _ACEOF
4034 rm -f conftest.$ac_objext
4035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4036   (eval $ac_compile) 2>&5
4037   ac_status=$?
4038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039   (exit $ac_status); } &&
4040          { ac_try='test -s conftest.$ac_objext'
4041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042   (eval $ac_try) 2>&5
4043   ac_status=$?
4044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045   (exit $ac_status); }; }; then
4046   ac_cv_header_sys_wait_h=yes
4047 else
4048   echo "$as_me: failed program was:" >&5
4049 cat conftest.$ac_ext >&5
4050 ac_cv_header_sys_wait_h=no
4051 fi
4052 rm -f conftest.$ac_objext conftest.$ac_ext
4053 fi
4054 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4055 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4056 if test $ac_cv_header_sys_wait_h = yes; then
4057
4058 cat >>confdefs.h <<\_ACEOF
4059 #define HAVE_SYS_WAIT_H 1
4060 _ACEOF
4061
4062 fi
4063
4064 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4075                   inttypes.h stdint.h unistd.h
4076 do
4077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4078 echo "$as_me:$LINENO: checking for $ac_header" >&5
4079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4081   echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083   cat >conftest.$ac_ext <<_ACEOF
4084 #line $LINENO "configure"
4085 #include "confdefs.h"
4086 $ac_includes_default
4087
4088 #include <$ac_header>
4089 _ACEOF
4090 rm -f conftest.$ac_objext
4091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4092   (eval $ac_compile) 2>&5
4093   ac_status=$?
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); } &&
4096          { ac_try='test -s conftest.$ac_objext'
4097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098   (eval $ac_try) 2>&5
4099   ac_status=$?
4100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101   (exit $ac_status); }; }; then
4102   eval "$as_ac_Header=yes"
4103 else
4104   echo "$as_me: failed program was:" >&5
4105 cat conftest.$ac_ext >&5
4106 eval "$as_ac_Header=no"
4107 fi
4108 rm -f conftest.$ac_objext conftest.$ac_ext
4109 fi
4110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4113   cat >>confdefs.h <<_ACEOF
4114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4115 _ACEOF
4116
4117 fi
4118
4119 done
4120
4121
4122
4123
4124
4125
4126
4127
4128 for ac_header in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
4129 do
4130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4132   echo "$as_me:$LINENO: checking for $ac_header" >&5
4133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4135   echo $ECHO_N "(cached) $ECHO_C" >&6
4136 fi
4137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4139 else
4140   # Is the header compilable?
4141 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4142 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4143 cat >conftest.$ac_ext <<_ACEOF
4144 #line $LINENO "configure"
4145 #include "confdefs.h"
4146 $ac_includes_default
4147 #include <$ac_header>
4148 _ACEOF
4149 rm -f conftest.$ac_objext
4150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151   (eval $ac_compile) 2>&5
4152   ac_status=$?
4153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); } &&
4155          { ac_try='test -s conftest.$ac_objext'
4156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157   (eval $ac_try) 2>&5
4158   ac_status=$?
4159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160   (exit $ac_status); }; }; then
4161   ac_header_compiler=yes
4162 else
4163   echo "$as_me: failed program was:" >&5
4164 cat conftest.$ac_ext >&5
4165 ac_header_compiler=no
4166 fi
4167 rm -f conftest.$ac_objext conftest.$ac_ext
4168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4169 echo "${ECHO_T}$ac_header_compiler" >&6
4170
4171 # Is the header present?
4172 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4174 cat >conftest.$ac_ext <<_ACEOF
4175 #line $LINENO "configure"
4176 #include "confdefs.h"
4177 #include <$ac_header>
4178 _ACEOF
4179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4180   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4181   ac_status=$?
4182   egrep -v '^ *\+' conftest.er1 >conftest.err
4183   rm -f conftest.er1
4184   cat conftest.err >&5
4185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186   (exit $ac_status); } >/dev/null; then
4187   if test -s conftest.err; then
4188     ac_cpp_err=$ac_c_preproc_warn_flag
4189   else
4190     ac_cpp_err=
4191   fi
4192 else
4193   ac_cpp_err=yes
4194 fi
4195 if test -z "$ac_cpp_err"; then
4196   ac_header_preproc=yes
4197 else
4198   echo "$as_me: failed program was:" >&5
4199   cat conftest.$ac_ext >&5
4200   ac_header_preproc=no
4201 fi
4202 rm -f conftest.err conftest.$ac_ext
4203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4204 echo "${ECHO_T}$ac_header_preproc" >&6
4205
4206 # So?  What about this header?
4207 case $ac_header_compiler:$ac_header_preproc in
4208   yes:no )
4209     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4211     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4213   no:yes )
4214     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4216     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4217 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4220 esac
4221 echo "$as_me:$LINENO: checking for $ac_header" >&5
4222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4224   echo $ECHO_N "(cached) $ECHO_C" >&6
4225 else
4226   eval "$as_ac_Header=$ac_header_preproc"
4227 fi
4228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4230
4231 fi
4232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4233   cat >>confdefs.h <<_ACEOF
4234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4235 _ACEOF
4236
4237 fi
4238
4239 done
4240
4241
4242
4243
4244
4245
4246
4247
4248 for ac_header in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
4249 do
4250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4252   echo "$as_me:$LINENO: checking for $ac_header" >&5
4253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4255   echo $ECHO_N "(cached) $ECHO_C" >&6
4256 fi
4257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4259 else
4260   # Is the header compilable?
4261 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4263 cat >conftest.$ac_ext <<_ACEOF
4264 #line $LINENO "configure"
4265 #include "confdefs.h"
4266 $ac_includes_default
4267 #include <$ac_header>
4268 _ACEOF
4269 rm -f conftest.$ac_objext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4271   (eval $ac_compile) 2>&5
4272   ac_status=$?
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); } &&
4275          { ac_try='test -s conftest.$ac_objext'
4276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277   (eval $ac_try) 2>&5
4278   ac_status=$?
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); }; }; then
4281   ac_header_compiler=yes
4282 else
4283   echo "$as_me: failed program was:" >&5
4284 cat conftest.$ac_ext >&5
4285 ac_header_compiler=no
4286 fi
4287 rm -f conftest.$ac_objext conftest.$ac_ext
4288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4289 echo "${ECHO_T}$ac_header_compiler" >&6
4290
4291 # Is the header present?
4292 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4294 cat >conftest.$ac_ext <<_ACEOF
4295 #line $LINENO "configure"
4296 #include "confdefs.h"
4297 #include <$ac_header>
4298 _ACEOF
4299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4300   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4301   ac_status=$?
4302   egrep -v '^ *\+' conftest.er1 >conftest.err
4303   rm -f conftest.er1
4304   cat conftest.err >&5
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); } >/dev/null; then
4307   if test -s conftest.err; then
4308     ac_cpp_err=$ac_c_preproc_warn_flag
4309   else
4310     ac_cpp_err=
4311   fi
4312 else
4313   ac_cpp_err=yes
4314 fi
4315 if test -z "$ac_cpp_err"; then
4316   ac_header_preproc=yes
4317 else
4318   echo "$as_me: failed program was:" >&5
4319   cat conftest.$ac_ext >&5
4320   ac_header_preproc=no
4321 fi
4322 rm -f conftest.err conftest.$ac_ext
4323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4324 echo "${ECHO_T}$ac_header_preproc" >&6
4325
4326 # So?  What about this header?
4327 case $ac_header_compiler:$ac_header_preproc in
4328   yes:no )
4329     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4331     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4333   no:yes )
4334     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4336     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4340 esac
4341 echo "$as_me:$LINENO: checking for $ac_header" >&5
4342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4344   echo $ECHO_N "(cached) $ECHO_C" >&6
4345 else
4346   eval "$as_ac_Header=$ac_header_preproc"
4347 fi
4348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4350
4351 fi
4352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4353   cat >>confdefs.h <<_ACEOF
4354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4355 _ACEOF
4356
4357 fi
4358
4359 done
4360
4361
4362
4363
4364
4365
4366 for ac_header in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
4367 do
4368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4370   echo "$as_me:$LINENO: checking for $ac_header" >&5
4371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4373   echo $ECHO_N "(cached) $ECHO_C" >&6
4374 fi
4375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4377 else
4378   # Is the header compilable?
4379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4381 cat >conftest.$ac_ext <<_ACEOF
4382 #line $LINENO "configure"
4383 #include "confdefs.h"
4384 $ac_includes_default
4385 #include <$ac_header>
4386 _ACEOF
4387 rm -f conftest.$ac_objext
4388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4389   (eval $ac_compile) 2>&5
4390   ac_status=$?
4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392   (exit $ac_status); } &&
4393          { ac_try='test -s conftest.$ac_objext'
4394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395   (eval $ac_try) 2>&5
4396   ac_status=$?
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); }; }; then
4399   ac_header_compiler=yes
4400 else
4401   echo "$as_me: failed program was:" >&5
4402 cat conftest.$ac_ext >&5
4403 ac_header_compiler=no
4404 fi
4405 rm -f conftest.$ac_objext conftest.$ac_ext
4406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4407 echo "${ECHO_T}$ac_header_compiler" >&6
4408
4409 # Is the header present?
4410 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4412 cat >conftest.$ac_ext <<_ACEOF
4413 #line $LINENO "configure"
4414 #include "confdefs.h"
4415 #include <$ac_header>
4416 _ACEOF
4417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4418   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4419   ac_status=$?
4420   egrep -v '^ *\+' conftest.er1 >conftest.err
4421   rm -f conftest.er1
4422   cat conftest.err >&5
4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); } >/dev/null; then
4425   if test -s conftest.err; then
4426     ac_cpp_err=$ac_c_preproc_warn_flag
4427   else
4428     ac_cpp_err=
4429   fi
4430 else
4431   ac_cpp_err=yes
4432 fi
4433 if test -z "$ac_cpp_err"; then
4434   ac_header_preproc=yes
4435 else
4436   echo "$as_me: failed program was:" >&5
4437   cat conftest.$ac_ext >&5
4438   ac_header_preproc=no
4439 fi
4440 rm -f conftest.err conftest.$ac_ext
4441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4442 echo "${ECHO_T}$ac_header_preproc" >&6
4443
4444 # So?  What about this header?
4445 case $ac_header_compiler:$ac_header_preproc in
4446   yes:no )
4447     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4449     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4451   no:yes )
4452     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4454     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4456     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4458 esac
4459 echo "$as_me:$LINENO: checking for $ac_header" >&5
4460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4462   echo $ECHO_N "(cached) $ECHO_C" >&6
4463 else
4464   eval "$as_ac_Header=$ac_header_preproc"
4465 fi
4466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4468
4469 fi
4470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4471   cat >>confdefs.h <<_ACEOF
4472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4473 _ACEOF
4474
4475 fi
4476
4477 done
4478
4479
4480
4481
4482
4483
4484
4485
4486 for ac_header in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
4487 do
4488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4490   echo "$as_me:$LINENO: checking for $ac_header" >&5
4491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4493   echo $ECHO_N "(cached) $ECHO_C" >&6
4494 fi
4495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4497 else
4498   # Is the header compilable?
4499 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4501 cat >conftest.$ac_ext <<_ACEOF
4502 #line $LINENO "configure"
4503 #include "confdefs.h"
4504 $ac_includes_default
4505 #include <$ac_header>
4506 _ACEOF
4507 rm -f conftest.$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509   (eval $ac_compile) 2>&5
4510   ac_status=$?
4511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512   (exit $ac_status); } &&
4513          { ac_try='test -s conftest.$ac_objext'
4514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515   (eval $ac_try) 2>&5
4516   ac_status=$?
4517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518   (exit $ac_status); }; }; then
4519   ac_header_compiler=yes
4520 else
4521   echo "$as_me: failed program was:" >&5
4522 cat conftest.$ac_ext >&5
4523 ac_header_compiler=no
4524 fi
4525 rm -f conftest.$ac_objext conftest.$ac_ext
4526 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4527 echo "${ECHO_T}$ac_header_compiler" >&6
4528
4529 # Is the header present?
4530 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4532 cat >conftest.$ac_ext <<_ACEOF
4533 #line $LINENO "configure"
4534 #include "confdefs.h"
4535 #include <$ac_header>
4536 _ACEOF
4537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4538   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4539   ac_status=$?
4540   egrep -v '^ *\+' conftest.er1 >conftest.err
4541   rm -f conftest.er1
4542   cat conftest.err >&5
4543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544   (exit $ac_status); } >/dev/null; then
4545   if test -s conftest.err; then
4546     ac_cpp_err=$ac_c_preproc_warn_flag
4547   else
4548     ac_cpp_err=
4549   fi
4550 else
4551   ac_cpp_err=yes
4552 fi
4553 if test -z "$ac_cpp_err"; then
4554   ac_header_preproc=yes
4555 else
4556   echo "$as_me: failed program was:" >&5
4557   cat conftest.$ac_ext >&5
4558   ac_header_preproc=no
4559 fi
4560 rm -f conftest.err conftest.$ac_ext
4561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4562 echo "${ECHO_T}$ac_header_preproc" >&6
4563
4564 # So?  What about this header?
4565 case $ac_header_compiler:$ac_header_preproc in
4566   yes:no )
4567     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4569     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4571   no:yes )
4572     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4574     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4576     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4578 esac
4579 echo "$as_me:$LINENO: checking for $ac_header" >&5
4580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4582   echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584   eval "$as_ac_Header=$ac_header_preproc"
4585 fi
4586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4588
4589 fi
4590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4591   cat >>confdefs.h <<_ACEOF
4592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4593 _ACEOF
4594
4595 fi
4596
4597 done
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607 for ac_header in sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h
4608 do
4609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4611   echo "$as_me:$LINENO: checking for $ac_header" >&5
4612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4614   echo $ECHO_N "(cached) $ECHO_C" >&6
4615 fi
4616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4618 else
4619   # Is the header compilable?
4620 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4622 cat >conftest.$ac_ext <<_ACEOF
4623 #line $LINENO "configure"
4624 #include "confdefs.h"
4625 $ac_includes_default
4626 #include <$ac_header>
4627 _ACEOF
4628 rm -f conftest.$ac_objext
4629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4630   (eval $ac_compile) 2>&5
4631   ac_status=$?
4632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633   (exit $ac_status); } &&
4634          { ac_try='test -s conftest.$ac_objext'
4635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636   (eval $ac_try) 2>&5
4637   ac_status=$?
4638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639   (exit $ac_status); }; }; then
4640   ac_header_compiler=yes
4641 else
4642   echo "$as_me: failed program was:" >&5
4643 cat conftest.$ac_ext >&5
4644 ac_header_compiler=no
4645 fi
4646 rm -f conftest.$ac_objext conftest.$ac_ext
4647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4648 echo "${ECHO_T}$ac_header_compiler" >&6
4649
4650 # Is the header present?
4651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4653 cat >conftest.$ac_ext <<_ACEOF
4654 #line $LINENO "configure"
4655 #include "confdefs.h"
4656 #include <$ac_header>
4657 _ACEOF
4658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4659   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4660   ac_status=$?
4661   egrep -v '^ *\+' conftest.er1 >conftest.err
4662   rm -f conftest.er1
4663   cat conftest.err >&5
4664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665   (exit $ac_status); } >/dev/null; then
4666   if test -s conftest.err; then
4667     ac_cpp_err=$ac_c_preproc_warn_flag
4668   else
4669     ac_cpp_err=
4670   fi
4671 else
4672   ac_cpp_err=yes
4673 fi
4674 if test -z "$ac_cpp_err"; then
4675   ac_header_preproc=yes
4676 else
4677   echo "$as_me: failed program was:" >&5
4678   cat conftest.$ac_ext >&5
4679   ac_header_preproc=no
4680 fi
4681 rm -f conftest.err conftest.$ac_ext
4682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4683 echo "${ECHO_T}$ac_header_preproc" >&6
4684
4685 # So?  What about this header?
4686 case $ac_header_compiler:$ac_header_preproc in
4687   yes:no )
4688     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4690     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4692   no:yes )
4693     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4695     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4697     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4699 esac
4700 echo "$as_me:$LINENO: checking for $ac_header" >&5
4701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4703   echo $ECHO_N "(cached) $ECHO_C" >&6
4704 else
4705   eval "$as_ac_Header=$ac_header_preproc"
4706 fi
4707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4709
4710 fi
4711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4712   cat >>confdefs.h <<_ACEOF
4713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4714 _ACEOF
4715
4716 fi
4717
4718 done
4719
4720
4721
4722
4723
4724
4725
4726 for ac_header in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
4727 do
4728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4730   echo "$as_me:$LINENO: checking for $ac_header" >&5
4731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4733   echo $ECHO_N "(cached) $ECHO_C" >&6
4734 fi
4735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4737 else
4738   # Is the header compilable?
4739 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4741 cat >conftest.$ac_ext <<_ACEOF
4742 #line $LINENO "configure"
4743 #include "confdefs.h"
4744 $ac_includes_default
4745 #include <$ac_header>
4746 _ACEOF
4747 rm -f conftest.$ac_objext
4748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4749   (eval $ac_compile) 2>&5
4750   ac_status=$?
4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); } &&
4753          { ac_try='test -s conftest.$ac_objext'
4754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755   (eval $ac_try) 2>&5
4756   ac_status=$?
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); }; }; then
4759   ac_header_compiler=yes
4760 else
4761   echo "$as_me: failed program was:" >&5
4762 cat conftest.$ac_ext >&5
4763 ac_header_compiler=no
4764 fi
4765 rm -f conftest.$ac_objext conftest.$ac_ext
4766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4767 echo "${ECHO_T}$ac_header_compiler" >&6
4768
4769 # Is the header present?
4770 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4772 cat >conftest.$ac_ext <<_ACEOF
4773 #line $LINENO "configure"
4774 #include "confdefs.h"
4775 #include <$ac_header>
4776 _ACEOF
4777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4778   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4779   ac_status=$?
4780   egrep -v '^ *\+' conftest.er1 >conftest.err
4781   rm -f conftest.er1
4782   cat conftest.err >&5
4783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784   (exit $ac_status); } >/dev/null; then
4785   if test -s conftest.err; then
4786     ac_cpp_err=$ac_c_preproc_warn_flag
4787   else
4788     ac_cpp_err=
4789   fi
4790 else
4791   ac_cpp_err=yes
4792 fi
4793 if test -z "$ac_cpp_err"; then
4794   ac_header_preproc=yes
4795 else
4796   echo "$as_me: failed program was:" >&5
4797   cat conftest.$ac_ext >&5
4798   ac_header_preproc=no
4799 fi
4800 rm -f conftest.err conftest.$ac_ext
4801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4802 echo "${ECHO_T}$ac_header_preproc" >&6
4803
4804 # So?  What about this header?
4805 case $ac_header_compiler:$ac_header_preproc in
4806   yes:no )
4807     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4811   no:yes )
4812     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4814     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4816     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4818 esac
4819 echo "$as_me:$LINENO: checking for $ac_header" >&5
4820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4822   echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824   eval "$as_ac_Header=$ac_header_preproc"
4825 fi
4826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4828
4829 fi
4830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4831   cat >>confdefs.h <<_ACEOF
4832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4833 _ACEOF
4834
4835 fi
4836
4837 done
4838
4839
4840
4841
4842
4843
4844
4845 for ac_header in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
4846 do
4847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4849   echo "$as_me:$LINENO: checking for $ac_header" >&5
4850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4852   echo $ECHO_N "(cached) $ECHO_C" >&6
4853 fi
4854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4856 else
4857   # Is the header compilable?
4858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4860 cat >conftest.$ac_ext <<_ACEOF
4861 #line $LINENO "configure"
4862 #include "confdefs.h"
4863 $ac_includes_default
4864 #include <$ac_header>
4865 _ACEOF
4866 rm -f conftest.$ac_objext
4867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868   (eval $ac_compile) 2>&5
4869   ac_status=$?
4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871   (exit $ac_status); } &&
4872          { ac_try='test -s conftest.$ac_objext'
4873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874   (eval $ac_try) 2>&5
4875   ac_status=$?
4876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877   (exit $ac_status); }; }; then
4878   ac_header_compiler=yes
4879 else
4880   echo "$as_me: failed program was:" >&5
4881 cat conftest.$ac_ext >&5
4882 ac_header_compiler=no
4883 fi
4884 rm -f conftest.$ac_objext conftest.$ac_ext
4885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4886 echo "${ECHO_T}$ac_header_compiler" >&6
4887
4888 # Is the header present?
4889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4891 cat >conftest.$ac_ext <<_ACEOF
4892 #line $LINENO "configure"
4893 #include "confdefs.h"
4894 #include <$ac_header>
4895 _ACEOF
4896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4897   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4898   ac_status=$?
4899   egrep -v '^ *\+' conftest.er1 >conftest.err
4900   rm -f conftest.er1
4901   cat conftest.err >&5
4902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903   (exit $ac_status); } >/dev/null; then
4904   if test -s conftest.err; then
4905     ac_cpp_err=$ac_c_preproc_warn_flag
4906   else
4907     ac_cpp_err=
4908   fi
4909 else
4910   ac_cpp_err=yes
4911 fi
4912 if test -z "$ac_cpp_err"; then
4913   ac_header_preproc=yes
4914 else
4915   echo "$as_me: failed program was:" >&5
4916   cat conftest.$ac_ext >&5
4917   ac_header_preproc=no
4918 fi
4919 rm -f conftest.err conftest.$ac_ext
4920 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4921 echo "${ECHO_T}$ac_header_preproc" >&6
4922
4923 # So?  What about this header?
4924 case $ac_header_compiler:$ac_header_preproc in
4925   yes:no )
4926     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4928     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4930   no:yes )
4931     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4933     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4937 esac
4938 echo "$as_me:$LINENO: checking for $ac_header" >&5
4939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4941   echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943   eval "$as_ac_Header=$ac_header_preproc"
4944 fi
4945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4947
4948 fi
4949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4950   cat >>confdefs.h <<_ACEOF
4951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4952 _ACEOF
4953
4954 fi
4955
4956 done
4957
4958
4959
4960
4961
4962
4963 for ac_header in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
4964 do
4965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4967   echo "$as_me:$LINENO: checking for $ac_header" >&5
4968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4970   echo $ECHO_N "(cached) $ECHO_C" >&6
4971 fi
4972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4974 else
4975   # Is the header compilable?
4976 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4978 cat >conftest.$ac_ext <<_ACEOF
4979 #line $LINENO "configure"
4980 #include "confdefs.h"
4981 $ac_includes_default
4982 #include <$ac_header>
4983 _ACEOF
4984 rm -f conftest.$ac_objext
4985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4986   (eval $ac_compile) 2>&5
4987   ac_status=$?
4988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989   (exit $ac_status); } &&
4990          { ac_try='test -s conftest.$ac_objext'
4991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992   (eval $ac_try) 2>&5
4993   ac_status=$?
4994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995   (exit $ac_status); }; }; then
4996   ac_header_compiler=yes
4997 else
4998   echo "$as_me: failed program was:" >&5
4999 cat conftest.$ac_ext >&5
5000 ac_header_compiler=no
5001 fi
5002 rm -f conftest.$ac_objext conftest.$ac_ext
5003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5004 echo "${ECHO_T}$ac_header_compiler" >&6
5005
5006 # Is the header present?
5007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5009 cat >conftest.$ac_ext <<_ACEOF
5010 #line $LINENO "configure"
5011 #include "confdefs.h"
5012 #include <$ac_header>
5013 _ACEOF
5014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5015   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5016   ac_status=$?
5017   egrep -v '^ *\+' conftest.er1 >conftest.err
5018   rm -f conftest.er1
5019   cat conftest.err >&5
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); } >/dev/null; then
5022   if test -s conftest.err; then
5023     ac_cpp_err=$ac_c_preproc_warn_flag
5024   else
5025     ac_cpp_err=
5026   fi
5027 else
5028   ac_cpp_err=yes
5029 fi
5030 if test -z "$ac_cpp_err"; then
5031   ac_header_preproc=yes
5032 else
5033   echo "$as_me: failed program was:" >&5
5034   cat conftest.$ac_ext >&5
5035   ac_header_preproc=no
5036 fi
5037 rm -f conftest.err conftest.$ac_ext
5038 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5039 echo "${ECHO_T}$ac_header_preproc" >&6
5040
5041 # So?  What about this header?
5042 case $ac_header_compiler:$ac_header_preproc in
5043   yes:no )
5044     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5045 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5046     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5048   no:yes )
5049     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5051     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5052 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5053     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5055 esac
5056 echo "$as_me:$LINENO: checking for $ac_header" >&5
5057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5059   echo $ECHO_N "(cached) $ECHO_C" >&6
5060 else
5061   eval "$as_ac_Header=$ac_header_preproc"
5062 fi
5063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5065
5066 fi
5067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5068   cat >>confdefs.h <<_ACEOF
5069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5070 _ACEOF
5071
5072 fi
5073
5074 done
5075
5076
5077
5078 for ac_header in sys/syslog.h syslog.h
5079 do
5080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5082   echo "$as_me:$LINENO: checking for $ac_header" >&5
5083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5085   echo $ECHO_N "(cached) $ECHO_C" >&6
5086 fi
5087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5089 else
5090   # Is the header compilable?
5091 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5093 cat >conftest.$ac_ext <<_ACEOF
5094 #line $LINENO "configure"
5095 #include "confdefs.h"
5096 $ac_includes_default
5097 #include <$ac_header>
5098 _ACEOF
5099 rm -f conftest.$ac_objext
5100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5101   (eval $ac_compile) 2>&5
5102   ac_status=$?
5103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104   (exit $ac_status); } &&
5105          { ac_try='test -s conftest.$ac_objext'
5106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107   (eval $ac_try) 2>&5
5108   ac_status=$?
5109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110   (exit $ac_status); }; }; then
5111   ac_header_compiler=yes
5112 else
5113   echo "$as_me: failed program was:" >&5
5114 cat conftest.$ac_ext >&5
5115 ac_header_compiler=no
5116 fi
5117 rm -f conftest.$ac_objext conftest.$ac_ext
5118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5119 echo "${ECHO_T}$ac_header_compiler" >&6
5120
5121 # Is the header present?
5122 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5124 cat >conftest.$ac_ext <<_ACEOF
5125 #line $LINENO "configure"
5126 #include "confdefs.h"
5127 #include <$ac_header>
5128 _ACEOF
5129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5130   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5131   ac_status=$?
5132   egrep -v '^ *\+' conftest.er1 >conftest.err
5133   rm -f conftest.er1
5134   cat conftest.err >&5
5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); } >/dev/null; then
5137   if test -s conftest.err; then
5138     ac_cpp_err=$ac_c_preproc_warn_flag
5139   else
5140     ac_cpp_err=
5141   fi
5142 else
5143   ac_cpp_err=yes
5144 fi
5145 if test -z "$ac_cpp_err"; then
5146   ac_header_preproc=yes
5147 else
5148   echo "$as_me: failed program was:" >&5
5149   cat conftest.$ac_ext >&5
5150   ac_header_preproc=no
5151 fi
5152 rm -f conftest.err conftest.$ac_ext
5153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5154 echo "${ECHO_T}$ac_header_preproc" >&6
5155
5156 # So?  What about this header?
5157 case $ac_header_compiler:$ac_header_preproc in
5158   yes:no )
5159     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5163   no:yes )
5164     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5166     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5170 esac
5171 echo "$as_me:$LINENO: checking for $ac_header" >&5
5172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5174   echo $ECHO_N "(cached) $ECHO_C" >&6
5175 else
5176   eval "$as_ac_Header=$ac_header_preproc"
5177 fi
5178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5180
5181 fi
5182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5183   cat >>confdefs.h <<_ACEOF
5184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5185 _ACEOF
5186
5187 fi
5188
5189 done
5190
5191
5192 #
5193 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
5194 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
5195 #
5196 case "$host_os" in
5197     *hpux*)
5198                 cat >conftest.$ac_ext <<_ACEOF
5199 #line $LINENO "configure"
5200 #include "confdefs.h"
5201 #include <shadow.h>
5202 #ifdef F77_DUMMY_MAIN
5203 #  ifdef __cplusplus
5204      extern "C"
5205 #  endif
5206    int F77_DUMMY_MAIN() { return 1; }
5207 #endif
5208 int
5209 main ()
5210 {
5211 struct spwd testme
5212   ;
5213   return 0;
5214 }
5215 _ACEOF
5216 rm -f conftest.$ac_objext
5217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5218   (eval $ac_compile) 2>&5
5219   ac_status=$?
5220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221   (exit $ac_status); } &&
5222          { ac_try='test -s conftest.$ac_objext'
5223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224   (eval $ac_try) 2>&5
5225   ac_status=$?
5226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227   (exit $ac_status); }; }; then
5228   ac_cv_header_shadow_h=yes
5229 else
5230   echo "$as_me: failed program was:" >&5
5231 cat conftest.$ac_ext >&5
5232 ac_cv_header_shadow_h=no
5233 fi
5234 rm -f conftest.$ac_objext conftest.$ac_ext
5235                 if test x"$ac_cv_header_shadow_h" = x"yes"; then
5236
5237 cat >>confdefs.h <<\_ACEOF
5238 #define HAVE_SHADOW_H 1
5239 _ACEOF
5240
5241                 fi
5242         ;;
5243 esac
5244
5245
5246
5247
5248
5249 for ac_header in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
5250 do
5251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5253   echo "$as_me:$LINENO: checking for $ac_header" >&5
5254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5256   echo $ECHO_N "(cached) $ECHO_C" >&6
5257 fi
5258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5260 else
5261   # Is the header compilable?
5262 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5264 cat >conftest.$ac_ext <<_ACEOF
5265 #line $LINENO "configure"
5266 #include "confdefs.h"
5267 $ac_includes_default
5268 #include <$ac_header>
5269 _ACEOF
5270 rm -f conftest.$ac_objext
5271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5272   (eval $ac_compile) 2>&5
5273   ac_status=$?
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); } &&
5276          { ac_try='test -s conftest.$ac_objext'
5277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278   (eval $ac_try) 2>&5
5279   ac_status=$?
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); }; }; then
5282   ac_header_compiler=yes
5283 else
5284   echo "$as_me: failed program was:" >&5
5285 cat conftest.$ac_ext >&5
5286 ac_header_compiler=no
5287 fi
5288 rm -f conftest.$ac_objext conftest.$ac_ext
5289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5290 echo "${ECHO_T}$ac_header_compiler" >&6
5291
5292 # Is the header present?
5293 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5295 cat >conftest.$ac_ext <<_ACEOF
5296 #line $LINENO "configure"
5297 #include "confdefs.h"
5298 #include <$ac_header>
5299 _ACEOF
5300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5301   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5302   ac_status=$?
5303   egrep -v '^ *\+' conftest.er1 >conftest.err
5304   rm -f conftest.er1
5305   cat conftest.err >&5
5306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307   (exit $ac_status); } >/dev/null; then
5308   if test -s conftest.err; then
5309     ac_cpp_err=$ac_c_preproc_warn_flag
5310   else
5311     ac_cpp_err=
5312   fi
5313 else
5314   ac_cpp_err=yes
5315 fi
5316 if test -z "$ac_cpp_err"; then
5317   ac_header_preproc=yes
5318 else
5319   echo "$as_me: failed program was:" >&5
5320   cat conftest.$ac_ext >&5
5321   ac_header_preproc=no
5322 fi
5323 rm -f conftest.err conftest.$ac_ext
5324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5325 echo "${ECHO_T}$ac_header_preproc" >&6
5326
5327 # So?  What about this header?
5328 case $ac_header_compiler:$ac_header_preproc in
5329   yes:no )
5330     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5332     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5334   no:yes )
5335     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5337     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5339     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5341 esac
5342 echo "$as_me:$LINENO: checking for $ac_header" >&5
5343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5345   echo $ECHO_N "(cached) $ECHO_C" >&6
5346 else
5347   eval "$as_ac_Header=$ac_header_preproc"
5348 fi
5349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5351
5352 fi
5353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5354   cat >>confdefs.h <<_ACEOF
5355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5356 _ACEOF
5357
5358 fi
5359
5360 done
5361
5362
5363
5364
5365
5366
5367
5368 for ac_header in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
5369 do
5370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5372   echo "$as_me:$LINENO: checking for $ac_header" >&5
5373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5375   echo $ECHO_N "(cached) $ECHO_C" >&6
5376 fi
5377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5379 else
5380   # Is the header compilable?
5381 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5383 cat >conftest.$ac_ext <<_ACEOF
5384 #line $LINENO "configure"
5385 #include "confdefs.h"
5386 $ac_includes_default
5387 #include <$ac_header>
5388 _ACEOF
5389 rm -f conftest.$ac_objext
5390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5391   (eval $ac_compile) 2>&5
5392   ac_status=$?
5393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394   (exit $ac_status); } &&
5395          { ac_try='test -s conftest.$ac_objext'
5396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397   (eval $ac_try) 2>&5
5398   ac_status=$?
5399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400   (exit $ac_status); }; }; then
5401   ac_header_compiler=yes
5402 else
5403   echo "$as_me: failed program was:" >&5
5404 cat conftest.$ac_ext >&5
5405 ac_header_compiler=no
5406 fi
5407 rm -f conftest.$ac_objext conftest.$ac_ext
5408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5409 echo "${ECHO_T}$ac_header_compiler" >&6
5410
5411 # Is the header present?
5412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5414 cat >conftest.$ac_ext <<_ACEOF
5415 #line $LINENO "configure"
5416 #include "confdefs.h"
5417 #include <$ac_header>
5418 _ACEOF
5419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5420   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5421   ac_status=$?
5422   egrep -v '^ *\+' conftest.er1 >conftest.err
5423   rm -f conftest.er1
5424   cat conftest.err >&5
5425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426   (exit $ac_status); } >/dev/null; then
5427   if test -s conftest.err; then
5428     ac_cpp_err=$ac_c_preproc_warn_flag
5429   else
5430     ac_cpp_err=
5431   fi
5432 else
5433   ac_cpp_err=yes
5434 fi
5435 if test -z "$ac_cpp_err"; then
5436   ac_header_preproc=yes
5437 else
5438   echo "$as_me: failed program was:" >&5
5439   cat conftest.$ac_ext >&5
5440   ac_header_preproc=no
5441 fi
5442 rm -f conftest.err conftest.$ac_ext
5443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5444 echo "${ECHO_T}$ac_header_preproc" >&6
5445
5446 # So?  What about this header?
5447 case $ac_header_compiler:$ac_header_preproc in
5448   yes:no )
5449     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5453   no:yes )
5454     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5456     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5458     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5460 esac
5461 echo "$as_me:$LINENO: checking for $ac_header" >&5
5462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5464   echo $ECHO_N "(cached) $ECHO_C" >&6
5465 else
5466   eval "$as_ac_Header=$ac_header_preproc"
5467 fi
5468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5470
5471 fi
5472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5473   cat >>confdefs.h <<_ACEOF
5474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5475 _ACEOF
5476
5477 fi
5478
5479 done
5480
5481
5482
5483 for ac_header in stropts.h poll.h
5484 do
5485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5487   echo "$as_me:$LINENO: checking for $ac_header" >&5
5488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5490   echo $ECHO_N "(cached) $ECHO_C" >&6
5491 fi
5492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5494 else
5495   # Is the header compilable?
5496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5498 cat >conftest.$ac_ext <<_ACEOF
5499 #line $LINENO "configure"
5500 #include "confdefs.h"
5501 $ac_includes_default
5502 #include <$ac_header>
5503 _ACEOF
5504 rm -f conftest.$ac_objext
5505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5506   (eval $ac_compile) 2>&5
5507   ac_status=$?
5508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509   (exit $ac_status); } &&
5510          { ac_try='test -s conftest.$ac_objext'
5511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512   (eval $ac_try) 2>&5
5513   ac_status=$?
5514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515   (exit $ac_status); }; }; then
5516   ac_header_compiler=yes
5517 else
5518   echo "$as_me: failed program was:" >&5
5519 cat conftest.$ac_ext >&5
5520 ac_header_compiler=no
5521 fi
5522 rm -f conftest.$ac_objext conftest.$ac_ext
5523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5524 echo "${ECHO_T}$ac_header_compiler" >&6
5525
5526 # Is the header present?
5527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5529 cat >conftest.$ac_ext <<_ACEOF
5530 #line $LINENO "configure"
5531 #include "confdefs.h"
5532 #include <$ac_header>
5533 _ACEOF
5534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5535   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5536   ac_status=$?
5537   egrep -v '^ *\+' conftest.er1 >conftest.err
5538   rm -f conftest.er1
5539   cat conftest.err >&5
5540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541   (exit $ac_status); } >/dev/null; then
5542   if test -s conftest.err; then
5543     ac_cpp_err=$ac_c_preproc_warn_flag
5544   else
5545     ac_cpp_err=
5546   fi
5547 else
5548   ac_cpp_err=yes
5549 fi
5550 if test -z "$ac_cpp_err"; then
5551   ac_header_preproc=yes
5552 else
5553   echo "$as_me: failed program was:" >&5
5554   cat conftest.$ac_ext >&5
5555   ac_header_preproc=no
5556 fi
5557 rm -f conftest.err conftest.$ac_ext
5558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5559 echo "${ECHO_T}$ac_header_preproc" >&6
5560
5561 # So?  What about this header?
5562 case $ac_header_compiler:$ac_header_preproc in
5563   yes:no )
5564     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5568   no:yes )
5569     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5571     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5575 esac
5576 echo "$as_me:$LINENO: checking for $ac_header" >&5
5577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5579   echo $ECHO_N "(cached) $ECHO_C" >&6
5580 else
5581   eval "$as_ac_Header=$ac_header_preproc"
5582 fi
5583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5585
5586 fi
5587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5588   cat >>confdefs.h <<_ACEOF
5589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5590 _ACEOF
5591
5592 fi
5593
5594 done
5595
5596
5597
5598
5599 for ac_header in sys/capability.h syscall.h sys/syscall.h
5600 do
5601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5603   echo "$as_me:$LINENO: checking for $ac_header" >&5
5604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5606   echo $ECHO_N "(cached) $ECHO_C" >&6
5607 fi
5608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5610 else
5611   # Is the header compilable?
5612 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5614 cat >conftest.$ac_ext <<_ACEOF
5615 #line $LINENO "configure"
5616 #include "confdefs.h"
5617 $ac_includes_default
5618 #include <$ac_header>
5619 _ACEOF
5620 rm -f conftest.$ac_objext
5621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5622   (eval $ac_compile) 2>&5
5623   ac_status=$?
5624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625   (exit $ac_status); } &&
5626          { ac_try='test -s conftest.$ac_objext'
5627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628   (eval $ac_try) 2>&5
5629   ac_status=$?
5630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631   (exit $ac_status); }; }; then
5632   ac_header_compiler=yes
5633 else
5634   echo "$as_me: failed program was:" >&5
5635 cat conftest.$ac_ext >&5
5636 ac_header_compiler=no
5637 fi
5638 rm -f conftest.$ac_objext conftest.$ac_ext
5639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5640 echo "${ECHO_T}$ac_header_compiler" >&6
5641
5642 # Is the header present?
5643 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5645 cat >conftest.$ac_ext <<_ACEOF
5646 #line $LINENO "configure"
5647 #include "confdefs.h"
5648 #include <$ac_header>
5649 _ACEOF
5650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5651   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5652   ac_status=$?
5653   egrep -v '^ *\+' conftest.er1 >conftest.err
5654   rm -f conftest.er1
5655   cat conftest.err >&5
5656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657   (exit $ac_status); } >/dev/null; then
5658   if test -s conftest.err; then
5659     ac_cpp_err=$ac_c_preproc_warn_flag
5660   else
5661     ac_cpp_err=
5662   fi
5663 else
5664   ac_cpp_err=yes
5665 fi
5666 if test -z "$ac_cpp_err"; then
5667   ac_header_preproc=yes
5668 else
5669   echo "$as_me: failed program was:" >&5
5670   cat conftest.$ac_ext >&5
5671   ac_header_preproc=no
5672 fi
5673 rm -f conftest.err conftest.$ac_ext
5674 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5675 echo "${ECHO_T}$ac_header_preproc" >&6
5676
5677 # So?  What about this header?
5678 case $ac_header_compiler:$ac_header_preproc in
5679   yes:no )
5680     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5684   no:yes )
5685     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5687     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5689     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5691 esac
5692 echo "$as_me:$LINENO: checking for $ac_header" >&5
5693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5695   echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697   eval "$as_ac_Header=$ac_header_preproc"
5698 fi
5699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5701
5702 fi
5703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5704   cat >>confdefs.h <<_ACEOF
5705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5706 _ACEOF
5707
5708 fi
5709
5710 done
5711
5712
5713
5714
5715 for ac_header in sys/acl.h sys/cdefs.h glob.h
5716 do
5717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5719   echo "$as_me:$LINENO: checking for $ac_header" >&5
5720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5722   echo $ECHO_N "(cached) $ECHO_C" >&6
5723 fi
5724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5726 else
5727   # Is the header compilable?
5728 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5730 cat >conftest.$ac_ext <<_ACEOF
5731 #line $LINENO "configure"
5732 #include "confdefs.h"
5733 $ac_includes_default
5734 #include <$ac_header>
5735 _ACEOF
5736 rm -f conftest.$ac_objext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5738   (eval $ac_compile) 2>&5
5739   ac_status=$?
5740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741   (exit $ac_status); } &&
5742          { ac_try='test -s conftest.$ac_objext'
5743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744   (eval $ac_try) 2>&5
5745   ac_status=$?
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); }; }; then
5748   ac_header_compiler=yes
5749 else
5750   echo "$as_me: failed program was:" >&5
5751 cat conftest.$ac_ext >&5
5752 ac_header_compiler=no
5753 fi
5754 rm -f conftest.$ac_objext conftest.$ac_ext
5755 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5756 echo "${ECHO_T}$ac_header_compiler" >&6
5757
5758 # Is the header present?
5759 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5761 cat >conftest.$ac_ext <<_ACEOF
5762 #line $LINENO "configure"
5763 #include "confdefs.h"
5764 #include <$ac_header>
5765 _ACEOF
5766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5767   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5768   ac_status=$?
5769   egrep -v '^ *\+' conftest.er1 >conftest.err
5770   rm -f conftest.er1
5771   cat conftest.err >&5
5772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773   (exit $ac_status); } >/dev/null; then
5774   if test -s conftest.err; then
5775     ac_cpp_err=$ac_c_preproc_warn_flag
5776   else
5777     ac_cpp_err=
5778   fi
5779 else
5780   ac_cpp_err=yes
5781 fi
5782 if test -z "$ac_cpp_err"; then
5783   ac_header_preproc=yes
5784 else
5785   echo "$as_me: failed program was:" >&5
5786   cat conftest.$ac_ext >&5
5787   ac_header_preproc=no
5788 fi
5789 rm -f conftest.err conftest.$ac_ext
5790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5791 echo "${ECHO_T}$ac_header_preproc" >&6
5792
5793 # So?  What about this header?
5794 case $ac_header_compiler:$ac_header_preproc in
5795   yes:no )
5796     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5800   no:yes )
5801     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5803     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5807 esac
5808 echo "$as_me:$LINENO: checking for $ac_header" >&5
5809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5811   echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813   eval "$as_ac_Header=$ac_header_preproc"
5814 fi
5815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5817
5818 fi
5819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5820   cat >>confdefs.h <<_ACEOF
5821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5822 _ACEOF
5823
5824 fi
5825
5826 done
5827
5828
5829 # For experimental utmp support (lastlog on some BSD-like systems)
5830
5831
5832
5833 for ac_header in utmp.h utmpx.h lastlog.h
5834 do
5835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5837   echo "$as_me:$LINENO: checking for $ac_header" >&5
5838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5840   echo $ECHO_N "(cached) $ECHO_C" >&6
5841 fi
5842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5844 else
5845   # Is the header compilable?
5846 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5847 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5848 cat >conftest.$ac_ext <<_ACEOF
5849 #line $LINENO "configure"
5850 #include "confdefs.h"
5851 $ac_includes_default
5852 #include <$ac_header>
5853 _ACEOF
5854 rm -f conftest.$ac_objext
5855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5856   (eval $ac_compile) 2>&5
5857   ac_status=$?
5858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859   (exit $ac_status); } &&
5860          { ac_try='test -s conftest.$ac_objext'
5861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862   (eval $ac_try) 2>&5
5863   ac_status=$?
5864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865   (exit $ac_status); }; }; then
5866   ac_header_compiler=yes
5867 else
5868   echo "$as_me: failed program was:" >&5
5869 cat conftest.$ac_ext >&5
5870 ac_header_compiler=no
5871 fi
5872 rm -f conftest.$ac_objext conftest.$ac_ext
5873 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5874 echo "${ECHO_T}$ac_header_compiler" >&6
5875
5876 # Is the header present?
5877 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5879 cat >conftest.$ac_ext <<_ACEOF
5880 #line $LINENO "configure"
5881 #include "confdefs.h"
5882 #include <$ac_header>
5883 _ACEOF
5884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5885   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5886   ac_status=$?
5887   egrep -v '^ *\+' conftest.er1 >conftest.err
5888   rm -f conftest.er1
5889   cat conftest.err >&5
5890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891   (exit $ac_status); } >/dev/null; then
5892   if test -s conftest.err; then
5893     ac_cpp_err=$ac_c_preproc_warn_flag
5894   else
5895     ac_cpp_err=
5896   fi
5897 else
5898   ac_cpp_err=yes
5899 fi
5900 if test -z "$ac_cpp_err"; then
5901   ac_header_preproc=yes
5902 else
5903   echo "$as_me: failed program was:" >&5
5904   cat conftest.$ac_ext >&5
5905   ac_header_preproc=no
5906 fi
5907 rm -f conftest.err conftest.$ac_ext
5908 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5909 echo "${ECHO_T}$ac_header_preproc" >&6
5910
5911 # So?  What about this header?
5912 case $ac_header_compiler:$ac_header_preproc in
5913   yes:no )
5914     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5916     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5918   no:yes )
5919     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5921     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5922 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5925 esac
5926 echo "$as_me:$LINENO: checking for $ac_header" >&5
5927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5929   echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931   eval "$as_ac_Header=$ac_header_preproc"
5932 fi
5933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5935
5936 fi
5937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5938   cat >>confdefs.h <<_ACEOF
5939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5940 _ACEOF
5941
5942 fi
5943
5944 done
5945
5946
5947 # For quotas on Veritas VxFS filesystems
5948
5949 for ac_header in sys/fs/vx_quota.h
5950 do
5951 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5953   echo "$as_me:$LINENO: checking for $ac_header" >&5
5954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5956   echo $ECHO_N "(cached) $ECHO_C" >&6
5957 fi
5958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5960 else
5961   # Is the header compilable?
5962 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5964 cat >conftest.$ac_ext <<_ACEOF
5965 #line $LINENO "configure"
5966 #include "confdefs.h"
5967 $ac_includes_default
5968 #include <$ac_header>
5969 _ACEOF
5970 rm -f conftest.$ac_objext
5971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5972   (eval $ac_compile) 2>&5
5973   ac_status=$?
5974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975   (exit $ac_status); } &&
5976          { ac_try='test -s conftest.$ac_objext'
5977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978   (eval $ac_try) 2>&5
5979   ac_status=$?
5980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981   (exit $ac_status); }; }; then
5982   ac_header_compiler=yes
5983 else
5984   echo "$as_me: failed program was:" >&5
5985 cat conftest.$ac_ext >&5
5986 ac_header_compiler=no
5987 fi
5988 rm -f conftest.$ac_objext conftest.$ac_ext
5989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5990 echo "${ECHO_T}$ac_header_compiler" >&6
5991
5992 # Is the header present?
5993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5995 cat >conftest.$ac_ext <<_ACEOF
5996 #line $LINENO "configure"
5997 #include "confdefs.h"
5998 #include <$ac_header>
5999 _ACEOF
6000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6001   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6002   ac_status=$?
6003   egrep -v '^ *\+' conftest.er1 >conftest.err
6004   rm -f conftest.er1
6005   cat conftest.err >&5
6006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); } >/dev/null; then
6008   if test -s conftest.err; then
6009     ac_cpp_err=$ac_c_preproc_warn_flag
6010   else
6011     ac_cpp_err=
6012   fi
6013 else
6014   ac_cpp_err=yes
6015 fi
6016 if test -z "$ac_cpp_err"; then
6017   ac_header_preproc=yes
6018 else
6019   echo "$as_me: failed program was:" >&5
6020   cat conftest.$ac_ext >&5
6021   ac_header_preproc=no
6022 fi
6023 rm -f conftest.err conftest.$ac_ext
6024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6025 echo "${ECHO_T}$ac_header_preproc" >&6
6026
6027 # So?  What about this header?
6028 case $ac_header_compiler:$ac_header_preproc in
6029   yes:no )
6030     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6034   no:yes )
6035     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6037     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6038 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6039     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6041 esac
6042 echo "$as_me:$LINENO: checking for $ac_header" >&5
6043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6045   echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047   eval "$as_ac_Header=$ac_header_preproc"
6048 fi
6049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6051
6052 fi
6053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6054   cat >>confdefs.h <<_ACEOF
6055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6056 _ACEOF
6057
6058 fi
6059
6060 done
6061
6062
6063 # For quotas on Linux XFS filesystems
6064
6065 for ac_header in linux/xqm.h
6066 do
6067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6069   echo "$as_me:$LINENO: checking for $ac_header" >&5
6070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6072   echo $ECHO_N "(cached) $ECHO_C" >&6
6073 fi
6074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6076 else
6077   # Is the header compilable?
6078 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6080 cat >conftest.$ac_ext <<_ACEOF
6081 #line $LINENO "configure"
6082 #include "confdefs.h"
6083 $ac_includes_default
6084 #include <$ac_header>
6085 _ACEOF
6086 rm -f conftest.$ac_objext
6087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6088   (eval $ac_compile) 2>&5
6089   ac_status=$?
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); } &&
6092          { ac_try='test -s conftest.$ac_objext'
6093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094   (eval $ac_try) 2>&5
6095   ac_status=$?
6096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097   (exit $ac_status); }; }; then
6098   ac_header_compiler=yes
6099 else
6100   echo "$as_me: failed program was:" >&5
6101 cat conftest.$ac_ext >&5
6102 ac_header_compiler=no
6103 fi
6104 rm -f conftest.$ac_objext conftest.$ac_ext
6105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6106 echo "${ECHO_T}$ac_header_compiler" >&6
6107
6108 # Is the header present?
6109 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6111 cat >conftest.$ac_ext <<_ACEOF
6112 #line $LINENO "configure"
6113 #include "confdefs.h"
6114 #include <$ac_header>
6115 _ACEOF
6116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6117   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6118   ac_status=$?
6119   egrep -v '^ *\+' conftest.er1 >conftest.err
6120   rm -f conftest.er1
6121   cat conftest.err >&5
6122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123   (exit $ac_status); } >/dev/null; then
6124   if test -s conftest.err; then
6125     ac_cpp_err=$ac_c_preproc_warn_flag
6126   else
6127     ac_cpp_err=
6128   fi
6129 else
6130   ac_cpp_err=yes
6131 fi
6132 if test -z "$ac_cpp_err"; then
6133   ac_header_preproc=yes
6134 else
6135   echo "$as_me: failed program was:" >&5
6136   cat conftest.$ac_ext >&5
6137   ac_header_preproc=no
6138 fi
6139 rm -f conftest.err conftest.$ac_ext
6140 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6141 echo "${ECHO_T}$ac_header_preproc" >&6
6142
6143 # So?  What about this header?
6144 case $ac_header_compiler:$ac_header_preproc in
6145   yes:no )
6146     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6148     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6150   no:yes )
6151     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6153     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6154 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6155     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6157 esac
6158 echo "$as_me:$LINENO: checking for $ac_header" >&5
6159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6161   echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163   eval "$as_ac_Header=$ac_header_preproc"
6164 fi
6165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6167
6168 fi
6169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6170   cat >>confdefs.h <<_ACEOF
6171 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6172 _ACEOF
6173
6174 fi
6175
6176 done
6177
6178
6179 for ac_header in xfs/xqm.h
6180 do
6181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6183   echo "$as_me:$LINENO: checking for $ac_header" >&5
6184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6186   echo $ECHO_N "(cached) $ECHO_C" >&6
6187 fi
6188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6190 else
6191   # Is the header compilable?
6192 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6194 cat >conftest.$ac_ext <<_ACEOF
6195 #line $LINENO "configure"
6196 #include "confdefs.h"
6197 $ac_includes_default
6198 #include <$ac_header>
6199 _ACEOF
6200 rm -f conftest.$ac_objext
6201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6202   (eval $ac_compile) 2>&5
6203   ac_status=$?
6204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205   (exit $ac_status); } &&
6206          { ac_try='test -s conftest.$ac_objext'
6207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208   (eval $ac_try) 2>&5
6209   ac_status=$?
6210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211   (exit $ac_status); }; }; then
6212   ac_header_compiler=yes
6213 else
6214   echo "$as_me: failed program was:" >&5
6215 cat conftest.$ac_ext >&5
6216 ac_header_compiler=no
6217 fi
6218 rm -f conftest.$ac_objext conftest.$ac_ext
6219 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6220 echo "${ECHO_T}$ac_header_compiler" >&6
6221
6222 # Is the header present?
6223 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6225 cat >conftest.$ac_ext <<_ACEOF
6226 #line $LINENO "configure"
6227 #include "confdefs.h"
6228 #include <$ac_header>
6229 _ACEOF
6230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6231   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6232   ac_status=$?
6233   egrep -v '^ *\+' conftest.er1 >conftest.err
6234   rm -f conftest.er1
6235   cat conftest.err >&5
6236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237   (exit $ac_status); } >/dev/null; then
6238   if test -s conftest.err; then
6239     ac_cpp_err=$ac_c_preproc_warn_flag
6240   else
6241     ac_cpp_err=
6242   fi
6243 else
6244   ac_cpp_err=yes
6245 fi
6246 if test -z "$ac_cpp_err"; then
6247   ac_header_preproc=yes
6248 else
6249   echo "$as_me: failed program was:" >&5
6250   cat conftest.$ac_ext >&5
6251   ac_header_preproc=no
6252 fi
6253 rm -f conftest.err conftest.$ac_ext
6254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6255 echo "${ECHO_T}$ac_header_preproc" >&6
6256
6257 # So?  What about this header?
6258 case $ac_header_compiler:$ac_header_preproc in
6259   yes:no )
6260     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6262     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6264   no:yes )
6265     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6267     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6268 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6269     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6271 esac
6272 echo "$as_me:$LINENO: checking for $ac_header" >&5
6273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6275   echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277   eval "$as_ac_Header=$ac_header_preproc"
6278 fi
6279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6281
6282 fi
6283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6284   cat >>confdefs.h <<_ACEOF
6285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6286 _ACEOF
6287
6288 fi
6289
6290 done
6291
6292
6293 echo "$as_me:$LINENO: checking for int" >&5
6294 echo $ECHO_N "checking for int... $ECHO_C" >&6
6295 if test "${ac_cv_type_int+set}" = set; then
6296   echo $ECHO_N "(cached) $ECHO_C" >&6
6297 else
6298   cat >conftest.$ac_ext <<_ACEOF
6299 #line $LINENO "configure"
6300 #include "confdefs.h"
6301 $ac_includes_default
6302 #ifdef F77_DUMMY_MAIN
6303 #  ifdef __cplusplus
6304      extern "C"
6305 #  endif
6306    int F77_DUMMY_MAIN() { return 1; }
6307 #endif
6308 int
6309 main ()
6310 {
6311 if ((int *) 0)
6312   return 0;
6313 if (sizeof (int))
6314   return 0;
6315   ;
6316   return 0;
6317 }
6318 _ACEOF
6319 rm -f conftest.$ac_objext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6321   (eval $ac_compile) 2>&5
6322   ac_status=$?
6323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324   (exit $ac_status); } &&
6325          { ac_try='test -s conftest.$ac_objext'
6326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327   (eval $ac_try) 2>&5
6328   ac_status=$?
6329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330   (exit $ac_status); }; }; then
6331   ac_cv_type_int=yes
6332 else
6333   echo "$as_me: failed program was:" >&5
6334 cat conftest.$ac_ext >&5
6335 ac_cv_type_int=no
6336 fi
6337 rm -f conftest.$ac_objext conftest.$ac_ext
6338 fi
6339 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6340 echo "${ECHO_T}$ac_cv_type_int" >&6
6341
6342 echo "$as_me:$LINENO: checking size of int" >&5
6343 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6344 if test "${ac_cv_sizeof_int+set}" = set; then
6345   echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347   if test "$ac_cv_type_int" = yes; then
6348   # The cast to unsigned long works around a bug in the HP C Compiler
6349   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6350   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6351   # This bug is HP SR number 8606223364.
6352   if test "$cross_compiling" = yes; then
6353   # Depending upon the size, compute the lo and hi bounds.
6354 cat >conftest.$ac_ext <<_ACEOF
6355 #line $LINENO "configure"
6356 #include "confdefs.h"
6357 $ac_includes_default
6358 #ifdef F77_DUMMY_MAIN
6359 #  ifdef __cplusplus
6360      extern "C"
6361 #  endif
6362    int F77_DUMMY_MAIN() { return 1; }
6363 #endif
6364 int
6365 main ()
6366 {
6367 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6368 test_array [0] = 0
6369
6370   ;
6371   return 0;
6372 }
6373 _ACEOF
6374 rm -f conftest.$ac_objext
6375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6376   (eval $ac_compile) 2>&5
6377   ac_status=$?
6378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); } &&
6380          { ac_try='test -s conftest.$ac_objext'
6381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382   (eval $ac_try) 2>&5
6383   ac_status=$?
6384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385   (exit $ac_status); }; }; then
6386   ac_lo=0 ac_mid=0
6387   while :; do
6388     cat >conftest.$ac_ext <<_ACEOF
6389 #line $LINENO "configure"
6390 #include "confdefs.h"
6391 $ac_includes_default
6392 #ifdef F77_DUMMY_MAIN
6393 #  ifdef __cplusplus
6394      extern "C"
6395 #  endif
6396    int F77_DUMMY_MAIN() { return 1; }
6397 #endif
6398 int
6399 main ()
6400 {
6401 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6402 test_array [0] = 0
6403
6404   ;
6405   return 0;
6406 }
6407 _ACEOF
6408 rm -f conftest.$ac_objext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6410   (eval $ac_compile) 2>&5
6411   ac_status=$?
6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413   (exit $ac_status); } &&
6414          { ac_try='test -s conftest.$ac_objext'
6415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416   (eval $ac_try) 2>&5
6417   ac_status=$?
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); }; }; then
6420   ac_hi=$ac_mid; break
6421 else
6422   echo "$as_me: failed program was:" >&5
6423 cat conftest.$ac_ext >&5
6424 ac_lo=`expr $ac_mid + 1`
6425                     if test $ac_lo -le $ac_mid; then
6426                       ac_lo= ac_hi=
6427                       break
6428                     fi
6429                     ac_mid=`expr 2 '*' $ac_mid + 1`
6430 fi
6431 rm -f conftest.$ac_objext conftest.$ac_ext
6432   done
6433 else
6434   echo "$as_me: failed program was:" >&5
6435 cat conftest.$ac_ext >&5
6436 cat >conftest.$ac_ext <<_ACEOF
6437 #line $LINENO "configure"
6438 #include "confdefs.h"
6439 $ac_includes_default
6440 #ifdef F77_DUMMY_MAIN
6441 #  ifdef __cplusplus
6442      extern "C"
6443 #  endif
6444    int F77_DUMMY_MAIN() { return 1; }
6445 #endif
6446 int
6447 main ()
6448 {
6449 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6450 test_array [0] = 0
6451
6452   ;
6453   return 0;
6454 }
6455 _ACEOF
6456 rm -f conftest.$ac_objext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6458   (eval $ac_compile) 2>&5
6459   ac_status=$?
6460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461   (exit $ac_status); } &&
6462          { ac_try='test -s conftest.$ac_objext'
6463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464   (eval $ac_try) 2>&5
6465   ac_status=$?
6466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467   (exit $ac_status); }; }; then
6468   ac_hi=-1 ac_mid=-1
6469   while :; do
6470     cat >conftest.$ac_ext <<_ACEOF
6471 #line $LINENO "configure"
6472 #include "confdefs.h"
6473 $ac_includes_default
6474 #ifdef F77_DUMMY_MAIN
6475 #  ifdef __cplusplus
6476      extern "C"
6477 #  endif
6478    int F77_DUMMY_MAIN() { return 1; }
6479 #endif
6480 int
6481 main ()
6482 {
6483 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6484 test_array [0] = 0
6485
6486   ;
6487   return 0;
6488 }
6489 _ACEOF
6490 rm -f conftest.$ac_objext
6491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6492   (eval $ac_compile) 2>&5
6493   ac_status=$?
6494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495   (exit $ac_status); } &&
6496          { ac_try='test -s conftest.$ac_objext'
6497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498   (eval $ac_try) 2>&5
6499   ac_status=$?
6500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501   (exit $ac_status); }; }; then
6502   ac_lo=$ac_mid; break
6503 else
6504   echo "$as_me: failed program was:" >&5
6505 cat conftest.$ac_ext >&5
6506 ac_hi=`expr '(' $ac_mid ')' - 1`
6507                        if test $ac_mid -le $ac_hi; then
6508                          ac_lo= ac_hi=
6509                          break
6510                        fi
6511                        ac_mid=`expr 2 '*' $ac_mid`
6512 fi
6513 rm -f conftest.$ac_objext conftest.$ac_ext
6514   done
6515 else
6516   echo "$as_me: failed program was:" >&5
6517 cat conftest.$ac_ext >&5
6518 ac_lo= ac_hi=
6519 fi
6520 rm -f conftest.$ac_objext conftest.$ac_ext
6521 fi
6522 rm -f conftest.$ac_objext conftest.$ac_ext
6523 # Binary search between lo and hi bounds.
6524 while test "x$ac_lo" != "x$ac_hi"; do
6525   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6526   cat >conftest.$ac_ext <<_ACEOF
6527 #line $LINENO "configure"
6528 #include "confdefs.h"
6529 $ac_includes_default
6530 #ifdef F77_DUMMY_MAIN
6531 #  ifdef __cplusplus
6532      extern "C"
6533 #  endif
6534    int F77_DUMMY_MAIN() { return 1; }
6535 #endif
6536 int
6537 main ()
6538 {
6539 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6540 test_array [0] = 0
6541
6542   ;
6543   return 0;
6544 }
6545 _ACEOF
6546 rm -f conftest.$ac_objext
6547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6548   (eval $ac_compile) 2>&5
6549   ac_status=$?
6550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551   (exit $ac_status); } &&
6552          { ac_try='test -s conftest.$ac_objext'
6553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554   (eval $ac_try) 2>&5
6555   ac_status=$?
6556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557   (exit $ac_status); }; }; then
6558   ac_hi=$ac_mid
6559 else
6560   echo "$as_me: failed program was:" >&5
6561 cat conftest.$ac_ext >&5
6562 ac_lo=`expr '(' $ac_mid ')' + 1`
6563 fi
6564 rm -f conftest.$ac_objext conftest.$ac_ext
6565 done
6566 case $ac_lo in
6567 ?*) ac_cv_sizeof_int=$ac_lo;;
6568 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6569 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6570    { (exit 1); exit 1; }; } ;;
6571 esac
6572 else
6573   if test "$cross_compiling" = yes; then
6574   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6575 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6576    { (exit 1); exit 1; }; }
6577 else
6578   cat >conftest.$ac_ext <<_ACEOF
6579 #line $LINENO "configure"
6580 #include "confdefs.h"
6581 $ac_includes_default
6582 long longval () { return (long) (sizeof (int)); }
6583 unsigned long ulongval () { return (long) (sizeof (int)); }
6584 #include <stdio.h>
6585 #include <stdlib.h>
6586 #ifdef F77_DUMMY_MAIN
6587 #  ifdef __cplusplus
6588      extern "C"
6589 #  endif
6590    int F77_DUMMY_MAIN() { return 1; }
6591 #endif
6592 int
6593 main ()
6594 {
6595
6596   FILE *f = fopen ("conftest.val", "w");
6597   if (! f)
6598     exit (1);
6599   if (((long) (sizeof (int))) < 0)
6600     {
6601       long i = longval ();
6602       if (i != ((long) (sizeof (int))))
6603         exit (1);
6604       fprintf (f, "%ld\n", i);
6605     }
6606   else
6607     {
6608       unsigned long i = ulongval ();
6609       if (i != ((long) (sizeof (int))))
6610         exit (1);
6611       fprintf (f, "%lu\n", i);
6612     }
6613   exit (ferror (f) || fclose (f) != 0);
6614
6615   ;
6616   return 0;
6617 }
6618 _ACEOF
6619 rm -f conftest$ac_exeext
6620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6621   (eval $ac_link) 2>&5
6622   ac_status=$?
6623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626   (eval $ac_try) 2>&5
6627   ac_status=$?
6628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629   (exit $ac_status); }; }; then
6630   ac_cv_sizeof_int=`cat conftest.val`
6631 else
6632   echo "$as_me: program exited with status $ac_status" >&5
6633 echo "$as_me: failed program was:" >&5
6634 cat conftest.$ac_ext >&5
6635 ( exit $ac_status )
6636 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6637 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6638    { (exit 1); exit 1; }; }
6639 fi
6640 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6641 fi
6642 fi
6643 rm -f conftest.val
6644 else
6645   ac_cv_sizeof_int=0
6646 fi
6647 fi
6648 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6649 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6650 cat >>confdefs.h <<_ACEOF
6651 #define SIZEOF_INT $ac_cv_sizeof_int
6652 _ACEOF
6653
6654
6655 echo "$as_me:$LINENO: checking for long" >&5
6656 echo $ECHO_N "checking for long... $ECHO_C" >&6
6657 if test "${ac_cv_type_long+set}" = set; then
6658   echo $ECHO_N "(cached) $ECHO_C" >&6
6659 else
6660   cat >conftest.$ac_ext <<_ACEOF
6661 #line $LINENO "configure"
6662 #include "confdefs.h"
6663 $ac_includes_default
6664 #ifdef F77_DUMMY_MAIN
6665 #  ifdef __cplusplus
6666      extern "C"
6667 #  endif
6668    int F77_DUMMY_MAIN() { return 1; }
6669 #endif
6670 int
6671 main ()
6672 {
6673 if ((long *) 0)
6674   return 0;
6675 if (sizeof (long))
6676   return 0;
6677   ;
6678   return 0;
6679 }
6680 _ACEOF
6681 rm -f conftest.$ac_objext
6682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6683   (eval $ac_compile) 2>&5
6684   ac_status=$?
6685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686   (exit $ac_status); } &&
6687          { ac_try='test -s conftest.$ac_objext'
6688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689   (eval $ac_try) 2>&5
6690   ac_status=$?
6691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692   (exit $ac_status); }; }; then
6693   ac_cv_type_long=yes
6694 else
6695   echo "$as_me: failed program was:" >&5
6696 cat conftest.$ac_ext >&5
6697 ac_cv_type_long=no
6698 fi
6699 rm -f conftest.$ac_objext conftest.$ac_ext
6700 fi
6701 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6702 echo "${ECHO_T}$ac_cv_type_long" >&6
6703
6704 echo "$as_me:$LINENO: checking size of long" >&5
6705 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6706 if test "${ac_cv_sizeof_long+set}" = set; then
6707   echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709   if test "$ac_cv_type_long" = yes; then
6710   # The cast to unsigned long works around a bug in the HP C Compiler
6711   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6712   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6713   # This bug is HP SR number 8606223364.
6714   if test "$cross_compiling" = yes; then
6715   # Depending upon the size, compute the lo and hi bounds.
6716 cat >conftest.$ac_ext <<_ACEOF
6717 #line $LINENO "configure"
6718 #include "confdefs.h"
6719 $ac_includes_default
6720 #ifdef F77_DUMMY_MAIN
6721 #  ifdef __cplusplus
6722      extern "C"
6723 #  endif
6724    int F77_DUMMY_MAIN() { return 1; }
6725 #endif
6726 int
6727 main ()
6728 {
6729 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6730 test_array [0] = 0
6731
6732   ;
6733   return 0;
6734 }
6735 _ACEOF
6736 rm -f conftest.$ac_objext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6738   (eval $ac_compile) 2>&5
6739   ac_status=$?
6740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741   (exit $ac_status); } &&
6742          { ac_try='test -s conftest.$ac_objext'
6743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744   (eval $ac_try) 2>&5
6745   ac_status=$?
6746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747   (exit $ac_status); }; }; then
6748   ac_lo=0 ac_mid=0
6749   while :; do
6750     cat >conftest.$ac_ext <<_ACEOF
6751 #line $LINENO "configure"
6752 #include "confdefs.h"
6753 $ac_includes_default
6754 #ifdef F77_DUMMY_MAIN
6755 #  ifdef __cplusplus
6756      extern "C"
6757 #  endif
6758    int F77_DUMMY_MAIN() { return 1; }
6759 #endif
6760 int
6761 main ()
6762 {
6763 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6764 test_array [0] = 0
6765
6766   ;
6767   return 0;
6768 }
6769 _ACEOF
6770 rm -f conftest.$ac_objext
6771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6772   (eval $ac_compile) 2>&5
6773   ac_status=$?
6774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775   (exit $ac_status); } &&
6776          { ac_try='test -s conftest.$ac_objext'
6777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778   (eval $ac_try) 2>&5
6779   ac_status=$?
6780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781   (exit $ac_status); }; }; then
6782   ac_hi=$ac_mid; break
6783 else
6784   echo "$as_me: failed program was:" >&5
6785 cat conftest.$ac_ext >&5
6786 ac_lo=`expr $ac_mid + 1`
6787                     if test $ac_lo -le $ac_mid; then
6788                       ac_lo= ac_hi=
6789                       break
6790                     fi
6791                     ac_mid=`expr 2 '*' $ac_mid + 1`
6792 fi
6793 rm -f conftest.$ac_objext conftest.$ac_ext
6794   done
6795 else
6796   echo "$as_me: failed program was:" >&5
6797 cat conftest.$ac_ext >&5
6798 cat >conftest.$ac_ext <<_ACEOF
6799 #line $LINENO "configure"
6800 #include "confdefs.h"
6801 $ac_includes_default
6802 #ifdef F77_DUMMY_MAIN
6803 #  ifdef __cplusplus
6804      extern "C"
6805 #  endif
6806    int F77_DUMMY_MAIN() { return 1; }
6807 #endif
6808 int
6809 main ()
6810 {
6811 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6812 test_array [0] = 0
6813
6814   ;
6815   return 0;
6816 }
6817 _ACEOF
6818 rm -f conftest.$ac_objext
6819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6820   (eval $ac_compile) 2>&5
6821   ac_status=$?
6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823   (exit $ac_status); } &&
6824          { ac_try='test -s conftest.$ac_objext'
6825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826   (eval $ac_try) 2>&5
6827   ac_status=$?
6828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829   (exit $ac_status); }; }; then
6830   ac_hi=-1 ac_mid=-1
6831   while :; do
6832     cat >conftest.$ac_ext <<_ACEOF
6833 #line $LINENO "configure"
6834 #include "confdefs.h"
6835 $ac_includes_default
6836 #ifdef F77_DUMMY_MAIN
6837 #  ifdef __cplusplus
6838      extern "C"
6839 #  endif
6840    int F77_DUMMY_MAIN() { return 1; }
6841 #endif
6842 int
6843 main ()
6844 {
6845 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6846 test_array [0] = 0
6847
6848   ;
6849   return 0;
6850 }
6851 _ACEOF
6852 rm -f conftest.$ac_objext
6853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6854   (eval $ac_compile) 2>&5
6855   ac_status=$?
6856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857   (exit $ac_status); } &&
6858          { ac_try='test -s conftest.$ac_objext'
6859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860   (eval $ac_try) 2>&5
6861   ac_status=$?
6862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863   (exit $ac_status); }; }; then
6864   ac_lo=$ac_mid; break
6865 else
6866   echo "$as_me: failed program was:" >&5
6867 cat conftest.$ac_ext >&5
6868 ac_hi=`expr '(' $ac_mid ')' - 1`
6869                        if test $ac_mid -le $ac_hi; then
6870                          ac_lo= ac_hi=
6871                          break
6872                        fi
6873                        ac_mid=`expr 2 '*' $ac_mid`
6874 fi
6875 rm -f conftest.$ac_objext conftest.$ac_ext
6876   done
6877 else
6878   echo "$as_me: failed program was:" >&5
6879 cat conftest.$ac_ext >&5
6880 ac_lo= ac_hi=
6881 fi
6882 rm -f conftest.$ac_objext conftest.$ac_ext
6883 fi
6884 rm -f conftest.$ac_objext conftest.$ac_ext
6885 # Binary search between lo and hi bounds.
6886 while test "x$ac_lo" != "x$ac_hi"; do
6887   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6888   cat >conftest.$ac_ext <<_ACEOF
6889 #line $LINENO "configure"
6890 #include "confdefs.h"
6891 $ac_includes_default
6892 #ifdef F77_DUMMY_MAIN
6893 #  ifdef __cplusplus
6894      extern "C"
6895 #  endif
6896    int F77_DUMMY_MAIN() { return 1; }
6897 #endif
6898 int
6899 main ()
6900 {
6901 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6902 test_array [0] = 0
6903
6904   ;
6905   return 0;
6906 }
6907 _ACEOF
6908 rm -f conftest.$ac_objext
6909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6910   (eval $ac_compile) 2>&5
6911   ac_status=$?
6912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913   (exit $ac_status); } &&
6914          { ac_try='test -s conftest.$ac_objext'
6915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916   (eval $ac_try) 2>&5
6917   ac_status=$?
6918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919   (exit $ac_status); }; }; then
6920   ac_hi=$ac_mid
6921 else
6922   echo "$as_me: failed program was:" >&5
6923 cat conftest.$ac_ext >&5
6924 ac_lo=`expr '(' $ac_mid ')' + 1`
6925 fi
6926 rm -f conftest.$ac_objext conftest.$ac_ext
6927 done
6928 case $ac_lo in
6929 ?*) ac_cv_sizeof_long=$ac_lo;;
6930 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
6931 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
6932    { (exit 1); exit 1; }; } ;;
6933 esac
6934 else
6935   if test "$cross_compiling" = yes; then
6936   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6937 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6938    { (exit 1); exit 1; }; }
6939 else
6940   cat >conftest.$ac_ext <<_ACEOF
6941 #line $LINENO "configure"
6942 #include "confdefs.h"
6943 $ac_includes_default
6944 long longval () { return (long) (sizeof (long)); }
6945 unsigned long ulongval () { return (long) (sizeof (long)); }
6946 #include <stdio.h>
6947 #include <stdlib.h>
6948 #ifdef F77_DUMMY_MAIN
6949 #  ifdef __cplusplus
6950      extern "C"
6951 #  endif
6952    int F77_DUMMY_MAIN() { return 1; }
6953 #endif
6954 int
6955 main ()
6956 {
6957
6958   FILE *f = fopen ("conftest.val", "w");
6959   if (! f)
6960     exit (1);
6961   if (((long) (sizeof (long))) < 0)
6962     {
6963       long i = longval ();
6964       if (i != ((long) (sizeof (long))))
6965         exit (1);
6966       fprintf (f, "%ld\n", i);
6967     }
6968   else
6969     {
6970       unsigned long i = ulongval ();
6971       if (i != ((long) (sizeof (long))))
6972         exit (1);
6973       fprintf (f, "%lu\n", i);
6974     }
6975   exit (ferror (f) || fclose (f) != 0);
6976
6977   ;
6978   return 0;
6979 }
6980 _ACEOF
6981 rm -f conftest$ac_exeext
6982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6983   (eval $ac_link) 2>&5
6984   ac_status=$?
6985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988   (eval $ac_try) 2>&5
6989   ac_status=$?
6990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991   (exit $ac_status); }; }; then
6992   ac_cv_sizeof_long=`cat conftest.val`
6993 else
6994   echo "$as_me: program exited with status $ac_status" >&5
6995 echo "$as_me: failed program was:" >&5
6996 cat conftest.$ac_ext >&5
6997 ( exit $ac_status )
6998 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
6999 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
7000    { (exit 1); exit 1; }; }
7001 fi
7002 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7003 fi
7004 fi
7005 rm -f conftest.val
7006 else
7007   ac_cv_sizeof_long=0
7008 fi
7009 fi
7010 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7011 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7012 cat >>confdefs.h <<_ACEOF
7013 #define SIZEOF_LONG $ac_cv_sizeof_long
7014 _ACEOF
7015
7016
7017 echo "$as_me:$LINENO: checking for short" >&5
7018 echo $ECHO_N "checking for short... $ECHO_C" >&6
7019 if test "${ac_cv_type_short+set}" = set; then
7020   echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022   cat >conftest.$ac_ext <<_ACEOF
7023 #line $LINENO "configure"
7024 #include "confdefs.h"
7025 $ac_includes_default
7026 #ifdef F77_DUMMY_MAIN
7027 #  ifdef __cplusplus
7028      extern "C"
7029 #  endif
7030    int F77_DUMMY_MAIN() { return 1; }
7031 #endif
7032 int
7033 main ()
7034 {
7035 if ((short *) 0)
7036   return 0;
7037 if (sizeof (short))
7038   return 0;
7039   ;
7040   return 0;
7041 }
7042 _ACEOF
7043 rm -f conftest.$ac_objext
7044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7045   (eval $ac_compile) 2>&5
7046   ac_status=$?
7047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048   (exit $ac_status); } &&
7049          { ac_try='test -s conftest.$ac_objext'
7050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051   (eval $ac_try) 2>&5
7052   ac_status=$?
7053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054   (exit $ac_status); }; }; then
7055   ac_cv_type_short=yes
7056 else
7057   echo "$as_me: failed program was:" >&5
7058 cat conftest.$ac_ext >&5
7059 ac_cv_type_short=no
7060 fi
7061 rm -f conftest.$ac_objext conftest.$ac_ext
7062 fi
7063 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7064 echo "${ECHO_T}$ac_cv_type_short" >&6
7065
7066 echo "$as_me:$LINENO: checking size of short" >&5
7067 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7068 if test "${ac_cv_sizeof_short+set}" = set; then
7069   echo $ECHO_N "(cached) $ECHO_C" >&6
7070 else
7071   if test "$ac_cv_type_short" = yes; then
7072   # The cast to unsigned long works around a bug in the HP C Compiler
7073   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7074   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7075   # This bug is HP SR number 8606223364.
7076   if test "$cross_compiling" = yes; then
7077   # Depending upon the size, compute the lo and hi bounds.
7078 cat >conftest.$ac_ext <<_ACEOF
7079 #line $LINENO "configure"
7080 #include "confdefs.h"
7081 $ac_includes_default
7082 #ifdef F77_DUMMY_MAIN
7083 #  ifdef __cplusplus
7084      extern "C"
7085 #  endif
7086    int F77_DUMMY_MAIN() { return 1; }
7087 #endif
7088 int
7089 main ()
7090 {
7091 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7092 test_array [0] = 0
7093
7094   ;
7095   return 0;
7096 }
7097 _ACEOF
7098 rm -f conftest.$ac_objext
7099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7100   (eval $ac_compile) 2>&5
7101   ac_status=$?
7102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103   (exit $ac_status); } &&
7104          { ac_try='test -s conftest.$ac_objext'
7105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7106   (eval $ac_try) 2>&5
7107   ac_status=$?
7108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109   (exit $ac_status); }; }; then
7110   ac_lo=0 ac_mid=0
7111   while :; do
7112     cat >conftest.$ac_ext <<_ACEOF
7113 #line $LINENO "configure"
7114 #include "confdefs.h"
7115 $ac_includes_default
7116 #ifdef F77_DUMMY_MAIN
7117 #  ifdef __cplusplus
7118      extern "C"
7119 #  endif
7120    int F77_DUMMY_MAIN() { return 1; }
7121 #endif
7122 int
7123 main ()
7124 {
7125 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7126 test_array [0] = 0
7127
7128   ;
7129   return 0;
7130 }
7131 _ACEOF
7132 rm -f conftest.$ac_objext
7133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7134   (eval $ac_compile) 2>&5
7135   ac_status=$?
7136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137   (exit $ac_status); } &&
7138          { ac_try='test -s conftest.$ac_objext'
7139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140   (eval $ac_try) 2>&5
7141   ac_status=$?
7142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143   (exit $ac_status); }; }; then
7144   ac_hi=$ac_mid; break
7145 else
7146   echo "$as_me: failed program was:" >&5
7147 cat conftest.$ac_ext >&5
7148 ac_lo=`expr $ac_mid + 1`
7149                     if test $ac_lo -le $ac_mid; then
7150                       ac_lo= ac_hi=
7151                       break
7152                     fi
7153                     ac_mid=`expr 2 '*' $ac_mid + 1`
7154 fi
7155 rm -f conftest.$ac_objext conftest.$ac_ext
7156   done
7157 else
7158   echo "$as_me: failed program was:" >&5
7159 cat conftest.$ac_ext >&5
7160 cat >conftest.$ac_ext <<_ACEOF
7161 #line $LINENO "configure"
7162 #include "confdefs.h"
7163 $ac_includes_default
7164 #ifdef F77_DUMMY_MAIN
7165 #  ifdef __cplusplus
7166      extern "C"
7167 #  endif
7168    int F77_DUMMY_MAIN() { return 1; }
7169 #endif
7170 int
7171 main ()
7172 {
7173 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7174 test_array [0] = 0
7175
7176   ;
7177   return 0;
7178 }
7179 _ACEOF
7180 rm -f conftest.$ac_objext
7181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7182   (eval $ac_compile) 2>&5
7183   ac_status=$?
7184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185   (exit $ac_status); } &&
7186          { ac_try='test -s conftest.$ac_objext'
7187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188   (eval $ac_try) 2>&5
7189   ac_status=$?
7190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191   (exit $ac_status); }; }; then
7192   ac_hi=-1 ac_mid=-1
7193   while :; do
7194     cat >conftest.$ac_ext <<_ACEOF
7195 #line $LINENO "configure"
7196 #include "confdefs.h"
7197 $ac_includes_default
7198 #ifdef F77_DUMMY_MAIN
7199 #  ifdef __cplusplus
7200      extern "C"
7201 #  endif
7202    int F77_DUMMY_MAIN() { return 1; }
7203 #endif
7204 int
7205 main ()
7206 {
7207 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7208 test_array [0] = 0
7209
7210   ;
7211   return 0;
7212 }
7213 _ACEOF
7214 rm -f conftest.$ac_objext
7215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7216   (eval $ac_compile) 2>&5
7217   ac_status=$?
7218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219   (exit $ac_status); } &&
7220          { ac_try='test -s conftest.$ac_objext'
7221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222   (eval $ac_try) 2>&5
7223   ac_status=$?
7224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225   (exit $ac_status); }; }; then
7226   ac_lo=$ac_mid; break
7227 else
7228   echo "$as_me: failed program was:" >&5
7229 cat conftest.$ac_ext >&5
7230 ac_hi=`expr '(' $ac_mid ')' - 1`
7231                        if test $ac_mid -le $ac_hi; then
7232                          ac_lo= ac_hi=
7233                          break
7234                        fi
7235                        ac_mid=`expr 2 '*' $ac_mid`
7236 fi
7237 rm -f conftest.$ac_objext conftest.$ac_ext
7238   done
7239 else
7240   echo "$as_me: failed program was:" >&5
7241 cat conftest.$ac_ext >&5
7242 ac_lo= ac_hi=
7243 fi
7244 rm -f conftest.$ac_objext conftest.$ac_ext
7245 fi
7246 rm -f conftest.$ac_objext conftest.$ac_ext
7247 # Binary search between lo and hi bounds.
7248 while test "x$ac_lo" != "x$ac_hi"; do
7249   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7250   cat >conftest.$ac_ext <<_ACEOF
7251 #line $LINENO "configure"
7252 #include "confdefs.h"
7253 $ac_includes_default
7254 #ifdef F77_DUMMY_MAIN
7255 #  ifdef __cplusplus
7256      extern "C"
7257 #  endif
7258    int F77_DUMMY_MAIN() { return 1; }
7259 #endif
7260 int
7261 main ()
7262 {
7263 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7264 test_array [0] = 0
7265
7266   ;
7267   return 0;
7268 }
7269 _ACEOF
7270 rm -f conftest.$ac_objext
7271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7272   (eval $ac_compile) 2>&5
7273   ac_status=$?
7274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275   (exit $ac_status); } &&
7276          { ac_try='test -s conftest.$ac_objext'
7277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278   (eval $ac_try) 2>&5
7279   ac_status=$?
7280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281   (exit $ac_status); }; }; then
7282   ac_hi=$ac_mid
7283 else
7284   echo "$as_me: failed program was:" >&5
7285 cat conftest.$ac_ext >&5
7286 ac_lo=`expr '(' $ac_mid ')' + 1`
7287 fi
7288 rm -f conftest.$ac_objext conftest.$ac_ext
7289 done
7290 case $ac_lo in
7291 ?*) ac_cv_sizeof_short=$ac_lo;;
7292 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7293 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7294    { (exit 1); exit 1; }; } ;;
7295 esac
7296 else
7297   if test "$cross_compiling" = yes; then
7298   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7299 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7300    { (exit 1); exit 1; }; }
7301 else
7302   cat >conftest.$ac_ext <<_ACEOF
7303 #line $LINENO "configure"
7304 #include "confdefs.h"
7305 $ac_includes_default
7306 long longval () { return (long) (sizeof (short)); }
7307 unsigned long ulongval () { return (long) (sizeof (short)); }
7308 #include <stdio.h>
7309 #include <stdlib.h>
7310 #ifdef F77_DUMMY_MAIN
7311 #  ifdef __cplusplus
7312      extern "C"
7313 #  endif
7314    int F77_DUMMY_MAIN() { return 1; }
7315 #endif
7316 int
7317 main ()
7318 {
7319
7320   FILE *f = fopen ("conftest.val", "w");
7321   if (! f)
7322     exit (1);
7323   if (((long) (sizeof (short))) < 0)
7324     {
7325       long i = longval ();
7326       if (i != ((long) (sizeof (short))))
7327         exit (1);
7328       fprintf (f, "%ld\n", i);
7329     }
7330   else
7331     {
7332       unsigned long i = ulongval ();
7333       if (i != ((long) (sizeof (short))))
7334         exit (1);
7335       fprintf (f, "%lu\n", i);
7336     }
7337   exit (ferror (f) || fclose (f) != 0);
7338
7339   ;
7340   return 0;
7341 }
7342 _ACEOF
7343 rm -f conftest$ac_exeext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7345   (eval $ac_link) 2>&5
7346   ac_status=$?
7347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350   (eval $ac_try) 2>&5
7351   ac_status=$?
7352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353   (exit $ac_status); }; }; then
7354   ac_cv_sizeof_short=`cat conftest.val`
7355 else
7356   echo "$as_me: program exited with status $ac_status" >&5
7357 echo "$as_me: failed program was:" >&5
7358 cat conftest.$ac_ext >&5
7359 ( exit $ac_status )
7360 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7361 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7362    { (exit 1); exit 1; }; }
7363 fi
7364 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7365 fi
7366 fi
7367 rm -f conftest.val
7368 else
7369   ac_cv_sizeof_short=0
7370 fi
7371 fi
7372 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7373 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7374 cat >>confdefs.h <<_ACEOF
7375 #define SIZEOF_SHORT $ac_cv_sizeof_short
7376 _ACEOF
7377
7378
7379
7380 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7381 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7382 if test "${ac_cv_c_const+set}" = set; then
7383   echo $ECHO_N "(cached) $ECHO_C" >&6
7384 else
7385   cat >conftest.$ac_ext <<_ACEOF
7386 #line $LINENO "configure"
7387 #include "confdefs.h"
7388
7389 #ifdef F77_DUMMY_MAIN
7390 #  ifdef __cplusplus
7391      extern "C"
7392 #  endif
7393    int F77_DUMMY_MAIN() { return 1; }
7394 #endif
7395 int
7396 main ()
7397 {
7398 /* FIXME: Include the comments suggested by Paul. */
7399 #ifndef __cplusplus
7400   /* Ultrix mips cc rejects this.  */
7401   typedef int charset[2];
7402   const charset x;
7403   /* SunOS 4.1.1 cc rejects this.  */
7404   char const *const *ccp;
7405   char **p;
7406   /* NEC SVR4.0.2 mips cc rejects this.  */
7407   struct point {int x, y;};
7408   static struct point const zero = {0,0};
7409   /* AIX XL C 1.02.0.0 rejects this.
7410      It does not let you subtract one const X* pointer from another in
7411      an arm of an if-expression whose if-part is not a constant
7412      expression */
7413   const char *g = "string";
7414   ccp = &g + (g ? g-g : 0);
7415   /* HPUX 7.0 cc rejects these. */
7416   ++ccp;
7417   p = (char**) ccp;
7418   ccp = (char const *const *) p;
7419   { /* SCO 3.2v4 cc rejects this.  */
7420     char *t;
7421     char const *s = 0 ? (char *) 0 : (char const *) 0;
7422
7423     *t++ = 0;
7424   }
7425   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7426     int x[] = {25, 17};
7427     const int *foo = &x[0];
7428     ++foo;
7429   }
7430   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7431     typedef const int *iptr;
7432     iptr p = 0;
7433     ++p;
7434   }
7435   { /* AIX XL C 1.02.0.0 rejects this saying
7436        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7437     struct s { int j; const int *ap[3]; };
7438     struct s *b; b->j = 5;
7439   }
7440   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7441     const int foo = 10;
7442   }
7443 #endif
7444
7445   ;
7446   return 0;
7447 }
7448 _ACEOF
7449 rm -f conftest.$ac_objext
7450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7451   (eval $ac_compile) 2>&5
7452   ac_status=$?
7453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454   (exit $ac_status); } &&
7455          { ac_try='test -s conftest.$ac_objext'
7456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457   (eval $ac_try) 2>&5
7458   ac_status=$?
7459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460   (exit $ac_status); }; }; then
7461   ac_cv_c_const=yes
7462 else
7463   echo "$as_me: failed program was:" >&5
7464 cat conftest.$ac_ext >&5
7465 ac_cv_c_const=no
7466 fi
7467 rm -f conftest.$ac_objext conftest.$ac_ext
7468 fi
7469 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7470 echo "${ECHO_T}$ac_cv_c_const" >&6
7471 if test $ac_cv_c_const = no; then
7472
7473 cat >>confdefs.h <<\_ACEOF
7474 #define const
7475 _ACEOF
7476
7477 fi
7478
7479 echo "$as_me:$LINENO: checking for inline" >&5
7480 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7481 if test "${ac_cv_c_inline+set}" = set; then
7482   echo $ECHO_N "(cached) $ECHO_C" >&6
7483 else
7484   ac_cv_c_inline=no
7485 for ac_kw in inline __inline__ __inline; do
7486   cat >conftest.$ac_ext <<_ACEOF
7487 #line $LINENO "configure"
7488 #include "confdefs.h"
7489 #ifndef __cplusplus
7490 static $ac_kw int static_foo () {return 0; }
7491 $ac_kw int foo () {return 0; }
7492 #endif
7493
7494 _ACEOF
7495 rm -f conftest.$ac_objext
7496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7497   (eval $ac_compile) 2>&5
7498   ac_status=$?
7499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500   (exit $ac_status); } &&
7501          { ac_try='test -s conftest.$ac_objext'
7502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503   (eval $ac_try) 2>&5
7504   ac_status=$?
7505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506   (exit $ac_status); }; }; then
7507   ac_cv_c_inline=$ac_kw; break
7508 else
7509   echo "$as_me: failed program was:" >&5
7510 cat conftest.$ac_ext >&5
7511 fi
7512 rm -f conftest.$ac_objext conftest.$ac_ext
7513 done
7514
7515 fi
7516 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7517 echo "${ECHO_T}$ac_cv_c_inline" >&6
7518 case $ac_cv_c_inline in
7519   inline | yes) ;;
7520   no)
7521 cat >>confdefs.h <<\_ACEOF
7522 #define inline
7523 _ACEOF
7524  ;;
7525   *)  cat >>confdefs.h <<_ACEOF
7526 #define inline $ac_cv_c_inline
7527 _ACEOF
7528  ;;
7529 esac
7530
7531 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7532 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7533 if test "${ac_cv_c_bigendian+set}" = set; then
7534   echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536   # See if sys/param.h defines the BYTE_ORDER macro.
7537 cat >conftest.$ac_ext <<_ACEOF
7538 #line $LINENO "configure"
7539 #include "confdefs.h"
7540 #include <sys/types.h>
7541 #include <sys/param.h>
7542
7543 #ifdef F77_DUMMY_MAIN
7544 #  ifdef __cplusplus
7545      extern "C"
7546 #  endif
7547    int F77_DUMMY_MAIN() { return 1; }
7548 #endif
7549 int
7550 main ()
7551 {
7552 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7553  bogus endian macros
7554 #endif
7555
7556   ;
7557   return 0;
7558 }
7559 _ACEOF
7560 rm -f conftest.$ac_objext
7561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7562   (eval $ac_compile) 2>&5
7563   ac_status=$?
7564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565   (exit $ac_status); } &&
7566          { ac_try='test -s conftest.$ac_objext'
7567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7568   (eval $ac_try) 2>&5
7569   ac_status=$?
7570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571   (exit $ac_status); }; }; then
7572   # It does; now see whether it defined to BIG_ENDIAN or not.
7573 cat >conftest.$ac_ext <<_ACEOF
7574 #line $LINENO "configure"
7575 #include "confdefs.h"
7576 #include <sys/types.h>
7577 #include <sys/param.h>
7578
7579 #ifdef F77_DUMMY_MAIN
7580 #  ifdef __cplusplus
7581      extern "C"
7582 #  endif
7583    int F77_DUMMY_MAIN() { return 1; }
7584 #endif
7585 int
7586 main ()
7587 {
7588 #if BYTE_ORDER != BIG_ENDIAN
7589  not big endian
7590 #endif
7591
7592   ;
7593   return 0;
7594 }
7595 _ACEOF
7596 rm -f conftest.$ac_objext
7597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7598   (eval $ac_compile) 2>&5
7599   ac_status=$?
7600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601   (exit $ac_status); } &&
7602          { ac_try='test -s conftest.$ac_objext'
7603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604   (eval $ac_try) 2>&5
7605   ac_status=$?
7606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607   (exit $ac_status); }; }; then
7608   ac_cv_c_bigendian=yes
7609 else
7610   echo "$as_me: failed program was:" >&5
7611 cat conftest.$ac_ext >&5
7612 ac_cv_c_bigendian=no
7613 fi
7614 rm -f conftest.$ac_objext conftest.$ac_ext
7615 else
7616   echo "$as_me: failed program was:" >&5
7617 cat conftest.$ac_ext >&5
7618 # It does not; compile a test program.
7619 if test "$cross_compiling" = yes; then
7620   # try to guess the endianess by grep'ing values into an object file
7621   ac_cv_c_bigendian=unknown
7622   cat >conftest.$ac_ext <<_ACEOF
7623 #line $LINENO "configure"
7624 #include "confdefs.h"
7625 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7626 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7627 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7628 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7629 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7630 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7631 #ifdef F77_DUMMY_MAIN
7632 #  ifdef __cplusplus
7633      extern "C"
7634 #  endif
7635    int F77_DUMMY_MAIN() { return 1; }
7636 #endif
7637 int
7638 main ()
7639 {
7640  _ascii (); _ebcdic ();
7641   ;
7642   return 0;
7643 }
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   if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7658   ac_cv_c_bigendian=yes
7659 fi
7660 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7661   if test "$ac_cv_c_bigendian" = unknown; then
7662     ac_cv_c_bigendian=no
7663   else
7664     # finding both strings is unlikely to happen, but who knows?
7665     ac_cv_c_bigendian=unknown
7666   fi
7667 fi
7668 else
7669   echo "$as_me: failed program was:" >&5
7670 cat conftest.$ac_ext >&5
7671 fi
7672 rm -f conftest.$ac_objext conftest.$ac_ext
7673 else
7674   cat >conftest.$ac_ext <<_ACEOF
7675 #line $LINENO "configure"
7676 #include "confdefs.h"
7677 int
7678 main ()
7679 {
7680   /* Are we little or big endian?  From Harbison&Steele.  */
7681   union
7682   {
7683     long l;
7684     char c[sizeof (long)];
7685   } u;
7686   u.l = 1;
7687   exit (u.c[sizeof (long) - 1] == 1);
7688 }
7689 _ACEOF
7690 rm -f conftest$ac_exeext
7691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7692   (eval $ac_link) 2>&5
7693   ac_status=$?
7694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697   (eval $ac_try) 2>&5
7698   ac_status=$?
7699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700   (exit $ac_status); }; }; then
7701   ac_cv_c_bigendian=no
7702 else
7703   echo "$as_me: program exited with status $ac_status" >&5
7704 echo "$as_me: failed program was:" >&5
7705 cat conftest.$ac_ext >&5
7706 ( exit $ac_status )
7707 ac_cv_c_bigendian=yes
7708 fi
7709 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7710 fi
7711 fi
7712 rm -f conftest.$ac_objext conftest.$ac_ext
7713 fi
7714 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7715 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7716 case $ac_cv_c_bigendian in
7717   yes)
7718
7719 cat >>confdefs.h <<\_ACEOF
7720 #define WORDS_BIGENDIAN 1
7721 _ACEOF
7722  ;;
7723   no)
7724      ;;
7725   *)
7726     { { echo "$as_me:$LINENO: error: unknown endianess
7727 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7728 echo "$as_me: error: unknown endianess
7729 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7730    { (exit 1); exit 1; }; } ;;
7731 esac
7732
7733
7734 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
7735 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
7736 if test "${ac_cv_c_char_unsigned+set}" = set; then
7737   echo $ECHO_N "(cached) $ECHO_C" >&6
7738 else
7739   cat >conftest.$ac_ext <<_ACEOF
7740 #line $LINENO "configure"
7741 #include "confdefs.h"
7742 $ac_includes_default
7743 #ifdef F77_DUMMY_MAIN
7744 #  ifdef __cplusplus
7745      extern "C"
7746 #  endif
7747    int F77_DUMMY_MAIN() { return 1; }
7748 #endif
7749 int
7750 main ()
7751 {
7752 static int test_array [1 - 2 * !(((char) -1) < 0)];
7753 test_array [0] = 0
7754
7755   ;
7756   return 0;
7757 }
7758 _ACEOF
7759 rm -f conftest.$ac_objext
7760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7761   (eval $ac_compile) 2>&5
7762   ac_status=$?
7763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764   (exit $ac_status); } &&
7765          { ac_try='test -s conftest.$ac_objext'
7766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767   (eval $ac_try) 2>&5
7768   ac_status=$?
7769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770   (exit $ac_status); }; }; then
7771   ac_cv_c_char_unsigned=no
7772 else
7773   echo "$as_me: failed program was:" >&5
7774 cat conftest.$ac_ext >&5
7775 ac_cv_c_char_unsigned=yes
7776 fi
7777 rm -f conftest.$ac_objext conftest.$ac_ext
7778 fi
7779 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
7780 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
7781 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
7782   cat >>confdefs.h <<\_ACEOF
7783 #define __CHAR_UNSIGNED__ 1
7784 _ACEOF
7785
7786 fi
7787
7788
7789 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7790 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7791 if test "${ac_cv_type_signal+set}" = set; then
7792   echo $ECHO_N "(cached) $ECHO_C" >&6
7793 else
7794   cat >conftest.$ac_ext <<_ACEOF
7795 #line $LINENO "configure"
7796 #include "confdefs.h"
7797 #include <sys/types.h>
7798 #include <signal.h>
7799 #ifdef signal
7800 # undef signal
7801 #endif
7802 #ifdef __cplusplus
7803 extern "C" void (*signal (int, void (*)(int)))(int);
7804 #else
7805 void (*signal ()) ();
7806 #endif
7807
7808 #ifdef F77_DUMMY_MAIN
7809 #  ifdef __cplusplus
7810      extern "C"
7811 #  endif
7812    int F77_DUMMY_MAIN() { return 1; }
7813 #endif
7814 int
7815 main ()
7816 {
7817 int i;
7818   ;
7819   return 0;
7820 }
7821 _ACEOF
7822 rm -f conftest.$ac_objext
7823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7824   (eval $ac_compile) 2>&5
7825   ac_status=$?
7826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827   (exit $ac_status); } &&
7828          { ac_try='test -s conftest.$ac_objext'
7829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830   (eval $ac_try) 2>&5
7831   ac_status=$?
7832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); }; }; then
7834   ac_cv_type_signal=void
7835 else
7836   echo "$as_me: failed program was:" >&5
7837 cat conftest.$ac_ext >&5
7838 ac_cv_type_signal=int
7839 fi
7840 rm -f conftest.$ac_objext conftest.$ac_ext
7841 fi
7842 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7843 echo "${ECHO_T}$ac_cv_type_signal" >&6
7844
7845 cat >>confdefs.h <<_ACEOF
7846 #define RETSIGTYPE $ac_cv_type_signal
7847 _ACEOF
7848
7849
7850 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7851 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7852 if test "${ac_cv_type_uid_t+set}" = set; then
7853   echo $ECHO_N "(cached) $ECHO_C" >&6
7854 else
7855   cat >conftest.$ac_ext <<_ACEOF
7856 #line $LINENO "configure"
7857 #include "confdefs.h"
7858 #include <sys/types.h>
7859
7860 _ACEOF
7861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7862   egrep "uid_t" >/dev/null 2>&1; then
7863   ac_cv_type_uid_t=yes
7864 else
7865   ac_cv_type_uid_t=no
7866 fi
7867 rm -f conftest*
7868
7869 fi
7870 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7871 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7872 if test $ac_cv_type_uid_t = no; then
7873
7874 cat >>confdefs.h <<\_ACEOF
7875 #define uid_t int
7876 _ACEOF
7877
7878
7879 cat >>confdefs.h <<\_ACEOF
7880 #define gid_t int
7881 _ACEOF
7882
7883 fi
7884
7885 echo "$as_me:$LINENO: checking for mode_t" >&5
7886 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7887 if test "${ac_cv_type_mode_t+set}" = set; then
7888   echo $ECHO_N "(cached) $ECHO_C" >&6
7889 else
7890   cat >conftest.$ac_ext <<_ACEOF
7891 #line $LINENO "configure"
7892 #include "confdefs.h"
7893 $ac_includes_default
7894 #ifdef F77_DUMMY_MAIN
7895 #  ifdef __cplusplus
7896      extern "C"
7897 #  endif
7898    int F77_DUMMY_MAIN() { return 1; }
7899 #endif
7900 int
7901 main ()
7902 {
7903 if ((mode_t *) 0)
7904   return 0;
7905 if (sizeof (mode_t))
7906   return 0;
7907   ;
7908   return 0;
7909 }
7910 _ACEOF
7911 rm -f conftest.$ac_objext
7912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7913   (eval $ac_compile) 2>&5
7914   ac_status=$?
7915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916   (exit $ac_status); } &&
7917          { ac_try='test -s conftest.$ac_objext'
7918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919   (eval $ac_try) 2>&5
7920   ac_status=$?
7921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922   (exit $ac_status); }; }; then
7923   ac_cv_type_mode_t=yes
7924 else
7925   echo "$as_me: failed program was:" >&5
7926 cat conftest.$ac_ext >&5
7927 ac_cv_type_mode_t=no
7928 fi
7929 rm -f conftest.$ac_objext conftest.$ac_ext
7930 fi
7931 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7932 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7933 if test $ac_cv_type_mode_t = yes; then
7934   :
7935 else
7936
7937 cat >>confdefs.h <<_ACEOF
7938 #define mode_t int
7939 _ACEOF
7940
7941 fi
7942
7943 echo "$as_me:$LINENO: checking for off_t" >&5
7944 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7945 if test "${ac_cv_type_off_t+set}" = set; then
7946   echo $ECHO_N "(cached) $ECHO_C" >&6
7947 else
7948   cat >conftest.$ac_ext <<_ACEOF
7949 #line $LINENO "configure"
7950 #include "confdefs.h"
7951 $ac_includes_default
7952 #ifdef F77_DUMMY_MAIN
7953 #  ifdef __cplusplus
7954      extern "C"
7955 #  endif
7956    int F77_DUMMY_MAIN() { return 1; }
7957 #endif
7958 int
7959 main ()
7960 {
7961 if ((off_t *) 0)
7962   return 0;
7963 if (sizeof (off_t))
7964   return 0;
7965   ;
7966   return 0;
7967 }
7968 _ACEOF
7969 rm -f conftest.$ac_objext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7971   (eval $ac_compile) 2>&5
7972   ac_status=$?
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); } &&
7975          { ac_try='test -s conftest.$ac_objext'
7976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977   (eval $ac_try) 2>&5
7978   ac_status=$?
7979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980   (exit $ac_status); }; }; then
7981   ac_cv_type_off_t=yes
7982 else
7983   echo "$as_me: failed program was:" >&5
7984 cat conftest.$ac_ext >&5
7985 ac_cv_type_off_t=no
7986 fi
7987 rm -f conftest.$ac_objext conftest.$ac_ext
7988 fi
7989 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7990 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7991 if test $ac_cv_type_off_t = yes; then
7992   :
7993 else
7994
7995 cat >>confdefs.h <<_ACEOF
7996 #define off_t long
7997 _ACEOF
7998
7999 fi
8000
8001 echo "$as_me:$LINENO: checking for size_t" >&5
8002 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8003 if test "${ac_cv_type_size_t+set}" = set; then
8004   echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006   cat >conftest.$ac_ext <<_ACEOF
8007 #line $LINENO "configure"
8008 #include "confdefs.h"
8009 $ac_includes_default
8010 #ifdef F77_DUMMY_MAIN
8011 #  ifdef __cplusplus
8012      extern "C"
8013 #  endif
8014    int F77_DUMMY_MAIN() { return 1; }
8015 #endif
8016 int
8017 main ()
8018 {
8019 if ((size_t *) 0)
8020   return 0;
8021 if (sizeof (size_t))
8022   return 0;
8023   ;
8024   return 0;
8025 }
8026 _ACEOF
8027 rm -f conftest.$ac_objext
8028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8029   (eval $ac_compile) 2>&5
8030   ac_status=$?
8031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032   (exit $ac_status); } &&
8033          { ac_try='test -s conftest.$ac_objext'
8034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035   (eval $ac_try) 2>&5
8036   ac_status=$?
8037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038   (exit $ac_status); }; }; then
8039   ac_cv_type_size_t=yes
8040 else
8041   echo "$as_me: failed program was:" >&5
8042 cat conftest.$ac_ext >&5
8043 ac_cv_type_size_t=no
8044 fi
8045 rm -f conftest.$ac_objext conftest.$ac_ext
8046 fi
8047 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8048 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8049 if test $ac_cv_type_size_t = yes; then
8050   :
8051 else
8052
8053 cat >>confdefs.h <<_ACEOF
8054 #define size_t unsigned
8055 _ACEOF
8056
8057 fi
8058
8059 echo "$as_me:$LINENO: checking for pid_t" >&5
8060 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8061 if test "${ac_cv_type_pid_t+set}" = set; then
8062   echo $ECHO_N "(cached) $ECHO_C" >&6
8063 else
8064   cat >conftest.$ac_ext <<_ACEOF
8065 #line $LINENO "configure"
8066 #include "confdefs.h"
8067 $ac_includes_default
8068 #ifdef F77_DUMMY_MAIN
8069 #  ifdef __cplusplus
8070      extern "C"
8071 #  endif
8072    int F77_DUMMY_MAIN() { return 1; }
8073 #endif
8074 int
8075 main ()
8076 {
8077 if ((pid_t *) 0)
8078   return 0;
8079 if (sizeof (pid_t))
8080   return 0;
8081   ;
8082   return 0;
8083 }
8084 _ACEOF
8085 rm -f conftest.$ac_objext
8086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8087   (eval $ac_compile) 2>&5
8088   ac_status=$?
8089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090   (exit $ac_status); } &&
8091          { ac_try='test -s conftest.$ac_objext'
8092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093   (eval $ac_try) 2>&5
8094   ac_status=$?
8095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   (exit $ac_status); }; }; then
8097   ac_cv_type_pid_t=yes
8098 else
8099   echo "$as_me: failed program was:" >&5
8100 cat conftest.$ac_ext >&5
8101 ac_cv_type_pid_t=no
8102 fi
8103 rm -f conftest.$ac_objext conftest.$ac_ext
8104 fi
8105 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8106 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8107 if test $ac_cv_type_pid_t = yes; then
8108   :
8109 else
8110
8111 cat >>confdefs.h <<_ACEOF
8112 #define pid_t int
8113 _ACEOF
8114
8115 fi
8116
8117
8118 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
8119 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
8120 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
8121   echo $ECHO_N "(cached) $ECHO_C" >&6
8122 else
8123   cat >conftest.$ac_ext <<_ACEOF
8124 #line $LINENO "configure"
8125 #include "confdefs.h"
8126 $ac_includes_default
8127 #ifdef F77_DUMMY_MAIN
8128 #  ifdef __cplusplus
8129      extern "C"
8130 #  endif
8131    int F77_DUMMY_MAIN() { return 1; }
8132 #endif
8133 int
8134 main ()
8135 {
8136 static struct stat ac_aggr;
8137 if (ac_aggr.st_rdev)
8138 return 0;
8139   ;
8140   return 0;
8141 }
8142 _ACEOF
8143 rm -f conftest.$ac_objext
8144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8145   (eval $ac_compile) 2>&5
8146   ac_status=$?
8147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148   (exit $ac_status); } &&
8149          { ac_try='test -s conftest.$ac_objext'
8150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151   (eval $ac_try) 2>&5
8152   ac_status=$?
8153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154   (exit $ac_status); }; }; then
8155   ac_cv_member_struct_stat_st_rdev=yes
8156 else
8157   echo "$as_me: failed program was:" >&5
8158 cat conftest.$ac_ext >&5
8159 ac_cv_member_struct_stat_st_rdev=no
8160 fi
8161 rm -f conftest.$ac_objext conftest.$ac_ext
8162 fi
8163 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
8164 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
8165 if test $ac_cv_member_struct_stat_st_rdev = yes; then
8166
8167 cat >>confdefs.h <<_ACEOF
8168 #define HAVE_STRUCT_STAT_ST_RDEV 1
8169 _ACEOF
8170
8171
8172 cat >>confdefs.h <<\_ACEOF
8173 #define HAVE_ST_RDEV 1
8174 _ACEOF
8175
8176 fi
8177
8178
8179 echo "$as_me:$LINENO: checking for d_off in dirent" >&5
8180 echo $ECHO_N "checking for d_off in dirent... $ECHO_C" >&6
8181 if test "${ac_cv_dirent_d_off+set}" = set; then
8182   echo $ECHO_N "(cached) $ECHO_C" >&6
8183 else
8184   cat >conftest.$ac_ext <<_ACEOF
8185 #line $LINENO "configure"
8186 #include "confdefs.h"
8187
8188 #include <unistd.h>
8189 #include <sys/types.h>
8190 #include <dirent.h>
8191 #ifdef F77_DUMMY_MAIN
8192 #  ifdef __cplusplus
8193      extern "C"
8194 #  endif
8195    int F77_DUMMY_MAIN() { return 1; }
8196 #endif
8197 int
8198 main ()
8199 {
8200 struct dirent d; d.d_off;
8201   ;
8202   return 0;
8203 }
8204 _ACEOF
8205 rm -f conftest.$ac_objext
8206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8207   (eval $ac_compile) 2>&5
8208   ac_status=$?
8209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210   (exit $ac_status); } &&
8211          { ac_try='test -s conftest.$ac_objext'
8212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213   (eval $ac_try) 2>&5
8214   ac_status=$?
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   (exit $ac_status); }; }; then
8217   ac_cv_dirent_d_off=yes
8218 else
8219   echo "$as_me: failed program was:" >&5
8220 cat conftest.$ac_ext >&5
8221 ac_cv_dirent_d_off=no
8222 fi
8223 rm -f conftest.$ac_objext conftest.$ac_ext
8224 fi
8225 echo "$as_me:$LINENO: result: $ac_cv_dirent_d_off" >&5
8226 echo "${ECHO_T}$ac_cv_dirent_d_off" >&6
8227 if test $ac_cv_dirent_d_off = yes; then
8228
8229 cat >>confdefs.h <<\_ACEOF
8230 #define HAVE_DIRENT_D_OFF 1
8231 _ACEOF
8232
8233 fi
8234
8235 echo "$as_me:$LINENO: checking for ino_t" >&5
8236 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
8237 if test "${ac_cv_type_ino_t+set}" = set; then
8238   echo $ECHO_N "(cached) $ECHO_C" >&6
8239 else
8240   cat >conftest.$ac_ext <<_ACEOF
8241 #line $LINENO "configure"
8242 #include "confdefs.h"
8243 $ac_includes_default
8244 #ifdef F77_DUMMY_MAIN
8245 #  ifdef __cplusplus
8246      extern "C"
8247 #  endif
8248    int F77_DUMMY_MAIN() { return 1; }
8249 #endif
8250 int
8251 main ()
8252 {
8253 if ((ino_t *) 0)
8254   return 0;
8255 if (sizeof (ino_t))
8256   return 0;
8257   ;
8258   return 0;
8259 }
8260 _ACEOF
8261 rm -f conftest.$ac_objext
8262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8263   (eval $ac_compile) 2>&5
8264   ac_status=$?
8265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266   (exit $ac_status); } &&
8267          { ac_try='test -s conftest.$ac_objext'
8268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269   (eval $ac_try) 2>&5
8270   ac_status=$?
8271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272   (exit $ac_status); }; }; then
8273   ac_cv_type_ino_t=yes
8274 else
8275   echo "$as_me: failed program was:" >&5
8276 cat conftest.$ac_ext >&5
8277 ac_cv_type_ino_t=no
8278 fi
8279 rm -f conftest.$ac_objext conftest.$ac_ext
8280 fi
8281 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
8282 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
8283 if test $ac_cv_type_ino_t = yes; then
8284   :
8285 else
8286
8287 cat >>confdefs.h <<_ACEOF
8288 #define ino_t unsigned
8289 _ACEOF
8290
8291 fi
8292
8293 echo "$as_me:$LINENO: checking for loff_t" >&5
8294 echo $ECHO_N "checking for loff_t... $ECHO_C" >&6
8295 if test "${ac_cv_type_loff_t+set}" = set; then
8296   echo $ECHO_N "(cached) $ECHO_C" >&6
8297 else
8298   cat >conftest.$ac_ext <<_ACEOF
8299 #line $LINENO "configure"
8300 #include "confdefs.h"
8301 $ac_includes_default
8302 #ifdef F77_DUMMY_MAIN
8303 #  ifdef __cplusplus
8304      extern "C"
8305 #  endif
8306    int F77_DUMMY_MAIN() { return 1; }
8307 #endif
8308 int
8309 main ()
8310 {
8311 if ((loff_t *) 0)
8312   return 0;
8313 if (sizeof (loff_t))
8314   return 0;
8315   ;
8316   return 0;
8317 }
8318 _ACEOF
8319 rm -f conftest.$ac_objext
8320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8321   (eval $ac_compile) 2>&5
8322   ac_status=$?
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); } &&
8325          { ac_try='test -s conftest.$ac_objext'
8326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327   (eval $ac_try) 2>&5
8328   ac_status=$?
8329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330   (exit $ac_status); }; }; then
8331   ac_cv_type_loff_t=yes
8332 else
8333   echo "$as_me: failed program was:" >&5
8334 cat conftest.$ac_ext >&5
8335 ac_cv_type_loff_t=no
8336 fi
8337 rm -f conftest.$ac_objext conftest.$ac_ext
8338 fi
8339 echo "$as_me:$LINENO: result: $ac_cv_type_loff_t" >&5
8340 echo "${ECHO_T}$ac_cv_type_loff_t" >&6
8341 if test $ac_cv_type_loff_t = yes; then
8342   :
8343 else
8344
8345 cat >>confdefs.h <<_ACEOF
8346 #define loff_t off_t
8347 _ACEOF
8348
8349 fi
8350
8351 echo "$as_me:$LINENO: checking for offset_t" >&5
8352 echo $ECHO_N "checking for offset_t... $ECHO_C" >&6
8353 if test "${ac_cv_type_offset_t+set}" = set; then
8354   echo $ECHO_N "(cached) $ECHO_C" >&6
8355 else
8356   cat >conftest.$ac_ext <<_ACEOF
8357 #line $LINENO "configure"
8358 #include "confdefs.h"
8359 $ac_includes_default
8360 #ifdef F77_DUMMY_MAIN
8361 #  ifdef __cplusplus
8362      extern "C"
8363 #  endif
8364    int F77_DUMMY_MAIN() { return 1; }
8365 #endif
8366 int
8367 main ()
8368 {
8369 if ((offset_t *) 0)
8370   return 0;
8371 if (sizeof (offset_t))
8372   return 0;
8373   ;
8374   return 0;
8375 }
8376 _ACEOF
8377 rm -f conftest.$ac_objext
8378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8379   (eval $ac_compile) 2>&5
8380   ac_status=$?
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); } &&
8383          { ac_try='test -s conftest.$ac_objext'
8384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385   (eval $ac_try) 2>&5
8386   ac_status=$?
8387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388   (exit $ac_status); }; }; then
8389   ac_cv_type_offset_t=yes
8390 else
8391   echo "$as_me: failed program was:" >&5
8392 cat conftest.$ac_ext >&5
8393 ac_cv_type_offset_t=no
8394 fi
8395 rm -f conftest.$ac_objext conftest.$ac_ext
8396 fi
8397 echo "$as_me:$LINENO: result: $ac_cv_type_offset_t" >&5
8398 echo "${ECHO_T}$ac_cv_type_offset_t" >&6
8399 if test $ac_cv_type_offset_t = yes; then
8400   :
8401 else
8402
8403 cat >>confdefs.h <<_ACEOF
8404 #define offset_t loff_t
8405 _ACEOF
8406
8407 fi
8408
8409 echo "$as_me:$LINENO: checking for ssize_t" >&5
8410 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
8411 if test "${ac_cv_type_ssize_t+set}" = set; then
8412   echo $ECHO_N "(cached) $ECHO_C" >&6
8413 else
8414   cat >conftest.$ac_ext <<_ACEOF
8415 #line $LINENO "configure"
8416 #include "confdefs.h"
8417 $ac_includes_default
8418 #ifdef F77_DUMMY_MAIN
8419 #  ifdef __cplusplus
8420      extern "C"
8421 #  endif
8422    int F77_DUMMY_MAIN() { return 1; }
8423 #endif
8424 int
8425 main ()
8426 {
8427 if ((ssize_t *) 0)
8428   return 0;
8429 if (sizeof (ssize_t))
8430   return 0;
8431   ;
8432   return 0;
8433 }
8434 _ACEOF
8435 rm -f conftest.$ac_objext
8436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8437   (eval $ac_compile) 2>&5
8438   ac_status=$?
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); } &&
8441          { ac_try='test -s conftest.$ac_objext'
8442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443   (eval $ac_try) 2>&5
8444   ac_status=$?
8445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446   (exit $ac_status); }; }; then
8447   ac_cv_type_ssize_t=yes
8448 else
8449   echo "$as_me: failed program was:" >&5
8450 cat conftest.$ac_ext >&5
8451 ac_cv_type_ssize_t=no
8452 fi
8453 rm -f conftest.$ac_objext conftest.$ac_ext
8454 fi
8455 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8456 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
8457 if test $ac_cv_type_ssize_t = yes; then
8458   :
8459 else
8460
8461 cat >>confdefs.h <<_ACEOF
8462 #define ssize_t int
8463 _ACEOF
8464
8465 fi
8466
8467 echo "$as_me:$LINENO: checking for wchar_t" >&5
8468 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
8469 if test "${ac_cv_type_wchar_t+set}" = set; then
8470   echo $ECHO_N "(cached) $ECHO_C" >&6
8471 else
8472   cat >conftest.$ac_ext <<_ACEOF
8473 #line $LINENO "configure"
8474 #include "confdefs.h"
8475 $ac_includes_default
8476 #ifdef F77_DUMMY_MAIN
8477 #  ifdef __cplusplus
8478      extern "C"
8479 #  endif
8480    int F77_DUMMY_MAIN() { return 1; }
8481 #endif
8482 int
8483 main ()
8484 {
8485 if ((wchar_t *) 0)
8486   return 0;
8487 if (sizeof (wchar_t))
8488   return 0;
8489   ;
8490   return 0;
8491 }
8492 _ACEOF
8493 rm -f conftest.$ac_objext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8495   (eval $ac_compile) 2>&5
8496   ac_status=$?
8497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498   (exit $ac_status); } &&
8499          { ac_try='test -s conftest.$ac_objext'
8500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501   (eval $ac_try) 2>&5
8502   ac_status=$?
8503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504   (exit $ac_status); }; }; then
8505   ac_cv_type_wchar_t=yes
8506 else
8507   echo "$as_me: failed program was:" >&5
8508 cat conftest.$ac_ext >&5
8509 ac_cv_type_wchar_t=no
8510 fi
8511 rm -f conftest.$ac_objext conftest.$ac_ext
8512 fi
8513 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
8514 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
8515 if test $ac_cv_type_wchar_t = yes; then
8516   :
8517 else
8518
8519 cat >>confdefs.h <<_ACEOF
8520 #define wchar_t unsigned short
8521 _ACEOF
8522
8523 fi
8524
8525
8526 ############################################
8527 # for cups support we need libcups, and a handful of header files
8528
8529 # Check whether --enable-cups or --disable-cups was given.
8530 if test "${enable_cups+set}" = set; then
8531   enableval="$enable_cups"
8532
8533 fi;
8534
8535 if test x$enable_cups != xno; then
8536         # Extract the first word of "cups-config", so it can be a program name with args.
8537 set dummy cups-config; ac_word=$2
8538 echo "$as_me:$LINENO: checking for $ac_word" >&5
8539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8540 if test "${ac_cv_path_CUPS_CONFIG+set}" = set; then
8541   echo $ECHO_N "(cached) $ECHO_C" >&6
8542 else
8543   case $CUPS_CONFIG in
8544   [\\/]* | ?:[\\/]*)
8545   ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
8546   ;;
8547   *)
8548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549 for as_dir in $PATH
8550 do
8551   IFS=$as_save_IFS
8552   test -z "$as_dir" && as_dir=.
8553   for ac_exec_ext in '' $ac_executable_extensions; do
8554   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8555     ac_cv_path_CUPS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8557     break 2
8558   fi
8559 done
8560 done
8561
8562   ;;
8563 esac
8564 fi
8565 CUPS_CONFIG=$ac_cv_path_CUPS_CONFIG
8566
8567 if test -n "$CUPS_CONFIG"; then
8568   echo "$as_me:$LINENO: result: $CUPS_CONFIG" >&5
8569 echo "${ECHO_T}$CUPS_CONFIG" >&6
8570 else
8571   echo "$as_me:$LINENO: result: no" >&5
8572 echo "${ECHO_T}no" >&6
8573 fi
8574
8575
8576         if test "x$CUPS_CONFIG" != x; then
8577
8578 cat >>confdefs.h <<\_ACEOF
8579 #define HAVE_CUPS 1
8580 _ACEOF
8581
8582                 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
8583                 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
8584                 PRINTLIBS="$PRINTLIBS `$CUPS_CONFIG --libs`"
8585         fi
8586 fi
8587
8588 ############################################
8589 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
8590
8591 for ac_func in dlopen
8592 do
8593 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8594 echo "$as_me:$LINENO: checking for $ac_func" >&5
8595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8596 if eval "test \"\${$as_ac_var+set}\" = set"; then
8597   echo $ECHO_N "(cached) $ECHO_C" >&6
8598 else
8599   cat >conftest.$ac_ext <<_ACEOF
8600 #line $LINENO "configure"
8601 #include "confdefs.h"
8602 /* System header to define __stub macros and hopefully few prototypes,
8603     which can conflict with char $ac_func (); below.  */
8604 #include <assert.h>
8605 /* Override any gcc2 internal prototype to avoid an error.  */
8606 #ifdef __cplusplus
8607 extern "C"
8608 #endif
8609 /* We use char because int might match the return type of a gcc2
8610    builtin and then its argument prototype would still apply.  */
8611 char $ac_func ();
8612 char (*f) ();
8613
8614 #ifdef F77_DUMMY_MAIN
8615 #  ifdef __cplusplus
8616      extern "C"
8617 #  endif
8618    int F77_DUMMY_MAIN() { return 1; }
8619 #endif
8620 int
8621 main ()
8622 {
8623 /* The GNU C library defines this for functions which it implements
8624     to always fail with ENOSYS.  Some functions are actually named
8625     something starting with __ and the normal name is an alias.  */
8626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8627 choke me
8628 #else
8629 f = $ac_func;
8630 #endif
8631
8632   ;
8633   return 0;
8634 }
8635 _ACEOF
8636 rm -f conftest.$ac_objext conftest$ac_exeext
8637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8638   (eval $ac_link) 2>&5
8639   ac_status=$?
8640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641   (exit $ac_status); } &&
8642          { ac_try='test -s conftest$ac_exeext'
8643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644   (eval $ac_try) 2>&5
8645   ac_status=$?
8646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647   (exit $ac_status); }; }; then
8648   eval "$as_ac_var=yes"
8649 else
8650   echo "$as_me: failed program was:" >&5
8651 cat conftest.$ac_ext >&5
8652 eval "$as_ac_var=no"
8653 fi
8654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8655 fi
8656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8658 if test `eval echo '${'$as_ac_var'}'` = yes; then
8659   cat >>confdefs.h <<_ACEOF
8660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8661 _ACEOF
8662
8663 fi
8664 done
8665
8666 if test x"$ac_cv_func_dlopen" = x"no"; then
8667     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8668 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8669 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8670   echo $ECHO_N "(cached) $ECHO_C" >&6
8671 else
8672   ac_check_lib_save_LIBS=$LIBS
8673 LIBS="-ldl  $LIBS"
8674 cat >conftest.$ac_ext <<_ACEOF
8675 #line $LINENO "configure"
8676 #include "confdefs.h"
8677
8678 /* Override any gcc2 internal prototype to avoid an error.  */
8679 #ifdef __cplusplus
8680 extern "C"
8681 #endif
8682 /* We use char because int might match the return type of a gcc2
8683    builtin and then its argument prototype would still apply.  */
8684 char dlopen ();
8685 #ifdef F77_DUMMY_MAIN
8686 #  ifdef __cplusplus
8687      extern "C"
8688 #  endif
8689    int F77_DUMMY_MAIN() { return 1; }
8690 #endif
8691 int
8692 main ()
8693 {
8694 dlopen ();
8695   ;
8696   return 0;
8697 }
8698 _ACEOF
8699 rm -f conftest.$ac_objext conftest$ac_exeext
8700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8701   (eval $ac_link) 2>&5
8702   ac_status=$?
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); } &&
8705          { ac_try='test -s conftest$ac_exeext'
8706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707   (eval $ac_try) 2>&5
8708   ac_status=$?
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); }; }; then
8711   ac_cv_lib_dl_dlopen=yes
8712 else
8713   echo "$as_me: failed program was:" >&5
8714 cat conftest.$ac_ext >&5
8715 ac_cv_lib_dl_dlopen=no
8716 fi
8717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8718 LIBS=$ac_check_lib_save_LIBS
8719 fi
8720 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8721 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8722 if test $ac_cv_lib_dl_dlopen = yes; then
8723   LIBS="$LIBS -ldl";
8724
8725 cat >>confdefs.h <<\_ACEOF
8726 #define HAVE_DLOPEN 1
8727 _ACEOF
8728
8729 fi
8730
8731 fi
8732 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
8733
8734 ############################################
8735 # check if the compiler can do immediate structures
8736 echo "$as_me:$LINENO: checking for immediate structures" >&5
8737 echo $ECHO_N "checking for immediate structures... $ECHO_C" >&6
8738 if test "${samba_cv_immediate_structures+set}" = set; then
8739   echo $ECHO_N "(cached) $ECHO_C" >&6
8740 else
8741
8742     cat >conftest.$ac_ext <<_ACEOF
8743 #line $LINENO "configure"
8744 #include "confdefs.h"
8745
8746 #include <stdio.h>
8747 #ifdef F77_DUMMY_MAIN
8748 #  ifdef __cplusplus
8749      extern "C"
8750 #  endif
8751    int F77_DUMMY_MAIN() { return 1; }
8752 #endif
8753 int
8754 main ()
8755 {
8756
8757    typedef struct {unsigned x;} FOOBAR;
8758    #define X_FOOBAR(x) ((FOOBAR) { x })
8759    #define FOO_ONE X_FOOBAR(1)
8760    FOOBAR f = FOO_ONE;
8761    static struct {
8762         FOOBAR y;
8763         } f2[] = {
8764                 {FOO_ONE}
8765         };
8766
8767   ;
8768   return 0;
8769 }
8770 _ACEOF
8771 rm -f conftest.$ac_objext
8772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8773   (eval $ac_compile) 2>&5
8774   ac_status=$?
8775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); } &&
8777          { ac_try='test -s conftest.$ac_objext'
8778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779   (eval $ac_try) 2>&5
8780   ac_status=$?
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); }; }; then
8783   samba_cv_immediate_structures=yes
8784 else
8785   echo "$as_me: failed program was:" >&5
8786 cat conftest.$ac_ext >&5
8787 samba_cv_immediate_structures=no
8788 fi
8789 rm -f conftest.$ac_objext conftest.$ac_ext
8790 fi
8791 echo "$as_me:$LINENO: result: $samba_cv_immediate_structures" >&5
8792 echo "${ECHO_T}$samba_cv_immediate_structures" >&6
8793 if test x"$samba_cv_immediate_structures" = x"yes"; then
8794
8795 cat >>confdefs.h <<\_ACEOF
8796 #define HAVE_IMMEDIATE_STRUCTURES 1
8797 _ACEOF
8798
8799 fi
8800
8801 ############################################
8802 # check for unix domain sockets
8803 echo "$as_me:$LINENO: checking for unix domain sockets" >&5
8804 echo $ECHO_N "checking for unix domain sockets... $ECHO_C" >&6
8805 if test "${samba_cv_unixsocket+set}" = set; then
8806   echo $ECHO_N "(cached) $ECHO_C" >&6
8807 else
8808
8809     cat >conftest.$ac_ext <<_ACEOF
8810 #line $LINENO "configure"
8811 #include "confdefs.h"
8812
8813 #include <sys/types.h>
8814 #include <stdlib.h>
8815 #include <stddef.h>
8816 #include <sys/socket.h>
8817 #include <sys/un.h>
8818 #ifdef F77_DUMMY_MAIN
8819 #  ifdef __cplusplus
8820      extern "C"
8821 #  endif
8822    int F77_DUMMY_MAIN() { return 1; }
8823 #endif
8824 int
8825 main ()
8826 {
8827
8828   struct sockaddr_un sunaddr;
8829   sunaddr.sun_family = AF_UNIX;
8830
8831   ;
8832   return 0;
8833 }
8834 _ACEOF
8835 rm -f conftest.$ac_objext
8836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8837   (eval $ac_compile) 2>&5
8838   ac_status=$?
8839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840   (exit $ac_status); } &&
8841          { ac_try='test -s conftest.$ac_objext'
8842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843   (eval $ac_try) 2>&5
8844   ac_status=$?
8845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846   (exit $ac_status); }; }; then
8847   samba_cv_unixsocket=yes
8848 else
8849   echo "$as_me: failed program was:" >&5
8850 cat conftest.$ac_ext >&5
8851 samba_cv_unixsocket=no
8852 fi
8853 rm -f conftest.$ac_objext conftest.$ac_ext
8854 fi
8855 echo "$as_me:$LINENO: result: $samba_cv_unixsocket" >&5
8856 echo "${ECHO_T}$samba_cv_unixsocket" >&6
8857 if test x"$samba_cv_unixsocket" = x"yes"; then
8858
8859 cat >>confdefs.h <<\_ACEOF
8860 #define HAVE_UNIXSOCKET 1
8861 _ACEOF
8862
8863 fi
8864
8865
8866 echo "$as_me:$LINENO: checking for socklen_t type" >&5
8867 echo $ECHO_N "checking for socklen_t type... $ECHO_C" >&6
8868 if test "${samba_cv_socklen_t+set}" = set; then
8869   echo $ECHO_N "(cached) $ECHO_C" >&6
8870 else
8871
8872     cat >conftest.$ac_ext <<_ACEOF
8873 #line $LINENO "configure"
8874 #include "confdefs.h"
8875
8876 #include <sys/types.h>
8877 #if STDC_HEADERS
8878 #include <stdlib.h>
8879 #include <stddef.h>
8880 #endif
8881 #include <sys/socket.h>
8882 #ifdef F77_DUMMY_MAIN
8883 #  ifdef __cplusplus
8884      extern "C"
8885 #  endif
8886    int F77_DUMMY_MAIN() { return 1; }
8887 #endif
8888 int
8889 main ()
8890 {
8891 socklen_t i = 0
8892   ;
8893   return 0;
8894 }
8895 _ACEOF
8896 rm -f conftest.$ac_objext
8897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8898   (eval $ac_compile) 2>&5
8899   ac_status=$?
8900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901   (exit $ac_status); } &&
8902          { ac_try='test -s conftest.$ac_objext'
8903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904   (eval $ac_try) 2>&5
8905   ac_status=$?
8906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907   (exit $ac_status); }; }; then
8908   samba_cv_socklen_t=yes
8909 else
8910   echo "$as_me: failed program was:" >&5
8911 cat conftest.$ac_ext >&5
8912 samba_cv_socklen_t=no
8913 fi
8914 rm -f conftest.$ac_objext conftest.$ac_ext
8915 fi
8916 echo "$as_me:$LINENO: result: $samba_cv_socklen_t" >&5
8917 echo "${ECHO_T}$samba_cv_socklen_t" >&6
8918 if test x"$samba_cv_socklen_t" = x"yes"; then
8919
8920 cat >>confdefs.h <<\_ACEOF
8921 #define HAVE_SOCKLEN_T_TYPE 1
8922 _ACEOF
8923
8924 fi
8925
8926 echo "$as_me:$LINENO: checking for sig_atomic_t type" >&5
8927 echo $ECHO_N "checking for sig_atomic_t type... $ECHO_C" >&6
8928 if test "${samba_cv_sig_atomic_t+set}" = set; then
8929   echo $ECHO_N "(cached) $ECHO_C" >&6
8930 else
8931
8932     cat >conftest.$ac_ext <<_ACEOF
8933 #line $LINENO "configure"
8934 #include "confdefs.h"
8935
8936 #include <sys/types.h>
8937 #if STDC_HEADERS
8938 #include <stdlib.h>
8939 #include <stddef.h>
8940 #endif
8941 #include <signal.h>
8942 #ifdef F77_DUMMY_MAIN
8943 #  ifdef __cplusplus
8944      extern "C"
8945 #  endif
8946    int F77_DUMMY_MAIN() { return 1; }
8947 #endif
8948 int
8949 main ()
8950 {
8951 sig_atomic_t i = 0
8952   ;
8953   return 0;
8954 }
8955 _ACEOF
8956 rm -f conftest.$ac_objext
8957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8958   (eval $ac_compile) 2>&5
8959   ac_status=$?
8960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961   (exit $ac_status); } &&
8962          { ac_try='test -s conftest.$ac_objext'
8963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964   (eval $ac_try) 2>&5
8965   ac_status=$?
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); }; }; then
8968   samba_cv_sig_atomic_t=yes
8969 else
8970   echo "$as_me: failed program was:" >&5
8971 cat conftest.$ac_ext >&5
8972 samba_cv_sig_atomic_t=no
8973 fi
8974 rm -f conftest.$ac_objext conftest.$ac_ext
8975 fi
8976 echo "$as_me:$LINENO: result: $samba_cv_sig_atomic_t" >&5
8977 echo "${ECHO_T}$samba_cv_sig_atomic_t" >&6
8978 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
8979
8980 cat >>confdefs.h <<\_ACEOF
8981 #define HAVE_SIG_ATOMIC_T_TYPE 1
8982 _ACEOF
8983
8984 fi
8985
8986 # stupid headers have the functions but no declaration. grrrr.
8987
8988  echo "$as_me:$LINENO: checking for errno declaration" >&5
8989 echo $ECHO_N "checking for errno declaration... $ECHO_C" >&6
8990 if test "${ac_cv_have_errno_decl+set}" = set; then
8991   echo $ECHO_N "(cached) $ECHO_C" >&6
8992 else
8993
8994     cat >conftest.$ac_ext <<_ACEOF
8995 #line $LINENO "configure"
8996 #include "confdefs.h"
8997 #include <errno.h>
8998 #ifdef F77_DUMMY_MAIN
8999 #  ifdef __cplusplus
9000      extern "C"
9001 #  endif
9002    int F77_DUMMY_MAIN() { return 1; }
9003 #endif
9004 int
9005 main ()
9006 {
9007 int i = (int)errno
9008   ;
9009   return 0;
9010 }
9011 _ACEOF
9012 rm -f conftest.$ac_objext
9013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9014   (eval $ac_compile) 2>&5
9015   ac_status=$?
9016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017   (exit $ac_status); } &&
9018          { ac_try='test -s conftest.$ac_objext'
9019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020   (eval $ac_try) 2>&5
9021   ac_status=$?
9022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023   (exit $ac_status); }; }; then
9024   ac_cv_have_errno_decl=yes
9025 else
9026   echo "$as_me: failed program was:" >&5
9027 cat conftest.$ac_ext >&5
9028 ac_cv_have_errno_decl=no
9029 fi
9030 rm -f conftest.$ac_objext conftest.$ac_ext
9031 fi
9032 echo "$as_me:$LINENO: result: $ac_cv_have_errno_decl" >&5
9033 echo "${ECHO_T}$ac_cv_have_errno_decl" >&6
9034  if test x"$ac_cv_have_errno_decl" = x"yes"; then
9035
9036 cat >>confdefs.h <<\_ACEOF
9037 #define HAVE_ERRNO_DECL 1
9038 _ACEOF
9039
9040  fi
9041
9042
9043  echo "$as_me:$LINENO: checking for setresuid declaration" >&5
9044 echo $ECHO_N "checking for setresuid declaration... $ECHO_C" >&6
9045 if test "${ac_cv_have_setresuid_decl+set}" = set; then
9046   echo $ECHO_N "(cached) $ECHO_C" >&6
9047 else
9048
9049     cat >conftest.$ac_ext <<_ACEOF
9050 #line $LINENO "configure"
9051 #include "confdefs.h"
9052 #include <unistd.h>
9053 #ifdef F77_DUMMY_MAIN
9054 #  ifdef __cplusplus
9055      extern "C"
9056 #  endif
9057    int F77_DUMMY_MAIN() { return 1; }
9058 #endif
9059 int
9060 main ()
9061 {
9062 int i = (int)setresuid
9063   ;
9064   return 0;
9065 }
9066 _ACEOF
9067 rm -f conftest.$ac_objext
9068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9069   (eval $ac_compile) 2>&5
9070   ac_status=$?
9071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072   (exit $ac_status); } &&
9073          { ac_try='test -s conftest.$ac_objext'
9074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075   (eval $ac_try) 2>&5
9076   ac_status=$?
9077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078   (exit $ac_status); }; }; then
9079   ac_cv_have_setresuid_decl=yes
9080 else
9081   echo "$as_me: failed program was:" >&5
9082 cat conftest.$ac_ext >&5
9083 ac_cv_have_setresuid_decl=no
9084 fi
9085 rm -f conftest.$ac_objext conftest.$ac_ext
9086 fi
9087 echo "$as_me:$LINENO: result: $ac_cv_have_setresuid_decl" >&5
9088 echo "${ECHO_T}$ac_cv_have_setresuid_decl" >&6
9089  if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
9090
9091 cat >>confdefs.h <<\_ACEOF
9092 #define HAVE_SETRESUID_DECL 1
9093 _ACEOF
9094
9095  fi
9096
9097
9098  echo "$as_me:$LINENO: checking for setresgid declaration" >&5
9099 echo $ECHO_N "checking for setresgid declaration... $ECHO_C" >&6
9100 if test "${ac_cv_have_setresgid_decl+set}" = set; then
9101   echo $ECHO_N "(cached) $ECHO_C" >&6
9102 else
9103
9104     cat >conftest.$ac_ext <<_ACEOF
9105 #line $LINENO "configure"
9106 #include "confdefs.h"
9107 #include <unistd.h>
9108 #ifdef F77_DUMMY_MAIN
9109 #  ifdef __cplusplus
9110      extern "C"
9111 #  endif
9112    int F77_DUMMY_MAIN() { return 1; }
9113 #endif
9114 int
9115 main ()
9116 {
9117 int i = (int)setresgid
9118   ;
9119   return 0;
9120 }
9121 _ACEOF
9122 rm -f conftest.$ac_objext
9123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9124   (eval $ac_compile) 2>&5
9125   ac_status=$?
9126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127   (exit $ac_status); } &&
9128          { ac_try='test -s conftest.$ac_objext'
9129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130   (eval $ac_try) 2>&5
9131   ac_status=$?
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); }; }; then
9134   ac_cv_have_setresgid_decl=yes
9135 else
9136   echo "$as_me: failed program was:" >&5
9137 cat conftest.$ac_ext >&5
9138 ac_cv_have_setresgid_decl=no
9139 fi
9140 rm -f conftest.$ac_objext conftest.$ac_ext
9141 fi
9142 echo "$as_me:$LINENO: result: $ac_cv_have_setresgid_decl" >&5
9143 echo "${ECHO_T}$ac_cv_have_setresgid_decl" >&6
9144  if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
9145
9146 cat >>confdefs.h <<\_ACEOF
9147 #define HAVE_SETRESGID_DECL 1
9148 _ACEOF
9149
9150  fi
9151
9152
9153  echo "$as_me:$LINENO: checking for asprintf declaration" >&5
9154 echo $ECHO_N "checking for asprintf declaration... $ECHO_C" >&6
9155 if test "${ac_cv_have_asprintf_decl+set}" = set; then
9156   echo $ECHO_N "(cached) $ECHO_C" >&6
9157 else
9158
9159     cat >conftest.$ac_ext <<_ACEOF
9160 #line $LINENO "configure"
9161 #include "confdefs.h"
9162 #include <stdio.h>
9163 #ifdef F77_DUMMY_MAIN
9164 #  ifdef __cplusplus
9165      extern "C"
9166 #  endif
9167    int F77_DUMMY_MAIN() { return 1; }
9168 #endif
9169 int
9170 main ()
9171 {
9172 int i = (int)asprintf
9173   ;
9174   return 0;
9175 }
9176 _ACEOF
9177 rm -f conftest.$ac_objext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9179   (eval $ac_compile) 2>&5
9180   ac_status=$?
9181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182   (exit $ac_status); } &&
9183          { ac_try='test -s conftest.$ac_objext'
9184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185   (eval $ac_try) 2>&5
9186   ac_status=$?
9187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188   (exit $ac_status); }; }; then
9189   ac_cv_have_asprintf_decl=yes
9190 else
9191   echo "$as_me: failed program was:" >&5
9192 cat conftest.$ac_ext >&5
9193 ac_cv_have_asprintf_decl=no
9194 fi
9195 rm -f conftest.$ac_objext conftest.$ac_ext
9196 fi
9197 echo "$as_me:$LINENO: result: $ac_cv_have_asprintf_decl" >&5
9198 echo "${ECHO_T}$ac_cv_have_asprintf_decl" >&6
9199  if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
9200
9201 cat >>confdefs.h <<\_ACEOF
9202 #define HAVE_ASPRINTF_DECL 1
9203 _ACEOF
9204
9205  fi
9206
9207
9208  echo "$as_me:$LINENO: checking for vasprintf declaration" >&5
9209 echo $ECHO_N "checking for vasprintf declaration... $ECHO_C" >&6
9210 if test "${ac_cv_have_vasprintf_decl+set}" = set; then
9211   echo $ECHO_N "(cached) $ECHO_C" >&6
9212 else
9213
9214     cat >conftest.$ac_ext <<_ACEOF
9215 #line $LINENO "configure"
9216 #include "confdefs.h"
9217 #include <stdio.h>
9218 #ifdef F77_DUMMY_MAIN
9219 #  ifdef __cplusplus
9220      extern "C"
9221 #  endif
9222    int F77_DUMMY_MAIN() { return 1; }
9223 #endif
9224 int
9225 main ()
9226 {
9227 int i = (int)vasprintf
9228   ;
9229   return 0;
9230 }
9231 _ACEOF
9232 rm -f conftest.$ac_objext
9233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9234   (eval $ac_compile) 2>&5
9235   ac_status=$?
9236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237   (exit $ac_status); } &&
9238          { ac_try='test -s conftest.$ac_objext'
9239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240   (eval $ac_try) 2>&5
9241   ac_status=$?
9242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243   (exit $ac_status); }; }; then
9244   ac_cv_have_vasprintf_decl=yes
9245 else
9246   echo "$as_me: failed program was:" >&5
9247 cat conftest.$ac_ext >&5
9248 ac_cv_have_vasprintf_decl=no
9249 fi
9250 rm -f conftest.$ac_objext conftest.$ac_ext
9251 fi
9252 echo "$as_me:$LINENO: result: $ac_cv_have_vasprintf_decl" >&5
9253 echo "${ECHO_T}$ac_cv_have_vasprintf_decl" >&6
9254  if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
9255
9256 cat >>confdefs.h <<\_ACEOF
9257 #define HAVE_VASPRINTF_DECL 1
9258 _ACEOF
9259
9260  fi
9261
9262
9263  echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
9264 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
9265 if test "${ac_cv_have_vsnprintf_decl+set}" = set; then
9266   echo $ECHO_N "(cached) $ECHO_C" >&6
9267 else
9268
9269     cat >conftest.$ac_ext <<_ACEOF
9270 #line $LINENO "configure"
9271 #include "confdefs.h"
9272 #include <stdio.h>
9273 #ifdef F77_DUMMY_MAIN
9274 #  ifdef __cplusplus
9275      extern "C"
9276 #  endif
9277    int F77_DUMMY_MAIN() { return 1; }
9278 #endif
9279 int
9280 main ()
9281 {
9282 int i = (int)vsnprintf
9283   ;
9284   return 0;
9285 }
9286 _ACEOF
9287 rm -f conftest.$ac_objext
9288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9289   (eval $ac_compile) 2>&5
9290   ac_status=$?
9291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292   (exit $ac_status); } &&
9293          { ac_try='test -s conftest.$ac_objext'
9294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295   (eval $ac_try) 2>&5
9296   ac_status=$?
9297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298   (exit $ac_status); }; }; then
9299   ac_cv_have_vsnprintf_decl=yes
9300 else
9301   echo "$as_me: failed program was:" >&5
9302 cat conftest.$ac_ext >&5
9303 ac_cv_have_vsnprintf_decl=no
9304 fi
9305 rm -f conftest.$ac_objext conftest.$ac_ext
9306 fi
9307 echo "$as_me:$LINENO: result: $ac_cv_have_vsnprintf_decl" >&5
9308 echo "${ECHO_T}$ac_cv_have_vsnprintf_decl" >&6
9309  if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
9310
9311 cat >>confdefs.h <<\_ACEOF
9312 #define HAVE_VSNPRINTF_DECL 1
9313 _ACEOF
9314
9315  fi
9316
9317
9318  echo "$as_me:$LINENO: checking for snprintf declaration" >&5
9319 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
9320 if test "${ac_cv_have_snprintf_decl+set}" = set; then
9321   echo $ECHO_N "(cached) $ECHO_C" >&6
9322 else
9323
9324     cat >conftest.$ac_ext <<_ACEOF
9325 #line $LINENO "configure"
9326 #include "confdefs.h"
9327 #include <stdio.h>
9328 #ifdef F77_DUMMY_MAIN
9329 #  ifdef __cplusplus
9330      extern "C"
9331 #  endif
9332    int F77_DUMMY_MAIN() { return 1; }
9333 #endif
9334 int
9335 main ()
9336 {
9337 int i = (int)snprintf
9338   ;
9339   return 0;
9340 }
9341 _ACEOF
9342 rm -f conftest.$ac_objext
9343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9344   (eval $ac_compile) 2>&5
9345   ac_status=$?
9346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   (exit $ac_status); } &&
9348          { ac_try='test -s conftest.$ac_objext'
9349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350   (eval $ac_try) 2>&5
9351   ac_status=$?
9352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353   (exit $ac_status); }; }; then
9354   ac_cv_have_snprintf_decl=yes
9355 else
9356   echo "$as_me: failed program was:" >&5
9357 cat conftest.$ac_ext >&5
9358 ac_cv_have_snprintf_decl=no
9359 fi
9360 rm -f conftest.$ac_objext conftest.$ac_ext
9361 fi
9362 echo "$as_me:$LINENO: result: $ac_cv_have_snprintf_decl" >&5
9363 echo "${ECHO_T}$ac_cv_have_snprintf_decl" >&6
9364  if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
9365
9366 cat >>confdefs.h <<\_ACEOF
9367 #define HAVE_SNPRINTF_DECL 1
9368 _ACEOF
9369
9370  fi
9371
9372
9373 # and glibc has setresuid under linux but the function does
9374 # nothing until kernel 2.1.44! very dumb.
9375 echo "$as_me:$LINENO: checking for real setresuid" >&5
9376 echo $ECHO_N "checking for real setresuid... $ECHO_C" >&6
9377 if test "${samba_cv_have_setresuid+set}" = set; then
9378   echo $ECHO_N "(cached) $ECHO_C" >&6
9379 else
9380
9381     if test "$cross_compiling" = yes; then
9382   samba_cv_have_setresuid=cross
9383 else
9384   cat >conftest.$ac_ext <<_ACEOF
9385 #line $LINENO "configure"
9386 #include "confdefs.h"
9387 #include <errno.h>
9388 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
9389 _ACEOF
9390 rm -f conftest$ac_exeext
9391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9392   (eval $ac_link) 2>&5
9393   ac_status=$?
9394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397   (eval $ac_try) 2>&5
9398   ac_status=$?
9399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400   (exit $ac_status); }; }; then
9401   samba_cv_have_setresuid=yes
9402 else
9403   echo "$as_me: program exited with status $ac_status" >&5
9404 echo "$as_me: failed program was:" >&5
9405 cat conftest.$ac_ext >&5
9406 ( exit $ac_status )
9407 samba_cv_have_setresuid=no
9408 fi
9409 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9410 fi
9411 fi
9412 echo "$as_me:$LINENO: result: $samba_cv_have_setresuid" >&5
9413 echo "${ECHO_T}$samba_cv_have_setresuid" >&6
9414 if test x"$samba_cv_have_setresuid" = x"yes"; then
9415
9416 cat >>confdefs.h <<\_ACEOF
9417 #define HAVE_SETRESUID 1
9418 _ACEOF
9419
9420 fi
9421
9422 # Do the same check for setresguid...
9423 #
9424 echo "$as_me:$LINENO: checking for real setresgid" >&5
9425 echo $ECHO_N "checking for real setresgid... $ECHO_C" >&6
9426 if test "${samba_cv_have_setresgid+set}" = set; then
9427   echo $ECHO_N "(cached) $ECHO_C" >&6
9428 else
9429
9430     if test "$cross_compiling" = yes; then
9431   samba_cv_have_setresgid=cross
9432 else
9433   cat >conftest.$ac_ext <<_ACEOF
9434 #line $LINENO "configure"
9435 #include "confdefs.h"
9436 #include <unistd.h>
9437 #include <errno.h>
9438 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
9439 _ACEOF
9440 rm -f conftest$ac_exeext
9441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9442   (eval $ac_link) 2>&5
9443   ac_status=$?
9444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447   (eval $ac_try) 2>&5
9448   ac_status=$?
9449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450   (exit $ac_status); }; }; then
9451   samba_cv_have_setresgid=yes
9452 else
9453   echo "$as_me: program exited with status $ac_status" >&5
9454 echo "$as_me: failed program was:" >&5
9455 cat conftest.$ac_ext >&5
9456 ( exit $ac_status )
9457 samba_cv_have_setresgid=no
9458 fi
9459 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9460 fi
9461 fi
9462 echo "$as_me:$LINENO: result: $samba_cv_have_setresgid" >&5
9463 echo "${ECHO_T}$samba_cv_have_setresgid" >&6
9464 if test x"$samba_cv_have_setresgid" = x"yes"; then
9465
9466 cat >>confdefs.h <<\_ACEOF
9467 #define HAVE_SETRESGID 1
9468 _ACEOF
9469
9470 fi
9471
9472 echo "$as_me:$LINENO: checking for working memcmp" >&5
9473 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9474 if test "${ac_cv_func_memcmp_working+set}" = set; then
9475   echo $ECHO_N "(cached) $ECHO_C" >&6
9476 else
9477   if test "$cross_compiling" = yes; then
9478   ac_cv_func_memcmp_working=no
9479 else
9480   cat >conftest.$ac_ext <<_ACEOF
9481 #line $LINENO "configure"
9482 #include "confdefs.h"
9483
9484 #ifdef F77_DUMMY_MAIN
9485 #  ifdef __cplusplus
9486      extern "C"
9487 #  endif
9488    int F77_DUMMY_MAIN() { return 1; }
9489 #endif
9490 int
9491 main ()
9492 {
9493
9494   /* Some versions of memcmp are not 8-bit clean.  */
9495   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9496   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9497     exit (1);
9498
9499   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9500      or more and with at least one buffer not starting on a 4-byte boundary.
9501      William Lewis provided this test program.   */
9502   {
9503     char foo[21];
9504     char bar[21];
9505     int i;
9506     for (i = 0; i < 4; i++)
9507       {
9508         char *a = foo + i;
9509         char *b = bar + i;
9510         strcpy (a, "--------01111111");
9511         strcpy (b, "--------10000000");
9512         if (memcmp (a, b, 16) >= 0)
9513           exit (1);
9514       }
9515     exit (0);
9516   }
9517
9518   ;
9519   return 0;
9520 }
9521 _ACEOF
9522 rm -f conftest$ac_exeext
9523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9524   (eval $ac_link) 2>&5
9525   ac_status=$?
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529   (eval $ac_try) 2>&5
9530   ac_status=$?
9531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532   (exit $ac_status); }; }; then
9533   ac_cv_func_memcmp_working=yes
9534 else
9535   echo "$as_me: program exited with status $ac_status" >&5
9536 echo "$as_me: failed program was:" >&5
9537 cat conftest.$ac_ext >&5
9538 ( exit $ac_status )
9539 ac_cv_func_memcmp_working=no
9540 fi
9541 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9542 fi
9543 fi
9544 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9545 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9546 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9547
9548
9549 ###############################################
9550 # test for where we get crypt() from
9551
9552 for ac_func in crypt
9553 do
9554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9555 echo "$as_me:$LINENO: checking for $ac_func" >&5
9556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9557 if eval "test \"\${$as_ac_var+set}\" = set"; then
9558   echo $ECHO_N "(cached) $ECHO_C" >&6
9559 else
9560   cat >conftest.$ac_ext <<_ACEOF
9561 #line $LINENO "configure"
9562 #include "confdefs.h"
9563 /* System header to define __stub macros and hopefully few prototypes,
9564     which can conflict with char $ac_func (); below.  */
9565 #include <assert.h>
9566 /* Override any gcc2 internal prototype to avoid an error.  */
9567 #ifdef __cplusplus
9568 extern "C"
9569 #endif
9570 /* We use char because int might match the return type of a gcc2
9571    builtin and then its argument prototype would still apply.  */
9572 char $ac_func ();
9573 char (*f) ();
9574
9575 #ifdef F77_DUMMY_MAIN
9576 #  ifdef __cplusplus
9577      extern "C"
9578 #  endif
9579    int F77_DUMMY_MAIN() { return 1; }
9580 #endif
9581 int
9582 main ()
9583 {
9584 /* The GNU C library defines this for functions which it implements
9585     to always fail with ENOSYS.  Some functions are actually named
9586     something starting with __ and the normal name is an alias.  */
9587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9588 choke me
9589 #else
9590 f = $ac_func;
9591 #endif
9592
9593   ;
9594   return 0;
9595 }
9596 _ACEOF
9597 rm -f conftest.$ac_objext conftest$ac_exeext
9598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9599   (eval $ac_link) 2>&5
9600   ac_status=$?
9601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602   (exit $ac_status); } &&
9603          { ac_try='test -s conftest$ac_exeext'
9604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605   (eval $ac_try) 2>&5
9606   ac_status=$?
9607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608   (exit $ac_status); }; }; then
9609   eval "$as_ac_var=yes"
9610 else
9611   echo "$as_me: failed program was:" >&5
9612 cat conftest.$ac_ext >&5
9613 eval "$as_ac_var=no"
9614 fi
9615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9616 fi
9617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9619 if test `eval echo '${'$as_ac_var'}'` = yes; then
9620   cat >>confdefs.h <<_ACEOF
9621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9622 _ACEOF
9623
9624 fi
9625 done
9626
9627 if test x"$ac_cv_func_crypt" = x"no"; then
9628     echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
9629 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
9630 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9631   echo $ECHO_N "(cached) $ECHO_C" >&6
9632 else
9633   ac_check_lib_save_LIBS=$LIBS
9634 LIBS="-lcrypt  $LIBS"
9635 cat >conftest.$ac_ext <<_ACEOF
9636 #line $LINENO "configure"
9637 #include "confdefs.h"
9638
9639 /* Override any gcc2 internal prototype to avoid an error.  */
9640 #ifdef __cplusplus
9641 extern "C"
9642 #endif
9643 /* We use char because int might match the return type of a gcc2
9644    builtin and then its argument prototype would still apply.  */
9645 char crypt ();
9646 #ifdef F77_DUMMY_MAIN
9647 #  ifdef __cplusplus
9648      extern "C"
9649 #  endif
9650    int F77_DUMMY_MAIN() { return 1; }
9651 #endif
9652 int
9653 main ()
9654 {
9655 crypt ();
9656   ;
9657   return 0;
9658 }
9659 _ACEOF
9660 rm -f conftest.$ac_objext conftest$ac_exeext
9661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9662   (eval $ac_link) 2>&5
9663   ac_status=$?
9664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665   (exit $ac_status); } &&
9666          { ac_try='test -s conftest$ac_exeext'
9667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668   (eval $ac_try) 2>&5
9669   ac_status=$?
9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671   (exit $ac_status); }; }; then
9672   ac_cv_lib_crypt_crypt=yes
9673 else
9674   echo "$as_me: failed program was:" >&5
9675 cat conftest.$ac_ext >&5
9676 ac_cv_lib_crypt_crypt=no
9677 fi
9678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9679 LIBS=$ac_check_lib_save_LIBS
9680 fi
9681 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
9682 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
9683 if test $ac_cv_lib_crypt_crypt = yes; then
9684   AUTHLIBS="$AUTHLIBS -lcrypt";
9685
9686 cat >>confdefs.h <<\_ACEOF
9687 #define HAVE_CRYPT 1
9688 _ACEOF
9689
9690 fi
9691
9692 fi
9693
9694
9695 ###############################################
9696 # Readline included by default unless explicitly asked not to
9697 test "${with_readline+set}" != "set" && with_readline=yes
9698
9699 # test for where we get readline() from
9700 echo "$as_me:$LINENO: checking whether to use readline" >&5
9701 echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6
9702
9703 # Check whether --with-readline or --without-readline was given.
9704 if test "${with_readline+set}" = set; then
9705   withval="$with_readline"
9706     case "$with_readline" in
9707   yes)
9708     echo "$as_me:$LINENO: result: yes" >&5
9709 echo "${ECHO_T}yes" >&6
9710
9711
9712
9713
9714 for ac_header in readline.h history.h readline/readline.h
9715 do
9716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9718   echo "$as_me:$LINENO: checking for $ac_header" >&5
9719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9721   echo $ECHO_N "(cached) $ECHO_C" >&6
9722 fi
9723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9725 else
9726   # Is the header compilable?
9727 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9729 cat >conftest.$ac_ext <<_ACEOF
9730 #line $LINENO "configure"
9731 #include "confdefs.h"
9732 $ac_includes_default
9733 #include <$ac_header>
9734 _ACEOF
9735 rm -f conftest.$ac_objext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9737   (eval $ac_compile) 2>&5
9738   ac_status=$?
9739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740   (exit $ac_status); } &&
9741          { ac_try='test -s conftest.$ac_objext'
9742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743   (eval $ac_try) 2>&5
9744   ac_status=$?
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); }; }; then
9747   ac_header_compiler=yes
9748 else
9749   echo "$as_me: failed program was:" >&5
9750 cat conftest.$ac_ext >&5
9751 ac_header_compiler=no
9752 fi
9753 rm -f conftest.$ac_objext conftest.$ac_ext
9754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9755 echo "${ECHO_T}$ac_header_compiler" >&6
9756
9757 # Is the header present?
9758 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9760 cat >conftest.$ac_ext <<_ACEOF
9761 #line $LINENO "configure"
9762 #include "confdefs.h"
9763 #include <$ac_header>
9764 _ACEOF
9765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9766   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9767   ac_status=$?
9768   egrep -v '^ *\+' conftest.er1 >conftest.err
9769   rm -f conftest.er1
9770   cat conftest.err >&5
9771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772   (exit $ac_status); } >/dev/null; then
9773   if test -s conftest.err; then
9774     ac_cpp_err=$ac_c_preproc_warn_flag
9775   else
9776     ac_cpp_err=
9777   fi
9778 else
9779   ac_cpp_err=yes
9780 fi
9781 if test -z "$ac_cpp_err"; then
9782   ac_header_preproc=yes
9783 else
9784   echo "$as_me: failed program was:" >&5
9785   cat conftest.$ac_ext >&5
9786   ac_header_preproc=no
9787 fi
9788 rm -f conftest.err conftest.$ac_ext
9789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9790 echo "${ECHO_T}$ac_header_preproc" >&6
9791
9792 # So?  What about this header?
9793 case $ac_header_compiler:$ac_header_preproc in
9794   yes:no )
9795     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9797     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9799   no:yes )
9800     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9802     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9803 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9806 esac
9807 echo "$as_me:$LINENO: checking for $ac_header" >&5
9808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9810   echo $ECHO_N "(cached) $ECHO_C" >&6
9811 else
9812   eval "$as_ac_Header=$ac_header_preproc"
9813 fi
9814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9816
9817 fi
9818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9819   cat >>confdefs.h <<_ACEOF
9820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9821 _ACEOF
9822
9823 fi
9824
9825 done
9826
9827
9828 for ac_header in readline/history.h
9829 do
9830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9832   echo "$as_me:$LINENO: checking for $ac_header" >&5
9833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9835   echo $ECHO_N "(cached) $ECHO_C" >&6
9836 fi
9837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9839 else
9840   # Is the header compilable?
9841 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9843 cat >conftest.$ac_ext <<_ACEOF
9844 #line $LINENO "configure"
9845 #include "confdefs.h"
9846 $ac_includes_default
9847 #include <$ac_header>
9848 _ACEOF
9849 rm -f conftest.$ac_objext
9850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9851   (eval $ac_compile) 2>&5
9852   ac_status=$?
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); } &&
9855          { ac_try='test -s conftest.$ac_objext'
9856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857   (eval $ac_try) 2>&5
9858   ac_status=$?
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); }; }; then
9861   ac_header_compiler=yes
9862 else
9863   echo "$as_me: failed program was:" >&5
9864 cat conftest.$ac_ext >&5
9865 ac_header_compiler=no
9866 fi
9867 rm -f conftest.$ac_objext conftest.$ac_ext
9868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9869 echo "${ECHO_T}$ac_header_compiler" >&6
9870
9871 # Is the header present?
9872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9874 cat >conftest.$ac_ext <<_ACEOF
9875 #line $LINENO "configure"
9876 #include "confdefs.h"
9877 #include <$ac_header>
9878 _ACEOF
9879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9880   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9881   ac_status=$?
9882   egrep -v '^ *\+' conftest.er1 >conftest.err
9883   rm -f conftest.er1
9884   cat conftest.err >&5
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); } >/dev/null; then
9887   if test -s conftest.err; then
9888     ac_cpp_err=$ac_c_preproc_warn_flag
9889   else
9890     ac_cpp_err=
9891   fi
9892 else
9893   ac_cpp_err=yes
9894 fi
9895 if test -z "$ac_cpp_err"; then
9896   ac_header_preproc=yes
9897 else
9898   echo "$as_me: failed program was:" >&5
9899   cat conftest.$ac_ext >&5
9900   ac_header_preproc=no
9901 fi
9902 rm -f conftest.err conftest.$ac_ext
9903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9904 echo "${ECHO_T}$ac_header_preproc" >&6
9905
9906 # So?  What about this header?
9907 case $ac_header_compiler:$ac_header_preproc in
9908   yes:no )
9909     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9913   no:yes )
9914     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9916     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9920 esac
9921 echo "$as_me:$LINENO: checking for $ac_header" >&5
9922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9924   echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926   eval "$as_ac_Header=$ac_header_preproc"
9927 fi
9928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9930
9931 fi
9932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9933   cat >>confdefs.h <<_ACEOF
9934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9935 _ACEOF
9936
9937 fi
9938
9939 done
9940
9941
9942
9943
9944 for ac_header in readline.h readline/readline.h
9945 do
9946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9948   echo "$as_me:$LINENO: checking for $ac_header" >&5
9949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9951   echo $ECHO_N "(cached) $ECHO_C" >&6
9952 fi
9953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9955 else
9956   # Is the header compilable?
9957 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9959 cat >conftest.$ac_ext <<_ACEOF
9960 #line $LINENO "configure"
9961 #include "confdefs.h"
9962 $ac_includes_default
9963 #include <$ac_header>
9964 _ACEOF
9965 rm -f conftest.$ac_objext
9966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9967   (eval $ac_compile) 2>&5
9968   ac_status=$?
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); } &&
9971          { ac_try='test -s conftest.$ac_objext'
9972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973   (eval $ac_try) 2>&5
9974   ac_status=$?
9975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976   (exit $ac_status); }; }; then
9977   ac_header_compiler=yes
9978 else
9979   echo "$as_me: failed program was:" >&5
9980 cat conftest.$ac_ext >&5
9981 ac_header_compiler=no
9982 fi
9983 rm -f conftest.$ac_objext conftest.$ac_ext
9984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9985 echo "${ECHO_T}$ac_header_compiler" >&6
9986
9987 # Is the header present?
9988 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9990 cat >conftest.$ac_ext <<_ACEOF
9991 #line $LINENO "configure"
9992 #include "confdefs.h"
9993 #include <$ac_header>
9994 _ACEOF
9995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9996   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9997   ac_status=$?
9998   egrep -v '^ *\+' conftest.er1 >conftest.err
9999   rm -f conftest.er1
10000   cat conftest.err >&5
10001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002   (exit $ac_status); } >/dev/null; then
10003   if test -s conftest.err; then
10004     ac_cpp_err=$ac_c_preproc_warn_flag
10005   else
10006     ac_cpp_err=
10007   fi
10008 else
10009   ac_cpp_err=yes
10010 fi
10011 if test -z "$ac_cpp_err"; then
10012   ac_header_preproc=yes
10013 else
10014   echo "$as_me: failed program was:" >&5
10015   cat conftest.$ac_ext >&5
10016   ac_header_preproc=no
10017 fi
10018 rm -f conftest.err conftest.$ac_ext
10019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10020 echo "${ECHO_T}$ac_header_preproc" >&6
10021
10022 # So?  What about this header?
10023 case $ac_header_compiler:$ac_header_preproc in
10024   yes:no )
10025     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10029   no:yes )
10030     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10032     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10034     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10036 esac
10037 echo "$as_me:$LINENO: checking for $ac_header" >&5
10038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10040   echo $ECHO_N "(cached) $ECHO_C" >&6
10041 else
10042   eval "$as_ac_Header=$ac_header_preproc"
10043 fi
10044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10046
10047 fi
10048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10049   cat >>confdefs.h <<_ACEOF
10050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10051 _ACEOF
10052
10053       for termlib in ncurses curses termcap terminfo termlib; do
10054        as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
10055 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
10056 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
10057 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10058   echo $ECHO_N "(cached) $ECHO_C" >&6
10059 else
10060   ac_check_lib_save_LIBS=$LIBS
10061 LIBS="-l${termlib}  $LIBS"
10062 cat >conftest.$ac_ext <<_ACEOF
10063 #line $LINENO "configure"
10064 #include "confdefs.h"
10065
10066 /* Override any gcc2 internal prototype to avoid an error.  */
10067 #ifdef __cplusplus
10068 extern "C"
10069 #endif
10070 /* We use char because int might match the return type of a gcc2
10071    builtin and then its argument prototype would still apply.  */
10072 char tgetent ();
10073 #ifdef F77_DUMMY_MAIN
10074 #  ifdef __cplusplus
10075      extern "C"
10076 #  endif
10077    int F77_DUMMY_MAIN() { return 1; }
10078 #endif
10079 int
10080 main ()
10081 {
10082 tgetent ();
10083   ;
10084   return 0;
10085 }
10086 _ACEOF
10087 rm -f conftest.$ac_objext conftest$ac_exeext
10088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10089   (eval $ac_link) 2>&5
10090   ac_status=$?
10091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092   (exit $ac_status); } &&
10093          { ac_try='test -s conftest$ac_exeext'
10094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095   (eval $ac_try) 2>&5
10096   ac_status=$?
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); }; }; then
10099   eval "$as_ac_Lib=yes"
10100 else
10101   echo "$as_me: failed program was:" >&5
10102 cat conftest.$ac_ext >&5
10103 eval "$as_ac_Lib=no"
10104 fi
10105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10106 LIBS=$ac_check_lib_save_LIBS
10107 fi
10108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10109 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10110 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10111   TERMLIBS="-l${termlib}"; break
10112 fi
10113
10114       done
10115       echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
10116 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
10117 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
10118   echo $ECHO_N "(cached) $ECHO_C" >&6
10119 else
10120   ac_check_lib_save_LIBS=$LIBS
10121 LIBS="-lreadline $TERMLIBS $LIBS"
10122 cat >conftest.$ac_ext <<_ACEOF
10123 #line $LINENO "configure"
10124 #include "confdefs.h"
10125
10126 /* Override any gcc2 internal prototype to avoid an error.  */
10127 #ifdef __cplusplus
10128 extern "C"
10129 #endif
10130 /* We use char because int might match the return type of a gcc2
10131    builtin and then its argument prototype would still apply.  */
10132 char rl_callback_handler_install ();
10133 #ifdef F77_DUMMY_MAIN
10134 #  ifdef __cplusplus
10135      extern "C"
10136 #  endif
10137    int F77_DUMMY_MAIN() { return 1; }
10138 #endif
10139 int
10140 main ()
10141 {
10142 rl_callback_handler_install ();
10143   ;
10144   return 0;
10145 }
10146 _ACEOF
10147 rm -f conftest.$ac_objext conftest$ac_exeext
10148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10149   (eval $ac_link) 2>&5
10150   ac_status=$?
10151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152   (exit $ac_status); } &&
10153          { ac_try='test -s conftest$ac_exeext'
10154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155   (eval $ac_try) 2>&5
10156   ac_status=$?
10157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158   (exit $ac_status); }; }; then
10159   ac_cv_lib_readline_rl_callback_handler_install=yes
10160 else
10161   echo "$as_me: failed program was:" >&5
10162 cat conftest.$ac_ext >&5
10163 ac_cv_lib_readline_rl_callback_handler_install=no
10164 fi
10165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10166 LIBS=$ac_check_lib_save_LIBS
10167 fi
10168 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
10169 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
10170 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
10171   TERMLIBS="-lreadline $TERMLIBS"
10172
10173 cat >>confdefs.h <<\_ACEOF
10174 #define HAVE_LIBREADLINE 1
10175 _ACEOF
10176
10177        break
10178 else
10179   TERMLIBS=
10180 fi
10181
10182 fi
10183
10184 done
10185
10186     ;;
10187   no)
10188     echo "$as_me:$LINENO: result: no" >&5
10189 echo "${ECHO_T}no" >&6
10190     ;;
10191   *)
10192     echo "$as_me:$LINENO: result: yes" >&5
10193 echo "${ECHO_T}yes" >&6
10194
10195     # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
10196     # alternate readline path
10197     _ldflags=${LDFLAGS}
10198     _cppflags=${CPPFLAGS}
10199
10200     # Add additional search path
10201     LDFLAGS="-L$with_readline/lib $LDFLAGS"
10202     CPPFLAGS="-I$with_readline/include $CPPFLAGS"
10203
10204
10205
10206
10207 for ac_header in readline.h history.h readline/readline.h
10208 do
10209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10211   echo "$as_me:$LINENO: checking for $ac_header" >&5
10212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10214   echo $ECHO_N "(cached) $ECHO_C" >&6
10215 fi
10216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10218 else
10219   # Is the header compilable?
10220 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10222 cat >conftest.$ac_ext <<_ACEOF
10223 #line $LINENO "configure"
10224 #include "confdefs.h"
10225 $ac_includes_default
10226 #include <$ac_header>
10227 _ACEOF
10228 rm -f conftest.$ac_objext
10229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10230   (eval $ac_compile) 2>&5
10231   ac_status=$?
10232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233   (exit $ac_status); } &&
10234          { ac_try='test -s conftest.$ac_objext'
10235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236   (eval $ac_try) 2>&5
10237   ac_status=$?
10238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239   (exit $ac_status); }; }; then
10240   ac_header_compiler=yes
10241 else
10242   echo "$as_me: failed program was:" >&5
10243 cat conftest.$ac_ext >&5
10244 ac_header_compiler=no
10245 fi
10246 rm -f conftest.$ac_objext conftest.$ac_ext
10247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10248 echo "${ECHO_T}$ac_header_compiler" >&6
10249
10250 # Is the header present?
10251 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10253 cat >conftest.$ac_ext <<_ACEOF
10254 #line $LINENO "configure"
10255 #include "confdefs.h"
10256 #include <$ac_header>
10257 _ACEOF
10258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10259   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10260   ac_status=$?
10261   egrep -v '^ *\+' conftest.er1 >conftest.err
10262   rm -f conftest.er1
10263   cat conftest.err >&5
10264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265   (exit $ac_status); } >/dev/null; then
10266   if test -s conftest.err; then
10267     ac_cpp_err=$ac_c_preproc_warn_flag
10268   else
10269     ac_cpp_err=
10270   fi
10271 else
10272   ac_cpp_err=yes
10273 fi
10274 if test -z "$ac_cpp_err"; then
10275   ac_header_preproc=yes
10276 else
10277   echo "$as_me: failed program was:" >&5
10278   cat conftest.$ac_ext >&5
10279   ac_header_preproc=no
10280 fi
10281 rm -f conftest.err conftest.$ac_ext
10282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10283 echo "${ECHO_T}$ac_header_preproc" >&6
10284
10285 # So?  What about this header?
10286 case $ac_header_compiler:$ac_header_preproc in
10287   yes:no )
10288     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10292   no:yes )
10293     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10295     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10299 esac
10300 echo "$as_me:$LINENO: checking for $ac_header" >&5
10301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10303   echo $ECHO_N "(cached) $ECHO_C" >&6
10304 else
10305   eval "$as_ac_Header=$ac_header_preproc"
10306 fi
10307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10309
10310 fi
10311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10312   cat >>confdefs.h <<_ACEOF
10313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10314 _ACEOF
10315
10316 fi
10317
10318 done
10319
10320
10321 for ac_header in readline/history.h
10322 do
10323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10325   echo "$as_me:$LINENO: checking for $ac_header" >&5
10326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10328   echo $ECHO_N "(cached) $ECHO_C" >&6
10329 fi
10330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10332 else
10333   # Is the header compilable?
10334 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10336 cat >conftest.$ac_ext <<_ACEOF
10337 #line $LINENO "configure"
10338 #include "confdefs.h"
10339 $ac_includes_default
10340 #include <$ac_header>
10341 _ACEOF
10342 rm -f conftest.$ac_objext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10344   (eval $ac_compile) 2>&5
10345   ac_status=$?
10346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347   (exit $ac_status); } &&
10348          { ac_try='test -s conftest.$ac_objext'
10349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350   (eval $ac_try) 2>&5
10351   ac_status=$?
10352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353   (exit $ac_status); }; }; then
10354   ac_header_compiler=yes
10355 else
10356   echo "$as_me: failed program was:" >&5
10357 cat conftest.$ac_ext >&5
10358 ac_header_compiler=no
10359 fi
10360 rm -f conftest.$ac_objext conftest.$ac_ext
10361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10362 echo "${ECHO_T}$ac_header_compiler" >&6
10363
10364 # Is the header present?
10365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10367 cat >conftest.$ac_ext <<_ACEOF
10368 #line $LINENO "configure"
10369 #include "confdefs.h"
10370 #include <$ac_header>
10371 _ACEOF
10372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10373   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10374   ac_status=$?
10375   egrep -v '^ *\+' conftest.er1 >conftest.err
10376   rm -f conftest.er1
10377   cat conftest.err >&5
10378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379   (exit $ac_status); } >/dev/null; then
10380   if test -s conftest.err; then
10381     ac_cpp_err=$ac_c_preproc_warn_flag
10382   else
10383     ac_cpp_err=
10384   fi
10385 else
10386   ac_cpp_err=yes
10387 fi
10388 if test -z "$ac_cpp_err"; then
10389   ac_header_preproc=yes
10390 else
10391   echo "$as_me: failed program was:" >&5
10392   cat conftest.$ac_ext >&5
10393   ac_header_preproc=no
10394 fi
10395 rm -f conftest.err conftest.$ac_ext
10396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10397 echo "${ECHO_T}$ac_header_preproc" >&6
10398
10399 # So?  What about this header?
10400 case $ac_header_compiler:$ac_header_preproc in
10401   yes:no )
10402     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10404     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10406   no:yes )
10407     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10409     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10413 esac
10414 echo "$as_me:$LINENO: checking for $ac_header" >&5
10415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10417   echo $ECHO_N "(cached) $ECHO_C" >&6
10418 else
10419   eval "$as_ac_Header=$ac_header_preproc"
10420 fi
10421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10423
10424 fi
10425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10426   cat >>confdefs.h <<_ACEOF
10427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10428 _ACEOF
10429
10430 fi
10431
10432 done
10433
10434
10435
10436
10437 for ac_header in readline.h readline/readline.h
10438 do
10439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10441   echo "$as_me:$LINENO: checking for $ac_header" >&5
10442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10444   echo $ECHO_N "(cached) $ECHO_C" >&6
10445 fi
10446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10448 else
10449   # Is the header compilable?
10450 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10452 cat >conftest.$ac_ext <<_ACEOF
10453 #line $LINENO "configure"
10454 #include "confdefs.h"
10455 $ac_includes_default
10456 #include <$ac_header>
10457 _ACEOF
10458 rm -f conftest.$ac_objext
10459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10460   (eval $ac_compile) 2>&5
10461   ac_status=$?
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); } &&
10464          { ac_try='test -s conftest.$ac_objext'
10465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466   (eval $ac_try) 2>&5
10467   ac_status=$?
10468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   (exit $ac_status); }; }; then
10470   ac_header_compiler=yes
10471 else
10472   echo "$as_me: failed program was:" >&5
10473 cat conftest.$ac_ext >&5
10474 ac_header_compiler=no
10475 fi
10476 rm -f conftest.$ac_objext conftest.$ac_ext
10477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10478 echo "${ECHO_T}$ac_header_compiler" >&6
10479
10480 # Is the header present?
10481 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10483 cat >conftest.$ac_ext <<_ACEOF
10484 #line $LINENO "configure"
10485 #include "confdefs.h"
10486 #include <$ac_header>
10487 _ACEOF
10488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10489   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10490   ac_status=$?
10491   egrep -v '^ *\+' conftest.er1 >conftest.err
10492   rm -f conftest.er1
10493   cat conftest.err >&5
10494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495   (exit $ac_status); } >/dev/null; then
10496   if test -s conftest.err; then
10497     ac_cpp_err=$ac_c_preproc_warn_flag
10498   else
10499     ac_cpp_err=
10500   fi
10501 else
10502   ac_cpp_err=yes
10503 fi
10504 if test -z "$ac_cpp_err"; then
10505   ac_header_preproc=yes
10506 else
10507   echo "$as_me: failed program was:" >&5
10508   cat conftest.$ac_ext >&5
10509   ac_header_preproc=no
10510 fi
10511 rm -f conftest.err conftest.$ac_ext
10512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10513 echo "${ECHO_T}$ac_header_preproc" >&6
10514
10515 # So?  What about this header?
10516 case $ac_header_compiler:$ac_header_preproc in
10517   yes:no )
10518     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10520     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10522   no:yes )
10523     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10525     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10529 esac
10530 echo "$as_me:$LINENO: checking for $ac_header" >&5
10531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10533   echo $ECHO_N "(cached) $ECHO_C" >&6
10534 else
10535   eval "$as_ac_Header=$ac_header_preproc"
10536 fi
10537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10539
10540 fi
10541 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10542   cat >>confdefs.h <<_ACEOF
10543 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10544 _ACEOF
10545
10546       for termlib in ncurses curses termcap terminfo termlib; do
10547        as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
10548 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
10549 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
10550 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10551   echo $ECHO_N "(cached) $ECHO_C" >&6
10552 else
10553   ac_check_lib_save_LIBS=$LIBS
10554 LIBS="-l${termlib}  $LIBS"
10555 cat >conftest.$ac_ext <<_ACEOF
10556 #line $LINENO "configure"
10557 #include "confdefs.h"
10558
10559 /* Override any gcc2 internal prototype to avoid an error.  */
10560 #ifdef __cplusplus
10561 extern "C"
10562 #endif
10563 /* We use char because int might match the return type of a gcc2
10564    builtin and then its argument prototype would still apply.  */
10565 char tgetent ();
10566 #ifdef F77_DUMMY_MAIN
10567 #  ifdef __cplusplus
10568      extern "C"
10569 #  endif
10570    int F77_DUMMY_MAIN() { return 1; }
10571 #endif
10572 int
10573 main ()
10574 {
10575 tgetent ();
10576   ;
10577   return 0;
10578 }
10579 _ACEOF
10580 rm -f conftest.$ac_objext conftest$ac_exeext
10581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10582   (eval $ac_link) 2>&5
10583   ac_status=$?
10584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585   (exit $ac_status); } &&
10586          { ac_try='test -s conftest$ac_exeext'
10587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588   (eval $ac_try) 2>&5
10589   ac_status=$?
10590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591   (exit $ac_status); }; }; then
10592   eval "$as_ac_Lib=yes"
10593 else
10594   echo "$as_me: failed program was:" >&5
10595 cat conftest.$ac_ext >&5
10596 eval "$as_ac_Lib=no"
10597 fi
10598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10599 LIBS=$ac_check_lib_save_LIBS
10600 fi
10601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10602 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10603 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10604   TERMLIBS="-l${termlib}"; break
10605 fi
10606
10607       done
10608       echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
10609 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
10610 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
10611   echo $ECHO_N "(cached) $ECHO_C" >&6
10612 else
10613   ac_check_lib_save_LIBS=$LIBS
10614 LIBS="-lreadline $TERMLIBS $LIBS"
10615 cat >conftest.$ac_ext <<_ACEOF
10616 #line $LINENO "configure"
10617 #include "confdefs.h"
10618
10619 /* Override any gcc2 internal prototype to avoid an error.  */
10620 #ifdef __cplusplus
10621 extern "C"
10622 #endif
10623 /* We use char because int might match the return type of a gcc2
10624    builtin and then its argument prototype would still apply.  */
10625 char rl_callback_handler_install ();
10626 #ifdef F77_DUMMY_MAIN
10627 #  ifdef __cplusplus
10628      extern "C"
10629 #  endif
10630    int F77_DUMMY_MAIN() { return 1; }
10631 #endif
10632 int
10633 main ()
10634 {
10635 rl_callback_handler_install ();
10636   ;
10637   return 0;
10638 }
10639 _ACEOF
10640 rm -f conftest.$ac_objext conftest$ac_exeext
10641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10642   (eval $ac_link) 2>&5
10643   ac_status=$?
10644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645   (exit $ac_status); } &&
10646          { ac_try='test -s conftest$ac_exeext'
10647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648   (eval $ac_try) 2>&5
10649   ac_status=$?
10650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651   (exit $ac_status); }; }; then
10652   ac_cv_lib_readline_rl_callback_handler_install=yes
10653 else
10654   echo "$as_me: failed program was:" >&5
10655 cat conftest.$ac_ext >&5
10656 ac_cv_lib_readline_rl_callback_handler_install=no
10657 fi
10658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10659 LIBS=$ac_check_lib_save_LIBS
10660 fi
10661 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
10662 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
10663 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
10664   TERMLDFLAGS="-L$with_readline/lib"
10665        TERMCPPFLAGS="-I$with_readline/include"
10666        CPPFLAGS="-I$with_readline/include $CPPFLAGS"
10667        TERMLIBS="-lreadline $TERMLIBS"
10668
10669 cat >>confdefs.h <<\_ACEOF
10670 #define HAVE_LIBREADLINE 1
10671 _ACEOF
10672
10673        break
10674 else
10675   TERMLIBS= CPPFLAGS=$_cppflags
10676 fi
10677
10678 fi
10679
10680 done
10681
10682
10683     LDFLAGS=$_ldflags
10684     ;;
10685   esac
10686 else
10687   echo "$as_me:$LINENO: result: no" >&5
10688 echo "${ECHO_T}no" >&6
10689
10690 fi;
10691
10692
10693
10694 # The readline API changed slightly from readline3 to readline4, so
10695 # code will generate warnings on one of them unless we have a few
10696 # special cases.
10697 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
10698 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
10699 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
10700   echo $ECHO_N "(cached) $ECHO_C" >&6
10701 else
10702   ac_check_lib_save_LIBS=$LIBS
10703 LIBS="-lreadline $TERMLIBS $LIBS"
10704 cat >conftest.$ac_ext <<_ACEOF
10705 #line $LINENO "configure"
10706 #include "confdefs.h"
10707
10708 /* Override any gcc2 internal prototype to avoid an error.  */
10709 #ifdef __cplusplus
10710 extern "C"
10711 #endif
10712 /* We use char because int might match the return type of a gcc2
10713    builtin and then its argument prototype would still apply.  */
10714 char rl_completion_matches ();
10715 #ifdef F77_DUMMY_MAIN
10716 #  ifdef __cplusplus
10717      extern "C"
10718 #  endif
10719    int F77_DUMMY_MAIN() { return 1; }
10720 #endif
10721 int
10722 main ()
10723 {
10724 rl_completion_matches ();
10725   ;
10726   return 0;
10727 }
10728 _ACEOF
10729 rm -f conftest.$ac_objext conftest$ac_exeext
10730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10731   (eval $ac_link) 2>&5
10732   ac_status=$?
10733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734   (exit $ac_status); } &&
10735          { ac_try='test -s conftest$ac_exeext'
10736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737   (eval $ac_try) 2>&5
10738   ac_status=$?
10739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740   (exit $ac_status); }; }; then
10741   ac_cv_lib_readline_rl_completion_matches=yes
10742 else
10743   echo "$as_me: failed program was:" >&5
10744 cat conftest.$ac_ext >&5
10745 ac_cv_lib_readline_rl_completion_matches=no
10746 fi
10747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10748 LIBS=$ac_check_lib_save_LIBS
10749 fi
10750 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
10751 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
10752 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
10753
10754 cat >>confdefs.h <<\_ACEOF
10755 #define HAVE_NEW_LIBREADLINE 1
10756 _ACEOF
10757
10758 fi
10759
10760
10761 # The following test taken from the cvs sources
10762 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
10763 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
10764 # libsocket.so which has a bad implementation of gethostbyname (it
10765 # only looks in /etc/hosts), so we only look for -lsocket if we need
10766 # it.
10767
10768 for ac_func in connect
10769 do
10770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10771 echo "$as_me:$LINENO: checking for $ac_func" >&5
10772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10773 if eval "test \"\${$as_ac_var+set}\" = set"; then
10774   echo $ECHO_N "(cached) $ECHO_C" >&6
10775 else
10776   cat >conftest.$ac_ext <<_ACEOF
10777 #line $LINENO "configure"
10778 #include "confdefs.h"
10779 /* System header to define __stub macros and hopefully few prototypes,
10780     which can conflict with char $ac_func (); below.  */
10781 #include <assert.h>
10782 /* Override any gcc2 internal prototype to avoid an error.  */
10783 #ifdef __cplusplus
10784 extern "C"
10785 #endif
10786 /* We use char because int might match the return type of a gcc2
10787    builtin and then its argument prototype would still apply.  */
10788 char $ac_func ();
10789 char (*f) ();
10790
10791 #ifdef F77_DUMMY_MAIN
10792 #  ifdef __cplusplus
10793      extern "C"
10794 #  endif
10795    int F77_DUMMY_MAIN() { return 1; }
10796 #endif
10797 int
10798 main ()
10799 {
10800 /* The GNU C library defines this for functions which it implements
10801     to always fail with ENOSYS.  Some functions are actually named
10802     something starting with __ and the normal name is an alias.  */
10803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10804 choke me
10805 #else
10806 f = $ac_func;
10807 #endif
10808
10809   ;
10810   return 0;
10811 }
10812 _ACEOF
10813 rm -f conftest.$ac_objext conftest$ac_exeext
10814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10815   (eval $ac_link) 2>&5
10816   ac_status=$?
10817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818   (exit $ac_status); } &&
10819          { ac_try='test -s conftest$ac_exeext'
10820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821   (eval $ac_try) 2>&5
10822   ac_status=$?
10823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824   (exit $ac_status); }; }; then
10825   eval "$as_ac_var=yes"
10826 else
10827   echo "$as_me: failed program was:" >&5
10828 cat conftest.$ac_ext >&5
10829 eval "$as_ac_var=no"
10830 fi
10831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10832 fi
10833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10835 if test `eval echo '${'$as_ac_var'}'` = yes; then
10836   cat >>confdefs.h <<_ACEOF
10837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10838 _ACEOF
10839
10840 fi
10841 done
10842
10843 if test x"$ac_cv_func_connect" = x"no"; then
10844     case "$LIBS" in
10845     *-lnsl*) ;;
10846     *)
10847 echo "$as_me:$LINENO: checking for printf in -lnsl_s" >&5
10848 echo $ECHO_N "checking for printf in -lnsl_s... $ECHO_C" >&6
10849 if test "${ac_cv_lib_nsl_s_printf+set}" = set; then
10850   echo $ECHO_N "(cached) $ECHO_C" >&6
10851 else
10852   ac_check_lib_save_LIBS=$LIBS
10853 LIBS="-lnsl_s  $LIBS"
10854 cat >conftest.$ac_ext <<_ACEOF
10855 #line $LINENO "configure"
10856 #include "confdefs.h"
10857
10858 /* Override any gcc2 internal prototype to avoid an error.  */
10859 #ifdef __cplusplus
10860 extern "C"
10861 #endif
10862 /* We use char because int might match the return type of a gcc2
10863    builtin and then its argument prototype would still apply.  */
10864 char printf ();
10865 #ifdef F77_DUMMY_MAIN
10866 #  ifdef __cplusplus
10867      extern "C"
10868 #  endif
10869    int F77_DUMMY_MAIN() { return 1; }
10870 #endif
10871 int
10872 main ()
10873 {
10874 printf ();
10875   ;
10876   return 0;
10877 }
10878 _ACEOF
10879 rm -f conftest.$ac_objext conftest$ac_exeext
10880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10881   (eval $ac_link) 2>&5
10882   ac_status=$?
10883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884   (exit $ac_status); } &&
10885          { ac_try='test -s conftest$ac_exeext'
10886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887   (eval $ac_try) 2>&5
10888   ac_status=$?
10889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890   (exit $ac_status); }; }; then
10891   ac_cv_lib_nsl_s_printf=yes
10892 else
10893   echo "$as_me: failed program was:" >&5
10894 cat conftest.$ac_ext >&5
10895 ac_cv_lib_nsl_s_printf=no
10896 fi
10897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10898 LIBS=$ac_check_lib_save_LIBS
10899 fi
10900 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_printf" >&5
10901 echo "${ECHO_T}$ac_cv_lib_nsl_s_printf" >&6
10902 if test $ac_cv_lib_nsl_s_printf = yes; then
10903   cat >>confdefs.h <<_ACEOF
10904 #define HAVE_LIBNSL_S 1
10905 _ACEOF
10906
10907   LIBS="-lnsl_s $LIBS"
10908
10909 fi
10910  ;;
10911     esac
10912     case "$LIBS" in
10913     *-lnsl*) ;;
10914     *)
10915 echo "$as_me:$LINENO: checking for printf in -lnsl" >&5
10916 echo $ECHO_N "checking for printf in -lnsl... $ECHO_C" >&6
10917 if test "${ac_cv_lib_nsl_printf+set}" = set; then
10918   echo $ECHO_N "(cached) $ECHO_C" >&6
10919 else
10920   ac_check_lib_save_LIBS=$LIBS
10921 LIBS="-lnsl  $LIBS"
10922 cat >conftest.$ac_ext <<_ACEOF
10923 #line $LINENO "configure"
10924 #include "confdefs.h"
10925
10926 /* Override any gcc2 internal prototype to avoid an error.  */
10927 #ifdef __cplusplus
10928 extern "C"
10929 #endif
10930 /* We use char because int might match the return type of a gcc2
10931    builtin and then its argument prototype would still apply.  */
10932 char printf ();
10933 #ifdef F77_DUMMY_MAIN
10934 #  ifdef __cplusplus
10935      extern "C"
10936 #  endif
10937    int F77_DUMMY_MAIN() { return 1; }
10938 #endif
10939 int
10940 main ()
10941 {
10942 printf ();
10943   ;
10944   return 0;
10945 }
10946 _ACEOF
10947 rm -f conftest.$ac_objext conftest$ac_exeext
10948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10949   (eval $ac_link) 2>&5
10950   ac_status=$?
10951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952   (exit $ac_status); } &&
10953          { ac_try='test -s conftest$ac_exeext'
10954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955   (eval $ac_try) 2>&5
10956   ac_status=$?
10957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958   (exit $ac_status); }; }; then
10959   ac_cv_lib_nsl_printf=yes
10960 else
10961   echo "$as_me: failed program was:" >&5
10962 cat conftest.$ac_ext >&5
10963 ac_cv_lib_nsl_printf=no
10964 fi
10965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10966 LIBS=$ac_check_lib_save_LIBS
10967 fi
10968 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_printf" >&5
10969 echo "${ECHO_T}$ac_cv_lib_nsl_printf" >&6
10970 if test $ac_cv_lib_nsl_printf = yes; then
10971   cat >>confdefs.h <<_ACEOF
10972 #define HAVE_LIBNSL 1
10973 _ACEOF
10974
10975   LIBS="-lnsl $LIBS"
10976
10977 fi
10978  ;;
10979     esac
10980     case "$LIBS" in
10981     *-lsocket*) ;;
10982     *)
10983 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10984 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10985 if test "${ac_cv_lib_socket_connect+set}" = set; then
10986   echo $ECHO_N "(cached) $ECHO_C" >&6
10987 else
10988   ac_check_lib_save_LIBS=$LIBS
10989 LIBS="-lsocket  $LIBS"
10990 cat >conftest.$ac_ext <<_ACEOF
10991 #line $LINENO "configure"
10992 #include "confdefs.h"
10993
10994 /* Override any gcc2 internal prototype to avoid an error.  */
10995 #ifdef __cplusplus
10996 extern "C"
10997 #endif
10998 /* We use char because int might match the return type of a gcc2
10999    builtin and then its argument prototype would still apply.  */
11000 char connect ();
11001 #ifdef F77_DUMMY_MAIN
11002 #  ifdef __cplusplus
11003      extern "C"
11004 #  endif
11005    int F77_DUMMY_MAIN() { return 1; }
11006 #endif
11007 int
11008 main ()
11009 {
11010 connect ();
11011   ;
11012   return 0;
11013 }
11014 _ACEOF
11015 rm -f conftest.$ac_objext conftest$ac_exeext
11016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11017   (eval $ac_link) 2>&5
11018   ac_status=$?
11019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); } &&
11021          { ac_try='test -s conftest$ac_exeext'
11022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023   (eval $ac_try) 2>&5
11024   ac_status=$?
11025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026   (exit $ac_status); }; }; then
11027   ac_cv_lib_socket_connect=yes
11028 else
11029   echo "$as_me: failed program was:" >&5
11030 cat conftest.$ac_ext >&5
11031 ac_cv_lib_socket_connect=no
11032 fi
11033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11034 LIBS=$ac_check_lib_save_LIBS
11035 fi
11036 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
11037 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
11038 if test $ac_cv_lib_socket_connect = yes; then
11039   cat >>confdefs.h <<_ACEOF
11040 #define HAVE_LIBSOCKET 1
11041 _ACEOF
11042
11043   LIBS="-lsocket $LIBS"
11044
11045 fi
11046  ;;
11047     esac
11048     case "$LIBS" in
11049     *-linet*) ;;
11050     *)
11051 echo "$as_me:$LINENO: checking for connect in -linet" >&5
11052 echo $ECHO_N "checking for connect in -linet... $ECHO_C" >&6
11053 if test "${ac_cv_lib_inet_connect+set}" = set; then
11054   echo $ECHO_N "(cached) $ECHO_C" >&6
11055 else
11056   ac_check_lib_save_LIBS=$LIBS
11057 LIBS="-linet  $LIBS"
11058 cat >conftest.$ac_ext <<_ACEOF
11059 #line $LINENO "configure"
11060 #include "confdefs.h"
11061
11062 /* Override any gcc2 internal prototype to avoid an error.  */
11063 #ifdef __cplusplus
11064 extern "C"
11065 #endif
11066 /* We use char because int might match the return type of a gcc2
11067    builtin and then its argument prototype would still apply.  */
11068 char connect ();
11069 #ifdef F77_DUMMY_MAIN
11070 #  ifdef __cplusplus
11071      extern "C"
11072 #  endif
11073    int F77_DUMMY_MAIN() { return 1; }
11074 #endif
11075 int
11076 main ()
11077 {
11078 connect ();
11079   ;
11080   return 0;
11081 }
11082 _ACEOF
11083 rm -f conftest.$ac_objext conftest$ac_exeext
11084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11085   (eval $ac_link) 2>&5
11086   ac_status=$?
11087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088   (exit $ac_status); } &&
11089          { ac_try='test -s conftest$ac_exeext'
11090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091   (eval $ac_try) 2>&5
11092   ac_status=$?
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); }; }; then
11095   ac_cv_lib_inet_connect=yes
11096 else
11097   echo "$as_me: failed program was:" >&5
11098 cat conftest.$ac_ext >&5
11099 ac_cv_lib_inet_connect=no
11100 fi
11101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11102 LIBS=$ac_check_lib_save_LIBS
11103 fi
11104 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_connect" >&5
11105 echo "${ECHO_T}$ac_cv_lib_inet_connect" >&6
11106 if test $ac_cv_lib_inet_connect = yes; then
11107   cat >>confdefs.h <<_ACEOF
11108 #define HAVE_LIBINET 1
11109 _ACEOF
11110
11111   LIBS="-linet $LIBS"
11112
11113 fi
11114  ;;
11115     esac
11116             if test x"$ac_cv_lib_socket_connect" = x"yes" ||
11117        test x"$ac_cv_lib_inet_connect" = x"yes"; then
11118         # ac_cv_func_connect=yes
11119         # don't!  it would cause AC_CHECK_FUNC to succeed next time configure is run
11120
11121 cat >>confdefs.h <<\_ACEOF
11122 #define HAVE_CONNECT 1
11123 _ACEOF
11124
11125     fi
11126 fi
11127
11128 ###############################################
11129 # test for where we get get_yp_default_domain() from
11130
11131 for ac_func in yp_get_default_domain
11132 do
11133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11134 echo "$as_me:$LINENO: checking for $ac_func" >&5
11135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11136 if eval "test \"\${$as_ac_var+set}\" = set"; then
11137   echo $ECHO_N "(cached) $ECHO_C" >&6
11138 else
11139   cat >conftest.$ac_ext <<_ACEOF
11140 #line $LINENO "configure"
11141 #include "confdefs.h"
11142 /* System header to define __stub macros and hopefully few prototypes,
11143     which can conflict with char $ac_func (); below.  */
11144 #include <assert.h>
11145 /* Override any gcc2 internal prototype to avoid an error.  */
11146 #ifdef __cplusplus
11147 extern "C"
11148 #endif
11149 /* We use char because int might match the return type of a gcc2
11150    builtin and then its argument prototype would still apply.  */
11151 char $ac_func ();
11152 char (*f) ();
11153
11154 #ifdef F77_DUMMY_MAIN
11155 #  ifdef __cplusplus
11156      extern "C"
11157 #  endif
11158    int F77_DUMMY_MAIN() { return 1; }
11159 #endif
11160 int
11161 main ()
11162 {
11163 /* The GNU C library defines this for functions which it implements
11164     to always fail with ENOSYS.  Some functions are actually named
11165     something starting with __ and the normal name is an alias.  */
11166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11167 choke me
11168 #else
11169 f = $ac_func;
11170 #endif
11171
11172   ;
11173   return 0;
11174 }
11175 _ACEOF
11176 rm -f conftest.$ac_objext conftest$ac_exeext
11177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11178   (eval $ac_link) 2>&5
11179   ac_status=$?
11180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181   (exit $ac_status); } &&
11182          { ac_try='test -s conftest$ac_exeext'
11183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184   (eval $ac_try) 2>&5
11185   ac_status=$?
11186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187   (exit $ac_status); }; }; then
11188   eval "$as_ac_var=yes"
11189 else
11190   echo "$as_me: failed program was:" >&5
11191 cat conftest.$ac_ext >&5
11192 eval "$as_ac_var=no"
11193 fi
11194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11195 fi
11196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11198 if test `eval echo '${'$as_ac_var'}'` = yes; then
11199   cat >>confdefs.h <<_ACEOF
11200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11201 _ACEOF
11202
11203 fi
11204 done
11205
11206 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
11207         echo "$as_me:$LINENO: checking for yp_get_default_domain in -lnsl" >&5
11208 echo $ECHO_N "checking for yp_get_default_domain in -lnsl... $ECHO_C" >&6
11209 if test "${ac_cv_lib_nsl_yp_get_default_domain+set}" = set; then
11210   echo $ECHO_N "(cached) $ECHO_C" >&6
11211 else
11212   ac_check_lib_save_LIBS=$LIBS
11213 LIBS="-lnsl  $LIBS"
11214 cat >conftest.$ac_ext <<_ACEOF
11215 #line $LINENO "configure"
11216 #include "confdefs.h"
11217
11218 /* Override any gcc2 internal prototype to avoid an error.  */
11219 #ifdef __cplusplus
11220 extern "C"
11221 #endif
11222 /* We use char because int might match the return type of a gcc2
11223    builtin and then its argument prototype would still apply.  */
11224 char yp_get_default_domain ();
11225 #ifdef F77_DUMMY_MAIN
11226 #  ifdef __cplusplus
11227      extern "C"
11228 #  endif
11229    int F77_DUMMY_MAIN() { return 1; }
11230 #endif
11231 int
11232 main ()
11233 {
11234 yp_get_default_domain ();
11235   ;
11236   return 0;
11237 }
11238 _ACEOF
11239 rm -f conftest.$ac_objext conftest$ac_exeext
11240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11241   (eval $ac_link) 2>&5
11242   ac_status=$?
11243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244   (exit $ac_status); } &&
11245          { ac_try='test -s conftest$ac_exeext'
11246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247   (eval $ac_try) 2>&5
11248   ac_status=$?
11249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250   (exit $ac_status); }; }; then
11251   ac_cv_lib_nsl_yp_get_default_domain=yes
11252 else
11253   echo "$as_me: failed program was:" >&5
11254 cat conftest.$ac_ext >&5
11255 ac_cv_lib_nsl_yp_get_default_domain=no
11256 fi
11257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11258 LIBS=$ac_check_lib_save_LIBS
11259 fi
11260 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
11261 echo "${ECHO_T}$ac_cv_lib_nsl_yp_get_default_domain" >&6
11262 if test $ac_cv_lib_nsl_yp_get_default_domain = yes; then
11263   LIBS="$LIBS -lnsl";
11264
11265 cat >>confdefs.h <<\_ACEOF
11266 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
11267 _ACEOF
11268
11269 fi
11270
11271 fi
11272
11273 # Check if we have execl, if not we need to compile smbrun.
11274
11275 for ac_func in execl
11276 do
11277 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11278 echo "$as_me:$LINENO: checking for $ac_func" >&5
11279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11280 if eval "test \"\${$as_ac_var+set}\" = set"; then
11281   echo $ECHO_N "(cached) $ECHO_C" >&6
11282 else
11283   cat >conftest.$ac_ext <<_ACEOF
11284 #line $LINENO "configure"
11285 #include "confdefs.h"
11286 /* System header to define __stub macros and hopefully few prototypes,
11287     which can conflict with char $ac_func (); below.  */
11288 #include <assert.h>
11289 /* Override any gcc2 internal prototype to avoid an error.  */
11290 #ifdef __cplusplus
11291 extern "C"
11292 #endif
11293 /* We use char because int might match the return type of a gcc2
11294    builtin and then its argument prototype would still apply.  */
11295 char $ac_func ();
11296 char (*f) ();
11297
11298 #ifdef F77_DUMMY_MAIN
11299 #  ifdef __cplusplus
11300      extern "C"
11301 #  endif
11302    int F77_DUMMY_MAIN() { return 1; }
11303 #endif
11304 int
11305 main ()
11306 {
11307 /* The GNU C library defines this for functions which it implements
11308     to always fail with ENOSYS.  Some functions are actually named
11309     something starting with __ and the normal name is an alias.  */
11310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11311 choke me
11312 #else
11313 f = $ac_func;
11314 #endif
11315
11316   ;
11317   return 0;
11318 }
11319 _ACEOF
11320 rm -f conftest.$ac_objext conftest$ac_exeext
11321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11322   (eval $ac_link) 2>&5
11323   ac_status=$?
11324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325   (exit $ac_status); } &&
11326          { ac_try='test -s conftest$ac_exeext'
11327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328   (eval $ac_try) 2>&5
11329   ac_status=$?
11330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331   (exit $ac_status); }; }; then
11332   eval "$as_ac_var=yes"
11333 else
11334   echo "$as_me: failed program was:" >&5
11335 cat conftest.$ac_ext >&5
11336 eval "$as_ac_var=no"
11337 fi
11338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11339 fi
11340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11341 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11342 if test `eval echo '${'$as_ac_var'}'` = yes; then
11343   cat >>confdefs.h <<_ACEOF
11344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11345 _ACEOF
11346
11347 fi
11348 done
11349
11350 if test x"$ac_cv_func_execl" = x"no"; then
11351     RUNPROG="bin/smbrun"
11352 else
11353     RUNPROG=""
11354 fi
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
11376 do
11377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11378 echo "$as_me:$LINENO: checking for $ac_func" >&5
11379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11380 if eval "test \"\${$as_ac_var+set}\" = set"; then
11381   echo $ECHO_N "(cached) $ECHO_C" >&6
11382 else
11383   cat >conftest.$ac_ext <<_ACEOF
11384 #line $LINENO "configure"
11385 #include "confdefs.h"
11386 /* System header to define __stub macros and hopefully few prototypes,
11387     which can conflict with char $ac_func (); below.  */
11388 #include <assert.h>
11389 /* Override any gcc2 internal prototype to avoid an error.  */
11390 #ifdef __cplusplus
11391 extern "C"
11392 #endif
11393 /* We use char because int might match the return type of a gcc2
11394    builtin and then its argument prototype would still apply.  */
11395 char $ac_func ();
11396 char (*f) ();
11397
11398 #ifdef F77_DUMMY_MAIN
11399 #  ifdef __cplusplus
11400      extern "C"
11401 #  endif
11402    int F77_DUMMY_MAIN() { return 1; }
11403 #endif
11404 int
11405 main ()
11406 {
11407 /* The GNU C library defines this for functions which it implements
11408     to always fail with ENOSYS.  Some functions are actually named
11409     something starting with __ and the normal name is an alias.  */
11410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11411 choke me
11412 #else
11413 f = $ac_func;
11414 #endif
11415
11416   ;
11417   return 0;
11418 }
11419 _ACEOF
11420 rm -f conftest.$ac_objext conftest$ac_exeext
11421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11422   (eval $ac_link) 2>&5
11423   ac_status=$?
11424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425   (exit $ac_status); } &&
11426          { ac_try='test -s conftest$ac_exeext'
11427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428   (eval $ac_try) 2>&5
11429   ac_status=$?
11430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431   (exit $ac_status); }; }; then
11432   eval "$as_ac_var=yes"
11433 else
11434   echo "$as_me: failed program was:" >&5
11435 cat conftest.$ac_ext >&5
11436 eval "$as_ac_var=no"
11437 fi
11438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11439 fi
11440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11442 if test `eval echo '${'$as_ac_var'}'` = yes; then
11443   cat >>confdefs.h <<_ACEOF
11444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11445 _ACEOF
11446
11447 fi
11448 done
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
11462 do
11463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11464 echo "$as_me:$LINENO: checking for $ac_func" >&5
11465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11466 if eval "test \"\${$as_ac_var+set}\" = set"; then
11467   echo $ECHO_N "(cached) $ECHO_C" >&6
11468 else
11469   cat >conftest.$ac_ext <<_ACEOF
11470 #line $LINENO "configure"
11471 #include "confdefs.h"
11472 /* System header to define __stub macros and hopefully few prototypes,
11473     which can conflict with char $ac_func (); below.  */
11474 #include <assert.h>
11475 /* Override any gcc2 internal prototype to avoid an error.  */
11476 #ifdef __cplusplus
11477 extern "C"
11478 #endif
11479 /* We use char because int might match the return type of a gcc2
11480    builtin and then its argument prototype would still apply.  */
11481 char $ac_func ();
11482 char (*f) ();
11483
11484 #ifdef F77_DUMMY_MAIN
11485 #  ifdef __cplusplus
11486      extern "C"
11487 #  endif
11488    int F77_DUMMY_MAIN() { return 1; }
11489 #endif
11490 int
11491 main ()
11492 {
11493 /* The GNU C library defines this for functions which it implements
11494     to always fail with ENOSYS.  Some functions are actually named
11495     something starting with __ and the normal name is an alias.  */
11496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11497 choke me
11498 #else
11499 f = $ac_func;
11500 #endif
11501
11502   ;
11503   return 0;
11504 }
11505 _ACEOF
11506 rm -f conftest.$ac_objext conftest$ac_exeext
11507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11508   (eval $ac_link) 2>&5
11509   ac_status=$?
11510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511   (exit $ac_status); } &&
11512          { ac_try='test -s conftest$ac_exeext'
11513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514   (eval $ac_try) 2>&5
11515   ac_status=$?
11516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517   (exit $ac_status); }; }; then
11518   eval "$as_ac_var=yes"
11519 else
11520   echo "$as_me: failed program was:" >&5
11521 cat conftest.$ac_ext >&5
11522 eval "$as_ac_var=no"
11523 fi
11524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11525 fi
11526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11528 if test `eval echo '${'$as_ac_var'}'` = yes; then
11529   cat >>confdefs.h <<_ACEOF
11530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11531 _ACEOF
11532
11533 fi
11534 done
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
11548 do
11549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11550 echo "$as_me:$LINENO: checking for $ac_func" >&5
11551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11552 if eval "test \"\${$as_ac_var+set}\" = set"; then
11553   echo $ECHO_N "(cached) $ECHO_C" >&6
11554 else
11555   cat >conftest.$ac_ext <<_ACEOF
11556 #line $LINENO "configure"
11557 #include "confdefs.h"
11558 /* System header to define __stub macros and hopefully few prototypes,
11559     which can conflict with char $ac_func (); below.  */
11560 #include <assert.h>
11561 /* Override any gcc2 internal prototype to avoid an error.  */
11562 #ifdef __cplusplus
11563 extern "C"
11564 #endif
11565 /* We use char because int might match the return type of a gcc2
11566    builtin and then its argument prototype would still apply.  */
11567 char $ac_func ();
11568 char (*f) ();
11569
11570 #ifdef F77_DUMMY_MAIN
11571 #  ifdef __cplusplus
11572      extern "C"
11573 #  endif
11574    int F77_DUMMY_MAIN() { return 1; }
11575 #endif
11576 int
11577 main ()
11578 {
11579 /* The GNU C library defines this for functions which it implements
11580     to always fail with ENOSYS.  Some functions are actually named
11581     something starting with __ and the normal name is an alias.  */
11582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11583 choke me
11584 #else
11585 f = $ac_func;
11586 #endif
11587
11588   ;
11589   return 0;
11590 }
11591 _ACEOF
11592 rm -f conftest.$ac_objext conftest$ac_exeext
11593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11594   (eval $ac_link) 2>&5
11595   ac_status=$?
11596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597   (exit $ac_status); } &&
11598          { ac_try='test -s conftest$ac_exeext'
11599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600   (eval $ac_try) 2>&5
11601   ac_status=$?
11602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603   (exit $ac_status); }; }; then
11604   eval "$as_ac_var=yes"
11605 else
11606   echo "$as_me: failed program was:" >&5
11607 cat conftest.$ac_ext >&5
11608 eval "$as_ac_var=no"
11609 fi
11610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11611 fi
11612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11613 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11614 if test `eval echo '${'$as_ac_var'}'` = yes; then
11615   cat >>confdefs.h <<_ACEOF
11616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11617 _ACEOF
11618
11619 fi
11620 done
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
11632 do
11633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11634 echo "$as_me:$LINENO: checking for $ac_func" >&5
11635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11636 if eval "test \"\${$as_ac_var+set}\" = set"; then
11637   echo $ECHO_N "(cached) $ECHO_C" >&6
11638 else
11639   cat >conftest.$ac_ext <<_ACEOF
11640 #line $LINENO "configure"
11641 #include "confdefs.h"
11642 /* System header to define __stub macros and hopefully few prototypes,
11643     which can conflict with char $ac_func (); below.  */
11644 #include <assert.h>
11645 /* Override any gcc2 internal prototype to avoid an error.  */
11646 #ifdef __cplusplus
11647 extern "C"
11648 #endif
11649 /* We use char because int might match the return type of a gcc2
11650    builtin and then its argument prototype would still apply.  */
11651 char $ac_func ();
11652 char (*f) ();
11653
11654 #ifdef F77_DUMMY_MAIN
11655 #  ifdef __cplusplus
11656      extern "C"
11657 #  endif
11658    int F77_DUMMY_MAIN() { return 1; }
11659 #endif
11660 int
11661 main ()
11662 {
11663 /* The GNU C library defines this for functions which it implements
11664     to always fail with ENOSYS.  Some functions are actually named
11665     something starting with __ and the normal name is an alias.  */
11666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11667 choke me
11668 #else
11669 f = $ac_func;
11670 #endif
11671
11672   ;
11673   return 0;
11674 }
11675 _ACEOF
11676 rm -f conftest.$ac_objext conftest$ac_exeext
11677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11678   (eval $ac_link) 2>&5
11679   ac_status=$?
11680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681   (exit $ac_status); } &&
11682          { ac_try='test -s conftest$ac_exeext'
11683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684   (eval $ac_try) 2>&5
11685   ac_status=$?
11686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687   (exit $ac_status); }; }; then
11688   eval "$as_ac_var=yes"
11689 else
11690   echo "$as_me: failed program was:" >&5
11691 cat conftest.$ac_ext >&5
11692 eval "$as_ac_var=no"
11693 fi
11694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11695 fi
11696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11698 if test `eval echo '${'$as_ac_var'}'` = yes; then
11699   cat >>confdefs.h <<_ACEOF
11700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11701 _ACEOF
11702
11703 fi
11704 done
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
11715 do
11716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11717 echo "$as_me:$LINENO: checking for $ac_func" >&5
11718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11719 if eval "test \"\${$as_ac_var+set}\" = set"; then
11720   echo $ECHO_N "(cached) $ECHO_C" >&6
11721 else
11722   cat >conftest.$ac_ext <<_ACEOF
11723 #line $LINENO "configure"
11724 #include "confdefs.h"
11725 /* System header to define __stub macros and hopefully few prototypes,
11726     which can conflict with char $ac_func (); below.  */
11727 #include <assert.h>
11728 /* Override any gcc2 internal prototype to avoid an error.  */
11729 #ifdef __cplusplus
11730 extern "C"
11731 #endif
11732 /* We use char because int might match the return type of a gcc2
11733    builtin and then its argument prototype would still apply.  */
11734 char $ac_func ();
11735 char (*f) ();
11736
11737 #ifdef F77_DUMMY_MAIN
11738 #  ifdef __cplusplus
11739      extern "C"
11740 #  endif
11741    int F77_DUMMY_MAIN() { return 1; }
11742 #endif
11743 int
11744 main ()
11745 {
11746 /* The GNU C library defines this for functions which it implements
11747     to always fail with ENOSYS.  Some functions are actually named
11748     something starting with __ and the normal name is an alias.  */
11749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11750 choke me
11751 #else
11752 f = $ac_func;
11753 #endif
11754
11755   ;
11756   return 0;
11757 }
11758 _ACEOF
11759 rm -f conftest.$ac_objext conftest$ac_exeext
11760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11761   (eval $ac_link) 2>&5
11762   ac_status=$?
11763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764   (exit $ac_status); } &&
11765          { ac_try='test -s conftest$ac_exeext'
11766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767   (eval $ac_try) 2>&5
11768   ac_status=$?
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); }; }; then
11771   eval "$as_ac_var=yes"
11772 else
11773   echo "$as_me: failed program was:" >&5
11774 cat conftest.$ac_ext >&5
11775 eval "$as_ac_var=no"
11776 fi
11777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11778 fi
11779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11780 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11781 if test `eval echo '${'$as_ac_var'}'` = yes; then
11782   cat >>confdefs.h <<_ACEOF
11783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11784 _ACEOF
11785
11786 fi
11787 done
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
11800 do
11801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11802 echo "$as_me:$LINENO: checking for $ac_func" >&5
11803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11804 if eval "test \"\${$as_ac_var+set}\" = set"; then
11805   echo $ECHO_N "(cached) $ECHO_C" >&6
11806 else
11807   cat >conftest.$ac_ext <<_ACEOF
11808 #line $LINENO "configure"
11809 #include "confdefs.h"
11810 /* System header to define __stub macros and hopefully few prototypes,
11811     which can conflict with char $ac_func (); below.  */
11812 #include <assert.h>
11813 /* Override any gcc2 internal prototype to avoid an error.  */
11814 #ifdef __cplusplus
11815 extern "C"
11816 #endif
11817 /* We use char because int might match the return type of a gcc2
11818    builtin and then its argument prototype would still apply.  */
11819 char $ac_func ();
11820 char (*f) ();
11821
11822 #ifdef F77_DUMMY_MAIN
11823 #  ifdef __cplusplus
11824      extern "C"
11825 #  endif
11826    int F77_DUMMY_MAIN() { return 1; }
11827 #endif
11828 int
11829 main ()
11830 {
11831 /* The GNU C library defines this for functions which it implements
11832     to always fail with ENOSYS.  Some functions are actually named
11833     something starting with __ and the normal name is an alias.  */
11834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11835 choke me
11836 #else
11837 f = $ac_func;
11838 #endif
11839
11840   ;
11841   return 0;
11842 }
11843 _ACEOF
11844 rm -f conftest.$ac_objext conftest$ac_exeext
11845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11846   (eval $ac_link) 2>&5
11847   ac_status=$?
11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849   (exit $ac_status); } &&
11850          { ac_try='test -s conftest$ac_exeext'
11851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11852   (eval $ac_try) 2>&5
11853   ac_status=$?
11854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855   (exit $ac_status); }; }; then
11856   eval "$as_ac_var=yes"
11857 else
11858   echo "$as_me: failed program was:" >&5
11859 cat conftest.$ac_ext >&5
11860 eval "$as_ac_var=no"
11861 fi
11862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11863 fi
11864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11866 if test `eval echo '${'$as_ac_var'}'` = yes; then
11867   cat >>confdefs.h <<_ACEOF
11868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11869 _ACEOF
11870
11871 fi
11872 done
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
11883 do
11884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11885 echo "$as_me:$LINENO: checking for $ac_func" >&5
11886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11887 if eval "test \"\${$as_ac_var+set}\" = set"; then
11888   echo $ECHO_N "(cached) $ECHO_C" >&6
11889 else
11890   cat >conftest.$ac_ext <<_ACEOF
11891 #line $LINENO "configure"
11892 #include "confdefs.h"
11893 /* System header to define __stub macros and hopefully few prototypes,
11894     which can conflict with char $ac_func (); below.  */
11895 #include <assert.h>
11896 /* Override any gcc2 internal prototype to avoid an error.  */
11897 #ifdef __cplusplus
11898 extern "C"
11899 #endif
11900 /* We use char because int might match the return type of a gcc2
11901    builtin and then its argument prototype would still apply.  */
11902 char $ac_func ();
11903 char (*f) ();
11904
11905 #ifdef F77_DUMMY_MAIN
11906 #  ifdef __cplusplus
11907      extern "C"
11908 #  endif
11909    int F77_DUMMY_MAIN() { return 1; }
11910 #endif
11911 int
11912 main ()
11913 {
11914 /* The GNU C library defines this for functions which it implements
11915     to always fail with ENOSYS.  Some functions are actually named
11916     something starting with __ and the normal name is an alias.  */
11917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11918 choke me
11919 #else
11920 f = $ac_func;
11921 #endif
11922
11923   ;
11924   return 0;
11925 }
11926 _ACEOF
11927 rm -f conftest.$ac_objext conftest$ac_exeext
11928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11929   (eval $ac_link) 2>&5
11930   ac_status=$?
11931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); } &&
11933          { ac_try='test -s conftest$ac_exeext'
11934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935   (eval $ac_try) 2>&5
11936   ac_status=$?
11937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938   (exit $ac_status); }; }; then
11939   eval "$as_ac_var=yes"
11940 else
11941   echo "$as_me: failed program was:" >&5
11942 cat conftest.$ac_ext >&5
11943 eval "$as_ac_var=no"
11944 fi
11945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11946 fi
11947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11949 if test `eval echo '${'$as_ac_var'}'` = yes; then
11950   cat >>confdefs.h <<_ACEOF
11951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11952 _ACEOF
11953
11954 fi
11955 done
11956
11957
11958
11959
11960
11961
11962
11963
11964 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
11965 do
11966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11967 echo "$as_me:$LINENO: checking for $ac_func" >&5
11968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11969 if eval "test \"\${$as_ac_var+set}\" = set"; then
11970   echo $ECHO_N "(cached) $ECHO_C" >&6
11971 else
11972   cat >conftest.$ac_ext <<_ACEOF
11973 #line $LINENO "configure"
11974 #include "confdefs.h"
11975 /* System header to define __stub macros and hopefully few prototypes,
11976     which can conflict with char $ac_func (); below.  */
11977 #include <assert.h>
11978 /* Override any gcc2 internal prototype to avoid an error.  */
11979 #ifdef __cplusplus
11980 extern "C"
11981 #endif
11982 /* We use char because int might match the return type of a gcc2
11983    builtin and then its argument prototype would still apply.  */
11984 char $ac_func ();
11985 char (*f) ();
11986
11987 #ifdef F77_DUMMY_MAIN
11988 #  ifdef __cplusplus
11989      extern "C"
11990 #  endif
11991    int F77_DUMMY_MAIN() { return 1; }
11992 #endif
11993 int
11994 main ()
11995 {
11996 /* The GNU C library defines this for functions which it implements
11997     to always fail with ENOSYS.  Some functions are actually named
11998     something starting with __ and the normal name is an alias.  */
11999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12000 choke me
12001 #else
12002 f = $ac_func;
12003 #endif
12004
12005   ;
12006   return 0;
12007 }
12008 _ACEOF
12009 rm -f conftest.$ac_objext conftest$ac_exeext
12010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12011   (eval $ac_link) 2>&5
12012   ac_status=$?
12013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014   (exit $ac_status); } &&
12015          { ac_try='test -s conftest$ac_exeext'
12016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017   (eval $ac_try) 2>&5
12018   ac_status=$?
12019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); }; }; then
12021   eval "$as_ac_var=yes"
12022 else
12023   echo "$as_me: failed program was:" >&5
12024 cat conftest.$ac_ext >&5
12025 eval "$as_ac_var=no"
12026 fi
12027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12028 fi
12029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12030 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12031 if test `eval echo '${'$as_ac_var'}'` = yes; then
12032   cat >>confdefs.h <<_ACEOF
12033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12034 _ACEOF
12035
12036 fi
12037 done
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
12051 do
12052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12053 echo "$as_me:$LINENO: checking for $ac_func" >&5
12054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12055 if eval "test \"\${$as_ac_var+set}\" = set"; then
12056   echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12058   cat >conftest.$ac_ext <<_ACEOF
12059 #line $LINENO "configure"
12060 #include "confdefs.h"
12061 /* System header to define __stub macros and hopefully few prototypes,
12062     which can conflict with char $ac_func (); below.  */
12063 #include <assert.h>
12064 /* Override any gcc2 internal prototype to avoid an error.  */
12065 #ifdef __cplusplus
12066 extern "C"
12067 #endif
12068 /* We use char because int might match the return type of a gcc2
12069    builtin and then its argument prototype would still apply.  */
12070 char $ac_func ();
12071 char (*f) ();
12072
12073 #ifdef F77_DUMMY_MAIN
12074 #  ifdef __cplusplus
12075      extern "C"
12076 #  endif
12077    int F77_DUMMY_MAIN() { return 1; }
12078 #endif
12079 int
12080 main ()
12081 {
12082 /* The GNU C library defines this for functions which it implements
12083     to always fail with ENOSYS.  Some functions are actually named
12084     something starting with __ and the normal name is an alias.  */
12085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12086 choke me
12087 #else
12088 f = $ac_func;
12089 #endif
12090
12091   ;
12092   return 0;
12093 }
12094 _ACEOF
12095 rm -f conftest.$ac_objext conftest$ac_exeext
12096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12097   (eval $ac_link) 2>&5
12098   ac_status=$?
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); } &&
12101          { ac_try='test -s conftest$ac_exeext'
12102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103   (eval $ac_try) 2>&5
12104   ac_status=$?
12105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106   (exit $ac_status); }; }; then
12107   eval "$as_ac_var=yes"
12108 else
12109   echo "$as_me: failed program was:" >&5
12110 cat conftest.$ac_ext >&5
12111 eval "$as_ac_var=no"
12112 fi
12113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12114 fi
12115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12117 if test `eval echo '${'$as_ac_var'}'` = yes; then
12118   cat >>confdefs.h <<_ACEOF
12119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12120 _ACEOF
12121
12122 fi
12123 done
12124
12125
12126
12127
12128
12129 for ac_func in syslog vsyslog getgrouplist timegm
12130 do
12131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12132 echo "$as_me:$LINENO: checking for $ac_func" >&5
12133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12134 if eval "test \"\${$as_ac_var+set}\" = set"; then
12135   echo $ECHO_N "(cached) $ECHO_C" >&6
12136 else
12137   cat >conftest.$ac_ext <<_ACEOF
12138 #line $LINENO "configure"
12139 #include "confdefs.h"
12140 /* System header to define __stub macros and hopefully few prototypes,
12141     which can conflict with char $ac_func (); below.  */
12142 #include <assert.h>
12143 /* Override any gcc2 internal prototype to avoid an error.  */
12144 #ifdef __cplusplus
12145 extern "C"
12146 #endif
12147 /* We use char because int might match the return type of a gcc2
12148    builtin and then its argument prototype would still apply.  */
12149 char $ac_func ();
12150 char (*f) ();
12151
12152 #ifdef F77_DUMMY_MAIN
12153 #  ifdef __cplusplus
12154      extern "C"
12155 #  endif
12156    int F77_DUMMY_MAIN() { return 1; }
12157 #endif
12158 int
12159 main ()
12160 {
12161 /* The GNU C library defines this for functions which it implements
12162     to always fail with ENOSYS.  Some functions are actually named
12163     something starting with __ and the normal name is an alias.  */
12164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12165 choke me
12166 #else
12167 f = $ac_func;
12168 #endif
12169
12170   ;
12171   return 0;
12172 }
12173 _ACEOF
12174 rm -f conftest.$ac_objext conftest$ac_exeext
12175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12176   (eval $ac_link) 2>&5
12177   ac_status=$?
12178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179   (exit $ac_status); } &&
12180          { ac_try='test -s conftest$ac_exeext'
12181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182   (eval $ac_try) 2>&5
12183   ac_status=$?
12184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185   (exit $ac_status); }; }; then
12186   eval "$as_ac_var=yes"
12187 else
12188   echo "$as_me: failed program was:" >&5
12189 cat conftest.$ac_ext >&5
12190 eval "$as_ac_var=no"
12191 fi
12192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12193 fi
12194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12195 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12196 if test `eval echo '${'$as_ac_var'}'` = yes; then
12197   cat >>confdefs.h <<_ACEOF
12198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12199 _ACEOF
12200
12201 fi
12202 done
12203
12204 # setbuffer is needed for smbtorture
12205
12206 for ac_func in setbuffer
12207 do
12208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12209 echo "$as_me:$LINENO: checking for $ac_func" >&5
12210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12211 if eval "test \"\${$as_ac_var+set}\" = set"; then
12212   echo $ECHO_N "(cached) $ECHO_C" >&6
12213 else
12214   cat >conftest.$ac_ext <<_ACEOF
12215 #line $LINENO "configure"
12216 #include "confdefs.h"
12217 /* System header to define __stub macros and hopefully few prototypes,
12218     which can conflict with char $ac_func (); below.  */
12219 #include <assert.h>
12220 /* Override any gcc2 internal prototype to avoid an error.  */
12221 #ifdef __cplusplus
12222 extern "C"
12223 #endif
12224 /* We use char because int might match the return type of a gcc2
12225    builtin and then its argument prototype would still apply.  */
12226 char $ac_func ();
12227 char (*f) ();
12228
12229 #ifdef F77_DUMMY_MAIN
12230 #  ifdef __cplusplus
12231      extern "C"
12232 #  endif
12233    int F77_DUMMY_MAIN() { return 1; }
12234 #endif
12235 int
12236 main ()
12237 {
12238 /* The GNU C library defines this for functions which it implements
12239     to always fail with ENOSYS.  Some functions are actually named
12240     something starting with __ and the normal name is an alias.  */
12241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12242 choke me
12243 #else
12244 f = $ac_func;
12245 #endif
12246
12247   ;
12248   return 0;
12249 }
12250 _ACEOF
12251 rm -f conftest.$ac_objext conftest$ac_exeext
12252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12253   (eval $ac_link) 2>&5
12254   ac_status=$?
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); } &&
12257          { ac_try='test -s conftest$ac_exeext'
12258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259   (eval $ac_try) 2>&5
12260   ac_status=$?
12261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262   (exit $ac_status); }; }; then
12263   eval "$as_ac_var=yes"
12264 else
12265   echo "$as_me: failed program was:" >&5
12266 cat conftest.$ac_ext >&5
12267 eval "$as_ac_var=no"
12268 fi
12269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12270 fi
12271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12273 if test `eval echo '${'$as_ac_var'}'` = yes; then
12274   cat >>confdefs.h <<_ACEOF
12275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12276 _ACEOF
12277
12278 fi
12279 done
12280
12281
12282 # syscall() is needed for smbwrapper.
12283
12284 for ac_func in syscall
12285 do
12286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12287 echo "$as_me:$LINENO: checking for $ac_func" >&5
12288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12289 if eval "test \"\${$as_ac_var+set}\" = set"; then
12290   echo $ECHO_N "(cached) $ECHO_C" >&6
12291 else
12292   cat >conftest.$ac_ext <<_ACEOF
12293 #line $LINENO "configure"
12294 #include "confdefs.h"
12295 /* System header to define __stub macros and hopefully few prototypes,
12296     which can conflict with char $ac_func (); below.  */
12297 #include <assert.h>
12298 /* Override any gcc2 internal prototype to avoid an error.  */
12299 #ifdef __cplusplus
12300 extern "C"
12301 #endif
12302 /* We use char because int might match the return type of a gcc2
12303    builtin and then its argument prototype would still apply.  */
12304 char $ac_func ();
12305 char (*f) ();
12306
12307 #ifdef F77_DUMMY_MAIN
12308 #  ifdef __cplusplus
12309      extern "C"
12310 #  endif
12311    int F77_DUMMY_MAIN() { return 1; }
12312 #endif
12313 int
12314 main ()
12315 {
12316 /* The GNU C library defines this for functions which it implements
12317     to always fail with ENOSYS.  Some functions are actually named
12318     something starting with __ and the normal name is an alias.  */
12319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12320 choke me
12321 #else
12322 f = $ac_func;
12323 #endif
12324
12325   ;
12326   return 0;
12327 }
12328 _ACEOF
12329 rm -f conftest.$ac_objext conftest$ac_exeext
12330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12331   (eval $ac_link) 2>&5
12332   ac_status=$?
12333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334   (exit $ac_status); } &&
12335          { ac_try='test -s conftest$ac_exeext'
12336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12337   (eval $ac_try) 2>&5
12338   ac_status=$?
12339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340   (exit $ac_status); }; }; then
12341   eval "$as_ac_var=yes"
12342 else
12343   echo "$as_me: failed program was:" >&5
12344 cat conftest.$ac_ext >&5
12345 eval "$as_ac_var=no"
12346 fi
12347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12348 fi
12349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12351 if test `eval echo '${'$as_ac_var'}'` = yes; then
12352   cat >>confdefs.h <<_ACEOF
12353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12354 _ACEOF
12355
12356 fi
12357 done
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
12368 do
12369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12370 echo "$as_me:$LINENO: checking for $ac_func" >&5
12371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12372 if eval "test \"\${$as_ac_var+set}\" = set"; then
12373   echo $ECHO_N "(cached) $ECHO_C" >&6
12374 else
12375   cat >conftest.$ac_ext <<_ACEOF
12376 #line $LINENO "configure"
12377 #include "confdefs.h"
12378 /* System header to define __stub macros and hopefully few prototypes,
12379     which can conflict with char $ac_func (); below.  */
12380 #include <assert.h>
12381 /* Override any gcc2 internal prototype to avoid an error.  */
12382 #ifdef __cplusplus
12383 extern "C"
12384 #endif
12385 /* We use char because int might match the return type of a gcc2
12386    builtin and then its argument prototype would still apply.  */
12387 char $ac_func ();
12388 char (*f) ();
12389
12390 #ifdef F77_DUMMY_MAIN
12391 #  ifdef __cplusplus
12392      extern "C"
12393 #  endif
12394    int F77_DUMMY_MAIN() { return 1; }
12395 #endif
12396 int
12397 main ()
12398 {
12399 /* The GNU C library defines this for functions which it implements
12400     to always fail with ENOSYS.  Some functions are actually named
12401     something starting with __ and the normal name is an alias.  */
12402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12403 choke me
12404 #else
12405 f = $ac_func;
12406 #endif
12407
12408   ;
12409   return 0;
12410 }
12411 _ACEOF
12412 rm -f conftest.$ac_objext conftest$ac_exeext
12413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12414   (eval $ac_link) 2>&5
12415   ac_status=$?
12416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417   (exit $ac_status); } &&
12418          { ac_try='test -s conftest$ac_exeext'
12419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420   (eval $ac_try) 2>&5
12421   ac_status=$?
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); }; }; then
12424   eval "$as_ac_var=yes"
12425 else
12426   echo "$as_me: failed program was:" >&5
12427 cat conftest.$ac_ext >&5
12428 eval "$as_ac_var=no"
12429 fi
12430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12431 fi
12432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12434 if test `eval echo '${'$as_ac_var'}'` = yes; then
12435   cat >>confdefs.h <<_ACEOF
12436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12437 _ACEOF
12438
12439 fi
12440 done
12441
12442
12443
12444
12445
12446
12447
12448
12449 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
12450 do
12451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12452 echo "$as_me:$LINENO: checking for $ac_func" >&5
12453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12454 if eval "test \"\${$as_ac_var+set}\" = set"; then
12455   echo $ECHO_N "(cached) $ECHO_C" >&6
12456 else
12457   cat >conftest.$ac_ext <<_ACEOF
12458 #line $LINENO "configure"
12459 #include "confdefs.h"
12460 /* System header to define __stub macros and hopefully few prototypes,
12461     which can conflict with char $ac_func (); below.  */
12462 #include <assert.h>
12463 /* Override any gcc2 internal prototype to avoid an error.  */
12464 #ifdef __cplusplus
12465 extern "C"
12466 #endif
12467 /* We use char because int might match the return type of a gcc2
12468    builtin and then its argument prototype would still apply.  */
12469 char $ac_func ();
12470 char (*f) ();
12471
12472 #ifdef F77_DUMMY_MAIN
12473 #  ifdef __cplusplus
12474      extern "C"
12475 #  endif
12476    int F77_DUMMY_MAIN() { return 1; }
12477 #endif
12478 int
12479 main ()
12480 {
12481 /* The GNU C library defines this for functions which it implements
12482     to always fail with ENOSYS.  Some functions are actually named
12483     something starting with __ and the normal name is an alias.  */
12484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12485 choke me
12486 #else
12487 f = $ac_func;
12488 #endif
12489
12490   ;
12491   return 0;
12492 }
12493 _ACEOF
12494 rm -f conftest.$ac_objext conftest$ac_exeext
12495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12496   (eval $ac_link) 2>&5
12497   ac_status=$?
12498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499   (exit $ac_status); } &&
12500          { ac_try='test -s conftest$ac_exeext'
12501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502   (eval $ac_try) 2>&5
12503   ac_status=$?
12504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505   (exit $ac_status); }; }; then
12506   eval "$as_ac_var=yes"
12507 else
12508   echo "$as_me: failed program was:" >&5
12509 cat conftest.$ac_ext >&5
12510 eval "$as_ac_var=no"
12511 fi
12512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12513 fi
12514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12516 if test `eval echo '${'$as_ac_var'}'` = yes; then
12517   cat >>confdefs.h <<_ACEOF
12518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12519 _ACEOF
12520
12521 fi
12522 done
12523
12524
12525
12526 for ac_func in __getcwd _getcwd
12527 do
12528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12529 echo "$as_me:$LINENO: checking for $ac_func" >&5
12530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12531 if eval "test \"\${$as_ac_var+set}\" = set"; then
12532   echo $ECHO_N "(cached) $ECHO_C" >&6
12533 else
12534   cat >conftest.$ac_ext <<_ACEOF
12535 #line $LINENO "configure"
12536 #include "confdefs.h"
12537 /* System header to define __stub macros and hopefully few prototypes,
12538     which can conflict with char $ac_func (); below.  */
12539 #include <assert.h>
12540 /* Override any gcc2 internal prototype to avoid an error.  */
12541 #ifdef __cplusplus
12542 extern "C"
12543 #endif
12544 /* We use char because int might match the return type of a gcc2
12545    builtin and then its argument prototype would still apply.  */
12546 char $ac_func ();
12547 char (*f) ();
12548
12549 #ifdef F77_DUMMY_MAIN
12550 #  ifdef __cplusplus
12551      extern "C"
12552 #  endif
12553    int F77_DUMMY_MAIN() { return 1; }
12554 #endif
12555 int
12556 main ()
12557 {
12558 /* The GNU C library defines this for functions which it implements
12559     to always fail with ENOSYS.  Some functions are actually named
12560     something starting with __ and the normal name is an alias.  */
12561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12562 choke me
12563 #else
12564 f = $ac_func;
12565 #endif
12566
12567   ;
12568   return 0;
12569 }
12570 _ACEOF
12571 rm -f conftest.$ac_objext conftest$ac_exeext
12572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12573   (eval $ac_link) 2>&5
12574   ac_status=$?
12575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576   (exit $ac_status); } &&
12577          { ac_try='test -s conftest$ac_exeext'
12578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579   (eval $ac_try) 2>&5
12580   ac_status=$?
12581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582   (exit $ac_status); }; }; then
12583   eval "$as_ac_var=yes"
12584 else
12585   echo "$as_me: failed program was:" >&5
12586 cat conftest.$ac_ext >&5
12587 eval "$as_ac_var=no"
12588 fi
12589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12590 fi
12591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12593 if test `eval echo '${'$as_ac_var'}'` = yes; then
12594   cat >>confdefs.h <<_ACEOF
12595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12596 _ACEOF
12597
12598 fi
12599 done
12600
12601
12602
12603
12604 for ac_func in __xstat __fxstat __lxstat
12605 do
12606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12607 echo "$as_me:$LINENO: checking for $ac_func" >&5
12608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12609 if eval "test \"\${$as_ac_var+set}\" = set"; then
12610   echo $ECHO_N "(cached) $ECHO_C" >&6
12611 else
12612   cat >conftest.$ac_ext <<_ACEOF
12613 #line $LINENO "configure"
12614 #include "confdefs.h"
12615 /* System header to define __stub macros and hopefully few prototypes,
12616     which can conflict with char $ac_func (); below.  */
12617 #include <assert.h>
12618 /* Override any gcc2 internal prototype to avoid an error.  */
12619 #ifdef __cplusplus
12620 extern "C"
12621 #endif
12622 /* We use char because int might match the return type of a gcc2
12623    builtin and then its argument prototype would still apply.  */
12624 char $ac_func ();
12625 char (*f) ();
12626
12627 #ifdef F77_DUMMY_MAIN
12628 #  ifdef __cplusplus
12629      extern "C"
12630 #  endif
12631    int F77_DUMMY_MAIN() { return 1; }
12632 #endif
12633 int
12634 main ()
12635 {
12636 /* The GNU C library defines this for functions which it implements
12637     to always fail with ENOSYS.  Some functions are actually named
12638     something starting with __ and the normal name is an alias.  */
12639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12640 choke me
12641 #else
12642 f = $ac_func;
12643 #endif
12644
12645   ;
12646   return 0;
12647 }
12648 _ACEOF
12649 rm -f conftest.$ac_objext conftest$ac_exeext
12650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12651   (eval $ac_link) 2>&5
12652   ac_status=$?
12653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654   (exit $ac_status); } &&
12655          { ac_try='test -s conftest$ac_exeext'
12656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657   (eval $ac_try) 2>&5
12658   ac_status=$?
12659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660   (exit $ac_status); }; }; then
12661   eval "$as_ac_var=yes"
12662 else
12663   echo "$as_me: failed program was:" >&5
12664 cat conftest.$ac_ext >&5
12665 eval "$as_ac_var=no"
12666 fi
12667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12668 fi
12669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12671 if test `eval echo '${'$as_ac_var'}'` = yes; then
12672   cat >>confdefs.h <<_ACEOF
12673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12674 _ACEOF
12675
12676 fi
12677 done
12678
12679
12680
12681
12682
12683
12684
12685 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
12686 do
12687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12688 echo "$as_me:$LINENO: checking for $ac_func" >&5
12689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12690 if eval "test \"\${$as_ac_var+set}\" = set"; then
12691   echo $ECHO_N "(cached) $ECHO_C" >&6
12692 else
12693   cat >conftest.$ac_ext <<_ACEOF
12694 #line $LINENO "configure"
12695 #include "confdefs.h"
12696 /* System header to define __stub macros and hopefully few prototypes,
12697     which can conflict with char $ac_func (); below.  */
12698 #include <assert.h>
12699 /* Override any gcc2 internal prototype to avoid an error.  */
12700 #ifdef __cplusplus
12701 extern "C"
12702 #endif
12703 /* We use char because int might match the return type of a gcc2
12704    builtin and then its argument prototype would still apply.  */
12705 char $ac_func ();
12706 char (*f) ();
12707
12708 #ifdef F77_DUMMY_MAIN
12709 #  ifdef __cplusplus
12710      extern "C"
12711 #  endif
12712    int F77_DUMMY_MAIN() { return 1; }
12713 #endif
12714 int
12715 main ()
12716 {
12717 /* The GNU C library defines this for functions which it implements
12718     to always fail with ENOSYS.  Some functions are actually named
12719     something starting with __ and the normal name is an alias.  */
12720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12721 choke me
12722 #else
12723 f = $ac_func;
12724 #endif
12725
12726   ;
12727   return 0;
12728 }
12729 _ACEOF
12730 rm -f conftest.$ac_objext conftest$ac_exeext
12731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12732   (eval $ac_link) 2>&5
12733   ac_status=$?
12734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735   (exit $ac_status); } &&
12736          { ac_try='test -s conftest$ac_exeext'
12737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738   (eval $ac_try) 2>&5
12739   ac_status=$?
12740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741   (exit $ac_status); }; }; then
12742   eval "$as_ac_var=yes"
12743 else
12744   echo "$as_me: failed program was:" >&5
12745 cat conftest.$ac_ext >&5
12746 eval "$as_ac_var=no"
12747 fi
12748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12749 fi
12750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12752 if test `eval echo '${'$as_ac_var'}'` = yes; then
12753   cat >>confdefs.h <<_ACEOF
12754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12755 _ACEOF
12756
12757 fi
12758 done
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
12769 do
12770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12771 echo "$as_me:$LINENO: checking for $ac_func" >&5
12772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12773 if eval "test \"\${$as_ac_var+set}\" = set"; then
12774   echo $ECHO_N "(cached) $ECHO_C" >&6
12775 else
12776   cat >conftest.$ac_ext <<_ACEOF
12777 #line $LINENO "configure"
12778 #include "confdefs.h"
12779 /* System header to define __stub macros and hopefully few prototypes,
12780     which can conflict with char $ac_func (); below.  */
12781 #include <assert.h>
12782 /* Override any gcc2 internal prototype to avoid an error.  */
12783 #ifdef __cplusplus
12784 extern "C"
12785 #endif
12786 /* We use char because int might match the return type of a gcc2
12787    builtin and then its argument prototype would still apply.  */
12788 char $ac_func ();
12789 char (*f) ();
12790
12791 #ifdef F77_DUMMY_MAIN
12792 #  ifdef __cplusplus
12793      extern "C"
12794 #  endif
12795    int F77_DUMMY_MAIN() { return 1; }
12796 #endif
12797 int
12798 main ()
12799 {
12800 /* The GNU C library defines this for functions which it implements
12801     to always fail with ENOSYS.  Some functions are actually named
12802     something starting with __ and the normal name is an alias.  */
12803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12804 choke me
12805 #else
12806 f = $ac_func;
12807 #endif
12808
12809   ;
12810   return 0;
12811 }
12812 _ACEOF
12813 rm -f conftest.$ac_objext conftest$ac_exeext
12814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12815   (eval $ac_link) 2>&5
12816   ac_status=$?
12817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818   (exit $ac_status); } &&
12819          { ac_try='test -s conftest$ac_exeext'
12820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821   (eval $ac_try) 2>&5
12822   ac_status=$?
12823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824   (exit $ac_status); }; }; then
12825   eval "$as_ac_var=yes"
12826 else
12827   echo "$as_me: failed program was:" >&5
12828 cat conftest.$ac_ext >&5
12829 eval "$as_ac_var=no"
12830 fi
12831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12832 fi
12833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12835 if test `eval echo '${'$as_ac_var'}'` = yes; then
12836   cat >>confdefs.h <<_ACEOF
12837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12838 _ACEOF
12839
12840 fi
12841 done
12842
12843
12844
12845
12846
12847
12848
12849 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
12850 do
12851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12852 echo "$as_me:$LINENO: checking for $ac_func" >&5
12853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12854 if eval "test \"\${$as_ac_var+set}\" = set"; then
12855   echo $ECHO_N "(cached) $ECHO_C" >&6
12856 else
12857   cat >conftest.$ac_ext <<_ACEOF
12858 #line $LINENO "configure"
12859 #include "confdefs.h"
12860 /* System header to define __stub macros and hopefully few prototypes,
12861     which can conflict with char $ac_func (); below.  */
12862 #include <assert.h>
12863 /* Override any gcc2 internal prototype to avoid an error.  */
12864 #ifdef __cplusplus
12865 extern "C"
12866 #endif
12867 /* We use char because int might match the return type of a gcc2
12868    builtin and then its argument prototype would still apply.  */
12869 char $ac_func ();
12870 char (*f) ();
12871
12872 #ifdef F77_DUMMY_MAIN
12873 #  ifdef __cplusplus
12874      extern "C"
12875 #  endif
12876    int F77_DUMMY_MAIN() { return 1; }
12877 #endif
12878 int
12879 main ()
12880 {
12881 /* The GNU C library defines this for functions which it implements
12882     to always fail with ENOSYS.  Some functions are actually named
12883     something starting with __ and the normal name is an alias.  */
12884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12885 choke me
12886 #else
12887 f = $ac_func;
12888 #endif
12889
12890   ;
12891   return 0;
12892 }
12893 _ACEOF
12894 rm -f conftest.$ac_objext conftest$ac_exeext
12895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12896   (eval $ac_link) 2>&5
12897   ac_status=$?
12898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899   (exit $ac_status); } &&
12900          { ac_try='test -s conftest$ac_exeext'
12901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902   (eval $ac_try) 2>&5
12903   ac_status=$?
12904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905   (exit $ac_status); }; }; then
12906   eval "$as_ac_var=yes"
12907 else
12908   echo "$as_me: failed program was:" >&5
12909 cat conftest.$ac_ext >&5
12910 eval "$as_ac_var=no"
12911 fi
12912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12913 fi
12914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12916 if test `eval echo '${'$as_ac_var'}'` = yes; then
12917   cat >>confdefs.h <<_ACEOF
12918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12919 _ACEOF
12920
12921 fi
12922 done
12923
12924
12925
12926
12927
12928
12929
12930
12931 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
12932 do
12933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12934 echo "$as_me:$LINENO: checking for $ac_func" >&5
12935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12936 if eval "test \"\${$as_ac_var+set}\" = set"; then
12937   echo $ECHO_N "(cached) $ECHO_C" >&6
12938 else
12939   cat >conftest.$ac_ext <<_ACEOF
12940 #line $LINENO "configure"
12941 #include "confdefs.h"
12942 /* System header to define __stub macros and hopefully few prototypes,
12943     which can conflict with char $ac_func (); below.  */
12944 #include <assert.h>
12945 /* Override any gcc2 internal prototype to avoid an error.  */
12946 #ifdef __cplusplus
12947 extern "C"
12948 #endif
12949 /* We use char because int might match the return type of a gcc2
12950    builtin and then its argument prototype would still apply.  */
12951 char $ac_func ();
12952 char (*f) ();
12953
12954 #ifdef F77_DUMMY_MAIN
12955 #  ifdef __cplusplus
12956      extern "C"
12957 #  endif
12958    int F77_DUMMY_MAIN() { return 1; }
12959 #endif
12960 int
12961 main ()
12962 {
12963 /* The GNU C library defines this for functions which it implements
12964     to always fail with ENOSYS.  Some functions are actually named
12965     something starting with __ and the normal name is an alias.  */
12966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12967 choke me
12968 #else
12969 f = $ac_func;
12970 #endif
12971
12972   ;
12973   return 0;
12974 }
12975 _ACEOF
12976 rm -f conftest.$ac_objext conftest$ac_exeext
12977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12978   (eval $ac_link) 2>&5
12979   ac_status=$?
12980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981   (exit $ac_status); } &&
12982          { ac_try='test -s conftest$ac_exeext'
12983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12984   (eval $ac_try) 2>&5
12985   ac_status=$?
12986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987   (exit $ac_status); }; }; then
12988   eval "$as_ac_var=yes"
12989 else
12990   echo "$as_me: failed program was:" >&5
12991 cat conftest.$ac_ext >&5
12992 eval "$as_ac_var=no"
12993 fi
12994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12995 fi
12996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12997 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12998 if test `eval echo '${'$as_ac_var'}'` = yes; then
12999   cat >>confdefs.h <<_ACEOF
13000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13001 _ACEOF
13002
13003 fi
13004 done
13005
13006
13007
13008
13009
13010 for ac_func in _write __write _fork __fork
13011 do
13012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13013 echo "$as_me:$LINENO: checking for $ac_func" >&5
13014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13015 if eval "test \"\${$as_ac_var+set}\" = set"; then
13016   echo $ECHO_N "(cached) $ECHO_C" >&6
13017 else
13018   cat >conftest.$ac_ext <<_ACEOF
13019 #line $LINENO "configure"
13020 #include "confdefs.h"
13021 /* System header to define __stub macros and hopefully few prototypes,
13022     which can conflict with char $ac_func (); below.  */
13023 #include <assert.h>
13024 /* Override any gcc2 internal prototype to avoid an error.  */
13025 #ifdef __cplusplus
13026 extern "C"
13027 #endif
13028 /* We use char because int might match the return type of a gcc2
13029    builtin and then its argument prototype would still apply.  */
13030 char $ac_func ();
13031 char (*f) ();
13032
13033 #ifdef F77_DUMMY_MAIN
13034 #  ifdef __cplusplus
13035      extern "C"
13036 #  endif
13037    int F77_DUMMY_MAIN() { return 1; }
13038 #endif
13039 int
13040 main ()
13041 {
13042 /* The GNU C library defines this for functions which it implements
13043     to always fail with ENOSYS.  Some functions are actually named
13044     something starting with __ and the normal name is an alias.  */
13045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13046 choke me
13047 #else
13048 f = $ac_func;
13049 #endif
13050
13051   ;
13052   return 0;
13053 }
13054 _ACEOF
13055 rm -f conftest.$ac_objext conftest$ac_exeext
13056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13057   (eval $ac_link) 2>&5
13058   ac_status=$?
13059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060   (exit $ac_status); } &&
13061          { ac_try='test -s conftest$ac_exeext'
13062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063   (eval $ac_try) 2>&5
13064   ac_status=$?
13065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066   (exit $ac_status); }; }; then
13067   eval "$as_ac_var=yes"
13068 else
13069   echo "$as_me: failed program was:" >&5
13070 cat conftest.$ac_ext >&5
13071 eval "$as_ac_var=no"
13072 fi
13073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13074 fi
13075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13077 if test `eval echo '${'$as_ac_var'}'` = yes; then
13078   cat >>confdefs.h <<_ACEOF
13079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13080 _ACEOF
13081
13082 fi
13083 done
13084
13085
13086
13087
13088
13089
13090
13091 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
13092 do
13093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13094 echo "$as_me:$LINENO: checking for $ac_func" >&5
13095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13096 if eval "test \"\${$as_ac_var+set}\" = set"; then
13097   echo $ECHO_N "(cached) $ECHO_C" >&6
13098 else
13099   cat >conftest.$ac_ext <<_ACEOF
13100 #line $LINENO "configure"
13101 #include "confdefs.h"
13102 /* System header to define __stub macros and hopefully few prototypes,
13103     which can conflict with char $ac_func (); below.  */
13104 #include <assert.h>
13105 /* Override any gcc2 internal prototype to avoid an error.  */
13106 #ifdef __cplusplus
13107 extern "C"
13108 #endif
13109 /* We use char because int might match the return type of a gcc2
13110    builtin and then its argument prototype would still apply.  */
13111 char $ac_func ();
13112 char (*f) ();
13113
13114 #ifdef F77_DUMMY_MAIN
13115 #  ifdef __cplusplus
13116      extern "C"
13117 #  endif
13118    int F77_DUMMY_MAIN() { return 1; }
13119 #endif
13120 int
13121 main ()
13122 {
13123 /* The GNU C library defines this for functions which it implements
13124     to always fail with ENOSYS.  Some functions are actually named
13125     something starting with __ and the normal name is an alias.  */
13126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13127 choke me
13128 #else
13129 f = $ac_func;
13130 #endif
13131
13132   ;
13133   return 0;
13134 }
13135 _ACEOF
13136 rm -f conftest.$ac_objext conftest$ac_exeext
13137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13138   (eval $ac_link) 2>&5
13139   ac_status=$?
13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141   (exit $ac_status); } &&
13142          { ac_try='test -s conftest$ac_exeext'
13143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144   (eval $ac_try) 2>&5
13145   ac_status=$?
13146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147   (exit $ac_status); }; }; then
13148   eval "$as_ac_var=yes"
13149 else
13150   echo "$as_me: failed program was:" >&5
13151 cat conftest.$ac_ext >&5
13152 eval "$as_ac_var=no"
13153 fi
13154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13155 fi
13156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13158 if test `eval echo '${'$as_ac_var'}'` = yes; then
13159   cat >>confdefs.h <<_ACEOF
13160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13161 _ACEOF
13162
13163 fi
13164 done
13165
13166
13167
13168
13169
13170
13171
13172
13173 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
13174 do
13175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13176 echo "$as_me:$LINENO: checking for $ac_func" >&5
13177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13178 if eval "test \"\${$as_ac_var+set}\" = set"; then
13179   echo $ECHO_N "(cached) $ECHO_C" >&6
13180 else
13181   cat >conftest.$ac_ext <<_ACEOF
13182 #line $LINENO "configure"
13183 #include "confdefs.h"
13184 /* System header to define __stub macros and hopefully few prototypes,
13185     which can conflict with char $ac_func (); below.  */
13186 #include <assert.h>
13187 /* Override any gcc2 internal prototype to avoid an error.  */
13188 #ifdef __cplusplus
13189 extern "C"
13190 #endif
13191 /* We use char because int might match the return type of a gcc2
13192    builtin and then its argument prototype would still apply.  */
13193 char $ac_func ();
13194 char (*f) ();
13195
13196 #ifdef F77_DUMMY_MAIN
13197 #  ifdef __cplusplus
13198      extern "C"
13199 #  endif
13200    int F77_DUMMY_MAIN() { return 1; }
13201 #endif
13202 int
13203 main ()
13204 {
13205 /* The GNU C library defines this for functions which it implements
13206     to always fail with ENOSYS.  Some functions are actually named
13207     something starting with __ and the normal name is an alias.  */
13208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13209 choke me
13210 #else
13211 f = $ac_func;
13212 #endif
13213
13214   ;
13215   return 0;
13216 }
13217 _ACEOF
13218 rm -f conftest.$ac_objext conftest$ac_exeext
13219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13220   (eval $ac_link) 2>&5
13221   ac_status=$?
13222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223   (exit $ac_status); } &&
13224          { ac_try='test -s conftest$ac_exeext'
13225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13226   (eval $ac_try) 2>&5
13227   ac_status=$?
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); }; }; then
13230   eval "$as_ac_var=yes"
13231 else
13232   echo "$as_me: failed program was:" >&5
13233 cat conftest.$ac_ext >&5
13234 eval "$as_ac_var=no"
13235 fi
13236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13237 fi
13238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13240 if test `eval echo '${'$as_ac_var'}'` = yes; then
13241   cat >>confdefs.h <<_ACEOF
13242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13243 _ACEOF
13244
13245 fi
13246 done
13247
13248
13249
13250
13251
13252
13253
13254 for ac_func in pread _pread __pread pread64 _pread64 __pread64
13255 do
13256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13257 echo "$as_me:$LINENO: checking for $ac_func" >&5
13258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13259 if eval "test \"\${$as_ac_var+set}\" = set"; then
13260   echo $ECHO_N "(cached) $ECHO_C" >&6
13261 else
13262   cat >conftest.$ac_ext <<_ACEOF
13263 #line $LINENO "configure"
13264 #include "confdefs.h"
13265 /* System header to define __stub macros and hopefully few prototypes,
13266     which can conflict with char $ac_func (); below.  */
13267 #include <assert.h>
13268 /* Override any gcc2 internal prototype to avoid an error.  */
13269 #ifdef __cplusplus
13270 extern "C"
13271 #endif
13272 /* We use char because int might match the return type of a gcc2
13273    builtin and then its argument prototype would still apply.  */
13274 char $ac_func ();
13275 char (*f) ();
13276
13277 #ifdef F77_DUMMY_MAIN
13278 #  ifdef __cplusplus
13279      extern "C"
13280 #  endif
13281    int F77_DUMMY_MAIN() { return 1; }
13282 #endif
13283 int
13284 main ()
13285 {
13286 /* The GNU C library defines this for functions which it implements
13287     to always fail with ENOSYS.  Some functions are actually named
13288     something starting with __ and the normal name is an alias.  */
13289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13290 choke me
13291 #else
13292 f = $ac_func;
13293 #endif
13294
13295   ;
13296   return 0;
13297 }
13298 _ACEOF
13299 rm -f conftest.$ac_objext conftest$ac_exeext
13300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13301   (eval $ac_link) 2>&5
13302   ac_status=$?
13303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304   (exit $ac_status); } &&
13305          { ac_try='test -s conftest$ac_exeext'
13306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307   (eval $ac_try) 2>&5
13308   ac_status=$?
13309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310   (exit $ac_status); }; }; then
13311   eval "$as_ac_var=yes"
13312 else
13313   echo "$as_me: failed program was:" >&5
13314 cat conftest.$ac_ext >&5
13315 eval "$as_ac_var=no"
13316 fi
13317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13318 fi
13319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13321 if test `eval echo '${'$as_ac_var'}'` = yes; then
13322   cat >>confdefs.h <<_ACEOF
13323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13324 _ACEOF
13325
13326 fi
13327 done
13328
13329
13330
13331
13332
13333
13334
13335 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
13336 do
13337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13338 echo "$as_me:$LINENO: checking for $ac_func" >&5
13339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13340 if eval "test \"\${$as_ac_var+set}\" = set"; then
13341   echo $ECHO_N "(cached) $ECHO_C" >&6
13342 else
13343   cat >conftest.$ac_ext <<_ACEOF
13344 #line $LINENO "configure"
13345 #include "confdefs.h"
13346 /* System header to define __stub macros and hopefully few prototypes,
13347     which can conflict with char $ac_func (); below.  */
13348 #include <assert.h>
13349 /* Override any gcc2 internal prototype to avoid an error.  */
13350 #ifdef __cplusplus
13351 extern "C"
13352 #endif
13353 /* We use char because int might match the return type of a gcc2
13354    builtin and then its argument prototype would still apply.  */
13355 char $ac_func ();
13356 char (*f) ();
13357
13358 #ifdef F77_DUMMY_MAIN
13359 #  ifdef __cplusplus
13360      extern "C"
13361 #  endif
13362    int F77_DUMMY_MAIN() { return 1; }
13363 #endif
13364 int
13365 main ()
13366 {
13367 /* The GNU C library defines this for functions which it implements
13368     to always fail with ENOSYS.  Some functions are actually named
13369     something starting with __ and the normal name is an alias.  */
13370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13371 choke me
13372 #else
13373 f = $ac_func;
13374 #endif
13375
13376   ;
13377   return 0;
13378 }
13379 _ACEOF
13380 rm -f conftest.$ac_objext conftest$ac_exeext
13381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13382   (eval $ac_link) 2>&5
13383   ac_status=$?
13384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385   (exit $ac_status); } &&
13386          { ac_try='test -s conftest$ac_exeext'
13387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388   (eval $ac_try) 2>&5
13389   ac_status=$?
13390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391   (exit $ac_status); }; }; then
13392   eval "$as_ac_var=yes"
13393 else
13394   echo "$as_me: failed program was:" >&5
13395 cat conftest.$ac_ext >&5
13396 eval "$as_ac_var=no"
13397 fi
13398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13399 fi
13400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13402 if test `eval echo '${'$as_ac_var'}'` = yes; then
13403   cat >>confdefs.h <<_ACEOF
13404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13405 _ACEOF
13406
13407 fi
13408 done
13409
13410
13411
13412
13413
13414 for ac_func in open64 _open64 __open64 creat64
13415 do
13416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13417 echo "$as_me:$LINENO: checking for $ac_func" >&5
13418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13419 if eval "test \"\${$as_ac_var+set}\" = set"; then
13420   echo $ECHO_N "(cached) $ECHO_C" >&6
13421 else
13422   cat >conftest.$ac_ext <<_ACEOF
13423 #line $LINENO "configure"
13424 #include "confdefs.h"
13425 /* System header to define __stub macros and hopefully few prototypes,
13426     which can conflict with char $ac_func (); below.  */
13427 #include <assert.h>
13428 /* Override any gcc2 internal prototype to avoid an error.  */
13429 #ifdef __cplusplus
13430 extern "C"
13431 #endif
13432 /* We use char because int might match the return type of a gcc2
13433    builtin and then its argument prototype would still apply.  */
13434 char $ac_func ();
13435 char (*f) ();
13436
13437 #ifdef F77_DUMMY_MAIN
13438 #  ifdef __cplusplus
13439      extern "C"
13440 #  endif
13441    int F77_DUMMY_MAIN() { return 1; }
13442 #endif
13443 int
13444 main ()
13445 {
13446 /* The GNU C library defines this for functions which it implements
13447     to always fail with ENOSYS.  Some functions are actually named
13448     something starting with __ and the normal name is an alias.  */
13449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13450 choke me
13451 #else
13452 f = $ac_func;
13453 #endif
13454
13455   ;
13456   return 0;
13457 }
13458 _ACEOF
13459 rm -f conftest.$ac_objext conftest$ac_exeext
13460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13461   (eval $ac_link) 2>&5
13462   ac_status=$?
13463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464   (exit $ac_status); } &&
13465          { ac_try='test -s conftest$ac_exeext'
13466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467   (eval $ac_try) 2>&5
13468   ac_status=$?
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); }; }; then
13471   eval "$as_ac_var=yes"
13472 else
13473   echo "$as_me: failed program was:" >&5
13474 cat conftest.$ac_ext >&5
13475 eval "$as_ac_var=no"
13476 fi
13477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13478 fi
13479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13480 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13481 if test `eval echo '${'$as_ac_var'}'` = yes; then
13482   cat >>confdefs.h <<_ACEOF
13483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13484 _ACEOF
13485
13486 fi
13487 done
13488
13489
13490 #
13491 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
13492 #
13493
13494 if test x$ac_cv_func_stat64 = xno ; then
13495   echo "$as_me:$LINENO: checking for stat64 in <sys/stat.h>" >&5
13496 echo $ECHO_N "checking for stat64 in <sys/stat.h>... $ECHO_C" >&6
13497   cat >conftest.$ac_ext <<_ACEOF
13498 #line $LINENO "configure"
13499 #include "confdefs.h"
13500
13501 #if defined(HAVE_UNISTD_H)
13502 #include <unistd.h>
13503 #endif
13504 #include <sys/stat.h>
13505
13506 #ifdef F77_DUMMY_MAIN
13507 #  ifdef __cplusplus
13508      extern "C"
13509 #  endif
13510    int F77_DUMMY_MAIN() { return 1; }
13511 #endif
13512 int
13513 main ()
13514 {
13515 struct stat64 st64; exit(stat64(".",&st64));
13516   ;
13517   return 0;
13518 }
13519 _ACEOF
13520 rm -f conftest.$ac_objext conftest$ac_exeext
13521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13522   (eval $ac_link) 2>&5
13523   ac_status=$?
13524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525   (exit $ac_status); } &&
13526          { ac_try='test -s conftest$ac_exeext'
13527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528   (eval $ac_try) 2>&5
13529   ac_status=$?
13530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531   (exit $ac_status); }; }; then
13532   ac_cv_func_stat64=yes
13533 else
13534   echo "$as_me: failed program was:" >&5
13535 cat conftest.$ac_ext >&5
13536 fi
13537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13538   echo "$as_me:$LINENO: result: $ac_cv_func_stat64" >&5
13539 echo "${ECHO_T}$ac_cv_func_stat64" >&6
13540   if test x$ac_cv_func_stat64 = xyes ; then
13541
13542 cat >>confdefs.h <<\_ACEOF
13543 #define HAVE_STAT64 1
13544 _ACEOF
13545
13546   fi
13547 fi
13548
13549 if test x$ac_cv_func_lstat64 = xno ; then
13550   echo "$as_me:$LINENO: checking for lstat64 in <sys/stat.h>" >&5
13551 echo $ECHO_N "checking for lstat64 in <sys/stat.h>... $ECHO_C" >&6
13552   cat >conftest.$ac_ext <<_ACEOF
13553 #line $LINENO "configure"
13554 #include "confdefs.h"
13555
13556 #if defined(HAVE_UNISTD_H)
13557 #include <unistd.h>
13558 #endif
13559 #include <sys/stat.h>
13560
13561 #ifdef F77_DUMMY_MAIN
13562 #  ifdef __cplusplus
13563      extern "C"
13564 #  endif
13565    int F77_DUMMY_MAIN() { return 1; }
13566 #endif
13567 int
13568 main ()
13569 {
13570 struct stat64 st64; exit(lstat64(".",&st64));
13571   ;
13572   return 0;
13573 }
13574 _ACEOF
13575 rm -f conftest.$ac_objext conftest$ac_exeext
13576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13577   (eval $ac_link) 2>&5
13578   ac_status=$?
13579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); } &&
13581          { ac_try='test -s conftest$ac_exeext'
13582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583   (eval $ac_try) 2>&5
13584   ac_status=$?
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); }; }; then
13587   ac_cv_func_lstat64=yes
13588 else
13589   echo "$as_me: failed program was:" >&5
13590 cat conftest.$ac_ext >&5
13591 fi
13592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13593   echo "$as_me:$LINENO: result: $ac_cv_func_lstat64" >&5
13594 echo "${ECHO_T}$ac_cv_func_lstat64" >&6
13595   if test x$ac_cv_func_lstat64 = xyes ; then
13596     cat >>confdefs.h <<\_ACEOF
13597 #define HAVE_LSTAT64 Whether lstat64() is available
13598 _ACEOF
13599
13600   fi
13601 fi
13602
13603 if test x$ac_cv_func_fstat64 = xno ; then
13604   echo "$as_me:$LINENO: checking for fstat64 in <sys/stat.h>" >&5
13605 echo $ECHO_N "checking for fstat64 in <sys/stat.h>... $ECHO_C" >&6
13606   cat >conftest.$ac_ext <<_ACEOF
13607 #line $LINENO "configure"
13608 #include "confdefs.h"
13609
13610 #if defined(HAVE_UNISTD_H)
13611 #include <unistd.h>
13612 #endif
13613 #include <sys/stat.h>
13614
13615 #ifdef F77_DUMMY_MAIN
13616 #  ifdef __cplusplus
13617      extern "C"
13618 #  endif
13619    int F77_DUMMY_MAIN() { return 1; }
13620 #endif
13621 int
13622 main ()
13623 {
13624 struct stat64 st64; exit(fstat64(0,&st64));
13625   ;
13626   return 0;
13627 }
13628 _ACEOF
13629 rm -f conftest.$ac_objext conftest$ac_exeext
13630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13631   (eval $ac_link) 2>&5
13632   ac_status=$?
13633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634   (exit $ac_status); } &&
13635          { ac_try='test -s conftest$ac_exeext'
13636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637   (eval $ac_try) 2>&5
13638   ac_status=$?
13639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640   (exit $ac_status); }; }; then
13641   ac_cv_func_fstat64=yes
13642 else
13643   echo "$as_me: failed program was:" >&5
13644 cat conftest.$ac_ext >&5
13645 fi
13646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13647   echo "$as_me:$LINENO: result: $ac_cv_func_fstat64" >&5
13648 echo "${ECHO_T}$ac_cv_func_fstat64" >&6
13649   if test x$ac_cv_func_fstat64 = xyes ; then
13650
13651 cat >>confdefs.h <<\_ACEOF
13652 #define HAVE_FSTAT64 1
13653 _ACEOF
13654
13655   fi
13656 fi
13657
13658 #####################################
13659 # we might need the resolv library on some systems
13660
13661 echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
13662 echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
13663 if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
13664   echo $ECHO_N "(cached) $ECHO_C" >&6
13665 else
13666   ac_check_lib_save_LIBS=$LIBS
13667 LIBS="-lresolv  $LIBS"
13668 cat >conftest.$ac_ext <<_ACEOF
13669 #line $LINENO "configure"
13670 #include "confdefs.h"
13671
13672 /* Override any gcc2 internal prototype to avoid an error.  */
13673 #ifdef __cplusplus
13674 extern "C"
13675 #endif
13676 /* We use char because int might match the return type of a gcc2
13677    builtin and then its argument prototype would still apply.  */
13678 char dn_expand ();
13679 #ifdef F77_DUMMY_MAIN
13680 #  ifdef __cplusplus
13681      extern "C"
13682 #  endif
13683    int F77_DUMMY_MAIN() { return 1; }
13684 #endif
13685 int
13686 main ()
13687 {
13688 dn_expand ();
13689   ;
13690   return 0;
13691 }
13692 _ACEOF
13693 rm -f conftest.$ac_objext conftest$ac_exeext
13694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13695   (eval $ac_link) 2>&5
13696   ac_status=$?
13697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698   (exit $ac_status); } &&
13699          { ac_try='test -s conftest$ac_exeext'
13700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701   (eval $ac_try) 2>&5
13702   ac_status=$?
13703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704   (exit $ac_status); }; }; then
13705   ac_cv_lib_resolv_dn_expand=yes
13706 else
13707   echo "$as_me: failed program was:" >&5
13708 cat conftest.$ac_ext >&5
13709 ac_cv_lib_resolv_dn_expand=no
13710 fi
13711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13712 LIBS=$ac_check_lib_save_LIBS
13713 fi
13714 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
13715 echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
13716 if test $ac_cv_lib_resolv_dn_expand = yes; then
13717   cat >>confdefs.h <<_ACEOF
13718 #define HAVE_LIBRESOLV 1
13719 _ACEOF
13720
13721   LIBS="-lresolv $LIBS"
13722
13723 fi
13724
13725
13726 #
13727 # Check for the functions putprpwnam, set_auth_parameters,
13728 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
13729 # Needed for OSF1 and HPUX.
13730 #
13731
13732 case "$LIBS" in
13733   *-lsecurity*)
13734 for ac_func in putprpwnam
13735 do
13736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13737 echo "$as_me:$LINENO: checking for $ac_func" >&5
13738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13739 if eval "test \"\${$as_ac_var+set}\" = set"; then
13740   echo $ECHO_N "(cached) $ECHO_C" >&6
13741 else
13742   cat >conftest.$ac_ext <<_ACEOF
13743 #line $LINENO "configure"
13744 #include "confdefs.h"
13745 /* System header to define __stub macros and hopefully few prototypes,
13746     which can conflict with char $ac_func (); below.  */
13747 #include <assert.h>
13748 /* Override any gcc2 internal prototype to avoid an error.  */
13749 #ifdef __cplusplus
13750 extern "C"
13751 #endif
13752 /* We use char because int might match the return type of a gcc2
13753    builtin and then its argument prototype would still apply.  */
13754 char $ac_func ();
13755 char (*f) ();
13756
13757 #ifdef F77_DUMMY_MAIN
13758 #  ifdef __cplusplus
13759      extern "C"
13760 #  endif
13761    int F77_DUMMY_MAIN() { return 1; }
13762 #endif
13763 int
13764 main ()
13765 {
13766 /* The GNU C library defines this for functions which it implements
13767     to always fail with ENOSYS.  Some functions are actually named
13768     something starting with __ and the normal name is an alias.  */
13769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13770 choke me
13771 #else
13772 f = $ac_func;
13773 #endif
13774
13775   ;
13776   return 0;
13777 }
13778 _ACEOF
13779 rm -f conftest.$ac_objext conftest$ac_exeext
13780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13781   (eval $ac_link) 2>&5
13782   ac_status=$?
13783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784   (exit $ac_status); } &&
13785          { ac_try='test -s conftest$ac_exeext'
13786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13787   (eval $ac_try) 2>&5
13788   ac_status=$?
13789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790   (exit $ac_status); }; }; then
13791   eval "$as_ac_var=yes"
13792 else
13793   echo "$as_me: failed program was:" >&5
13794 cat conftest.$ac_ext >&5
13795 eval "$as_ac_var=no"
13796 fi
13797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13798 fi
13799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13801 if test `eval echo '${'$as_ac_var'}'` = yes; then
13802   cat >>confdefs.h <<_ACEOF
13803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13804 _ACEOF
13805
13806 fi
13807 done
13808  ;;
13809   *)
13810 echo "$as_me:$LINENO: checking for putprpwnam in -lsecurity" >&5
13811 echo $ECHO_N "checking for putprpwnam in -lsecurity... $ECHO_C" >&6
13812 if test "${ac_cv_lib_security_putprpwnam+set}" = set; then
13813   echo $ECHO_N "(cached) $ECHO_C" >&6
13814 else
13815   ac_check_lib_save_LIBS=$LIBS
13816 LIBS="-lsecurity  $LIBS"
13817 cat >conftest.$ac_ext <<_ACEOF
13818 #line $LINENO "configure"
13819 #include "confdefs.h"
13820
13821 /* Override any gcc2 internal prototype to avoid an error.  */
13822 #ifdef __cplusplus
13823 extern "C"
13824 #endif
13825 /* We use char because int might match the return type of a gcc2
13826    builtin and then its argument prototype would still apply.  */
13827 char putprpwnam ();
13828 #ifdef F77_DUMMY_MAIN
13829 #  ifdef __cplusplus
13830      extern "C"
13831 #  endif
13832    int F77_DUMMY_MAIN() { return 1; }
13833 #endif
13834 int
13835 main ()
13836 {
13837 putprpwnam ();
13838   ;
13839   return 0;
13840 }
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   ac_cv_lib_security_putprpwnam=yes
13855 else
13856   echo "$as_me: failed program was:" >&5
13857 cat conftest.$ac_ext >&5
13858 ac_cv_lib_security_putprpwnam=no
13859 fi
13860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13861 LIBS=$ac_check_lib_save_LIBS
13862 fi
13863 echo "$as_me:$LINENO: result: $ac_cv_lib_security_putprpwnam" >&5
13864 echo "${ECHO_T}$ac_cv_lib_security_putprpwnam" >&6
13865 if test $ac_cv_lib_security_putprpwnam = yes; then
13866   cat >>confdefs.h <<_ACEOF
13867 #define HAVE_LIBSECURITY 1
13868 _ACEOF
13869
13870   LIBS="-lsecurity $LIBS"
13871
13872 fi
13873
13874
13875 for ac_func in putprpwnam
13876 do
13877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13878 echo "$as_me:$LINENO: checking for $ac_func" >&5
13879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13880 if eval "test \"\${$as_ac_var+set}\" = set"; then
13881   echo $ECHO_N "(cached) $ECHO_C" >&6
13882 else
13883   cat >conftest.$ac_ext <<_ACEOF
13884 #line $LINENO "configure"
13885 #include "confdefs.h"
13886 /* System header to define __stub macros and hopefully few prototypes,
13887     which can conflict with char $ac_func (); below.  */
13888 #include <assert.h>
13889 /* Override any gcc2 internal prototype to avoid an error.  */
13890 #ifdef __cplusplus
13891 extern "C"
13892 #endif
13893 /* We use char because int might match the return type of a gcc2
13894    builtin and then its argument prototype would still apply.  */
13895 char $ac_func ();
13896 char (*f) ();
13897
13898 #ifdef F77_DUMMY_MAIN
13899 #  ifdef __cplusplus
13900      extern "C"
13901 #  endif
13902    int F77_DUMMY_MAIN() { return 1; }
13903 #endif
13904 int
13905 main ()
13906 {
13907 /* The GNU C library defines this for functions which it implements
13908     to always fail with ENOSYS.  Some functions are actually named
13909     something starting with __ and the normal name is an alias.  */
13910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13911 choke me
13912 #else
13913 f = $ac_func;
13914 #endif
13915
13916   ;
13917   return 0;
13918 }
13919 _ACEOF
13920 rm -f conftest.$ac_objext conftest$ac_exeext
13921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13922   (eval $ac_link) 2>&5
13923   ac_status=$?
13924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925   (exit $ac_status); } &&
13926          { ac_try='test -s conftest$ac_exeext'
13927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928   (eval $ac_try) 2>&5
13929   ac_status=$?
13930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931   (exit $ac_status); }; }; then
13932   eval "$as_ac_var=yes"
13933 else
13934   echo "$as_me: failed program was:" >&5
13935 cat conftest.$ac_ext >&5
13936 eval "$as_ac_var=no"
13937 fi
13938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13939 fi
13940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13942 if test `eval echo '${'$as_ac_var'}'` = yes; then
13943   cat >>confdefs.h <<_ACEOF
13944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13945 _ACEOF
13946
13947 fi
13948 done
13949
13950   ;;
13951   esac
13952
13953 case "$LIBS" in
13954   *-lsec*)
13955 for ac_func in putprpwnam
13956 do
13957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13958 echo "$as_me:$LINENO: checking for $ac_func" >&5
13959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13960 if eval "test \"\${$as_ac_var+set}\" = set"; then
13961   echo $ECHO_N "(cached) $ECHO_C" >&6
13962 else
13963   cat >conftest.$ac_ext <<_ACEOF
13964 #line $LINENO "configure"
13965 #include "confdefs.h"
13966 /* System header to define __stub macros and hopefully few prototypes,
13967     which can conflict with char $ac_func (); below.  */
13968 #include <assert.h>
13969 /* Override any gcc2 internal prototype to avoid an error.  */
13970 #ifdef __cplusplus
13971 extern "C"
13972 #endif
13973 /* We use char because int might match the return type of a gcc2
13974    builtin and then its argument prototype would still apply.  */
13975 char $ac_func ();
13976 char (*f) ();
13977
13978 #ifdef F77_DUMMY_MAIN
13979 #  ifdef __cplusplus
13980      extern "C"
13981 #  endif
13982    int F77_DUMMY_MAIN() { return 1; }
13983 #endif
13984 int
13985 main ()
13986 {
13987 /* The GNU C library defines this for functions which it implements
13988     to always fail with ENOSYS.  Some functions are actually named
13989     something starting with __ and the normal name is an alias.  */
13990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13991 choke me
13992 #else
13993 f = $ac_func;
13994 #endif
13995
13996   ;
13997   return 0;
13998 }
13999 _ACEOF
14000 rm -f conftest.$ac_objext conftest$ac_exeext
14001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14002   (eval $ac_link) 2>&5
14003   ac_status=$?
14004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005   (exit $ac_status); } &&
14006          { ac_try='test -s conftest$ac_exeext'
14007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008   (eval $ac_try) 2>&5
14009   ac_status=$?
14010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011   (exit $ac_status); }; }; then
14012   eval "$as_ac_var=yes"
14013 else
14014   echo "$as_me: failed program was:" >&5
14015 cat conftest.$ac_ext >&5
14016 eval "$as_ac_var=no"
14017 fi
14018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14019 fi
14020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14022 if test `eval echo '${'$as_ac_var'}'` = yes; then
14023   cat >>confdefs.h <<_ACEOF
14024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14025 _ACEOF
14026
14027 fi
14028 done
14029  ;;
14030   *)
14031 echo "$as_me:$LINENO: checking for putprpwnam in -lsec" >&5
14032 echo $ECHO_N "checking for putprpwnam in -lsec... $ECHO_C" >&6
14033 if test "${ac_cv_lib_sec_putprpwnam+set}" = set; then
14034   echo $ECHO_N "(cached) $ECHO_C" >&6
14035 else
14036   ac_check_lib_save_LIBS=$LIBS
14037 LIBS="-lsec  $LIBS"
14038 cat >conftest.$ac_ext <<_ACEOF
14039 #line $LINENO "configure"
14040 #include "confdefs.h"
14041
14042 /* Override any gcc2 internal prototype to avoid an error.  */
14043 #ifdef __cplusplus
14044 extern "C"
14045 #endif
14046 /* We use char because int might match the return type of a gcc2
14047    builtin and then its argument prototype would still apply.  */
14048 char putprpwnam ();
14049 #ifdef F77_DUMMY_MAIN
14050 #  ifdef __cplusplus
14051      extern "C"
14052 #  endif
14053    int F77_DUMMY_MAIN() { return 1; }
14054 #endif
14055 int
14056 main ()
14057 {
14058 putprpwnam ();
14059   ;
14060   return 0;
14061 }
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   ac_cv_lib_sec_putprpwnam=yes
14076 else
14077   echo "$as_me: failed program was:" >&5
14078 cat conftest.$ac_ext >&5
14079 ac_cv_lib_sec_putprpwnam=no
14080 fi
14081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14082 LIBS=$ac_check_lib_save_LIBS
14083 fi
14084 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_putprpwnam" >&5
14085 echo "${ECHO_T}$ac_cv_lib_sec_putprpwnam" >&6
14086 if test $ac_cv_lib_sec_putprpwnam = yes; then
14087   cat >>confdefs.h <<_ACEOF
14088 #define HAVE_LIBSEC 1
14089 _ACEOF
14090
14091   LIBS="-lsec $LIBS"
14092
14093 fi
14094
14095
14096 for ac_func in putprpwnam
14097 do
14098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14099 echo "$as_me:$LINENO: checking for $ac_func" >&5
14100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14101 if eval "test \"\${$as_ac_var+set}\" = set"; then
14102   echo $ECHO_N "(cached) $ECHO_C" >&6
14103 else
14104   cat >conftest.$ac_ext <<_ACEOF
14105 #line $LINENO "configure"
14106 #include "confdefs.h"
14107 /* System header to define __stub macros and hopefully few prototypes,
14108     which can conflict with char $ac_func (); below.  */
14109 #include <assert.h>
14110 /* Override any gcc2 internal prototype to avoid an error.  */
14111 #ifdef __cplusplus
14112 extern "C"
14113 #endif
14114 /* We use char because int might match the return type of a gcc2
14115    builtin and then its argument prototype would still apply.  */
14116 char $ac_func ();
14117 char (*f) ();
14118
14119 #ifdef F77_DUMMY_MAIN
14120 #  ifdef __cplusplus
14121      extern "C"
14122 #  endif
14123    int F77_DUMMY_MAIN() { return 1; }
14124 #endif
14125 int
14126 main ()
14127 {
14128 /* The GNU C library defines this for functions which it implements
14129     to always fail with ENOSYS.  Some functions are actually named
14130     something starting with __ and the normal name is an alias.  */
14131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14132 choke me
14133 #else
14134 f = $ac_func;
14135 #endif
14136
14137   ;
14138   return 0;
14139 }
14140 _ACEOF
14141 rm -f conftest.$ac_objext conftest$ac_exeext
14142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14143   (eval $ac_link) 2>&5
14144   ac_status=$?
14145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146   (exit $ac_status); } &&
14147          { ac_try='test -s conftest$ac_exeext'
14148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149   (eval $ac_try) 2>&5
14150   ac_status=$?
14151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152   (exit $ac_status); }; }; then
14153   eval "$as_ac_var=yes"
14154 else
14155   echo "$as_me: failed program was:" >&5
14156 cat conftest.$ac_ext >&5
14157 eval "$as_ac_var=no"
14158 fi
14159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14160 fi
14161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14163 if test `eval echo '${'$as_ac_var'}'` = yes; then
14164   cat >>confdefs.h <<_ACEOF
14165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14166 _ACEOF
14167
14168 fi
14169 done
14170
14171   ;;
14172   esac
14173
14174
14175 case "$LIBS" in
14176   *-lsecurity*)
14177 for ac_func in set_auth_parameters
14178 do
14179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14180 echo "$as_me:$LINENO: checking for $ac_func" >&5
14181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14182 if eval "test \"\${$as_ac_var+set}\" = set"; then
14183   echo $ECHO_N "(cached) $ECHO_C" >&6
14184 else
14185   cat >conftest.$ac_ext <<_ACEOF
14186 #line $LINENO "configure"
14187 #include "confdefs.h"
14188 /* System header to define __stub macros and hopefully few prototypes,
14189     which can conflict with char $ac_func (); below.  */
14190 #include <assert.h>
14191 /* Override any gcc2 internal prototype to avoid an error.  */
14192 #ifdef __cplusplus
14193 extern "C"
14194 #endif
14195 /* We use char because int might match the return type of a gcc2
14196    builtin and then its argument prototype would still apply.  */
14197 char $ac_func ();
14198 char (*f) ();
14199
14200 #ifdef F77_DUMMY_MAIN
14201 #  ifdef __cplusplus
14202      extern "C"
14203 #  endif
14204    int F77_DUMMY_MAIN() { return 1; }
14205 #endif
14206 int
14207 main ()
14208 {
14209 /* The GNU C library defines this for functions which it implements
14210     to always fail with ENOSYS.  Some functions are actually named
14211     something starting with __ and the normal name is an alias.  */
14212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14213 choke me
14214 #else
14215 f = $ac_func;
14216 #endif
14217
14218   ;
14219   return 0;
14220 }
14221 _ACEOF
14222 rm -f conftest.$ac_objext conftest$ac_exeext
14223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14224   (eval $ac_link) 2>&5
14225   ac_status=$?
14226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227   (exit $ac_status); } &&
14228          { ac_try='test -s conftest$ac_exeext'
14229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230   (eval $ac_try) 2>&5
14231   ac_status=$?
14232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233   (exit $ac_status); }; }; then
14234   eval "$as_ac_var=yes"
14235 else
14236   echo "$as_me: failed program was:" >&5
14237 cat conftest.$ac_ext >&5
14238 eval "$as_ac_var=no"
14239 fi
14240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14241 fi
14242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14244 if test `eval echo '${'$as_ac_var'}'` = yes; then
14245   cat >>confdefs.h <<_ACEOF
14246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14247 _ACEOF
14248
14249 fi
14250 done
14251  ;;
14252   *)
14253 echo "$as_me:$LINENO: checking for set_auth_parameters in -lsecurity" >&5
14254 echo $ECHO_N "checking for set_auth_parameters in -lsecurity... $ECHO_C" >&6
14255 if test "${ac_cv_lib_security_set_auth_parameters+set}" = set; then
14256   echo $ECHO_N "(cached) $ECHO_C" >&6
14257 else
14258   ac_check_lib_save_LIBS=$LIBS
14259 LIBS="-lsecurity  $LIBS"
14260 cat >conftest.$ac_ext <<_ACEOF
14261 #line $LINENO "configure"
14262 #include "confdefs.h"
14263
14264 /* Override any gcc2 internal prototype to avoid an error.  */
14265 #ifdef __cplusplus
14266 extern "C"
14267 #endif
14268 /* We use char because int might match the return type of a gcc2
14269    builtin and then its argument prototype would still apply.  */
14270 char set_auth_parameters ();
14271 #ifdef F77_DUMMY_MAIN
14272 #  ifdef __cplusplus
14273      extern "C"
14274 #  endif
14275    int F77_DUMMY_MAIN() { return 1; }
14276 #endif
14277 int
14278 main ()
14279 {
14280 set_auth_parameters ();
14281   ;
14282   return 0;
14283 }
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   ac_cv_lib_security_set_auth_parameters=yes
14298 else
14299   echo "$as_me: failed program was:" >&5
14300 cat conftest.$ac_ext >&5
14301 ac_cv_lib_security_set_auth_parameters=no
14302 fi
14303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14304 LIBS=$ac_check_lib_save_LIBS
14305 fi
14306 echo "$as_me:$LINENO: result: $ac_cv_lib_security_set_auth_parameters" >&5
14307 echo "${ECHO_T}$ac_cv_lib_security_set_auth_parameters" >&6
14308 if test $ac_cv_lib_security_set_auth_parameters = yes; then
14309   cat >>confdefs.h <<_ACEOF
14310 #define HAVE_LIBSECURITY 1
14311 _ACEOF
14312
14313   LIBS="-lsecurity $LIBS"
14314
14315 fi
14316
14317
14318 for ac_func in set_auth_parameters
14319 do
14320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14321 echo "$as_me:$LINENO: checking for $ac_func" >&5
14322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14323 if eval "test \"\${$as_ac_var+set}\" = set"; then
14324   echo $ECHO_N "(cached) $ECHO_C" >&6
14325 else
14326   cat >conftest.$ac_ext <<_ACEOF
14327 #line $LINENO "configure"
14328 #include "confdefs.h"
14329 /* System header to define __stub macros and hopefully few prototypes,
14330     which can conflict with char $ac_func (); below.  */
14331 #include <assert.h>
14332 /* Override any gcc2 internal prototype to avoid an error.  */
14333 #ifdef __cplusplus
14334 extern "C"
14335 #endif
14336 /* We use char because int might match the return type of a gcc2
14337    builtin and then its argument prototype would still apply.  */
14338 char $ac_func ();
14339 char (*f) ();
14340
14341 #ifdef F77_DUMMY_MAIN
14342 #  ifdef __cplusplus
14343      extern "C"
14344 #  endif
14345    int F77_DUMMY_MAIN() { return 1; }
14346 #endif
14347 int
14348 main ()
14349 {
14350 /* The GNU C library defines this for functions which it implements
14351     to always fail with ENOSYS.  Some functions are actually named
14352     something starting with __ and the normal name is an alias.  */
14353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14354 choke me
14355 #else
14356 f = $ac_func;
14357 #endif
14358
14359   ;
14360   return 0;
14361 }
14362 _ACEOF
14363 rm -f conftest.$ac_objext conftest$ac_exeext
14364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14365   (eval $ac_link) 2>&5
14366   ac_status=$?
14367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368   (exit $ac_status); } &&
14369          { ac_try='test -s conftest$ac_exeext'
14370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14371   (eval $ac_try) 2>&5
14372   ac_status=$?
14373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374   (exit $ac_status); }; }; then
14375   eval "$as_ac_var=yes"
14376 else
14377   echo "$as_me: failed program was:" >&5
14378 cat conftest.$ac_ext >&5
14379 eval "$as_ac_var=no"
14380 fi
14381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14382 fi
14383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14385 if test `eval echo '${'$as_ac_var'}'` = yes; then
14386   cat >>confdefs.h <<_ACEOF
14387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14388 _ACEOF
14389
14390 fi
14391 done
14392
14393   ;;
14394   esac
14395
14396 case "$LIBS" in
14397   *-lsec*)
14398 for ac_func in set_auth_parameters
14399 do
14400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14401 echo "$as_me:$LINENO: checking for $ac_func" >&5
14402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14403 if eval "test \"\${$as_ac_var+set}\" = set"; then
14404   echo $ECHO_N "(cached) $ECHO_C" >&6
14405 else
14406   cat >conftest.$ac_ext <<_ACEOF
14407 #line $LINENO "configure"
14408 #include "confdefs.h"
14409 /* System header to define __stub macros and hopefully few prototypes,
14410     which can conflict with char $ac_func (); below.  */
14411 #include <assert.h>
14412 /* Override any gcc2 internal prototype to avoid an error.  */
14413 #ifdef __cplusplus
14414 extern "C"
14415 #endif
14416 /* We use char because int might match the return type of a gcc2
14417    builtin and then its argument prototype would still apply.  */
14418 char $ac_func ();
14419 char (*f) ();
14420
14421 #ifdef F77_DUMMY_MAIN
14422 #  ifdef __cplusplus
14423      extern "C"
14424 #  endif
14425    int F77_DUMMY_MAIN() { return 1; }
14426 #endif
14427 int
14428 main ()
14429 {
14430 /* The GNU C library defines this for functions which it implements
14431     to always fail with ENOSYS.  Some functions are actually named
14432     something starting with __ and the normal name is an alias.  */
14433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14434 choke me
14435 #else
14436 f = $ac_func;
14437 #endif
14438
14439   ;
14440   return 0;
14441 }
14442 _ACEOF
14443 rm -f conftest.$ac_objext conftest$ac_exeext
14444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14445   (eval $ac_link) 2>&5
14446   ac_status=$?
14447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); } &&
14449          { ac_try='test -s conftest$ac_exeext'
14450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14451   (eval $ac_try) 2>&5
14452   ac_status=$?
14453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454   (exit $ac_status); }; }; then
14455   eval "$as_ac_var=yes"
14456 else
14457   echo "$as_me: failed program was:" >&5
14458 cat conftest.$ac_ext >&5
14459 eval "$as_ac_var=no"
14460 fi
14461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14462 fi
14463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14465 if test `eval echo '${'$as_ac_var'}'` = yes; then
14466   cat >>confdefs.h <<_ACEOF
14467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14468 _ACEOF
14469
14470 fi
14471 done
14472  ;;
14473   *)
14474 echo "$as_me:$LINENO: checking for set_auth_parameters in -lsec" >&5
14475 echo $ECHO_N "checking for set_auth_parameters in -lsec... $ECHO_C" >&6
14476 if test "${ac_cv_lib_sec_set_auth_parameters+set}" = set; then
14477   echo $ECHO_N "(cached) $ECHO_C" >&6
14478 else
14479   ac_check_lib_save_LIBS=$LIBS
14480 LIBS="-lsec  $LIBS"
14481 cat >conftest.$ac_ext <<_ACEOF
14482 #line $LINENO "configure"
14483 #include "confdefs.h"
14484
14485 /* Override any gcc2 internal prototype to avoid an error.  */
14486 #ifdef __cplusplus
14487 extern "C"
14488 #endif
14489 /* We use char because int might match the return type of a gcc2
14490    builtin and then its argument prototype would still apply.  */
14491 char set_auth_parameters ();
14492 #ifdef F77_DUMMY_MAIN
14493 #  ifdef __cplusplus
14494      extern "C"
14495 #  endif
14496    int F77_DUMMY_MAIN() { return 1; }
14497 #endif
14498 int
14499 main ()
14500 {
14501 set_auth_parameters ();
14502   ;
14503   return 0;
14504 }
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   ac_cv_lib_sec_set_auth_parameters=yes
14519 else
14520   echo "$as_me: failed program was:" >&5
14521 cat conftest.$ac_ext >&5
14522 ac_cv_lib_sec_set_auth_parameters=no
14523 fi
14524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14525 LIBS=$ac_check_lib_save_LIBS
14526 fi
14527 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_set_auth_parameters" >&5
14528 echo "${ECHO_T}$ac_cv_lib_sec_set_auth_parameters" >&6
14529 if test $ac_cv_lib_sec_set_auth_parameters = yes; then
14530   cat >>confdefs.h <<_ACEOF
14531 #define HAVE_LIBSEC 1
14532 _ACEOF
14533
14534   LIBS="-lsec $LIBS"
14535
14536 fi
14537
14538
14539 for ac_func in set_auth_parameters
14540 do
14541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14542 echo "$as_me:$LINENO: checking for $ac_func" >&5
14543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14544 if eval "test \"\${$as_ac_var+set}\" = set"; then
14545   echo $ECHO_N "(cached) $ECHO_C" >&6
14546 else
14547   cat >conftest.$ac_ext <<_ACEOF
14548 #line $LINENO "configure"
14549 #include "confdefs.h"
14550 /* System header to define __stub macros and hopefully few prototypes,
14551     which can conflict with char $ac_func (); below.  */
14552 #include <assert.h>
14553 /* Override any gcc2 internal prototype to avoid an error.  */
14554 #ifdef __cplusplus
14555 extern "C"
14556 #endif
14557 /* We use char because int might match the return type of a gcc2
14558    builtin and then its argument prototype would still apply.  */
14559 char $ac_func ();
14560 char (*f) ();
14561
14562 #ifdef F77_DUMMY_MAIN
14563 #  ifdef __cplusplus
14564      extern "C"
14565 #  endif
14566    int F77_DUMMY_MAIN() { return 1; }
14567 #endif
14568 int
14569 main ()
14570 {
14571 /* The GNU C library defines this for functions which it implements
14572     to always fail with ENOSYS.  Some functions are actually named
14573     something starting with __ and the normal name is an alias.  */
14574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14575 choke me
14576 #else
14577 f = $ac_func;
14578 #endif
14579
14580   ;
14581   return 0;
14582 }
14583 _ACEOF
14584 rm -f conftest.$ac_objext conftest$ac_exeext
14585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14586   (eval $ac_link) 2>&5
14587   ac_status=$?
14588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589   (exit $ac_status); } &&
14590          { ac_try='test -s conftest$ac_exeext'
14591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592   (eval $ac_try) 2>&5
14593   ac_status=$?
14594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595   (exit $ac_status); }; }; then
14596   eval "$as_ac_var=yes"
14597 else
14598   echo "$as_me: failed program was:" >&5
14599 cat conftest.$ac_ext >&5
14600 eval "$as_ac_var=no"
14601 fi
14602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14603 fi
14604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14605 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14606 if test `eval echo '${'$as_ac_var'}'` = yes; then
14607   cat >>confdefs.h <<_ACEOF
14608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14609 _ACEOF
14610
14611 fi
14612 done
14613
14614   ;;
14615   esac
14616
14617
14618 # UnixWare 7.x has its getspnam in -lgen
14619 case "$LIBS" in
14620   *-lgen*)
14621 for ac_func in getspnam
14622 do
14623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14624 echo "$as_me:$LINENO: checking for $ac_func" >&5
14625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14626 if eval "test \"\${$as_ac_var+set}\" = set"; then
14627   echo $ECHO_N "(cached) $ECHO_C" >&6
14628 else
14629   cat >conftest.$ac_ext <<_ACEOF
14630 #line $LINENO "configure"
14631 #include "confdefs.h"
14632 /* System header to define __stub macros and hopefully few prototypes,
14633     which can conflict with char $ac_func (); below.  */
14634 #include <assert.h>
14635 /* Override any gcc2 internal prototype to avoid an error.  */
14636 #ifdef __cplusplus
14637 extern "C"
14638 #endif
14639 /* We use char because int might match the return type of a gcc2
14640    builtin and then its argument prototype would still apply.  */
14641 char $ac_func ();
14642 char (*f) ();
14643
14644 #ifdef F77_DUMMY_MAIN
14645 #  ifdef __cplusplus
14646      extern "C"
14647 #  endif
14648    int F77_DUMMY_MAIN() { return 1; }
14649 #endif
14650 int
14651 main ()
14652 {
14653 /* The GNU C library defines this for functions which it implements
14654     to always fail with ENOSYS.  Some functions are actually named
14655     something starting with __ and the normal name is an alias.  */
14656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14657 choke me
14658 #else
14659 f = $ac_func;
14660 #endif
14661
14662   ;
14663   return 0;
14664 }
14665 _ACEOF
14666 rm -f conftest.$ac_objext conftest$ac_exeext
14667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14668   (eval $ac_link) 2>&5
14669   ac_status=$?
14670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671   (exit $ac_status); } &&
14672          { ac_try='test -s conftest$ac_exeext'
14673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674   (eval $ac_try) 2>&5
14675   ac_status=$?
14676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677   (exit $ac_status); }; }; then
14678   eval "$as_ac_var=yes"
14679 else
14680   echo "$as_me: failed program was:" >&5
14681 cat conftest.$ac_ext >&5
14682 eval "$as_ac_var=no"
14683 fi
14684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14685 fi
14686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14688 if test `eval echo '${'$as_ac_var'}'` = yes; then
14689   cat >>confdefs.h <<_ACEOF
14690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14691 _ACEOF
14692
14693 fi
14694 done
14695  ;;
14696   *)
14697 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
14698 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
14699 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
14700   echo $ECHO_N "(cached) $ECHO_C" >&6
14701 else
14702   ac_check_lib_save_LIBS=$LIBS
14703 LIBS="-lgen  $LIBS"
14704 cat >conftest.$ac_ext <<_ACEOF
14705 #line $LINENO "configure"
14706 #include "confdefs.h"
14707
14708 /* Override any gcc2 internal prototype to avoid an error.  */
14709 #ifdef __cplusplus
14710 extern "C"
14711 #endif
14712 /* We use char because int might match the return type of a gcc2
14713    builtin and then its argument prototype would still apply.  */
14714 char getspnam ();
14715 #ifdef F77_DUMMY_MAIN
14716 #  ifdef __cplusplus
14717      extern "C"
14718 #  endif
14719    int F77_DUMMY_MAIN() { return 1; }
14720 #endif
14721 int
14722 main ()
14723 {
14724 getspnam ();
14725   ;
14726   return 0;
14727 }
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   ac_cv_lib_gen_getspnam=yes
14742 else
14743   echo "$as_me: failed program was:" >&5
14744 cat conftest.$ac_ext >&5
14745 ac_cv_lib_gen_getspnam=no
14746 fi
14747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14748 LIBS=$ac_check_lib_save_LIBS
14749 fi
14750 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
14751 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
14752 if test $ac_cv_lib_gen_getspnam = yes; then
14753   cat >>confdefs.h <<_ACEOF
14754 #define HAVE_LIBGEN 1
14755 _ACEOF
14756
14757   LIBS="-lgen $LIBS"
14758
14759 fi
14760
14761
14762 for ac_func in getspnam
14763 do
14764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14765 echo "$as_me:$LINENO: checking for $ac_func" >&5
14766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14767 if eval "test \"\${$as_ac_var+set}\" = set"; then
14768   echo $ECHO_N "(cached) $ECHO_C" >&6
14769 else
14770   cat >conftest.$ac_ext <<_ACEOF
14771 #line $LINENO "configure"
14772 #include "confdefs.h"
14773 /* System header to define __stub macros and hopefully few prototypes,
14774     which can conflict with char $ac_func (); below.  */
14775 #include <assert.h>
14776 /* Override any gcc2 internal prototype to avoid an error.  */
14777 #ifdef __cplusplus
14778 extern "C"
14779 #endif
14780 /* We use char because int might match the return type of a gcc2
14781    builtin and then its argument prototype would still apply.  */
14782 char $ac_func ();
14783 char (*f) ();
14784
14785 #ifdef F77_DUMMY_MAIN
14786 #  ifdef __cplusplus
14787      extern "C"
14788 #  endif
14789    int F77_DUMMY_MAIN() { return 1; }
14790 #endif
14791 int
14792 main ()
14793 {
14794 /* The GNU C library defines this for functions which it implements
14795     to always fail with ENOSYS.  Some functions are actually named
14796     something starting with __ and the normal name is an alias.  */
14797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14798 choke me
14799 #else
14800 f = $ac_func;
14801 #endif
14802
14803   ;
14804   return 0;
14805 }
14806 _ACEOF
14807 rm -f conftest.$ac_objext conftest$ac_exeext
14808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14809   (eval $ac_link) 2>&5
14810   ac_status=$?
14811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812   (exit $ac_status); } &&
14813          { ac_try='test -s conftest$ac_exeext'
14814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815   (eval $ac_try) 2>&5
14816   ac_status=$?
14817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818   (exit $ac_status); }; }; then
14819   eval "$as_ac_var=yes"
14820 else
14821   echo "$as_me: failed program was:" >&5
14822 cat conftest.$ac_ext >&5
14823 eval "$as_ac_var=no"
14824 fi
14825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14826 fi
14827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14828 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14829 if test `eval echo '${'$as_ac_var'}'` = yes; then
14830   cat >>confdefs.h <<_ACEOF
14831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14832 _ACEOF
14833
14834 fi
14835 done
14836
14837   ;;
14838   esac
14839
14840
14841 case "$LIBS" in
14842   *-lsecurity*)
14843 for ac_func in getspnam
14844 do
14845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14846 echo "$as_me:$LINENO: checking for $ac_func" >&5
14847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14848 if eval "test \"\${$as_ac_var+set}\" = set"; then
14849   echo $ECHO_N "(cached) $ECHO_C" >&6
14850 else
14851   cat >conftest.$ac_ext <<_ACEOF
14852 #line $LINENO "configure"
14853 #include "confdefs.h"
14854 /* System header to define __stub macros and hopefully few prototypes,
14855     which can conflict with char $ac_func (); below.  */
14856 #include <assert.h>
14857 /* Override any gcc2 internal prototype to avoid an error.  */
14858 #ifdef __cplusplus
14859 extern "C"
14860 #endif
14861 /* We use char because int might match the return type of a gcc2
14862    builtin and then its argument prototype would still apply.  */
14863 char $ac_func ();
14864 char (*f) ();
14865
14866 #ifdef F77_DUMMY_MAIN
14867 #  ifdef __cplusplus
14868      extern "C"
14869 #  endif
14870    int F77_DUMMY_MAIN() { return 1; }
14871 #endif
14872 int
14873 main ()
14874 {
14875 /* The GNU C library defines this for functions which it implements
14876     to always fail with ENOSYS.  Some functions are actually named
14877     something starting with __ and the normal name is an alias.  */
14878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14879 choke me
14880 #else
14881 f = $ac_func;
14882 #endif
14883
14884   ;
14885   return 0;
14886 }
14887 _ACEOF
14888 rm -f conftest.$ac_objext conftest$ac_exeext
14889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14890   (eval $ac_link) 2>&5
14891   ac_status=$?
14892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893   (exit $ac_status); } &&
14894          { ac_try='test -s conftest$ac_exeext'
14895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14896   (eval $ac_try) 2>&5
14897   ac_status=$?
14898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899   (exit $ac_status); }; }; then
14900   eval "$as_ac_var=yes"
14901 else
14902   echo "$as_me: failed program was:" >&5
14903 cat conftest.$ac_ext >&5
14904 eval "$as_ac_var=no"
14905 fi
14906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14907 fi
14908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14910 if test `eval echo '${'$as_ac_var'}'` = yes; then
14911   cat >>confdefs.h <<_ACEOF
14912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14913 _ACEOF
14914
14915 fi
14916 done
14917  ;;
14918   *)
14919 echo "$as_me:$LINENO: checking for getspnam in -lsecurity" >&5
14920 echo $ECHO_N "checking for getspnam in -lsecurity... $ECHO_C" >&6
14921 if test "${ac_cv_lib_security_getspnam+set}" = set; then
14922   echo $ECHO_N "(cached) $ECHO_C" >&6
14923 else
14924   ac_check_lib_save_LIBS=$LIBS
14925 LIBS="-lsecurity  $LIBS"
14926 cat >conftest.$ac_ext <<_ACEOF
14927 #line $LINENO "configure"
14928 #include "confdefs.h"
14929
14930 /* Override any gcc2 internal prototype to avoid an error.  */
14931 #ifdef __cplusplus
14932 extern "C"
14933 #endif
14934 /* We use char because int might match the return type of a gcc2
14935    builtin and then its argument prototype would still apply.  */
14936 char getspnam ();
14937 #ifdef F77_DUMMY_MAIN
14938 #  ifdef __cplusplus
14939      extern "C"
14940 #  endif
14941    int F77_DUMMY_MAIN() { return 1; }
14942 #endif
14943 int
14944 main ()
14945 {
14946 getspnam ();
14947   ;
14948   return 0;
14949 }
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   ac_cv_lib_security_getspnam=yes
14964 else
14965   echo "$as_me: failed program was:" >&5
14966 cat conftest.$ac_ext >&5
14967 ac_cv_lib_security_getspnam=no
14968 fi
14969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14970 LIBS=$ac_check_lib_save_LIBS
14971 fi
14972 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getspnam" >&5
14973 echo "${ECHO_T}$ac_cv_lib_security_getspnam" >&6
14974 if test $ac_cv_lib_security_getspnam = yes; then
14975   cat >>confdefs.h <<_ACEOF
14976 #define HAVE_LIBSECURITY 1
14977 _ACEOF
14978
14979   LIBS="-lsecurity $LIBS"
14980
14981 fi
14982
14983
14984 for ac_func in getspnam
14985 do
14986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14987 echo "$as_me:$LINENO: checking for $ac_func" >&5
14988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14989 if eval "test \"\${$as_ac_var+set}\" = set"; then
14990   echo $ECHO_N "(cached) $ECHO_C" >&6
14991 else
14992   cat >conftest.$ac_ext <<_ACEOF
14993 #line $LINENO "configure"
14994 #include "confdefs.h"
14995 /* System header to define __stub macros and hopefully few prototypes,
14996     which can conflict with char $ac_func (); below.  */
14997 #include <assert.h>
14998 /* Override any gcc2 internal prototype to avoid an error.  */
14999 #ifdef __cplusplus
15000 extern "C"
15001 #endif
15002 /* We use char because int might match the return type of a gcc2
15003    builtin and then its argument prototype would still apply.  */
15004 char $ac_func ();
15005 char (*f) ();
15006
15007 #ifdef F77_DUMMY_MAIN
15008 #  ifdef __cplusplus
15009      extern "C"
15010 #  endif
15011    int F77_DUMMY_MAIN() { return 1; }
15012 #endif
15013 int
15014 main ()
15015 {
15016 /* The GNU C library defines this for functions which it implements
15017     to always fail with ENOSYS.  Some functions are actually named
15018     something starting with __ and the normal name is an alias.  */
15019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15020 choke me
15021 #else
15022 f = $ac_func;
15023 #endif
15024
15025   ;
15026   return 0;
15027 }
15028 _ACEOF
15029 rm -f conftest.$ac_objext conftest$ac_exeext
15030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15031   (eval $ac_link) 2>&5
15032   ac_status=$?
15033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034   (exit $ac_status); } &&
15035          { ac_try='test -s conftest$ac_exeext'
15036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037   (eval $ac_try) 2>&5
15038   ac_status=$?
15039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040   (exit $ac_status); }; }; then
15041   eval "$as_ac_var=yes"
15042 else
15043   echo "$as_me: failed program was:" >&5
15044 cat conftest.$ac_ext >&5
15045 eval "$as_ac_var=no"
15046 fi
15047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15048 fi
15049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15051 if test `eval echo '${'$as_ac_var'}'` = yes; then
15052   cat >>confdefs.h <<_ACEOF
15053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15054 _ACEOF
15055
15056 fi
15057 done
15058
15059   ;;
15060   esac
15061
15062 case "$LIBS" in
15063   *-lsec*)
15064 for ac_func in getspnam
15065 do
15066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15067 echo "$as_me:$LINENO: checking for $ac_func" >&5
15068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15069 if eval "test \"\${$as_ac_var+set}\" = set"; then
15070   echo $ECHO_N "(cached) $ECHO_C" >&6
15071 else
15072   cat >conftest.$ac_ext <<_ACEOF
15073 #line $LINENO "configure"
15074 #include "confdefs.h"
15075 /* System header to define __stub macros and hopefully few prototypes,
15076     which can conflict with char $ac_func (); below.  */
15077 #include <assert.h>
15078 /* Override any gcc2 internal prototype to avoid an error.  */
15079 #ifdef __cplusplus
15080 extern "C"
15081 #endif
15082 /* We use char because int might match the return type of a gcc2
15083    builtin and then its argument prototype would still apply.  */
15084 char $ac_func ();
15085 char (*f) ();
15086
15087 #ifdef F77_DUMMY_MAIN
15088 #  ifdef __cplusplus
15089      extern "C"
15090 #  endif
15091    int F77_DUMMY_MAIN() { return 1; }
15092 #endif
15093 int
15094 main ()
15095 {
15096 /* The GNU C library defines this for functions which it implements
15097     to always fail with ENOSYS.  Some functions are actually named
15098     something starting with __ and the normal name is an alias.  */
15099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15100 choke me
15101 #else
15102 f = $ac_func;
15103 #endif
15104
15105   ;
15106   return 0;
15107 }
15108 _ACEOF
15109 rm -f conftest.$ac_objext conftest$ac_exeext
15110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15111   (eval $ac_link) 2>&5
15112   ac_status=$?
15113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114   (exit $ac_status); } &&
15115          { ac_try='test -s conftest$ac_exeext'
15116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117   (eval $ac_try) 2>&5
15118   ac_status=$?
15119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120   (exit $ac_status); }; }; then
15121   eval "$as_ac_var=yes"
15122 else
15123   echo "$as_me: failed program was:" >&5
15124 cat conftest.$ac_ext >&5
15125 eval "$as_ac_var=no"
15126 fi
15127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15128 fi
15129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15130 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15131 if test `eval echo '${'$as_ac_var'}'` = yes; then
15132   cat >>confdefs.h <<_ACEOF
15133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15134 _ACEOF
15135
15136 fi
15137 done
15138  ;;
15139   *)
15140 echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
15141 echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
15142 if test "${ac_cv_lib_sec_getspnam+set}" = set; then
15143   echo $ECHO_N "(cached) $ECHO_C" >&6
15144 else
15145   ac_check_lib_save_LIBS=$LIBS
15146 LIBS="-lsec  $LIBS"
15147 cat >conftest.$ac_ext <<_ACEOF
15148 #line $LINENO "configure"
15149 #include "confdefs.h"
15150
15151 /* Override any gcc2 internal prototype to avoid an error.  */
15152 #ifdef __cplusplus
15153 extern "C"
15154 #endif
15155 /* We use char because int might match the return type of a gcc2
15156    builtin and then its argument prototype would still apply.  */
15157 char getspnam ();
15158 #ifdef F77_DUMMY_MAIN
15159 #  ifdef __cplusplus
15160      extern "C"
15161 #  endif
15162    int F77_DUMMY_MAIN() { return 1; }
15163 #endif
15164 int
15165 main ()
15166 {
15167 getspnam ();
15168   ;
15169   return 0;
15170 }
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   ac_cv_lib_sec_getspnam=yes
15185 else
15186   echo "$as_me: failed program was:" >&5
15187 cat conftest.$ac_ext >&5
15188 ac_cv_lib_sec_getspnam=no
15189 fi
15190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15191 LIBS=$ac_check_lib_save_LIBS
15192 fi
15193 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
15194 echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
15195 if test $ac_cv_lib_sec_getspnam = yes; then
15196   cat >>confdefs.h <<_ACEOF
15197 #define HAVE_LIBSEC 1
15198 _ACEOF
15199
15200   LIBS="-lsec $LIBS"
15201
15202 fi
15203
15204
15205 for ac_func in getspnam
15206 do
15207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15208 echo "$as_me:$LINENO: checking for $ac_func" >&5
15209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15210 if eval "test \"\${$as_ac_var+set}\" = set"; then
15211   echo $ECHO_N "(cached) $ECHO_C" >&6
15212 else
15213   cat >conftest.$ac_ext <<_ACEOF
15214 #line $LINENO "configure"
15215 #include "confdefs.h"
15216 /* System header to define __stub macros and hopefully few prototypes,
15217     which can conflict with char $ac_func (); below.  */
15218 #include <assert.h>
15219 /* Override any gcc2 internal prototype to avoid an error.  */
15220 #ifdef __cplusplus
15221 extern "C"
15222 #endif
15223 /* We use char because int might match the return type of a gcc2
15224    builtin and then its argument prototype would still apply.  */
15225 char $ac_func ();
15226 char (*f) ();
15227
15228 #ifdef F77_DUMMY_MAIN
15229 #  ifdef __cplusplus
15230      extern "C"
15231 #  endif
15232    int F77_DUMMY_MAIN() { return 1; }
15233 #endif
15234 int
15235 main ()
15236 {
15237 /* The GNU C library defines this for functions which it implements
15238     to always fail with ENOSYS.  Some functions are actually named
15239     something starting with __ and the normal name is an alias.  */
15240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15241 choke me
15242 #else
15243 f = $ac_func;
15244 #endif
15245
15246   ;
15247   return 0;
15248 }
15249 _ACEOF
15250 rm -f conftest.$ac_objext conftest$ac_exeext
15251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15252   (eval $ac_link) 2>&5
15253   ac_status=$?
15254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255   (exit $ac_status); } &&
15256          { ac_try='test -s conftest$ac_exeext'
15257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258   (eval $ac_try) 2>&5
15259   ac_status=$?
15260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261   (exit $ac_status); }; }; then
15262   eval "$as_ac_var=yes"
15263 else
15264   echo "$as_me: failed program was:" >&5
15265 cat conftest.$ac_ext >&5
15266 eval "$as_ac_var=no"
15267 fi
15268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15269 fi
15270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15272 if test `eval echo '${'$as_ac_var'}'` = yes; then
15273   cat >>confdefs.h <<_ACEOF
15274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15275 _ACEOF
15276
15277 fi
15278 done
15279
15280   ;;
15281   esac
15282
15283
15284 case "$LIBS" in
15285   *-lsecurity*)
15286 for ac_func in bigcrypt
15287 do
15288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15289 echo "$as_me:$LINENO: checking for $ac_func" >&5
15290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15291 if eval "test \"\${$as_ac_var+set}\" = set"; then
15292   echo $ECHO_N "(cached) $ECHO_C" >&6
15293 else
15294   cat >conftest.$ac_ext <<_ACEOF
15295 #line $LINENO "configure"
15296 #include "confdefs.h"
15297 /* System header to define __stub macros and hopefully few prototypes,
15298     which can conflict with char $ac_func (); below.  */
15299 #include <assert.h>
15300 /* Override any gcc2 internal prototype to avoid an error.  */
15301 #ifdef __cplusplus
15302 extern "C"
15303 #endif
15304 /* We use char because int might match the return type of a gcc2
15305    builtin and then its argument prototype would still apply.  */
15306 char $ac_func ();
15307 char (*f) ();
15308
15309 #ifdef F77_DUMMY_MAIN
15310 #  ifdef __cplusplus
15311      extern "C"
15312 #  endif
15313    int F77_DUMMY_MAIN() { return 1; }
15314 #endif
15315 int
15316 main ()
15317 {
15318 /* The GNU C library defines this for functions which it implements
15319     to always fail with ENOSYS.  Some functions are actually named
15320     something starting with __ and the normal name is an alias.  */
15321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15322 choke me
15323 #else
15324 f = $ac_func;
15325 #endif
15326
15327   ;
15328   return 0;
15329 }
15330 _ACEOF
15331 rm -f conftest.$ac_objext conftest$ac_exeext
15332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15333   (eval $ac_link) 2>&5
15334   ac_status=$?
15335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336   (exit $ac_status); } &&
15337          { ac_try='test -s conftest$ac_exeext'
15338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339   (eval $ac_try) 2>&5
15340   ac_status=$?
15341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342   (exit $ac_status); }; }; then
15343   eval "$as_ac_var=yes"
15344 else
15345   echo "$as_me: failed program was:" >&5
15346 cat conftest.$ac_ext >&5
15347 eval "$as_ac_var=no"
15348 fi
15349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15350 fi
15351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15353 if test `eval echo '${'$as_ac_var'}'` = yes; then
15354   cat >>confdefs.h <<_ACEOF
15355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15356 _ACEOF
15357
15358 fi
15359 done
15360  ;;
15361   *)
15362 echo "$as_me:$LINENO: checking for bigcrypt in -lsecurity" >&5
15363 echo $ECHO_N "checking for bigcrypt in -lsecurity... $ECHO_C" >&6
15364 if test "${ac_cv_lib_security_bigcrypt+set}" = set; then
15365   echo $ECHO_N "(cached) $ECHO_C" >&6
15366 else
15367   ac_check_lib_save_LIBS=$LIBS
15368 LIBS="-lsecurity  $LIBS"
15369 cat >conftest.$ac_ext <<_ACEOF
15370 #line $LINENO "configure"
15371 #include "confdefs.h"
15372
15373 /* Override any gcc2 internal prototype to avoid an error.  */
15374 #ifdef __cplusplus
15375 extern "C"
15376 #endif
15377 /* We use char because int might match the return type of a gcc2
15378    builtin and then its argument prototype would still apply.  */
15379 char bigcrypt ();
15380 #ifdef F77_DUMMY_MAIN
15381 #  ifdef __cplusplus
15382      extern "C"
15383 #  endif
15384    int F77_DUMMY_MAIN() { return 1; }
15385 #endif
15386 int
15387 main ()
15388 {
15389 bigcrypt ();
15390   ;
15391   return 0;
15392 }
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   ac_cv_lib_security_bigcrypt=yes
15407 else
15408   echo "$as_me: failed program was:" >&5
15409 cat conftest.$ac_ext >&5
15410 ac_cv_lib_security_bigcrypt=no
15411 fi
15412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15413 LIBS=$ac_check_lib_save_LIBS
15414 fi
15415 echo "$as_me:$LINENO: result: $ac_cv_lib_security_bigcrypt" >&5
15416 echo "${ECHO_T}$ac_cv_lib_security_bigcrypt" >&6
15417 if test $ac_cv_lib_security_bigcrypt = yes; then
15418   cat >>confdefs.h <<_ACEOF
15419 #define HAVE_LIBSECURITY 1
15420 _ACEOF
15421
15422   LIBS="-lsecurity $LIBS"
15423
15424 fi
15425
15426
15427 for ac_func in bigcrypt
15428 do
15429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15430 echo "$as_me:$LINENO: checking for $ac_func" >&5
15431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15432 if eval "test \"\${$as_ac_var+set}\" = set"; then
15433   echo $ECHO_N "(cached) $ECHO_C" >&6
15434 else
15435   cat >conftest.$ac_ext <<_ACEOF
15436 #line $LINENO "configure"
15437 #include "confdefs.h"
15438 /* System header to define __stub macros and hopefully few prototypes,
15439     which can conflict with char $ac_func (); below.  */
15440 #include <assert.h>
15441 /* Override any gcc2 internal prototype to avoid an error.  */
15442 #ifdef __cplusplus
15443 extern "C"
15444 #endif
15445 /* We use char because int might match the return type of a gcc2
15446    builtin and then its argument prototype would still apply.  */
15447 char $ac_func ();
15448 char (*f) ();
15449
15450 #ifdef F77_DUMMY_MAIN
15451 #  ifdef __cplusplus
15452      extern "C"
15453 #  endif
15454    int F77_DUMMY_MAIN() { return 1; }
15455 #endif
15456 int
15457 main ()
15458 {
15459 /* The GNU C library defines this for functions which it implements
15460     to always fail with ENOSYS.  Some functions are actually named
15461     something starting with __ and the normal name is an alias.  */
15462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15463 choke me
15464 #else
15465 f = $ac_func;
15466 #endif
15467
15468   ;
15469   return 0;
15470 }
15471 _ACEOF
15472 rm -f conftest.$ac_objext conftest$ac_exeext
15473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15474   (eval $ac_link) 2>&5
15475   ac_status=$?
15476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477   (exit $ac_status); } &&
15478          { ac_try='test -s conftest$ac_exeext'
15479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15480   (eval $ac_try) 2>&5
15481   ac_status=$?
15482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483   (exit $ac_status); }; }; then
15484   eval "$as_ac_var=yes"
15485 else
15486   echo "$as_me: failed program was:" >&5
15487 cat conftest.$ac_ext >&5
15488 eval "$as_ac_var=no"
15489 fi
15490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15491 fi
15492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15494 if test `eval echo '${'$as_ac_var'}'` = yes; then
15495   cat >>confdefs.h <<_ACEOF
15496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15497 _ACEOF
15498
15499 fi
15500 done
15501
15502   ;;
15503   esac
15504
15505 case "$LIBS" in
15506   *-lsec*)
15507 for ac_func in bigcrypt
15508 do
15509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15510 echo "$as_me:$LINENO: checking for $ac_func" >&5
15511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15512 if eval "test \"\${$as_ac_var+set}\" = set"; then
15513   echo $ECHO_N "(cached) $ECHO_C" >&6
15514 else
15515   cat >conftest.$ac_ext <<_ACEOF
15516 #line $LINENO "configure"
15517 #include "confdefs.h"
15518 /* System header to define __stub macros and hopefully few prototypes,
15519     which can conflict with char $ac_func (); below.  */
15520 #include <assert.h>
15521 /* Override any gcc2 internal prototype to avoid an error.  */
15522 #ifdef __cplusplus
15523 extern "C"
15524 #endif
15525 /* We use char because int might match the return type of a gcc2
15526    builtin and then its argument prototype would still apply.  */
15527 char $ac_func ();
15528 char (*f) ();
15529
15530 #ifdef F77_DUMMY_MAIN
15531 #  ifdef __cplusplus
15532      extern "C"
15533 #  endif
15534    int F77_DUMMY_MAIN() { return 1; }
15535 #endif
15536 int
15537 main ()
15538 {
15539 /* The GNU C library defines this for functions which it implements
15540     to always fail with ENOSYS.  Some functions are actually named
15541     something starting with __ and the normal name is an alias.  */
15542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15543 choke me
15544 #else
15545 f = $ac_func;
15546 #endif
15547
15548   ;
15549   return 0;
15550 }
15551 _ACEOF
15552 rm -f conftest.$ac_objext conftest$ac_exeext
15553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15554   (eval $ac_link) 2>&5
15555   ac_status=$?
15556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557   (exit $ac_status); } &&
15558          { ac_try='test -s conftest$ac_exeext'
15559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15560   (eval $ac_try) 2>&5
15561   ac_status=$?
15562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563   (exit $ac_status); }; }; then
15564   eval "$as_ac_var=yes"
15565 else
15566   echo "$as_me: failed program was:" >&5
15567 cat conftest.$ac_ext >&5
15568 eval "$as_ac_var=no"
15569 fi
15570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15571 fi
15572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15574 if test `eval echo '${'$as_ac_var'}'` = yes; then
15575   cat >>confdefs.h <<_ACEOF
15576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15577 _ACEOF
15578
15579 fi
15580 done
15581  ;;
15582   *)
15583 echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
15584 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
15585 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
15586   echo $ECHO_N "(cached) $ECHO_C" >&6
15587 else
15588   ac_check_lib_save_LIBS=$LIBS
15589 LIBS="-lsec  $LIBS"
15590 cat >conftest.$ac_ext <<_ACEOF
15591 #line $LINENO "configure"
15592 #include "confdefs.h"
15593
15594 /* Override any gcc2 internal prototype to avoid an error.  */
15595 #ifdef __cplusplus
15596 extern "C"
15597 #endif
15598 /* We use char because int might match the return type of a gcc2
15599    builtin and then its argument prototype would still apply.  */
15600 char bigcrypt ();
15601 #ifdef F77_DUMMY_MAIN
15602 #  ifdef __cplusplus
15603      extern "C"
15604 #  endif
15605    int F77_DUMMY_MAIN() { return 1; }
15606 #endif
15607 int
15608 main ()
15609 {
15610 bigcrypt ();
15611   ;
15612   return 0;
15613 }
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   ac_cv_lib_sec_bigcrypt=yes
15628 else
15629   echo "$as_me: failed program was:" >&5
15630 cat conftest.$ac_ext >&5
15631 ac_cv_lib_sec_bigcrypt=no
15632 fi
15633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15634 LIBS=$ac_check_lib_save_LIBS
15635 fi
15636 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
15637 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
15638 if test $ac_cv_lib_sec_bigcrypt = yes; then
15639   cat >>confdefs.h <<_ACEOF
15640 #define HAVE_LIBSEC 1
15641 _ACEOF
15642
15643   LIBS="-lsec $LIBS"
15644
15645 fi
15646
15647
15648 for ac_func in bigcrypt
15649 do
15650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15651 echo "$as_me:$LINENO: checking for $ac_func" >&5
15652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15653 if eval "test \"\${$as_ac_var+set}\" = set"; then
15654   echo $ECHO_N "(cached) $ECHO_C" >&6
15655 else
15656   cat >conftest.$ac_ext <<_ACEOF
15657 #line $LINENO "configure"
15658 #include "confdefs.h"
15659 /* System header to define __stub macros and hopefully few prototypes,
15660     which can conflict with char $ac_func (); below.  */
15661 #include <assert.h>
15662 /* Override any gcc2 internal prototype to avoid an error.  */
15663 #ifdef __cplusplus
15664 extern "C"
15665 #endif
15666 /* We use char because int might match the return type of a gcc2
15667    builtin and then its argument prototype would still apply.  */
15668 char $ac_func ();
15669 char (*f) ();
15670
15671 #ifdef F77_DUMMY_MAIN
15672 #  ifdef __cplusplus
15673      extern "C"
15674 #  endif
15675    int F77_DUMMY_MAIN() { return 1; }
15676 #endif
15677 int
15678 main ()
15679 {
15680 /* The GNU C library defines this for functions which it implements
15681     to always fail with ENOSYS.  Some functions are actually named
15682     something starting with __ and the normal name is an alias.  */
15683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15684 choke me
15685 #else
15686 f = $ac_func;
15687 #endif
15688
15689   ;
15690   return 0;
15691 }
15692 _ACEOF
15693 rm -f conftest.$ac_objext conftest$ac_exeext
15694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15695   (eval $ac_link) 2>&5
15696   ac_status=$?
15697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698   (exit $ac_status); } &&
15699          { ac_try='test -s conftest$ac_exeext'
15700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15701   (eval $ac_try) 2>&5
15702   ac_status=$?
15703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704   (exit $ac_status); }; }; then
15705   eval "$as_ac_var=yes"
15706 else
15707   echo "$as_me: failed program was:" >&5
15708 cat conftest.$ac_ext >&5
15709 eval "$as_ac_var=no"
15710 fi
15711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15712 fi
15713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15715 if test `eval echo '${'$as_ac_var'}'` = yes; then
15716   cat >>confdefs.h <<_ACEOF
15717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15718 _ACEOF
15719
15720 fi
15721 done
15722
15723   ;;
15724   esac
15725
15726
15727 case "$LIBS" in
15728   *-lsecurity*)
15729 for ac_func in getprpwnam
15730 do
15731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15732 echo "$as_me:$LINENO: checking for $ac_func" >&5
15733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15734 if eval "test \"\${$as_ac_var+set}\" = set"; then
15735   echo $ECHO_N "(cached) $ECHO_C" >&6
15736 else
15737   cat >conftest.$ac_ext <<_ACEOF
15738 #line $LINENO "configure"
15739 #include "confdefs.h"
15740 /* System header to define __stub macros and hopefully few prototypes,
15741     which can conflict with char $ac_func (); below.  */
15742 #include <assert.h>
15743 /* Override any gcc2 internal prototype to avoid an error.  */
15744 #ifdef __cplusplus
15745 extern "C"
15746 #endif
15747 /* We use char because int might match the return type of a gcc2
15748    builtin and then its argument prototype would still apply.  */
15749 char $ac_func ();
15750 char (*f) ();
15751
15752 #ifdef F77_DUMMY_MAIN
15753 #  ifdef __cplusplus
15754      extern "C"
15755 #  endif
15756    int F77_DUMMY_MAIN() { return 1; }
15757 #endif
15758 int
15759 main ()
15760 {
15761 /* The GNU C library defines this for functions which it implements
15762     to always fail with ENOSYS.  Some functions are actually named
15763     something starting with __ and the normal name is an alias.  */
15764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15765 choke me
15766 #else
15767 f = $ac_func;
15768 #endif
15769
15770   ;
15771   return 0;
15772 }
15773 _ACEOF
15774 rm -f conftest.$ac_objext conftest$ac_exeext
15775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15776   (eval $ac_link) 2>&5
15777   ac_status=$?
15778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779   (exit $ac_status); } &&
15780          { ac_try='test -s conftest$ac_exeext'
15781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15782   (eval $ac_try) 2>&5
15783   ac_status=$?
15784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785   (exit $ac_status); }; }; then
15786   eval "$as_ac_var=yes"
15787 else
15788   echo "$as_me: failed program was:" >&5
15789 cat conftest.$ac_ext >&5
15790 eval "$as_ac_var=no"
15791 fi
15792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15793 fi
15794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15796 if test `eval echo '${'$as_ac_var'}'` = yes; then
15797   cat >>confdefs.h <<_ACEOF
15798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15799 _ACEOF
15800
15801 fi
15802 done
15803  ;;
15804   *)
15805 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
15806 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
15807 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
15808   echo $ECHO_N "(cached) $ECHO_C" >&6
15809 else
15810   ac_check_lib_save_LIBS=$LIBS
15811 LIBS="-lsecurity  $LIBS"
15812 cat >conftest.$ac_ext <<_ACEOF
15813 #line $LINENO "configure"
15814 #include "confdefs.h"
15815
15816 /* Override any gcc2 internal prototype to avoid an error.  */
15817 #ifdef __cplusplus
15818 extern "C"
15819 #endif
15820 /* We use char because int might match the return type of a gcc2
15821    builtin and then its argument prototype would still apply.  */
15822 char getprpwnam ();
15823 #ifdef F77_DUMMY_MAIN
15824 #  ifdef __cplusplus
15825      extern "C"
15826 #  endif
15827    int F77_DUMMY_MAIN() { return 1; }
15828 #endif
15829 int
15830 main ()
15831 {
15832 getprpwnam ();
15833   ;
15834   return 0;
15835 }
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   ac_cv_lib_security_getprpwnam=yes
15850 else
15851   echo "$as_me: failed program was:" >&5
15852 cat conftest.$ac_ext >&5
15853 ac_cv_lib_security_getprpwnam=no
15854 fi
15855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15856 LIBS=$ac_check_lib_save_LIBS
15857 fi
15858 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
15859 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
15860 if test $ac_cv_lib_security_getprpwnam = yes; then
15861   cat >>confdefs.h <<_ACEOF
15862 #define HAVE_LIBSECURITY 1
15863 _ACEOF
15864
15865   LIBS="-lsecurity $LIBS"
15866
15867 fi
15868
15869
15870 for ac_func in getprpwnam
15871 do
15872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15873 echo "$as_me:$LINENO: checking for $ac_func" >&5
15874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15875 if eval "test \"\${$as_ac_var+set}\" = set"; then
15876   echo $ECHO_N "(cached) $ECHO_C" >&6
15877 else
15878   cat >conftest.$ac_ext <<_ACEOF
15879 #line $LINENO "configure"
15880 #include "confdefs.h"
15881 /* System header to define __stub macros and hopefully few prototypes,
15882     which can conflict with char $ac_func (); below.  */
15883 #include <assert.h>
15884 /* Override any gcc2 internal prototype to avoid an error.  */
15885 #ifdef __cplusplus
15886 extern "C"
15887 #endif
15888 /* We use char because int might match the return type of a gcc2
15889    builtin and then its argument prototype would still apply.  */
15890 char $ac_func ();
15891 char (*f) ();
15892
15893 #ifdef F77_DUMMY_MAIN
15894 #  ifdef __cplusplus
15895      extern "C"
15896 #  endif
15897    int F77_DUMMY_MAIN() { return 1; }
15898 #endif
15899 int
15900 main ()
15901 {
15902 /* The GNU C library defines this for functions which it implements
15903     to always fail with ENOSYS.  Some functions are actually named
15904     something starting with __ and the normal name is an alias.  */
15905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15906 choke me
15907 #else
15908 f = $ac_func;
15909 #endif
15910
15911   ;
15912   return 0;
15913 }
15914 _ACEOF
15915 rm -f conftest.$ac_objext conftest$ac_exeext
15916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15917   (eval $ac_link) 2>&5
15918   ac_status=$?
15919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920   (exit $ac_status); } &&
15921          { ac_try='test -s conftest$ac_exeext'
15922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923   (eval $ac_try) 2>&5
15924   ac_status=$?
15925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926   (exit $ac_status); }; }; then
15927   eval "$as_ac_var=yes"
15928 else
15929   echo "$as_me: failed program was:" >&5
15930 cat conftest.$ac_ext >&5
15931 eval "$as_ac_var=no"
15932 fi
15933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15934 fi
15935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15936 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15937 if test `eval echo '${'$as_ac_var'}'` = yes; then
15938   cat >>confdefs.h <<_ACEOF
15939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15940 _ACEOF
15941
15942 fi
15943 done
15944
15945   ;;
15946   esac
15947
15948 case "$LIBS" in
15949   *-lsec*)
15950 for ac_func in getprpwnam
15951 do
15952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15953 echo "$as_me:$LINENO: checking for $ac_func" >&5
15954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15955 if eval "test \"\${$as_ac_var+set}\" = set"; then
15956   echo $ECHO_N "(cached) $ECHO_C" >&6
15957 else
15958   cat >conftest.$ac_ext <<_ACEOF
15959 #line $LINENO "configure"
15960 #include "confdefs.h"
15961 /* System header to define __stub macros and hopefully few prototypes,
15962     which can conflict with char $ac_func (); below.  */
15963 #include <assert.h>
15964 /* Override any gcc2 internal prototype to avoid an error.  */
15965 #ifdef __cplusplus
15966 extern "C"
15967 #endif
15968 /* We use char because int might match the return type of a gcc2
15969    builtin and then its argument prototype would still apply.  */
15970 char $ac_func ();
15971 char (*f) ();
15972
15973 #ifdef F77_DUMMY_MAIN
15974 #  ifdef __cplusplus
15975      extern "C"
15976 #  endif
15977    int F77_DUMMY_MAIN() { return 1; }
15978 #endif
15979 int
15980 main ()
15981 {
15982 /* The GNU C library defines this for functions which it implements
15983     to always fail with ENOSYS.  Some functions are actually named
15984     something starting with __ and the normal name is an alias.  */
15985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15986 choke me
15987 #else
15988 f = $ac_func;
15989 #endif
15990
15991   ;
15992   return 0;
15993 }
15994 _ACEOF
15995 rm -f conftest.$ac_objext conftest$ac_exeext
15996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15997   (eval $ac_link) 2>&5
15998   ac_status=$?
15999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000   (exit $ac_status); } &&
16001          { ac_try='test -s conftest$ac_exeext'
16002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003   (eval $ac_try) 2>&5
16004   ac_status=$?
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); }; }; then
16007   eval "$as_ac_var=yes"
16008 else
16009   echo "$as_me: failed program was:" >&5
16010 cat conftest.$ac_ext >&5
16011 eval "$as_ac_var=no"
16012 fi
16013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16014 fi
16015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16017 if test `eval echo '${'$as_ac_var'}'` = yes; then
16018   cat >>confdefs.h <<_ACEOF
16019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16020 _ACEOF
16021
16022 fi
16023 done
16024  ;;
16025   *)
16026 echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
16027 echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
16028 if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
16029   echo $ECHO_N "(cached) $ECHO_C" >&6
16030 else
16031   ac_check_lib_save_LIBS=$LIBS
16032 LIBS="-lsec  $LIBS"
16033 cat >conftest.$ac_ext <<_ACEOF
16034 #line $LINENO "configure"
16035 #include "confdefs.h"
16036
16037 /* Override any gcc2 internal prototype to avoid an error.  */
16038 #ifdef __cplusplus
16039 extern "C"
16040 #endif
16041 /* We use char because int might match the return type of a gcc2
16042    builtin and then its argument prototype would still apply.  */
16043 char getprpwnam ();
16044 #ifdef F77_DUMMY_MAIN
16045 #  ifdef __cplusplus
16046      extern "C"
16047 #  endif
16048    int F77_DUMMY_MAIN() { return 1; }
16049 #endif
16050 int
16051 main ()
16052 {
16053 getprpwnam ();
16054   ;
16055   return 0;
16056 }
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   ac_cv_lib_sec_getprpwnam=yes
16071 else
16072   echo "$as_me: failed program was:" >&5
16073 cat conftest.$ac_ext >&5
16074 ac_cv_lib_sec_getprpwnam=no
16075 fi
16076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16077 LIBS=$ac_check_lib_save_LIBS
16078 fi
16079 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
16080 echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
16081 if test $ac_cv_lib_sec_getprpwnam = yes; then
16082   cat >>confdefs.h <<_ACEOF
16083 #define HAVE_LIBSEC 1
16084 _ACEOF
16085
16086   LIBS="-lsec $LIBS"
16087
16088 fi
16089
16090
16091 for ac_func in getprpwnam
16092 do
16093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16094 echo "$as_me:$LINENO: checking for $ac_func" >&5
16095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16096 if eval "test \"\${$as_ac_var+set}\" = set"; then
16097   echo $ECHO_N "(cached) $ECHO_C" >&6
16098 else
16099   cat >conftest.$ac_ext <<_ACEOF
16100 #line $LINENO "configure"
16101 #include "confdefs.h"
16102 /* System header to define __stub macros and hopefully few prototypes,
16103     which can conflict with char $ac_func (); below.  */
16104 #include <assert.h>
16105 /* Override any gcc2 internal prototype to avoid an error.  */
16106 #ifdef __cplusplus
16107 extern "C"
16108 #endif
16109 /* We use char because int might match the return type of a gcc2
16110    builtin and then its argument prototype would still apply.  */
16111 char $ac_func ();
16112 char (*f) ();
16113
16114 #ifdef F77_DUMMY_MAIN
16115 #  ifdef __cplusplus
16116      extern "C"
16117 #  endif
16118    int F77_DUMMY_MAIN() { return 1; }
16119 #endif
16120 int
16121 main ()
16122 {
16123 /* The GNU C library defines this for functions which it implements
16124     to always fail with ENOSYS.  Some functions are actually named
16125     something starting with __ and the normal name is an alias.  */
16126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16127 choke me
16128 #else
16129 f = $ac_func;
16130 #endif
16131
16132   ;
16133   return 0;
16134 }
16135 _ACEOF
16136 rm -f conftest.$ac_objext conftest$ac_exeext
16137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16138   (eval $ac_link) 2>&5
16139   ac_status=$?
16140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141   (exit $ac_status); } &&
16142          { ac_try='test -s conftest$ac_exeext'
16143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144   (eval $ac_try) 2>&5
16145   ac_status=$?
16146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147   (exit $ac_status); }; }; then
16148   eval "$as_ac_var=yes"
16149 else
16150   echo "$as_me: failed program was:" >&5
16151 cat conftest.$ac_ext >&5
16152 eval "$as_ac_var=no"
16153 fi
16154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16155 fi
16156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16158 if test `eval echo '${'$as_ac_var'}'` = yes; then
16159   cat >>confdefs.h <<_ACEOF
16160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16161 _ACEOF
16162
16163 fi
16164 done
16165
16166   ;;
16167   esac
16168
16169
16170 # this bit needs to be modified for each OS that is suported by
16171 # smbwrapper. You need to specify how to created a shared library and
16172 # how to compile C code to produce PIC object files
16173
16174 # these are the defaults, good for lots of systems
16175 HOST_OS="$host_os"
16176 LDSHFLAGS="-shared"
16177 SONAMEFLAG="#"
16178 SHLD="\${CC}"
16179 PICFLAG=""
16180 PICSUFFIX="po"
16181 POBAD_CC="#"
16182 SHLIBEXT="so"
16183 # Assume non-shared by default and override below
16184 BLDSHARED="false"
16185 echo "$as_me:$LINENO: checking ability to build shared libraries" >&5
16186 echo $ECHO_N "checking ability to build shared libraries... $ECHO_C" >&6
16187
16188 # and these are for particular systems
16189 case "$host_os" in
16190                 *linux*)
16191 cat >>confdefs.h <<\_ACEOF
16192 #define LINUX 1
16193 _ACEOF
16194
16195                         BLDSHARED="true"
16196                         LDSHFLAGS="-shared"
16197                         DYNEXP="-Wl,--export-dynamic"
16198                         PICFLAG="-fPIC"
16199                         SONAMEFLAG="-Wl,-soname="
16200                         cat >>confdefs.h <<\_ACEOF
16201 #define STAT_ST_BLOCKSIZE 512
16202 _ACEOF
16203
16204                 ;;
16205                 *solaris*)
16206 cat >>confdefs.h <<\_ACEOF
16207 #define SUNOS5 1
16208 _ACEOF
16209
16210                         BLDSHARED="true"
16211                         LDSHFLAGS="-G"
16212                         SONAMEFLAG="-h "
16213                         if test "${GCC}" = "yes"; then
16214                                 PICFLAG="-fPIC"
16215                                 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
16216                                         DYNEXP="-Wl,-E"
16217                                 fi
16218                         else
16219                                 PICFLAG="-KPIC"
16220                                 ## ${CFLAGS} added for building 64-bit shared
16221                                 ## libs using Sun's Compiler
16222                                 LDSHFLAGS="-G \${CFLAGS}"
16223                                 POBAD_CC=""
16224                                 PICSUFFIX="po.o"
16225                         fi
16226
16227 cat >>confdefs.h <<\_ACEOF
16228 #define STAT_ST_BLOCKSIZE 512
16229 _ACEOF
16230
16231                 ;;
16232                 *sunos*)
16233 cat >>confdefs.h <<\_ACEOF
16234 #define SUNOS4 1
16235 _ACEOF
16236
16237                         BLDSHARED="true"
16238                         LDSHFLAGS="-G"
16239                         SONAMEFLAG="-Wl,-h,"
16240                         PICFLAG="-KPIC"   # Is this correct for SunOS
16241                 ;;
16242                 *freebsd*)  BLDSHARED="true"
16243                         LDSHFLAGS="-shared"
16244                         DYNEXP="-Wl,--export-dynamic"
16245                         SONAMEFLAG="-Wl,-soname,"
16246                         PICFLAG="-fPIC -DPIC"
16247
16248 cat >>confdefs.h <<\_ACEOF
16249 #define STAT_ST_BLOCKSIZE 512
16250 _ACEOF
16251
16252                 ;;
16253                 *openbsd*)  BLDSHARED="true"
16254                         LDSHFLAGS="-shared"
16255                         DYNEXP="-Wl,-Bdynamic"
16256                         SONAMEFLAG="-Wl,-soname,"
16257                         PICFLAG="-fPIC"
16258
16259 cat >>confdefs.h <<\_ACEOF
16260 #define STAT_ST_BLOCKSIZE 512
16261 _ACEOF
16262
16263                 ;;
16264                 *irix*)
16265 cat >>confdefs.h <<\_ACEOF
16266 #define IRIX 1
16267 _ACEOF
16268
16269                         case "$host_os" in
16270                         *irix6*)
16271 cat >>confdefs.h <<\_ACEOF
16272 #define IRIX6 1
16273 _ACEOF
16274
16275                         ;;
16276                         esac
16277                         ATTEMPT_WRAP32_BUILD=yes
16278                         BLDSHARED="true"
16279                         LDSHFLAGS="-set_version sgi1.0 -shared"
16280                         SONAMEFLAG="-soname "
16281                         SHLD="\${LD}"
16282                         if test "${GCC}" = "yes"; then
16283                                 PICFLAG="-fPIC"
16284                         else
16285                                 PICFLAG="-KPIC"
16286                         fi
16287
16288 cat >>confdefs.h <<\_ACEOF
16289 #define STAT_ST_BLOCKSIZE 512
16290 _ACEOF
16291
16292                 ;;
16293                 *aix*)
16294 cat >>confdefs.h <<\_ACEOF
16295 #define AIX 1
16296 _ACEOF
16297
16298                         BLDSHARED="true"
16299                         LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
16300                         DYNEXP="-Wl,-brtl,-bexpall"
16301                         PICFLAG="-O2"
16302                         if test "${GCC}" != "yes"; then
16303                                 ## for funky AIX compiler using strncpy()
16304                                 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
16305                         fi
16306
16307
16308 cat >>confdefs.h <<\_ACEOF
16309 #define STAT_ST_BLOCKSIZE DEV_BSIZE
16310 _ACEOF
16311
16312                 ;;
16313                 *hpux*)
16314 cat >>confdefs.h <<\_ACEOF
16315 #define HPUX 1
16316 _ACEOF
16317
16318                         SHLIBEXT="sl"
16319                         # Use special PIC flags for the native HP-UX compiler.
16320                         if test $ac_cv_prog_cc_Ae = yes; then
16321                                 BLDSHARED="true"
16322                                 SHLD="/usr/bin/ld"
16323                                 LDSHFLAGS="-B symbolic -b -z"
16324                                 SONAMEFLAG="+h "
16325                                 PICFLAG="+z"
16326                         fi
16327                         DYNEXP="-Wl,-E"
16328
16329 cat >>confdefs.h <<\_ACEOF
16330 #define STAT_ST_BLOCKSIZE 8192
16331 _ACEOF
16332
16333                 ;;
16334                 *qnx*)
16335 cat >>confdefs.h <<\_ACEOF
16336 #define QNX 1
16337 _ACEOF
16338 ;;
16339                 *osf*)
16340 cat >>confdefs.h <<\_ACEOF
16341 #define OSF1 1
16342 _ACEOF
16343
16344                         BLDSHARED="true"
16345                         LDSHFLAGS="-shared"
16346                         SONAMEFLAG="-Wl,-soname,"
16347                         PICFLAG="-fPIC"
16348                 ;;
16349                 *sco*)
16350 cat >>confdefs.h <<\_ACEOF
16351 #define SCO 1
16352 _ACEOF
16353 ;;
16354                 *unixware*)
16355 cat >>confdefs.h <<\_ACEOF
16356 #define UNIXWARE 1
16357 _ACEOF
16358
16359                         BLDSHARED="true"
16360                         LDSHFLAGS="-shared"
16361                         SONAMEFLAG="-Wl,-soname,"
16362                         PICFLAG="-KPIC"
16363                 ;;
16364                 *next2*)
16365 cat >>confdefs.h <<\_ACEOF
16366 #define NEXT2 1
16367 _ACEOF
16368 ;;
16369                 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
16370 set dummy groff; ac_word=$2
16371 echo "$as_me:$LINENO: checking for $ac_word" >&5
16372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16373 if test "${ac_cv_prog_ROFF+set}" = set; then
16374   echo $ECHO_N "(cached) $ECHO_C" >&6
16375 else
16376   if test -n "$ROFF"; then
16377   ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
16378 else
16379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16380 for as_dir in $PATH
16381 do
16382   IFS=$as_save_IFS
16383   test -z "$as_dir" && as_dir=.
16384   for ac_exec_ext in '' $ac_executable_extensions; do
16385   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16386     ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
16387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16388     break 2
16389   fi
16390 done
16391 done
16392
16393 fi
16394 fi
16395 ROFF=$ac_cv_prog_ROFF
16396 if test -n "$ROFF"; then
16397   echo "$as_me:$LINENO: result: $ROFF" >&5
16398 echo "${ECHO_T}$ROFF" >&6
16399 else
16400   echo "$as_me:$LINENO: result: no" >&5
16401 echo "${ECHO_T}no" >&6
16402 fi
16403 ;;
16404                 *sysv4*)
16405 cat >>confdefs.h <<\_ACEOF
16406 #define SYSV 1
16407 _ACEOF
16408
16409                         case "$host" in
16410                                 *-univel-*)     if  test "$GCC" != yes ; then
16411
16412 cat >>confdefs.h <<\_ACEOF
16413 #define HAVE_MEMSET 1
16414 _ACEOF
16415
16416                                         fi
16417                                         LDSHFLAGS="-G"
16418                                         DYNEXP="-Bexport"
16419                                 ;;
16420                                 *mips-sni-sysv4*)
16421 cat >>confdefs.h <<\_ACEOF
16422 #define RELIANTUNIX 1
16423 _ACEOF
16424 ;;
16425                         esac
16426                 ;;
16427
16428                 *sysv5*)
16429 cat >>confdefs.h <<\_ACEOF
16430 #define SYSV 1
16431 _ACEOF
16432
16433                         if  test "$GCC" != yes ; then
16434
16435 cat >>confdefs.h <<\_ACEOF
16436 #define HAVE_MEMSET 1
16437 _ACEOF
16438
16439                         fi
16440                         LDSHFLAGS="-G"
16441                 ;;
16442 esac
16443
16444 echo "$as_me:$LINENO: result: $BLDSHARED" >&5
16445 echo "${ECHO_T}$BLDSHARED" >&6
16446 echo "$as_me:$LINENO: checking linker flags for shared libraries" >&5
16447 echo $ECHO_N "checking linker flags for shared libraries... $ECHO_C" >&6
16448 echo "$as_me:$LINENO: result: $LDSHFLAGS" >&5
16449 echo "${ECHO_T}$LDSHFLAGS" >&6
16450 echo "$as_me:$LINENO: checking compiler flags for position-independent code" >&5
16451 echo $ECHO_N "checking compiler flags for position-independent code... $ECHO_C" >&6
16452 echo "$as_me:$LINENO: result: $PICFLAGS" >&5
16453 echo "${ECHO_T}$PICFLAGS" >&6
16454
16455 #######################################################
16456 # test whether building a shared library actually works
16457 if test $BLDSHARED = true; then
16458 echo "$as_me:$LINENO: checking whether building shared libraries actually works" >&5
16459 echo $ECHO_N "checking whether building shared libraries actually works... $ECHO_C" >&6
16460 if test "${ac_cv_shlib_works+set}" = set; then
16461   echo $ECHO_N "(cached) $ECHO_C" >&6
16462 else
16463
16464    ac_cv_shlib_works=no
16465    # try building a trivial shared library
16466    if test "$PICSUFFIX" = "po"; then
16467      $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
16468        $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po &&
16469        ac_cv_shlib_works=yes
16470    else
16471      $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.$PICSUFFIX ${srcdir-.}/tests/shlib.c &&
16472        mv shlib.$PICSUFFIX shlib.po &&
16473        $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po &&
16474        ac_cv_shlib_works=yes
16475    fi
16476    rm -f shlib.so shlib.po
16477
16478 fi
16479 echo "$as_me:$LINENO: result: $ac_cv_shlib_works" >&5
16480 echo "${ECHO_T}$ac_cv_shlib_works" >&6
16481 if test $ac_cv_shlib_works = no; then
16482    BLDSHARED=false
16483 fi
16484 fi
16485
16486
16487 # this updates our target list if we can build shared libs
16488 if test $BLDSHARED = true; then
16489    LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
16490 else
16491    LIBSMBCLIENT_SHARED=
16492 fi
16493
16494 ################
16495
16496 echo "$as_me:$LINENO: checking for long long" >&5
16497 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16498 if test "${samba_cv_have_longlong+set}" = set; then
16499   echo $ECHO_N "(cached) $ECHO_C" >&6
16500 else
16501
16502 if test "$cross_compiling" = yes; then
16503   samba_cv_have_longlong=cross
16504 else
16505   cat >conftest.$ac_ext <<_ACEOF
16506 #line $LINENO "configure"
16507 #include "confdefs.h"
16508 #include <stdio.h>
16509 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
16510 _ACEOF
16511 rm -f conftest$ac_exeext
16512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16513   (eval $ac_link) 2>&5
16514   ac_status=$?
16515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518   (eval $ac_try) 2>&5
16519   ac_status=$?
16520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521   (exit $ac_status); }; }; then
16522   samba_cv_have_longlong=yes
16523 else
16524   echo "$as_me: program exited with status $ac_status" >&5
16525 echo "$as_me: failed program was:" >&5
16526 cat conftest.$ac_ext >&5
16527 ( exit $ac_status )
16528 samba_cv_have_longlong=no
16529 fi
16530 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16531 fi
16532 fi
16533 echo "$as_me:$LINENO: result: $samba_cv_have_longlong" >&5
16534 echo "${ECHO_T}$samba_cv_have_longlong" >&6
16535 if test x"$samba_cv_have_longlong" = x"yes"; then
16536
16537 cat >>confdefs.h <<\_ACEOF
16538 #define HAVE_LONGLONG 1
16539 _ACEOF
16540
16541 fi
16542
16543 #
16544 # Check if the compiler supports the LL prefix on long long integers.
16545 # AIX needs this.
16546
16547 echo "$as_me:$LINENO: checking for LL suffix on long long integers" >&5
16548 echo $ECHO_N "checking for LL suffix on long long integers... $ECHO_C" >&6
16549 if test "${samba_cv_compiler_supports_ll+set}" = set; then
16550   echo $ECHO_N "(cached) $ECHO_C" >&6
16551 else
16552
16553     cat >conftest.$ac_ext <<_ACEOF
16554 #line $LINENO "configure"
16555 #include "confdefs.h"
16556 #include <stdio.h>
16557 #ifdef F77_DUMMY_MAIN
16558 #  ifdef __cplusplus
16559      extern "C"
16560 #  endif
16561    int F77_DUMMY_MAIN() { return 1; }
16562 #endif
16563 int
16564 main ()
16565 {
16566 long long i = 0x8000000000LL
16567   ;
16568   return 0;
16569 }
16570 _ACEOF
16571 rm -f conftest.$ac_objext
16572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16573   (eval $ac_compile) 2>&5
16574   ac_status=$?
16575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576   (exit $ac_status); } &&
16577          { ac_try='test -s conftest.$ac_objext'
16578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16579   (eval $ac_try) 2>&5
16580   ac_status=$?
16581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582   (exit $ac_status); }; }; then
16583   samba_cv_compiler_supports_ll=yes
16584 else
16585   echo "$as_me: failed program was:" >&5
16586 cat conftest.$ac_ext >&5
16587 samba_cv_compiler_supports_ll=no
16588 fi
16589 rm -f conftest.$ac_objext conftest.$ac_ext
16590 fi
16591 echo "$as_me:$LINENO: result: $samba_cv_compiler_supports_ll" >&5
16592 echo "${ECHO_T}$samba_cv_compiler_supports_ll" >&6
16593 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
16594
16595 cat >>confdefs.h <<\_ACEOF
16596 #define COMPILER_SUPPORTS_LL 1
16597 _ACEOF
16598
16599 fi
16600
16601
16602 echo "$as_me:$LINENO: checking for 64 bit off_t" >&5
16603 echo $ECHO_N "checking for 64 bit off_t... $ECHO_C" >&6
16604 if test "${samba_cv_SIZEOF_OFF_T+set}" = set; then
16605   echo $ECHO_N "(cached) $ECHO_C" >&6
16606 else
16607
16608 if test "$cross_compiling" = yes; then
16609   samba_cv_SIZEOF_OFF_T=cross
16610 else
16611   cat >conftest.$ac_ext <<_ACEOF
16612 #line $LINENO "configure"
16613 #include "confdefs.h"
16614 #include <stdio.h>
16615 #include <sys/stat.h>
16616 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
16617 _ACEOF
16618 rm -f conftest$ac_exeext
16619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16620   (eval $ac_link) 2>&5
16621   ac_status=$?
16622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625   (eval $ac_try) 2>&5
16626   ac_status=$?
16627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628   (exit $ac_status); }; }; then
16629   samba_cv_SIZEOF_OFF_T=yes
16630 else
16631   echo "$as_me: program exited with status $ac_status" >&5
16632 echo "$as_me: failed program was:" >&5
16633 cat conftest.$ac_ext >&5
16634 ( exit $ac_status )
16635 samba_cv_SIZEOF_OFF_T=no
16636 fi
16637 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16638 fi
16639 fi
16640 echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_OFF_T" >&5
16641 echo "${ECHO_T}$samba_cv_SIZEOF_OFF_T" >&6
16642 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
16643
16644 cat >>confdefs.h <<\_ACEOF
16645 #define SIZEOF_OFF_T 8
16646 _ACEOF
16647
16648 fi
16649
16650 echo "$as_me:$LINENO: checking for off64_t" >&5
16651 echo $ECHO_N "checking for off64_t... $ECHO_C" >&6
16652 if test "${samba_cv_HAVE_OFF64_T+set}" = set; then
16653   echo $ECHO_N "(cached) $ECHO_C" >&6
16654 else
16655
16656 if test "$cross_compiling" = yes; then
16657   samba_cv_HAVE_OFF64_T=cross
16658 else
16659   cat >conftest.$ac_ext <<_ACEOF
16660 #line $LINENO "configure"
16661 #include "confdefs.h"
16662
16663 #if defined(HAVE_UNISTD_H)
16664 #include <unistd.h>
16665 #endif
16666 #include <stdio.h>
16667 #include <sys/stat.h>
16668 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
16669 _ACEOF
16670 rm -f conftest$ac_exeext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16672   (eval $ac_link) 2>&5
16673   ac_status=$?
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16677   (eval $ac_try) 2>&5
16678   ac_status=$?
16679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680   (exit $ac_status); }; }; then
16681   samba_cv_HAVE_OFF64_T=yes
16682 else
16683   echo "$as_me: program exited with status $ac_status" >&5
16684 echo "$as_me: failed program was:" >&5
16685 cat conftest.$ac_ext >&5
16686 ( exit $ac_status )
16687 samba_cv_HAVE_OFF64_T=no
16688 fi
16689 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16690 fi
16691 fi
16692 echo "$as_me:$LINENO: result: $samba_cv_HAVE_OFF64_T" >&5
16693 echo "${ECHO_T}$samba_cv_HAVE_OFF64_T" >&6
16694 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
16695
16696 cat >>confdefs.h <<\_ACEOF
16697 #define HAVE_OFF64_T 1
16698 _ACEOF
16699
16700 fi
16701
16702 echo "$as_me:$LINENO: checking for 64 bit ino_t" >&5
16703 echo $ECHO_N "checking for 64 bit ino_t... $ECHO_C" >&6
16704 if test "${samba_cv_SIZEOF_INO_T+set}" = set; then
16705   echo $ECHO_N "(cached) $ECHO_C" >&6
16706 else
16707
16708 if test "$cross_compiling" = yes; then
16709   samba_cv_SIZEOF_INO_T=cross
16710 else
16711   cat >conftest.$ac_ext <<_ACEOF
16712 #line $LINENO "configure"
16713 #include "confdefs.h"
16714 #include <stdio.h>
16715 #include <sys/stat.h>
16716 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
16717 _ACEOF
16718 rm -f conftest$ac_exeext
16719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16720   (eval $ac_link) 2>&5
16721   ac_status=$?
16722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725   (eval $ac_try) 2>&5
16726   ac_status=$?
16727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728   (exit $ac_status); }; }; then
16729   samba_cv_SIZEOF_INO_T=yes
16730 else
16731   echo "$as_me: program exited with status $ac_status" >&5
16732 echo "$as_me: failed program was:" >&5
16733 cat conftest.$ac_ext >&5
16734 ( exit $ac_status )
16735 samba_cv_SIZEOF_INO_T=no
16736 fi
16737 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16738 fi
16739 fi
16740 echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_INO_T" >&5
16741 echo "${ECHO_T}$samba_cv_SIZEOF_INO_T" >&6
16742 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
16743
16744 cat >>confdefs.h <<\_ACEOF
16745 #define SIZEOF_INO_T 8
16746 _ACEOF
16747
16748 fi
16749
16750 echo "$as_me:$LINENO: checking for ino64_t" >&5
16751 echo $ECHO_N "checking for ino64_t... $ECHO_C" >&6
16752 if test "${samba_cv_HAVE_INO64_T+set}" = set; then
16753   echo $ECHO_N "(cached) $ECHO_C" >&6
16754 else
16755
16756 if test "$cross_compiling" = yes; then
16757   samba_cv_HAVE_INO64_T=cross
16758 else
16759   cat >conftest.$ac_ext <<_ACEOF
16760 #line $LINENO "configure"
16761 #include "confdefs.h"
16762
16763 #if defined(HAVE_UNISTD_H)
16764 #include <unistd.h>
16765 #endif
16766 #include <stdio.h>
16767 #include <sys/stat.h>
16768 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
16769 _ACEOF
16770 rm -f conftest$ac_exeext
16771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16772   (eval $ac_link) 2>&5
16773   ac_status=$?
16774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16777   (eval $ac_try) 2>&5
16778   ac_status=$?
16779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780   (exit $ac_status); }; }; then
16781   samba_cv_HAVE_INO64_T=yes
16782 else
16783   echo "$as_me: program exited with status $ac_status" >&5
16784 echo "$as_me: failed program was:" >&5
16785 cat conftest.$ac_ext >&5
16786 ( exit $ac_status )
16787 samba_cv_HAVE_INO64_T=no
16788 fi
16789 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16790 fi
16791 fi
16792 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INO64_T" >&5
16793 echo "${ECHO_T}$samba_cv_HAVE_INO64_T" >&6
16794 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
16795
16796 cat >>confdefs.h <<\_ACEOF
16797 #define HAVE_INO64_T 1
16798 _ACEOF
16799
16800 fi
16801
16802 echo "$as_me:$LINENO: checking for dev64_t" >&5
16803 echo $ECHO_N "checking for dev64_t... $ECHO_C" >&6
16804 if test "${samba_cv_HAVE_DEV64_T+set}" = set; then
16805   echo $ECHO_N "(cached) $ECHO_C" >&6
16806 else
16807
16808 if test "$cross_compiling" = yes; then
16809   samba_cv_HAVE_DEV64_T=cross
16810 else
16811   cat >conftest.$ac_ext <<_ACEOF
16812 #line $LINENO "configure"
16813 #include "confdefs.h"
16814
16815 #if defined(HAVE_UNISTD_H)
16816 #include <unistd.h>
16817 #endif
16818 #include <stdio.h>
16819 #include <sys/stat.h>
16820 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
16821 _ACEOF
16822 rm -f conftest$ac_exeext
16823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16824   (eval $ac_link) 2>&5
16825   ac_status=$?
16826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829   (eval $ac_try) 2>&5
16830   ac_status=$?
16831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832   (exit $ac_status); }; }; then
16833   samba_cv_HAVE_DEV64_T=yes
16834 else
16835   echo "$as_me: program exited with status $ac_status" >&5
16836 echo "$as_me: failed program was:" >&5
16837 cat conftest.$ac_ext >&5
16838 ( exit $ac_status )
16839 samba_cv_HAVE_DEV64_T=no
16840 fi
16841 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16842 fi
16843 fi
16844 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEV64_T" >&5
16845 echo "${ECHO_T}$samba_cv_HAVE_DEV64_T" >&6
16846 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
16847
16848 cat >>confdefs.h <<\_ACEOF
16849 #define HAVE_DEV64_T 1
16850 _ACEOF
16851
16852 fi
16853
16854 echo "$as_me:$LINENO: checking for struct dirent64" >&5
16855 echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6
16856 if test "${samba_cv_HAVE_STRUCT_DIRENT64+set}" = set; then
16857   echo $ECHO_N "(cached) $ECHO_C" >&6
16858 else
16859
16860 cat >conftest.$ac_ext <<_ACEOF
16861 #line $LINENO "configure"
16862 #include "confdefs.h"
16863
16864 #if defined(HAVE_UNISTD_H)
16865 #include <unistd.h>
16866 #endif
16867 #include <sys/types.h>
16868 #include <dirent.h>
16869 #ifdef F77_DUMMY_MAIN
16870 #  ifdef __cplusplus
16871      extern "C"
16872 #  endif
16873    int F77_DUMMY_MAIN() { return 1; }
16874 #endif
16875 int
16876 main ()
16877 {
16878 struct dirent64 de;
16879   ;
16880   return 0;
16881 }
16882 _ACEOF
16883 rm -f conftest.$ac_objext
16884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16885   (eval $ac_compile) 2>&5
16886   ac_status=$?
16887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888   (exit $ac_status); } &&
16889          { ac_try='test -s conftest.$ac_objext'
16890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16891   (eval $ac_try) 2>&5
16892   ac_status=$?
16893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894   (exit $ac_status); }; }; then
16895   samba_cv_HAVE_STRUCT_DIRENT64=yes
16896 else
16897   echo "$as_me: failed program was:" >&5
16898 cat conftest.$ac_ext >&5
16899 samba_cv_HAVE_STRUCT_DIRENT64=no
16900 fi
16901 rm -f conftest.$ac_objext conftest.$ac_ext
16902 fi
16903 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_DIRENT64" >&5
16904 echo "${ECHO_T}$samba_cv_HAVE_STRUCT_DIRENT64" >&6
16905 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
16906
16907 cat >>confdefs.h <<\_ACEOF
16908 #define HAVE_STRUCT_DIRENT64 1
16909 _ACEOF
16910
16911 fi
16912
16913 echo "$as_me:$LINENO: checking for major macro" >&5
16914 echo $ECHO_N "checking for major macro... $ECHO_C" >&6
16915 if test "${samba_cv_HAVE_DEVICE_MAJOR_FN+set}" = set; then
16916   echo $ECHO_N "(cached) $ECHO_C" >&6
16917 else
16918
16919 if test "$cross_compiling" = yes; then
16920   samba_cv_HAVE_DEVICE_MAJOR_FN=cross
16921 else
16922   cat >conftest.$ac_ext <<_ACEOF
16923 #line $LINENO "configure"
16924 #include "confdefs.h"
16925
16926 #if defined(HAVE_UNISTD_H)
16927 #include <unistd.h>
16928 #endif
16929 #include <sys/types.h>
16930 main() { dev_t dev; int i = major(dev); return 0; }
16931 _ACEOF
16932 rm -f conftest$ac_exeext
16933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16934   (eval $ac_link) 2>&5
16935   ac_status=$?
16936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939   (eval $ac_try) 2>&5
16940   ac_status=$?
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); }; }; then
16943   samba_cv_HAVE_DEVICE_MAJOR_FN=yes
16944 else
16945   echo "$as_me: program exited with status $ac_status" >&5
16946 echo "$as_me: failed program was:" >&5
16947 cat conftest.$ac_ext >&5
16948 ( exit $ac_status )
16949 samba_cv_HAVE_DEVICE_MAJOR_FN=no
16950 fi
16951 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16952 fi
16953 fi
16954 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MAJOR_FN" >&5
16955 echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MAJOR_FN" >&6
16956 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
16957
16958 cat >>confdefs.h <<\_ACEOF
16959 #define HAVE_DEVICE_MAJOR_FN 1
16960 _ACEOF
16961
16962 fi
16963
16964 echo "$as_me:$LINENO: checking for minor macro" >&5
16965 echo $ECHO_N "checking for minor macro... $ECHO_C" >&6
16966 if test "${samba_cv_HAVE_DEVICE_MINOR_FN+set}" = set; then
16967   echo $ECHO_N "(cached) $ECHO_C" >&6
16968 else
16969
16970 if test "$cross_compiling" = yes; then
16971   samba_cv_HAVE_DEVICE_MINOR_FN=cross
16972 else
16973   cat >conftest.$ac_ext <<_ACEOF
16974 #line $LINENO "configure"
16975 #include "confdefs.h"
16976
16977 #if defined(HAVE_UNISTD_H)
16978 #include <unistd.h>
16979 #endif
16980 #include <sys/types.h>
16981 main() { dev_t dev; int i = minor(dev); return 0; }
16982 _ACEOF
16983 rm -f conftest$ac_exeext
16984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16985   (eval $ac_link) 2>&5
16986   ac_status=$?
16987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990   (eval $ac_try) 2>&5
16991   ac_status=$?
16992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993   (exit $ac_status); }; }; then
16994   samba_cv_HAVE_DEVICE_MINOR_FN=yes
16995 else
16996   echo "$as_me: program exited with status $ac_status" >&5
16997 echo "$as_me: failed program was:" >&5
16998 cat conftest.$ac_ext >&5
16999 ( exit $ac_status )
17000 samba_cv_HAVE_DEVICE_MINOR_FN=no
17001 fi
17002 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17003 fi
17004 fi
17005 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MINOR_FN" >&5
17006 echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MINOR_FN" >&6
17007 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
17008
17009 cat >>confdefs.h <<\_ACEOF
17010 #define HAVE_DEVICE_MINOR_FN 1
17011 _ACEOF
17012
17013 fi
17014
17015 echo "$as_me:$LINENO: checking for unsigned char" >&5
17016 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
17017 if test "${samba_cv_HAVE_UNSIGNED_CHAR+set}" = set; then
17018   echo $ECHO_N "(cached) $ECHO_C" >&6
17019 else
17020
17021 if test "$cross_compiling" = yes; then
17022   samba_cv_HAVE_UNSIGNED_CHAR=cross
17023 else
17024   cat >conftest.$ac_ext <<_ACEOF
17025 #line $LINENO "configure"
17026 #include "confdefs.h"
17027 #include <stdio.h>
17028 main() { char c; c=250; exit((c > 0)?0:1); }
17029 _ACEOF
17030 rm -f conftest$ac_exeext
17031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17032   (eval $ac_link) 2>&5
17033   ac_status=$?
17034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037   (eval $ac_try) 2>&5
17038   ac_status=$?
17039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040   (exit $ac_status); }; }; then
17041   samba_cv_HAVE_UNSIGNED_CHAR=yes
17042 else
17043   echo "$as_me: program exited with status $ac_status" >&5
17044 echo "$as_me: failed program was:" >&5
17045 cat conftest.$ac_ext >&5
17046 ( exit $ac_status )
17047 samba_cv_HAVE_UNSIGNED_CHAR=no
17048 fi
17049 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17050 fi
17051 fi
17052 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UNSIGNED_CHAR" >&5
17053 echo "${ECHO_T}$samba_cv_HAVE_UNSIGNED_CHAR" >&6
17054 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
17055
17056 cat >>confdefs.h <<\_ACEOF
17057 #define HAVE_UNSIGNED_CHAR 1
17058 _ACEOF
17059
17060 fi
17061
17062 echo "$as_me:$LINENO: checking for sin_len in sock" >&5
17063 echo $ECHO_N "checking for sin_len in sock... $ECHO_C" >&6
17064 if test "${samba_cv_HAVE_SOCK_SIN_LEN+set}" = set; then
17065   echo $ECHO_N "(cached) $ECHO_C" >&6
17066 else
17067
17068 cat >conftest.$ac_ext <<_ACEOF
17069 #line $LINENO "configure"
17070 #include "confdefs.h"
17071 #include <sys/types.h>
17072 #include <sys/socket.h>
17073 #include <netinet/in.h>
17074 #ifdef F77_DUMMY_MAIN
17075 #  ifdef __cplusplus
17076      extern "C"
17077 #  endif
17078    int F77_DUMMY_MAIN() { return 1; }
17079 #endif
17080 int
17081 main ()
17082 {
17083 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
17084   ;
17085   return 0;
17086 }
17087 _ACEOF
17088 rm -f conftest.$ac_objext
17089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17090   (eval $ac_compile) 2>&5
17091   ac_status=$?
17092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093   (exit $ac_status); } &&
17094          { ac_try='test -s conftest.$ac_objext'
17095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17096   (eval $ac_try) 2>&5
17097   ac_status=$?
17098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099   (exit $ac_status); }; }; then
17100   samba_cv_HAVE_SOCK_SIN_LEN=yes
17101 else
17102   echo "$as_me: failed program was:" >&5
17103 cat conftest.$ac_ext >&5
17104 samba_cv_HAVE_SOCK_SIN_LEN=no
17105 fi
17106 rm -f conftest.$ac_objext conftest.$ac_ext
17107 fi
17108 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SOCK_SIN_LEN" >&5
17109 echo "${ECHO_T}$samba_cv_HAVE_SOCK_SIN_LEN" >&6
17110 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
17111
17112 cat >>confdefs.h <<\_ACEOF
17113 #define HAVE_SOCK_SIN_LEN 1
17114 _ACEOF
17115
17116 fi
17117
17118 echo "$as_me:$LINENO: checking whether seekdir returns void" >&5
17119 echo $ECHO_N "checking whether seekdir returns void... $ECHO_C" >&6
17120 if test "${samba_cv_SEEKDIR_RETURNS_VOID+set}" = set; then
17121   echo $ECHO_N "(cached) $ECHO_C" >&6
17122 else
17123
17124 cat >conftest.$ac_ext <<_ACEOF
17125 #line $LINENO "configure"
17126 #include "confdefs.h"
17127 #include <sys/types.h>
17128 #include <dirent.h>
17129 void seekdir(DIR *d, long loc) { return; }
17130 #ifdef F77_DUMMY_MAIN
17131 #  ifdef __cplusplus
17132      extern "C"
17133 #  endif
17134    int F77_DUMMY_MAIN() { return 1; }
17135 #endif
17136 int
17137 main ()
17138 {
17139 return 0;
17140   ;
17141   return 0;
17142 }
17143 _ACEOF
17144 rm -f conftest.$ac_objext
17145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17146   (eval $ac_compile) 2>&5
17147   ac_status=$?
17148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149   (exit $ac_status); } &&
17150          { ac_try='test -s conftest.$ac_objext'
17151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152   (eval $ac_try) 2>&5
17153   ac_status=$?
17154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155   (exit $ac_status); }; }; then
17156   samba_cv_SEEKDIR_RETURNS_VOID=yes
17157 else
17158   echo "$as_me: failed program was:" >&5
17159 cat conftest.$ac_ext >&5
17160 samba_cv_SEEKDIR_RETURNS_VOID=no
17161 fi
17162 rm -f conftest.$ac_objext conftest.$ac_ext
17163 fi
17164 echo "$as_me:$LINENO: result: $samba_cv_SEEKDIR_RETURNS_VOID" >&5
17165 echo "${ECHO_T}$samba_cv_SEEKDIR_RETURNS_VOID" >&6
17166 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
17167
17168 cat >>confdefs.h <<\_ACEOF
17169 #define SEEKDIR_RETURNS_VOID 1
17170 _ACEOF
17171
17172 fi
17173
17174 echo "$as_me:$LINENO: checking for __FILE__ macro" >&5
17175 echo $ECHO_N "checking for __FILE__ macro... $ECHO_C" >&6
17176 if test "${samba_cv_HAVE_FILE_MACRO+set}" = set; then
17177   echo $ECHO_N "(cached) $ECHO_C" >&6
17178 else
17179
17180 cat >conftest.$ac_ext <<_ACEOF
17181 #line $LINENO "configure"
17182 #include "confdefs.h"
17183 #include <stdio.h>
17184 #ifdef F77_DUMMY_MAIN
17185 #  ifdef __cplusplus
17186      extern "C"
17187 #  endif
17188    int F77_DUMMY_MAIN() { return 1; }
17189 #endif
17190 int
17191 main ()
17192 {
17193 printf("%s\n", __FILE__);
17194   ;
17195   return 0;
17196 }
17197 _ACEOF
17198 rm -f conftest.$ac_objext
17199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17200   (eval $ac_compile) 2>&5
17201   ac_status=$?
17202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203   (exit $ac_status); } &&
17204          { ac_try='test -s conftest.$ac_objext'
17205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17206   (eval $ac_try) 2>&5
17207   ac_status=$?
17208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209   (exit $ac_status); }; }; then
17210   samba_cv_HAVE_FILE_MACRO=yes
17211 else
17212   echo "$as_me: failed program was:" >&5
17213 cat conftest.$ac_ext >&5
17214 samba_cv_HAVE_FILE_MACRO=no
17215 fi
17216 rm -f conftest.$ac_objext conftest.$ac_ext
17217 fi
17218 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FILE_MACRO" >&5
17219 echo "${ECHO_T}$samba_cv_HAVE_FILE_MACRO" >&6
17220 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
17221
17222 cat >>confdefs.h <<\_ACEOF
17223 #define HAVE_FILE_MACRO 1
17224 _ACEOF
17225
17226 fi
17227
17228 echo "$as_me:$LINENO: checking for __FUNCTION__ macro" >&5
17229 echo $ECHO_N "checking for __FUNCTION__ macro... $ECHO_C" >&6
17230 if test "${samba_cv_HAVE_FUNCTION_MACRO+set}" = set; then
17231   echo $ECHO_N "(cached) $ECHO_C" >&6
17232 else
17233
17234 cat >conftest.$ac_ext <<_ACEOF
17235 #line $LINENO "configure"
17236 #include "confdefs.h"
17237 #include <stdio.h>
17238 #ifdef F77_DUMMY_MAIN
17239 #  ifdef __cplusplus
17240      extern "C"
17241 #  endif
17242    int F77_DUMMY_MAIN() { return 1; }
17243 #endif
17244 int
17245 main ()
17246 {
17247 printf("%s\n", __FUNCTION__);
17248   ;
17249   return 0;
17250 }
17251 _ACEOF
17252 rm -f conftest.$ac_objext
17253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17254   (eval $ac_compile) 2>&5
17255   ac_status=$?
17256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257   (exit $ac_status); } &&
17258          { ac_try='test -s conftest.$ac_objext'
17259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260   (eval $ac_try) 2>&5
17261   ac_status=$?
17262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263   (exit $ac_status); }; }; then
17264   samba_cv_HAVE_FUNCTION_MACRO=yes
17265 else
17266   echo "$as_me: failed program was:" >&5
17267 cat conftest.$ac_ext >&5
17268 samba_cv_HAVE_FUNCTION_MACRO=no
17269 fi
17270 rm -f conftest.$ac_objext conftest.$ac_ext
17271 fi
17272 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FUNCTION_MACRO" >&5
17273 echo "${ECHO_T}$samba_cv_HAVE_FUNCTION_MACRO" >&6
17274 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
17275
17276 cat >>confdefs.h <<\_ACEOF
17277 #define HAVE_FUNCTION_MACRO 1
17278 _ACEOF
17279
17280 fi
17281
17282 echo "$as_me:$LINENO: checking if gettimeofday takes tz argument" >&5
17283 echo $ECHO_N "checking if gettimeofday takes tz argument... $ECHO_C" >&6
17284 if test "${samba_cv_HAVE_GETTIMEOFDAY_TZ+set}" = set; then
17285   echo $ECHO_N "(cached) $ECHO_C" >&6
17286 else
17287
17288 if test "$cross_compiling" = yes; then
17289   samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
17290 else
17291   cat >conftest.$ac_ext <<_ACEOF
17292 #line $LINENO "configure"
17293 #include "confdefs.h"
17294
17295 #include <sys/time.h>
17296 #include <unistd.h>
17297 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
17298 _ACEOF
17299 rm -f conftest$ac_exeext
17300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17301   (eval $ac_link) 2>&5
17302   ac_status=$?
17303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306   (eval $ac_try) 2>&5
17307   ac_status=$?
17308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309   (exit $ac_status); }; }; then
17310   samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
17311 else
17312   echo "$as_me: program exited with status $ac_status" >&5
17313 echo "$as_me: failed program was:" >&5
17314 cat conftest.$ac_ext >&5
17315 ( exit $ac_status )
17316 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
17317 fi
17318 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17319 fi
17320 fi
17321 echo "$as_me:$LINENO: result: $samba_cv_HAVE_GETTIMEOFDAY_TZ" >&5
17322 echo "${ECHO_T}$samba_cv_HAVE_GETTIMEOFDAY_TZ" >&6
17323 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
17324
17325 cat >>confdefs.h <<\_ACEOF
17326 #define HAVE_GETTIMEOFDAY_TZ 1
17327 _ACEOF
17328
17329 fi
17330
17331 echo "$as_me:$LINENO: checking for __va_copy" >&5
17332 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
17333 if test "${samba_cv_HAVE_VA_COPY+set}" = set; then
17334   echo $ECHO_N "(cached) $ECHO_C" >&6
17335 else
17336
17337 cat >conftest.$ac_ext <<_ACEOF
17338 #line $LINENO "configure"
17339 #include "confdefs.h"
17340 #include <stdarg.h>
17341 va_list ap1,ap2;
17342 #ifdef F77_DUMMY_MAIN
17343 #  ifdef __cplusplus
17344      extern "C"
17345 #  endif
17346    int F77_DUMMY_MAIN() { return 1; }
17347 #endif
17348 int
17349 main ()
17350 {
17351 __va_copy(ap1,ap2);
17352   ;
17353   return 0;
17354 }
17355 _ACEOF
17356 rm -f conftest.$ac_objext conftest$ac_exeext
17357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17358   (eval $ac_link) 2>&5
17359   ac_status=$?
17360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361   (exit $ac_status); } &&
17362          { ac_try='test -s conftest$ac_exeext'
17363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364   (eval $ac_try) 2>&5
17365   ac_status=$?
17366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367   (exit $ac_status); }; }; then
17368   samba_cv_HAVE_VA_COPY=yes
17369 else
17370   echo "$as_me: failed program was:" >&5
17371 cat conftest.$ac_ext >&5
17372 samba_cv_HAVE_VA_COPY=no
17373 fi
17374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17375 fi
17376 echo "$as_me:$LINENO: result: $samba_cv_HAVE_VA_COPY" >&5
17377 echo "${ECHO_T}$samba_cv_HAVE_VA_COPY" >&6
17378 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
17379
17380 cat >>confdefs.h <<\_ACEOF
17381 #define HAVE_VA_COPY 1
17382 _ACEOF
17383
17384 fi
17385
17386 echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
17387 echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6
17388 if test "${samba_cv_HAVE_C99_VSNPRINTF+set}" = set; then
17389   echo $ECHO_N "(cached) $ECHO_C" >&6
17390 else
17391
17392 if test "$cross_compiling" = yes; then
17393   samba_cv_HAVE_C99_VSNPRINTF=cross
17394 else
17395   cat >conftest.$ac_ext <<_ACEOF
17396 #line $LINENO "configure"
17397 #include "confdefs.h"
17398
17399 #include <sys/types.h>
17400 #include <stdarg.h>
17401 void foo(const char *format, ...) {
17402        va_list ap;
17403        int len;
17404        char buf[5];
17405
17406        va_start(ap, format);
17407        len = vsnprintf(buf, 0, format, ap);
17408        va_end(ap);
17409        if (len != 5) exit(1);
17410
17411        va_start(ap, format);
17412        len = vsnprintf(0, 0, format, ap);
17413        va_end(ap);
17414        if (len != 5) exit(1);
17415
17416        if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
17417
17418        exit(0);
17419 }
17420 main() { foo("hello"); }
17421
17422 _ACEOF
17423 rm -f conftest$ac_exeext
17424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17425   (eval $ac_link) 2>&5
17426   ac_status=$?
17427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17430   (eval $ac_try) 2>&5
17431   ac_status=$?
17432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433   (exit $ac_status); }; }; then
17434   samba_cv_HAVE_C99_VSNPRINTF=yes
17435 else
17436   echo "$as_me: program exited with status $ac_status" >&5
17437 echo "$as_me: failed program was:" >&5
17438 cat conftest.$ac_ext >&5
17439 ( exit $ac_status )
17440 samba_cv_HAVE_C99_VSNPRINTF=no
17441 fi
17442 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17443 fi
17444 fi
17445 echo "$as_me:$LINENO: result: $samba_cv_HAVE_C99_VSNPRINTF" >&5
17446 echo "${ECHO_T}$samba_cv_HAVE_C99_VSNPRINTF" >&6
17447 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
17448
17449 cat >>confdefs.h <<\_ACEOF
17450 #define HAVE_C99_VSNPRINTF 1
17451 _ACEOF
17452
17453 fi
17454
17455 echo "$as_me:$LINENO: checking for broken readdir" >&5
17456 echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6
17457 if test "${samba_cv_HAVE_BROKEN_READDIR+set}" = set; then
17458   echo $ECHO_N "(cached) $ECHO_C" >&6
17459 else
17460
17461 if test "$cross_compiling" = yes; then
17462   samba_cv_HAVE_BROKEN_READDIR=cross
17463 else
17464   cat >conftest.$ac_ext <<_ACEOF
17465 #line $LINENO "configure"
17466 #include "confdefs.h"
17467 #include <sys/types.h>
17468 #include <dirent.h>
17469 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
17470 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
17471 di->d_name[0] == 0) exit(0); exit(1);}
17472 _ACEOF
17473 rm -f conftest$ac_exeext
17474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17475   (eval $ac_link) 2>&5
17476   ac_status=$?
17477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480   (eval $ac_try) 2>&5
17481   ac_status=$?
17482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483   (exit $ac_status); }; }; then
17484   samba_cv_HAVE_BROKEN_READDIR=yes
17485 else
17486   echo "$as_me: program exited with status $ac_status" >&5
17487 echo "$as_me: failed program was:" >&5
17488 cat conftest.$ac_ext >&5
17489 ( exit $ac_status )
17490 samba_cv_HAVE_BROKEN_READDIR=no
17491 fi
17492 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17493 fi
17494 fi
17495 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_READDIR" >&5
17496 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_READDIR" >&6
17497 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
17498
17499 cat >>confdefs.h <<\_ACEOF
17500 #define HAVE_BROKEN_READDIR 1
17501 _ACEOF
17502
17503 fi
17504
17505 echo "$as_me:$LINENO: checking for utimbuf" >&5
17506 echo $ECHO_N "checking for utimbuf... $ECHO_C" >&6
17507 if test "${samba_cv_HAVE_UTIMBUF+set}" = set; then
17508   echo $ECHO_N "(cached) $ECHO_C" >&6
17509 else
17510
17511 cat >conftest.$ac_ext <<_ACEOF
17512 #line $LINENO "configure"
17513 #include "confdefs.h"
17514 #include <sys/types.h>
17515 #include <utime.h>
17516 #ifdef F77_DUMMY_MAIN
17517 #  ifdef __cplusplus
17518      extern "C"
17519 #  endif
17520    int F77_DUMMY_MAIN() { return 1; }
17521 #endif
17522 int
17523 main ()
17524 {
17525 struct utimbuf tbuf;  tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
17526   ;
17527   return 0;
17528 }
17529 _ACEOF
17530 rm -f conftest.$ac_objext
17531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17532   (eval $ac_compile) 2>&5
17533   ac_status=$?
17534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535   (exit $ac_status); } &&
17536          { ac_try='test -s conftest.$ac_objext'
17537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538   (eval $ac_try) 2>&5
17539   ac_status=$?
17540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541   (exit $ac_status); }; }; then
17542   samba_cv_HAVE_UTIMBUF=yes
17543 else
17544   echo "$as_me: failed program was:" >&5
17545 cat conftest.$ac_ext >&5
17546 samba_cv_HAVE_UTIMBUF=no
17547 fi
17548 rm -f conftest.$ac_objext conftest.$ac_ext
17549 fi
17550 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UTIMBUF" >&5
17551 echo "${ECHO_T}$samba_cv_HAVE_UTIMBUF" >&6
17552 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
17553
17554 cat >>confdefs.h <<\_ACEOF
17555 #define HAVE_UTIMBUF 1
17556 _ACEOF
17557
17558 fi
17559
17560
17561
17562
17563
17564
17565
17566 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
17567 do
17568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17569 echo "$as_me:$LINENO: checking for $ac_func" >&5
17570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17571 if eval "test \"\${$as_ac_var+set}\" = set"; then
17572   echo $ECHO_N "(cached) $ECHO_C" >&6
17573 else
17574   cat >conftest.$ac_ext <<_ACEOF
17575 #line $LINENO "configure"
17576 #include "confdefs.h"
17577 /* System header to define __stub macros and hopefully few prototypes,
17578     which can conflict with char $ac_func (); below.  */
17579 #include <assert.h>
17580 /* Override any gcc2 internal prototype to avoid an error.  */
17581 #ifdef __cplusplus
17582 extern "C"
17583 #endif
17584 /* We use char because int might match the return type of a gcc2
17585    builtin and then its argument prototype would still apply.  */
17586 char $ac_func ();
17587 char (*f) ();
17588
17589 #ifdef F77_DUMMY_MAIN
17590 #  ifdef __cplusplus
17591      extern "C"
17592 #  endif
17593    int F77_DUMMY_MAIN() { return 1; }
17594 #endif
17595 int
17596 main ()
17597 {
17598 /* The GNU C library defines this for functions which it implements
17599     to always fail with ENOSYS.  Some functions are actually named
17600     something starting with __ and the normal name is an alias.  */
17601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17602 choke me
17603 #else
17604 f = $ac_func;
17605 #endif
17606
17607   ;
17608   return 0;
17609 }
17610 _ACEOF
17611 rm -f conftest.$ac_objext conftest$ac_exeext
17612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17613   (eval $ac_link) 2>&5
17614   ac_status=$?
17615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616   (exit $ac_status); } &&
17617          { ac_try='test -s conftest$ac_exeext'
17618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619   (eval $ac_try) 2>&5
17620   ac_status=$?
17621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622   (exit $ac_status); }; }; then
17623   eval "$as_ac_var=yes"
17624 else
17625   echo "$as_me: failed program was:" >&5
17626 cat conftest.$ac_ext >&5
17627 eval "$as_ac_var=no"
17628 fi
17629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17630 fi
17631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17633 if test `eval echo '${'$as_ac_var'}'` = yes; then
17634   cat >>confdefs.h <<_ACEOF
17635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17636 _ACEOF
17637
17638 fi
17639 done
17640
17641
17642 echo "$as_me:$LINENO: checking for ut_name in utmp" >&5
17643 echo $ECHO_N "checking for ut_name in utmp... $ECHO_C" >&6
17644 if test "${samba_cv_HAVE_UT_UT_NAME+set}" = set; then
17645   echo $ECHO_N "(cached) $ECHO_C" >&6
17646 else
17647
17648 cat >conftest.$ac_ext <<_ACEOF
17649 #line $LINENO "configure"
17650 #include "confdefs.h"
17651 #include <sys/types.h>
17652 #include <utmp.h>
17653 #ifdef F77_DUMMY_MAIN
17654 #  ifdef __cplusplus
17655      extern "C"
17656 #  endif
17657    int F77_DUMMY_MAIN() { return 1; }
17658 #endif
17659 int
17660 main ()
17661 {
17662 struct utmp ut;  ut.ut_name[0] = 'a';
17663   ;
17664   return 0;
17665 }
17666 _ACEOF
17667 rm -f conftest.$ac_objext
17668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17669   (eval $ac_compile) 2>&5
17670   ac_status=$?
17671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672   (exit $ac_status); } &&
17673          { ac_try='test -s conftest.$ac_objext'
17674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675   (eval $ac_try) 2>&5
17676   ac_status=$?
17677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678   (exit $ac_status); }; }; then
17679   samba_cv_HAVE_UT_UT_NAME=yes
17680 else
17681   echo "$as_me: failed program was:" >&5
17682 cat conftest.$ac_ext >&5
17683 samba_cv_HAVE_UT_UT_NAME=no
17684 fi
17685 rm -f conftest.$ac_objext conftest.$ac_ext
17686 fi
17687 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_NAME" >&5
17688 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_NAME" >&6
17689 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
17690
17691 cat >>confdefs.h <<\_ACEOF
17692 #define HAVE_UT_UT_NAME 1
17693 _ACEOF
17694
17695 fi
17696
17697 echo "$as_me:$LINENO: checking for ut_user in utmp" >&5
17698 echo $ECHO_N "checking for ut_user in utmp... $ECHO_C" >&6
17699 if test "${samba_cv_HAVE_UT_UT_USER+set}" = set; then
17700   echo $ECHO_N "(cached) $ECHO_C" >&6
17701 else
17702
17703 cat >conftest.$ac_ext <<_ACEOF
17704 #line $LINENO "configure"
17705 #include "confdefs.h"
17706 #include <sys/types.h>
17707 #include <utmp.h>
17708 #ifdef F77_DUMMY_MAIN
17709 #  ifdef __cplusplus
17710      extern "C"
17711 #  endif
17712    int F77_DUMMY_MAIN() { return 1; }
17713 #endif
17714 int
17715 main ()
17716 {
17717 struct utmp ut;  ut.ut_user[0] = 'a';
17718   ;
17719   return 0;
17720 }
17721 _ACEOF
17722 rm -f conftest.$ac_objext
17723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17724   (eval $ac_compile) 2>&5
17725   ac_status=$?
17726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727   (exit $ac_status); } &&
17728          { ac_try='test -s conftest.$ac_objext'
17729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730   (eval $ac_try) 2>&5
17731   ac_status=$?
17732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733   (exit $ac_status); }; }; then
17734   samba_cv_HAVE_UT_UT_USER=yes
17735 else
17736   echo "$as_me: failed program was:" >&5
17737 cat conftest.$ac_ext >&5
17738 samba_cv_HAVE_UT_UT_USER=no
17739 fi
17740 rm -f conftest.$ac_objext conftest.$ac_ext
17741 fi
17742 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_USER" >&5
17743 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_USER" >&6
17744 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
17745
17746 cat >>confdefs.h <<\_ACEOF
17747 #define HAVE_UT_UT_USER 1
17748 _ACEOF
17749
17750 fi
17751
17752 echo "$as_me:$LINENO: checking for ut_id in utmp" >&5
17753 echo $ECHO_N "checking for ut_id in utmp... $ECHO_C" >&6
17754 if test "${samba_cv_HAVE_UT_UT_ID+set}" = set; then
17755   echo $ECHO_N "(cached) $ECHO_C" >&6
17756 else
17757
17758 cat >conftest.$ac_ext <<_ACEOF
17759 #line $LINENO "configure"
17760 #include "confdefs.h"
17761 #include <sys/types.h>
17762 #include <utmp.h>
17763 #ifdef F77_DUMMY_MAIN
17764 #  ifdef __cplusplus
17765      extern "C"
17766 #  endif
17767    int F77_DUMMY_MAIN() { return 1; }
17768 #endif
17769 int
17770 main ()
17771 {
17772 struct utmp ut;  ut.ut_id[0] = 'a';
17773   ;
17774   return 0;
17775 }
17776 _ACEOF
17777 rm -f conftest.$ac_objext
17778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17779   (eval $ac_compile) 2>&5
17780   ac_status=$?
17781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); } &&
17783          { ac_try='test -s conftest.$ac_objext'
17784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785   (eval $ac_try) 2>&5
17786   ac_status=$?
17787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788   (exit $ac_status); }; }; then
17789   samba_cv_HAVE_UT_UT_ID=yes
17790 else
17791   echo "$as_me: failed program was:" >&5
17792 cat conftest.$ac_ext >&5
17793 samba_cv_HAVE_UT_UT_ID=no
17794 fi
17795 rm -f conftest.$ac_objext conftest.$ac_ext
17796 fi
17797 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ID" >&5
17798 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ID" >&6
17799 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
17800
17801 cat >>confdefs.h <<\_ACEOF
17802 #define HAVE_UT_UT_ID 1
17803 _ACEOF
17804
17805 fi
17806
17807 echo "$as_me:$LINENO: checking for ut_host in utmp" >&5
17808 echo $ECHO_N "checking for ut_host in utmp... $ECHO_C" >&6
17809 if test "${samba_cv_HAVE_UT_UT_HOST+set}" = set; then
17810   echo $ECHO_N "(cached) $ECHO_C" >&6
17811 else
17812
17813 cat >conftest.$ac_ext <<_ACEOF
17814 #line $LINENO "configure"
17815 #include "confdefs.h"
17816 #include <sys/types.h>
17817 #include <utmp.h>
17818 #ifdef F77_DUMMY_MAIN
17819 #  ifdef __cplusplus
17820      extern "C"
17821 #  endif
17822    int F77_DUMMY_MAIN() { return 1; }
17823 #endif
17824 int
17825 main ()
17826 {
17827 struct utmp ut;  ut.ut_host[0] = 'a';
17828   ;
17829   return 0;
17830 }
17831 _ACEOF
17832 rm -f conftest.$ac_objext
17833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17834   (eval $ac_compile) 2>&5
17835   ac_status=$?
17836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837   (exit $ac_status); } &&
17838          { ac_try='test -s conftest.$ac_objext'
17839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840   (eval $ac_try) 2>&5
17841   ac_status=$?
17842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843   (exit $ac_status); }; }; then
17844   samba_cv_HAVE_UT_UT_HOST=yes
17845 else
17846   echo "$as_me: failed program was:" >&5
17847 cat conftest.$ac_ext >&5
17848 samba_cv_HAVE_UT_UT_HOST=no
17849 fi
17850 rm -f conftest.$ac_objext conftest.$ac_ext
17851 fi
17852 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_HOST" >&5
17853 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_HOST" >&6
17854 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
17855
17856 cat >>confdefs.h <<\_ACEOF
17857 #define HAVE_UT_UT_HOST 1
17858 _ACEOF
17859
17860 fi
17861
17862 echo "$as_me:$LINENO: checking for ut_time in utmp" >&5
17863 echo $ECHO_N "checking for ut_time in utmp... $ECHO_C" >&6
17864 if test "${samba_cv_HAVE_UT_UT_TIME+set}" = set; then
17865   echo $ECHO_N "(cached) $ECHO_C" >&6
17866 else
17867
17868 cat >conftest.$ac_ext <<_ACEOF
17869 #line $LINENO "configure"
17870 #include "confdefs.h"
17871 #include <sys/types.h>
17872 #include <utmp.h>
17873 #ifdef F77_DUMMY_MAIN
17874 #  ifdef __cplusplus
17875      extern "C"
17876 #  endif
17877    int F77_DUMMY_MAIN() { return 1; }
17878 #endif
17879 int
17880 main ()
17881 {
17882 struct utmp ut;  time_t t; ut.ut_time = t;
17883   ;
17884   return 0;
17885 }
17886 _ACEOF
17887 rm -f conftest.$ac_objext
17888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17889   (eval $ac_compile) 2>&5
17890   ac_status=$?
17891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892   (exit $ac_status); } &&
17893          { ac_try='test -s conftest.$ac_objext'
17894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895   (eval $ac_try) 2>&5
17896   ac_status=$?
17897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898   (exit $ac_status); }; }; then
17899   samba_cv_HAVE_UT_UT_TIME=yes
17900 else
17901   echo "$as_me: failed program was:" >&5
17902 cat conftest.$ac_ext >&5
17903 samba_cv_HAVE_UT_UT_TIME=no
17904 fi
17905 rm -f conftest.$ac_objext conftest.$ac_ext
17906 fi
17907 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TIME" >&5
17908 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TIME" >&6
17909 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
17910
17911 cat >>confdefs.h <<\_ACEOF
17912 #define HAVE_UT_UT_TIME 1
17913 _ACEOF
17914
17915 fi
17916
17917 echo "$as_me:$LINENO: checking for ut_tv in utmp" >&5
17918 echo $ECHO_N "checking for ut_tv in utmp... $ECHO_C" >&6
17919 if test "${samba_cv_HAVE_UT_UT_TV+set}" = set; then
17920   echo $ECHO_N "(cached) $ECHO_C" >&6
17921 else
17922
17923 cat >conftest.$ac_ext <<_ACEOF
17924 #line $LINENO "configure"
17925 #include "confdefs.h"
17926 #include <sys/types.h>
17927 #include <utmp.h>
17928 #ifdef F77_DUMMY_MAIN
17929 #  ifdef __cplusplus
17930      extern "C"
17931 #  endif
17932    int F77_DUMMY_MAIN() { return 1; }
17933 #endif
17934 int
17935 main ()
17936 {
17937 struct utmp ut;  struct timeval tv; ut.ut_tv = tv;
17938   ;
17939   return 0;
17940 }
17941 _ACEOF
17942 rm -f conftest.$ac_objext
17943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17944   (eval $ac_compile) 2>&5
17945   ac_status=$?
17946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947   (exit $ac_status); } &&
17948          { ac_try='test -s conftest.$ac_objext'
17949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950   (eval $ac_try) 2>&5
17951   ac_status=$?
17952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953   (exit $ac_status); }; }; then
17954   samba_cv_HAVE_UT_UT_TV=yes
17955 else
17956   echo "$as_me: failed program was:" >&5
17957 cat conftest.$ac_ext >&5
17958 samba_cv_HAVE_UT_UT_TV=no
17959 fi
17960 rm -f conftest.$ac_objext conftest.$ac_ext
17961 fi
17962 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TV" >&5
17963 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TV" >&6
17964 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
17965
17966 cat >>confdefs.h <<\_ACEOF
17967 #define HAVE_UT_UT_TV 1
17968 _ACEOF
17969
17970 fi
17971
17972 echo "$as_me:$LINENO: checking for ut_type in utmp" >&5
17973 echo $ECHO_N "checking for ut_type in utmp... $ECHO_C" >&6
17974 if test "${samba_cv_HAVE_UT_UT_TYPE+set}" = set; then
17975   echo $ECHO_N "(cached) $ECHO_C" >&6
17976 else
17977
17978 cat >conftest.$ac_ext <<_ACEOF
17979 #line $LINENO "configure"
17980 #include "confdefs.h"
17981 #include <sys/types.h>
17982 #include <utmp.h>
17983 #ifdef F77_DUMMY_MAIN
17984 #  ifdef __cplusplus
17985      extern "C"
17986 #  endif
17987    int F77_DUMMY_MAIN() { return 1; }
17988 #endif
17989 int
17990 main ()
17991 {
17992 struct utmp ut;  ut.ut_type = 0;
17993   ;
17994   return 0;
17995 }
17996 _ACEOF
17997 rm -f conftest.$ac_objext
17998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17999   (eval $ac_compile) 2>&5
18000   ac_status=$?
18001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002   (exit $ac_status); } &&
18003          { ac_try='test -s conftest.$ac_objext'
18004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005   (eval $ac_try) 2>&5
18006   ac_status=$?
18007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008   (exit $ac_status); }; }; then
18009   samba_cv_HAVE_UT_UT_TYPE=yes
18010 else
18011   echo "$as_me: failed program was:" >&5
18012 cat conftest.$ac_ext >&5
18013 samba_cv_HAVE_UT_UT_TYPE=no
18014 fi
18015 rm -f conftest.$ac_objext conftest.$ac_ext
18016 fi
18017 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TYPE" >&5
18018 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TYPE" >&6
18019 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
18020
18021 cat >>confdefs.h <<\_ACEOF
18022 #define HAVE_UT_UT_TYPE 1
18023 _ACEOF
18024
18025 fi
18026
18027 echo "$as_me:$LINENO: checking for ut_pid in utmp" >&5
18028 echo $ECHO_N "checking for ut_pid in utmp... $ECHO_C" >&6
18029 if test "${samba_cv_HAVE_UT_UT_PID+set}" = set; then
18030   echo $ECHO_N "(cached) $ECHO_C" >&6
18031 else
18032
18033 cat >conftest.$ac_ext <<_ACEOF
18034 #line $LINENO "configure"
18035 #include "confdefs.h"
18036 #include <sys/types.h>
18037 #include <utmp.h>
18038 #ifdef F77_DUMMY_MAIN
18039 #  ifdef __cplusplus
18040      extern "C"
18041 #  endif
18042    int F77_DUMMY_MAIN() { return 1; }
18043 #endif
18044 int
18045 main ()
18046 {
18047 struct utmp ut;  ut.ut_pid = 0;
18048   ;
18049   return 0;
18050 }
18051 _ACEOF
18052 rm -f conftest.$ac_objext
18053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18054   (eval $ac_compile) 2>&5
18055   ac_status=$?
18056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057   (exit $ac_status); } &&
18058          { ac_try='test -s conftest.$ac_objext'
18059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060   (eval $ac_try) 2>&5
18061   ac_status=$?
18062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063   (exit $ac_status); }; }; then
18064   samba_cv_HAVE_UT_UT_PID=yes
18065 else
18066   echo "$as_me: failed program was:" >&5
18067 cat conftest.$ac_ext >&5
18068 samba_cv_HAVE_UT_UT_PID=no
18069 fi
18070 rm -f conftest.$ac_objext conftest.$ac_ext
18071 fi
18072 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_PID" >&5
18073 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_PID" >&6
18074 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
18075
18076 cat >>confdefs.h <<\_ACEOF
18077 #define HAVE_UT_UT_PID 1
18078 _ACEOF
18079
18080 fi
18081
18082 echo "$as_me:$LINENO: checking for ut_exit in utmp" >&5
18083 echo $ECHO_N "checking for ut_exit in utmp... $ECHO_C" >&6
18084 if test "${samba_cv_HAVE_UT_UT_EXIT+set}" = set; then
18085   echo $ECHO_N "(cached) $ECHO_C" >&6
18086 else
18087
18088 cat >conftest.$ac_ext <<_ACEOF
18089 #line $LINENO "configure"
18090 #include "confdefs.h"
18091 #include <sys/types.h>
18092 #include <utmp.h>
18093 #ifdef F77_DUMMY_MAIN
18094 #  ifdef __cplusplus
18095      extern "C"
18096 #  endif
18097    int F77_DUMMY_MAIN() { return 1; }
18098 #endif
18099 int
18100 main ()
18101 {
18102 struct utmp ut;  ut.ut_exit.e_exit = 0;
18103   ;
18104   return 0;
18105 }
18106 _ACEOF
18107 rm -f conftest.$ac_objext
18108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18109   (eval $ac_compile) 2>&5
18110   ac_status=$?
18111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); } &&
18113          { ac_try='test -s conftest.$ac_objext'
18114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115   (eval $ac_try) 2>&5
18116   ac_status=$?
18117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118   (exit $ac_status); }; }; then
18119   samba_cv_HAVE_UT_UT_EXIT=yes
18120 else
18121   echo "$as_me: failed program was:" >&5
18122 cat conftest.$ac_ext >&5
18123 samba_cv_HAVE_UT_UT_EXIT=no
18124 fi
18125 rm -f conftest.$ac_objext conftest.$ac_ext
18126 fi
18127 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_EXIT" >&5
18128 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_EXIT" >&6
18129 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
18130
18131 cat >>confdefs.h <<\_ACEOF
18132 #define HAVE_UT_UT_EXIT 1
18133 _ACEOF
18134
18135 fi
18136
18137 echo "$as_me:$LINENO: checking for ut_addr in utmp" >&5
18138 echo $ECHO_N "checking for ut_addr in utmp... $ECHO_C" >&6
18139 if test "${samba_cv_HAVE_UT_UT_ADDR+set}" = set; then
18140   echo $ECHO_N "(cached) $ECHO_C" >&6
18141 else
18142
18143 cat >conftest.$ac_ext <<_ACEOF
18144 #line $LINENO "configure"
18145 #include "confdefs.h"
18146 #include <sys/types.h>
18147 #include <utmp.h>
18148 #ifdef F77_DUMMY_MAIN
18149 #  ifdef __cplusplus
18150      extern "C"
18151 #  endif
18152    int F77_DUMMY_MAIN() { return 1; }
18153 #endif
18154 int
18155 main ()
18156 {
18157 struct utmp ut;  ut.ut_addr = 0;
18158   ;
18159   return 0;
18160 }
18161 _ACEOF
18162 rm -f conftest.$ac_objext
18163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18164   (eval $ac_compile) 2>&5
18165   ac_status=$?
18166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167   (exit $ac_status); } &&
18168          { ac_try='test -s conftest.$ac_objext'
18169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18170   (eval $ac_try) 2>&5
18171   ac_status=$?
18172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173   (exit $ac_status); }; }; then
18174   samba_cv_HAVE_UT_UT_ADDR=yes
18175 else
18176   echo "$as_me: failed program was:" >&5
18177 cat conftest.$ac_ext >&5
18178 samba_cv_HAVE_UT_UT_ADDR=no
18179 fi
18180 rm -f conftest.$ac_objext conftest.$ac_ext
18181 fi
18182 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ADDR" >&5
18183 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ADDR" >&6
18184 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
18185
18186 cat >>confdefs.h <<\_ACEOF
18187 #define HAVE_UT_UT_ADDR 1
18188 _ACEOF
18189
18190 fi
18191
18192 if test x$ac_cv_func_pututline = xyes ; then
18193   echo "$as_me:$LINENO: checking whether pututline returns pointer" >&5
18194 echo $ECHO_N "checking whether pututline returns pointer... $ECHO_C" >&6
18195 if test "${samba_cv_PUTUTLINE_RETURNS_UTMP+set}" = set; then
18196   echo $ECHO_N "(cached) $ECHO_C" >&6
18197 else
18198
18199   cat >conftest.$ac_ext <<_ACEOF
18200 #line $LINENO "configure"
18201 #include "confdefs.h"
18202 #include <sys/types.h>
18203 #include <utmp.h>
18204 #ifdef F77_DUMMY_MAIN
18205 #  ifdef __cplusplus
18206      extern "C"
18207 #  endif
18208    int F77_DUMMY_MAIN() { return 1; }
18209 #endif
18210 int
18211 main ()
18212 {
18213 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
18214   ;
18215   return 0;
18216 }
18217 _ACEOF
18218 rm -f conftest.$ac_objext
18219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18220   (eval $ac_compile) 2>&5
18221   ac_status=$?
18222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223   (exit $ac_status); } &&
18224          { ac_try='test -s conftest.$ac_objext'
18225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18226   (eval $ac_try) 2>&5
18227   ac_status=$?
18228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229   (exit $ac_status); }; }; then
18230   samba_cv_PUTUTLINE_RETURNS_UTMP=yes
18231 else
18232   echo "$as_me: failed program was:" >&5
18233 cat conftest.$ac_ext >&5
18234 samba_cv_PUTUTLINE_RETURNS_UTMP=no
18235 fi
18236 rm -f conftest.$ac_objext conftest.$ac_ext
18237 fi
18238 echo "$as_me:$LINENO: result: $samba_cv_PUTUTLINE_RETURNS_UTMP" >&5
18239 echo "${ECHO_T}$samba_cv_PUTUTLINE_RETURNS_UTMP" >&6
18240   if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
18241
18242 cat >>confdefs.h <<\_ACEOF
18243 #define PUTUTLINE_RETURNS_UTMP 1
18244 _ACEOF
18245
18246   fi
18247 fi
18248
18249 echo "$as_me:$LINENO: checking for ut_syslen in utmpx" >&5
18250 echo $ECHO_N "checking for ut_syslen in utmpx... $ECHO_C" >&6
18251 if test "${samba_cv_HAVE_UX_UT_SYSLEN+set}" = set; then
18252   echo $ECHO_N "(cached) $ECHO_C" >&6
18253 else
18254
18255 cat >conftest.$ac_ext <<_ACEOF
18256 #line $LINENO "configure"
18257 #include "confdefs.h"
18258 #include <sys/types.h>
18259 #include <utmpx.h>
18260 #ifdef F77_DUMMY_MAIN
18261 #  ifdef __cplusplus
18262      extern "C"
18263 #  endif
18264    int F77_DUMMY_MAIN() { return 1; }
18265 #endif
18266 int
18267 main ()
18268 {
18269 struct utmpx ux;  ux.ut_syslen = 0;
18270   ;
18271   return 0;
18272 }
18273 _ACEOF
18274 rm -f conftest.$ac_objext
18275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18276   (eval $ac_compile) 2>&5
18277   ac_status=$?
18278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279   (exit $ac_status); } &&
18280          { ac_try='test -s conftest.$ac_objext'
18281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282   (eval $ac_try) 2>&5
18283   ac_status=$?
18284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285   (exit $ac_status); }; }; then
18286   samba_cv_HAVE_UX_UT_SYSLEN=yes
18287 else
18288   echo "$as_me: failed program was:" >&5
18289 cat conftest.$ac_ext >&5
18290 samba_cv_HAVE_UX_UT_SYSLEN=no
18291 fi
18292 rm -f conftest.$ac_objext conftest.$ac_ext
18293 fi
18294 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UX_UT_SYSLEN" >&5
18295 echo "${ECHO_T}$samba_cv_HAVE_UX_UT_SYSLEN" >&6
18296 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
18297
18298 cat >>confdefs.h <<\_ACEOF
18299 #define HAVE_UX_UT_SYSLEN 1
18300 _ACEOF
18301
18302 fi
18303
18304
18305 #################################################
18306 # check for libiconv support
18307 echo "$as_me:$LINENO: checking whether to use libiconv" >&5
18308 echo $ECHO_N "checking whether to use libiconv... $ECHO_C" >&6
18309
18310 # Check whether --with-libiconv or --without-libiconv was given.
18311 if test "${with_libiconv+set}" = set; then
18312   withval="$with_libiconv"
18313    case "$withval" in
18314   no)
18315     echo "$as_me:$LINENO: result: no" >&5
18316 echo "${ECHO_T}no" >&6
18317     ;;
18318   *)
18319     echo "$as_me:$LINENO: result: yes" >&5
18320 echo "${ECHO_T}yes" >&6
18321     CFLAGS="$CFLAGS -I$withval/include"
18322     LDFLAGS="$LDFLAGS -L$withval/lib"
18323
18324 echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
18325 echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6
18326 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
18327   echo $ECHO_N "(cached) $ECHO_C" >&6
18328 else
18329   ac_check_lib_save_LIBS=$LIBS
18330 LIBS="-liconv  $LIBS"
18331 cat >conftest.$ac_ext <<_ACEOF
18332 #line $LINENO "configure"
18333 #include "confdefs.h"
18334
18335 /* Override any gcc2 internal prototype to avoid an error.  */
18336 #ifdef __cplusplus
18337 extern "C"
18338 #endif
18339 /* We use char because int might match the return type of a gcc2
18340    builtin and then its argument prototype would still apply.  */
18341 char iconv_open ();
18342 #ifdef F77_DUMMY_MAIN
18343 #  ifdef __cplusplus
18344      extern "C"
18345 #  endif
18346    int F77_DUMMY_MAIN() { return 1; }
18347 #endif
18348 int
18349 main ()
18350 {
18351 iconv_open ();
18352   ;
18353   return 0;
18354 }
18355 _ACEOF
18356 rm -f conftest.$ac_objext conftest$ac_exeext
18357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18358   (eval $ac_link) 2>&5
18359   ac_status=$?
18360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361   (exit $ac_status); } &&
18362          { ac_try='test -s conftest$ac_exeext'
18363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18364   (eval $ac_try) 2>&5
18365   ac_status=$?
18366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367   (exit $ac_status); }; }; then
18368   ac_cv_lib_iconv_iconv_open=yes
18369 else
18370   echo "$as_me: failed program was:" >&5
18371 cat conftest.$ac_ext >&5
18372 ac_cv_lib_iconv_iconv_open=no
18373 fi
18374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18375 LIBS=$ac_check_lib_save_LIBS
18376 fi
18377 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
18378 echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6
18379 if test $ac_cv_lib_iconv_iconv_open = yes; then
18380   cat >>confdefs.h <<_ACEOF
18381 #define HAVE_LIBICONV 1
18382 _ACEOF
18383
18384   LIBS="-liconv $LIBS"
18385
18386 fi
18387
18388
18389 cat >>confdefs.h <<_ACEOF
18390 #define WITH_LIBICONV "${withval}"
18391 _ACEOF
18392
18393     ;;
18394   esac
18395 else
18396   echo "$as_me:$LINENO: result: no" >&5
18397 echo "${ECHO_T}no" >&6
18398
18399 fi;
18400
18401
18402 ############
18403 # check for iconv in libc
18404 echo "$as_me:$LINENO: checking for working iconv" >&5
18405 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6
18406 if test "${samba_cv_HAVE_NATIVE_ICONV+set}" = set; then
18407   echo $ECHO_N "(cached) $ECHO_C" >&6
18408 else
18409
18410 if test "$cross_compiling" = yes; then
18411   samba_cv_HAVE_NATIVE_ICONV=cross
18412 else
18413   cat >conftest.$ac_ext <<_ACEOF
18414 #line $LINENO "configure"
18415 #include "confdefs.h"
18416
18417 #include <iconv.h>
18418 main() {
18419        iconv_t cd = iconv_open("ASCII", "UCS-2LE");
18420        if (cd == 0 || cd == (iconv_t)-1) return -1;
18421        return 0;
18422 }
18423
18424 _ACEOF
18425 rm -f conftest$ac_exeext
18426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18427   (eval $ac_link) 2>&5
18428   ac_status=$?
18429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432   (eval $ac_try) 2>&5
18433   ac_status=$?
18434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435   (exit $ac_status); }; }; then
18436   samba_cv_HAVE_NATIVE_ICONV=yes
18437 else
18438   echo "$as_me: program exited with status $ac_status" >&5
18439 echo "$as_me: failed program was:" >&5
18440 cat conftest.$ac_ext >&5
18441 ( exit $ac_status )
18442 samba_cv_HAVE_NATIVE_ICONV=no
18443 fi
18444 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18445 fi
18446 fi
18447 echo "$as_me:$LINENO: result: $samba_cv_HAVE_NATIVE_ICONV" >&5
18448 echo "${ECHO_T}$samba_cv_HAVE_NATIVE_ICONV" >&6
18449 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
18450
18451 cat >>confdefs.h <<\_ACEOF
18452 #define HAVE_NATIVE_ICONV 1
18453 _ACEOF
18454
18455 fi
18456
18457
18458 echo "$as_me:$LINENO: checking for Linux kernel oplocks" >&5
18459 echo $ECHO_N "checking for Linux kernel oplocks... $ECHO_C" >&6
18460 if test "${samba_cv_HAVE_KERNEL_OPLOCKS_LINUX+set}" = set; then
18461   echo $ECHO_N "(cached) $ECHO_C" >&6
18462 else
18463
18464 if test "$cross_compiling" = yes; then
18465   samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
18466 else
18467   cat >conftest.$ac_ext <<_ACEOF
18468 #line $LINENO "configure"
18469 #include "confdefs.h"
18470
18471 #include <sys/types.h>
18472 #include <fcntl.h>
18473 #ifndef F_GETLEASE
18474 #define F_GETLEASE      1025
18475 #endif
18476 main() {
18477        int fd = open("/dev/null", O_RDONLY);
18478        return fcntl(fd, F_GETLEASE, 0) == -1;
18479 }
18480
18481 _ACEOF
18482 rm -f conftest$ac_exeext
18483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18484   (eval $ac_link) 2>&5
18485   ac_status=$?
18486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18489   (eval $ac_try) 2>&5
18490   ac_status=$?
18491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492   (exit $ac_status); }; }; then
18493   samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
18494 else
18495   echo "$as_me: program exited with status $ac_status" >&5
18496 echo "$as_me: failed program was:" >&5
18497 cat conftest.$ac_ext >&5
18498 ( exit $ac_status )
18499 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
18500 fi
18501 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18502 fi
18503 fi
18504 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&5
18505 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&6
18506 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
18507
18508 cat >>confdefs.h <<\_ACEOF
18509 #define HAVE_KERNEL_OPLOCKS_LINUX 1
18510 _ACEOF
18511
18512 fi
18513
18514 echo "$as_me:$LINENO: checking for kernel change notify support" >&5
18515 echo $ECHO_N "checking for kernel change notify support... $ECHO_C" >&6
18516 if test "${samba_cv_HAVE_KERNEL_CHANGE_NOTIFY+set}" = set; then
18517   echo $ECHO_N "(cached) $ECHO_C" >&6
18518 else
18519
18520 if test "$cross_compiling" = yes; then
18521   samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
18522 else
18523   cat >conftest.$ac_ext <<_ACEOF
18524 #line $LINENO "configure"
18525 #include "confdefs.h"
18526
18527 #include <sys/types.h>
18528 #include <fcntl.h>
18529 #include <signal.h>
18530 #ifndef F_NOTIFY
18531 #define F_NOTIFY 1026
18532 #endif
18533 main() {
18534         exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ?  1 : 0);
18535 }
18536
18537 _ACEOF
18538 rm -f conftest$ac_exeext
18539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18540   (eval $ac_link) 2>&5
18541   ac_status=$?
18542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545   (eval $ac_try) 2>&5
18546   ac_status=$?
18547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548   (exit $ac_status); }; }; then
18549   samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
18550 else
18551   echo "$as_me: program exited with status $ac_status" >&5
18552 echo "$as_me: failed program was:" >&5
18553 cat conftest.$ac_ext >&5
18554 ( exit $ac_status )
18555 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
18556 fi
18557 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18558 fi
18559 fi
18560 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&5
18561 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&6
18562 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
18563
18564 cat >>confdefs.h <<\_ACEOF
18565 #define HAVE_KERNEL_CHANGE_NOTIFY 1
18566 _ACEOF
18567
18568 fi
18569
18570 echo "$as_me:$LINENO: checking for kernel share modes" >&5
18571 echo $ECHO_N "checking for kernel share modes... $ECHO_C" >&6
18572 if test "${samba_cv_HAVE_KERNEL_SHARE_MODES+set}" = set; then
18573   echo $ECHO_N "(cached) $ECHO_C" >&6
18574 else
18575
18576 if test "$cross_compiling" = yes; then
18577   samba_cv_HAVE_KERNEL_SHARE_MODES=cross
18578 else
18579   cat >conftest.$ac_ext <<_ACEOF
18580 #line $LINENO "configure"
18581 #include "confdefs.h"
18582
18583 #include <sys/types.h>
18584 #include <fcntl.h>
18585 #include <signal.h>
18586 #include <sys/file.h>
18587 #ifndef LOCK_MAND
18588 #define LOCK_MAND       32
18589 #define LOCK_READ       64
18590 #endif
18591 main() {
18592         exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
18593 }
18594
18595 _ACEOF
18596 rm -f conftest$ac_exeext
18597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18598   (eval $ac_link) 2>&5
18599   ac_status=$?
18600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18603   (eval $ac_try) 2>&5
18604   ac_status=$?
18605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606   (exit $ac_status); }; }; then
18607   samba_cv_HAVE_KERNEL_SHARE_MODES=yes
18608 else
18609   echo "$as_me: program exited with status $ac_status" >&5
18610 echo "$as_me: failed program was:" >&5
18611 cat conftest.$ac_ext >&5
18612 ( exit $ac_status )
18613 samba_cv_HAVE_KERNEL_SHARE_MODES=no
18614 fi
18615 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18616 fi
18617 fi
18618 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_SHARE_MODES" >&5
18619 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_SHARE_MODES" >&6
18620 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
18621
18622 cat >>confdefs.h <<\_ACEOF
18623 #define HAVE_KERNEL_SHARE_MODES 1
18624 _ACEOF
18625
18626 fi
18627
18628
18629
18630
18631 echo "$as_me:$LINENO: checking for IRIX kernel oplock type definitions" >&5
18632 echo $ECHO_N "checking for IRIX kernel oplock type definitions... $ECHO_C" >&6
18633 if test "${samba_cv_HAVE_KERNEL_OPLOCKS_IRIX+set}" = set; then
18634   echo $ECHO_N "(cached) $ECHO_C" >&6
18635 else
18636
18637 cat >conftest.$ac_ext <<_ACEOF
18638 #line $LINENO "configure"
18639 #include "confdefs.h"
18640 #include <sys/types.h>
18641 #include <fcntl.h>
18642 #ifdef F77_DUMMY_MAIN
18643 #  ifdef __cplusplus
18644      extern "C"
18645 #  endif
18646    int F77_DUMMY_MAIN() { return 1; }
18647 #endif
18648 int
18649 main ()
18650 {
18651 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
18652   ;
18653   return 0;
18654 }
18655 _ACEOF
18656 rm -f conftest.$ac_objext
18657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18658   (eval $ac_compile) 2>&5
18659   ac_status=$?
18660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661   (exit $ac_status); } &&
18662          { ac_try='test -s conftest.$ac_objext'
18663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664   (eval $ac_try) 2>&5
18665   ac_status=$?
18666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667   (exit $ac_status); }; }; then
18668   samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
18669 else
18670   echo "$as_me: failed program was:" >&5
18671 cat conftest.$ac_ext >&5
18672 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
18673 fi
18674 rm -f conftest.$ac_objext conftest.$ac_ext
18675 fi
18676 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&5
18677 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&6
18678 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
18679
18680 cat >>confdefs.h <<\_ACEOF
18681 #define HAVE_KERNEL_OPLOCKS_IRIX 1
18682 _ACEOF
18683
18684 fi
18685
18686 echo "$as_me:$LINENO: checking for irix specific capabilities" >&5
18687 echo $ECHO_N "checking for irix specific capabilities... $ECHO_C" >&6
18688 if test "${samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES+set}" = set; then
18689   echo $ECHO_N "(cached) $ECHO_C" >&6
18690 else
18691
18692 if test "$cross_compiling" = yes; then
18693   samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
18694 else
18695   cat >conftest.$ac_ext <<_ACEOF
18696 #line $LINENO "configure"
18697 #include "confdefs.h"
18698 #include <sys/types.h>
18699 #include <sys/capability.h>
18700 main() {
18701  cap_t cap;
18702  if ((cap = cap_get_proc()) == NULL)
18703    exit(1);
18704  cap->cap_effective |= CAP_NETWORK_MGT;
18705  cap->cap_inheritable |= CAP_NETWORK_MGT;
18706  cap_set_proc(cap);
18707  exit(0);
18708 }
18709
18710 _ACEOF
18711 rm -f conftest$ac_exeext
18712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18713   (eval $ac_link) 2>&5
18714   ac_status=$?
18715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18718   (eval $ac_try) 2>&5
18719   ac_status=$?
18720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721   (exit $ac_status); }; }; then
18722   samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
18723 else
18724   echo "$as_me: program exited with status $ac_status" >&5
18725 echo "$as_me: failed program was:" >&5
18726 cat conftest.$ac_ext >&5
18727 ( exit $ac_status )
18728 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
18729 fi
18730 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18731 fi
18732 fi
18733 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&5
18734 echo "${ECHO_T}$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&6
18735 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
18736
18737 cat >>confdefs.h <<\_ACEOF
18738 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
18739 _ACEOF
18740
18741 fi
18742
18743 #
18744 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
18745 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
18746 #
18747
18748 echo "$as_me:$LINENO: checking for int16 typedef included by rpc/rpc.h" >&5
18749 echo $ECHO_N "checking for int16 typedef included by rpc/rpc.h... $ECHO_C" >&6
18750 if test "${samba_cv_HAVE_INT16_FROM_RPC_RPC_H+set}" = set; then
18751   echo $ECHO_N "(cached) $ECHO_C" >&6
18752 else
18753
18754 cat >conftest.$ac_ext <<_ACEOF
18755 #line $LINENO "configure"
18756 #include "confdefs.h"
18757 #include <sys/types.h>
18758 #if defined(HAVE_RPC_RPC_H)
18759 #include <rpc/rpc.h>
18760 #endif
18761 #ifdef F77_DUMMY_MAIN
18762 #  ifdef __cplusplus
18763      extern "C"
18764 #  endif
18765    int F77_DUMMY_MAIN() { return 1; }
18766 #endif
18767 int
18768 main ()
18769 {
18770 int16 testvar;
18771   ;
18772   return 0;
18773 }
18774 _ACEOF
18775 rm -f conftest.$ac_objext
18776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18777   (eval $ac_compile) 2>&5
18778   ac_status=$?
18779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780   (exit $ac_status); } &&
18781          { ac_try='test -s conftest.$ac_objext'
18782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783   (eval $ac_try) 2>&5
18784   ac_status=$?
18785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786   (exit $ac_status); }; }; then
18787   samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
18788 else
18789   echo "$as_me: failed program was:" >&5
18790 cat conftest.$ac_ext >&5
18791 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
18792 fi
18793 rm -f conftest.$ac_objext conftest.$ac_ext
18794 fi
18795 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&5
18796 echo "${ECHO_T}$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&6
18797 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
18798
18799 cat >>confdefs.h <<\_ACEOF
18800 #define HAVE_INT16_FROM_RPC_RPC_H 1
18801 _ACEOF
18802
18803 fi
18804
18805 echo "$as_me:$LINENO: checking for uint16 typedef included by rpc/rpc.h" >&5
18806 echo $ECHO_N "checking for uint16 typedef included by rpc/rpc.h... $ECHO_C" >&6
18807 if test "${samba_cv_HAVE_UINT16_FROM_RPC_RPC_H+set}" = set; then
18808   echo $ECHO_N "(cached) $ECHO_C" >&6
18809 else
18810
18811 cat >conftest.$ac_ext <<_ACEOF
18812 #line $LINENO "configure"
18813 #include "confdefs.h"
18814 #include <sys/types.h>
18815 #if defined(HAVE_RPC_RPC_H)
18816 #include <rpc/rpc.h>
18817 #endif
18818 #ifdef F77_DUMMY_MAIN
18819 #  ifdef __cplusplus
18820      extern "C"
18821 #  endif
18822    int F77_DUMMY_MAIN() { return 1; }
18823 #endif
18824 int
18825 main ()
18826 {
18827 uint16 testvar;
18828   ;
18829   return 0;
18830 }
18831 _ACEOF
18832 rm -f conftest.$ac_objext
18833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18834   (eval $ac_compile) 2>&5
18835   ac_status=$?
18836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837   (exit $ac_status); } &&
18838          { ac_try='test -s conftest.$ac_objext'
18839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18840   (eval $ac_try) 2>&5
18841   ac_status=$?
18842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843   (exit $ac_status); }; }; then
18844   samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
18845 else
18846   echo "$as_me: failed program was:" >&5
18847 cat conftest.$ac_ext >&5
18848 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
18849 fi
18850 rm -f conftest.$ac_objext conftest.$ac_ext
18851 fi
18852 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&5
18853 echo "${ECHO_T}$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&6
18854 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
18855
18856 cat >>confdefs.h <<\_ACEOF
18857 #define HAVE_UINT16_FROM_RPC_RPC_H 1
18858 _ACEOF
18859
18860 fi
18861
18862 echo "$as_me:$LINENO: checking for int32 typedef included by rpc/rpc.h" >&5
18863 echo $ECHO_N "checking for int32 typedef included by rpc/rpc.h... $ECHO_C" >&6
18864 if test "${samba_cv_HAVE_INT32_FROM_RPC_RPC_H+set}" = set; then
18865   echo $ECHO_N "(cached) $ECHO_C" >&6
18866 else
18867
18868 cat >conftest.$ac_ext <<_ACEOF
18869 #line $LINENO "configure"
18870 #include "confdefs.h"
18871 #include <sys/types.h>
18872 #if defined(HAVE_RPC_RPC_H)
18873 #include <rpc/rpc.h>
18874 #endif
18875 #ifdef F77_DUMMY_MAIN
18876 #  ifdef __cplusplus
18877      extern "C"
18878 #  endif
18879    int F77_DUMMY_MAIN() { return 1; }
18880 #endif
18881 int
18882 main ()
18883 {
18884 int32 testvar;
18885   ;
18886   return 0;
18887 }
18888 _ACEOF
18889 rm -f conftest.$ac_objext
18890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18891   (eval $ac_compile) 2>&5
18892   ac_status=$?
18893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894   (exit $ac_status); } &&
18895          { ac_try='test -s conftest.$ac_objext'
18896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18897   (eval $ac_try) 2>&5
18898   ac_status=$?
18899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900   (exit $ac_status); }; }; then
18901   samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
18902 else
18903   echo "$as_me: failed program was:" >&5
18904 cat conftest.$ac_ext >&5
18905 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
18906 fi
18907 rm -f conftest.$ac_objext conftest.$ac_ext
18908 fi
18909 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&5
18910 echo "${ECHO_T}$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&6
18911 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
18912
18913 cat >>confdefs.h <<\_ACEOF
18914 #define HAVE_INT32_FROM_RPC_RPC_H 1
18915 _ACEOF
18916
18917 fi
18918
18919 echo "$as_me:$LINENO: checking for uint32 typedef included by rpc/rpc.h" >&5
18920 echo $ECHO_N "checking for uint32 typedef included by rpc/rpc.h... $ECHO_C" >&6
18921 if test "${samba_cv_HAVE_UINT32_FROM_RPC_RPC_H+set}" = set; then
18922   echo $ECHO_N "(cached) $ECHO_C" >&6
18923 else
18924
18925 cat >conftest.$ac_ext <<_ACEOF
18926 #line $LINENO "configure"
18927 #include "confdefs.h"
18928 #include <sys/types.h>
18929 #if defined(HAVE_RPC_RPC_H)
18930 #include <rpc/rpc.h>
18931 #endif
18932 #ifdef F77_DUMMY_MAIN
18933 #  ifdef __cplusplus
18934      extern "C"
18935 #  endif
18936    int F77_DUMMY_MAIN() { return 1; }
18937 #endif
18938 int
18939 main ()
18940 {
18941 uint32 testvar;
18942   ;
18943   return 0;
18944 }
18945 _ACEOF
18946 rm -f conftest.$ac_objext
18947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18948   (eval $ac_compile) 2>&5
18949   ac_status=$?
18950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951   (exit $ac_status); } &&
18952          { ac_try='test -s conftest.$ac_objext'
18953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18954   (eval $ac_try) 2>&5
18955   ac_status=$?
18956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957   (exit $ac_status); }; }; then
18958   samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
18959 else
18960   echo "$as_me: failed program was:" >&5
18961 cat conftest.$ac_ext >&5
18962 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
18963 fi
18964 rm -f conftest.$ac_objext conftest.$ac_ext
18965 fi
18966 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&5
18967 echo "${ECHO_T}$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&6
18968 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
18969
18970 cat >>confdefs.h <<\_ACEOF
18971 #define HAVE_UINT32_FROM_RPC_RPC_H 1
18972 _ACEOF
18973
18974 fi
18975
18976
18977 echo "$as_me:$LINENO: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
18978 echo $ECHO_N "checking for conflicting AUTH_ERROR define in rpc/rpc.h... $ECHO_C" >&6
18979 if test "${samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT+set}" = set; then
18980   echo $ECHO_N "(cached) $ECHO_C" >&6
18981 else
18982
18983 cat >conftest.$ac_ext <<_ACEOF
18984 #line $LINENO "configure"
18985 #include "confdefs.h"
18986 #include <sys/types.h>
18987 #ifdef HAVE_SYS_SECURITY_H
18988 #include <sys/security.h>
18989 #include <prot.h>
18990 #endif  /* HAVE_SYS_SECURITY_H */
18991 #if defined(HAVE_RPC_RPC_H)
18992 #include <rpc/rpc.h>
18993 #endif
18994 #ifdef F77_DUMMY_MAIN
18995 #  ifdef __cplusplus
18996      extern "C"
18997 #  endif
18998    int F77_DUMMY_MAIN() { return 1; }
18999 #endif
19000 int
19001 main ()
19002 {
19003 int testvar;
19004   ;
19005   return 0;
19006 }
19007 _ACEOF
19008 rm -f conftest.$ac_objext
19009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19010   (eval $ac_compile) 2>&5
19011   ac_status=$?
19012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013   (exit $ac_status); } &&
19014          { ac_try='test -s conftest.$ac_objext'
19015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016   (eval $ac_try) 2>&5
19017   ac_status=$?
19018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019   (exit $ac_status); }; }; then
19020   samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
19021 else
19022   echo "$as_me: failed program was:" >&5
19023 cat conftest.$ac_ext >&5
19024 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
19025 fi
19026 rm -f conftest.$ac_objext conftest.$ac_ext
19027 fi
19028 echo "$as_me:$LINENO: result: $samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&5
19029 echo "${ECHO_T}$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&6
19030 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
19031
19032 cat >>confdefs.h <<\_ACEOF
19033 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
19034 _ACEOF
19035
19036 fi
19037
19038 echo "$as_me:$LINENO: checking for test routines" >&5
19039 echo $ECHO_N "checking for test routines... $ECHO_C" >&6
19040 if test "$cross_compiling" = yes; then
19041   { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
19042 echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
19043 else
19044   cat >conftest.$ac_ext <<_ACEOF
19045 #line $LINENO "configure"
19046 #include "confdefs.h"
19047 #include "${srcdir-.}/tests/trivial.c"
19048 _ACEOF
19049 rm -f conftest$ac_exeext
19050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19051   (eval $ac_link) 2>&5
19052   ac_status=$?
19053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056   (eval $ac_try) 2>&5
19057   ac_status=$?
19058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059   (exit $ac_status); }; }; then
19060   echo "$as_me:$LINENO: result: yes" >&5
19061 echo "${ECHO_T}yes" >&6
19062 else
19063   echo "$as_me: program exited with status $ac_status" >&5
19064 echo "$as_me: failed program was:" >&5
19065 cat conftest.$ac_ext >&5
19066 ( exit $ac_status )
19067 { { echo "$as_me:$LINENO: error: cant find test code. Aborting config" >&5
19068 echo "$as_me: error: cant find test code. Aborting config" >&2;}
19069    { (exit 1); exit 1; }; }
19070 fi
19071 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19072 fi
19073
19074 echo "$as_me:$LINENO: checking for ftruncate extend" >&5
19075 echo $ECHO_N "checking for ftruncate extend... $ECHO_C" >&6
19076 if test "${samba_cv_HAVE_FTRUNCATE_EXTEND+set}" = set; then
19077   echo $ECHO_N "(cached) $ECHO_C" >&6
19078 else
19079
19080 if test "$cross_compiling" = yes; then
19081   samba_cv_HAVE_FTRUNCATE_EXTEND=cross
19082 else
19083   cat >conftest.$ac_ext <<_ACEOF
19084 #line $LINENO "configure"
19085 #include "confdefs.h"
19086 #include "${srcdir-.}/tests/ftruncate.c"
19087 _ACEOF
19088 rm -f conftest$ac_exeext
19089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19090   (eval $ac_link) 2>&5
19091   ac_status=$?
19092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095   (eval $ac_try) 2>&5
19096   ac_status=$?
19097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098   (exit $ac_status); }; }; then
19099   samba_cv_HAVE_FTRUNCATE_EXTEND=yes
19100 else
19101   echo "$as_me: program exited with status $ac_status" >&5
19102 echo "$as_me: failed program was:" >&5
19103 cat conftest.$ac_ext >&5
19104 ( exit $ac_status )
19105 samba_cv_HAVE_FTRUNCATE_EXTEND=no
19106 fi
19107 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19108 fi
19109 fi
19110 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FTRUNCATE_EXTEND" >&5
19111 echo "${ECHO_T}$samba_cv_HAVE_FTRUNCATE_EXTEND" >&6
19112 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
19113
19114 cat >>confdefs.h <<\_ACEOF
19115 #define HAVE_FTRUNCATE_EXTEND 1
19116 _ACEOF
19117
19118 fi
19119
19120 echo "$as_me:$LINENO: checking for AF_LOCAL socket support" >&5
19121 echo $ECHO_N "checking for AF_LOCAL socket support... $ECHO_C" >&6
19122 if test "${samba_cv_HAVE_WORKING_AF_LOCAL+set}" = set; then
19123   echo $ECHO_N "(cached) $ECHO_C" >&6
19124 else
19125
19126 if test "$cross_compiling" = yes; then
19127   samba_cv_HAVE_WORKING_AF_LOCAL=cross
19128 else
19129   cat >conftest.$ac_ext <<_ACEOF
19130 #line $LINENO "configure"
19131 #include "confdefs.h"
19132 #include "${srcdir-.}/tests/unixsock.c"
19133 _ACEOF
19134 rm -f conftest$ac_exeext
19135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19136   (eval $ac_link) 2>&5
19137   ac_status=$?
19138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141   (eval $ac_try) 2>&5
19142   ac_status=$?
19143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144   (exit $ac_status); }; }; then
19145   samba_cv_HAVE_WORKING_AF_LOCAL=yes
19146 else
19147   echo "$as_me: program exited with status $ac_status" >&5
19148 echo "$as_me: failed program was:" >&5
19149 cat conftest.$ac_ext >&5
19150 ( exit $ac_status )
19151 samba_cv_HAVE_WORKING_AF_LOCAL=no
19152 fi
19153 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19154 fi
19155 fi
19156 echo "$as_me:$LINENO: result: $samba_cv_HAVE_WORKING_AF_LOCAL" >&5
19157 echo "${ECHO_T}$samba_cv_HAVE_WORKING_AF_LOCAL" >&6
19158 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
19159 then
19160
19161 cat >>confdefs.h <<\_ACEOF
19162 #define HAVE_WORKING_AF_LOCAL 1
19163 _ACEOF
19164
19165 fi
19166
19167 echo "$as_me:$LINENO: checking for broken getgroups" >&5
19168 echo $ECHO_N "checking for broken getgroups... $ECHO_C" >&6
19169 if test "${samba_cv_HAVE_BROKEN_GETGROUPS+set}" = set; then
19170   echo $ECHO_N "(cached) $ECHO_C" >&6
19171 else
19172
19173 if test "$cross_compiling" = yes; then
19174   samba_cv_HAVE_BROKEN_GETGROUPS=cross
19175 else
19176   cat >conftest.$ac_ext <<_ACEOF
19177 #line $LINENO "configure"
19178 #include "confdefs.h"
19179 #include "${srcdir-.}/tests/getgroups.c"
19180 _ACEOF
19181 rm -f conftest$ac_exeext
19182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19183   (eval $ac_link) 2>&5
19184   ac_status=$?
19185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19188   (eval $ac_try) 2>&5
19189   ac_status=$?
19190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191   (exit $ac_status); }; }; then
19192   samba_cv_HAVE_BROKEN_GETGROUPS=yes
19193 else
19194   echo "$as_me: program exited with status $ac_status" >&5
19195 echo "$as_me: failed program was:" >&5
19196 cat conftest.$ac_ext >&5
19197 ( exit $ac_status )
19198 samba_cv_HAVE_BROKEN_GETGROUPS=no
19199 fi
19200 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19201 fi
19202 fi
19203 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_GETGROUPS" >&5
19204 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_GETGROUPS" >&6
19205 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
19206
19207 cat >>confdefs.h <<\_ACEOF
19208 #define HAVE_BROKEN_GETGROUPS 1
19209 _ACEOF
19210
19211 fi
19212
19213 echo "$as_me:$LINENO: checking whether getpass should be replaced" >&5
19214 echo $ECHO_N "checking whether getpass should be replaced... $ECHO_C" >&6
19215 if test "${samba_cv_REPLACE_GETPASS+set}" = set; then
19216   echo $ECHO_N "(cached) $ECHO_C" >&6
19217 else
19218
19219 SAVE_CPPFLAGS="$CPPFLAGS"
19220 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt  -I${srcdir-.}/smbwrapper"
19221 cat >conftest.$ac_ext <<_ACEOF
19222 #line $LINENO "configure"
19223 #include "confdefs.h"
19224
19225 #define REPLACE_GETPASS 1
19226 #define NO_CONFIG_H 1
19227 #define main dont_declare_main
19228 #include "${srcdir-.}/lib/getsmbpass.c"
19229 #undef main
19230
19231 #ifdef F77_DUMMY_MAIN
19232 #  ifdef __cplusplus
19233      extern "C"
19234 #  endif
19235    int F77_DUMMY_MAIN() { return 1; }
19236 #endif
19237 int
19238 main ()
19239 {
19240
19241   ;
19242   return 0;
19243 }
19244 _ACEOF
19245 rm -f conftest.$ac_objext
19246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19247   (eval $ac_compile) 2>&5
19248   ac_status=$?
19249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250   (exit $ac_status); } &&
19251          { ac_try='test -s conftest.$ac_objext'
19252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253   (eval $ac_try) 2>&5
19254   ac_status=$?
19255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256   (exit $ac_status); }; }; then
19257   samba_cv_REPLACE_GETPASS=yes
19258 else
19259   echo "$as_me: failed program was:" >&5
19260 cat conftest.$ac_ext >&5
19261 samba_cv_REPLACE_GETPASS=no
19262 fi
19263 rm -f conftest.$ac_objext conftest.$ac_ext
19264 CPPFLAGS="$SAVE_CPPFLAGS"
19265
19266 fi
19267 echo "$as_me:$LINENO: result: $samba_cv_REPLACE_GETPASS" >&5
19268 echo "${ECHO_T}$samba_cv_REPLACE_GETPASS" >&6
19269 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
19270
19271 cat >>confdefs.h <<\_ACEOF
19272 #define REPLACE_GETPASS 1
19273 _ACEOF
19274
19275 fi
19276
19277 echo "$as_me:$LINENO: checking for broken inet_ntoa" >&5
19278 echo $ECHO_N "checking for broken inet_ntoa... $ECHO_C" >&6
19279 if test "${samba_cv_REPLACE_INET_NTOA+set}" = set; then
19280   echo $ECHO_N "(cached) $ECHO_C" >&6
19281 else
19282
19283 if test "$cross_compiling" = yes; then
19284   samba_cv_REPLACE_INET_NTOA=cross
19285 else
19286   cat >conftest.$ac_ext <<_ACEOF
19287 #line $LINENO "configure"
19288 #include "confdefs.h"
19289
19290 #include <stdio.h>
19291 #include <sys/types.h>
19292 #include <netinet/in.h>
19293 #ifdef HAVE_ARPA_INET_H
19294 #include <arpa/inet.h>
19295 #endif
19296 main() { struct in_addr ip; ip.s_addr = 0x12345678;
19297 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
19298     strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
19299 exit(1);}
19300 _ACEOF
19301 rm -f conftest$ac_exeext
19302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19303   (eval $ac_link) 2>&5
19304   ac_status=$?
19305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308   (eval $ac_try) 2>&5
19309   ac_status=$?
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); }; }; then
19312   samba_cv_REPLACE_INET_NTOA=yes
19313 else
19314   echo "$as_me: program exited with status $ac_status" >&5
19315 echo "$as_me: failed program was:" >&5
19316 cat conftest.$ac_ext >&5
19317 ( exit $ac_status )
19318 samba_cv_REPLACE_INET_NTOA=no
19319 fi
19320 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19321 fi
19322 fi
19323 echo "$as_me:$LINENO: result: $samba_cv_REPLACE_INET_NTOA" >&5
19324 echo "${ECHO_T}$samba_cv_REPLACE_INET_NTOA" >&6
19325 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
19326
19327 cat >>confdefs.h <<\_ACEOF
19328 #define REPLACE_INET_NTOA 1
19329 _ACEOF
19330
19331 fi
19332
19333 echo "$as_me:$LINENO: checking for secure mkstemp" >&5
19334 echo $ECHO_N "checking for secure mkstemp... $ECHO_C" >&6
19335 if test "${samba_cv_HAVE_SECURE_MKSTEMP+set}" = set; then
19336   echo $ECHO_N "(cached) $ECHO_C" >&6
19337 else
19338
19339 if test "$cross_compiling" = yes; then
19340   samba_cv_HAVE_SECURE_MKSTEMP=cross
19341 else
19342   cat >conftest.$ac_ext <<_ACEOF
19343 #line $LINENO "configure"
19344 #include "confdefs.h"
19345 #include <stdlib.h>
19346 #include <sys/types.h>
19347 #include <sys/stat.h>
19348 #include <unistd.h>
19349 main() {
19350   struct stat st;
19351   char tpl[20]="/tmp/test.XXXXXX";
19352   int fd = mkstemp(tpl);
19353   if (fd == -1) exit(1);
19354   unlink(tpl);
19355   if (fstat(fd, &st) != 0) exit(1);
19356   if ((st.st_mode & 0777) != 0600) exit(1);
19357   exit(0);
19358 }
19359 _ACEOF
19360 rm -f conftest$ac_exeext
19361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19362   (eval $ac_link) 2>&5
19363   ac_status=$?
19364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367   (eval $ac_try) 2>&5
19368   ac_status=$?
19369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370   (exit $ac_status); }; }; then
19371   samba_cv_HAVE_SECURE_MKSTEMP=yes
19372 else
19373   echo "$as_me: program exited with status $ac_status" >&5
19374 echo "$as_me: failed program was:" >&5
19375 cat conftest.$ac_ext >&5
19376 ( exit $ac_status )
19377 samba_cv_HAVE_SECURE_MKSTEMP=no
19378 fi
19379 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19380 fi
19381 fi
19382 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SECURE_MKSTEMP" >&5
19383 echo "${ECHO_T}$samba_cv_HAVE_SECURE_MKSTEMP" >&6
19384 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
19385
19386 cat >>confdefs.h <<\_ACEOF
19387 #define HAVE_SECURE_MKSTEMP 1
19388 _ACEOF
19389
19390 fi
19391
19392 echo "$as_me:$LINENO: checking for sysconf(_SC_NGROUPS_MAX)" >&5
19393 echo $ECHO_N "checking for sysconf(_SC_NGROUPS_MAX)... $ECHO_C" >&6
19394 if test "${samba_cv_SYSCONF_SC_NGROUPS_MAX+set}" = set; then
19395   echo $ECHO_N "(cached) $ECHO_C" >&6
19396 else
19397
19398 if test "$cross_compiling" = yes; then
19399   samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
19400 else
19401   cat >conftest.$ac_ext <<_ACEOF
19402 #line $LINENO "configure"
19403 #include "confdefs.h"
19404 #include <unistd.h>
19405 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
19406 _ACEOF
19407 rm -f conftest$ac_exeext
19408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19409   (eval $ac_link) 2>&5
19410   ac_status=$?
19411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414   (eval $ac_try) 2>&5
19415   ac_status=$?
19416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417   (exit $ac_status); }; }; then
19418   samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
19419 else
19420   echo "$as_me: program exited with status $ac_status" >&5
19421 echo "$as_me: failed program was:" >&5
19422 cat conftest.$ac_ext >&5
19423 ( exit $ac_status )
19424 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
19425 fi
19426 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19427 fi
19428 fi
19429 echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NGROUPS_MAX" >&5
19430 echo "${ECHO_T}$samba_cv_SYSCONF_SC_NGROUPS_MAX" >&6
19431 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
19432
19433 cat >>confdefs.h <<\_ACEOF
19434 #define SYSCONF_SC_NGROUPS_MAX 1
19435 _ACEOF
19436
19437 fi
19438
19439 echo "$as_me:$LINENO: checking for root" >&5
19440 echo $ECHO_N "checking for root... $ECHO_C" >&6
19441 if test "${samba_cv_HAVE_ROOT+set}" = set; then
19442   echo $ECHO_N "(cached) $ECHO_C" >&6
19443 else
19444
19445 if test "$cross_compiling" = yes; then
19446   samba_cv_HAVE_ROOT=cross
19447 else
19448   cat >conftest.$ac_ext <<_ACEOF
19449 #line $LINENO "configure"
19450 #include "confdefs.h"
19451 main() { exit(getuid() != 0); }
19452 _ACEOF
19453 rm -f conftest$ac_exeext
19454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19455   (eval $ac_link) 2>&5
19456   ac_status=$?
19457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460   (eval $ac_try) 2>&5
19461   ac_status=$?
19462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463   (exit $ac_status); }; }; then
19464   samba_cv_HAVE_ROOT=yes
19465 else
19466   echo "$as_me: program exited with status $ac_status" >&5
19467 echo "$as_me: failed program was:" >&5
19468 cat conftest.$ac_ext >&5
19469 ( exit $ac_status )
19470 samba_cv_HAVE_ROOT=no
19471 fi
19472 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19473 fi
19474 fi
19475 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ROOT" >&5
19476 echo "${ECHO_T}$samba_cv_HAVE_ROOT" >&6
19477 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
19478
19479 cat >>confdefs.h <<\_ACEOF
19480 #define HAVE_ROOT 1
19481 _ACEOF
19482
19483 else
19484     { echo "$as_me:$LINENO: WARNING: running as non-root will disable some tests" >&5
19485 echo "$as_me: WARNING: running as non-root will disable some tests" >&2;}
19486 fi
19487
19488 ##################
19489 # look for a method of finding the list of network interfaces
19490 iface=no;
19491 echo "$as_me:$LINENO: checking for iface AIX" >&5
19492 echo $ECHO_N "checking for iface AIX... $ECHO_C" >&6
19493 if test "${samba_cv_HAVE_IFACE_AIX+set}" = set; then
19494   echo $ECHO_N "(cached) $ECHO_C" >&6
19495 else
19496
19497 if test "$cross_compiling" = yes; then
19498   samba_cv_HAVE_IFACE_AIX=cross
19499 else
19500   cat >conftest.$ac_ext <<_ACEOF
19501 #line $LINENO "configure"
19502 #include "confdefs.h"
19503
19504 #define HAVE_IFACE_AIX 1
19505 #define AUTOCONF_TEST 1
19506 #include "confdefs.h"
19507 #include "${srcdir-.}/lib/interfaces.c"
19508 _ACEOF
19509 rm -f conftest$ac_exeext
19510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19511   (eval $ac_link) 2>&5
19512   ac_status=$?
19513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516   (eval $ac_try) 2>&5
19517   ac_status=$?
19518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519   (exit $ac_status); }; }; then
19520   samba_cv_HAVE_IFACE_AIX=yes
19521 else
19522   echo "$as_me: program exited with status $ac_status" >&5
19523 echo "$as_me: failed program was:" >&5
19524 cat conftest.$ac_ext >&5
19525 ( exit $ac_status )
19526 samba_cv_HAVE_IFACE_AIX=no
19527 fi
19528 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19529 fi
19530 fi
19531 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_AIX" >&5
19532 echo "${ECHO_T}$samba_cv_HAVE_IFACE_AIX" >&6
19533 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
19534     iface=yes;
19535 cat >>confdefs.h <<\_ACEOF
19536 #define HAVE_IFACE_AIX 1
19537 _ACEOF
19538
19539 fi
19540
19541 if test $iface = no; then
19542 echo "$as_me:$LINENO: checking for iface ifconf" >&5
19543 echo $ECHO_N "checking for iface ifconf... $ECHO_C" >&6
19544 if test "${samba_cv_HAVE_IFACE_IFCONF+set}" = set; then
19545   echo $ECHO_N "(cached) $ECHO_C" >&6
19546 else
19547
19548 if test "$cross_compiling" = yes; then
19549   samba_cv_HAVE_IFACE_IFCONF=cross
19550 else
19551   cat >conftest.$ac_ext <<_ACEOF
19552 #line $LINENO "configure"
19553 #include "confdefs.h"
19554
19555 #define HAVE_IFACE_IFCONF 1
19556 #define AUTOCONF_TEST 1
19557 #include "confdefs.h"
19558 #include "${srcdir-.}/lib/interfaces.c"
19559 _ACEOF
19560 rm -f conftest$ac_exeext
19561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19562   (eval $ac_link) 2>&5
19563   ac_status=$?
19564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567   (eval $ac_try) 2>&5
19568   ac_status=$?
19569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570   (exit $ac_status); }; }; then
19571   samba_cv_HAVE_IFACE_IFCONF=yes
19572 else
19573   echo "$as_me: program exited with status $ac_status" >&5
19574 echo "$as_me: failed program was:" >&5
19575 cat conftest.$ac_ext >&5
19576 ( exit $ac_status )
19577 samba_cv_HAVE_IFACE_IFCONF=no
19578 fi
19579 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19580 fi
19581 fi
19582 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFCONF" >&5
19583 echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFCONF" >&6
19584 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
19585     iface=yes;
19586 cat >>confdefs.h <<\_ACEOF
19587 #define HAVE_IFACE_IFCONF 1
19588 _ACEOF
19589
19590 fi
19591 fi
19592
19593 if test $iface = no; then
19594 echo "$as_me:$LINENO: checking for iface ifreq" >&5
19595 echo $ECHO_N "checking for iface ifreq... $ECHO_C" >&6
19596 if test "${samba_cv_HAVE_IFACE_IFREQ+set}" = set; then
19597   echo $ECHO_N "(cached) $ECHO_C" >&6
19598 else
19599
19600 if test "$cross_compiling" = yes; then
19601   samba_cv_HAVE_IFACE_IFREQ=cross
19602 else
19603   cat >conftest.$ac_ext <<_ACEOF
19604 #line $LINENO "configure"
19605 #include "confdefs.h"
19606
19607 #define HAVE_IFACE_IFREQ 1
19608 #define AUTOCONF_TEST 1
19609 #include "confdefs.h"
19610 #include "${srcdir-.}/lib/interfaces.c"
19611 _ACEOF
19612 rm -f conftest$ac_exeext
19613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19614   (eval $ac_link) 2>&5
19615   ac_status=$?
19616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619   (eval $ac_try) 2>&5
19620   ac_status=$?
19621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622   (exit $ac_status); }; }; then
19623   samba_cv_HAVE_IFACE_IFREQ=yes
19624 else
19625   echo "$as_me: program exited with status $ac_status" >&5
19626 echo "$as_me: failed program was:" >&5
19627 cat conftest.$ac_ext >&5
19628 ( exit $ac_status )
19629 samba_cv_HAVE_IFACE_IFREQ=no
19630 fi
19631 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19632 fi
19633 fi
19634 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFREQ" >&5
19635 echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFREQ" >&6
19636 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
19637     iface=yes;
19638 cat >>confdefs.h <<\_ACEOF
19639 #define HAVE_IFACE_IFREQ 1
19640 _ACEOF
19641
19642 fi
19643 fi
19644
19645
19646 ################################################
19647 # look for a method of setting the effective uid
19648 seteuid=no;
19649 if test $seteuid = no; then
19650 echo "$as_me:$LINENO: checking for setresuid" >&5
19651 echo $ECHO_N "checking for setresuid... $ECHO_C" >&6
19652 if test "${samba_cv_USE_SETRESUID+set}" = set; then
19653   echo $ECHO_N "(cached) $ECHO_C" >&6
19654 else
19655
19656 if test "$cross_compiling" = yes; then
19657   samba_cv_USE_SETRESUID=cross
19658 else
19659   cat >conftest.$ac_ext <<_ACEOF
19660 #line $LINENO "configure"
19661 #include "confdefs.h"
19662
19663 #define AUTOCONF_TEST 1
19664 #define USE_SETRESUID 1
19665 #include "confdefs.h"
19666 #include "${srcdir-.}/lib/util_sec.c"
19667 _ACEOF
19668 rm -f conftest$ac_exeext
19669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19670   (eval $ac_link) 2>&5
19671   ac_status=$?
19672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19675   (eval $ac_try) 2>&5
19676   ac_status=$?
19677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678   (exit $ac_status); }; }; then
19679   samba_cv_USE_SETRESUID=yes
19680 else
19681   echo "$as_me: program exited with status $ac_status" >&5
19682 echo "$as_me: failed program was:" >&5
19683 cat conftest.$ac_ext >&5
19684 ( exit $ac_status )
19685 samba_cv_USE_SETRESUID=no
19686 fi
19687 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19688 fi
19689 fi
19690 echo "$as_me:$LINENO: result: $samba_cv_USE_SETRESUID" >&5
19691 echo "${ECHO_T}$samba_cv_USE_SETRESUID" >&6
19692 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
19693     seteuid=yes;
19694 cat >>confdefs.h <<\_ACEOF
19695 #define USE_SETRESUID 1
19696 _ACEOF
19697
19698 fi
19699 fi
19700
19701
19702 if test $seteuid = no; then
19703 echo "$as_me:$LINENO: checking for setreuid" >&5
19704 echo $ECHO_N "checking for setreuid... $ECHO_C" >&6
19705 if test "${samba_cv_USE_SETREUID+set}" = set; then
19706   echo $ECHO_N "(cached) $ECHO_C" >&6
19707 else
19708
19709 if test "$cross_compiling" = yes; then
19710   samba_cv_USE_SETREUID=cross
19711 else
19712   cat >conftest.$ac_ext <<_ACEOF
19713 #line $LINENO "configure"
19714 #include "confdefs.h"
19715
19716 #define AUTOCONF_TEST 1
19717 #define USE_SETREUID 1
19718 #include "confdefs.h"
19719 #include "${srcdir-.}/lib/util_sec.c"
19720 _ACEOF
19721 rm -f conftest$ac_exeext
19722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19723   (eval $ac_link) 2>&5
19724   ac_status=$?
19725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728   (eval $ac_try) 2>&5
19729   ac_status=$?
19730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731   (exit $ac_status); }; }; then
19732   samba_cv_USE_SETREUID=yes
19733 else
19734   echo "$as_me: program exited with status $ac_status" >&5
19735 echo "$as_me: failed program was:" >&5
19736 cat conftest.$ac_ext >&5
19737 ( exit $ac_status )
19738 samba_cv_USE_SETREUID=no
19739 fi
19740 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19741 fi
19742 fi
19743 echo "$as_me:$LINENO: result: $samba_cv_USE_SETREUID" >&5
19744 echo "${ECHO_T}$samba_cv_USE_SETREUID" >&6
19745 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
19746     seteuid=yes;
19747 cat >>confdefs.h <<\_ACEOF
19748 #define USE_SETREUID 1
19749 _ACEOF
19750
19751 fi
19752 fi
19753
19754 if test $seteuid = no; then
19755 echo "$as_me:$LINENO: checking for seteuid" >&5
19756 echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
19757 if test "${samba_cv_USE_SETEUID+set}" = set; then
19758   echo $ECHO_N "(cached) $ECHO_C" >&6
19759 else
19760
19761 if test "$cross_compiling" = yes; then
19762   samba_cv_USE_SETEUID=cross
19763 else
19764   cat >conftest.$ac_ext <<_ACEOF
19765 #line $LINENO "configure"
19766 #include "confdefs.h"
19767
19768 #define AUTOCONF_TEST 1
19769 #define USE_SETEUID 1
19770 #include "confdefs.h"
19771 #include "${srcdir-.}/lib/util_sec.c"
19772 _ACEOF
19773 rm -f conftest$ac_exeext
19774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19775   (eval $ac_link) 2>&5
19776   ac_status=$?
19777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780   (eval $ac_try) 2>&5
19781   ac_status=$?
19782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783   (exit $ac_status); }; }; then
19784   samba_cv_USE_SETEUID=yes
19785 else
19786   echo "$as_me: program exited with status $ac_status" >&5
19787 echo "$as_me: failed program was:" >&5
19788 cat conftest.$ac_ext >&5
19789 ( exit $ac_status )
19790 samba_cv_USE_SETEUID=no
19791 fi
19792 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19793 fi
19794 fi
19795 echo "$as_me:$LINENO: result: $samba_cv_USE_SETEUID" >&5
19796 echo "${ECHO_T}$samba_cv_USE_SETEUID" >&6
19797 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
19798     seteuid=yes;
19799 cat >>confdefs.h <<\_ACEOF
19800 #define USE_SETEUID 1
19801 _ACEOF
19802
19803 fi
19804 fi
19805
19806 if test $seteuid = no; then
19807 echo "$as_me:$LINENO: checking for setuidx" >&5
19808 echo $ECHO_N "checking for setuidx... $ECHO_C" >&6
19809 if test "${samba_cv_USE_SETUIDX+set}" = set; then
19810   echo $ECHO_N "(cached) $ECHO_C" >&6
19811 else
19812
19813 if test "$cross_compiling" = yes; then
19814   samba_cv_USE_SETUIDX=cross
19815 else
19816   cat >conftest.$ac_ext <<_ACEOF
19817 #line $LINENO "configure"
19818 #include "confdefs.h"
19819
19820 #define AUTOCONF_TEST 1
19821 #define USE_SETUIDX 1
19822 #include "confdefs.h"
19823 #include "${srcdir-.}/lib/util_sec.c"
19824 _ACEOF
19825 rm -f conftest$ac_exeext
19826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19827   (eval $ac_link) 2>&5
19828   ac_status=$?
19829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19832   (eval $ac_try) 2>&5
19833   ac_status=$?
19834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835   (exit $ac_status); }; }; then
19836   samba_cv_USE_SETUIDX=yes
19837 else
19838   echo "$as_me: program exited with status $ac_status" >&5
19839 echo "$as_me: failed program was:" >&5
19840 cat conftest.$ac_ext >&5
19841 ( exit $ac_status )
19842 samba_cv_USE_SETUIDX=no
19843 fi
19844 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19845 fi
19846 fi
19847 echo "$as_me:$LINENO: result: $samba_cv_USE_SETUIDX" >&5
19848 echo "${ECHO_T}$samba_cv_USE_SETUIDX" >&6
19849 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
19850     seteuid=yes;
19851 cat >>confdefs.h <<\_ACEOF
19852 #define USE_SETUIDX 1
19853 _ACEOF
19854
19855 fi
19856 fi
19857
19858
19859 echo "$as_me:$LINENO: checking for working mmap" >&5
19860 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
19861 if test "${samba_cv_HAVE_MMAP+set}" = set; then
19862   echo $ECHO_N "(cached) $ECHO_C" >&6
19863 else
19864
19865 if test "$cross_compiling" = yes; then
19866   samba_cv_HAVE_MMAP=cross
19867 else
19868   cat >conftest.$ac_ext <<_ACEOF
19869 #line $LINENO "configure"
19870 #include "confdefs.h"
19871 #include "${srcdir-.}/tests/shared_mmap.c"
19872 _ACEOF
19873 rm -f conftest$ac_exeext
19874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19875   (eval $ac_link) 2>&5
19876   ac_status=$?
19877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880   (eval $ac_try) 2>&5
19881   ac_status=$?
19882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883   (exit $ac_status); }; }; then
19884   samba_cv_HAVE_MMAP=yes
19885 else
19886   echo "$as_me: program exited with status $ac_status" >&5
19887 echo "$as_me: failed program was:" >&5
19888 cat conftest.$ac_ext >&5
19889 ( exit $ac_status )
19890 samba_cv_HAVE_MMAP=no
19891 fi
19892 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19893 fi
19894 fi
19895 echo "$as_me:$LINENO: result: $samba_cv_HAVE_MMAP" >&5
19896 echo "${ECHO_T}$samba_cv_HAVE_MMAP" >&6
19897 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
19898
19899 cat >>confdefs.h <<\_ACEOF
19900 #define HAVE_MMAP 1
19901 _ACEOF
19902
19903 fi
19904
19905 echo "$as_me:$LINENO: checking for ftruncate needs root" >&5
19906 echo $ECHO_N "checking for ftruncate needs root... $ECHO_C" >&6
19907 if test "${samba_cv_FTRUNCATE_NEEDS_ROOT+set}" = set; then
19908   echo $ECHO_N "(cached) $ECHO_C" >&6
19909 else
19910
19911 if test "$cross_compiling" = yes; then
19912   samba_cv_FTRUNCATE_NEEDS_ROOT=cross
19913 else
19914   cat >conftest.$ac_ext <<_ACEOF
19915 #line $LINENO "configure"
19916 #include "confdefs.h"
19917 #include "${srcdir-.}/tests/ftruncroot.c"
19918 _ACEOF
19919 rm -f conftest$ac_exeext
19920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19921   (eval $ac_link) 2>&5
19922   ac_status=$?
19923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926   (eval $ac_try) 2>&5
19927   ac_status=$?
19928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929   (exit $ac_status); }; }; then
19930   samba_cv_FTRUNCATE_NEEDS_ROOT=yes
19931 else
19932   echo "$as_me: program exited with status $ac_status" >&5
19933 echo "$as_me: failed program was:" >&5
19934 cat conftest.$ac_ext >&5
19935 ( exit $ac_status )
19936 samba_cv_FTRUNCATE_NEEDS_ROOT=no
19937 fi
19938 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19939 fi
19940 fi
19941 echo "$as_me:$LINENO: result: $samba_cv_FTRUNCATE_NEEDS_ROOT" >&5
19942 echo "${ECHO_T}$samba_cv_FTRUNCATE_NEEDS_ROOT" >&6
19943 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
19944
19945 cat >>confdefs.h <<\_ACEOF
19946 #define FTRUNCATE_NEEDS_ROOT 1
19947 _ACEOF
19948
19949 fi
19950
19951 echo "$as_me:$LINENO: checking for fcntl locking" >&5
19952 echo $ECHO_N "checking for fcntl locking... $ECHO_C" >&6
19953 if test "${samba_cv_HAVE_FCNTL_LOCK+set}" = set; then
19954   echo $ECHO_N "(cached) $ECHO_C" >&6
19955 else
19956
19957 if test "$cross_compiling" = yes; then
19958   samba_cv_HAVE_FCNTL_LOCK=cross
19959 else
19960   cat >conftest.$ac_ext <<_ACEOF
19961 #line $LINENO "configure"
19962 #include "confdefs.h"
19963 #include "${srcdir-.}/tests/fcntl_lock.c"
19964 _ACEOF
19965 rm -f conftest$ac_exeext
19966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19967   (eval $ac_link) 2>&5
19968   ac_status=$?
19969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19972   (eval $ac_try) 2>&5
19973   ac_status=$?
19974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975   (exit $ac_status); }; }; then
19976   samba_cv_HAVE_FCNTL_LOCK=yes
19977 else
19978   echo "$as_me: program exited with status $ac_status" >&5
19979 echo "$as_me: failed program was:" >&5
19980 cat conftest.$ac_ext >&5
19981 ( exit $ac_status )
19982 samba_cv_HAVE_FCNTL_LOCK=no
19983 fi
19984 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19985 fi
19986 fi
19987 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FCNTL_LOCK" >&5
19988 echo "${ECHO_T}$samba_cv_HAVE_FCNTL_LOCK" >&6
19989 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
19990
19991 cat >>confdefs.h <<\_ACEOF
19992 #define HAVE_FCNTL_LOCK 1
19993 _ACEOF
19994
19995 fi
19996
19997 echo "$as_me:$LINENO: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
19998 echo $ECHO_N "checking for broken (glibc2.1/x86) 64 bit fcntl locking... $ECHO_C" >&6
19999 if test "${samba_cv_HAVE_BROKEN_FCNTL64_LOCKS+set}" = set; then
20000   echo $ECHO_N "(cached) $ECHO_C" >&6
20001 else
20002
20003 if test "$cross_compiling" = yes; then
20004   samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
20005 else
20006   cat >conftest.$ac_ext <<_ACEOF
20007 #line $LINENO "configure"
20008 #include "confdefs.h"
20009 #include "${srcdir-.}/tests/fcntl_lock64.c"
20010 _ACEOF
20011 rm -f conftest$ac_exeext
20012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20013   (eval $ac_link) 2>&5
20014   ac_status=$?
20015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20018   (eval $ac_try) 2>&5
20019   ac_status=$?
20020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021   (exit $ac_status); }; }; then
20022   samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
20023 else
20024   echo "$as_me: program exited with status $ac_status" >&5
20025 echo "$as_me: failed program was:" >&5
20026 cat conftest.$ac_ext >&5
20027 ( exit $ac_status )
20028 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
20029 fi
20030 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20031 fi
20032 fi
20033 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&5
20034 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&6
20035 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
20036
20037 cat >>confdefs.h <<\_ACEOF
20038 #define HAVE_BROKEN_FCNTL64_LOCKS 1
20039 _ACEOF
20040
20041
20042 else
20043
20044
20045   echo "$as_me:$LINENO: checking for 64 bit fcntl locking" >&5
20046 echo $ECHO_N "checking for 64 bit fcntl locking... $ECHO_C" >&6
20047 if test "${samba_cv_HAVE_STRUCT_FLOCK64+set}" = set; then
20048   echo $ECHO_N "(cached) $ECHO_C" >&6
20049 else
20050
20051   if test "$cross_compiling" = yes; then
20052   samba_cv_HAVE_STRUCT_FLOCK64=cross
20053 else
20054   cat >conftest.$ac_ext <<_ACEOF
20055 #line $LINENO "configure"
20056 #include "confdefs.h"
20057
20058 #if defined(HAVE_UNISTD_H)
20059 #include <unistd.h>
20060 #endif
20061 #include <stdio.h>
20062 #include <stdlib.h>
20063
20064 #ifdef HAVE_FCNTL_H
20065 #include <fcntl.h>
20066 #endif
20067
20068 #ifdef HAVE_SYS_FCNTL_H
20069 #include <sys/fcntl.h>
20070 #endif
20071 main() { struct flock64 fl64;
20072 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
20073 exit(0);
20074 #else
20075 exit(1);
20076 #endif
20077 }
20078 _ACEOF
20079 rm -f conftest$ac_exeext
20080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20081   (eval $ac_link) 2>&5
20082   ac_status=$?
20083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086   (eval $ac_try) 2>&5
20087   ac_status=$?
20088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089   (exit $ac_status); }; }; then
20090   samba_cv_HAVE_STRUCT_FLOCK64=yes
20091 else
20092   echo "$as_me: program exited with status $ac_status" >&5
20093 echo "$as_me: failed program was:" >&5
20094 cat conftest.$ac_ext >&5
20095 ( exit $ac_status )
20096 samba_cv_HAVE_STRUCT_FLOCK64=no
20097 fi
20098 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20099 fi
20100 fi
20101 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_FLOCK64" >&5
20102 echo "${ECHO_T}$samba_cv_HAVE_STRUCT_FLOCK64" >&6
20103
20104   if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
20105
20106 cat >>confdefs.h <<\_ACEOF
20107 #define HAVE_STRUCT_FLOCK64 1
20108 _ACEOF
20109
20110   fi
20111 fi
20112
20113 echo "$as_me:$LINENO: checking for st_blocks in struct stat" >&5
20114 echo $ECHO_N "checking for st_blocks in struct stat... $ECHO_C" >&6
20115 if test "${samba_cv_HAVE_STAT_ST_BLOCKS+set}" = set; then
20116   echo $ECHO_N "(cached) $ECHO_C" >&6
20117 else
20118
20119 cat >conftest.$ac_ext <<_ACEOF
20120 #line $LINENO "configure"
20121 #include "confdefs.h"
20122 #include <sys/types.h>
20123 #include <sys/stat.h>
20124 #include <unistd.h>
20125 #ifdef F77_DUMMY_MAIN
20126 #  ifdef __cplusplus
20127      extern "C"
20128 #  endif
20129    int F77_DUMMY_MAIN() { return 1; }
20130 #endif
20131 int
20132 main ()
20133 {
20134 struct stat st;  st.st_blocks = 0;
20135   ;
20136   return 0;
20137 }
20138 _ACEOF
20139 rm -f conftest.$ac_objext
20140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20141   (eval $ac_compile) 2>&5
20142   ac_status=$?
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); } &&
20145          { ac_try='test -s conftest.$ac_objext'
20146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147   (eval $ac_try) 2>&5
20148   ac_status=$?
20149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150   (exit $ac_status); }; }; then
20151   samba_cv_HAVE_STAT_ST_BLOCKS=yes
20152 else
20153   echo "$as_me: failed program was:" >&5
20154 cat conftest.$ac_ext >&5
20155 samba_cv_HAVE_STAT_ST_BLOCKS=no
20156 fi
20157 rm -f conftest.$ac_objext conftest.$ac_ext
20158 fi
20159 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLOCKS" >&5
20160 echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLOCKS" >&6
20161 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
20162
20163 cat >>confdefs.h <<\_ACEOF
20164 #define HAVE_STAT_ST_BLOCKS 1
20165 _ACEOF
20166
20167 fi
20168
20169 echo "$as_me:$LINENO: checking for st_blksize in struct stat" >&5
20170 echo $ECHO_N "checking for st_blksize in struct stat... $ECHO_C" >&6
20171 if test "${samba_cv_HAVE_STAT_ST_BLKSIZE+set}" = set; then
20172   echo $ECHO_N "(cached) $ECHO_C" >&6
20173 else
20174
20175 cat >conftest.$ac_ext <<_ACEOF
20176 #line $LINENO "configure"
20177 #include "confdefs.h"
20178 #include <sys/types.h>
20179 #include <sys/stat.h>
20180 #include <unistd.h>
20181 #ifdef F77_DUMMY_MAIN
20182 #  ifdef __cplusplus
20183      extern "C"
20184 #  endif
20185    int F77_DUMMY_MAIN() { return 1; }
20186 #endif
20187 int
20188 main ()
20189 {
20190 struct stat st;  st.st_blksize = 0;
20191   ;
20192   return 0;
20193 }
20194 _ACEOF
20195 rm -f conftest.$ac_objext
20196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20197   (eval $ac_compile) 2>&5
20198   ac_status=$?
20199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200   (exit $ac_status); } &&
20201          { ac_try='test -s conftest.$ac_objext'
20202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203   (eval $ac_try) 2>&5
20204   ac_status=$?
20205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206   (exit $ac_status); }; }; then
20207   samba_cv_HAVE_STAT_ST_BLKSIZE=yes
20208 else
20209   echo "$as_me: failed program was:" >&5
20210 cat conftest.$ac_ext >&5
20211 samba_cv_HAVE_STAT_ST_BLKSIZE=no
20212 fi
20213 rm -f conftest.$ac_objext conftest.$ac_ext
20214 fi
20215 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLKSIZE" >&5
20216 echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLKSIZE" >&6
20217 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
20218
20219 cat >>confdefs.h <<\_ACEOF
20220 #define HAVE_STAT_ST_BLKSIZE 1
20221 _ACEOF
20222
20223 fi
20224
20225 case "$host_os" in
20226 *linux*)
20227 echo "$as_me:$LINENO: checking for broken RedHat 7.2 system header files" >&5
20228 echo $ECHO_N "checking for broken RedHat 7.2 system header files... $ECHO_C" >&6
20229 if test "${samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS+set}" = set; then
20230   echo $ECHO_N "(cached) $ECHO_C" >&6
20231 else
20232
20233 cat >conftest.$ac_ext <<_ACEOF
20234 #line $LINENO "configure"
20235 #include "confdefs.h"
20236
20237 #ifdef HAVE_SYS_VFS_H
20238 #include <sys/vfs.h>
20239 #endif
20240 #ifdef HAVE_SYS_CAPABILITY_H
20241 #include <sys/capability.h>
20242 #endif
20243
20244 #ifdef F77_DUMMY_MAIN
20245 #  ifdef __cplusplus
20246      extern "C"
20247 #  endif
20248    int F77_DUMMY_MAIN() { return 1; }
20249 #endif
20250 int
20251 main ()
20252 {
20253 int i;
20254   ;
20255   return 0;
20256 }
20257 _ACEOF
20258 rm -f conftest.$ac_objext
20259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20260   (eval $ac_compile) 2>&5
20261   ac_status=$?
20262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263   (exit $ac_status); } &&
20264          { ac_try='test -s conftest.$ac_objext'
20265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20266   (eval $ac_try) 2>&5
20267   ac_status=$?
20268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269   (exit $ac_status); }; }; then
20270   samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
20271 else
20272   echo "$as_me: failed program was:" >&5
20273 cat conftest.$ac_ext >&5
20274 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
20275 fi
20276 rm -f conftest.$ac_objext conftest.$ac_ext
20277 fi
20278 echo "$as_me:$LINENO: result: $samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&5
20279 echo "${ECHO_T}$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&6
20280 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
20281
20282 cat >>confdefs.h <<\_ACEOF
20283 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
20284 _ACEOF
20285
20286 fi
20287 ;;
20288 esac
20289
20290 echo "$as_me:$LINENO: checking for broken nisplus include files" >&5
20291 echo $ECHO_N "checking for broken nisplus include files... $ECHO_C" >&6
20292 if test "${samba_cv_BROKEN_NISPLUS_INCLUDE_FILES+set}" = set; then
20293   echo $ECHO_N "(cached) $ECHO_C" >&6
20294 else
20295
20296 cat >conftest.$ac_ext <<_ACEOF
20297 #line $LINENO "configure"
20298 #include "confdefs.h"
20299 #include <sys/acl.h>
20300 #if defined(HAVE_RPCSVC_NIS_H)
20301 #include <rpcsvc/nis.h>
20302 #endif
20303 #ifdef F77_DUMMY_MAIN
20304 #  ifdef __cplusplus
20305      extern "C"
20306 #  endif
20307    int F77_DUMMY_MAIN() { return 1; }
20308 #endif
20309 int
20310 main ()
20311 {
20312 int i;
20313   ;
20314   return 0;
20315 }
20316 _ACEOF
20317 rm -f conftest.$ac_objext
20318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20319   (eval $ac_compile) 2>&5
20320   ac_status=$?
20321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322   (exit $ac_status); } &&
20323          { ac_try='test -s conftest.$ac_objext'
20324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325   (eval $ac_try) 2>&5
20326   ac_status=$?
20327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328   (exit $ac_status); }; }; then
20329   samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
20330 else
20331   echo "$as_me: failed program was:" >&5
20332 cat conftest.$ac_ext >&5
20333 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
20334 fi
20335 rm -f conftest.$ac_objext conftest.$ac_ext
20336 fi
20337 echo "$as_me:$LINENO: result: $samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&5
20338 echo "${ECHO_T}$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&6
20339 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
20340
20341 cat >>confdefs.h <<\_ACEOF
20342 #define BROKEN_NISPLUS_INCLUDE_FILES 1
20343 _ACEOF
20344
20345 fi
20346
20347
20348 #################################################
20349 # check for smbwrapper support
20350 echo "$as_me:$LINENO: checking whether to use smbwrapper" >&5
20351 echo $ECHO_N "checking whether to use smbwrapper... $ECHO_C" >&6
20352
20353 # Check whether --with-smbwrapper or --without-smbwrapper was given.
20354 if test "${with_smbwrapper+set}" = set; then
20355   withval="$with_smbwrapper"
20356    case "$withval" in
20357   yes)
20358     echo "$as_me:$LINENO: result: yes" >&5
20359 echo "${ECHO_T}yes" >&6
20360
20361 cat >>confdefs.h <<\_ACEOF
20362 #define WITH_SMBWRAPPER 1
20363 _ACEOF
20364
20365         WRAPPROG="bin/smbsh"
20366         WRAP="bin/smbwrapper.$SHLIBEXT"
20367
20368         if test x$ATTEMPT_WRAP32_BUILD = x; then
20369                 WRAP32=""
20370         else
20371                         WRAP32=bin/smbwrapper.32.$SHLIBEXT
20372         fi
20373
20374 # Conditions under which smbwrapper should not be built.
20375
20376         if test x$PICFLAG = x; then
20377            echo No support for PIC code - disabling smbwrapper and smbsh
20378            WRAPPROG=""
20379            WRAP=""
20380            WRAP32=""
20381         elif test x$ac_cv_func_syscall = xno; then
20382            echo "$as_me:$LINENO: result: No syscall() -- disabling smbwrapper and smbsh" >&5
20383 echo "${ECHO_T}No syscall() -- disabling smbwrapper and smbsh" >&6
20384            WRAPPROG=""
20385            WRAP=""
20386            WRAP32=""
20387         fi
20388     ;;
20389   *)
20390     echo "$as_me:$LINENO: result: no" >&5
20391 echo "${ECHO_T}no" >&6
20392     ;;
20393   esac
20394 else
20395   echo "$as_me:$LINENO: result: no" >&5
20396 echo "${ECHO_T}no" >&6
20397
20398 fi;
20399
20400 #################################################
20401 # check for AFS clear-text auth support
20402 echo "$as_me:$LINENO: checking whether to use AFS clear-text auth" >&5
20403 echo $ECHO_N "checking whether to use AFS clear-text auth... $ECHO_C" >&6
20404
20405 # Check whether --with-afs or --without-afs was given.
20406 if test "${with_afs+set}" = set; then
20407   withval="$with_afs"
20408    case "$withval" in
20409   yes)
20410     echo "$as_me:$LINENO: result: yes" >&5
20411 echo "${ECHO_T}yes" >&6
20412
20413 cat >>confdefs.h <<\_ACEOF
20414 #define WITH_AFS 1
20415 _ACEOF
20416
20417     ;;
20418   *)
20419     echo "$as_me:$LINENO: result: no" >&5
20420 echo "${ECHO_T}no" >&6
20421     ;;
20422   esac
20423 else
20424   echo "$as_me:$LINENO: result: no" >&5
20425 echo "${ECHO_T}no" >&6
20426
20427 fi;
20428
20429
20430 #################################################
20431 # check for the DFS clear-text auth system
20432 echo "$as_me:$LINENO: checking whether to use DFS clear-text auth" >&5
20433 echo $ECHO_N "checking whether to use DFS clear-text auth... $ECHO_C" >&6
20434
20435 # Check whether --with-dfs or --without-dfs was given.
20436 if test "${with_dfs+set}" = set; then
20437   withval="$with_dfs"
20438    case "$withval" in
20439   yes)
20440     echo "$as_me:$LINENO: result: yes" >&5
20441 echo "${ECHO_T}yes" >&6
20442
20443 cat >>confdefs.h <<\_ACEOF
20444 #define WITH_DFS 1
20445 _ACEOF
20446
20447     ;;
20448   *)
20449     echo "$as_me:$LINENO: result: no" >&5
20450 echo "${ECHO_T}no" >&6
20451     ;;
20452   esac
20453 else
20454   echo "$as_me:$LINENO: result: no" >&5
20455 echo "${ECHO_T}no" >&6
20456
20457 fi;
20458
20459 #################################################
20460 # active directory support
20461
20462 with_ads_support=yes
20463 echo "$as_me:$LINENO: checking whether to use Active Directory" >&5
20464 echo $ECHO_N "checking whether to use Active Directory... $ECHO_C" >&6
20465
20466
20467 # Check whether --with-ads or --without-ads was given.
20468 if test "${with_ads+set}" = set; then
20469   withval="$with_ads"
20470    case "$withval" in
20471     no)
20472         with_ads_support=no
20473         ;;
20474   esac
20475 fi;
20476
20477 if test x"$with_ads_support" = x"yes"; then
20478
20479 cat >>confdefs.h <<\_ACEOF
20480 #define WITH_ADS 1
20481 _ACEOF
20482
20483 fi
20484
20485 echo "$as_me:$LINENO: result: $with_ads_support" >&5
20486 echo "${ECHO_T}$with_ads_support" >&6
20487
20488 FOUND_KRB5=no
20489 if test x"$with_ads_support" = x"yes"; then
20490
20491   #################################################
20492   # check for location of Kerberos 5 install
20493   echo "$as_me:$LINENO: checking for kerberos 5 install path" >&5
20494 echo $ECHO_N "checking for kerberos 5 install path... $ECHO_C" >&6
20495
20496 # Check whether --with-krb5 or --without-krb5 was given.
20497 if test "${with_krb5+set}" = set; then
20498   withval="$with_krb5"
20499    case "$withval" in
20500     no)
20501       echo "$as_me:$LINENO: result: no" >&5
20502 echo "${ECHO_T}no" >&6
20503       ;;
20504     *)
20505       echo "$as_me:$LINENO: result: yes" >&5
20506 echo "${ECHO_T}yes" >&6
20507       LIBS="$LIBS -lkrb5"
20508       CFLAGS="$CFLAGS -I$withval/include"
20509       CPPFLAGS="$CPPFLAGS -I$withval/include"
20510       LDFLAGS="$LDFLAGS -L$withval/lib"
20511       FOUND_KRB5=yes
20512       ;;
20513     esac
20514 else
20515   echo "$as_me:$LINENO: result: no" >&5
20516 echo "${ECHO_T}no" >&6
20517
20518 fi;
20519
20520
20521 if test x$FOUND_KRB5 = x"no"; then
20522 #################################################
20523 # see if this box has the SuSE location for the heimdal kerberos implementation
20524 echo "$as_me:$LINENO: checking for /usr/include/heimdal" >&5
20525 echo $ECHO_N "checking for /usr/include/heimdal... $ECHO_C" >&6
20526 if test -d /usr/include/heimdal; then
20527     CFLAGS="$CFLAGS -I/usr/include/heimdal"
20528     CPPFLAGS="$CPPFLAGS -I/usr/include/heimdal"
20529     echo "$as_me:$LINENO: result: yes" >&5
20530 echo "${ECHO_T}yes" >&6
20531 else
20532     echo "$as_me:$LINENO: result: no" >&5
20533 echo "${ECHO_T}no" >&6
20534 fi
20535 fi
20536
20537
20538 if test x$FOUND_KRB5 = x"no"; then
20539 #################################################
20540 # see if this box has the RedHat location for kerberos
20541 echo "$as_me:$LINENO: checking for /usr/kerberos" >&5
20542 echo $ECHO_N "checking for /usr/kerberos... $ECHO_C" >&6
20543 if test -d /usr/kerberos; then
20544     LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
20545     CFLAGS="$CFLAGS -I/usr/kerberos/include"
20546     CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
20547     echo "$as_me:$LINENO: result: yes" >&5
20548 echo "${ECHO_T}yes" >&6
20549 else
20550     echo "$as_me:$LINENO: result: no" >&5
20551 echo "${ECHO_T}no" >&6
20552 fi
20553 fi
20554
20555
20556   # now check for krb5.h. Some systems have the libraries without the headers!
20557   # note that this check is done here to allow for different kerberos
20558   # include paths
20559
20560 for ac_header in krb5.h
20561 do
20562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20564   echo "$as_me:$LINENO: checking for $ac_header" >&5
20565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20567   echo $ECHO_N "(cached) $ECHO_C" >&6
20568 fi
20569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20571 else
20572   # Is the header compilable?
20573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20575 cat >conftest.$ac_ext <<_ACEOF
20576 #line $LINENO "configure"
20577 #include "confdefs.h"
20578 $ac_includes_default
20579 #include <$ac_header>
20580 _ACEOF
20581 rm -f conftest.$ac_objext
20582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20583   (eval $ac_compile) 2>&5
20584   ac_status=$?
20585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586   (exit $ac_status); } &&
20587          { ac_try='test -s conftest.$ac_objext'
20588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20589   (eval $ac_try) 2>&5
20590   ac_status=$?
20591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592   (exit $ac_status); }; }; then
20593   ac_header_compiler=yes
20594 else
20595   echo "$as_me: failed program was:" >&5
20596 cat conftest.$ac_ext >&5
20597 ac_header_compiler=no
20598 fi
20599 rm -f conftest.$ac_objext conftest.$ac_ext
20600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20601 echo "${ECHO_T}$ac_header_compiler" >&6
20602
20603 # Is the header present?
20604 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20606 cat >conftest.$ac_ext <<_ACEOF
20607 #line $LINENO "configure"
20608 #include "confdefs.h"
20609 #include <$ac_header>
20610 _ACEOF
20611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20612   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20613   ac_status=$?
20614   egrep -v '^ *\+' conftest.er1 >conftest.err
20615   rm -f conftest.er1
20616   cat conftest.err >&5
20617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618   (exit $ac_status); } >/dev/null; then
20619   if test -s conftest.err; then
20620     ac_cpp_err=$ac_c_preproc_warn_flag
20621   else
20622     ac_cpp_err=
20623   fi
20624 else
20625   ac_cpp_err=yes
20626 fi
20627 if test -z "$ac_cpp_err"; then
20628   ac_header_preproc=yes
20629 else
20630   echo "$as_me: failed program was:" >&5
20631   cat conftest.$ac_ext >&5
20632   ac_header_preproc=no
20633 fi
20634 rm -f conftest.err conftest.$ac_ext
20635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20636 echo "${ECHO_T}$ac_header_preproc" >&6
20637
20638 # So?  What about this header?
20639 case $ac_header_compiler:$ac_header_preproc in
20640   yes:no )
20641     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20645   no:yes )
20646     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20648     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20650     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20652 esac
20653 echo "$as_me:$LINENO: checking for $ac_header" >&5
20654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20656   echo $ECHO_N "(cached) $ECHO_C" >&6
20657 else
20658   eval "$as_ac_Header=$ac_header_preproc"
20659 fi
20660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20662
20663 fi
20664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20665   cat >>confdefs.h <<_ACEOF
20666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20667 _ACEOF
20668
20669 fi
20670
20671 done
20672
20673
20674   # now check for gssapi headers.  This is also done here to allow for
20675   # different kerberos include paths
20676
20677
20678 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi.h
20679 do
20680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20682   echo "$as_me:$LINENO: checking for $ac_header" >&5
20683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20685   echo $ECHO_N "(cached) $ECHO_C" >&6
20686 fi
20687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20689 else
20690   # Is the header compilable?
20691 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20693 cat >conftest.$ac_ext <<_ACEOF
20694 #line $LINENO "configure"
20695 #include "confdefs.h"
20696 $ac_includes_default
20697 #include <$ac_header>
20698 _ACEOF
20699 rm -f conftest.$ac_objext
20700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20701   (eval $ac_compile) 2>&5
20702   ac_status=$?
20703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704   (exit $ac_status); } &&
20705          { ac_try='test -s conftest.$ac_objext'
20706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20707   (eval $ac_try) 2>&5
20708   ac_status=$?
20709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710   (exit $ac_status); }; }; then
20711   ac_header_compiler=yes
20712 else
20713   echo "$as_me: failed program was:" >&5
20714 cat conftest.$ac_ext >&5
20715 ac_header_compiler=no
20716 fi
20717 rm -f conftest.$ac_objext conftest.$ac_ext
20718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20719 echo "${ECHO_T}$ac_header_compiler" >&6
20720
20721 # Is the header present?
20722 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20724 cat >conftest.$ac_ext <<_ACEOF
20725 #line $LINENO "configure"
20726 #include "confdefs.h"
20727 #include <$ac_header>
20728 _ACEOF
20729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20730   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20731   ac_status=$?
20732   egrep -v '^ *\+' conftest.er1 >conftest.err
20733   rm -f conftest.er1
20734   cat conftest.err >&5
20735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736   (exit $ac_status); } >/dev/null; then
20737   if test -s conftest.err; then
20738     ac_cpp_err=$ac_c_preproc_warn_flag
20739   else
20740     ac_cpp_err=
20741   fi
20742 else
20743   ac_cpp_err=yes
20744 fi
20745 if test -z "$ac_cpp_err"; then
20746   ac_header_preproc=yes
20747 else
20748   echo "$as_me: failed program was:" >&5
20749   cat conftest.$ac_ext >&5
20750   ac_header_preproc=no
20751 fi
20752 rm -f conftest.err conftest.$ac_ext
20753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20754 echo "${ECHO_T}$ac_header_preproc" >&6
20755
20756 # So?  What about this header?
20757 case $ac_header_compiler:$ac_header_preproc in
20758   yes:no )
20759     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20761     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20763   no:yes )
20764     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20766     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20768     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20770 esac
20771 echo "$as_me:$LINENO: checking for $ac_header" >&5
20772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20774   echo $ECHO_N "(cached) $ECHO_C" >&6
20775 else
20776   eval "$as_ac_Header=$ac_header_preproc"
20777 fi
20778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20780
20781 fi
20782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20783   cat >>confdefs.h <<_ACEOF
20784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20785 _ACEOF
20786
20787 fi
20788
20789 done
20790
20791
20792   ##################################################################
20793   # we might need the k5crypto and com_err libraries on some systems
20794   echo "$as_me:$LINENO: checking for _et_list in -lcom_err" >&5
20795 echo $ECHO_N "checking for _et_list in -lcom_err... $ECHO_C" >&6
20796 if test "${ac_cv_lib_com_err__et_list+set}" = set; then
20797   echo $ECHO_N "(cached) $ECHO_C" >&6
20798 else
20799   ac_check_lib_save_LIBS=$LIBS
20800 LIBS="-lcom_err  $LIBS"
20801 cat >conftest.$ac_ext <<_ACEOF
20802 #line $LINENO "configure"
20803 #include "confdefs.h"
20804
20805 /* Override any gcc2 internal prototype to avoid an error.  */
20806 #ifdef __cplusplus
20807 extern "C"
20808 #endif
20809 /* We use char because int might match the return type of a gcc2
20810    builtin and then its argument prototype would still apply.  */
20811 char _et_list ();
20812 #ifdef F77_DUMMY_MAIN
20813 #  ifdef __cplusplus
20814      extern "C"
20815 #  endif
20816    int F77_DUMMY_MAIN() { return 1; }
20817 #endif
20818 int
20819 main ()
20820 {
20821 _et_list ();
20822   ;
20823   return 0;
20824 }
20825 _ACEOF
20826 rm -f conftest.$ac_objext conftest$ac_exeext
20827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20828   (eval $ac_link) 2>&5
20829   ac_status=$?
20830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831   (exit $ac_status); } &&
20832          { ac_try='test -s conftest$ac_exeext'
20833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20834   (eval $ac_try) 2>&5
20835   ac_status=$?
20836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837   (exit $ac_status); }; }; then
20838   ac_cv_lib_com_err__et_list=yes
20839 else
20840   echo "$as_me: failed program was:" >&5
20841 cat conftest.$ac_ext >&5
20842 ac_cv_lib_com_err__et_list=no
20843 fi
20844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20845 LIBS=$ac_check_lib_save_LIBS
20846 fi
20847 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err__et_list" >&5
20848 echo "${ECHO_T}$ac_cv_lib_com_err__et_list" >&6
20849 if test $ac_cv_lib_com_err__et_list = yes; then
20850   LIBS="$LIBS -lcom_err"
20851 fi
20852
20853   echo "$as_me:$LINENO: checking for krb5_encrypt_data in -lk5crypto" >&5
20854 echo $ECHO_N "checking for krb5_encrypt_data in -lk5crypto... $ECHO_C" >&6
20855 if test "${ac_cv_lib_k5crypto_krb5_encrypt_data+set}" = set; then
20856   echo $ECHO_N "(cached) $ECHO_C" >&6
20857 else
20858   ac_check_lib_save_LIBS=$LIBS
20859 LIBS="-lk5crypto  $LIBS"
20860 cat >conftest.$ac_ext <<_ACEOF
20861 #line $LINENO "configure"
20862 #include "confdefs.h"
20863
20864 /* Override any gcc2 internal prototype to avoid an error.  */
20865 #ifdef __cplusplus
20866 extern "C"
20867 #endif
20868 /* We use char because int might match the return type of a gcc2
20869    builtin and then its argument prototype would still apply.  */
20870 char krb5_encrypt_data ();
20871 #ifdef F77_DUMMY_MAIN
20872 #  ifdef __cplusplus
20873      extern "C"
20874 #  endif
20875    int F77_DUMMY_MAIN() { return 1; }
20876 #endif
20877 int
20878 main ()
20879 {
20880 krb5_encrypt_data ();
20881   ;
20882   return 0;
20883 }
20884 _ACEOF
20885 rm -f conftest.$ac_objext conftest$ac_exeext
20886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20887   (eval $ac_link) 2>&5
20888   ac_status=$?
20889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890   (exit $ac_status); } &&
20891          { ac_try='test -s conftest$ac_exeext'
20892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20893   (eval $ac_try) 2>&5
20894   ac_status=$?
20895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896   (exit $ac_status); }; }; then
20897   ac_cv_lib_k5crypto_krb5_encrypt_data=yes
20898 else
20899   echo "$as_me: failed program was:" >&5
20900 cat conftest.$ac_ext >&5
20901 ac_cv_lib_k5crypto_krb5_encrypt_data=no
20902 fi
20903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20904 LIBS=$ac_check_lib_save_LIBS
20905 fi
20906 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_krb5_encrypt_data" >&5
20907 echo "${ECHO_T}$ac_cv_lib_k5crypto_krb5_encrypt_data" >&6
20908 if test $ac_cv_lib_k5crypto_krb5_encrypt_data = yes; then
20909   LIBS="$LIBS -lk5crypto"
20910 fi
20911
20912
20913   ########################################################
20914   # now see if we can find the krb5 libs in standard paths
20915   # or as specified above
20916   echo "$as_me:$LINENO: checking for krb5_mk_req_extended in -lkrb5" >&5
20917 echo $ECHO_N "checking for krb5_mk_req_extended in -lkrb5... $ECHO_C" >&6
20918 if test "${ac_cv_lib_krb5_krb5_mk_req_extended+set}" = set; then
20919   echo $ECHO_N "(cached) $ECHO_C" >&6
20920 else
20921   ac_check_lib_save_LIBS=$LIBS
20922 LIBS="-lkrb5  $LIBS"
20923 cat >conftest.$ac_ext <<_ACEOF
20924 #line $LINENO "configure"
20925 #include "confdefs.h"
20926
20927 /* Override any gcc2 internal prototype to avoid an error.  */
20928 #ifdef __cplusplus
20929 extern "C"
20930 #endif
20931 /* We use char because int might match the return type of a gcc2
20932    builtin and then its argument prototype would still apply.  */
20933 char krb5_mk_req_extended ();
20934 #ifdef F77_DUMMY_MAIN
20935 #  ifdef __cplusplus
20936      extern "C"
20937 #  endif
20938    int F77_DUMMY_MAIN() { return 1; }
20939 #endif
20940 int
20941 main ()
20942 {
20943 krb5_mk_req_extended ();
20944   ;
20945   return 0;
20946 }
20947 _ACEOF
20948 rm -f conftest.$ac_objext conftest$ac_exeext
20949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20950   (eval $ac_link) 2>&5
20951   ac_status=$?
20952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953   (exit $ac_status); } &&
20954          { ac_try='test -s conftest$ac_exeext'
20955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20956   (eval $ac_try) 2>&5
20957   ac_status=$?
20958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959   (exit $ac_status); }; }; then
20960   ac_cv_lib_krb5_krb5_mk_req_extended=yes
20961 else
20962   echo "$as_me: failed program was:" >&5
20963 cat conftest.$ac_ext >&5
20964 ac_cv_lib_krb5_krb5_mk_req_extended=no
20965 fi
20966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20967 LIBS=$ac_check_lib_save_LIBS
20968 fi
20969 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_mk_req_extended" >&5
20970 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_mk_req_extended" >&6
20971 if test $ac_cv_lib_krb5_krb5_mk_req_extended = yes; then
20972   LIBS="$LIBS -lkrb5";
20973
20974 cat >>confdefs.h <<\_ACEOF
20975 #define HAVE_KRB5 1
20976 _ACEOF
20977
20978 fi
20979
20980
20981   ########################################################
20982   # now see if we can find the gssapi libs in standard paths
20983   echo "$as_me:$LINENO: checking for gss_display_status in -lgssapi_krb5" >&5
20984 echo $ECHO_N "checking for gss_display_status in -lgssapi_krb5... $ECHO_C" >&6
20985 if test "${ac_cv_lib_gssapi_krb5_gss_display_status+set}" = set; then
20986   echo $ECHO_N "(cached) $ECHO_C" >&6
20987 else
20988   ac_check_lib_save_LIBS=$LIBS
20989 LIBS="-lgssapi_krb5  $LIBS"
20990 cat >conftest.$ac_ext <<_ACEOF
20991 #line $LINENO "configure"
20992 #include "confdefs.h"
20993
20994 /* Override any gcc2 internal prototype to avoid an error.  */
20995 #ifdef __cplusplus
20996 extern "C"
20997 #endif
20998 /* We use char because int might match the return type of a gcc2
20999    builtin and then its argument prototype would still apply.  */
21000 char gss_display_status ();
21001 #ifdef F77_DUMMY_MAIN
21002 #  ifdef __cplusplus
21003      extern "C"
21004 #  endif
21005    int F77_DUMMY_MAIN() { return 1; }
21006 #endif
21007 int
21008 main ()
21009 {
21010 gss_display_status ();
21011   ;
21012   return 0;
21013 }
21014 _ACEOF
21015 rm -f conftest.$ac_objext conftest$ac_exeext
21016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21017   (eval $ac_link) 2>&5
21018   ac_status=$?
21019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020   (exit $ac_status); } &&
21021          { ac_try='test -s conftest$ac_exeext'
21022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023   (eval $ac_try) 2>&5
21024   ac_status=$?
21025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026   (exit $ac_status); }; }; then
21027   ac_cv_lib_gssapi_krb5_gss_display_status=yes
21028 else
21029   echo "$as_me: failed program was:" >&5
21030 cat conftest.$ac_ext >&5
21031 ac_cv_lib_gssapi_krb5_gss_display_status=no
21032 fi
21033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21034 LIBS=$ac_check_lib_save_LIBS
21035 fi
21036 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_display_status" >&5
21037 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_display_status" >&6
21038 if test $ac_cv_lib_gssapi_krb5_gss_display_status = yes; then
21039   LIBS="$LIBS -lgssapi_krb5";
21040
21041 cat >>confdefs.h <<\_ACEOF
21042 #define HAVE_GSSAPI 1
21043 _ACEOF
21044
21045 fi
21046
21047 fi
21048
21049 ########################################################
21050 # Compile with LDAP support?
21051
21052 with_ldap_support=yes
21053 echo "$as_me:$LINENO: checking whether to use LDAP" >&5
21054 echo $ECHO_N "checking whether to use LDAP... $ECHO_C" >&6
21055
21056
21057 # Check whether --with-ldap or --without-ldap was given.
21058 if test "${with_ldap+set}" = set; then
21059   withval="$with_ldap"
21060    case "$withval" in
21061     no)
21062         with_ldap_support=no
21063         ;;
21064   esac
21065 fi;
21066
21067 echo "$as_me:$LINENO: result: $with_ldap_support" >&5
21068 echo "${ECHO_T}$with_ldap_support" >&6
21069
21070 if test x"$with_ldap_support" = x"yes"; then
21071
21072   ##################################################################
21073   # we might need the lber lib on some systems. To avoid link errors
21074   # this test must be before the libldap test
21075   echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5
21076 echo $ECHO_N "checking for ber_scanf in -llber... $ECHO_C" >&6
21077 if test "${ac_cv_lib_lber_ber_scanf+set}" = set; then
21078   echo $ECHO_N "(cached) $ECHO_C" >&6
21079 else
21080   ac_check_lib_save_LIBS=$LIBS
21081 LIBS="-llber  $LIBS"
21082 cat >conftest.$ac_ext <<_ACEOF
21083 #line $LINENO "configure"
21084 #include "confdefs.h"
21085
21086 /* Override any gcc2 internal prototype to avoid an error.  */
21087 #ifdef __cplusplus
21088 extern "C"
21089 #endif
21090 /* We use char because int might match the return type of a gcc2
21091    builtin and then its argument prototype would still apply.  */
21092 char ber_scanf ();
21093 #ifdef F77_DUMMY_MAIN
21094 #  ifdef __cplusplus
21095      extern "C"
21096 #  endif
21097    int F77_DUMMY_MAIN() { return 1; }
21098 #endif
21099 int
21100 main ()
21101 {
21102 ber_scanf ();
21103   ;
21104   return 0;
21105 }
21106 _ACEOF
21107 rm -f conftest.$ac_objext conftest$ac_exeext
21108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21109   (eval $ac_link) 2>&5
21110   ac_status=$?
21111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112   (exit $ac_status); } &&
21113          { ac_try='test -s conftest$ac_exeext'
21114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21115   (eval $ac_try) 2>&5
21116   ac_status=$?
21117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118   (exit $ac_status); }; }; then
21119   ac_cv_lib_lber_ber_scanf=yes
21120 else
21121   echo "$as_me: failed program was:" >&5
21122 cat conftest.$ac_ext >&5
21123 ac_cv_lib_lber_ber_scanf=no
21124 fi
21125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21126 LIBS=$ac_check_lib_save_LIBS
21127 fi
21128 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_scanf" >&5
21129 echo "${ECHO_T}$ac_cv_lib_lber_ber_scanf" >&6
21130 if test $ac_cv_lib_lber_ber_scanf = yes; then
21131   LIBS="$LIBS -llber"
21132 fi
21133
21134
21135   ########################################################
21136   # now see if we can find the ldap libs in standard paths
21137   if test x$have_ldap != xyes; then
21138   echo "$as_me:$LINENO: checking for ldap_domain2hostlist in -lldap" >&5
21139 echo $ECHO_N "checking for ldap_domain2hostlist in -lldap... $ECHO_C" >&6
21140 if test "${ac_cv_lib_ldap_ldap_domain2hostlist+set}" = set; then
21141   echo $ECHO_N "(cached) $ECHO_C" >&6
21142 else
21143   ac_check_lib_save_LIBS=$LIBS
21144 LIBS="-lldap  $LIBS"
21145 cat >conftest.$ac_ext <<_ACEOF
21146 #line $LINENO "configure"
21147 #include "confdefs.h"
21148
21149 /* Override any gcc2 internal prototype to avoid an error.  */
21150 #ifdef __cplusplus
21151 extern "C"
21152 #endif
21153 /* We use char because int might match the return type of a gcc2
21154    builtin and then its argument prototype would still apply.  */
21155 char ldap_domain2hostlist ();
21156 #ifdef F77_DUMMY_MAIN
21157 #  ifdef __cplusplus
21158      extern "C"
21159 #  endif
21160    int F77_DUMMY_MAIN() { return 1; }
21161 #endif
21162 int
21163 main ()
21164 {
21165 ldap_domain2hostlist ();
21166   ;
21167   return 0;
21168 }
21169 _ACEOF
21170 rm -f conftest.$ac_objext conftest$ac_exeext
21171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21172   (eval $ac_link) 2>&5
21173   ac_status=$?
21174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175   (exit $ac_status); } &&
21176          { ac_try='test -s conftest$ac_exeext'
21177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21178   (eval $ac_try) 2>&5
21179   ac_status=$?
21180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181   (exit $ac_status); }; }; then
21182   ac_cv_lib_ldap_ldap_domain2hostlist=yes
21183 else
21184   echo "$as_me: failed program was:" >&5
21185 cat conftest.$ac_ext >&5
21186 ac_cv_lib_ldap_ldap_domain2hostlist=no
21187 fi
21188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21189 LIBS=$ac_check_lib_save_LIBS
21190 fi
21191 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_domain2hostlist" >&5
21192 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_domain2hostlist" >&6
21193 if test $ac_cv_lib_ldap_ldap_domain2hostlist = yes; then
21194   LIBS="$LIBS -lldap";
21195
21196 cat >>confdefs.h <<\_ACEOF
21197 #define HAVE_LDAP 1
21198 _ACEOF
21199
21200 fi
21201
21202
21203         ########################################################
21204         # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
21205         # Check found in pam_ldap 145.
21206
21207 for ac_func in ldap_set_rebind_proc
21208 do
21209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21210 echo "$as_me:$LINENO: checking for $ac_func" >&5
21211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21212 if eval "test \"\${$as_ac_var+set}\" = set"; then
21213   echo $ECHO_N "(cached) $ECHO_C" >&6
21214 else
21215   cat >conftest.$ac_ext <<_ACEOF
21216 #line $LINENO "configure"
21217 #include "confdefs.h"
21218 /* System header to define __stub macros and hopefully few prototypes,
21219     which can conflict with char $ac_func (); below.  */
21220 #include <assert.h>
21221 /* Override any gcc2 internal prototype to avoid an error.  */
21222 #ifdef __cplusplus
21223 extern "C"
21224 #endif
21225 /* We use char because int might match the return type of a gcc2
21226    builtin and then its argument prototype would still apply.  */
21227 char $ac_func ();
21228 char (*f) ();
21229
21230 #ifdef F77_DUMMY_MAIN
21231 #  ifdef __cplusplus
21232      extern "C"
21233 #  endif
21234    int F77_DUMMY_MAIN() { return 1; }
21235 #endif
21236 int
21237 main ()
21238 {
21239 /* The GNU C library defines this for functions which it implements
21240     to always fail with ENOSYS.  Some functions are actually named
21241     something starting with __ and the normal name is an alias.  */
21242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21243 choke me
21244 #else
21245 f = $ac_func;
21246 #endif
21247
21248   ;
21249   return 0;
21250 }
21251 _ACEOF
21252 rm -f conftest.$ac_objext conftest$ac_exeext
21253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21254   (eval $ac_link) 2>&5
21255   ac_status=$?
21256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257   (exit $ac_status); } &&
21258          { ac_try='test -s conftest$ac_exeext'
21259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21260   (eval $ac_try) 2>&5
21261   ac_status=$?
21262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263   (exit $ac_status); }; }; then
21264   eval "$as_ac_var=yes"
21265 else
21266   echo "$as_me: failed program was:" >&5
21267 cat conftest.$ac_ext >&5
21268 eval "$as_ac_var=no"
21269 fi
21270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21271 fi
21272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21274 if test `eval echo '${'$as_ac_var'}'` = yes; then
21275   cat >>confdefs.h <<_ACEOF
21276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21277 _ACEOF
21278
21279 fi
21280 done
21281
21282         echo "$as_me:$LINENO: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
21283 echo $ECHO_N "checking whether ldap_set_rebind_proc takes 3 arguments... $ECHO_C" >&6
21284 if test "${pam_ldap_cv_ldap_set_rebind_proc+set}" = set; then
21285   echo $ECHO_N "(cached) $ECHO_C" >&6
21286 else
21287
21288         cat >conftest.$ac_ext <<_ACEOF
21289 #line $LINENO "configure"
21290 #include "confdefs.h"
21291
21292         #include <lber.h>
21293         #include <ldap.h>
21294 #ifdef F77_DUMMY_MAIN
21295 #  ifdef __cplusplus
21296      extern "C"
21297 #  endif
21298    int F77_DUMMY_MAIN() { return 1; }
21299 #endif
21300 int
21301 main ()
21302 {
21303 ldap_set_rebind_proc(0, 0, 0);
21304   ;
21305   return 0;
21306 }
21307 _ACEOF
21308 rm -f conftest.$ac_objext
21309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21310   (eval $ac_compile) 2>&5
21311   ac_status=$?
21312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313   (exit $ac_status); } &&
21314          { ac_try='test -s conftest.$ac_objext'
21315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21316   (eval $ac_try) 2>&5
21317   ac_status=$?
21318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319   (exit $ac_status); }; }; then
21320   pam_ldap_cv_ldap_set_rebind_proc=3
21321 else
21322   echo "$as_me: failed program was:" >&5
21323 cat conftest.$ac_ext >&5
21324 pam_ldap_cv_ldap_set_rebind_proc=2
21325 fi
21326 rm -f conftest.$ac_objext conftest.$ac_ext
21327 fi
21328 echo "$as_me:$LINENO: result: $pam_ldap_cv_ldap_set_rebind_proc" >&5
21329 echo "${ECHO_T}$pam_ldap_cv_ldap_set_rebind_proc" >&6
21330
21331 cat >>confdefs.h <<_ACEOF
21332 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
21333 _ACEOF
21334
21335   fi
21336 fi
21337
21338 ########################################################
21339 # Compile with MySQL support?
21340
21341 # Check whether --with-mysql-prefix or --without-mysql-prefix was given.
21342 if test "${with_mysql_prefix+set}" = set; then
21343   withval="$with_mysql_prefix"
21344   mysql_prefix="$withval"
21345 else
21346   mysql_prefix=""
21347 fi;
21348
21349 # Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
21350 if test "${with_mysql_exec_prefix+set}" = set; then
21351   withval="$with_mysql_exec_prefix"
21352   mysql_exec_prefix="$withval"
21353 else
21354   mysql_exec_prefix=""
21355 fi;
21356 # Check whether --enable-mysqltest or --disable-mysqltest was given.
21357 if test "${enable_mysqltest+set}" = set; then
21358   enableval="$enable_mysqltest"
21359
21360 else
21361   enable_mysqltest=yes
21362 fi;
21363
21364   if test x$mysql_exec_prefix != x ; then
21365      mysql_args="$mysql_args --exec-prefix=$mysql_exec_prefix"
21366      if test x${MYSQL_CONFIG+set} != xset ; then
21367         MYSQL_CONFIG=$mysql_exec_prefix/bin/mysql_config
21368      fi
21369   fi
21370   if test x$mysql_prefix != x ; then
21371      mysql_args="$mysql_args --prefix=$mysql_prefix"
21372      if test x${MYSQL_CONFIG+set} != xset ; then
21373         MYSQL_CONFIG=$mysql_prefix/bin/mysql_config
21374      fi
21375   fi
21376
21377
21378   # Extract the first word of "mysql_config", so it can be a program name with args.
21379 set dummy mysql_config; ac_word=$2
21380 echo "$as_me:$LINENO: checking for $ac_word" >&5
21381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21382 if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
21383   echo $ECHO_N "(cached) $ECHO_C" >&6
21384 else
21385   case $MYSQL_CONFIG in
21386   [\\/]* | ?:[\\/]*)
21387   ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
21388   ;;
21389   *)
21390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21391 for as_dir in $PATH
21392 do
21393   IFS=$as_save_IFS
21394   test -z "$as_dir" && as_dir=.
21395   for ac_exec_ext in '' $ac_executable_extensions; do
21396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21397     ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21399     break 2
21400   fi
21401 done
21402 done
21403
21404   test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG="no"
21405   ;;
21406 esac
21407 fi
21408 MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
21409
21410 if test -n "$MYSQL_CONFIG"; then
21411   echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
21412 echo "${ECHO_T}$MYSQL_CONFIG" >&6
21413 else
21414   echo "$as_me:$LINENO: result: no" >&5
21415 echo "${ECHO_T}no" >&6
21416 fi
21417
21418   min_mysql_version=0.11.0
21419   echo "$as_me:$LINENO: checking for MYSQL - version >= $min_mysql_version" >&5
21420 echo $ECHO_N "checking for MYSQL - version >= $min_mysql_version... $ECHO_C" >&6
21421   no_mysql=""
21422   if test "$MYSQL_CONFIG" = "no" ; then
21423     no_mysql=yes
21424   else
21425     MYSQL_CFLAGS=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
21426     MYSQL_LIBS=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
21427
21428     mysql_major_version=`$MYSQL_CONFIG $mysql_args --version | \
21429            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21430     mysql_minor_version=`$MYSQL_CONFIG $mysql_args --version | \
21431            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21432     mysql_micro_version=`$MYSQL_CONFIG $mysql_config_args --version | \
21433            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21434     if test "x$enable_mysqltest" = "xyes" ; then
21435       ac_save_CFLAGS="$CFLAGS"
21436       ac_save_LIBS="$LIBS"
21437       CFLAGS="$CFLAGS $MYSQL_CFLAGS"
21438       LIBS="$LIBS $MYSQL_LIBS"
21439       rm -f conf.mysqltest
21440       if test "$cross_compiling" = yes; then
21441   echo $ac_n "cross compiling; assumed OK... $ac_c"
21442 else
21443   cat >conftest.$ac_ext <<_ACEOF
21444 #line $LINENO "configure"
21445 #include "confdefs.h"
21446
21447 #include <stdio.h>
21448 #include <stdlib.h>
21449 #include <string.h>
21450 #include <mysql.h>
21451
21452 char*
21453 my_strdup (char *str)
21454 {
21455   char *new_str;
21456
21457   if (str)
21458     {
21459       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
21460       strcpy (new_str, str);
21461     }
21462   else
21463     new_str = NULL;
21464
21465   return new_str;
21466 }
21467
21468 int main (int argc, char *argv[])
21469 {
21470 int major, minor, micro;
21471   char *tmp_version;
21472
21473   /* This hangs on some systems (?)
21474   system ("touch conf.mysqltest");
21475   */
21476   { FILE *fp = fopen("conf.mysqltest", "a"); if ( fp ) fclose(fp); }
21477
21478   /* HP/UX 9 (%@#!) writes to sscanf strings */
21479   tmp_version = my_strdup("$min_mysql_version");
21480   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21481      printf("%s, bad version string\n", "$min_mysql_version");
21482      exit(1);
21483    }
21484
21485    if (($mysql_major_version > major) ||
21486       (($mysql_major_version == major) && ($mysql_minor_version > minor)) ||
21487       (($mysql_major_version == major) && ($mysql_minor_version == minor) && ($mysql_micro_version >= micro)))
21488     {
21489       return 0;
21490     }
21491   else
21492     {
21493       printf("\n*** 'mysql_config --version' returned %d.%d.%d, but the minimum version\n", $mysql_major_version, $mysql_minor_version, $mysql_micro_version);
21494       printf("*** of MYSQL required is %d.%d.%d. If mysql_config is correct, then it is\n", major, minor, micro);
21495       printf("*** best to upgrade to the required version.\n");
21496       printf("*** If mysql_config was wrong, set the environment variable MYSQL_CONFIG\n");
21497       printf("*** to point to the correct copy of mysql_config, and remove the file\n");
21498       printf("*** config.cache before re-running configure\n");
21499       return 1;
21500     }
21501 }
21502
21503
21504 _ACEOF
21505 rm -f conftest$ac_exeext
21506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21507   (eval $ac_link) 2>&5
21508   ac_status=$?
21509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21512   (eval $ac_try) 2>&5
21513   ac_status=$?
21514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515   (exit $ac_status); }; }; then
21516   :
21517 else
21518   echo "$as_me: program exited with status $ac_status" >&5
21519 echo "$as_me: failed program was:" >&5
21520 cat conftest.$ac_ext >&5
21521 ( exit $ac_status )
21522 no_mysql=yes
21523 fi
21524 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21525 fi
21526        CFLAGS="$ac_save_CFLAGS"
21527        LIBS="$ac_save_LIBS"
21528      fi
21529   fi
21530   if test "x$no_mysql" = x ; then
21531      echo "$as_me:$LINENO: result: yes" >&5
21532 echo "${ECHO_T}yes" >&6
21533      MODULE_MYSQL=bin/mysql.so
21534   else
21535      echo "$as_me:$LINENO: result: no" >&5
21536 echo "${ECHO_T}no" >&6
21537      if test "$MYSQL_CONFIG" = "no" ; then
21538        echo "*** The mysql_config script installed by MYSQL could not be found"
21539        echo "*** If MYSQL was installed in PREFIX, make sure PREFIX/bin is in"
21540        echo "*** your path, or set the MYSQL_CONFIG environment variable to the"
21541        echo "*** full path to mysql_config."
21542      else
21543        if test -f conf.mysqltest ; then
21544         :
21545        else
21546           echo "*** Could not run MYSQL test program, checking why..."
21547           CFLAGS="$CFLAGS $MYSQL_CFLAGS"
21548           LIBS="$LIBS $MYSQL_LIBS"
21549           cat >conftest.$ac_ext <<_ACEOF
21550 #line $LINENO "configure"
21551 #include "confdefs.h"
21552
21553 #include <stdio.h>
21554 #include <mysql.h>
21555
21556 int main(int argc, char *argv[])
21557 { return 0; }
21558 #undef  main
21559 #define main K_and_R_C_main
21560
21561 #ifdef F77_DUMMY_MAIN
21562 #  ifdef __cplusplus
21563      extern "C"
21564 #  endif
21565    int F77_DUMMY_MAIN() { return 1; }
21566 #endif
21567 int
21568 main ()
21569 {
21570  return 0;
21571   ;
21572   return 0;
21573 }
21574 _ACEOF
21575 rm -f conftest.$ac_objext conftest$ac_exeext
21576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21577   (eval $ac_link) 2>&5
21578   ac_status=$?
21579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580   (exit $ac_status); } &&
21581          { ac_try='test -s conftest$ac_exeext'
21582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583   (eval $ac_try) 2>&5
21584   ac_status=$?
21585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586   (exit $ac_status); }; }; then
21587    echo "*** The test program compiled, but did not run. This usually means"
21588           echo "*** that the run-time linker is not finding MYSQL or finding the wrong"
21589           echo "*** version of MYSQL. If it is not finding MYSQL, you'll need to set your"
21590           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21591           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
21592           echo "*** is required on your system"
21593     echo "***"
21594           echo "*** If you have an old version installed, it is best to remove it, although"
21595           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21596 else
21597   echo "$as_me: failed program was:" >&5
21598 cat conftest.$ac_ext >&5
21599  echo "*** The test program failed to compile or link. See the file config.log for the"
21600           echo "*** exact error that occured. This usually means MYSQL was incorrectly installed"
21601           echo "*** or that you have moved MYSQL since it was installed. In the latter case, you"
21602           echo "*** may want to edit the mysql_config script: $MYSQL_CONFIG"
21603 fi
21604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21605           CFLAGS="$ac_save_CFLAGS"
21606           LIBS="$ac_save_LIBS"
21607        fi
21608      fi
21609      MYSQL_CFLAGS=""
21610      MYSQL_LIBS=""
21611      MODULE_MYSQL=
21612   fi
21613
21614
21615   rm -f conf.mysqltest
21616
21617 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
21618
21619
21620 ########################################################
21621 # Compile with XML support?
21622
21623
21624 # Check whether --with-xml-prefix or --without-xml-prefix was given.
21625 if test "${with_xml_prefix+set}" = set; then
21626   withval="$with_xml_prefix"
21627   xml_config_prefix="$withval"
21628 else
21629   xml_config_prefix=""
21630 fi;
21631
21632 # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
21633 if test "${with_xml_exec_prefix+set}" = set; then
21634   withval="$with_xml_exec_prefix"
21635   xml_config_exec_prefix="$withval"
21636 else
21637   xml_config_exec_prefix=""
21638 fi;
21639 # Check whether --enable-xmltest or --disable-xmltest was given.
21640 if test "${enable_xmltest+set}" = set; then
21641   enableval="$enable_xmltest"
21642
21643 else
21644   enable_xmltest=yes
21645 fi;
21646
21647   if test x$xml_config_exec_prefix != x ; then
21648      xml_config_args="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
21649      if test x${XML2_CONFIG+set} != xset ; then
21650         XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
21651      fi
21652   fi
21653   if test x$xml_config_prefix != x ; then
21654      xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
21655      if test x${XML2_CONFIG+set} != xset ; then
21656         XML2_CONFIG=$xml_config_prefix/bin/xml2-config
21657      fi
21658   fi
21659
21660   # Extract the first word of "xml2-config", so it can be a program name with args.
21661 set dummy xml2-config; ac_word=$2
21662 echo "$as_me:$LINENO: checking for $ac_word" >&5
21663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21664 if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
21665   echo $ECHO_N "(cached) $ECHO_C" >&6
21666 else
21667   case $XML2_CONFIG in
21668   [\\/]* | ?:[\\/]*)
21669   ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
21670   ;;
21671   *)
21672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21673 for as_dir in $PATH
21674 do
21675   IFS=$as_save_IFS
21676   test -z "$as_dir" && as_dir=.
21677   for ac_exec_ext in '' $ac_executable_extensions; do
21678   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21679     ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21681     break 2
21682   fi
21683 done
21684 done
21685
21686   test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
21687   ;;
21688 esac
21689 fi
21690 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
21691
21692 if test -n "$XML2_CONFIG"; then
21693   echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
21694 echo "${ECHO_T}$XML2_CONFIG" >&6
21695 else
21696   echo "$as_me:$LINENO: result: no" >&5
21697 echo "${ECHO_T}no" >&6
21698 fi
21699
21700   min_xml_version=2.0.0
21701   echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
21702 echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
21703   no_xml=""
21704   if test "$XML2_CONFIG" = "no" ; then
21705     no_xml=yes
21706   else
21707     XML_CFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
21708     XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
21709     xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
21710            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21711     xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
21712            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21713     xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
21714            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21715     if test "x$enable_xmltest" = "xyes" ; then
21716       ac_save_CFLAGS="$CFLAGS"
21717       ac_save_LIBS="$LIBS"
21718       CFLAGS="$CFLAGS $XML_CFLAGS"
21719       LIBS="$XML_LIBS $LIBS"
21720       rm -f conf.xmltest
21721       if test "$cross_compiling" = yes; then
21722   echo $ac_n "cross compiling; assumed OK... $ac_c"
21723 else
21724   cat >conftest.$ac_ext <<_ACEOF
21725 #line $LINENO "configure"
21726 #include "confdefs.h"
21727
21728 #include <stdlib.h>
21729 #include <stdio.h>
21730 #include <string.h>
21731 #include <libxml/xmlversion.h>
21732
21733 int
21734 main()
21735 {
21736   int xml_major_version, xml_minor_version, xml_micro_version;
21737   int major, minor, micro;
21738   char *tmp_version;
21739
21740   system("touch conf.xmltest");
21741
21742   /* Capture xml2-config output via autoconf/configure variables */
21743   /* HP/UX 9 (%@#!) writes to sscanf strings */
21744   tmp_version = (char *)strdup("$min_xml_version");
21745   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21746      printf("%s, bad version string from xml2-config\n", "$min_xml_version");
21747      exit(1);
21748    }
21749    free(tmp_version);
21750
21751    /* Capture the version information from the header files */
21752    tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
21753    if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
21754      printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
21755      exit(1);
21756    }
21757    free(tmp_version);
21758
21759  /* Compare xml2-config output to the libxml headers */
21760   if ((xml_major_version != $xml_config_major_version) ||
21761       (xml_minor_version != $xml_config_minor_version) ||
21762       (xml_micro_version != $xml_config_micro_version))
21763     {
21764       printf("*** libxml header files (version %d.%d.%d) do not match\n",
21765          xml_major_version, xml_minor_version, xml_micro_version);
21766       printf("*** xml2-config (version %d.%d.%d)\n",
21767          $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
21768       return 1;
21769     }
21770 /* Compare the headers to the library to make sure we match */
21771   /* Less than ideal -- doesn't provide us with return value feedback,
21772    * only exits if there's a serious mismatch between header and library.
21773    */
21774     LIBXML_TEST_VERSION;
21775
21776     /* Test that the library is greater than our minimum version */
21777     if ((xml_major_version > major) ||
21778         ((xml_major_version == major) && (xml_minor_version > minor)) ||
21779         ((xml_major_version == major) && (xml_minor_version == minor) &&
21780         (xml_micro_version >= micro)))
21781       {
21782         return 0;
21783        }
21784      else
21785       {
21786         printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
21787                xml_major_version, xml_minor_version, xml_micro_version);
21788         printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
21789            major, minor, micro);
21790         printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
21791         printf("***\n");
21792         printf("*** If you have already installed a sufficiently new version, this error\n");
21793         printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
21794         printf("*** being found. The easiest way to fix this is to remove the old version\n");
21795         printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
21796         printf("*** correct copy of xml2-config. (In this case, you will have to\n");
21797         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21798         printf("*** so that the correct libraries are found at run-time))\n");
21799     }
21800   return 1;
21801 }
21802
21803 _ACEOF
21804 rm -f conftest$ac_exeext
21805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21806   (eval $ac_link) 2>&5
21807   ac_status=$?
21808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21811   (eval $ac_try) 2>&5
21812   ac_status=$?
21813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814   (exit $ac_status); }; }; then
21815   :
21816 else
21817   echo "$as_me: program exited with status $ac_status" >&5
21818 echo "$as_me: failed program was:" >&5
21819 cat conftest.$ac_ext >&5
21820 ( exit $ac_status )
21821 no_xml=yes
21822 fi
21823 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21824 fi
21825        CFLAGS="$ac_save_CFLAGS"
21826        LIBS="$ac_save_LIBS"
21827      fi
21828   fi
21829
21830   if test "x$no_xml" = x ; then
21831      echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
21832 echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6
21833      MODULE_XML=bin/xml.so
21834   else
21835      echo "$as_me:$LINENO: result: no" >&5
21836 echo "${ECHO_T}no" >&6
21837      if test "$XML2_CONFIG" = "no" ; then
21838        echo "*** The xml2-config script installed by LIBXML could not be found"
21839        echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
21840        echo "*** your path, or set the XML2_CONFIG environment variable to the"
21841        echo "*** full path to xml2-config."
21842      else
21843        if test -f conf.xmltest ; then
21844         :
21845        else
21846           echo "*** Could not run libxml test program, checking why..."
21847           CFLAGS="$CFLAGS $XML_CFLAGS"
21848           LIBS="$LIBS $XML_LIBS"
21849           cat >conftest.$ac_ext <<_ACEOF
21850 #line $LINENO "configure"
21851 #include "confdefs.h"
21852
21853 #include <libxml/xmlversion.h>
21854 #include <stdio.h>
21855
21856 #ifdef F77_DUMMY_MAIN
21857 #  ifdef __cplusplus
21858      extern "C"
21859 #  endif
21860    int F77_DUMMY_MAIN() { return 1; }
21861 #endif
21862 int
21863 main ()
21864 {
21865  LIBXML_TEST_VERSION; return 0;
21866   ;
21867   return 0;
21868 }
21869 _ACEOF
21870 rm -f conftest.$ac_objext conftest$ac_exeext
21871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21872   (eval $ac_link) 2>&5
21873   ac_status=$?
21874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875   (exit $ac_status); } &&
21876          { ac_try='test -s conftest$ac_exeext'
21877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21878   (eval $ac_try) 2>&5
21879   ac_status=$?
21880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881   (exit $ac_status); }; }; then
21882    echo "*** The test program compiled, but did not run. This usually means"
21883           echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
21884           echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
21885           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21886           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
21887           echo "*** is required on your system"
21888           echo "***"
21889           echo "*** If you have an old version installed, it is best to remove it, although"
21890           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21891 else
21892   echo "$as_me: failed program was:" >&5
21893 cat conftest.$ac_ext >&5
21894  echo "*** The test program failed to compile or link. See the file config.log for the"
21895           echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
21896           echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
21897           echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
21898 fi
21899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21900           CFLAGS="$ac_save_CFLAGS"
21901           LIBS="$ac_save_LIBS"
21902        fi
21903      fi
21904
21905      XML_CFLAGS=""
21906      XML_LIBS=""
21907      MODULE_XML=
21908   fi
21909
21910
21911   rm -f conf.xmltest
21912
21913 CFLAGS="$CFLAGS $XML_CFLAGS"
21914
21915
21916 #################################################
21917 # check for automount support
21918 echo "$as_me:$LINENO: checking whether to use AUTOMOUNT" >&5
21919 echo $ECHO_N "checking whether to use AUTOMOUNT... $ECHO_C" >&6
21920
21921 # Check whether --with-automount or --without-automount was given.
21922 if test "${with_automount+set}" = set; then
21923   withval="$with_automount"
21924    case "$withval" in
21925   yes)
21926     echo "$as_me:$LINENO: result: yes" >&5
21927 echo "${ECHO_T}yes" >&6
21928
21929 cat >>confdefs.h <<\_ACEOF
21930 #define WITH_AUTOMOUNT 1
21931 _ACEOF
21932
21933     ;;
21934   *)
21935     echo "$as_me:$LINENO: result: no" >&5
21936 echo "${ECHO_T}no" >&6
21937     ;;
21938   esac
21939 else
21940   echo "$as_me:$LINENO: result: no" >&5
21941 echo "${ECHO_T}no" >&6
21942
21943 fi;
21944
21945 #################################################
21946 # check for smbmount support
21947 echo "$as_me:$LINENO: checking whether to use SMBMOUNT" >&5
21948 echo $ECHO_N "checking whether to use SMBMOUNT... $ECHO_C" >&6
21949
21950 # Check whether --with-smbmount or --without-smbmount was given.
21951 if test "${with_smbmount+set}" = set; then
21952   withval="$with_smbmount"
21953    case "$withval" in
21954   yes)
21955         case "$host_os" in
21956         *linux*)
21957                 echo "$as_me:$LINENO: result: yes" >&5
21958 echo "${ECHO_T}yes" >&6
21959
21960 cat >>confdefs.h <<\_ACEOF
21961 #define WITH_SMBMOUNT 1
21962 _ACEOF
21963
21964                 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
21965                 ;;
21966         *)
21967                 { { echo "$as_me:$LINENO: error: not on a linux system!" >&5
21968 echo "$as_me: error: not on a linux system!" >&2;}
21969    { (exit 1); exit 1; }; }
21970                 ;;
21971         esac
21972     ;;
21973   *)
21974     echo "$as_me:$LINENO: result: no" >&5
21975 echo "${ECHO_T}no" >&6
21976     MPROGS=
21977     ;;
21978   esac
21979 else
21980   echo "$as_me:$LINENO: result: no" >&5
21981 echo "${ECHO_T}no" >&6
21982   MPROGS=
21983
21984 fi;
21985
21986
21987 #################################################
21988 # check for a PAM clear-text auth, accounts, password and session support
21989 with_pam_for_crypt=no
21990 echo "$as_me:$LINENO: checking whether to use PAM" >&5
21991 echo $ECHO_N "checking whether to use PAM... $ECHO_C" >&6
21992
21993 # Check whether --with-pam or --without-pam was given.
21994 if test "${with_pam+set}" = set; then
21995   withval="$with_pam"
21996    case "$withval" in
21997   yes)
21998     echo "$as_me:$LINENO: result: yes" >&5
21999 echo "${ECHO_T}yes" >&6
22000
22001 cat >>confdefs.h <<\_ACEOF
22002 #define WITH_PAM 1
22003 _ACEOF
22004
22005     AUTHLIBS="$AUTHLIBS -lpam"
22006     with_pam_for_crypt=yes
22007     ;;
22008   *)
22009     echo "$as_me:$LINENO: result: no" >&5
22010 echo "${ECHO_T}no" >&6
22011     ;;
22012   esac
22013 else
22014   echo "$as_me:$LINENO: result: no" >&5
22015 echo "${ECHO_T}no" >&6
22016
22017 fi;
22018
22019 # we can't build a pam module if we don't have pam.
22020 echo "$as_me:$LINENO: checking for pam_get_data in -lpam" >&5
22021 echo $ECHO_N "checking for pam_get_data in -lpam... $ECHO_C" >&6
22022 if test "${ac_cv_lib_pam_pam_get_data+set}" = set; then
22023   echo $ECHO_N "(cached) $ECHO_C" >&6
22024 else
22025   ac_check_lib_save_LIBS=$LIBS
22026 LIBS="-lpam  $LIBS"
22027 cat >conftest.$ac_ext <<_ACEOF
22028 #line $LINENO "configure"
22029 #include "confdefs.h"
22030
22031 /* Override any gcc2 internal prototype to avoid an error.  */
22032 #ifdef __cplusplus
22033 extern "C"
22034 #endif
22035 /* We use char because int might match the return type of a gcc2
22036    builtin and then its argument prototype would still apply.  */
22037 char pam_get_data ();
22038 #ifdef F77_DUMMY_MAIN
22039 #  ifdef __cplusplus
22040      extern "C"
22041 #  endif
22042    int F77_DUMMY_MAIN() { return 1; }
22043 #endif
22044 int
22045 main ()
22046 {
22047 pam_get_data ();
22048   ;
22049   return 0;
22050 }
22051 _ACEOF
22052 rm -f conftest.$ac_objext conftest$ac_exeext
22053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22054   (eval $ac_link) 2>&5
22055   ac_status=$?
22056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057   (exit $ac_status); } &&
22058          { ac_try='test -s conftest$ac_exeext'
22059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22060   (eval $ac_try) 2>&5
22061   ac_status=$?
22062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063   (exit $ac_status); }; }; then
22064   ac_cv_lib_pam_pam_get_data=yes
22065 else
22066   echo "$as_me: failed program was:" >&5
22067 cat conftest.$ac_ext >&5
22068 ac_cv_lib_pam_pam_get_data=no
22069 fi
22070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22071 LIBS=$ac_check_lib_save_LIBS
22072 fi
22073 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_get_data" >&5
22074 echo "${ECHO_T}$ac_cv_lib_pam_pam_get_data" >&6
22075 if test $ac_cv_lib_pam_pam_get_data = yes; then
22076
22077 cat >>confdefs.h <<\_ACEOF
22078 #define HAVE_LIBPAM 1
22079 _ACEOF
22080
22081 fi
22082
22083
22084 #################################################
22085 # check for pam_smbpass support
22086 echo "$as_me:$LINENO: checking whether to use pam_smbpass" >&5
22087 echo $ECHO_N "checking whether to use pam_smbpass... $ECHO_C" >&6
22088
22089 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
22090 if test "${with_pam_smbpass+set}" = set; then
22091   withval="$with_pam_smbpass"
22092    case "$withval" in
22093   yes)
22094     echo "$as_me:$LINENO: result: yes" >&5
22095 echo "${ECHO_T}yes" >&6
22096
22097 # Conditions under which pam_smbpass should not be built.
22098
22099        if test x$PICFLAG = x; then
22100           echo "$as_me:$LINENO: result: No support for PIC code - disabling pam_smbpass" >&5
22101 echo "${ECHO_T}No support for PIC code - disabling pam_smbpass" >&6
22102           PAM_MOD=""
22103        elif test x$ac_cv_lib_pam_pam_get_data = xno; then
22104           echo "$as_me:$LINENO: result: No libpam found -- disabling pam_smbpass" >&5
22105 echo "${ECHO_T}No libpam found -- disabling pam_smbpass" >&6
22106           PAM_MOD=""
22107        else
22108           PAM_MOD="bin/pam_smbpass.so"
22109        fi
22110     ;;
22111   *)
22112     echo "$as_me:$LINENO: result: no" >&5
22113 echo "${ECHO_T}no" >&6
22114     ;;
22115   esac
22116 else
22117   echo "$as_me:$LINENO: result: no" >&5
22118 echo "${ECHO_T}no" >&6
22119
22120 fi;
22121
22122
22123 ###############################################
22124 # test for where we get crypt() from, but only
22125 # if not using PAM
22126 if test x"$with_pam_for_crypt" = x"no"; then
22127
22128 for ac_func in crypt
22129 do
22130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22131 echo "$as_me:$LINENO: checking for $ac_func" >&5
22132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22133 if eval "test \"\${$as_ac_var+set}\" = set"; then
22134   echo $ECHO_N "(cached) $ECHO_C" >&6
22135 else
22136   cat >conftest.$ac_ext <<_ACEOF
22137 #line $LINENO "configure"
22138 #include "confdefs.h"
22139 /* System header to define __stub macros and hopefully few prototypes,
22140     which can conflict with char $ac_func (); below.  */
22141 #include <assert.h>
22142 /* Override any gcc2 internal prototype to avoid an error.  */
22143 #ifdef __cplusplus
22144 extern "C"
22145 #endif
22146 /* We use char because int might match the return type of a gcc2
22147    builtin and then its argument prototype would still apply.  */
22148 char $ac_func ();
22149 char (*f) ();
22150
22151 #ifdef F77_DUMMY_MAIN
22152 #  ifdef __cplusplus
22153      extern "C"
22154 #  endif
22155    int F77_DUMMY_MAIN() { return 1; }
22156 #endif
22157 int
22158 main ()
22159 {
22160 /* The GNU C library defines this for functions which it implements
22161     to always fail with ENOSYS.  Some functions are actually named
22162     something starting with __ and the normal name is an alias.  */
22163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22164 choke me
22165 #else
22166 f = $ac_func;
22167 #endif
22168
22169   ;
22170   return 0;
22171 }
22172 _ACEOF
22173 rm -f conftest.$ac_objext conftest$ac_exeext
22174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22175   (eval $ac_link) 2>&5
22176   ac_status=$?
22177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178   (exit $ac_status); } &&
22179          { ac_try='test -s conftest$ac_exeext'
22180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22181   (eval $ac_try) 2>&5
22182   ac_status=$?
22183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184   (exit $ac_status); }; }; then
22185   eval "$as_ac_var=yes"
22186 else
22187   echo "$as_me: failed program was:" >&5
22188 cat conftest.$ac_ext >&5
22189 eval "$as_ac_var=no"
22190 fi
22191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22192 fi
22193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22195 if test `eval echo '${'$as_ac_var'}'` = yes; then
22196   cat >>confdefs.h <<_ACEOF
22197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22198 _ACEOF
22199
22200 fi
22201 done
22202
22203 if test x"$ac_cv_func_crypt" = x"no"; then
22204     echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22205 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
22206 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22207   echo $ECHO_N "(cached) $ECHO_C" >&6
22208 else
22209   ac_check_lib_save_LIBS=$LIBS
22210 LIBS="-lcrypt  $LIBS"
22211 cat >conftest.$ac_ext <<_ACEOF
22212 #line $LINENO "configure"
22213 #include "confdefs.h"
22214
22215 /* Override any gcc2 internal prototype to avoid an error.  */
22216 #ifdef __cplusplus
22217 extern "C"
22218 #endif
22219 /* We use char because int might match the return type of a gcc2
22220    builtin and then its argument prototype would still apply.  */
22221 char crypt ();
22222 #ifdef F77_DUMMY_MAIN
22223 #  ifdef __cplusplus
22224      extern "C"
22225 #  endif
22226    int F77_DUMMY_MAIN() { return 1; }
22227 #endif
22228 int
22229 main ()
22230 {
22231 crypt ();
22232   ;
22233   return 0;
22234 }
22235 _ACEOF
22236 rm -f conftest.$ac_objext conftest$ac_exeext
22237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22238   (eval $ac_link) 2>&5
22239   ac_status=$?
22240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241   (exit $ac_status); } &&
22242          { ac_try='test -s conftest$ac_exeext'
22243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22244   (eval $ac_try) 2>&5
22245   ac_status=$?
22246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247   (exit $ac_status); }; }; then
22248   ac_cv_lib_crypt_crypt=yes
22249 else
22250   echo "$as_me: failed program was:" >&5
22251 cat conftest.$ac_ext >&5
22252 ac_cv_lib_crypt_crypt=no
22253 fi
22254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22255 LIBS=$ac_check_lib_save_LIBS
22256 fi
22257 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22258 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
22259 if test $ac_cv_lib_crypt_crypt = yes; then
22260   AUTHLIBS="$AUTHLIBS -lcrypt";
22261
22262 cat >>confdefs.h <<\_ACEOF
22263 #define HAVE_CRYPT 1
22264 _ACEOF
22265
22266 fi
22267
22268 fi
22269 fi
22270
22271 ##
22272 ## moved after the check for -lcrypt in order to
22273 ## ensure that the necessary libraries are included
22274 ## check checking for truncated salt.  Wrapped by the
22275 ## $with_pam_for_crypt variable as above   --jerry
22276 ##
22277 if test $with_pam_for_crypt = no; then
22278 echo "$as_me:$LINENO: checking for a crypt that needs truncated salt" >&5
22279 echo $ECHO_N "checking for a crypt that needs truncated salt... $ECHO_C" >&6
22280 if test "${samba_cv_HAVE_TRUNCATED_SALT+set}" = set; then
22281   echo $ECHO_N "(cached) $ECHO_C" >&6
22282 else
22283
22284 crypt_LIBS="$LIBS"
22285 LIBS="$AUTHLIBS $LIBS"
22286 if test "$cross_compiling" = yes; then
22287   samba_cv_HAVE_TRUNCATED_SALT=cross
22288 else
22289   cat >conftest.$ac_ext <<_ACEOF
22290 #line $LINENO "configure"
22291 #include "confdefs.h"
22292 #include "${srcdir-.}/tests/crypttest.c"
22293 _ACEOF
22294 rm -f conftest$ac_exeext
22295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22296   (eval $ac_link) 2>&5
22297   ac_status=$?
22298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22301   (eval $ac_try) 2>&5
22302   ac_status=$?
22303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304   (exit $ac_status); }; }; then
22305   samba_cv_HAVE_TRUNCATED_SALT=no
22306 else
22307   echo "$as_me: program exited with status $ac_status" >&5
22308 echo "$as_me: failed program was:" >&5
22309 cat conftest.$ac_ext >&5
22310 ( exit $ac_status )
22311 samba_cv_HAVE_TRUNCATED_SALT=yes
22312 fi
22313 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22314 fi
22315 LIBS="$crypt_LIBS"
22316 fi
22317 echo "$as_me:$LINENO: result: $samba_cv_HAVE_TRUNCATED_SALT" >&5
22318 echo "${ECHO_T}$samba_cv_HAVE_TRUNCATED_SALT" >&6
22319 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
22320
22321 cat >>confdefs.h <<\_ACEOF
22322 #define HAVE_TRUNCATED_SALT 1
22323 _ACEOF
22324
22325 fi
22326 fi
22327
22328 # New experimental SAM system
22329
22330 echo "$as_me:$LINENO: checking whether to build the new (experimental) SAM database" >&5
22331 echo $ECHO_N "checking whether to build the new (experimental) SAM database... $ECHO_C" >&6
22332
22333 # Check whether --with-sam or --without-sam was given.
22334 if test "${with_sam+set}" = set; then
22335   withval="$with_sam"
22336    case "$withval" in
22337   yes)
22338     echo "$as_me:$LINENO: result: yes" >&5
22339 echo "${ECHO_T}yes" >&6
22340
22341 cat >>confdefs.h <<\_ACEOF
22342 #define WITH_SAM 1
22343 _ACEOF
22344
22345     ;;
22346   *)
22347     echo "$as_me:$LINENO: result: no" >&5
22348 echo "${ECHO_T}no" >&6
22349     ;;
22350   esac
22351 else
22352   echo "$as_me:$LINENO: result: no" >&5
22353 echo "${ECHO_T}no" >&6
22354
22355 fi;
22356
22357
22358 ########################################################################################
22359 ##
22360 ## TESTS FOR SAM BACKENDS.  KEEP THESE GROUPED TOGETHER
22361 ##
22362 ########################################################################################
22363
22364 #################################################
22365 # check for a LDAP password database configuration backwards compatibility
22366 echo "$as_me:$LINENO: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
22367 echo $ECHO_N "checking whether to use LDAP SAM 2.2 compatible configuration... $ECHO_C" >&6
22368
22369 # Check whether --with-ldapsam or --without-ldapsam was given.
22370 if test "${with_ldapsam+set}" = set; then
22371   withval="$with_ldapsam"
22372    case "$withval" in
22373   yes)
22374     echo "$as_me:$LINENO: result: yes" >&5
22375 echo "${ECHO_T}yes" >&6
22376
22377 cat >>confdefs.h <<\_ACEOF
22378 #define WITH_LDAP_SAMCONFIG 1
22379 _ACEOF
22380
22381     ;;
22382   *)
22383     echo "$as_me:$LINENO: result: no" >&5
22384 echo "${ECHO_T}no" >&6
22385     ;;
22386   esac
22387 else
22388   echo "$as_me:$LINENO: result: no" >&5
22389 echo "${ECHO_T}no" >&6
22390
22391 fi;
22392
22393 #################################################
22394 # check for a TDB password database
22395 echo "$as_me:$LINENO: checking whether to use TDB SAM database" >&5
22396 echo $ECHO_N "checking whether to use TDB SAM database... $ECHO_C" >&6
22397
22398 # Check whether --with-tdbsam or --without-tdbsam was given.
22399 if test "${with_tdbsam+set}" = set; then
22400   withval="$with_tdbsam"
22401    case "$withval" in
22402   yes)
22403     echo "$as_me:$LINENO: result: yes" >&5
22404 echo "${ECHO_T}yes" >&6
22405
22406 cat >>confdefs.h <<\_ACEOF
22407 #define WITH_TDB_SAM 1
22408 _ACEOF
22409
22410     ;;
22411   *)
22412     echo "$as_me:$LINENO: result: no" >&5
22413 echo "${ECHO_T}no" >&6
22414     ;;
22415   esac
22416 else
22417   echo "$as_me:$LINENO: result: no" >&5
22418 echo "${ECHO_T}no" >&6
22419
22420 fi;
22421
22422 #################################################
22423 # check for a NISPLUS password database
22424 echo "$as_me:$LINENO: checking whether to use NISPLUS SAM database" >&5
22425 echo $ECHO_N "checking whether to use NISPLUS SAM database... $ECHO_C" >&6
22426
22427 # Check whether --with-nisplussam or --without-nisplussam was given.
22428 if test "${with_nisplussam+set}" = set; then
22429   withval="$with_nisplussam"
22430    case "$withval" in
22431   yes)
22432     echo "$as_me:$LINENO: result: yes" >&5
22433 echo "${ECHO_T}yes" >&6
22434
22435 cat >>confdefs.h <<\_ACEOF
22436 #define WITH_NISPLUS_SAM 1
22437 _ACEOF
22438
22439     ;;
22440   *)
22441     echo "$as_me:$LINENO: result: no" >&5
22442 echo "${ECHO_T}no" >&6
22443     ;;
22444   esac
22445 else
22446   echo "$as_me:$LINENO: result: no" >&5
22447 echo "${ECHO_T}no" >&6
22448
22449 fi;
22450
22451 ########################################################################################
22452 ##
22453 ## END OF TESTS FOR SAM BACKENDS.
22454 ##
22455 ########################################################################################
22456
22457 #################################################
22458 # check for a NISPLUS_HOME support
22459 echo "$as_me:$LINENO: checking whether to use NISPLUS_HOME" >&5
22460 echo $ECHO_N "checking whether to use NISPLUS_HOME... $ECHO_C" >&6
22461
22462 # Check whether --with-nisplus-home or --without-nisplus-home was given.
22463 if test "${with_nisplus_home+set}" = set; then
22464   withval="$with_nisplus_home"
22465    case "$withval" in
22466   yes)
22467     echo "$as_me:$LINENO: result: yes" >&5
22468 echo "${ECHO_T}yes" >&6
22469
22470 cat >>confdefs.h <<\_ACEOF
22471 #define WITH_NISPLUS_HOME 1
22472 _ACEOF
22473
22474     ;;
22475   *)
22476     echo "$as_me:$LINENO: result: no" >&5
22477 echo "${ECHO_T}no" >&6
22478     ;;
22479   esac
22480 else
22481   echo "$as_me:$LINENO: result: no" >&5
22482 echo "${ECHO_T}no" >&6
22483
22484 fi;
22485
22486 #################################################
22487 # check for syslog logging
22488 echo "$as_me:$LINENO: checking whether to use syslog logging" >&5
22489 echo $ECHO_N "checking whether to use syslog logging... $ECHO_C" >&6
22490
22491 # Check whether --with-syslog or --without-syslog was given.
22492 if test "${with_syslog+set}" = set; then
22493   withval="$with_syslog"
22494    case "$withval" in
22495   yes)
22496     echo "$as_me:$LINENO: result: yes" >&5
22497 echo "${ECHO_T}yes" >&6
22498
22499 cat >>confdefs.h <<\_ACEOF
22500 #define WITH_SYSLOG 1
22501 _ACEOF
22502
22503     ;;
22504   *)
22505     echo "$as_me:$LINENO: result: no" >&5
22506 echo "${ECHO_T}no" >&6
22507     ;;
22508   esac
22509 else
22510   echo "$as_me:$LINENO: result: no" >&5
22511 echo "${ECHO_T}no" >&6
22512
22513 fi;
22514
22515 #################################################
22516 # check for a shared memory profiling support
22517 echo "$as_me:$LINENO: checking whether to use profiling" >&5
22518 echo $ECHO_N "checking whether to use profiling... $ECHO_C" >&6
22519
22520 # Check whether --with-profiling-data or --without-profiling-data was given.
22521 if test "${with_profiling_data+set}" = set; then
22522   withval="$with_profiling_data"
22523    case "$withval" in
22524   yes)
22525     echo "$as_me:$LINENO: result: yes" >&5
22526 echo "${ECHO_T}yes" >&6
22527
22528 cat >>confdefs.h <<\_ACEOF
22529 #define WITH_PROFILE 1
22530 _ACEOF
22531
22532     ;;
22533   *)
22534     echo "$as_me:$LINENO: result: no" >&5
22535 echo "${ECHO_T}no" >&6
22536     ;;
22537   esac
22538 else
22539   echo "$as_me:$LINENO: result: no" >&5
22540 echo "${ECHO_T}no" >&6
22541
22542 fi;
22543
22544
22545 #################################################
22546 # check for experimental disk-quotas support
22547 QUOTAOBJS=smbd/noquotas.o
22548
22549 echo "$as_me:$LINENO: checking whether to support disk-quotas" >&5
22550 echo $ECHO_N "checking whether to support disk-quotas... $ECHO_C" >&6
22551
22552 # Check whether --with-quotas or --without-quotas was given.
22553 if test "${with_quotas+set}" = set; then
22554   withval="$with_quotas"
22555    case "$withval" in
22556   yes)
22557     echo "$as_me:$LINENO: result: yes" >&5
22558 echo "${ECHO_T}yes" >&6
22559     case "$host_os" in
22560       *linux*)
22561         # Check for kernel 2.4.x quota braindamage...
22562         echo "$as_me:$LINENO: checking for linux 2.4.x quota braindamage.." >&5
22563 echo $ECHO_N "checking for linux 2.4.x quota braindamage..... $ECHO_C" >&6
22564 if test "${samba_cv_linux_2_4_quota_braindamage+set}" = set; then
22565   echo $ECHO_N "(cached) $ECHO_C" >&6
22566 else
22567
22568         cat >conftest.$ac_ext <<_ACEOF
22569 #line $LINENO "configure"
22570 #include "confdefs.h"
22571 #include <stdio.h>
22572 #include <sys/types.h>
22573 #include <asm/types.h>
22574 #include <linux/quota.h>
22575 #include <mntent.h>
22576 #include <linux/unistd.h>
22577 #ifdef F77_DUMMY_MAIN
22578 #  ifdef __cplusplus
22579      extern "C"
22580 #  endif
22581    int F77_DUMMY_MAIN() { return 1; }
22582 #endif
22583 int
22584 main ()
22585 {
22586 struct mem_dqblk D;
22587   ;
22588   return 0;
22589 }
22590 _ACEOF
22591 rm -f conftest.$ac_objext
22592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22593   (eval $ac_compile) 2>&5
22594   ac_status=$?
22595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596   (exit $ac_status); } &&
22597          { ac_try='test -s conftest.$ac_objext'
22598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22599   (eval $ac_try) 2>&5
22600   ac_status=$?
22601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602   (exit $ac_status); }; }; then
22603   samba_cv_linux_2_4_quota_braindamage=yes
22604 else
22605   echo "$as_me: failed program was:" >&5
22606 cat conftest.$ac_ext >&5
22607 samba_cv_linux_2_4_quota_braindamage=no
22608 fi
22609 rm -f conftest.$ac_objext conftest.$ac_ext
22610 fi
22611 echo "$as_me:$LINENO: result: $samba_cv_linux_2_4_quota_braindamage" >&5
22612 echo "${ECHO_T}$samba_cv_linux_2_4_quota_braindamage" >&6
22613 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
22614
22615 cat >>confdefs.h <<\_ACEOF
22616 #define LINUX_QUOTAS_2 1
22617 _ACEOF
22618
22619 else
22620
22621 cat >>confdefs.h <<\_ACEOF
22622 #define LINUX_QUOTAS_1 1
22623 _ACEOF
22624
22625 fi
22626         ;;
22627       *)
22628         ;;
22629     esac
22630     QUOTAOBJS=smbd/quotas.o
22631
22632 cat >>confdefs.h <<\_ACEOF
22633 #define WITH_QUOTAS 1
22634 _ACEOF
22635
22636     ;;
22637   *)
22638     echo "$as_me:$LINENO: result: no" >&5
22639 echo "${ECHO_T}no" >&6
22640     ;;
22641   esac
22642 else
22643   echo "$as_me:$LINENO: result: no" >&5
22644 echo "${ECHO_T}no" >&6
22645
22646 fi;
22647
22648
22649 #################################################
22650 # check for experimental utmp accounting
22651
22652 echo "$as_me:$LINENO: checking whether to support utmp accounting" >&5
22653 echo $ECHO_N "checking whether to support utmp accounting... $ECHO_C" >&6
22654
22655 # Check whether --with-utmp or --without-utmp was given.
22656 if test "${with_utmp+set}" = set; then
22657   withval="$with_utmp"
22658    case "$withval" in
22659   yes)
22660     echo "$as_me:$LINENO: result: yes" >&5
22661 echo "${ECHO_T}yes" >&6
22662
22663 cat >>confdefs.h <<\_ACEOF
22664 #define WITH_UTMP 1
22665 _ACEOF
22666
22667     ;;
22668   *)
22669     echo "$as_me:$LINENO: result: no" >&5
22670 echo "${ECHO_T}no" >&6
22671     ;;
22672   esac
22673 else
22674   echo "$as_me:$LINENO: result: no" >&5
22675 echo "${ECHO_T}no" >&6
22676
22677 fi;
22678
22679 #################################################
22680 # choose native language(s) of man pages
22681 echo "$as_me:$LINENO: checking chosen man pages' language(s)" >&5
22682 echo $ECHO_N "checking chosen man pages' language(s)... $ECHO_C" >&6
22683
22684 # Check whether --with-manpages-langs or --without-manpages-langs was given.
22685 if test "${with_manpages_langs+set}" = set; then
22686   withval="$with_manpages_langs"
22687    case "$withval" in
22688   yes|no)
22689     { echo "$as_me:$LINENO: WARNING: --with-manpages-langs called without argument - will use default" >&5
22690 echo "$as_me: WARNING: --with-manpages-langs called without argument - will use default" >&2;}
22691     manlangs="en"
22692   ;;
22693   *)
22694     manlangs="$withval"
22695   ;;
22696   esac
22697
22698   echo "$as_me:$LINENO: result: $manlangs" >&5
22699 echo "${ECHO_T}$manlangs" >&6
22700   manlangs=`echo $manlangs | sed "s/,/ /g"`   # replacing commas with spaces to produce a list
22701
22702 else
22703   manlangs="en"
22704   echo "$as_me:$LINENO: result: $manlangs" >&5
22705 echo "${ECHO_T}$manlangs" >&6
22706
22707
22708 fi;
22709
22710 #################################################
22711 # should we build libsmbclient?
22712
22713 LIBSMBCLIENT_SHARED=
22714 LIBSMBCLIENT=
22715 echo "$as_me:$LINENO: checking whether to build the libsmbclient shared library" >&5
22716 echo $ECHO_N "checking whether to build the libsmbclient shared library... $ECHO_C" >&6
22717
22718 # Check whether --with-libsmbclient or --without-libsmbclient was given.
22719 if test "${with_libsmbclient+set}" = set; then
22720   withval="$with_libsmbclient"
22721    case "$withval" in
22722   no)
22723      echo "$as_me:$LINENO: result: no" >&5
22724 echo "${ECHO_T}no" >&6
22725      ;;
22726   *)
22727      if test $BLDSHARED = true; then
22728         LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
22729         LIBSMBCLIENT=libsmbclient
22730         echo "$as_me:$LINENO: result: yes" >&5
22731 echo "${ECHO_T}yes" >&6
22732      else
22733         echo "$as_me:$LINENO: result: no shared library support" >&5
22734 echo "${ECHO_T}no shared library support" >&6
22735      fi
22736      ;;
22737   esac
22738 else
22739   echo "$as_me:$LINENO: result: yes" >&5
22740 echo "${ECHO_T}yes" >&6
22741
22742 fi;
22743
22744
22745 #################################################
22746 # these tests are taken from the GNU fileutils package
22747 { echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
22748 echo "$as_me: checking how to get filesystem space usage..." >&6;}
22749 space=no
22750
22751 # Test for statvfs64.
22752 if test $space = no; then
22753   # SVR4
22754   echo "$as_me:$LINENO: checking statvfs64 function (SVR4)" >&5
22755 echo $ECHO_N "checking statvfs64 function (SVR4)... $ECHO_C" >&6
22756 if test "${fu_cv_sys_stat_statvfs64+set}" = set; then
22757   echo $ECHO_N "(cached) $ECHO_C" >&6
22758 else
22759   if test "$cross_compiling" = yes; then
22760   fu_cv_sys_stat_statvfs64=cross
22761 else
22762   cat >conftest.$ac_ext <<_ACEOF
22763 #line $LINENO "configure"
22764 #include "confdefs.h"
22765
22766 #if defined(HAVE_UNISTD_H)
22767 #include <unistd.h>
22768 #endif
22769 #include <sys/types.h>
22770 #include <sys/statvfs.h>
22771   main ()
22772   {
22773     struct statvfs64 fsd;
22774     exit (statvfs64 (".", &fsd));
22775   }
22776 _ACEOF
22777 rm -f conftest$ac_exeext
22778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22779   (eval $ac_link) 2>&5
22780   ac_status=$?
22781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22784   (eval $ac_try) 2>&5
22785   ac_status=$?
22786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787   (exit $ac_status); }; }; then
22788   fu_cv_sys_stat_statvfs64=yes
22789 else
22790   echo "$as_me: program exited with status $ac_status" >&5
22791 echo "$as_me: failed program was:" >&5
22792 cat conftest.$ac_ext >&5
22793 ( exit $ac_status )
22794 fu_cv_sys_stat_statvfs64=no
22795 fi
22796 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22797 fi
22798 fi
22799 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs64" >&5
22800 echo "${ECHO_T}$fu_cv_sys_stat_statvfs64" >&6
22801   if test $fu_cv_sys_stat_statvfs64 = yes; then
22802     space=yes
22803
22804 cat >>confdefs.h <<\_ACEOF
22805 #define STAT_STATVFS64 1
22806 _ACEOF
22807
22808   fi
22809 fi
22810
22811 # Perform only the link test since it seems there are no variants of the
22812 # statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
22813 # because that got a false positive on SCO OSR5.  Adding the declaration
22814 # of a `struct statvfs' causes this test to fail (as it should) on such
22815 # systems.  That system is reported to work fine with STAT_STATFS4 which
22816 # is what it gets when this test fails.
22817 if test $space = no; then
22818   # SVR4
22819   echo "$as_me:$LINENO: checking statvfs function (SVR4)" >&5
22820 echo $ECHO_N "checking statvfs function (SVR4)... $ECHO_C" >&6
22821 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
22822   echo $ECHO_N "(cached) $ECHO_C" >&6
22823 else
22824   cat >conftest.$ac_ext <<_ACEOF
22825 #line $LINENO "configure"
22826 #include "confdefs.h"
22827 #include <sys/types.h>
22828 #include <sys/statvfs.h>
22829 #ifdef F77_DUMMY_MAIN
22830 #  ifdef __cplusplus
22831      extern "C"
22832 #  endif
22833    int F77_DUMMY_MAIN() { return 1; }
22834 #endif
22835 int
22836 main ()
22837 {
22838 struct statvfs fsd; statvfs (0, &fsd);
22839   ;
22840   return 0;
22841 }
22842 _ACEOF
22843 rm -f conftest.$ac_objext conftest$ac_exeext
22844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22845   (eval $ac_link) 2>&5
22846   ac_status=$?
22847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848   (exit $ac_status); } &&
22849          { ac_try='test -s conftest$ac_exeext'
22850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22851   (eval $ac_try) 2>&5
22852   ac_status=$?
22853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854   (exit $ac_status); }; }; then
22855   fu_cv_sys_stat_statvfs=yes
22856 else
22857   echo "$as_me: failed program was:" >&5
22858 cat conftest.$ac_ext >&5
22859 fu_cv_sys_stat_statvfs=no
22860 fi
22861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22862 fi
22863 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
22864 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
22865   if test $fu_cv_sys_stat_statvfs = yes; then
22866     space=yes
22867
22868 cat >>confdefs.h <<\_ACEOF
22869 #define STAT_STATVFS 1
22870 _ACEOF
22871
22872   fi
22873 fi
22874
22875 if test $space = no; then
22876   # DEC Alpha running OSF/1
22877   echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
22878 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
22879   if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
22880   echo $ECHO_N "(cached) $ECHO_C" >&6
22881 else
22882   if test "$cross_compiling" = yes; then
22883   fu_cv_sys_stat_statfs3_osf1=no
22884 else
22885   cat >conftest.$ac_ext <<_ACEOF
22886 #line $LINENO "configure"
22887 #include "confdefs.h"
22888
22889 #include <sys/param.h>
22890 #include <sys/types.h>
22891 #include <sys/mount.h>
22892   main ()
22893   {
22894     struct statfs fsd;
22895     fsd.f_fsize = 0;
22896     exit (statfs (".", &fsd, sizeof (struct statfs)));
22897   }
22898 _ACEOF
22899 rm -f conftest$ac_exeext
22900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22901   (eval $ac_link) 2>&5
22902   ac_status=$?
22903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22906   (eval $ac_try) 2>&5
22907   ac_status=$?
22908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909   (exit $ac_status); }; }; then
22910   fu_cv_sys_stat_statfs3_osf1=yes
22911 else
22912   echo "$as_me: program exited with status $ac_status" >&5
22913 echo "$as_me: failed program was:" >&5
22914 cat conftest.$ac_ext >&5
22915 ( exit $ac_status )
22916 fu_cv_sys_stat_statfs3_osf1=no
22917 fi
22918 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22919 fi
22920 fi
22921
22922   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
22923 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
22924   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
22925     space=yes
22926
22927 cat >>confdefs.h <<\_ACEOF
22928 #define STAT_STATFS3_OSF1 1
22929 _ACEOF
22930
22931   fi
22932 fi
22933
22934 if test $space = no; then
22935 # AIX
22936   echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
22937 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
22938   if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
22939   echo $ECHO_N "(cached) $ECHO_C" >&6
22940 else
22941   if test "$cross_compiling" = yes; then
22942   fu_cv_sys_stat_statfs2_bsize=no
22943 else
22944   cat >conftest.$ac_ext <<_ACEOF
22945 #line $LINENO "configure"
22946 #include "confdefs.h"
22947
22948 #ifdef HAVE_SYS_PARAM_H
22949 #include <sys/param.h>
22950 #endif
22951 #ifdef HAVE_SYS_MOUNT_H
22952 #include <sys/mount.h>
22953 #endif
22954 #ifdef HAVE_SYS_VFS_H
22955 #include <sys/vfs.h>
22956 #endif
22957   main ()
22958   {
22959   struct statfs fsd;
22960   fsd.f_bsize = 0;
22961   exit (statfs (".", &fsd));
22962   }
22963 _ACEOF
22964 rm -f conftest$ac_exeext
22965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22966   (eval $ac_link) 2>&5
22967   ac_status=$?
22968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22971   (eval $ac_try) 2>&5
22972   ac_status=$?
22973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974   (exit $ac_status); }; }; then
22975   fu_cv_sys_stat_statfs2_bsize=yes
22976 else
22977   echo "$as_me: program exited with status $ac_status" >&5
22978 echo "$as_me: failed program was:" >&5
22979 cat conftest.$ac_ext >&5
22980 ( exit $ac_status )
22981 fu_cv_sys_stat_statfs2_bsize=no
22982 fi
22983 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22984 fi
22985 fi
22986
22987   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
22988 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
22989   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
22990     space=yes
22991
22992 cat >>confdefs.h <<\_ACEOF
22993 #define STAT_STATFS2_BSIZE 1
22994 _ACEOF
22995
22996   fi
22997 fi
22998
22999 if test $space = no; then
23000 # SVR3
23001   echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
23002 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
23003   if test "${fu_cv_sys_stat_statfs4+set}" = set; then
23004   echo $ECHO_N "(cached) $ECHO_C" >&6
23005 else
23006   if test "$cross_compiling" = yes; then
23007   fu_cv_sys_stat_statfs4=no
23008 else
23009   cat >conftest.$ac_ext <<_ACEOF
23010 #line $LINENO "configure"
23011 #include "confdefs.h"
23012 #include <sys/types.h>
23013 #include <sys/statfs.h>
23014   main ()
23015   {
23016   struct statfs fsd;
23017   exit (statfs (".", &fsd, sizeof fsd, 0));
23018   }
23019 _ACEOF
23020 rm -f conftest$ac_exeext
23021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23022   (eval $ac_link) 2>&5
23023   ac_status=$?
23024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23027   (eval $ac_try) 2>&5
23028   ac_status=$?
23029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030   (exit $ac_status); }; }; then
23031   fu_cv_sys_stat_statfs4=yes
23032 else
23033   echo "$as_me: program exited with status $ac_status" >&5
23034 echo "$as_me: failed program was:" >&5
23035 cat conftest.$ac_ext >&5
23036 ( exit $ac_status )
23037 fu_cv_sys_stat_statfs4=no
23038 fi
23039 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23040 fi
23041 fi
23042
23043   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
23044 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
23045   if test $fu_cv_sys_stat_statfs4 = yes; then
23046     space=yes
23047
23048 cat >>confdefs.h <<\_ACEOF
23049 #define STAT_STATFS4 1
23050 _ACEOF
23051
23052   fi
23053 fi
23054
23055 if test $space = no; then
23056 # 4.4BSD and NetBSD
23057   echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
23058 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
23059   if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
23060   echo $ECHO_N "(cached) $ECHO_C" >&6
23061 else
23062   if test "$cross_compiling" = yes; then
23063   fu_cv_sys_stat_statfs2_fsize=no
23064 else
23065   cat >conftest.$ac_ext <<_ACEOF
23066 #line $LINENO "configure"
23067 #include "confdefs.h"
23068 #include <sys/types.h>
23069 #ifdef HAVE_SYS_PARAM_H
23070 #include <sys/param.h>
23071 #endif
23072 #ifdef HAVE_SYS_MOUNT_H
23073 #include <sys/mount.h>
23074 #endif
23075   main ()
23076   {
23077   struct statfs fsd;
23078   fsd.f_fsize = 0;
23079   exit (statfs (".", &fsd));
23080   }
23081 _ACEOF
23082 rm -f conftest$ac_exeext
23083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23084   (eval $ac_link) 2>&5
23085   ac_status=$?
23086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089   (eval $ac_try) 2>&5
23090   ac_status=$?
23091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092   (exit $ac_status); }; }; then
23093   fu_cv_sys_stat_statfs2_fsize=yes
23094 else
23095   echo "$as_me: program exited with status $ac_status" >&5
23096 echo "$as_me: failed program was:" >&5
23097 cat conftest.$ac_ext >&5
23098 ( exit $ac_status )
23099 fu_cv_sys_stat_statfs2_fsize=no
23100 fi
23101 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23102 fi
23103 fi
23104
23105   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
23106 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
23107   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
23108     space=yes
23109
23110 cat >>confdefs.h <<\_ACEOF
23111 #define STAT_STATFS2_FSIZE 1
23112 _ACEOF
23113
23114   fi
23115 fi
23116
23117 if test $space = no; then
23118   # Ultrix
23119   echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
23120 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
23121   if test "${fu_cv_sys_stat_fs_data+set}" = set; then
23122   echo $ECHO_N "(cached) $ECHO_C" >&6
23123 else
23124   if test "$cross_compiling" = yes; then
23125   fu_cv_sys_stat_fs_data=no
23126 else
23127   cat >conftest.$ac_ext <<_ACEOF
23128 #line $LINENO "configure"
23129 #include "confdefs.h"
23130 #include <sys/types.h>
23131 #ifdef HAVE_SYS_PARAM_H
23132 #include <sys/param.h>
23133 #endif
23134 #ifdef HAVE_SYS_MOUNT_H
23135 #include <sys/mount.h>
23136 #endif
23137 #ifdef HAVE_SYS_FS_TYPES_H
23138 #include <sys/fs_types.h>
23139 #endif
23140   main ()
23141   {
23142   struct fs_data fsd;
23143   /* Ultrix's statfs returns 1 for success,
23144      0 for not mounted, -1 for failure.  */
23145   exit (statfs (".", &fsd) != 1);
23146   }
23147 _ACEOF
23148 rm -f conftest$ac_exeext
23149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23150   (eval $ac_link) 2>&5
23151   ac_status=$?
23152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23155   (eval $ac_try) 2>&5
23156   ac_status=$?
23157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158   (exit $ac_status); }; }; then
23159   fu_cv_sys_stat_fs_data=yes
23160 else
23161   echo "$as_me: program exited with status $ac_status" >&5
23162 echo "$as_me: failed program was:" >&5
23163 cat conftest.$ac_ext >&5
23164 ( exit $ac_status )
23165 fu_cv_sys_stat_fs_data=no
23166 fi
23167 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23168 fi
23169 fi
23170
23171   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
23172 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
23173   if test $fu_cv_sys_stat_fs_data = yes; then
23174     space=yes
23175
23176 cat >>confdefs.h <<\_ACEOF
23177 #define STAT_STATFS2_FS_DATA 1
23178 _ACEOF
23179
23180   fi
23181 fi
23182
23183 #
23184 # As a gating factor for large file support, in order to
23185 # use <4GB files we must have the following minimal support
23186 # available.
23187 # long long, and a 64 bit off_t or off64_t.
23188 # If we don't have all of these then disable large
23189 # file support.
23190 #
23191 echo "$as_me:$LINENO: checking if large file support can be enabled" >&5
23192 echo $ECHO_N "checking if large file support can be enabled... $ECHO_C" >&6
23193 cat >conftest.$ac_ext <<_ACEOF
23194 #line $LINENO "configure"
23195 #include "confdefs.h"
23196
23197 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
23198 #include <sys/types.h>
23199 #else
23200 __COMPILE_ERROR_
23201 #endif
23202
23203 #ifdef F77_DUMMY_MAIN
23204 #  ifdef __cplusplus
23205      extern "C"
23206 #  endif
23207    int F77_DUMMY_MAIN() { return 1; }
23208 #endif
23209 int
23210 main ()
23211 {
23212 int i
23213   ;
23214   return 0;
23215 }
23216 _ACEOF
23217 rm -f conftest.$ac_objext
23218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23219   (eval $ac_compile) 2>&5
23220   ac_status=$?
23221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222   (exit $ac_status); } &&
23223          { ac_try='test -s conftest.$ac_objext'
23224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23225   (eval $ac_try) 2>&5
23226   ac_status=$?
23227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228   (exit $ac_status); }; }; then
23229   samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
23230 else
23231   echo "$as_me: failed program was:" >&5
23232 cat conftest.$ac_ext >&5
23233 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
23234 fi
23235 rm -f conftest.$ac_objext conftest.$ac_ext
23236 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
23237
23238 cat >>confdefs.h <<\_ACEOF
23239 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
23240 _ACEOF
23241
23242 fi
23243 echo "$as_me:$LINENO: result: $samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&5
23244 echo "${ECHO_T}$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&6
23245
23246
23247 # Check whether --with-spinlocks or --without-spinlocks was given.
23248 if test "${with_spinlocks+set}" = set; then
23249   withval="$with_spinlocks"
23250
23251 fi;
23252 if test "x$with_spinlocks" = "xyes"; then
23253
23254 cat >>confdefs.h <<\_ACEOF
23255 #define USE_SPINLOCKS 1
23256 _ACEOF
23257
23258
23259     case "$host_cpu" in
23260         sparc)
23261
23262 cat >>confdefs.h <<\_ACEOF
23263 #define SPARC_SPINLOCKS 1
23264 _ACEOF
23265
23266             ;;
23267
23268         i386|i486|i586|i686)
23269
23270 cat >>confdefs.h <<\_ACEOF
23271 #define INTEL_SPINLOCKS 1
23272 _ACEOF
23273
23274             ;;
23275
23276         mips)
23277
23278 cat >>confdefs.h <<\_ACEOF
23279 #define MIPS_SPINLOCKS 1
23280 _ACEOF
23281
23282             ;;
23283
23284         powerpc)
23285
23286 cat >>confdefs.h <<\_ACEOF
23287 #define POWERPC_SPINLOCKS 1
23288 _ACEOF
23289
23290             ;;
23291     esac
23292 fi
23293
23294 #################################################
23295 # check for ACL support
23296
23297 echo "$as_me:$LINENO: checking whether to support ACLs" >&5
23298 echo $ECHO_N "checking whether to support ACLs... $ECHO_C" >&6
23299
23300 # Check whether --with-acl-support or --without-acl-support was given.
23301 if test "${with_acl_support+set}" = set; then
23302   withval="$with_acl_support"
23303    case "$withval" in
23304   yes)
23305
23306         case "$host_os" in
23307         *sysv5*)
23308                 echo "$as_me:$LINENO: result: Using UnixWare ACLs" >&5
23309 echo "${ECHO_T}Using UnixWare ACLs" >&6
23310
23311 cat >>confdefs.h <<\_ACEOF
23312 #define HAVE_UNIXWARE_ACLS 1
23313 _ACEOF
23314
23315                 ;;
23316         *solaris*)
23317                 echo "$as_me:$LINENO: result: Using solaris ACLs" >&5
23318 echo "${ECHO_T}Using solaris ACLs" >&6
23319
23320 cat >>confdefs.h <<\_ACEOF
23321 #define HAVE_SOLARIS_ACLS 1
23322 _ACEOF
23323
23324                 ;;
23325         *hpux*)
23326                 echo "$as_me:$LINENO: result: Using HPUX ACLs" >&5
23327 echo "${ECHO_T}Using HPUX ACLs" >&6
23328
23329 cat >>confdefs.h <<\_ACEOF
23330 #define HAVE_HPUX_ACLS 1
23331 _ACEOF
23332
23333                 ;;
23334         *irix*)
23335                 echo "$as_me:$LINENO: result: Using IRIX ACLs" >&5
23336 echo "${ECHO_T}Using IRIX ACLs" >&6
23337
23338 cat >>confdefs.h <<\_ACEOF
23339 #define HAVE_IRIX_ACLS 1
23340 _ACEOF
23341
23342                 ;;
23343         *aix*)
23344                 echo "$as_me:$LINENO: result: Using AIX ACLs" >&5
23345 echo "${ECHO_T}Using AIX ACLs" >&6
23346
23347 cat >>confdefs.h <<\_ACEOF
23348 #define HAVE_AIX_ACLS 1
23349 _ACEOF
23350
23351                 ;;
23352         *osf*)
23353                 echo "$as_me:$LINENO: result: Using Tru64 ACLs" >&5
23354 echo "${ECHO_T}Using Tru64 ACLs" >&6
23355
23356 cat >>confdefs.h <<\_ACEOF
23357 #define HAVE_TRU64_ACLS 1
23358 _ACEOF
23359
23360                 LIBS="$LIBS -lpacl"
23361                 ;;
23362         *)
23363
23364 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
23365 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
23366 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
23367   echo $ECHO_N "(cached) $ECHO_C" >&6
23368 else
23369   ac_check_lib_save_LIBS=$LIBS
23370 LIBS="-lacl  $LIBS"
23371 cat >conftest.$ac_ext <<_ACEOF
23372 #line $LINENO "configure"
23373 #include "confdefs.h"
23374
23375 /* Override any gcc2 internal prototype to avoid an error.  */
23376 #ifdef __cplusplus
23377 extern "C"
23378 #endif
23379 /* We use char because int might match the return type of a gcc2
23380    builtin and then its argument prototype would still apply.  */
23381 char acl_get_file ();
23382 #ifdef F77_DUMMY_MAIN
23383 #  ifdef __cplusplus
23384      extern "C"
23385 #  endif
23386    int F77_DUMMY_MAIN() { return 1; }
23387 #endif
23388 int
23389 main ()
23390 {
23391 acl_get_file ();
23392   ;
23393   return 0;
23394 }
23395 _ACEOF
23396 rm -f conftest.$ac_objext conftest$ac_exeext
23397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23398   (eval $ac_link) 2>&5
23399   ac_status=$?
23400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401   (exit $ac_status); } &&
23402          { ac_try='test -s conftest$ac_exeext'
23403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23404   (eval $ac_try) 2>&5
23405   ac_status=$?
23406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407   (exit $ac_status); }; }; then
23408   ac_cv_lib_acl_acl_get_file=yes
23409 else
23410   echo "$as_me: failed program was:" >&5
23411 cat conftest.$ac_ext >&5
23412 ac_cv_lib_acl_acl_get_file=no
23413 fi
23414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23415 LIBS=$ac_check_lib_save_LIBS
23416 fi
23417 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
23418 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
23419 if test $ac_cv_lib_acl_acl_get_file = yes; then
23420   cat >>confdefs.h <<_ACEOF
23421 #define HAVE_LIBACL 1
23422 _ACEOF
23423
23424   LIBS="-lacl $LIBS"
23425
23426 fi
23427
23428                 echo "$as_me:$LINENO: checking for ACL support" >&5
23429 echo $ECHO_N "checking for ACL support... $ECHO_C" >&6
23430 if test "${samba_cv_HAVE_POSIX_ACLS+set}" = set; then
23431   echo $ECHO_N "(cached) $ECHO_C" >&6
23432 else
23433
23434                 cat >conftest.$ac_ext <<_ACEOF
23435 #line $LINENO "configure"
23436 #include "confdefs.h"
23437 #include <sys/types.h>
23438 #include <sys/acl.h>
23439 #ifdef F77_DUMMY_MAIN
23440 #  ifdef __cplusplus
23441      extern "C"
23442 #  endif
23443    int F77_DUMMY_MAIN() { return 1; }
23444 #endif
23445 int
23446 main ()
23447 {
23448  acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
23449   ;
23450   return 0;
23451 }
23452 _ACEOF
23453 rm -f conftest.$ac_objext conftest$ac_exeext
23454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23455   (eval $ac_link) 2>&5
23456   ac_status=$?
23457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458   (exit $ac_status); } &&
23459          { ac_try='test -s conftest$ac_exeext'
23460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23461   (eval $ac_try) 2>&5
23462   ac_status=$?
23463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464   (exit $ac_status); }; }; then
23465   samba_cv_HAVE_POSIX_ACLS=yes
23466 else
23467   echo "$as_me: failed program was:" >&5
23468 cat conftest.$ac_ext >&5
23469 samba_cv_HAVE_POSIX_ACLS=no
23470 fi
23471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23472 fi
23473 echo "$as_me:$LINENO: result: $samba_cv_HAVE_POSIX_ACLS" >&5
23474 echo "${ECHO_T}$samba_cv_HAVE_POSIX_ACLS" >&6
23475                         if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
23476                                 echo "$as_me:$LINENO: result: Using posix ACLs" >&5
23477 echo "${ECHO_T}Using posix ACLs" >&6
23478
23479 cat >>confdefs.h <<\_ACEOF
23480 #define HAVE_POSIX_ACLS 1
23481 _ACEOF
23482
23483                                 echo "$as_me:$LINENO: checking for acl_get_perm_np" >&5
23484 echo $ECHO_N "checking for acl_get_perm_np... $ECHO_C" >&6
23485 if test "${samba_cv_HAVE_ACL_GET_PERM_NP+set}" = set; then
23486   echo $ECHO_N "(cached) $ECHO_C" >&6
23487 else
23488
23489                                 cat >conftest.$ac_ext <<_ACEOF
23490 #line $LINENO "configure"
23491 #include "confdefs.h"
23492 #include <sys/types.h>
23493 #include <sys/acl.h>
23494 #ifdef F77_DUMMY_MAIN
23495 #  ifdef __cplusplus
23496      extern "C"
23497 #  endif
23498    int F77_DUMMY_MAIN() { return 1; }
23499 #endif
23500 int
23501 main ()
23502 {
23503  acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
23504   ;
23505   return 0;
23506 }
23507 _ACEOF
23508 rm -f conftest.$ac_objext conftest$ac_exeext
23509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23510   (eval $ac_link) 2>&5
23511   ac_status=$?
23512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513   (exit $ac_status); } &&
23514          { ac_try='test -s conftest$ac_exeext'
23515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23516   (eval $ac_try) 2>&5
23517   ac_status=$?
23518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519   (exit $ac_status); }; }; then
23520   samba_cv_HAVE_ACL_GET_PERM_NP=yes
23521 else
23522   echo "$as_me: failed program was:" >&5
23523 cat conftest.$ac_ext >&5
23524 samba_cv_HAVE_ACL_GET_PERM_NP=no
23525 fi
23526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23527 fi
23528 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ACL_GET_PERM_NP" >&5
23529 echo "${ECHO_T}$samba_cv_HAVE_ACL_GET_PERM_NP" >&6
23530                                 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
23531
23532 cat >>confdefs.h <<\_ACEOF
23533 #define HAVE_ACL_GET_PERM_NP 1
23534 _ACEOF
23535
23536                                 fi
23537                         fi
23538             ;;
23539         esac
23540         ;;
23541   *)
23542     echo "$as_me:$LINENO: result: no" >&5
23543 echo "${ECHO_T}no" >&6
23544
23545 cat >>confdefs.h <<\_ACEOF
23546 #define HAVE_NO_ACLS 1
23547 _ACEOF
23548
23549     ;;
23550   esac
23551 else
23552
23553 cat >>confdefs.h <<\_ACEOF
23554 #define HAVE_NO_ACLS 1
23555 _ACEOF
23556
23557   echo "$as_me:$LINENO: result: no" >&5
23558 echo "${ECHO_T}no" >&6
23559
23560 fi;
23561
23562 #################################################
23563 # check for sendfile support
23564
23565 with_sendfile_support=yes
23566 echo "$as_me:$LINENO: checking whether to check to support sendfile" >&5
23567 echo $ECHO_N "checking whether to check to support sendfile... $ECHO_C" >&6
23568
23569 # Check whether --with-sendfile-support or --without-sendfile-support was given.
23570 if test "${with_sendfile_support+set}" = set; then
23571   withval="$with_sendfile_support"
23572    case "$withval" in
23573   yes)
23574
23575         echo "$as_me:$LINENO: result: yes" >&5
23576 echo "${ECHO_T}yes" >&6;
23577
23578         case "$host_os" in
23579         *linux*)
23580                 echo "$as_me:$LINENO: checking for linux sendfile64 support" >&5
23581 echo $ECHO_N "checking for linux sendfile64 support... $ECHO_C" >&6
23582 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
23583   echo $ECHO_N "(cached) $ECHO_C" >&6
23584 else
23585
23586                 cat >conftest.$ac_ext <<_ACEOF
23587 #line $LINENO "configure"
23588 #include "confdefs.h"
23589 #include <sys/sendfile.h>
23590 #ifdef F77_DUMMY_MAIN
23591 #  ifdef __cplusplus
23592      extern "C"
23593 #  endif
23594    int F77_DUMMY_MAIN() { return 1; }
23595 #endif
23596 int
23597 main ()
23598 {
23599 \
23600 int tofd, fromfd;
23601 off64_t offset;
23602 size_t total;
23603 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
23604
23605   ;
23606   return 0;
23607 }
23608 _ACEOF
23609 rm -f conftest.$ac_objext conftest$ac_exeext
23610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23611   (eval $ac_link) 2>&5
23612   ac_status=$?
23613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614   (exit $ac_status); } &&
23615          { ac_try='test -s conftest$ac_exeext'
23616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23617   (eval $ac_try) 2>&5
23618   ac_status=$?
23619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620   (exit $ac_status); }; }; then
23621   samba_cv_HAVE_SENDFILE64=yes
23622 else
23623   echo "$as_me: failed program was:" >&5
23624 cat conftest.$ac_ext >&5
23625 samba_cv_HAVE_SENDFILE64=no
23626 fi
23627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23628 fi
23629 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
23630 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
23631
23632                 echo "$as_me:$LINENO: checking for linux sendfile support" >&5
23633 echo $ECHO_N "checking for linux sendfile support... $ECHO_C" >&6
23634 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
23635   echo $ECHO_N "(cached) $ECHO_C" >&6
23636 else
23637
23638                 cat >conftest.$ac_ext <<_ACEOF
23639 #line $LINENO "configure"
23640 #include "confdefs.h"
23641 #include <sys/sendfile.h>
23642 #ifdef F77_DUMMY_MAIN
23643 #  ifdef __cplusplus
23644      extern "C"
23645 #  endif
23646    int F77_DUMMY_MAIN() { return 1; }
23647 #endif
23648 int
23649 main ()
23650 {
23651 \
23652 int tofd, fromfd;
23653 off_t offset;
23654 size_t total;
23655 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
23656
23657   ;
23658   return 0;
23659 }
23660 _ACEOF
23661 rm -f conftest.$ac_objext conftest$ac_exeext
23662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23663   (eval $ac_link) 2>&5
23664   ac_status=$?
23665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666   (exit $ac_status); } &&
23667          { ac_try='test -s conftest$ac_exeext'
23668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23669   (eval $ac_try) 2>&5
23670   ac_status=$?
23671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672   (exit $ac_status); }; }; then
23673   samba_cv_HAVE_SENDFILE=yes
23674 else
23675   echo "$as_me: failed program was:" >&5
23676 cat conftest.$ac_ext >&5
23677 samba_cv_HAVE_SENDFILE=no
23678 fi
23679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23680 fi
23681 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
23682 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
23683
23684 # Try and cope with broken Linux sendfile....
23685                 echo "$as_me:$LINENO: checking for broken linux sendfile support" >&5
23686 echo $ECHO_N "checking for broken linux sendfile support... $ECHO_C" >&6
23687 if test "${samba_cv_HAVE_BROKEN_LINUX_SENDFILE+set}" = set; then
23688   echo $ECHO_N "(cached) $ECHO_C" >&6
23689 else
23690
23691                 cat >conftest.$ac_ext <<_ACEOF
23692 #line $LINENO "configure"
23693 #include "confdefs.h"
23694 \
23695 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
23696 #undef _FILE_OFFSET_BITS
23697 #endif
23698 #include <sys/sendfile.h>
23699 #ifdef F77_DUMMY_MAIN
23700 #  ifdef __cplusplus
23701      extern "C"
23702 #  endif
23703    int F77_DUMMY_MAIN() { return 1; }
23704 #endif
23705 int
23706 main ()
23707 {
23708 \
23709 int tofd, fromfd;
23710 off_t offset;
23711 size_t total;
23712 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
23713
23714   ;
23715   return 0;
23716 }
23717 _ACEOF
23718 rm -f conftest.$ac_objext conftest$ac_exeext
23719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23720   (eval $ac_link) 2>&5
23721   ac_status=$?
23722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723   (exit $ac_status); } &&
23724          { ac_try='test -s conftest$ac_exeext'
23725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23726   (eval $ac_try) 2>&5
23727   ac_status=$?
23728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729   (exit $ac_status); }; }; then
23730   samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
23731 else
23732   echo "$as_me: failed program was:" >&5
23733 cat conftest.$ac_ext >&5
23734 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
23735 fi
23736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23737 fi
23738 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&5
23739 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&6
23740
23741         if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
23742
23743 cat >>confdefs.h <<\_ACEOF
23744 #define HAVE_SENDFILE64 1
23745 _ACEOF
23746
23747
23748 cat >>confdefs.h <<\_ACEOF
23749 #define LINUX_SENDFILE_API 1
23750 _ACEOF
23751
23752
23753 cat >>confdefs.h <<\_ACEOF
23754 #define WITH_SENDFILE 1
23755 _ACEOF
23756
23757         elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
23758
23759 cat >>confdefs.h <<\_ACEOF
23760 #define HAVE_SENDFILE 1
23761 _ACEOF
23762
23763
23764 cat >>confdefs.h <<\_ACEOF
23765 #define LINUX_SENDFILE_API 1
23766 _ACEOF
23767
23768
23769 cat >>confdefs.h <<\_ACEOF
23770 #define WITH_SENDFILE 1
23771 _ACEOF
23772
23773         elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
23774
23775 cat >>confdefs.h <<\_ACEOF
23776 #define LINUX_BROKEN_SENDFILE_API 1
23777 _ACEOF
23778
23779
23780 cat >>confdefs.h <<\_ACEOF
23781 #define WITH_SENDFILE 1
23782 _ACEOF
23783
23784         else
23785                 echo "$as_me:$LINENO: result: no" >&5
23786 echo "${ECHO_T}no" >&6;
23787         fi
23788
23789         ;;
23790         *freebsd*)
23791                 echo "$as_me:$LINENO: checking for freebsd sendfile support" >&5
23792 echo $ECHO_N "checking for freebsd sendfile support... $ECHO_C" >&6
23793 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
23794   echo $ECHO_N "(cached) $ECHO_C" >&6
23795 else
23796
23797                 cat >conftest.$ac_ext <<_ACEOF
23798 #line $LINENO "configure"
23799 #include "confdefs.h"
23800 \
23801 #include <sys/types.h>
23802 #include <sys/socket.h>
23803 #include <sys/uio.h>
23804 #ifdef F77_DUMMY_MAIN
23805 #  ifdef __cplusplus
23806      extern "C"
23807 #  endif
23808    int F77_DUMMY_MAIN() { return 1; }
23809 #endif
23810 int
23811 main ()
23812 {
23813 \
23814         int fromfd, tofd;
23815         off_t offset, nwritten;
23816         struct sf_hdtr hdr;
23817         struct iovec hdtrl;
23818         hdr->headers = &hdtrl;
23819         hdr->hdr_cnt = 1;
23820         hdr->trailers = NULL;
23821         hdr->trl_cnt = 0;
23822         hdtrl.iov_base = NULL;
23823         hdtrl.iov_len = 0;
23824         int ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
23825
23826   ;
23827   return 0;
23828 }
23829 _ACEOF
23830 rm -f conftest.$ac_objext conftest$ac_exeext
23831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23832   (eval $ac_link) 2>&5
23833   ac_status=$?
23834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835   (exit $ac_status); } &&
23836          { ac_try='test -s conftest$ac_exeext'
23837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23838   (eval $ac_try) 2>&5
23839   ac_status=$?
23840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841   (exit $ac_status); }; }; then
23842   samba_cv_HAVE_SENDFILE=yes
23843 else
23844   echo "$as_me: failed program was:" >&5
23845 cat conftest.$ac_ext >&5
23846 samba_cv_HAVE_SENDFILE=no
23847 fi
23848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23849 fi
23850 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
23851 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
23852
23853         if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
23854
23855 cat >>confdefs.h <<\_ACEOF
23856 #define HAVE_SENDFILE 1
23857 _ACEOF
23858
23859
23860 cat >>confdefs.h <<\_ACEOF
23861 #define FREEBSD_SENDFILE_API 1
23862 _ACEOF
23863
23864
23865 cat >>confdefs.h <<\_ACEOF
23866 #define WITH_SENDFILE 1
23867 _ACEOF
23868
23869         else
23870                 echo "$as_me:$LINENO: result: no" >&5
23871 echo "${ECHO_T}no" >&6;
23872         fi
23873         ;;
23874
23875         *hpux*)
23876                 echo "$as_me:$LINENO: checking for hpux sendfile64 support" >&5
23877 echo $ECHO_N "checking for hpux sendfile64 support... $ECHO_C" >&6
23878 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
23879   echo $ECHO_N "(cached) $ECHO_C" >&6
23880 else
23881
23882                 cat >conftest.$ac_ext <<_ACEOF
23883 #line $LINENO "configure"
23884 #include "confdefs.h"
23885 \
23886 #include <sys/socket.h>
23887 #include <sys/uio.h>
23888 #ifdef F77_DUMMY_MAIN
23889 #  ifdef __cplusplus
23890      extern "C"
23891 #  endif
23892    int F77_DUMMY_MAIN() { return 1; }
23893 #endif
23894 int
23895 main ()
23896 {
23897 \
23898         int fromfd, tofd;
23899         size_t total=0;
23900         struct iovec hdtrl[2];
23901         ssize_t nwritten;
23902         off64_t offset;
23903
23904         hdtrl[0].iov_base = 0;
23905         hdtrl[0].iov_len = 0;
23906
23907         nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
23908
23909   ;
23910   return 0;
23911 }
23912 _ACEOF
23913 rm -f conftest.$ac_objext conftest$ac_exeext
23914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23915   (eval $ac_link) 2>&5
23916   ac_status=$?
23917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918   (exit $ac_status); } &&
23919          { ac_try='test -s conftest$ac_exeext'
23920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23921   (eval $ac_try) 2>&5
23922   ac_status=$?
23923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924   (exit $ac_status); }; }; then
23925   samba_cv_HAVE_SENDFILE64=yes
23926 else
23927   echo "$as_me: failed program was:" >&5
23928 cat conftest.$ac_ext >&5
23929 samba_cv_HAVE_SENDFILE64=no
23930 fi
23931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23932 fi
23933 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
23934 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
23935         if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
23936
23937 cat >>confdefs.h <<\_ACEOF
23938 #define HAVE_SENDFILE64 1
23939 _ACEOF
23940
23941
23942 cat >>confdefs.h <<\_ACEOF
23943 #define HPUX_SENDFILE_API 1
23944 _ACEOF
23945
23946
23947 cat >>confdefs.h <<\_ACEOF
23948 #define WITH_SENDFILE 1
23949 _ACEOF
23950
23951         else
23952                 echo "$as_me:$LINENO: result: no" >&5
23953 echo "${ECHO_T}no" >&6;
23954         fi
23955
23956                 echo "$as_me:$LINENO: checking for hpux sendfile support" >&5
23957 echo $ECHO_N "checking for hpux sendfile support... $ECHO_C" >&6
23958 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
23959   echo $ECHO_N "(cached) $ECHO_C" >&6
23960 else
23961
23962                 cat >conftest.$ac_ext <<_ACEOF
23963 #line $LINENO "configure"
23964 #include "confdefs.h"
23965 \
23966 #include <sys/socket.h>
23967 #include <sys/uio.h>
23968 #ifdef F77_DUMMY_MAIN
23969 #  ifdef __cplusplus
23970      extern "C"
23971 #  endif
23972    int F77_DUMMY_MAIN() { return 1; }
23973 #endif
23974 int
23975 main ()
23976 {
23977 \
23978         int fromfd, tofd;
23979         size_t total=0;
23980         struct iovec hdtrl[2];
23981         ssize_t nwritten;
23982         off_t offset;
23983
23984         hdtrl[0].iov_base = 0;
23985         hdtrl[0].iov_len = 0;
23986
23987         nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
23988
23989   ;
23990   return 0;
23991 }
23992 _ACEOF
23993 rm -f conftest.$ac_objext conftest$ac_exeext
23994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23995   (eval $ac_link) 2>&5
23996   ac_status=$?
23997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998   (exit $ac_status); } &&
23999          { ac_try='test -s conftest$ac_exeext'
24000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24001   (eval $ac_try) 2>&5
24002   ac_status=$?
24003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004   (exit $ac_status); }; }; then
24005   samba_cv_HAVE_SENDFILE=yes
24006 else
24007   echo "$as_me: failed program was:" >&5
24008 cat conftest.$ac_ext >&5
24009 samba_cv_HAVE_SENDFILE=no
24010 fi
24011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24012 fi
24013 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
24014 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
24015         if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
24016
24017 cat >>confdefs.h <<\_ACEOF
24018 #define HAVE_SENDFILE 1
24019 _ACEOF
24020
24021
24022 cat >>confdefs.h <<\_ACEOF
24023 #define HPUX_SENDFILE_API 1
24024 _ACEOF
24025
24026
24027 cat >>confdefs.h <<\_ACEOF
24028 #define WITH_SENDFILE 1
24029 _ACEOF
24030
24031         else
24032                 echo "$as_me:$LINENO: result: no" >&5
24033 echo "${ECHO_T}no" >&6;
24034         fi
24035         ;;
24036
24037         *solaris*)
24038
24039 echo "$as_me:$LINENO: checking for sendfilev in -lsendfile" >&5
24040 echo $ECHO_N "checking for sendfilev in -lsendfile... $ECHO_C" >&6
24041 if test "${ac_cv_lib_sendfile_sendfilev+set}" = set; then
24042   echo $ECHO_N "(cached) $ECHO_C" >&6
24043 else
24044   ac_check_lib_save_LIBS=$LIBS
24045 LIBS="-lsendfile  $LIBS"
24046 cat >conftest.$ac_ext <<_ACEOF
24047 #line $LINENO "configure"
24048 #include "confdefs.h"
24049
24050 /* Override any gcc2 internal prototype to avoid an error.  */
24051 #ifdef __cplusplus
24052 extern "C"
24053 #endif
24054 /* We use char because int might match the return type of a gcc2
24055    builtin and then its argument prototype would still apply.  */
24056 char sendfilev ();
24057 #ifdef F77_DUMMY_MAIN
24058 #  ifdef __cplusplus
24059      extern "C"
24060 #  endif
24061    int F77_DUMMY_MAIN() { return 1; }
24062 #endif
24063 int
24064 main ()
24065 {
24066 sendfilev ();
24067   ;
24068   return 0;
24069 }
24070 _ACEOF
24071 rm -f conftest.$ac_objext conftest$ac_exeext
24072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24073   (eval $ac_link) 2>&5
24074   ac_status=$?
24075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24076   (exit $ac_status); } &&
24077          { ac_try='test -s conftest$ac_exeext'
24078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24079   (eval $ac_try) 2>&5
24080   ac_status=$?
24081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082   (exit $ac_status); }; }; then
24083   ac_cv_lib_sendfile_sendfilev=yes
24084 else
24085   echo "$as_me: failed program was:" >&5
24086 cat conftest.$ac_ext >&5
24087 ac_cv_lib_sendfile_sendfilev=no
24088 fi
24089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24090 LIBS=$ac_check_lib_save_LIBS
24091 fi
24092 echo "$as_me:$LINENO: result: $ac_cv_lib_sendfile_sendfilev" >&5
24093 echo "${ECHO_T}$ac_cv_lib_sendfile_sendfilev" >&6
24094 if test $ac_cv_lib_sendfile_sendfilev = yes; then
24095   cat >>confdefs.h <<_ACEOF
24096 #define HAVE_LIBSENDFILE 1
24097 _ACEOF
24098
24099   LIBS="-lsendfile $LIBS"
24100
24101 fi
24102
24103                 echo "$as_me:$LINENO: checking for solaris sendfilev64 support" >&5
24104 echo $ECHO_N "checking for solaris sendfilev64 support... $ECHO_C" >&6
24105 if test "${samba_cv_HAVE_SENDFILEV64+set}" = set; then
24106   echo $ECHO_N "(cached) $ECHO_C" >&6
24107 else
24108
24109                 cat >conftest.$ac_ext <<_ACEOF
24110 #line $LINENO "configure"
24111 #include "confdefs.h"
24112 \
24113 #include <sys/sendfile.h>
24114 #ifdef F77_DUMMY_MAIN
24115 #  ifdef __cplusplus
24116      extern "C"
24117 #  endif
24118    int F77_DUMMY_MAIN() { return 1; }
24119 #endif
24120 int
24121 main ()
24122 {
24123 \
24124         int sfvcnt;
24125         size_t xferred;
24126         struct sendfilevec vec[2];
24127         ssize_t nwritten;
24128         int tofd;
24129
24130         sfvcnt = 2;
24131
24132         vec[0].sfv_fd = SFV_FD_SELF;
24133         vec[0].sfv_flag = 0;
24134         vec[0].sfv_off = 0;
24135         vec[0].sfv_len = 0;
24136
24137         vec[1].sfv_fd = 0;
24138         vec[1].sfv_flag = 0;
24139         vec[1].sfv_off = 0;
24140         vec[1].sfv_len = 0;
24141         nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
24142
24143   ;
24144   return 0;
24145 }
24146 _ACEOF
24147 rm -f conftest.$ac_objext conftest$ac_exeext
24148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24149   (eval $ac_link) 2>&5
24150   ac_status=$?
24151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152   (exit $ac_status); } &&
24153          { ac_try='test -s conftest$ac_exeext'
24154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24155   (eval $ac_try) 2>&5
24156   ac_status=$?
24157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158   (exit $ac_status); }; }; then
24159   samba_cv_HAVE_SENDFILEV64=yes
24160 else
24161   echo "$as_me: failed program was:" >&5
24162 cat conftest.$ac_ext >&5
24163 samba_cv_HAVE_SENDFILEV64=no
24164 fi
24165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24166 fi
24167 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV64" >&5
24168 echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV64" >&6
24169
24170         if test x"$samba_cv_HAVE_SENDFILEV64" = x"yes"; then
24171
24172 cat >>confdefs.h <<\_ACEOF
24173 #define HAVE_SENDFILEV64 1
24174 _ACEOF
24175
24176
24177 cat >>confdefs.h <<\_ACEOF
24178 #define SOLARIS_SENDFILE_API 1
24179 _ACEOF
24180
24181
24182 cat >>confdefs.h <<\_ACEOF
24183 #define WITH_SENDFILE 1
24184 _ACEOF
24185
24186         else
24187                 echo "$as_me:$LINENO: result: no" >&5
24188 echo "${ECHO_T}no" >&6;
24189         fi
24190
24191                 echo "$as_me:$LINENO: checking for solaris sendfilev support" >&5
24192 echo $ECHO_N "checking for solaris sendfilev support... $ECHO_C" >&6
24193 if test "${samba_cv_HAVE_SENDFILEV+set}" = set; then
24194   echo $ECHO_N "(cached) $ECHO_C" >&6
24195 else
24196
24197                 cat >conftest.$ac_ext <<_ACEOF
24198 #line $LINENO "configure"
24199 #include "confdefs.h"
24200 \
24201 #include <sys/sendfile.h>
24202 #ifdef F77_DUMMY_MAIN
24203 #  ifdef __cplusplus
24204      extern "C"
24205 #  endif
24206    int F77_DUMMY_MAIN() { return 1; }
24207 #endif
24208 int
24209 main ()
24210 {
24211 \
24212         int sfvcnt;
24213         size_t xferred;
24214         struct sendfilevec vec[2];
24215         ssize_t nwritten;
24216         int tofd;
24217
24218         sfvcnt = 2;
24219
24220         vec[0].sfv_fd = SFV_FD_SELF;
24221         vec[0].sfv_flag = 0;
24222         vec[0].sfv_off = 0;
24223         vec[0].sfv_len = 0;
24224
24225         vec[1].sfv_fd = 0;
24226         vec[1].sfv_flag = 0;
24227         vec[1].sfv_off = 0;
24228         vec[1].sfv_len = 0;
24229         nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
24230
24231   ;
24232   return 0;
24233 }
24234 _ACEOF
24235 rm -f conftest.$ac_objext conftest$ac_exeext
24236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24237   (eval $ac_link) 2>&5
24238   ac_status=$?
24239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240   (exit $ac_status); } &&
24241          { ac_try='test -s conftest$ac_exeext'
24242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24243   (eval $ac_try) 2>&5
24244   ac_status=$?
24245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246   (exit $ac_status); }; }; then
24247   samba_cv_HAVE_SENDFILEV=yes
24248 else
24249   echo "$as_me: failed program was:" >&5
24250 cat conftest.$ac_ext >&5
24251 samba_cv_HAVE_SENDFILEV=no
24252 fi
24253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24254 fi
24255 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV" >&5
24256 echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV" >&6
24257
24258         if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then
24259
24260 cat >>confdefs.h <<\_ACEOF
24261 #define HAVE_SENDFILEV 1
24262 _ACEOF
24263
24264
24265 cat >>confdefs.h <<\_ACEOF
24266 #define SOLARIS_SENDFILE_API 1
24267 _ACEOF
24268
24269
24270 cat >>confdefs.h <<\_ACEOF
24271 #define WITH_SENDFILE 1
24272 _ACEOF
24273
24274         else
24275                 echo "$as_me:$LINENO: result: no" >&5
24276 echo "${ECHO_T}no" >&6;
24277         fi
24278         ;;
24279
24280         *)
24281         ;;
24282         esac
24283         ;;
24284   *)
24285     echo "$as_me:$LINENO: result: no" >&5
24286 echo "${ECHO_T}no" >&6
24287     ;;
24288   esac
24289 else
24290   echo "$as_me:$LINENO: result: yes" >&5
24291 echo "${ECHO_T}yes" >&6
24292
24293 fi;
24294
24295
24296 #################################################
24297 # Check whether winbind is supported on this platform.  If so we need to
24298 # build and install client programs (WINBIND_TARGETS), sbin programs
24299 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
24300
24301 echo "$as_me:$LINENO: checking whether to build winbind" >&5
24302 echo $ECHO_N "checking whether to build winbind... $ECHO_C" >&6
24303
24304 # Initially, the value of $host_os decides whether winbind is supported
24305
24306 case "$host_os" in
24307         *linux*|*irix*)
24308                 HAVE_WINBIND=yes
24309                 ;;
24310         *solaris*)
24311                 HAVE_WINBIND=yes
24312                 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
24313                 WINBIND_NSS_EXTRA_LIBS="-lsocket"
24314                 ;;
24315         *hpux11*)
24316                 HAVE_WINBIND=yes
24317                 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
24318                 ;;
24319         *)
24320                 HAVE_WINBIND=no
24321                 winbind_no_reason=", unsupported on $host_os"
24322                 ;;
24323 esac
24324
24325 # Check the setting of --with-winbindd
24326
24327
24328 # Check whether --with-winbind or --without-winbind was given.
24329 if test "${with_winbind+set}" = set; then
24330   withval="$with_winbind"
24331
24332   case "$withval" in
24333         yes)
24334                 HAVE_WINBIND=yes
24335                 ;;
24336         no)
24337                 HAVE_WINBIND=no
24338                 winbind_reason=""
24339                 ;;
24340   esac
24341 fi;
24342
24343 # We need unix domain sockets for winbind
24344
24345 if test x"$HAVE_WINBIND" = x"yes"; then
24346         if test x"$samba_cv_unixsocket" = x"no"; then
24347                 winbind_no_reason=", no unix domain socket support on $host_os"
24348                 HAVE_WINBIND=no
24349         fi
24350 fi
24351
24352 # Display test results
24353
24354 WINBIND_TARGETS=""
24355 WINBIND_STARGETS=""
24356 WINBIND_LTARGETS=""
24357 WINBIND_PAM_PROGS=""
24358
24359 if test x"$HAVE_WINBIND" = x"yes"; then
24360         echo "$as_me:$LINENO: result: yes" >&5
24361 echo "${ECHO_T}yes" >&6
24362
24363 cat >>confdefs.h <<\_ACEOF
24364 #define WITH_WINBIND 1
24365 _ACEOF
24366
24367
24368         WINBIND_TARGETS="bin/wbinfo"
24369         WINBIND_STARGETS="bin/winbindd"
24370         if test x"$BLDSHARED" = x"true"; then
24371                 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
24372                 if test x"$with_pam" = x"yes"; then
24373                         WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
24374                 fi
24375         fi
24376 else
24377         echo "$as_me:$LINENO: result: no$winbind_no_reason" >&5
24378 echo "${ECHO_T}no$winbind_no_reason" >&6
24379 fi
24380
24381
24382 # Substitution time!
24383
24384
24385
24386
24387
24388
24389
24390
24391 # Solaris has some extra fields in struct passwd that need to be
24392 # initialised otherwise nscd crashes.  Unfortunately autoconf < 2.50
24393 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
24394 # this.
24395
24396 #AC_CHECK_MEMBER(struct passwd.pw_comment,
24397 #               AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
24398 #               [#include <pwd.h>])
24399
24400 echo "$as_me:$LINENO: checking whether struct passwd has pw_comment" >&5
24401 echo $ECHO_N "checking whether struct passwd has pw_comment... $ECHO_C" >&6
24402 if test "${samba_cv_passwd_pw_comment+set}" = set; then
24403   echo $ECHO_N "(cached) $ECHO_C" >&6
24404 else
24405
24406     cat >conftest.$ac_ext <<_ACEOF
24407 #line $LINENO "configure"
24408 #include "confdefs.h"
24409 #include <pwd.h>
24410 #ifdef F77_DUMMY_MAIN
24411 #  ifdef __cplusplus
24412      extern "C"
24413 #  endif
24414    int F77_DUMMY_MAIN() { return 1; }
24415 #endif
24416 int
24417 main ()
24418 {
24419 struct passwd p; p.pw_comment;
24420   ;
24421   return 0;
24422 }
24423 _ACEOF
24424 rm -f conftest.$ac_objext
24425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24426   (eval $ac_compile) 2>&5
24427   ac_status=$?
24428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429   (exit $ac_status); } &&
24430          { ac_try='test -s conftest.$ac_objext'
24431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24432   (eval $ac_try) 2>&5
24433   ac_status=$?
24434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435   (exit $ac_status); }; }; then
24436   samba_cv_passwd_pw_comment=yes
24437 else
24438   echo "$as_me: failed program was:" >&5
24439 cat conftest.$ac_ext >&5
24440 samba_cv_passwd_pw_comment=no
24441 fi
24442 rm -f conftest.$ac_objext conftest.$ac_ext
24443 fi
24444 echo "$as_me:$LINENO: result: $samba_cv_passwd_pw_comment" >&5
24445 echo "${ECHO_T}$samba_cv_passwd_pw_comment" >&6
24446 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
24447
24448 cat >>confdefs.h <<\_ACEOF
24449 #define HAVE_PASSWD_PW_COMMENT 1
24450 _ACEOF
24451
24452 fi
24453
24454 #AC_CHECK_MEMBER(struct passwd.pw_age,
24455 #               AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
24456 #               [#include <pwd.h>])
24457
24458 echo "$as_me:$LINENO: checking whether struct passwd has pw_age" >&5
24459 echo $ECHO_N "checking whether struct passwd has pw_age... $ECHO_C" >&6
24460 if test "${samba_cv_passwd_pw_age+set}" = set; then
24461   echo $ECHO_N "(cached) $ECHO_C" >&6
24462 else
24463
24464     cat >conftest.$ac_ext <<_ACEOF
24465 #line $LINENO "configure"
24466 #include "confdefs.h"
24467 #include <pwd.h>
24468 #ifdef F77_DUMMY_MAIN
24469 #  ifdef __cplusplus
24470      extern "C"
24471 #  endif
24472    int F77_DUMMY_MAIN() { return 1; }
24473 #endif
24474 int
24475 main ()
24476 {
24477 struct passwd p; p.pw_age;
24478   ;
24479   return 0;
24480 }
24481 _ACEOF
24482 rm -f conftest.$ac_objext
24483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24484   (eval $ac_compile) 2>&5
24485   ac_status=$?
24486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487   (exit $ac_status); } &&
24488          { ac_try='test -s conftest.$ac_objext'
24489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24490   (eval $ac_try) 2>&5
24491   ac_status=$?
24492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493   (exit $ac_status); }; }; then
24494   samba_cv_passwd_pw_age=yes
24495 else
24496   echo "$as_me: failed program was:" >&5
24497 cat conftest.$ac_ext >&5
24498 samba_cv_passwd_pw_age=no
24499 fi
24500 rm -f conftest.$ac_objext conftest.$ac_ext
24501 fi
24502 echo "$as_me:$LINENO: result: $samba_cv_passwd_pw_age" >&5
24503 echo "${ECHO_T}$samba_cv_passwd_pw_age" >&6
24504 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
24505
24506 cat >>confdefs.h <<\_ACEOF
24507 #define HAVE_PASSWD_PW_AGE 1
24508 _ACEOF
24509
24510 fi
24511
24512 #################################################
24513 # Check to see if we should use the included popt
24514
24515
24516 # Check whether --with-included-popt or --without-included-popt was given.
24517 if test "${with_included_popt+set}" = set; then
24518   withval="$with_included_popt"
24519
24520   case "$withval" in
24521         yes)
24522                 INCLUDED_POPT=yes
24523                 ;;
24524         no)
24525                 INCLUDED_POPT=no
24526                 ;;
24527   esac
24528 fi;
24529 if test x"$INCLUDED_POPT" != x"yes"; then
24530     echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
24531 echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6
24532 if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
24533   echo $ECHO_N "(cached) $ECHO_C" >&6
24534 else
24535   ac_check_lib_save_LIBS=$LIBS
24536 LIBS="-lpopt  $LIBS"
24537 cat >conftest.$ac_ext <<_ACEOF
24538 #line $LINENO "configure"
24539 #include "confdefs.h"
24540
24541 /* Override any gcc2 internal prototype to avoid an error.  */
24542 #ifdef __cplusplus
24543 extern "C"
24544 #endif
24545 /* We use char because int might match the return type of a gcc2
24546    builtin and then its argument prototype would still apply.  */
24547 char poptGetContext ();
24548 #ifdef F77_DUMMY_MAIN
24549 #  ifdef __cplusplus
24550      extern "C"
24551 #  endif
24552    int F77_DUMMY_MAIN() { return 1; }
24553 #endif
24554 int
24555 main ()
24556 {
24557 poptGetContext ();
24558   ;
24559   return 0;
24560 }
24561 _ACEOF
24562 rm -f conftest.$ac_objext conftest$ac_exeext
24563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24564   (eval $ac_link) 2>&5
24565   ac_status=$?
24566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567   (exit $ac_status); } &&
24568          { ac_try='test -s conftest$ac_exeext'
24569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24570   (eval $ac_try) 2>&5
24571   ac_status=$?
24572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573   (exit $ac_status); }; }; then
24574   ac_cv_lib_popt_poptGetContext=yes
24575 else
24576   echo "$as_me: failed program was:" >&5
24577 cat conftest.$ac_ext >&5
24578 ac_cv_lib_popt_poptGetContext=no
24579 fi
24580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24581 LIBS=$ac_check_lib_save_LIBS
24582 fi
24583 echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
24584 echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6
24585 if test $ac_cv_lib_popt_poptGetContext = yes; then
24586   INCLUDED_POPT=no
24587 else
24588   INCLUDED_POPT=yes
24589 fi
24590
24591 fi
24592
24593 echo "$as_me:$LINENO: checking whether to use included popt" >&5
24594 echo $ECHO_N "checking whether to use included popt... $ECHO_C" >&6
24595 if test x"$INCLUDED_POPT" = x"yes"; then
24596     echo "$as_me:$LINENO: result: yes" >&5
24597 echo "${ECHO_T}yes" >&6
24598     BUILD_POPT='$(POPT_OBJS)'
24599     FLAGS1="-I$srcdir/popt"
24600 else
24601     echo "$as_me:$LINENO: result: no" >&5
24602 echo "${ECHO_T}no" >&6
24603     LIBS="$LIBS -lpopt"
24604 fi
24605
24606
24607
24608 #################################################
24609 # Check if the user wants Python
24610
24611 # At the moment, you can use this to set which Python binary to link
24612 # against.  (Libraries built for Python2.2 can't be used by 2.1,
24613 # though they can coexist in different directories.)  In the future
24614 # this might make the Python stuff be built by default.
24615
24616
24617 # Check whether --with-python or --without-python was given.
24618 if test "${with_python+set}" = set; then
24619   withval="$with_python"
24620    case "${withval-python}" in
24621   yes)
24622         PYTHON=python
24623         ;;
24624   *)
24625         PYTHON=${withval-python}
24626         ;;
24627   esac
24628 fi;
24629
24630
24631 #################################################
24632 # do extra things if we are running insure
24633
24634 if test "${ac_cv_prog_CC}" = "insure"; then
24635         CPPFLAGS="$CPPFLAGS -D__INSURE__"
24636 fi
24637
24638 #################################################
24639 # final configure stuff
24640
24641 echo "$as_me:$LINENO: checking configure summary" >&5
24642 echo $ECHO_N "checking configure summary... $ECHO_C" >&6
24643 if test "$cross_compiling" = yes; then
24644   { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
24645 echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
24646 else
24647   cat >conftest.$ac_ext <<_ACEOF
24648 #line $LINENO "configure"
24649 #include "confdefs.h"
24650 #include "${srcdir-.}/tests/summary.c"
24651 _ACEOF
24652 rm -f conftest$ac_exeext
24653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24654   (eval $ac_link) 2>&5
24655   ac_status=$?
24656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24659   (eval $ac_try) 2>&5
24660   ac_status=$?
24661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662   (exit $ac_status); }; }; then
24663   echo "$as_me:$LINENO: result: yes" >&5
24664 echo "${ECHO_T}yes" >&6
24665 else
24666   echo "$as_me: program exited with status $ac_status" >&5
24667 echo "$as_me: failed program was:" >&5
24668 cat conftest.$ac_ext >&5
24669 ( exit $ac_status )
24670 { { echo "$as_me:$LINENO: error: summary failure. Aborting config" >&5
24671 echo "$as_me: error: summary failure. Aborting config" >&2;}
24672    { (exit 1); exit 1; }; }; exit 1;
24673 fi
24674 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24675 fi
24676
24677 builddir=`pwd`
24678
24679
24680 # I added make files that are outside /source directory.
24681 # I know this is not a good solution, will work out a better
24682 # solution soon.                        --simo
24683 ac_config_files="$ac_config_files include/stamp-h Makefile script/findsmb ../examples/sam/Makefile"
24684 cat >confcache <<\_ACEOF
24685 # This file is a shell script that caches the results of configure
24686 # tests run on this system so they can be shared between configure
24687 # scripts and configure runs, see configure's option --config-cache.
24688 # It is not useful on other systems.  If it contains results you don't
24689 # want to keep, you may remove or edit it.
24690 #
24691 # config.status only pays attention to the cache file if you give it
24692 # the --recheck option to rerun configure.
24693 #
24694 # `ac_cv_env_foo' variables (set or unset) will be overriden when
24695 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24696 # following values.
24697
24698 _ACEOF
24699
24700 # The following way of writing the cache mishandles newlines in values,
24701 # but we know of no workaround that is simple, portable, and efficient.
24702 # So, don't put newlines in cache variables' values.
24703 # Ultrix sh set writes to stderr and can't be redirected directly,
24704 # and sets the high bit in the cache file unless we assign to the vars.
24705 {
24706   (set) 2>&1 |
24707     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24708     *ac_space=\ *)
24709       # `set' does not quote correctly, so add quotes (double-quote
24710       # substitution turns \\\\ into \\, and sed turns \\ into \).
24711       sed -n \
24712         "s/'/'\\\\''/g;
24713           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24714       ;;
24715     *)
24716       # `set' quotes correctly as required by POSIX, so do not add quotes.
24717       sed -n \
24718         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24719       ;;
24720     esac;
24721 } |
24722   sed '
24723      t clear
24724      : clear
24725      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24726      t end
24727      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24728      : end' >>confcache
24729 if cmp -s $cache_file confcache; then :; else
24730   if test -w $cache_file; then
24731     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24732     cat confcache >$cache_file
24733   else
24734     echo "not updating unwritable cache $cache_file"
24735   fi
24736 fi
24737 rm -f confcache
24738
24739 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24740 # Let make expand exec_prefix.
24741 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24742
24743 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24744 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24745 # trailing colons and then remove the whole line if VPATH becomes empty
24746 # (actually we leave an empty line to preserve line numbers).
24747 if test "x$srcdir" = x.; then
24748   ac_vpsub='/^[         ]*VPATH[        ]*=/{
24749 s/:*\$(srcdir):*/:/;
24750 s/:*\${srcdir}:*/:/;
24751 s/:*@srcdir@:*/:/;
24752 s/^\([^=]*=[    ]*\):*/\1/;
24753 s/:*$//;
24754 s/^[^=]*=[      ]*$//;
24755 }'
24756 fi
24757
24758 DEFS=-DHAVE_CONFIG_H
24759
24760
24761 : ${CONFIG_STATUS=./config.status}
24762 ac_clean_files_save=$ac_clean_files
24763 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24764 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24765 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24766 cat >$CONFIG_STATUS <<_ACEOF
24767 #! $SHELL
24768 # Generated by $as_me.
24769 # Run this file to recreate the current configuration.
24770 # Compiler output produced by configure, useful for debugging
24771 # configure, is in config.log if it exists.
24772
24773 debug=false
24774 SHELL=\${CONFIG_SHELL-$SHELL}
24775 _ACEOF
24776
24777 cat >>$CONFIG_STATUS <<\_ACEOF
24778
24779 ## --------------------- ##
24780 ## M4sh Initialization.  ##
24781 ## --------------------- ##
24782
24783 # Be Bourne compatible
24784 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24785   emulate sh
24786   NULLCMD=:
24787 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24788   set -o posix
24789 fi
24790
24791 # NLS nuisances.
24792 # Support unset when possible.
24793 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
24794   as_unset=unset
24795 else
24796   as_unset=false
24797 fi
24798
24799 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
24800     { $as_unset LANG || test "${LANG+set}" != set; } ||
24801       { LANG=C; export LANG; }
24802 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
24803     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
24804       { LC_ALL=C; export LC_ALL; }
24805 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
24806     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
24807       { LC_TIME=C; export LC_TIME; }
24808 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
24809     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
24810       { LC_CTYPE=C; export LC_CTYPE; }
24811 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
24812     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
24813       { LANGUAGE=C; export LANGUAGE; }
24814 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
24815     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
24816       { LC_COLLATE=C; export LC_COLLATE; }
24817 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
24818     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
24819       { LC_NUMERIC=C; export LC_NUMERIC; }
24820 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
24821     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
24822       { LC_MESSAGES=C; export LC_MESSAGES; }
24823
24824
24825 # Name of the executable.
24826 as_me=`(basename "$0") 2>/dev/null ||
24827 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24828          X"$0" : 'X\(//\)$' \| \
24829          X"$0" : 'X\(/\)$' \| \
24830          .     : '\(.\)' 2>/dev/null ||
24831 echo X/"$0" |
24832     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24833           /^X\/\(\/\/\)$/{ s//\1/; q; }
24834           /^X\/\(\/\).*/{ s//\1/; q; }
24835           s/.*/./; q'`
24836
24837 # PATH needs CR, and LINENO needs CR and PATH.
24838 # Avoid depending upon Character Ranges.
24839 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24840 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24841 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24842 as_cr_digits='0123456789'
24843 as_cr_alnum=$as_cr_Letters$as_cr_digits
24844
24845 # The user is always right.
24846 if test "${PATH_SEPARATOR+set}" != set; then
24847   echo "#! /bin/sh" >conftest.sh
24848   echo  "exit 0"   >>conftest.sh
24849   chmod +x conftest.sh
24850   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
24851     PATH_SEPARATOR=';'
24852   else
24853     PATH_SEPARATOR=:
24854   fi
24855   rm -f conftest.sh
24856 fi
24857
24858
24859   as_lineno_1=$LINENO
24860   as_lineno_2=$LINENO
24861   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24862   test "x$as_lineno_1" != "x$as_lineno_2" &&
24863   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24864   # Find who we are.  Look in the path if we contain no path at all
24865   # relative or not.
24866   case $0 in
24867     *[\\/]* ) as_myself=$0 ;;
24868     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24869 for as_dir in $PATH
24870 do
24871   IFS=$as_save_IFS
24872   test -z "$as_dir" && as_dir=.
24873   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24874 done
24875
24876        ;;
24877   esac
24878   # We did not find ourselves, most probably we were run as `sh COMMAND'
24879   # in which case we are not to be found in the path.
24880   if test "x$as_myself" = x; then
24881     as_myself=$0
24882   fi
24883   if test ! -f "$as_myself"; then
24884     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24885 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24886    { (exit 1); exit 1; }; }
24887   fi
24888   case $CONFIG_SHELL in
24889   '')
24890     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24891 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24892 do
24893   IFS=$as_save_IFS
24894   test -z "$as_dir" && as_dir=.
24895   for as_base in sh bash ksh sh5; do
24896          case $as_dir in
24897          /*)
24898            if ("$as_dir/$as_base" -c '
24899   as_lineno_1=$LINENO
24900   as_lineno_2=$LINENO
24901   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24902   test "x$as_lineno_1" != "x$as_lineno_2" &&
24903   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24904              CONFIG_SHELL=$as_dir/$as_base
24905              export CONFIG_SHELL
24906              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24907            fi;;
24908          esac
24909        done
24910 done
24911 ;;
24912   esac
24913
24914   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24915   # uniformly replaced by the line number.  The first 'sed' inserts a
24916   # line-number line before each line; the second 'sed' does the real
24917   # work.  The second script uses 'N' to pair each line-number line
24918   # with the numbered line, and appends trailing '-' during
24919   # substitution so that $LINENO is not a special case at line end.
24920   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24921   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24922   sed '=' <$as_myself |
24923     sed '
24924       N
24925       s,$,-,
24926       : loop
24927       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24928       t loop
24929       s,-$,,
24930       s,^['$as_cr_digits']*\n,,
24931     ' >$as_me.lineno &&
24932   chmod +x $as_me.lineno ||
24933     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24934 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24935    { (exit 1); exit 1; }; }
24936
24937   # Don't try to exec as it changes $[0], causing all sort of problems
24938   # (the dirname of $[0] is not the place where we might find the
24939   # original and so on.  Autoconf is especially sensible to this).
24940   . ./$as_me.lineno
24941   # Exit status is that of the last command.
24942   exit
24943 }
24944
24945
24946 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24947   *c*,-n*) ECHO_N= ECHO_C='
24948 ' ECHO_T='      ' ;;
24949   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24950   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24951 esac
24952
24953 if expr a : '\(a\)' >/dev/null 2>&1; then
24954   as_expr=expr
24955 else
24956   as_expr=false
24957 fi
24958
24959 rm -f conf$$ conf$$.exe conf$$.file
24960 echo >conf$$.file
24961 if ln -s conf$$.file conf$$ 2>/dev/null; then
24962   # We could just check for DJGPP; but this test a) works b) is more generic
24963   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24964   if test -f conf$$.exe; then
24965     # Don't use ln at all; we don't have any links
24966     as_ln_s='cp -p'
24967   else
24968     as_ln_s='ln -s'
24969   fi
24970 elif ln conf$$.file conf$$ 2>/dev/null; then
24971   as_ln_s=ln
24972 else
24973   as_ln_s='cp -p'
24974 fi
24975 rm -f conf$$ conf$$.exe conf$$.file
24976
24977 as_executable_p="test -f"
24978
24979 # Sed expression to map a string onto a valid CPP name.
24980 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24981
24982 # Sed expression to map a string onto a valid variable name.
24983 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
24984
24985
24986 # IFS
24987 # We need space, tab and new line, in precisely that order.
24988 as_nl='
24989 '
24990 IFS="   $as_nl"
24991
24992 # CDPATH.
24993 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
24994
24995 exec 6>&1
24996
24997 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24998 # report actual input values of CONFIG_FILES etc. instead of their
24999 # values after options handling.  Logging --version etc. is OK.
25000 exec 5>>config.log
25001 {
25002   echo
25003   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25004 ## Running $as_me. ##
25005 _ASBOX
25006 } >&5
25007 cat >&5 <<_CSEOF
25008
25009 This file was extended by $as_me, which was
25010 generated by GNU Autoconf 2.53.  Invocation command line was
25011
25012   CONFIG_FILES    = $CONFIG_FILES
25013   CONFIG_HEADERS  = $CONFIG_HEADERS
25014   CONFIG_LINKS    = $CONFIG_LINKS
25015   CONFIG_COMMANDS = $CONFIG_COMMANDS
25016   $ $0 $@
25017
25018 _CSEOF
25019 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25020 echo >&5
25021 _ACEOF
25022
25023 # Files that config.status was made for.
25024 if test -n "$ac_config_files"; then
25025   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25026 fi
25027
25028 if test -n "$ac_config_headers"; then
25029   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25030 fi
25031
25032 if test -n "$ac_config_links"; then
25033   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25034 fi
25035
25036 if test -n "$ac_config_commands"; then
25037   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25038 fi
25039
25040 cat >>$CONFIG_STATUS <<\_ACEOF
25041
25042 ac_cs_usage="\
25043 \`$as_me' instantiates files from templates according to the
25044 current configuration.
25045
25046 Usage: $0 [OPTIONS] [FILE]...
25047
25048   -h, --help       print this help, then exit
25049   -V, --version    print version number, then exit
25050   -d, --debug      don't remove temporary files
25051       --recheck    update $as_me by reconfiguring in the same conditions
25052   --file=FILE[:TEMPLATE]
25053                    instantiate the configuration file FILE
25054   --header=FILE[:TEMPLATE]
25055                    instantiate the configuration header FILE
25056
25057 Configuration files:
25058 $config_files
25059
25060 Configuration headers:
25061 $config_headers
25062
25063 Report bugs to <bug-autoconf@gnu.org>."
25064 _ACEOF
25065
25066 cat >>$CONFIG_STATUS <<_ACEOF
25067 ac_cs_version="\\
25068 config.status
25069 configured by $0, generated by GNU Autoconf 2.53,
25070   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25071
25072 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
25073 Free Software Foundation, Inc.
25074 This config.status script is free software; the Free Software Foundation
25075 gives unlimited permission to copy, distribute and modify it."
25076 srcdir=$srcdir
25077 INSTALL="$INSTALL"
25078 _ACEOF
25079
25080 cat >>$CONFIG_STATUS <<\_ACEOF
25081 # If no file are specified by the user, then we need to provide default
25082 # value.  By we need to know if files were specified by the user.
25083 ac_need_defaults=:
25084 while test $# != 0
25085 do
25086   case $1 in
25087   --*=*)
25088     ac_option=`expr "x$1" : 'x\([^=]*\)='`
25089     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25090     shift
25091     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
25092     shift
25093     ;;
25094   -*);;
25095   *) # This is not an option, so the user has probably given explicit
25096      # arguments.
25097      ac_need_defaults=false;;
25098   esac
25099
25100   case $1 in
25101   # Handling of the options.
25102 _ACEOF
25103 cat >>$CONFIG_STATUS <<_ACEOF
25104   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25105     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
25106     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
25107 _ACEOF
25108 cat >>$CONFIG_STATUS <<\_ACEOF
25109   --version | --vers* | -V )
25110     echo "$ac_cs_version"; exit 0 ;;
25111   --he | --h)
25112     # Conflict between --help and --header
25113     { { echo "$as_me:$LINENO: error: ambiguous option: $1
25114 Try \`$0 --help' for more information." >&5
25115 echo "$as_me: error: ambiguous option: $1
25116 Try \`$0 --help' for more information." >&2;}
25117    { (exit 1); exit 1; }; };;
25118   --help | --hel | -h )
25119     echo "$ac_cs_usage"; exit 0 ;;
25120   --debug | --d* | -d )
25121     debug=: ;;
25122   --file | --fil | --fi | --f )
25123     shift
25124     CONFIG_FILES="$CONFIG_FILES $1"
25125     ac_need_defaults=false;;
25126   --header | --heade | --head | --hea )
25127     shift
25128     CONFIG_HEADERS="$CONFIG_HEADERS $1"
25129     ac_need_defaults=false;;
25130
25131   # This is an error.
25132   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25133 Try \`$0 --help' for more information." >&5
25134 echo "$as_me: error: unrecognized option: $1
25135 Try \`$0 --help' for more information." >&2;}
25136    { (exit 1); exit 1; }; } ;;
25137
25138   *) ac_config_targets="$ac_config_targets $1" ;;
25139
25140   esac
25141   shift
25142 done
25143
25144 _ACEOF
25145
25146
25147
25148
25149
25150 cat >>$CONFIG_STATUS <<\_ACEOF
25151 for ac_config_target in $ac_config_targets
25152 do
25153   case "$ac_config_target" in
25154   # Handling of arguments.
25155   "include/stamp-h" ) CONFIG_FILES="$CONFIG_FILES include/stamp-h" ;;
25156   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25157   "script/findsmb" ) CONFIG_FILES="$CONFIG_FILES script/findsmb" ;;
25158   "../examples/sam/Makefile" ) CONFIG_FILES="$CONFIG_FILES ../examples/sam/Makefile" ;;
25159   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25160   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25161 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25162    { (exit 1); exit 1; }; };;
25163   esac
25164 done
25165
25166 # If the user did not use the arguments to specify the items to instantiate,
25167 # then the envvar interface is used.  Set only those that are not.
25168 # We use the long form for the default assignment because of an extremely
25169 # bizarre bug on SunOS 4.1.3.
25170 if $ac_need_defaults; then
25171   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25172   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25173 fi
25174
25175 # Create a temporary directory, and hook for its removal unless debugging.
25176 $debug ||
25177 {
25178   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25179   trap '{ (exit 1); exit 1; }' 1 2 13 15
25180 }
25181
25182 # Create a (secure) tmp directory for tmp files.
25183 : ${TMPDIR=/tmp}
25184 {
25185   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
25186   test -n "$tmp" && test -d "$tmp"
25187 }  ||
25188 {
25189   tmp=$TMPDIR/cs$$-$RANDOM
25190   (umask 077 && mkdir $tmp)
25191 } ||
25192 {
25193    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
25194    { (exit 1); exit 1; }
25195 }
25196
25197 _ACEOF
25198
25199 cat >>$CONFIG_STATUS <<_ACEOF
25200
25201 #
25202 # CONFIG_FILES section.
25203 #
25204
25205 # No need to generate the scripts if there are no CONFIG_FILES.
25206 # This happens for instance when ./config.status config.h
25207 if test -n "\$CONFIG_FILES"; then
25208   # Protect against being on the right side of a sed subst in config.status.
25209   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25210    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25211 s,@SHELL@,$SHELL,;t t
25212 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25213 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25214 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25215 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25216 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25217 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25218 s,@exec_prefix@,$exec_prefix,;t t
25219 s,@prefix@,$prefix,;t t
25220 s,@program_transform_name@,$program_transform_name,;t t
25221 s,@bindir@,$bindir,;t t
25222 s,@sbindir@,$sbindir,;t t
25223 s,@libexecdir@,$libexecdir,;t t
25224 s,@datadir@,$datadir,;t t
25225 s,@sysconfdir@,$sysconfdir,;t t
25226 s,@sharedstatedir@,$sharedstatedir,;t t
25227 s,@localstatedir@,$localstatedir,;t t
25228 s,@libdir@,$libdir,;t t
25229 s,@includedir@,$includedir,;t t
25230 s,@oldincludedir@,$oldincludedir,;t t
25231 s,@infodir@,$infodir,;t t
25232 s,@mandir@,$mandir,;t t
25233 s,@build_alias@,$build_alias,;t t
25234 s,@host_alias@,$host_alias,;t t
25235 s,@target_alias@,$target_alias,;t t
25236 s,@DEFS@,$DEFS,;t t
25237 s,@ECHO_C@,$ECHO_C,;t t
25238 s,@ECHO_N@,$ECHO_N,;t t
25239 s,@ECHO_T@,$ECHO_T,;t t
25240 s,@LIBS@,$LIBS,;t t
25241 s,@configdir@,$configdir,;t t
25242 s,@lockdir@,$lockdir,;t t
25243 s,@piddir@,$piddir,;t t
25244 s,@logfilebase@,$logfilebase,;t t
25245 s,@privatedir@,$privatedir,;t t
25246 s,@swatdir@,$swatdir,;t t
25247 s,@RUNPROG@,$RUNPROG,;t t
25248 s,@MPROGS@,$MPROGS,;t t
25249 s,@LDSHFLAGS@,$LDSHFLAGS,;t t
25250 s,@SONAMEFLAG@,$SONAMEFLAG,;t t
25251 s,@SHLD@,$SHLD,;t t
25252 s,@HOST_OS@,$HOST_OS,;t t
25253 s,@PAM_MOD@,$PAM_MOD,;t t
25254 s,@WRAP@,$WRAP,;t t
25255 s,@WRAP32@,$WRAP32,;t t
25256 s,@WRAPPROG@,$WRAPPROG,;t t
25257 s,@PICFLAG@,$PICFLAG,;t t
25258 s,@PICSUFFIX@,$PICSUFFIX,;t t
25259 s,@POBAD_CC@,$POBAD_CC,;t t
25260 s,@SHLIBEXT@,$SHLIBEXT,;t t
25261 s,@LIBSMBCLIENT_SHARED@,$LIBSMBCLIENT_SHARED,;t t
25262 s,@LIBSMBCLIENT@,$LIBSMBCLIENT,;t t
25263 s,@PRINTLIBS@,$PRINTLIBS,;t t
25264 s,@AUTHLIBS@,$AUTHLIBS,;t t
25265 s,@CC@,$CC,;t t
25266 s,@CFLAGS@,$CFLAGS,;t t
25267 s,@LDFLAGS@,$LDFLAGS,;t t
25268 s,@CPPFLAGS@,$CPPFLAGS,;t t
25269 s,@ac_ct_CC@,$ac_ct_CC,;t t
25270 s,@EXEEXT@,$EXEEXT,;t t
25271 s,@OBJEXT@,$OBJEXT,;t t
25272 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25273 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25274 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25275 s,@AWK@,$AWK,;t t
25276 s,@BROKEN_CC@,$BROKEN_CC,;t t
25277 s,@build@,$build,;t t
25278 s,@build_cpu@,$build_cpu,;t t
25279 s,@build_vendor@,$build_vendor,;t t
25280 s,@build_os@,$build_os,;t t
25281 s,@host@,$host,;t t
25282 s,@host_cpu@,$host_cpu,;t t
25283 s,@host_vendor@,$host_vendor,;t t
25284 s,@host_os@,$host_os,;t t
25285 s,@target@,$target,;t t
25286 s,@target_cpu@,$target_cpu,;t t
25287 s,@target_vendor@,$target_vendor,;t t
25288 s,@target_os@,$target_os,;t t
25289 s,@CPP@,$CPP,;t t
25290 s,@CUPS_CONFIG@,$CUPS_CONFIG,;t t
25291 s,@LIBOBJS@,$LIBOBJS,;t t
25292 s,@TERMLIBS@,$TERMLIBS,;t t
25293 s,@TERMLDFLAGS@,$TERMLDFLAGS,;t t
25294 s,@ROFF@,$ROFF,;t t
25295 s,@DYNEXP@,$DYNEXP,;t t
25296 s,@MYSQL_CONFIG@,$MYSQL_CONFIG,;t t
25297 s,@MYSQL_CFLAGS@,$MYSQL_CFLAGS,;t t
25298 s,@MYSQL_LIBS@,$MYSQL_LIBS,;t t
25299 s,@MODULE_MYSQL@,$MODULE_MYSQL,;t t
25300 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
25301 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
25302 s,@XML_LIBS@,$XML_LIBS,;t t
25303 s,@MODULE_XML@,$MODULE_XML,;t t
25304 s,@QUOTAOBJS@,$QUOTAOBJS,;t t
25305 s,@manlangs@,$manlangs,;t t
25306 s,@WINBIND_TARGETS@,$WINBIND_TARGETS,;t t
25307 s,@WINBIND_STARGETS@,$WINBIND_STARGETS,;t t
25308 s,@WINBIND_LTARGETS@,$WINBIND_LTARGETS,;t t
25309 s,@WINBIND_PAM_TARGETS@,$WINBIND_PAM_TARGETS,;t t
25310 s,@WINBIND_NSS_EXTRA_OBJS@,$WINBIND_NSS_EXTRA_OBJS,;t t
25311 s,@WINBIND_NSS_EXTRA_LIBS@,$WINBIND_NSS_EXTRA_LIBS,;t t
25312 s,@BUILD_POPT@,$BUILD_POPT,;t t
25313 s,@FLAGS1@,$FLAGS1,;t t
25314 s,@PYTHON@,$PYTHON,;t t
25315 s,@builddir@,$builddir,;t t
25316 CEOF
25317
25318 _ACEOF
25319
25320   cat >>$CONFIG_STATUS <<\_ACEOF
25321   # Split the substitutions into bite-sized pieces for seds with
25322   # small command number limits, like on Digital OSF/1 and HP-UX.
25323   ac_max_sed_lines=48
25324   ac_sed_frag=1 # Number of current file.
25325   ac_beg=1 # First line for current file.
25326   ac_end=$ac_max_sed_lines # Line after last line for current file.
25327   ac_more_lines=:
25328   ac_sed_cmds=
25329   while $ac_more_lines; do
25330     if test $ac_beg -gt 1; then
25331       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25332     else
25333       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25334     fi
25335     if test ! -s $tmp/subs.frag; then
25336       ac_more_lines=false
25337     else
25338       # The purpose of the label and of the branching condition is to
25339       # speed up the sed processing (if there are no `@' at all, there
25340       # is no need to browse any of the substitutions).
25341       # These are the two extra sed commands mentioned above.
25342       (echo ':t
25343   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25344       if test -z "$ac_sed_cmds"; then
25345         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25346       else
25347         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25348       fi
25349       ac_sed_frag=`expr $ac_sed_frag + 1`
25350       ac_beg=$ac_end
25351       ac_end=`expr $ac_end + $ac_max_sed_lines`
25352     fi
25353   done
25354   if test -z "$ac_sed_cmds"; then
25355     ac_sed_cmds=cat
25356   fi
25357 fi # test -n "$CONFIG_FILES"
25358
25359 _ACEOF
25360 cat >>$CONFIG_STATUS <<\_ACEOF
25361 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25362   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25363   case $ac_file in
25364   - | *:- | *:-:* ) # input from stdin
25365         cat >$tmp/stdin
25366         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25367         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25368   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25369         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25370   * )   ac_file_in=$ac_file.in ;;
25371   esac
25372
25373   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25374   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25375 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25376          X"$ac_file" : 'X\(//\)[^/]' \| \
25377          X"$ac_file" : 'X\(//\)$' \| \
25378          X"$ac_file" : 'X\(/\)' \| \
25379          .     : '\(.\)' 2>/dev/null ||
25380 echo X"$ac_file" |
25381     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25382           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25383           /^X\(\/\/\)$/{ s//\1/; q; }
25384           /^X\(\/\).*/{ s//\1/; q; }
25385           s/.*/./; q'`
25386   { case "$ac_dir" in
25387   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
25388   *)                      as_incr_dir=.;;
25389 esac
25390 as_dummy="$ac_dir"
25391 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25392   case $as_mkdir_dir in
25393     # Skip DOS drivespec
25394     ?:) as_incr_dir=$as_mkdir_dir ;;
25395     *)
25396       as_incr_dir=$as_incr_dir/$as_mkdir_dir
25397       test -d "$as_incr_dir" ||
25398         mkdir "$as_incr_dir" ||
25399         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
25400 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
25401    { (exit 1); exit 1; }; }
25402     ;;
25403   esac
25404 done; }
25405
25406   ac_builddir=.
25407
25408 if test "$ac_dir" != .; then
25409   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25410   # A "../" for each directory in $ac_dir_suffix.
25411   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25412 else
25413   ac_dir_suffix= ac_top_builddir=
25414 fi
25415
25416 case $srcdir in
25417   .)  # No --srcdir option.  We are building in place.
25418     ac_srcdir=.
25419     if test -z "$ac_top_builddir"; then
25420        ac_top_srcdir=.
25421     else
25422        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25423     fi ;;
25424   [\\/]* | ?:[\\/]* )  # Absolute path.
25425     ac_srcdir=$srcdir$ac_dir_suffix;
25426     ac_top_srcdir=$srcdir ;;
25427   *) # Relative path.
25428     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25429     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25430 esac
25431 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25432 # absolute.
25433 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25434 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
25435 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25436 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25437
25438
25439   case $INSTALL in
25440   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25441   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25442   esac
25443
25444   if test x"$ac_file" != x-; then
25445     { echo "$as_me:$LINENO: creating $ac_file" >&5
25446 echo "$as_me: creating $ac_file" >&6;}
25447     rm -f "$ac_file"
25448   fi
25449   # Let's still pretend it is `configure' which instantiates (i.e., don't
25450   # use $as_me), people would be surprised to read:
25451   #    /* config.h.  Generated by config.status.  */
25452   if test x"$ac_file" = x-; then
25453     configure_input=
25454   else
25455     configure_input="$ac_file.  "
25456   fi
25457   configure_input=$configure_input"Generated from `echo $ac_file_in |
25458                                      sed 's,.*/,,'` by configure."
25459
25460   # First look for the input files in the build tree, otherwise in the
25461   # src tree.
25462   ac_file_inputs=`IFS=:
25463     for f in $ac_file_in; do
25464       case $f in
25465       -) echo $tmp/stdin ;;
25466       [\\/$]*)
25467          # Absolute (can't be DOS-style, as IFS=:)
25468          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25469 echo "$as_me: error: cannot find input file: $f" >&2;}
25470    { (exit 1); exit 1; }; }
25471          echo $f;;
25472       *) # Relative
25473          if test -f "$f"; then
25474            # Build tree
25475            echo $f
25476          elif test -f "$srcdir/$f"; then
25477            # Source tree
25478            echo $srcdir/$f
25479          else
25480            # /dev/null tree
25481            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25482 echo "$as_me: error: cannot find input file: $f" >&2;}
25483    { (exit 1); exit 1; }; }
25484          fi;;
25485       esac
25486     done` || { (exit 1); exit 1; }
25487 _ACEOF
25488 cat >>$CONFIG_STATUS <<_ACEOF
25489   sed "$ac_vpsub
25490 $extrasub
25491 _ACEOF
25492 cat >>$CONFIG_STATUS <<\_ACEOF
25493 :t
25494 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25495 s,@configure_input@,$configure_input,;t t
25496 s,@srcdir@,$ac_srcdir,;t t
25497 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25498 s,@top_srcdir@,$ac_top_srcdir,;t t
25499 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25500 s,@builddir@,$ac_builddir,;t t
25501 s,@abs_builddir@,$ac_abs_builddir,;t t
25502 s,@top_builddir@,$ac_top_builddir,;t t
25503 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25504 s,@INSTALL@,$ac_INSTALL,;t t
25505 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25506   rm -f $tmp/stdin
25507   if test x"$ac_file" != x-; then
25508     mv $tmp/out $ac_file
25509   else
25510     cat $tmp/out
25511     rm -f $tmp/out
25512   fi
25513
25514 done
25515 _ACEOF
25516 cat >>$CONFIG_STATUS <<\_ACEOF
25517
25518 #
25519 # CONFIG_HEADER section.
25520 #
25521
25522 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25523 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25524 #
25525 # ac_d sets the value in "#define NAME VALUE" lines.
25526 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
25527 ac_dB='[        ].*$,\1#\2'
25528 ac_dC=' '
25529 ac_dD=',;t'
25530 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25531 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25532 ac_uB='$,\1#\2define\3'
25533 ac_uC=' '
25534 ac_uD=',;t'
25535
25536 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25537   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25538   case $ac_file in
25539   - | *:- | *:-:* ) # input from stdin
25540         cat >$tmp/stdin
25541         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25542         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25543   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25544         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25545   * )   ac_file_in=$ac_file.in ;;
25546   esac
25547
25548   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25549 echo "$as_me: creating $ac_file" >&6;}
25550
25551   # First look for the input files in the build tree, otherwise in the
25552   # src tree.
25553   ac_file_inputs=`IFS=:
25554     for f in $ac_file_in; do
25555       case $f in
25556       -) echo $tmp/stdin ;;
25557       [\\/$]*)
25558          # Absolute (can't be DOS-style, as IFS=:)
25559          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25560 echo "$as_me: error: cannot find input file: $f" >&2;}
25561    { (exit 1); exit 1; }; }
25562          echo $f;;
25563       *) # Relative
25564          if test -f "$f"; then
25565            # Build tree
25566            echo $f
25567          elif test -f "$srcdir/$f"; then
25568            # Source tree
25569            echo $srcdir/$f
25570          else
25571            # /dev/null tree
25572            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25573 echo "$as_me: error: cannot find input file: $f" >&2;}
25574    { (exit 1); exit 1; }; }
25575          fi;;
25576       esac
25577     done` || { (exit 1); exit 1; }
25578   # Remove the trailing spaces.
25579   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
25580
25581 _ACEOF
25582
25583 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25584 # `conftest.undefs', that substitutes the proper values into
25585 # config.h.in to produce config.h.  The first handles `#define'
25586 # templates, and the second `#undef' templates.
25587 # And first: Protect against being on the right side of a sed subst in
25588 # config.status.  Protect against being in an unquoted here document
25589 # in config.status.
25590 rm -f conftest.defines conftest.undefs
25591 # Using a here document instead of a string reduces the quoting nightmare.
25592 # Putting comments in sed scripts is not portable.
25593 #
25594 # `end' is used to avoid that the second main sed command (meant for
25595 # 0-ary CPP macros) applies to n-ary macro definitions.
25596 # See the Autoconf documentation for `clear'.
25597 cat >confdef2sed.sed <<\_ACEOF
25598 s/[\\&,]/\\&/g
25599 s,[\\$`],\\&,g
25600 t clear
25601 : clear
25602 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25603 t end
25604 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25605 : end
25606 _ACEOF
25607 # If some macros were called several times there might be several times
25608 # the same #defines, which is useless.  Nevertheless, we may not want to
25609 # sort them, since we want the *last* AC-DEFINE to be honored.
25610 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25611 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25612 rm -f confdef2sed.sed
25613
25614 # This sed command replaces #undef with comments.  This is necessary, for
25615 # example, in the case of _POSIX_SOURCE, which is predefined and required
25616 # on some systems where configure will not decide to define it.
25617 cat >>conftest.undefs <<\_ACEOF
25618 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25619 _ACEOF
25620
25621 # Break up conftest.defines because some shells have a limit on the size
25622 # of here documents, and old seds have small limits too (100 cmds).
25623 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25624 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25625 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25626 echo '  :' >>$CONFIG_STATUS
25627 rm -f conftest.tail
25628 while grep . conftest.defines >/dev/null
25629 do
25630   # Write a limited-size here document to $tmp/defines.sed.
25631   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25632   # Speed up: don't consider the non `#define' lines.
25633   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
25634   # Work around the forget-to-reset-the-flag bug.
25635   echo 't clr' >>$CONFIG_STATUS
25636   echo ': clr' >>$CONFIG_STATUS
25637   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25638   echo 'CEOF
25639   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25640   rm -f $tmp/in
25641   mv $tmp/out $tmp/in
25642 ' >>$CONFIG_STATUS
25643   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25644   rm -f conftest.defines
25645   mv conftest.tail conftest.defines
25646 done
25647 rm -f conftest.defines
25648 echo '  fi # egrep' >>$CONFIG_STATUS
25649 echo >>$CONFIG_STATUS
25650
25651 # Break up conftest.undefs because some shells have a limit on the size
25652 # of here documents, and old seds have small limits too (100 cmds).
25653 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25654 rm -f conftest.tail
25655 while grep . conftest.undefs >/dev/null
25656 do
25657   # Write a limited-size here document to $tmp/undefs.sed.
25658   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25659   # Speed up: don't consider the non `#undef'
25660   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25661   # Work around the forget-to-reset-the-flag bug.
25662   echo 't clr' >>$CONFIG_STATUS
25663   echo ': clr' >>$CONFIG_STATUS
25664   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25665   echo 'CEOF
25666   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25667   rm -f $tmp/in
25668   mv $tmp/out $tmp/in
25669 ' >>$CONFIG_STATUS
25670   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25671   rm -f conftest.undefs
25672   mv conftest.tail conftest.undefs
25673 done
25674 rm -f conftest.undefs
25675
25676 cat >>$CONFIG_STATUS <<\_ACEOF
25677   # Let's still pretend it is `configure' which instantiates (i.e., don't
25678   # use $as_me), people would be surprised to read:
25679   #    /* config.h.  Generated by config.status.  */
25680   if test x"$ac_file" = x-; then
25681     echo "/* Generated by configure.  */" >$tmp/config.h
25682   else
25683     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25684   fi
25685   cat $tmp/in >>$tmp/config.h
25686   rm -f $tmp/in
25687   if test x"$ac_file" != x-; then
25688     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
25689       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25690 echo "$as_me: $ac_file is unchanged" >&6;}
25691     else
25692       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25693 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25694          X"$ac_file" : 'X\(//\)[^/]' \| \
25695          X"$ac_file" : 'X\(//\)$' \| \
25696          X"$ac_file" : 'X\(/\)' \| \
25697          .     : '\(.\)' 2>/dev/null ||
25698 echo X"$ac_file" |
25699     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25700           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25701           /^X\(\/\/\)$/{ s//\1/; q; }
25702           /^X\(\/\).*/{ s//\1/; q; }
25703           s/.*/./; q'`
25704       { case "$ac_dir" in
25705   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
25706   *)                      as_incr_dir=.;;
25707 esac
25708 as_dummy="$ac_dir"
25709 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25710   case $as_mkdir_dir in
25711     # Skip DOS drivespec
25712     ?:) as_incr_dir=$as_mkdir_dir ;;
25713     *)
25714       as_incr_dir=$as_incr_dir/$as_mkdir_dir
25715       test -d "$as_incr_dir" ||
25716         mkdir "$as_incr_dir" ||
25717         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
25718 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
25719    { (exit 1); exit 1; }; }
25720     ;;
25721   esac
25722 done; }
25723
25724       rm -f $ac_file
25725       mv $tmp/config.h $ac_file
25726     fi
25727   else
25728     cat $tmp/config.h
25729     rm -f $tmp/config.h
25730   fi
25731 done
25732 _ACEOF
25733
25734 cat >>$CONFIG_STATUS <<\_ACEOF
25735
25736 { (exit 0); exit 0; }
25737 _ACEOF
25738 chmod +x $CONFIG_STATUS
25739 ac_clean_files=$ac_clean_files_save
25740
25741
25742 # configure is writing to config.log, and then calls config.status.
25743 # config.status does its own redirection, appending to config.log.
25744 # Unfortunately, on DOS this fails, as config.log is still kept open
25745 # by configure, so config.status won't be able to write to it; its
25746 # output is simply discarded.  So we exec the FD to /dev/null,
25747 # effectively closing config.log, so it can be properly (re)opened and
25748 # appended to by config.status.  When coming back to configure, we
25749 # need to make the FD available again.
25750 if test "$no_create" != yes; then
25751   ac_cs_success=:
25752   exec 5>/dev/null
25753   $SHELL $CONFIG_STATUS || ac_cs_success=false
25754   exec 5>>config.log
25755   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25756   # would make configure fail if this is the last instruction.
25757   $ac_cs_success || { (exit 1); exit 1; }
25758 fi
25759
25760
25761 #################################################
25762 # Print very concise instructions on building/use
25763 if test "x$enable_dmalloc" = xyes
25764 then
25765         echo "$as_me:$LINENO: result: Note: The dmalloc debug library will be included.  To turn it on use" >&5
25766 echo "${ECHO_T}Note: The dmalloc debug library will be included.  To turn it on use" >&6
25767         echo "$as_me:$LINENO: result:       \$ eval \\`dmalloc samba\\`." >&5
25768 echo "${ECHO_T}      \$ eval \\`dmalloc samba\\`." >&6
25769 fi