consolidate error mapping functions into a single file
[gd/samba/.git] / source3 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
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 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
40 do
41   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42     eval $as_var=C; export $as_var
43   else
44     $as_unset $as_var
45   fi
46 done
47
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
50   as_expr=expr
51 else
52   as_expr=false
53 fi
54
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56   as_basename=basename
57 else
58   as_basename=false
59 fi
60
61
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65          X"$0" : 'X\(//\)$' \| \
66          X"$0" : 'X\(/\)$' \| \
67          .     : '\(.\)' 2>/dev/null ||
68 echo X/"$0" |
69     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70           /^X\/\(\/\/\)$/{ s//\1/; q; }
71           /^X\/\(\/\).*/{ s//\1/; q; }
72           s/.*/./; q'`
73
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="/nonexistent;."; 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              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143              CONFIG_SHELL=$as_dir/$as_base
144              export CONFIG_SHELL
145              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146            fi;;
147          esac
148        done
149 done
150 ;;
151   esac
152
153   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154   # uniformly replaced by the line number.  The first 'sed' inserts a
155   # line-number line before each line; the second 'sed' does the real
156   # work.  The second script uses 'N' to pair each line-number line
157   # with the numbered line, and appends trailing '-' during
158   # substitution so that $LINENO is not a special case at line end.
159   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
161   sed '=' <$as_myself |
162     sed '
163       N
164       s,$,-,
165       : loop
166       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167       t loop
168       s,-$,,
169       s,^['$as_cr_digits']*\n,,
170     ' >$as_me.lineno &&
171   chmod +x $as_me.lineno ||
172     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173    { (exit 1); exit 1; }; }
174
175   # Don't try to exec as it changes $[0], causing all sort of problems
176   # (the dirname of $[0] is not the place where we might find the
177   # original and so on.  Autoconf is especially sensible to this).
178   . ./$as_me.lineno
179   # Exit status is that of the last command.
180   exit
181 }
182
183
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185   *c*,-n*) ECHO_N= ECHO_C='
186 ' ECHO_T='      ' ;;
187   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 esac
190
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192   as_expr=expr
193 else
194   as_expr=false
195 fi
196
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200   # We could just check for DJGPP; but this test a) works b) is more generic
201   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202   if test -f conf$$.exe; then
203     # Don't use ln at all; we don't have any links
204     as_ln_s='cp -p'
205   else
206     as_ln_s='ln -s'
207   fi
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209   as_ln_s=ln
210 else
211   as_ln_s='cp -p'
212 fi
213 rm -f conf$$ conf$$.exe conf$$.file
214
215 if mkdir -p . 2>/dev/null; then
216   as_mkdir_p=:
217 else
218   as_mkdir_p=false
219 fi
220
221 as_executable_p="test -f"
222
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
225
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
228
229
230 # IFS
231 # We need space, tab and new line, in precisely that order.
232 as_nl='
233 '
234 IFS="   $as_nl"
235
236 # CDPATH.
237 $as_unset CDPATH
238
239
240 # Name of the host.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
244
245 exec 6>&1
246
247 #
248 # Initializations.
249 #
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
252 cross_compiling=no
253 subdirs=
254 MFLAGS=
255 MAKEFLAGS=
256 SHELL=${CONFIG_SHELL-/bin/sh}
257
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete.  It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
262
263 # Identity of this package.
264 PACKAGE_NAME=
265 PACKAGE_TARNAME=
266 PACKAGE_VERSION=
267 PACKAGE_STRING=
268 PACKAGE_BUGREPORT=
269
270 ac_unique_file="include/includes.h"
271 ac_default_prefix=/usr/local/samba
272 # Factoring default headers for most tests.
273 ac_includes_default="\
274 #include <stdio.h>
275 #if HAVE_SYS_TYPES_H
276 # include <sys/types.h>
277 #endif
278 #if HAVE_SYS_STAT_H
279 # include <sys/stat.h>
280 #endif
281 #if STDC_HEADERS
282 # include <stdlib.h>
283 # include <stddef.h>
284 #else
285 # if HAVE_STDLIB_H
286 #  include <stdlib.h>
287 # endif
288 #endif
289 #if HAVE_STRING_H
290 # if !STDC_HEADERS && HAVE_MEMORY_H
291 #  include <memory.h>
292 # endif
293 # include <string.h>
294 #endif
295 #if HAVE_STRINGS_H
296 # include <strings.h>
297 #endif
298 #if HAVE_INTTYPES_H
299 # include <inttypes.h>
300 #else
301 # if HAVE_STDINT_H
302 #  include <stdint.h>
303 # endif
304 #endif
305 #if HAVE_UNISTD_H
306 # include <unistd.h>
307 #endif"
308
309 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS configdir lockdir piddir logfilebase privatedir swatdir RUNPROG MPROGS LDSHFLAGS SONAMEFLAG SHLD HOST_OS PAM_MOD WRAP WRAP32 WRAPPROG PICFLAG PICSUFFIX POBAD_CC SHLIBEXT LIBSMBCLIENT_SHARED LIBSMBCLIENT PRINTLIBS AUTHLIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK BROKEN_CC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CPP EGREP CUPS_CONFIG LIBOBJS TERMLIBS TERMLDFLAGS ROFF DYNEXP MYSQL_CONFIG MYSQL_CFLAGS MYSQL_LIBS XML2_CONFIG XML_CFLAGS XML_LIBS QUOTAOBJS manlangs WINBIND_TARGETS WINBIND_STARGETS WINBIND_LTARGETS WINBIND_PAM_TARGETS WINBIND_NSS_EXTRA_OBJS WINBIND_NSS_EXTRA_LIBS BUILD_POPT FLAGS1 PYTHON builddir LTLIBOBJS'
310 ac_subst_files=''
311
312 # Initialize some variables set by options.
313 ac_init_help=
314 ac_init_version=false
315 # The variables have the same names as the options, with
316 # dashes changed to underlines.
317 cache_file=/dev/null
318 exec_prefix=NONE
319 no_create=
320 no_recursion=
321 prefix=NONE
322 program_prefix=NONE
323 program_suffix=NONE
324 program_transform_name=s,x,x,
325 silent=
326 site=
327 srcdir=
328 verbose=
329 x_includes=NONE
330 x_libraries=NONE
331
332 # Installation directory options.
333 # These are left unexpanded so users can "make install exec_prefix=/foo"
334 # and all the variables that are supposed to be based on exec_prefix
335 # by default will actually change.
336 # Use braces instead of parens because sh, perl, etc. also accept them.
337 bindir='${exec_prefix}/bin'
338 sbindir='${exec_prefix}/sbin'
339 libexecdir='${exec_prefix}/libexec'
340 datadir='${prefix}/share'
341 sysconfdir='${prefix}/etc'
342 sharedstatedir='${prefix}/com'
343 localstatedir='${prefix}/var'
344 libdir='${exec_prefix}/lib'
345 includedir='${prefix}/include'
346 oldincludedir='/usr/include'
347 infodir='${prefix}/info'
348 mandir='${prefix}/man'
349
350 ac_prev=
351 for ac_option
352 do
353   # If the previous option needs an argument, assign it.
354   if test -n "$ac_prev"; then
355     eval "$ac_prev=\$ac_option"
356     ac_prev=
357     continue
358   fi
359
360   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
361
362   # Accept the important Cygnus configure options, so we can diagnose typos.
363
364   case $ac_option in
365
366   -bindir | --bindir | --bindi | --bind | --bin | --bi)
367     ac_prev=bindir ;;
368   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
369     bindir=$ac_optarg ;;
370
371   -build | --build | --buil | --bui | --bu)
372     ac_prev=build_alias ;;
373   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
374     build_alias=$ac_optarg ;;
375
376   -cache-file | --cache-file | --cache-fil | --cache-fi \
377   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
378     ac_prev=cache_file ;;
379   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
380   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
381     cache_file=$ac_optarg ;;
382
383   --config-cache | -C)
384     cache_file=config.cache ;;
385
386   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
387     ac_prev=datadir ;;
388   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
389   | --da=*)
390     datadir=$ac_optarg ;;
391
392   -disable-* | --disable-*)
393     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
394     # Reject names that are not valid shell variable names.
395     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
396       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
397    { (exit 1); exit 1; }; }
398     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
399     eval "enable_$ac_feature=no" ;;
400
401   -enable-* | --enable-*)
402     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
403     # Reject names that are not valid shell variable names.
404     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406    { (exit 1); exit 1; }; }
407     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408     case $ac_option in
409       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
410       *) ac_optarg=yes ;;
411     esac
412     eval "enable_$ac_feature='$ac_optarg'" ;;
413
414   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
415   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
416   | --exec | --exe | --ex)
417     ac_prev=exec_prefix ;;
418   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
419   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
420   | --exec=* | --exe=* | --ex=*)
421     exec_prefix=$ac_optarg ;;
422
423   -gas | --gas | --ga | --g)
424     # Obsolete; use --with-gas.
425     with_gas=yes ;;
426
427   -help | --help | --hel | --he | -h)
428     ac_init_help=long ;;
429   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
430     ac_init_help=recursive ;;
431   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
432     ac_init_help=short ;;
433
434   -host | --host | --hos | --ho)
435     ac_prev=host_alias ;;
436   -host=* | --host=* | --hos=* | --ho=*)
437     host_alias=$ac_optarg ;;
438
439   -includedir | --includedir | --includedi | --included | --include \
440   | --includ | --inclu | --incl | --inc)
441     ac_prev=includedir ;;
442   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
443   | --includ=* | --inclu=* | --incl=* | --inc=*)
444     includedir=$ac_optarg ;;
445
446   -infodir | --infodir | --infodi | --infod | --info | --inf)
447     ac_prev=infodir ;;
448   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
449     infodir=$ac_optarg ;;
450
451   -libdir | --libdir | --libdi | --libd)
452     ac_prev=libdir ;;
453   -libdir=* | --libdir=* | --libdi=* | --libd=*)
454     libdir=$ac_optarg ;;
455
456   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
457   | --libexe | --libex | --libe)
458     ac_prev=libexecdir ;;
459   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
460   | --libexe=* | --libex=* | --libe=*)
461     libexecdir=$ac_optarg ;;
462
463   -localstatedir | --localstatedir | --localstatedi | --localstated \
464   | --localstate | --localstat | --localsta | --localst \
465   | --locals | --local | --loca | --loc | --lo)
466     ac_prev=localstatedir ;;
467   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
468   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
469   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
470     localstatedir=$ac_optarg ;;
471
472   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
473     ac_prev=mandir ;;
474   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
475     mandir=$ac_optarg ;;
476
477   -nfp | --nfp | --nf)
478     # Obsolete; use --without-fp.
479     with_fp=no ;;
480
481   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482   | --no-cr | --no-c | -n)
483     no_create=yes ;;
484
485   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
486   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
487     no_recursion=yes ;;
488
489   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
490   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
491   | --oldin | --oldi | --old | --ol | --o)
492     ac_prev=oldincludedir ;;
493   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
494   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
495   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
496     oldincludedir=$ac_optarg ;;
497
498   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
499     ac_prev=prefix ;;
500   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
501     prefix=$ac_optarg ;;
502
503   -program-prefix | --program-prefix | --program-prefi | --program-pref \
504   | --program-pre | --program-pr | --program-p)
505     ac_prev=program_prefix ;;
506   -program-prefix=* | --program-prefix=* | --program-prefi=* \
507   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
508     program_prefix=$ac_optarg ;;
509
510   -program-suffix | --program-suffix | --program-suffi | --program-suff \
511   | --program-suf | --program-su | --program-s)
512     ac_prev=program_suffix ;;
513   -program-suffix=* | --program-suffix=* | --program-suffi=* \
514   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
515     program_suffix=$ac_optarg ;;
516
517   -program-transform-name | --program-transform-name \
518   | --program-transform-nam | --program-transform-na \
519   | --program-transform-n | --program-transform- \
520   | --program-transform | --program-transfor \
521   | --program-transfo | --program-transf \
522   | --program-trans | --program-tran \
523   | --progr-tra | --program-tr | --program-t)
524     ac_prev=program_transform_name ;;
525   -program-transform-name=* | --program-transform-name=* \
526   | --program-transform-nam=* | --program-transform-na=* \
527   | --program-transform-n=* | --program-transform-=* \
528   | --program-transform=* | --program-transfor=* \
529   | --program-transfo=* | --program-transf=* \
530   | --program-trans=* | --program-tran=* \
531   | --progr-tra=* | --program-tr=* | --program-t=*)
532     program_transform_name=$ac_optarg ;;
533
534   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
535   | -silent | --silent | --silen | --sile | --sil)
536     silent=yes ;;
537
538   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
539     ac_prev=sbindir ;;
540   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
541   | --sbi=* | --sb=*)
542     sbindir=$ac_optarg ;;
543
544   -sharedstatedir | --sharedstatedir | --sharedstatedi \
545   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
546   | --sharedst | --shareds | --shared | --share | --shar \
547   | --sha | --sh)
548     ac_prev=sharedstatedir ;;
549   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
550   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
551   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
552   | --sha=* | --sh=*)
553     sharedstatedir=$ac_optarg ;;
554
555   -site | --site | --sit)
556     ac_prev=site ;;
557   -site=* | --site=* | --sit=*)
558     site=$ac_optarg ;;
559
560   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
561     ac_prev=srcdir ;;
562   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
563     srcdir=$ac_optarg ;;
564
565   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
566   | --syscon | --sysco | --sysc | --sys | --sy)
567     ac_prev=sysconfdir ;;
568   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
569   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
570     sysconfdir=$ac_optarg ;;
571
572   -target | --target | --targe | --targ | --tar | --ta | --t)
573     ac_prev=target_alias ;;
574   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
575     target_alias=$ac_optarg ;;
576
577   -v | -verbose | --verbose | --verbos | --verbo | --verb)
578     verbose=yes ;;
579
580   -version | --version | --versio | --versi | --vers | -V)
581     ac_init_version=: ;;
582
583   -with-* | --with-*)
584     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
585     # Reject names that are not valid shell variable names.
586     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
587       { echo "$as_me: error: invalid package name: $ac_package" >&2
588    { (exit 1); exit 1; }; }
589     ac_package=`echo $ac_package| sed 's/-/_/g'`
590     case $ac_option in
591       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
592       *) ac_optarg=yes ;;
593     esac
594     eval "with_$ac_package='$ac_optarg'" ;;
595
596   -without-* | --without-*)
597     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
598     # Reject names that are not valid shell variable names.
599     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
600       { echo "$as_me: error: invalid package name: $ac_package" >&2
601    { (exit 1); exit 1; }; }
602     ac_package=`echo $ac_package | sed 's/-/_/g'`
603     eval "with_$ac_package=no" ;;
604
605   --x)
606     # Obsolete; use --with-x.
607     with_x=yes ;;
608
609   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
610   | --x-incl | --x-inc | --x-in | --x-i)
611     ac_prev=x_includes ;;
612   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
613   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
614     x_includes=$ac_optarg ;;
615
616   -x-libraries | --x-libraries | --x-librarie | --x-librari \
617   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
618     ac_prev=x_libraries ;;
619   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
620   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
621     x_libraries=$ac_optarg ;;
622
623   -*) { echo "$as_me: error: unrecognized option: $ac_option
624 Try \`$0 --help' for more information." >&2
625    { (exit 1); exit 1; }; }
626     ;;
627
628   *=*)
629     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
630     # Reject names that are not valid shell variable names.
631     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
632       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
633    { (exit 1); exit 1; }; }
634     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
635     eval "$ac_envvar='$ac_optarg'"
636     export $ac_envvar ;;
637
638   *)
639     # FIXME: should be removed in autoconf 3.0.
640     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
641     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
642       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
643     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
644     ;;
645
646   esac
647 done
648
649 if test -n "$ac_prev"; then
650   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
651   { echo "$as_me: error: missing argument to $ac_option" >&2
652    { (exit 1); exit 1; }; }
653 fi
654
655 # Be sure to have absolute paths.
656 for ac_var in exec_prefix prefix
657 do
658   eval ac_val=$`echo $ac_var`
659   case $ac_val in
660     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
661     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662    { (exit 1); exit 1; }; };;
663   esac
664 done
665
666 # Be sure to have absolute paths.
667 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
668               localstatedir libdir includedir oldincludedir infodir mandir
669 do
670   eval ac_val=$`echo $ac_var`
671   case $ac_val in
672     [\\/$]* | ?:[\\/]* ) ;;
673     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
674    { (exit 1); exit 1; }; };;
675   esac
676 done
677
678 # There might be people who depend on the old broken behavior: `$host'
679 # used to hold the argument of --host etc.
680 # FIXME: To remove some day.
681 build=$build_alias
682 host=$host_alias
683 target=$target_alias
684
685 # FIXME: To remove some day.
686 if test "x$host_alias" != x; then
687   if test "x$build_alias" = x; then
688     cross_compiling=maybe
689     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
690     If a cross compiler is detected then cross compile mode will be used." >&2
691   elif test "x$build_alias" != "x$host_alias"; then
692     cross_compiling=yes
693   fi
694 fi
695
696 ac_tool_prefix=
697 test -n "$host_alias" && ac_tool_prefix=$host_alias-
698
699 test "$silent" = yes && exec 6>/dev/null
700
701
702 # Find the source files, if location was not specified.
703 if test -z "$srcdir"; then
704   ac_srcdir_defaulted=yes
705   # Try the directory containing this script, then its parent.
706   ac_confdir=`(dirname "$0") 2>/dev/null ||
707 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
708          X"$0" : 'X\(//\)[^/]' \| \
709          X"$0" : 'X\(//\)$' \| \
710          X"$0" : 'X\(/\)' \| \
711          .     : '\(.\)' 2>/dev/null ||
712 echo X"$0" |
713     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
714           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
715           /^X\(\/\/\)$/{ s//\1/; q; }
716           /^X\(\/\).*/{ s//\1/; q; }
717           s/.*/./; q'`
718   srcdir=$ac_confdir
719   if test ! -r $srcdir/$ac_unique_file; then
720     srcdir=..
721   fi
722 else
723   ac_srcdir_defaulted=no
724 fi
725 if test ! -r $srcdir/$ac_unique_file; then
726   if test "$ac_srcdir_defaulted" = yes; then
727     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
728    { (exit 1); exit 1; }; }
729   else
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
731    { (exit 1); exit 1; }; }
732   fi
733 fi
734 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
735   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
736    { (exit 1); exit 1; }; }
737 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
738 ac_env_build_alias_set=${build_alias+set}
739 ac_env_build_alias_value=$build_alias
740 ac_cv_env_build_alias_set=${build_alias+set}
741 ac_cv_env_build_alias_value=$build_alias
742 ac_env_host_alias_set=${host_alias+set}
743 ac_env_host_alias_value=$host_alias
744 ac_cv_env_host_alias_set=${host_alias+set}
745 ac_cv_env_host_alias_value=$host_alias
746 ac_env_target_alias_set=${target_alias+set}
747 ac_env_target_alias_value=$target_alias
748 ac_cv_env_target_alias_set=${target_alias+set}
749 ac_cv_env_target_alias_value=$target_alias
750 ac_env_CC_set=${CC+set}
751 ac_env_CC_value=$CC
752 ac_cv_env_CC_set=${CC+set}
753 ac_cv_env_CC_value=$CC
754 ac_env_CFLAGS_set=${CFLAGS+set}
755 ac_env_CFLAGS_value=$CFLAGS
756 ac_cv_env_CFLAGS_set=${CFLAGS+set}
757 ac_cv_env_CFLAGS_value=$CFLAGS
758 ac_env_LDFLAGS_set=${LDFLAGS+set}
759 ac_env_LDFLAGS_value=$LDFLAGS
760 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_cv_env_LDFLAGS_value=$LDFLAGS
762 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
763 ac_env_CPPFLAGS_value=$CPPFLAGS
764 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
766 ac_env_CPP_set=${CPP+set}
767 ac_env_CPP_value=$CPP
768 ac_cv_env_CPP_set=${CPP+set}
769 ac_cv_env_CPP_value=$CPP
770
771 #
772 # Report the --help message.
773 #
774 if test "$ac_init_help" = "long"; then
775   # Omit some internal or obsolete options to make the list less imposing.
776   # This message is too long to be a string in the A/UX 3.1 sh.
777   cat <<_ACEOF
778 \`configure' configures this package to adapt to many kinds of systems.
779
780 Usage: $0 [OPTION]... [VAR=VALUE]...
781
782 To assign environment variables (e.g., CC, CFLAGS...), specify them as
783 VAR=VALUE.  See below for descriptions of some of the useful variables.
784
785 Defaults for the options are specified in brackets.
786
787 Configuration:
788   -h, --help              display this help and exit
789       --help=short        display options specific to this package
790       --help=recursive    display the short help of all the included packages
791   -V, --version           display version information and exit
792   -q, --quiet, --silent   do not print \`checking...' messages
793       --cache-file=FILE   cache test results in FILE [disabled]
794   -C, --config-cache      alias for \`--cache-file=config.cache'
795   -n, --no-create         do not create output files
796       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
797
798 _ACEOF
799
800   cat <<_ACEOF
801 Installation directories:
802   --prefix=PREFIX         install architecture-independent files in PREFIX
803                           [$ac_default_prefix]
804   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
805                           [PREFIX]
806
807 By default, \`make install' will install all the files in
808 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
809 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
810 for instance \`--prefix=\$HOME'.
811
812 For better control, use the options below.
813
814 Fine tuning of the installation directories:
815   --bindir=DIR           user executables [EPREFIX/bin]
816   --sbindir=DIR          system admin executables [EPREFIX/sbin]
817   --libexecdir=DIR       program executables [EPREFIX/libexec]
818   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
819   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
820   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
821   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
822   --libdir=DIR           object code libraries [EPREFIX/lib]
823   --includedir=DIR       C header files [PREFIX/include]
824   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
825   --infodir=DIR          info documentation [PREFIX/info]
826   --mandir=DIR           man documentation [PREFIX/man]
827 _ACEOF
828
829   cat <<\_ACEOF
830
831 System types:
832   --build=BUILD     configure for building on BUILD [guessed]
833   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
834   --target=TARGET   configure for building compilers for TARGET [HOST]
835 _ACEOF
836 fi
837
838 if test -n "$ac_init_help"; then
839
840   cat <<\_ACEOF
841
842 Optional Features:
843   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
844   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
845   --enable-debug          Turn on compiler debugging information (default=no)
846   --enable-developer      Turn on developer warnings and debugging (default=no)
847   --enable-krb5developer  Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)
848   --enable-dmalloc        Enable heap debugging default=no
849   --enable-cups           Turn on CUPS support (default=auto)
850   --disable-mysqltest       Do not try to compile and run a test MYSQL program
851   --disable-xmltest       Do not try to compile and run a test LIBXML program
852
853 Optional Packages:
854   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
855   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
856   --with-fhs              Use FHS-compliant paths (default=no)
857   --with-privatedir=DIR   Where to put smbpasswd ($ac_default_prefix/private)
858   --with-lockdir=DIR      Where to put lock files ($ac_default_prefix/var/locks)
859   --with-piddir=DIR       Where to put pid files ($ac_default_prefix/var/locks)
860   --with-swatdir=DIR      Where to put SWAT files ($ac_default_prefix/swat)
861   --with-configdir=DIR    Where to put configuration files (\$libdir)
862   --with-logfilebase=DIR  Where to put log files (\$(VARDIR))
863   --with-readline=DIR   Look for readline include/libs in DIR (default=auto)
864   --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto)
865   --with-smbwrapper       Include SMB wrapper support (default=no)
866   --with-afs              Include AFS clear-text auth support (default=no)
867   --with-dce-dfs          Include DCE/DFS clear-text auth support (default=no)
868    --with-ads  Active Directory support (default yes)
869   --with-krb5=base-dir    Locate Kerberos 5 support (default=/usr)
870    --with-ldap  LDAP support (default yes)
871   --with-mysql-prefix=PFX   Prefix where MYSQL is installed (optional)
872   --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed (optional)
873   --with-xml-prefix=PFX   Prefix where libxml is installed (optional)
874   --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
875   --with-automount        Include AUTOMOUNT support (default=no)
876   --with-smbmount         Include SMBMOUNT (Linux only) support (default=no)
877   --with-pam              Include PAM support (default=no)
878   --with-pam_smbpass      Build a PAM module to allow other applications to use our smbpasswd file (default=no)
879   --with-sam              Build new (experimental) SAM database (default=no)
880   --with-ldapsam           Include LDAP SAM 2.2 compatible configuration (default=no)
881   --with-tdbsam           Include experimental TDB SAM support (default=no)
882   --with-nisplussam       Include NISPLUS SAM support (default=no)
883   --with-nisplus-home     Include NISPLUS_HOME support (default=no)
884   --with-syslog           Include experimental SYSLOG support (default=no)
885   --with-profiling-data   Include gathering source code profile information (default=no)
886   --with-quotas           Include experimental disk-quota support (default=no)
887   --with-utmp             Include experimental utmp accounting (default=no)
888   --with-manpages-langs={en,ja,pl}  Choose man pages' language(s). (en)
889   --with-libsmbclient     Build the libsmbclient shared library (default=yes)
890   --with-spinlocks        Use spin locks instead of fcntl locks (default=no)
891   --with-acl-support      Include ACL support (default=no)
892   --with-sendfile-support      Check for sendfile support (default=yes)
893   --with-winbind          Build winbind (default, if supported by OS)
894   --with-included-popt    use bundled popt library, not from system
895   --with-python=PYTHONNAME  build Python libraries
896
897 Some influential environment variables:
898   CC          C compiler command
899   CFLAGS      C compiler flags
900   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
901               nonstandard directory <lib dir>
902   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
903               headers in a nonstandard directory <include dir>
904   CPP         C preprocessor
905
906 Use these variables to override the choices made by `configure' or to help
907 it to find libraries and programs with nonstandard names/locations.
908
909 _ACEOF
910 fi
911
912 if test "$ac_init_help" = "recursive"; then
913   # If there are subdirs, report their specific --help.
914   ac_popdir=`pwd`
915   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
916     test -d $ac_dir || continue
917     ac_builddir=.
918
919 if test "$ac_dir" != .; then
920   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
921   # A "../" for each directory in $ac_dir_suffix.
922   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
923 else
924   ac_dir_suffix= ac_top_builddir=
925 fi
926
927 case $srcdir in
928   .)  # No --srcdir option.  We are building in place.
929     ac_srcdir=.
930     if test -z "$ac_top_builddir"; then
931        ac_top_srcdir=.
932     else
933        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
934     fi ;;
935   [\\/]* | ?:[\\/]* )  # Absolute path.
936     ac_srcdir=$srcdir$ac_dir_suffix;
937     ac_top_srcdir=$srcdir ;;
938   *) # Relative path.
939     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
940     ac_top_srcdir=$ac_top_builddir$srcdir ;;
941 esac
942 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
943 # absolute.
944 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
945 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
946 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
947 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
948
949     cd $ac_dir
950     # Check for guested configure; otherwise get Cygnus style configure.
951     if test -f $ac_srcdir/configure.gnu; then
952       echo
953       $SHELL $ac_srcdir/configure.gnu  --help=recursive
954     elif test -f $ac_srcdir/configure; then
955       echo
956       $SHELL $ac_srcdir/configure  --help=recursive
957     elif test -f $ac_srcdir/configure.ac ||
958            test -f $ac_srcdir/configure.in; then
959       echo
960       $ac_configure --help
961     else
962       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
963     fi
964     cd $ac_popdir
965   done
966 fi
967
968 test -n "$ac_init_help" && exit 0
969 if $ac_init_version; then
970   cat <<\_ACEOF
971
972 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
973 Free Software Foundation, Inc.
974 This configure script is free software; the Free Software Foundation
975 gives unlimited permission to copy, distribute and modify it.
976 _ACEOF
977   exit 0
978 fi
979 exec 5>config.log
980 cat >&5 <<_ACEOF
981 This file contains any messages produced by compilers while
982 running configure, to aid debugging if configure makes a mistake.
983
984 It was created by $as_me, which was
985 generated by GNU Autoconf 2.54.  Invocation command line was
986
987   $ $0 $@
988
989 _ACEOF
990 {
991 cat <<_ASUNAME
992 ## --------- ##
993 ## Platform. ##
994 ## --------- ##
995
996 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
997 uname -m = `(uname -m) 2>/dev/null || echo unknown`
998 uname -r = `(uname -r) 2>/dev/null || echo unknown`
999 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1000 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1001
1002 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1003 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1004
1005 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1006 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1007 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1008 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1009 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1010 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1011 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1012
1013 _ASUNAME
1014
1015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1016 for as_dir in $PATH
1017 do
1018   IFS=$as_save_IFS
1019   test -z "$as_dir" && as_dir=.
1020   echo "PATH: $as_dir"
1021 done
1022
1023 } >&5
1024
1025 cat >&5 <<_ACEOF
1026
1027
1028 ## ----------- ##
1029 ## Core tests. ##
1030 ## ----------- ##
1031
1032 _ACEOF
1033
1034
1035 # Keep a trace of the command line.
1036 # Strip out --no-create and --no-recursion so they do not pile up.
1037 # Also quote any args containing shell meta-characters.
1038 ac_configure_args=
1039 ac_sep=
1040 for ac_arg
1041 do
1042   case $ac_arg in
1043   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044   | --no-cr | --no-c | -n ) continue ;;
1045   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047     continue ;;
1048   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1049     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1050   esac
1051   ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1052   # Get rid of the leading space.
1053   ac_sep=" "
1054 done
1055
1056 # When interrupted or exit'd, cleanup temporary files, and complete
1057 # config.log.  We remove comments because anyway the quotes in there
1058 # would cause problems or look ugly.
1059 # WARNING: Be sure not to use single quotes in there, as some shells,
1060 # such as our DU 5.0 friend, will then `close' the trap.
1061 trap 'exit_status=$?
1062   # Save into config.log some information that might help in debugging.
1063   {
1064     echo
1065
1066     cat <<\_ASBOX
1067 ## ---------------- ##
1068 ## Cache variables. ##
1069 ## ---------------- ##
1070 _ASBOX
1071     echo
1072     # The following way of writing the cache mishandles newlines in values,
1073 {
1074   (set) 2>&1 |
1075     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1076     *ac_space=\ *)
1077       sed -n \
1078         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1079           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1080       ;;
1081     *)
1082       sed -n \
1083         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1084       ;;
1085     esac;
1086 }
1087     echo
1088
1089     cat <<\_ASBOX
1090 ## ----------------- ##
1091 ## Output variables. ##
1092 ## ----------------- ##
1093 _ASBOX
1094     echo
1095     for ac_var in $ac_subst_vars
1096     do
1097       eval ac_val=$`echo $ac_var`
1098       echo "$ac_var='"'"'$ac_val'"'"'"
1099     done | sort
1100     echo
1101
1102     if test -n "$ac_subst_files"; then
1103       cat <<\_ASBOX
1104 ## ------------- ##
1105 ## Output files. ##
1106 ## ------------- ##
1107 _ASBOX
1108       echo
1109       for ac_var in $ac_subst_files
1110       do
1111         eval ac_val=$`echo $ac_var`
1112         echo "$ac_var='"'"'$ac_val'"'"'"
1113       done | sort
1114       echo
1115     fi
1116
1117     if test -s confdefs.h; then
1118       cat <<\_ASBOX
1119 ## ----------- ##
1120 ## confdefs.h. ##
1121 ## ----------- ##
1122 _ASBOX
1123       echo
1124       sed "/^$/d" confdefs.h | sort
1125       echo
1126     fi
1127     test "$ac_signal" != 0 &&
1128       echo "$as_me: caught signal $ac_signal"
1129     echo "$as_me: exit $exit_status"
1130   } >&5
1131   rm -f core core.* *.core &&
1132   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1133     exit $exit_status
1134      ' 0
1135 for ac_signal in 1 2 13 15; do
1136   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1137 done
1138 ac_signal=0
1139
1140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1141 rm -rf conftest* confdefs.h
1142 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1143 echo >confdefs.h
1144
1145 # Predefined preprocessor variables.
1146
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_NAME "$PACKAGE_NAME"
1149 _ACEOF
1150
1151
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1154 _ACEOF
1155
1156
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1159 _ACEOF
1160
1161
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_STRING "$PACKAGE_STRING"
1164 _ACEOF
1165
1166
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1169 _ACEOF
1170
1171
1172 # Let the site file select an alternate cache file if it wants to.
1173 # Prefer explicitly selected file to automatically selected ones.
1174 if test -z "$CONFIG_SITE"; then
1175   if test "x$prefix" != xNONE; then
1176     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1177   else
1178     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1179   fi
1180 fi
1181 for ac_site_file in $CONFIG_SITE; do
1182   if test -r "$ac_site_file"; then
1183     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1184 echo "$as_me: loading site script $ac_site_file" >&6;}
1185     sed 's/^/| /' "$ac_site_file" >&5
1186     . "$ac_site_file"
1187   fi
1188 done
1189
1190 if test -r "$cache_file"; then
1191   # Some versions of bash will fail to source /dev/null (special
1192   # files actually), so we avoid doing that.
1193   if test -f "$cache_file"; then
1194     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1195 echo "$as_me: loading cache $cache_file" >&6;}
1196     case $cache_file in
1197       [\\/]* | ?:[\\/]* ) . $cache_file;;
1198       *)                      . ./$cache_file;;
1199     esac
1200   fi
1201 else
1202   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1203 echo "$as_me: creating cache $cache_file" >&6;}
1204   >$cache_file
1205 fi
1206
1207 # Check that the precious variables saved in the cache have kept the same
1208 # value.
1209 ac_cache_corrupted=false
1210 for ac_var in `(set) 2>&1 |
1211                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1212   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1213   eval ac_new_set=\$ac_env_${ac_var}_set
1214   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1215   eval ac_new_val="\$ac_env_${ac_var}_value"
1216   case $ac_old_set,$ac_new_set in
1217     set,)
1218       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1219 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1220       ac_cache_corrupted=: ;;
1221     ,set)
1222       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1223 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1224       ac_cache_corrupted=: ;;
1225     ,);;
1226     *)
1227       if test "x$ac_old_val" != "x$ac_new_val"; then
1228         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1229 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1230         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1231 echo "$as_me:   former value:  $ac_old_val" >&2;}
1232         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1233 echo "$as_me:   current value: $ac_new_val" >&2;}
1234         ac_cache_corrupted=:
1235       fi;;
1236   esac
1237   # Pass precious variables to config.status.
1238   if test "$ac_new_set" = set; then
1239     case $ac_new_val in
1240     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1242     *) ac_arg=$ac_var=$ac_new_val ;;
1243     esac
1244     case " $ac_configure_args " in
1245       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1246       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1247     esac
1248   fi
1249 done
1250 if $ac_cache_corrupted; then
1251   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1252 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1253   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1254 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1255    { (exit 1); exit 1; }; }
1256 fi
1257
1258 ac_ext=c
1259 ac_cpp='$CPP $CPPFLAGS'
1260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282           ac_config_headers="$ac_config_headers include/config.h"
1283
1284
1285 #################################################
1286 # Directory handling stuff to support both the
1287 # legacy SAMBA directories and FHS compliant
1288 # ones...
1289
1290
1291
1292 # Check whether --with-fhs or --without-fhs was given.
1293 if test "${with_fhs+set}" = set; then
1294   withval="$with_fhs"
1295   configdir="${sysconfdir}/samba"
1296     lockdir="\${VARDIR}/cache/samba"
1297     piddir="\$(VARDIR)/run/samba"
1298     logfilebase="\${VARDIR}/log/samba"
1299     privatedir="\${CONFIGDIR}/private"
1300     swatdir="\${DATADIR}/samba/swat"
1301 else
1302   configdir="\$(LIBDIR)"
1303     logfilebase="\$(VARDIR)"
1304     lockdir="\${VARDIR}/locks"
1305     piddir="\$(VARDIR)/locks"
1306     privatedir="\${prefix}/private"
1307     swatdir="\${prefix}/swat"
1308 fi;
1309
1310 #################################################
1311 # set private directory location
1312
1313 # Check whether --with-privatedir or --without-privatedir was given.
1314 if test "${with_privatedir+set}" = set; then
1315   withval="$with_privatedir"
1316    case "$withval" in
1317   yes|no)
1318   #
1319   # Just in case anybody calls it without argument
1320   #
1321     { echo "$as_me:$LINENO: WARNING: --with-privatedir called without argument - will use default" >&5
1322 echo "$as_me: WARNING: --with-privatedir called without argument - will use default" >&2;}
1323   ;;
1324   * )
1325     privatedir="$withval"
1326     ;;
1327   esac
1328 fi;
1329
1330 #################################################
1331 # set lock directory location
1332
1333 # Check whether --with-lockdir or --without-lockdir was given.
1334 if test "${with_lockdir+set}" = set; then
1335   withval="$with_lockdir"
1336    case "$withval" in
1337   yes|no)
1338   #
1339   # Just in case anybody calls it without argument
1340   #
1341     { echo "$as_me:$LINENO: WARNING: --with-lockdir called without argument - will use default" >&5
1342 echo "$as_me: WARNING: --with-lockdir called without argument - will use default" >&2;}
1343   ;;
1344   * )
1345     lockdir="$withval"
1346     ;;
1347   esac
1348 fi;
1349
1350 #################################################
1351 # set pid directory location
1352
1353 # Check whether --with-piddir or --without-piddir was given.
1354 if test "${with_piddir+set}" = set; then
1355   withval="$with_piddir"
1356    case "$withval" in
1357   yes|no)
1358   #
1359   # Just in case anybody calls it without argument
1360   #
1361     { echo "$as_me:$LINENO: WARNING: --with-piddir called without argument - will use default" >&5
1362 echo "$as_me: WARNING: --with-piddir called without argument - will use default" >&2;}
1363   ;;
1364   * )
1365     piddir="$withval"
1366     ;;
1367   esac
1368 fi;
1369
1370 #################################################
1371 # set SWAT directory location
1372
1373 # Check whether --with-swatdir or --without-swatdir was given.
1374 if test "${with_swatdir+set}" = set; then
1375   withval="$with_swatdir"
1376    case "$withval" in
1377   yes|no)
1378   #
1379   # Just in case anybody does it
1380   #
1381     { echo "$as_me:$LINENO: WARNING: --with-swatdir called without argument - will use default" >&5
1382 echo "$as_me: WARNING: --with-swatdir called without argument - will use default" >&2;}
1383   ;;
1384   * )
1385     swatdir="$withval"
1386     ;;
1387   esac
1388 fi;
1389
1390 #################################################
1391 # set configuration directory location
1392
1393 # Check whether --with-configdir or --without-configdir was given.
1394 if test "${with_configdir+set}" = set; then
1395   withval="$with_configdir"
1396    case "$withval" in
1397   yes|no)
1398   #
1399   # Just in case anybody does it
1400   #
1401     { echo "$as_me:$LINENO: WARNING: --with-configdir called without argument - will use default" >&5
1402 echo "$as_me: WARNING: --with-configdir called without argument - will use default" >&2;}
1403   ;;
1404   * )
1405     configdir="$withval"
1406     ;;
1407   esac
1408 fi;
1409
1410 #################################################
1411 # set log directory location
1412
1413 # Check whether --with-logfilebase or --without-logfilebase was given.
1414 if test "${with_logfilebase+set}" = set; then
1415   withval="$with_logfilebase"
1416    case "$withval" in
1417   yes|no)
1418   #
1419   # Just in case anybody does it
1420   #
1421     { echo "$as_me:$LINENO: WARNING: --with-logfilebase called without argument - will use default" >&5
1422 echo "$as_me: WARNING: --with-logfilebase called without argument - will use default" >&2;}
1423   ;;
1424   * )
1425     logfilebase="$withval"
1426     ;;
1427   esac
1428 fi;
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459 # compile with optimization and without debugging by default
1460 CFLAGS="-O ${CFLAGS}"
1461
1462 # Check whether --enable-debug or --disable-debug was given.
1463 if test "${enable_debug+set}" = set; then
1464   enableval="$enable_debug"
1465   if eval "test x$enable_debug = xyes"; then
1466         CFLAGS="${CFLAGS} -g"
1467     fi
1468 fi;
1469
1470 # Check whether --enable-developer or --disable-developer was given.
1471 if test "${enable_developer+set}" = set; then
1472   enableval="$enable_developer"
1473   if eval "test x$enable_developer = xyes"; then
1474         CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1475     fi
1476 fi;
1477
1478 # Check whether --enable-krb5developer or --disable-krb5developer was given.
1479 if test "${enable_krb5developer+set}" = set; then
1480   enableval="$enable_krb5developer"
1481   if eval "test x$enable_krb5developer = xyes"; then
1482         CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1483     fi
1484 fi;
1485
1486 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1487 if test "${enable_dmalloc+set}" = set; then
1488   enableval="$enable_dmalloc"
1489
1490 fi;
1491
1492 if test "x$enable_dmalloc" = xyes
1493 then
1494
1495 cat >>confdefs.h <<\_ACEOF
1496 #define ENABLE_DMALLOC 1
1497 _ACEOF
1498
1499
1500 cat >>confdefs.h <<\_ACEOF
1501 #define DMALLOC_FUNC_CHECK 1
1502 _ACEOF
1503
1504         LIBS="$LIBS -ldmalloc"
1505 fi
1506
1507 ac_ext=c
1508 ac_cpp='$CPP $CPPFLAGS'
1509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1512 if test -n "$ac_tool_prefix"; then
1513   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1514 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1515 echo "$as_me:$LINENO: checking for $ac_word" >&5
1516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517 if test "${ac_cv_prog_CC+set}" = set; then
1518   echo $ECHO_N "(cached) $ECHO_C" >&6
1519 else
1520   if test -n "$CC"; then
1521   ac_cv_prog_CC="$CC" # Let the user override the test.
1522 else
1523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524 for as_dir in $PATH
1525 do
1526   IFS=$as_save_IFS
1527   test -z "$as_dir" && as_dir=.
1528   for ac_exec_ext in '' $ac_executable_extensions; do
1529   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1530     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1532     break 2
1533   fi
1534 done
1535 done
1536
1537 fi
1538 fi
1539 CC=$ac_cv_prog_CC
1540 if test -n "$CC"; then
1541   echo "$as_me:$LINENO: result: $CC" >&5
1542 echo "${ECHO_T}$CC" >&6
1543 else
1544   echo "$as_me:$LINENO: result: no" >&5
1545 echo "${ECHO_T}no" >&6
1546 fi
1547
1548 fi
1549 if test -z "$ac_cv_prog_CC"; then
1550   ac_ct_CC=$CC
1551   # Extract the first word of "gcc", so it can be a program name with args.
1552 set dummy gcc; 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_ac_ct_CC+set}" = set; then
1556   echo $ECHO_N "(cached) $ECHO_C" >&6
1557 else
1558   if test -n "$ac_ct_CC"; then
1559   ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="gcc"
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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1578 if test -n "$ac_ct_CC"; then
1579   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1580 echo "${ECHO_T}$ac_ct_CC" >&6
1581 else
1582   echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1584 fi
1585
1586   CC=$ac_ct_CC
1587 else
1588   CC="$ac_cv_prog_CC"
1589 fi
1590
1591 if test -z "$CC"; then
1592   if test -n "$ac_tool_prefix"; then
1593   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1594 set dummy ${ac_tool_prefix}cc; ac_word=$2
1595 echo "$as_me:$LINENO: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_CC+set}" = set; then
1598   echo $ECHO_N "(cached) $ECHO_C" >&6
1599 else
1600   if test -n "$CC"; then
1601   ac_cv_prog_CC="$CC" # Let the user override the test.
1602 else
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604 for as_dir in $PATH
1605 do
1606   IFS=$as_save_IFS
1607   test -z "$as_dir" && as_dir=.
1608   for ac_exec_ext in '' $ac_executable_extensions; do
1609   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1610     ac_cv_prog_CC="${ac_tool_prefix}cc"
1611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612     break 2
1613   fi
1614 done
1615 done
1616
1617 fi
1618 fi
1619 CC=$ac_cv_prog_CC
1620 if test -n "$CC"; then
1621   echo "$as_me:$LINENO: result: $CC" >&5
1622 echo "${ECHO_T}$CC" >&6
1623 else
1624   echo "$as_me:$LINENO: result: no" >&5
1625 echo "${ECHO_T}no" >&6
1626 fi
1627
1628 fi
1629 if test -z "$ac_cv_prog_CC"; then
1630   ac_ct_CC=$CC
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_ac_ct_CC+set}" = set; then
1636   echo $ECHO_N "(cached) $ECHO_C" >&6
1637 else
1638   if test -n "$ac_ct_CC"; then
1639   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1640 else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 for as_dir in $PATH
1643 do
1644   IFS=$as_save_IFS
1645   test -z "$as_dir" && as_dir=.
1646   for ac_exec_ext in '' $ac_executable_extensions; do
1647   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648     ac_cv_prog_ac_ct_CC="cc"
1649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650     break 2
1651   fi
1652 done
1653 done
1654
1655 fi
1656 fi
1657 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1658 if test -n "$ac_ct_CC"; then
1659   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1660 echo "${ECHO_T}$ac_ct_CC" >&6
1661 else
1662   echo "$as_me:$LINENO: result: no" >&5
1663 echo "${ECHO_T}no" >&6
1664 fi
1665
1666   CC=$ac_ct_CC
1667 else
1668   CC="$ac_cv_prog_CC"
1669 fi
1670
1671 fi
1672 if test -z "$CC"; then
1673   # Extract the first word of "cc", so it can be a program name with args.
1674 set dummy cc; ac_word=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_CC+set}" = set; then
1678   echo $ECHO_N "(cached) $ECHO_C" >&6
1679 else
1680   if test -n "$CC"; then
1681   ac_cv_prog_CC="$CC" # Let the user override the test.
1682 else
1683   ac_prog_rejected=no
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 for as_dir in $PATH
1686 do
1687   IFS=$as_save_IFS
1688   test -z "$as_dir" && as_dir=.
1689   for ac_exec_ext in '' $ac_executable_extensions; do
1690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1692        ac_prog_rejected=yes
1693        continue
1694      fi
1695     ac_cv_prog_CC="cc"
1696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697     break 2
1698   fi
1699 done
1700 done
1701
1702 if test $ac_prog_rejected = yes; then
1703   # We found a bogon in the path, so make sure we never use it.
1704   set dummy $ac_cv_prog_CC
1705   shift
1706   if test $# != 0; then
1707     # We chose a different compiler from the bogus one.
1708     # However, it has the same basename, so the bogon will be chosen
1709     # first if we set CC to just the basename; use the full file name.
1710     shift
1711     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1712   fi
1713 fi
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 fi
1726 if test -z "$CC"; then
1727   if test -n "$ac_tool_prefix"; then
1728   for ac_prog in cl
1729   do
1730     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_CC+set}" = set; then
1735   echo $ECHO_N "(cached) $ECHO_C" >&6
1736 else
1737   if test -n "$CC"; then
1738   ac_cv_prog_CC="$CC" # Let the user override the test.
1739 else
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741 for as_dir in $PATH
1742 do
1743   IFS=$as_save_IFS
1744   test -z "$as_dir" && as_dir=.
1745   for ac_exec_ext in '' $ac_executable_extensions; do
1746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749     break 2
1750   fi
1751 done
1752 done
1753
1754 fi
1755 fi
1756 CC=$ac_cv_prog_CC
1757 if test -n "$CC"; then
1758   echo "$as_me:$LINENO: result: $CC" >&5
1759 echo "${ECHO_T}$CC" >&6
1760 else
1761   echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1763 fi
1764
1765     test -n "$CC" && break
1766   done
1767 fi
1768 if test -z "$CC"; then
1769   ac_ct_CC=$CC
1770   for ac_prog in cl
1771 do
1772   # Extract the first word of "$ac_prog", so it can be a program name with args.
1773 set dummy $ac_prog; ac_word=$2
1774 echo "$as_me:$LINENO: checking for $ac_word" >&5
1775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1777   echo $ECHO_N "(cached) $ECHO_C" >&6
1778 else
1779   if test -n "$ac_ct_CC"; then
1780   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1781 else
1782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783 for as_dir in $PATH
1784 do
1785   IFS=$as_save_IFS
1786   test -z "$as_dir" && as_dir=.
1787   for ac_exec_ext in '' $ac_executable_extensions; do
1788   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789     ac_cv_prog_ac_ct_CC="$ac_prog"
1790     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1791     break 2
1792   fi
1793 done
1794 done
1795
1796 fi
1797 fi
1798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1799 if test -n "$ac_ct_CC"; then
1800   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1801 echo "${ECHO_T}$ac_ct_CC" >&6
1802 else
1803   echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1805 fi
1806
1807   test -n "$ac_ct_CC" && break
1808 done
1809
1810   CC=$ac_ct_CC
1811 fi
1812
1813 fi
1814
1815
1816 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1817 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1818    { (exit 1); exit 1; }; }
1819
1820 # Provide some information about the compiler.
1821 echo "$as_me:$LINENO:" \
1822      "checking for C compiler version" >&5
1823 ac_compiler=`set X $ac_compile; echo $2`
1824 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1825   (eval $ac_compiler --version </dev/null >&5) 2>&5
1826   ac_status=$?
1827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828   (exit $ac_status); }
1829 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1830   (eval $ac_compiler -v </dev/null >&5) 2>&5
1831   ac_status=$?
1832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833   (exit $ac_status); }
1834 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1835   (eval $ac_compiler -V </dev/null >&5) 2>&5
1836   ac_status=$?
1837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838   (exit $ac_status); }
1839
1840 cat >conftest.$ac_ext <<_ACEOF
1841 #line $LINENO "configure"
1842 #include "confdefs.h"
1843
1844 int
1845 main ()
1846 {
1847
1848   ;
1849   return 0;
1850 }
1851 _ACEOF
1852 ac_clean_files_save=$ac_clean_files
1853 ac_clean_files="$ac_clean_files a.out a.exe"
1854 # Try to create an executable without -o first, disregard a.out.
1855 # It will help us diagnose broken compilers, and finding out an intuition
1856 # of exeext.
1857 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1858 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1859 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1860 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1861   (eval $ac_link_default) 2>&5
1862   ac_status=$?
1863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1864   (exit $ac_status); }; then
1865   # Find the output, starting from the most likely.  This scheme is
1866 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1867 # resort.
1868
1869 # Be careful to initialize this variable, since it used to be cached.
1870 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1871 ac_cv_exeext=
1872 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1873   test -f "$ac_file" || continue
1874   case $ac_file in
1875     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1876     a.out ) # We found the default executable, but exeext='' is most
1877             # certainly right.
1878             break;;
1879     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1880           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1881           export ac_cv_exeext
1882           break;;
1883     * ) break;;
1884   esac
1885 done
1886 else
1887   echo "$as_me: failed program was:" >&5
1888 cat conftest.$ac_ext >&5
1889 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1890 check \`config.log' for details." >&5
1891 echo "$as_me: error: C compiler cannot create executables
1892 check \`config.log' for details." >&2;}
1893    { (exit 77); exit 77; }; }
1894 fi
1895
1896 ac_exeext=$ac_cv_exeext
1897 echo "$as_me:$LINENO: result: $ac_file" >&5
1898 echo "${ECHO_T}$ac_file" >&6
1899
1900 # Check the compiler produces executables we can run.  If not, either
1901 # the compiler is broken, or we cross compile.
1902 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1903 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1904 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1905 # If not cross compiling, check that we can run a simple program.
1906 if test "$cross_compiling" != yes; then
1907   if { ac_try='./$ac_file'
1908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1909   (eval $ac_try) 2>&5
1910   ac_status=$?
1911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912   (exit $ac_status); }; }; then
1913     cross_compiling=no
1914   else
1915     if test "$cross_compiling" = maybe; then
1916         cross_compiling=yes
1917     else
1918         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1919 If you meant to cross compile, use \`--host'." >&5
1920 echo "$as_me: error: cannot run C compiled programs.
1921 If you meant to cross compile, use \`--host'." >&2;}
1922    { (exit 1); exit 1; }; }
1923     fi
1924   fi
1925 fi
1926 echo "$as_me:$LINENO: result: yes" >&5
1927 echo "${ECHO_T}yes" >&6
1928
1929 rm -f a.out a.exe conftest$ac_cv_exeext
1930 ac_clean_files=$ac_clean_files_save
1931 # Check the compiler produces executables we can run.  If not, either
1932 # the compiler is broken, or we cross compile.
1933 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1934 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1935 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1936 echo "${ECHO_T}$cross_compiling" >&6
1937
1938 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1939 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1941   (eval $ac_link) 2>&5
1942   ac_status=$?
1943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944   (exit $ac_status); }; then
1945   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1946 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1947 # work properly (i.e., refer to `conftest.exe'), while it won't with
1948 # `rm'.
1949 for ac_file in conftest.exe conftest conftest.*; do
1950   test -f "$ac_file" || continue
1951   case $ac_file in
1952     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1953     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1954           export ac_cv_exeext
1955           break;;
1956     * ) break;;
1957   esac
1958 done
1959 else
1960   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1961 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1962    { (exit 1); exit 1; }; }
1963 fi
1964
1965 rm -f conftest$ac_cv_exeext
1966 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1967 echo "${ECHO_T}$ac_cv_exeext" >&6
1968
1969 rm -f conftest.$ac_ext
1970 EXEEXT=$ac_cv_exeext
1971 ac_exeext=$EXEEXT
1972 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1973 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1974 if test "${ac_cv_objext+set}" = set; then
1975   echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977   cat >conftest.$ac_ext <<_ACEOF
1978 #line $LINENO "configure"
1979 #include "confdefs.h"
1980
1981 int
1982 main ()
1983 {
1984
1985   ;
1986   return 0;
1987 }
1988 _ACEOF
1989 rm -f conftest.o conftest.obj
1990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1991   (eval $ac_compile) 2>&5
1992   ac_status=$?
1993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994   (exit $ac_status); }; then
1995   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1996   case $ac_file in
1997     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1998     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1999        break;;
2000   esac
2001 done
2002 else
2003   echo "$as_me: failed program was:" >&5
2004 cat conftest.$ac_ext >&5
2005 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2006 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2007    { (exit 1); exit 1; }; }
2008 fi
2009
2010 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2011 fi
2012 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2013 echo "${ECHO_T}$ac_cv_objext" >&6
2014 OBJEXT=$ac_cv_objext
2015 ac_objext=$OBJEXT
2016 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2017 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2018 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2019   echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021   cat >conftest.$ac_ext <<_ACEOF
2022 #line $LINENO "configure"
2023 #include "confdefs.h"
2024
2025 int
2026 main ()
2027 {
2028 #ifndef __GNUC__
2029        choke me
2030 #endif
2031
2032   ;
2033   return 0;
2034 }
2035 _ACEOF
2036 rm -f conftest.$ac_objext
2037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2038   (eval $ac_compile) 2>&5
2039   ac_status=$?
2040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041   (exit $ac_status); } &&
2042          { ac_try='test -s conftest.$ac_objext'
2043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2044   (eval $ac_try) 2>&5
2045   ac_status=$?
2046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047   (exit $ac_status); }; }; then
2048   ac_compiler_gnu=yes
2049 else
2050   echo "$as_me: failed program was:" >&5
2051 cat conftest.$ac_ext >&5
2052 ac_compiler_gnu=no
2053 fi
2054 rm -f conftest.$ac_objext conftest.$ac_ext
2055 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2056
2057 fi
2058 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2059 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2060 GCC=`test $ac_compiler_gnu = yes && echo yes`
2061 ac_test_CFLAGS=${CFLAGS+set}
2062 ac_save_CFLAGS=$CFLAGS
2063 CFLAGS="-g"
2064 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2065 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2066 if test "${ac_cv_prog_cc_g+set}" = set; then
2067   echo $ECHO_N "(cached) $ECHO_C" >&6
2068 else
2069   cat >conftest.$ac_ext <<_ACEOF
2070 #line $LINENO "configure"
2071 #include "confdefs.h"
2072
2073 int
2074 main ()
2075 {
2076
2077   ;
2078   return 0;
2079 }
2080 _ACEOF
2081 rm -f conftest.$ac_objext
2082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2083   (eval $ac_compile) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); } &&
2087          { ac_try='test -s conftest.$ac_objext'
2088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089   (eval $ac_try) 2>&5
2090   ac_status=$?
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); }; }; then
2093   ac_cv_prog_cc_g=yes
2094 else
2095   echo "$as_me: failed program was:" >&5
2096 cat conftest.$ac_ext >&5
2097 ac_cv_prog_cc_g=no
2098 fi
2099 rm -f conftest.$ac_objext conftest.$ac_ext
2100 fi
2101 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2102 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2103 if test "$ac_test_CFLAGS" = set; then
2104   CFLAGS=$ac_save_CFLAGS
2105 elif test $ac_cv_prog_cc_g = yes; then
2106   if test "$GCC" = yes; then
2107     CFLAGS="-g -O2"
2108   else
2109     CFLAGS="-g"
2110   fi
2111 else
2112   if test "$GCC" = yes; then
2113     CFLAGS="-O2"
2114   else
2115     CFLAGS=
2116   fi
2117 fi
2118 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2119 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2120 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   ac_cv_prog_cc_stdc=no
2124 ac_save_CC=$CC
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 #include "confdefs.h"
2128 #include <stdarg.h>
2129 #include <stdio.h>
2130 #include <sys/types.h>
2131 #include <sys/stat.h>
2132 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2133 struct buf { int x; };
2134 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2135 static char *e (p, i)
2136      char **p;
2137      int i;
2138 {
2139   return p[i];
2140 }
2141 static char *f (char * (*g) (char **, int), char **p, ...)
2142 {
2143   char *s;
2144   va_list v;
2145   va_start (v,p);
2146   s = g (p, va_arg (v,int));
2147   va_end (v);
2148   return s;
2149 }
2150 int test (int i, double x);
2151 struct s1 {int (*f) (int a);};
2152 struct s2 {int (*f) (double a);};
2153 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2154 int argc;
2155 char **argv;
2156 int
2157 main ()
2158 {
2159 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2160   ;
2161   return 0;
2162 }
2163 _ACEOF
2164 # Don't try gcc -ansi; that turns off useful extensions and
2165 # breaks some systems' header files.
2166 # AIX                   -qlanglvl=ansi
2167 # Ultrix and OSF/1      -std1
2168 # HP-UX 10.20 and later -Ae
2169 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2170 # SVR4                  -Xc -D__EXTENSIONS__
2171 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2172 do
2173   CC="$ac_save_CC $ac_arg"
2174   rm -f conftest.$ac_objext
2175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2176   (eval $ac_compile) 2>&5
2177   ac_status=$?
2178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179   (exit $ac_status); } &&
2180          { ac_try='test -s conftest.$ac_objext'
2181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182   (eval $ac_try) 2>&5
2183   ac_status=$?
2184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185   (exit $ac_status); }; }; then
2186   ac_cv_prog_cc_stdc=$ac_arg
2187 break
2188 else
2189   echo "$as_me: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2191 fi
2192 rm -f conftest.$ac_objext
2193 done
2194 rm -f conftest.$ac_ext conftest.$ac_objext
2195 CC=$ac_save_CC
2196
2197 fi
2198
2199 case "x$ac_cv_prog_cc_stdc" in
2200   x|xno)
2201     echo "$as_me:$LINENO: result: none needed" >&5
2202 echo "${ECHO_T}none needed" >&6 ;;
2203   *)
2204     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2205 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2206     CC="$CC $ac_cv_prog_cc_stdc" ;;
2207 esac
2208
2209 # Some people use a C++ compiler to compile C.  Since we use `exit',
2210 # in C++ we need to declare it.  In case someone uses the same compiler
2211 # for both compiling C and C++ we need to have the C++ compiler decide
2212 # the declaration of exit, since it's the most demanding environment.
2213 cat >conftest.$ac_ext <<_ACEOF
2214 #ifndef __cplusplus
2215   choke me
2216 #endif
2217 _ACEOF
2218 rm -f conftest.$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220   (eval $ac_compile) 2>&5
2221   ac_status=$?
2222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223   (exit $ac_status); } &&
2224          { ac_try='test -s conftest.$ac_objext'
2225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226   (eval $ac_try) 2>&5
2227   ac_status=$?
2228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229   (exit $ac_status); }; }; then
2230   for ac_declaration in \
2231    ''\
2232    '#include <stdlib.h>' \
2233    'extern "C" void std::exit (int) throw (); using std::exit;' \
2234    'extern "C" void std::exit (int); using std::exit;' \
2235    'extern "C" void exit (int) throw ();' \
2236    'extern "C" void exit (int);' \
2237    'void exit (int);'
2238 do
2239   cat >conftest.$ac_ext <<_ACEOF
2240 #line $LINENO "configure"
2241 #include "confdefs.h"
2242 #include <stdlib.h>
2243 $ac_declaration
2244 int
2245 main ()
2246 {
2247 exit (42);
2248   ;
2249   return 0;
2250 }
2251 _ACEOF
2252 rm -f conftest.$ac_objext
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254   (eval $ac_compile) 2>&5
2255   ac_status=$?
2256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257   (exit $ac_status); } &&
2258          { ac_try='test -s conftest.$ac_objext'
2259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260   (eval $ac_try) 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); }; }; then
2264   :
2265 else
2266   echo "$as_me: failed program was:" >&5
2267 cat conftest.$ac_ext >&5
2268 continue
2269 fi
2270 rm -f conftest.$ac_objext conftest.$ac_ext
2271   cat >conftest.$ac_ext <<_ACEOF
2272 #line $LINENO "configure"
2273 #include "confdefs.h"
2274 $ac_declaration
2275 int
2276 main ()
2277 {
2278 exit (42);
2279   ;
2280   return 0;
2281 }
2282 _ACEOF
2283 rm -f conftest.$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285   (eval $ac_compile) 2>&5
2286   ac_status=$?
2287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288   (exit $ac_status); } &&
2289          { ac_try='test -s conftest.$ac_objext'
2290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291   (eval $ac_try) 2>&5
2292   ac_status=$?
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); }; }; then
2295   break
2296 else
2297   echo "$as_me: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2299 fi
2300 rm -f conftest.$ac_objext conftest.$ac_ext
2301 done
2302 rm -f conftest*
2303 if test -n "$ac_declaration"; then
2304   echo '#ifdef __cplusplus' >>confdefs.h
2305   echo $ac_declaration      >>confdefs.h
2306   echo '#endif'             >>confdefs.h
2307 fi
2308
2309 else
2310   echo "$as_me: failed program was:" >&5
2311 cat conftest.$ac_ext >&5
2312 fi
2313 rm -f conftest.$ac_objext conftest.$ac_ext
2314 ac_ext=c
2315 ac_cpp='$CPP $CPPFLAGS'
2316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2319
2320 ac_aux_dir=
2321 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2322   if test -f $ac_dir/install-sh; then
2323     ac_aux_dir=$ac_dir
2324     ac_install_sh="$ac_aux_dir/install-sh -c"
2325     break
2326   elif test -f $ac_dir/install.sh; then
2327     ac_aux_dir=$ac_dir
2328     ac_install_sh="$ac_aux_dir/install.sh -c"
2329     break
2330   elif test -f $ac_dir/shtool; then
2331     ac_aux_dir=$ac_dir
2332     ac_install_sh="$ac_aux_dir/shtool install -c"
2333     break
2334   fi
2335 done
2336 if test -z "$ac_aux_dir"; then
2337   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2338 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2339    { (exit 1); exit 1; }; }
2340 fi
2341 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2342 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2343 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2344
2345 # Find a good install program.  We prefer a C program (faster),
2346 # so one script is as good as another.  But avoid the broken or
2347 # incompatible versions:
2348 # SysV /etc/install, /usr/sbin/install
2349 # SunOS /usr/etc/install
2350 # IRIX /sbin/install
2351 # AIX /bin/install
2352 # AmigaOS /C/install, which installs bootblocks on floppy discs
2353 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2354 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2355 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2356 # ./install, which can be erroneously created by make from ./install.sh.
2357 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2358 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2359 if test -z "$INSTALL"; then
2360 if test "${ac_cv_path_install+set}" = set; then
2361   echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366   IFS=$as_save_IFS
2367   test -z "$as_dir" && as_dir=.
2368   # Account for people who put trailing slashes in PATH elements.
2369 case $as_dir/ in
2370   ./ | .// | /cC/* | \
2371   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2372   /usr/ucb/* ) ;;
2373   *)
2374     # OSF1 and SCO ODT 3.0 have their own names for install.
2375     # Don't use installbsd from OSF since it installs stuff as root
2376     # by default.
2377     for ac_prog in ginstall scoinst install; do
2378       for ac_exec_ext in '' $ac_executable_extensions; do
2379         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2380           if test $ac_prog = install &&
2381             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2382             # AIX install.  It has an incompatible calling convention.
2383             :
2384           elif test $ac_prog = install &&
2385             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2386             # program-specific install script used by HP pwplus--don't use.
2387             :
2388           else
2389             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2390             break 3
2391           fi
2392         fi
2393       done
2394     done
2395     ;;
2396 esac
2397 done
2398
2399
2400 fi
2401   if test "${ac_cv_path_install+set}" = set; then
2402     INSTALL=$ac_cv_path_install
2403   else
2404     # As a last resort, use the slow shell script.  We don't cache a
2405     # path for INSTALL within a source directory, because that will
2406     # break other packages using the cache if that directory is
2407     # removed, or if the path is relative.
2408     INSTALL=$ac_install_sh
2409   fi
2410 fi
2411 echo "$as_me:$LINENO: result: $INSTALL" >&5
2412 echo "${ECHO_T}$INSTALL" >&6
2413
2414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2415 # It thinks the first close brace ends the variable substitution.
2416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2417
2418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2419
2420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2421
2422 for ac_prog in gawk mawk nawk awk
2423 do
2424   # Extract the first word of "$ac_prog", so it can be a program name with args.
2425 set dummy $ac_prog; ac_word=$2
2426 echo "$as_me:$LINENO: checking for $ac_word" >&5
2427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2428 if test "${ac_cv_prog_AWK+set}" = set; then
2429   echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431   if test -n "$AWK"; then
2432   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2433 else
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435 for as_dir in $PATH
2436 do
2437   IFS=$as_save_IFS
2438   test -z "$as_dir" && as_dir=.
2439   for ac_exec_ext in '' $ac_executable_extensions; do
2440   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2441     ac_cv_prog_AWK="$ac_prog"
2442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2443     break 2
2444   fi
2445 done
2446 done
2447
2448 fi
2449 fi
2450 AWK=$ac_cv_prog_AWK
2451 if test -n "$AWK"; then
2452   echo "$as_me:$LINENO: result: $AWK" >&5
2453 echo "${ECHO_T}$AWK" >&6
2454 else
2455   echo "$as_me:$LINENO: result: no" >&5
2456 echo "${ECHO_T}no" >&6
2457 fi
2458
2459   test -n "$AWK" && break
2460 done
2461
2462
2463 LD=ld
2464 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2465 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2466 if test "${ac_cv_prog_gnu_ld+set}" = set; then
2467   echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2470 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2471   ac_cv_prog_gnu_ld=yes
2472 else
2473   ac_cv_prog_gnu_ld=no
2474 fi
2475 fi
2476 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
2477 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
2478
2479
2480
2481 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2482 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2483 if test "${ac_cv_search_strerror+set}" = set; then
2484   echo $ECHO_N "(cached) $ECHO_C" >&6
2485 else
2486   ac_func_search_save_LIBS=$LIBS
2487 ac_cv_search_strerror=no
2488 cat >conftest.$ac_ext <<_ACEOF
2489 #line $LINENO "configure"
2490 #include "confdefs.h"
2491
2492 /* Override any gcc2 internal prototype to avoid an error.  */
2493 #ifdef __cplusplus
2494 extern "C"
2495 #endif
2496 /* We use char because int might match the return type of a gcc2
2497    builtin and then its argument prototype would still apply.  */
2498 char strerror ();
2499 int
2500 main ()
2501 {
2502 strerror ();
2503   ;
2504   return 0;
2505 }
2506 _ACEOF
2507 rm -f conftest.$ac_objext conftest$ac_exeext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2509   (eval $ac_link) 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); } &&
2513          { ac_try='test -s conftest$ac_exeext'
2514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515   (eval $ac_try) 2>&5
2516   ac_status=$?
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); }; }; then
2519   ac_cv_search_strerror="none required"
2520 else
2521   echo "$as_me: failed program was:" >&5
2522 cat conftest.$ac_ext >&5
2523 fi
2524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2525 if test "$ac_cv_search_strerror" = no; then
2526   for ac_lib in cposix; do
2527     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2528     cat >conftest.$ac_ext <<_ACEOF
2529 #line $LINENO "configure"
2530 #include "confdefs.h"
2531
2532 /* Override any gcc2 internal prototype to avoid an error.  */
2533 #ifdef __cplusplus
2534 extern "C"
2535 #endif
2536 /* We use char because int might match the return type of a gcc2
2537    builtin and then its argument prototype would still apply.  */
2538 char strerror ();
2539 int
2540 main ()
2541 {
2542 strerror ();
2543   ;
2544   return 0;
2545 }
2546 _ACEOF
2547 rm -f conftest.$ac_objext conftest$ac_exeext
2548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2549   (eval $ac_link) 2>&5
2550   ac_status=$?
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); } &&
2553          { ac_try='test -s conftest$ac_exeext'
2554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555   (eval $ac_try) 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }; }; then
2559   ac_cv_search_strerror="-l$ac_lib"
2560 break
2561 else
2562   echo "$as_me: failed program was:" >&5
2563 cat conftest.$ac_ext >&5
2564 fi
2565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2566   done
2567 fi
2568 LIBS=$ac_func_search_save_LIBS
2569 fi
2570 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2571 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2572 if test "$ac_cv_search_strerror" != no; then
2573   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2574
2575 fi
2576
2577
2578 if test "x$CC" != xcc; then
2579   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2580 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2581 else
2582   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2583 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2584 fi
2585 set dummy $CC; ac_cc=`echo $2 |
2586                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2587 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2588   echo $ECHO_N "(cached) $ECHO_C" >&6
2589 else
2590   cat >conftest.$ac_ext <<_ACEOF
2591 #line $LINENO "configure"
2592 #include "confdefs.h"
2593
2594 int
2595 main ()
2596 {
2597
2598   ;
2599   return 0;
2600 }
2601 _ACEOF
2602 # Make sure it works both with $CC and with simple cc.
2603 # We do the test twice because some compilers refuse to overwrite an
2604 # existing .o file with -o, though they will create one.
2605 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2606 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607   (eval $ac_try) 2>&5
2608   ac_status=$?
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); } &&
2611    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612   (eval $ac_try) 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); };
2616 then
2617   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2618   if test "x$CC" != xcc; then
2619     # Test first that cc exists at all.
2620     if { ac_try='cc -c conftest.$ac_ext >&5'
2621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622   (eval $ac_try) 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; }; then
2626       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2627       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628   (eval $ac_try) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); } &&
2632          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633   (eval $ac_try) 2>&5
2634   ac_status=$?
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); };
2637       then
2638         # cc works too.
2639         :
2640       else
2641         # cc exists but doesn't like -o.
2642         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2643       fi
2644     fi
2645   fi
2646 else
2647   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2648 fi
2649 rm -f conftest*
2650
2651 fi
2652 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2653   echo "$as_me:$LINENO: result: yes" >&5
2654 echo "${ECHO_T}yes" >&6
2655 else
2656   echo "$as_me:$LINENO: result: no" >&5
2657 echo "${ECHO_T}no" >&6
2658
2659 cat >>confdefs.h <<\_ACEOF
2660 #define NO_MINUS_C_MINUS_O 1
2661 _ACEOF
2662
2663 fi
2664
2665 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2666       BROKEN_CC=
2667 else
2668       BROKEN_CC=#
2669 fi
2670
2671
2672 echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
2673 echo $ECHO_N "checking that the C compiler understands volatile... $ECHO_C" >&6
2674 if test "${samba_cv_volatile+set}" = set; then
2675   echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677
2678     cat >conftest.$ac_ext <<_ACEOF
2679 #line $LINENO "configure"
2680 #include "confdefs.h"
2681 #include <sys/types.h>
2682 int
2683 main ()
2684 {
2685 volatile int i = 0
2686   ;
2687   return 0;
2688 }
2689 _ACEOF
2690 rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692   (eval $ac_compile) 2>&5
2693   ac_status=$?
2694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695   (exit $ac_status); } &&
2696          { ac_try='test -s conftest.$ac_objext'
2697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698   (eval $ac_try) 2>&5
2699   ac_status=$?
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); }; }; then
2702   samba_cv_volatile=yes
2703 else
2704   echo "$as_me: failed program was:" >&5
2705 cat conftest.$ac_ext >&5
2706 samba_cv_volatile=no
2707 fi
2708 rm -f conftest.$ac_objext conftest.$ac_ext
2709 fi
2710 echo "$as_me:$LINENO: result: $samba_cv_volatile" >&5
2711 echo "${ECHO_T}$samba_cv_volatile" >&6
2712 if test x"$samba_cv_volatile" = x"yes"; then
2713
2714 cat >>confdefs.h <<\_ACEOF
2715 #define HAVE_VOLATILE 1
2716 _ACEOF
2717
2718 fi
2719
2720
2721 # Make sure we can run config.sub.
2722 $ac_config_sub sun4 >/dev/null 2>&1 ||
2723   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2724 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2725    { (exit 1); exit 1; }; }
2726
2727 echo "$as_me:$LINENO: checking build system type" >&5
2728 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2729 if test "${ac_cv_build+set}" = set; then
2730   echo $ECHO_N "(cached) $ECHO_C" >&6
2731 else
2732   ac_cv_build_alias=$build_alias
2733 test -z "$ac_cv_build_alias" &&
2734   ac_cv_build_alias=`$ac_config_guess`
2735 test -z "$ac_cv_build_alias" &&
2736   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2737 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2738    { (exit 1); exit 1; }; }
2739 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2740   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2741 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2742    { (exit 1); exit 1; }; }
2743
2744 fi
2745 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2746 echo "${ECHO_T}$ac_cv_build" >&6
2747 build=$ac_cv_build
2748 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2749 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2750 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2751
2752
2753 echo "$as_me:$LINENO: checking host system type" >&5
2754 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2755 if test "${ac_cv_host+set}" = set; then
2756   echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758   ac_cv_host_alias=$host_alias
2759 test -z "$ac_cv_host_alias" &&
2760   ac_cv_host_alias=$ac_cv_build_alias
2761 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2762   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2763 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2764    { (exit 1); exit 1; }; }
2765
2766 fi
2767 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2768 echo "${ECHO_T}$ac_cv_host" >&6
2769 host=$ac_cv_host
2770 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2771 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2772 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2773
2774
2775 echo "$as_me:$LINENO: checking target system type" >&5
2776 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2777 if test "${ac_cv_target+set}" = set; then
2778   echo $ECHO_N "(cached) $ECHO_C" >&6
2779 else
2780   ac_cv_target_alias=$target_alias
2781 test "x$ac_cv_target_alias" = "x" &&
2782   ac_cv_target_alias=$ac_cv_host_alias
2783 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2784   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2785 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2786    { (exit 1); exit 1; }; }
2787
2788 fi
2789 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2790 echo "${ECHO_T}$ac_cv_target" >&6
2791 target=$ac_cv_target
2792 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2793 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2794 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2795
2796
2797 # The aliases save the names the user supplied, while $host etc.
2798 # will get canonicalized.
2799 test -n "$target_alias" &&
2800   test "$program_prefix$program_suffix$program_transform_name" = \
2801     NONENONEs,x,x, &&
2802   program_prefix=${target_alias}-
2803
2804   case "$host_os" in
2805         *irix6*) cat >> confdefs.h <<\EOF
2806 #include <standards.h>
2807 EOF
2808
2809         ;;
2810 esac
2811
2812
2813
2814     echo "$as_me:$LINENO: checking config.cache system type" >&5
2815 echo $ECHO_N "checking config.cache system type... $ECHO_C" >&6
2816     if { test x"${ac_cv_host_system_type+set}" = x"set" &&
2817          test x"$ac_cv_host_system_type" != x"$host"; } ||
2818        { test x"${ac_cv_build_system_type+set}" = x"set" &&
2819          test x"$ac_cv_build_system_type" != x"$build"; } ||
2820        { test x"${ac_cv_target_system_type+set}" = x"set" &&
2821          test x"$ac_cv_target_system_type" != x"$target"; }; then
2822         echo "$as_me:$LINENO: result: different" >&5
2823 echo "${ECHO_T}different" >&6
2824         { { echo "$as_me:$LINENO: error: \"you must remove config.cache and restart configure\"" >&5
2825 echo "$as_me: error: \"you must remove config.cache and restart configure\"" >&2;}
2826    { (exit 1); exit 1; }; }
2827     else
2828         echo "$as_me:$LINENO: result: same" >&5
2829 echo "${ECHO_T}same" >&6
2830     fi
2831     ac_cv_host_system_type="$host"
2832     ac_cv_build_system_type="$build"
2833     ac_cv_target_system_type="$target"
2834
2835
2836 DYNEXP=
2837
2838 #
2839 # Config CPPFLAG settings for strange OS's that must be set
2840 # before other tests.
2841 #
2842 case "$host_os" in
2843 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
2844     *hpux*)
2845
2846       echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Ae" >&5
2847 echo $ECHO_N "checking whether ${CC-cc} accepts -Ae... $ECHO_C" >&6
2848 if test "${ac_cv_prog_cc_Ae+set}" = set; then
2849   echo $ECHO_N "(cached) $ECHO_C" >&6
2850 else
2851   echo 'void f(){}' > conftest.c
2852 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
2853   ac_cv_prog_cc_Ae=yes
2854 else
2855   ac_cv_prog_cc_Ae=no
2856 fi
2857 rm -f conftest*
2858
2859 fi
2860 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_Ae" >&5
2861 echo "${ECHO_T}$ac_cv_prog_cc_Ae" >&6
2862       # mmap on HPUX is completely broken...
2863
2864 cat >>confdefs.h <<\_ACEOF
2865 #define MMAP_BLACKLIST 1
2866 _ACEOF
2867
2868       if test $ac_cv_prog_cc_Ae = yes; then
2869         CPPFLAGS="$CPPFLAGS -Ae"
2870       fi
2871 #
2872 # Defines needed for HPUX support.
2873 # HPUX has bigcrypt but (sometimes?) doesn't use it for
2874 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
2875 #
2876       case `uname -r` in
2877                         *9*|*10*)
2878                                 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2879
2880 cat >>confdefs.h <<\_ACEOF
2881 #define USE_BOTH_CRYPT_CALLS 1
2882 _ACEOF
2883
2884
2885 cat >>confdefs.h <<\_ACEOF
2886 #define _HPUX_SOURCE 1
2887 _ACEOF
2888
2889
2890 cat >>confdefs.h <<\_ACEOF
2891 #define _POSIX_SOURCE 1
2892 _ACEOF
2893
2894
2895 cat >>confdefs.h <<\_ACEOF
2896 #define _ALIGNMENT_REQUIRED 1
2897 _ACEOF
2898
2899
2900 cat >>confdefs.h <<\_ACEOF
2901 #define _MAX_ALIGNMENT 4
2902 _ACEOF
2903
2904                                 ;;
2905                         *11*)
2906                                 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2907
2908 cat >>confdefs.h <<\_ACEOF
2909 #define USE_BOTH_CRYPT_CALLS 1
2910 _ACEOF
2911
2912
2913 cat >>confdefs.h <<\_ACEOF
2914 #define _HPUX_SOURCE 1
2915 _ACEOF
2916
2917
2918 cat >>confdefs.h <<\_ACEOF
2919 #define _POSIX_SOURCE 1
2920 _ACEOF
2921
2922
2923 cat >>confdefs.h <<\_ACEOF
2924 #define _LARGEFILE64_SOURCE 1
2925 _ACEOF
2926
2927
2928 cat >>confdefs.h <<\_ACEOF
2929 #define _ALIGNMENT_REQUIRED 1
2930 _ACEOF
2931
2932
2933 cat >>confdefs.h <<\_ACEOF
2934 #define _MAX_ALIGNMENT 4
2935 _ACEOF
2936
2937                                 ;;
2938       esac
2939       DYNEXP="-Wl,-E"
2940       ;;
2941
2942 #
2943 # CRAY Unicos has broken const handling
2944        *unicos*)
2945           echo "$as_me:$LINENO: result: disabling const" >&5
2946 echo "${ECHO_T}disabling const" >&6
2947           CPPFLAGS="$CPPFLAGS -Dconst="
2948           ;;
2949
2950 #
2951 # AIX4.x doesn't even admit to having large
2952 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
2953 #
2954     *aix4*)
2955           echo "$as_me:$LINENO: result: enabling large file support" >&5
2956 echo "${ECHO_T}enabling large file support" >&6
2957       CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
2958
2959 cat >>confdefs.h <<\_ACEOF
2960 #define _LARGE_FILES 1
2961 _ACEOF
2962
2963       ;;
2964 #
2965 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
2966 # to the existance of large files..
2967 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
2968 # recommendations on large file support, however it makes the
2969 # compile work using gcc 2.7 and 2.8, whereas using the Sun
2970 # recommendation makes the compile fail on gcc2.7. JRA.
2971 #
2972         *solaris*)
2973                 case `uname -r` in
2974                         5.0*|5.1*|5.2*|5.3*|5.5*)
2975                                 echo "$as_me:$LINENO: result: no large file support" >&5
2976 echo "${ECHO_T}no large file support" >&6
2977                                 ;;
2978                         5.*)
2979                         echo "$as_me:$LINENO: result: enabling large file support" >&5
2980 echo "${ECHO_T}enabling large file support" >&6
2981                         if test "$ac_cv_c_compiler_gnu" = yes; then
2982                                 ${CC-cc} -v >conftest.c 2>&1
2983                                 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
2984                                 rm -fr conftest.c
2985                                 case "$ac_cv_gcc_compiler_version_number" in
2986                                         *"gcc version 2.6"*|*"gcc version 2.7"*)
2987                                                 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
2988
2989 cat >>confdefs.h <<\_ACEOF
2990 #define _LARGEFILE64_SOURCE 1
2991 _ACEOF
2992
2993                                                 ;;
2994                                         *)
2995                                                 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2996
2997 cat >>confdefs.h <<\_ACEOF
2998 #define _LARGEFILE64_SOURCE 1
2999 _ACEOF
3000
3001
3002 cat >>confdefs.h <<\_ACEOF
3003 #define _FILE_OFFSET_BITS 64
3004 _ACEOF
3005
3006                                                 ;;
3007                                 esac
3008                         else
3009                                 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
3010
3011 cat >>confdefs.h <<\_ACEOF
3012 #define _LARGEFILE64_SOURCE 1
3013 _ACEOF
3014
3015
3016 cat >>confdefs.h <<\_ACEOF
3017 #define _FILE_OFFSET_BITS 64
3018 _ACEOF
3019
3020                         fi
3021                         ;;
3022                 esac
3023                 ;;
3024 #
3025 # Tests needed for SINIX large file support.
3026 #
3027     *sysv4*)
3028       if test $host = mips-sni-sysv4 ; then
3029         echo "$as_me:$LINENO: checking for LFS support" >&5
3030 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3031         old_CPPFLAGS="$CPPFLAGS"
3032         CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
3033         if test "$cross_compiling" = yes; then
3034   SINIX_LFS_SUPPORT=cross
3035 else
3036   cat >conftest.$ac_ext <<_ACEOF
3037 #line $LINENO "configure"
3038 #include "confdefs.h"
3039
3040 #include <unistd.h>
3041 main () {
3042 #if _LFS64_LARGEFILE == 1
3043 exit(0);
3044 #else
3045 exit(1);
3046 #endif
3047 }
3048 _ACEOF
3049 rm -f conftest$ac_exeext
3050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3051   (eval $ac_link) 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056   (eval $ac_try) 2>&5
3057   ac_status=$?
3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); }; }; then
3060   SINIX_LFS_SUPPORT=yes
3061 else
3062   echo "$as_me: program exited with status $ac_status" >&5
3063 echo "$as_me: failed program was:" >&5
3064 cat conftest.$ac_ext >&5
3065 ( exit $ac_status )
3066 SINIX_LFS_SUPPORT=no
3067 fi
3068 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3069 fi
3070         CPPFLAGS="$old_CPPFLAGS"
3071         if test x$SINIX_LFS_SUPPORT = xyes ; then
3072           CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
3073
3074 cat >>confdefs.h <<\_ACEOF
3075 #define _LARGEFILE64_SOURCE 1
3076 _ACEOF
3077
3078           CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
3079           LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
3080           LIBS="`getconf LFS64_LIBS` $LIBS"
3081         fi
3082       echo "$as_me:$LINENO: result: $SINIX_LFS_SUPPORT" >&5
3083 echo "${ECHO_T}$SINIX_LFS_SUPPORT" >&6
3084       fi
3085     ;;
3086
3087 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
3088 #
3089     *linux*)
3090         echo "$as_me:$LINENO: checking for LFS support" >&5
3091 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3092         old_CPPFLAGS="$CPPFLAGS"
3093         CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3094        if test "$cross_compiling" = yes; then
3095   LINUX_LFS_SUPPORT=cross
3096 else
3097   cat >conftest.$ac_ext <<_ACEOF
3098 #line $LINENO "configure"
3099 #include "confdefs.h"
3100
3101 #include <unistd.h>
3102 #include <sys/utsname.h>
3103 main() {
3104 #if _LFS64_LARGEFILE == 1
3105        struct utsname uts;
3106        char *release;
3107        int major, minor;
3108
3109        /* Ensure this is glibc 2.2 or higher */
3110 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
3111        int libc_major = __GLIBC__;
3112        int libc_minor = __GLIBC_MINOR__;
3113
3114        if (libc_major < 2)
3115               exit(1);
3116        if (libc_minor < 2)
3117               exit(1);
3118 #endif
3119
3120        /* Ensure this is kernel 2.4 or higher */
3121
3122        uname(&uts);
3123        release = uts.release;
3124        major = atoi(strsep(&release, "."));
3125        minor = atoi(strsep(&release, "."));
3126
3127        if (major > 2 || (major == 2 && minor > 3))
3128                exit(0);
3129        exit(1);
3130 #else
3131        exit(1);
3132 #endif
3133 }
3134
3135 _ACEOF
3136 rm -f conftest$ac_exeext
3137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3138   (eval $ac_link) 2>&5
3139   ac_status=$?
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143   (eval $ac_try) 2>&5
3144   ac_status=$?
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); }; }; then
3147   LINUX_LFS_SUPPORT=yes
3148 else
3149   echo "$as_me: program exited with status $ac_status" >&5
3150 echo "$as_me: failed program was:" >&5
3151 cat conftest.$ac_ext >&5
3152 ( exit $ac_status )
3153 LINUX_LFS_SUPPORT=no
3154 fi
3155 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3156 fi
3157         CPPFLAGS="$old_CPPFLAGS"
3158         if test x$LINUX_LFS_SUPPORT = xyes ; then
3159           CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3160
3161 cat >>confdefs.h <<\_ACEOF
3162 #define _LARGEFILE64_SOURCE 1
3163 _ACEOF
3164
3165
3166 cat >>confdefs.h <<\_ACEOF
3167 #define _FILE_OFFSET_BITS 64
3168 _ACEOF
3169
3170
3171 cat >>confdefs.h <<\_ACEOF
3172 #define _GNU_SOURCE 1
3173 _ACEOF
3174
3175         fi
3176        echo "$as_me:$LINENO: result: $LINUX_LFS_SUPPORT" >&5
3177 echo "${ECHO_T}$LINUX_LFS_SUPPORT" >&6
3178                 ;;
3179
3180     *hurd*)
3181         echo "$as_me:$LINENO: checking for LFS support" >&5
3182 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3183         old_CPPFLAGS="$CPPFLAGS"
3184         CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3185         if test "$cross_compiling" = yes; then
3186   GLIBC_LFS_SUPPORT=cross
3187 else
3188   cat >conftest.$ac_ext <<_ACEOF
3189 #line $LINENO "configure"
3190 #include "confdefs.h"
3191
3192 #include <unistd.h>
3193 main () {
3194 #if _LFS64_LARGEFILE == 1
3195 exit(0);
3196 #else
3197 exit(1);
3198 #endif
3199 }
3200 _ACEOF
3201 rm -f conftest$ac_exeext
3202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3203   (eval $ac_link) 2>&5
3204   ac_status=$?
3205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208   (eval $ac_try) 2>&5
3209   ac_status=$?
3210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211   (exit $ac_status); }; }; then
3212   GLIBC_LFS_SUPPORT=yes
3213 else
3214   echo "$as_me: program exited with status $ac_status" >&5
3215 echo "$as_me: failed program was:" >&5
3216 cat conftest.$ac_ext >&5
3217 ( exit $ac_status )
3218 GLIBC_LFS_SUPPORT=no
3219 fi
3220 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3221 fi
3222         CPPFLAGS="$old_CPPFLAGS"
3223         if test x$GLIBC_LFS_SUPPORT = xyes ; then
3224           CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3225
3226 cat >>confdefs.h <<\_ACEOF
3227 #define _LARGEFILE64_SOURCE 1
3228 _ACEOF
3229
3230
3231 cat >>confdefs.h <<\_ACEOF
3232 #define _GNU_SOURCE 1
3233 _ACEOF
3234
3235         fi
3236       echo "$as_me:$LINENO: result: $GLIBC_LFS_SUPPORT" >&5
3237 echo "${ECHO_T}$GLIBC_LFS_SUPPORT" >&6
3238     ;;
3239
3240 esac
3241
3242 echo "$as_me:$LINENO: checking for inline" >&5
3243 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3244 if test "${ac_cv_c_inline+set}" = set; then
3245   echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247   ac_cv_c_inline=no
3248 for ac_kw in inline __inline__ __inline; do
3249   cat >conftest.$ac_ext <<_ACEOF
3250 #line $LINENO "configure"
3251 #include "confdefs.h"
3252 #ifndef __cplusplus
3253 typedef int foo_t;
3254 static $ac_kw foo_t static_foo () {return 0; }
3255 $ac_kw foo_t foo () {return 0; }
3256 #endif
3257
3258 _ACEOF
3259 rm -f conftest.$ac_objext
3260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3261   (eval $ac_compile) 2>&5
3262   ac_status=$?
3263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264   (exit $ac_status); } &&
3265          { ac_try='test -s conftest.$ac_objext'
3266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267   (eval $ac_try) 2>&5
3268   ac_status=$?
3269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270   (exit $ac_status); }; }; then
3271   ac_cv_c_inline=$ac_kw; break
3272 else
3273   echo "$as_me: failed program was:" >&5
3274 cat conftest.$ac_ext >&5
3275 fi
3276 rm -f conftest.$ac_objext conftest.$ac_ext
3277 done
3278
3279 fi
3280 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3281 echo "${ECHO_T}$ac_cv_c_inline" >&6
3282 case $ac_cv_c_inline in
3283   inline | yes) ;;
3284   no)
3285 cat >>confdefs.h <<\_ACEOF
3286 #define inline
3287 _ACEOF
3288  ;;
3289   *)  cat >>confdefs.h <<_ACEOF
3290 #define inline $ac_cv_c_inline
3291 _ACEOF
3292  ;;
3293 esac
3294
3295 ac_ext=c
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3301 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3302 # On Suns, sometimes $CPP names a directory.
3303 if test -n "$CPP" && test -d "$CPP"; then
3304   CPP=
3305 fi
3306 if test -z "$CPP"; then
3307   if test "${ac_cv_prog_CPP+set}" = set; then
3308   echo $ECHO_N "(cached) $ECHO_C" >&6
3309 else
3310       # Double quotes because CPP needs to be expanded
3311     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3312     do
3313       ac_preproc_ok=false
3314 for ac_c_preproc_warn_flag in '' yes
3315 do
3316   # Use a header file that comes with gcc, so configuring glibc
3317   # with a fresh cross-compiler works.
3318   # On the NeXT, cc -E runs the code through the compiler's parser,
3319   # not just through cpp. "Syntax error" is here to catch this case.
3320   cat >conftest.$ac_ext <<_ACEOF
3321 #line $LINENO "configure"
3322 #include "confdefs.h"
3323 #include <assert.h>
3324                      Syntax error
3325 _ACEOF
3326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3327   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3328   ac_status=$?
3329   grep -v '^ *+' conftest.er1 >conftest.err
3330   rm -f conftest.er1
3331   cat conftest.err >&5
3332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333   (exit $ac_status); } >/dev/null; then
3334   if test -s conftest.err; then
3335     ac_cpp_err=$ac_c_preproc_warn_flag
3336   else
3337     ac_cpp_err=
3338   fi
3339 else
3340   ac_cpp_err=yes
3341 fi
3342 if test -z "$ac_cpp_err"; then
3343   :
3344 else
3345   echo "$as_me: failed program was:" >&5
3346   cat conftest.$ac_ext >&5
3347   # Broken: fails on valid input.
3348 continue
3349 fi
3350 rm -f conftest.err conftest.$ac_ext
3351
3352   # OK, works on sane cases.  Now check whether non-existent headers
3353   # can be detected and how.
3354   cat >conftest.$ac_ext <<_ACEOF
3355 #line $LINENO "configure"
3356 #include "confdefs.h"
3357 #include <ac_nonexistent.h>
3358 _ACEOF
3359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3360   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3361   ac_status=$?
3362   grep -v '^ *+' conftest.er1 >conftest.err
3363   rm -f conftest.er1
3364   cat conftest.err >&5
3365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); } >/dev/null; then
3367   if test -s conftest.err; then
3368     ac_cpp_err=$ac_c_preproc_warn_flag
3369   else
3370     ac_cpp_err=
3371   fi
3372 else
3373   ac_cpp_err=yes
3374 fi
3375 if test -z "$ac_cpp_err"; then
3376   # Broken: success on invalid input.
3377 continue
3378 else
3379   echo "$as_me: failed program was:" >&5
3380   cat conftest.$ac_ext >&5
3381   # Passes both tests.
3382 ac_preproc_ok=:
3383 break
3384 fi
3385 rm -f conftest.err conftest.$ac_ext
3386
3387 done
3388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3389 rm -f conftest.err conftest.$ac_ext
3390 if $ac_preproc_ok; then
3391   break
3392 fi
3393
3394     done
3395     ac_cv_prog_CPP=$CPP
3396
3397 fi
3398   CPP=$ac_cv_prog_CPP
3399 else
3400   ac_cv_prog_CPP=$CPP
3401 fi
3402 echo "$as_me:$LINENO: result: $CPP" >&5
3403 echo "${ECHO_T}$CPP" >&6
3404 ac_preproc_ok=false
3405 for ac_c_preproc_warn_flag in '' yes
3406 do
3407   # Use a header file that comes with gcc, so configuring glibc
3408   # with a fresh cross-compiler works.
3409   # On the NeXT, cc -E runs the code through the compiler's parser,
3410   # not just through cpp. "Syntax error" is here to catch this case.
3411   cat >conftest.$ac_ext <<_ACEOF
3412 #line $LINENO "configure"
3413 #include "confdefs.h"
3414 #include <assert.h>
3415                      Syntax error
3416 _ACEOF
3417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3418   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3419   ac_status=$?
3420   grep -v '^ *+' conftest.er1 >conftest.err
3421   rm -f conftest.er1
3422   cat conftest.err >&5
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); } >/dev/null; then
3425   if test -s conftest.err; then
3426     ac_cpp_err=$ac_c_preproc_warn_flag
3427   else
3428     ac_cpp_err=
3429   fi
3430 else
3431   ac_cpp_err=yes
3432 fi
3433 if test -z "$ac_cpp_err"; then
3434   :
3435 else
3436   echo "$as_me: failed program was:" >&5
3437   cat conftest.$ac_ext >&5
3438   # Broken: fails on valid input.
3439 continue
3440 fi
3441 rm -f conftest.err conftest.$ac_ext
3442
3443   # OK, works on sane cases.  Now check whether non-existent headers
3444   # can be detected and how.
3445   cat >conftest.$ac_ext <<_ACEOF
3446 #line $LINENO "configure"
3447 #include "confdefs.h"
3448 #include <ac_nonexistent.h>
3449 _ACEOF
3450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3451   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3452   ac_status=$?
3453   grep -v '^ *+' conftest.er1 >conftest.err
3454   rm -f conftest.er1
3455   cat conftest.err >&5
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); } >/dev/null; then
3458   if test -s conftest.err; then
3459     ac_cpp_err=$ac_c_preproc_warn_flag
3460   else
3461     ac_cpp_err=
3462   fi
3463 else
3464   ac_cpp_err=yes
3465 fi
3466 if test -z "$ac_cpp_err"; then
3467   # Broken: success on invalid input.
3468 continue
3469 else
3470   echo "$as_me: failed program was:" >&5
3471   cat conftest.$ac_ext >&5
3472   # Passes both tests.
3473 ac_preproc_ok=:
3474 break
3475 fi
3476 rm -f conftest.err conftest.$ac_ext
3477
3478 done
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then
3482   :
3483 else
3484   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3485 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3486    { (exit 1); exit 1; }; }
3487 fi
3488
3489 ac_ext=c
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494
3495
3496 echo "$as_me:$LINENO: checking for egrep" >&5
3497 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3498 if test "${ac_cv_prog_egrep+set}" = set; then
3499   echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3502     then ac_cv_prog_egrep='grep -E'
3503     else ac_cv_prog_egrep='egrep'
3504     fi
3505 fi
3506 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3507 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3508  EGREP=$ac_cv_prog_egrep
3509
3510
3511 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3512 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3513 if test "${ac_cv_header_stdc+set}" = set; then
3514   echo $ECHO_N "(cached) $ECHO_C" >&6
3515 else
3516   cat >conftest.$ac_ext <<_ACEOF
3517 #line $LINENO "configure"
3518 #include "confdefs.h"
3519 #include <stdlib.h>
3520 #include <stdarg.h>
3521 #include <string.h>
3522 #include <float.h>
3523
3524 _ACEOF
3525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3526   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3527   ac_status=$?
3528   grep -v '^ *+' conftest.er1 >conftest.err
3529   rm -f conftest.er1
3530   cat conftest.err >&5
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); } >/dev/null; then
3533   if test -s conftest.err; then
3534     ac_cpp_err=$ac_c_preproc_warn_flag
3535   else
3536     ac_cpp_err=
3537   fi
3538 else
3539   ac_cpp_err=yes
3540 fi
3541 if test -z "$ac_cpp_err"; then
3542   ac_cv_header_stdc=yes
3543 else
3544   echo "$as_me: failed program was:" >&5
3545   cat conftest.$ac_ext >&5
3546   ac_cv_header_stdc=no
3547 fi
3548 rm -f conftest.err conftest.$ac_ext
3549
3550 if test $ac_cv_header_stdc = yes; then
3551   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3552   cat >conftest.$ac_ext <<_ACEOF
3553 #line $LINENO "configure"
3554 #include "confdefs.h"
3555 #include <string.h>
3556
3557 _ACEOF
3558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3559   $EGREP "memchr" >/dev/null 2>&1; then
3560   :
3561 else
3562   ac_cv_header_stdc=no
3563 fi
3564 rm -f conftest*
3565
3566 fi
3567
3568 if test $ac_cv_header_stdc = yes; then
3569   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3570   cat >conftest.$ac_ext <<_ACEOF
3571 #line $LINENO "configure"
3572 #include "confdefs.h"
3573 #include <stdlib.h>
3574
3575 _ACEOF
3576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3577   $EGREP "free" >/dev/null 2>&1; then
3578   :
3579 else
3580   ac_cv_header_stdc=no
3581 fi
3582 rm -f conftest*
3583
3584 fi
3585
3586 if test $ac_cv_header_stdc = yes; then
3587   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3588   if test "$cross_compiling" = yes; then
3589   :
3590 else
3591   cat >conftest.$ac_ext <<_ACEOF
3592 #line $LINENO "configure"
3593 #include "confdefs.h"
3594 #include <ctype.h>
3595 #if ((' ' & 0x0FF) == 0x020)
3596 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3597 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3598 #else
3599 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3600                      || ('j' <= (c) && (c) <= 'r') \
3601                      || ('s' <= (c) && (c) <= 'z'))
3602 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3603 #endif
3604
3605 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3606 int
3607 main ()
3608 {
3609   int i;
3610   for (i = 0; i < 256; i++)
3611     if (XOR (islower (i), ISLOWER (i))
3612         || toupper (i) != TOUPPER (i))
3613       exit(2);
3614   exit (0);
3615 }
3616 _ACEOF
3617 rm -f conftest$ac_exeext
3618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3619   (eval $ac_link) 2>&5
3620   ac_status=$?
3621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624   (eval $ac_try) 2>&5
3625   ac_status=$?
3626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); }; }; then
3628   :
3629 else
3630   echo "$as_me: program exited with status $ac_status" >&5
3631 echo "$as_me: failed program was:" >&5
3632 cat conftest.$ac_ext >&5
3633 ( exit $ac_status )
3634 ac_cv_header_stdc=no
3635 fi
3636 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3637 fi
3638 fi
3639 fi
3640 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3641 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3642 if test $ac_cv_header_stdc = yes; then
3643
3644 cat >>confdefs.h <<\_ACEOF
3645 #define STDC_HEADERS 1
3646 _ACEOF
3647
3648 fi
3649
3650
3651
3652
3653
3654
3655 ac_header_dirent=no
3656 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3657   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3658 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3659 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663   cat >conftest.$ac_ext <<_ACEOF
3664 #line $LINENO "configure"
3665 #include "confdefs.h"
3666 #include <sys/types.h>
3667 #include <$ac_hdr>
3668
3669 int
3670 main ()
3671 {
3672 if ((DIR *) 0)
3673 return 0;
3674   ;
3675   return 0;
3676 }
3677 _ACEOF
3678 rm -f conftest.$ac_objext
3679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3680   (eval $ac_compile) 2>&5
3681   ac_status=$?
3682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683   (exit $ac_status); } &&
3684          { ac_try='test -s conftest.$ac_objext'
3685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3686   (eval $ac_try) 2>&5
3687   ac_status=$?
3688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689   (exit $ac_status); }; }; then
3690   eval "$as_ac_Header=yes"
3691 else
3692   echo "$as_me: failed program was:" >&5
3693 cat conftest.$ac_ext >&5
3694 eval "$as_ac_Header=no"
3695 fi
3696 rm -f conftest.$ac_objext conftest.$ac_ext
3697 fi
3698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3701   cat >>confdefs.h <<_ACEOF
3702 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3703 _ACEOF
3704
3705 ac_header_dirent=$ac_hdr; break
3706 fi
3707
3708 done
3709 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3710 if test $ac_header_dirent = dirent.h; then
3711   echo "$as_me:$LINENO: checking for library containing opendir" >&5
3712 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3713 if test "${ac_cv_search_opendir+set}" = set; then
3714   echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716   ac_func_search_save_LIBS=$LIBS
3717 ac_cv_search_opendir=no
3718 cat >conftest.$ac_ext <<_ACEOF
3719 #line $LINENO "configure"
3720 #include "confdefs.h"
3721
3722 /* Override any gcc2 internal prototype to avoid an error.  */
3723 #ifdef __cplusplus
3724 extern "C"
3725 #endif
3726 /* We use char because int might match the return type of a gcc2
3727    builtin and then its argument prototype would still apply.  */
3728 char opendir ();
3729 int
3730 main ()
3731 {
3732 opendir ();
3733   ;
3734   return 0;
3735 }
3736 _ACEOF
3737 rm -f conftest.$ac_objext conftest$ac_exeext
3738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3739   (eval $ac_link) 2>&5
3740   ac_status=$?
3741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742   (exit $ac_status); } &&
3743          { ac_try='test -s conftest$ac_exeext'
3744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745   (eval $ac_try) 2>&5
3746   ac_status=$?
3747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748   (exit $ac_status); }; }; then
3749   ac_cv_search_opendir="none required"
3750 else
3751   echo "$as_me: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3753 fi
3754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3755 if test "$ac_cv_search_opendir" = no; then
3756   for ac_lib in dir; do
3757     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3758     cat >conftest.$ac_ext <<_ACEOF
3759 #line $LINENO "configure"
3760 #include "confdefs.h"
3761
3762 /* Override any gcc2 internal prototype to avoid an error.  */
3763 #ifdef __cplusplus
3764 extern "C"
3765 #endif
3766 /* We use char because int might match the return type of a gcc2
3767    builtin and then its argument prototype would still apply.  */
3768 char opendir ();
3769 int
3770 main ()
3771 {
3772 opendir ();
3773   ;
3774   return 0;
3775 }
3776 _ACEOF
3777 rm -f conftest.$ac_objext conftest$ac_exeext
3778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3779   (eval $ac_link) 2>&5
3780   ac_status=$?
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); } &&
3783          { ac_try='test -s conftest$ac_exeext'
3784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785   (eval $ac_try) 2>&5
3786   ac_status=$?
3787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788   (exit $ac_status); }; }; then
3789   ac_cv_search_opendir="-l$ac_lib"
3790 break
3791 else
3792   echo "$as_me: failed program was:" >&5
3793 cat conftest.$ac_ext >&5
3794 fi
3795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3796   done
3797 fi
3798 LIBS=$ac_func_search_save_LIBS
3799 fi
3800 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3801 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3802 if test "$ac_cv_search_opendir" != no; then
3803   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3804
3805 fi
3806
3807 else
3808   echo "$as_me:$LINENO: checking for library containing opendir" >&5
3809 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3810 if test "${ac_cv_search_opendir+set}" = set; then
3811   echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813   ac_func_search_save_LIBS=$LIBS
3814 ac_cv_search_opendir=no
3815 cat >conftest.$ac_ext <<_ACEOF
3816 #line $LINENO "configure"
3817 #include "confdefs.h"
3818
3819 /* Override any gcc2 internal prototype to avoid an error.  */
3820 #ifdef __cplusplus
3821 extern "C"
3822 #endif
3823 /* We use char because int might match the return type of a gcc2
3824    builtin and then its argument prototype would still apply.  */
3825 char opendir ();
3826 int
3827 main ()
3828 {
3829 opendir ();
3830   ;
3831   return 0;
3832 }
3833 _ACEOF
3834 rm -f conftest.$ac_objext conftest$ac_exeext
3835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3836   (eval $ac_link) 2>&5
3837   ac_status=$?
3838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839   (exit $ac_status); } &&
3840          { ac_try='test -s conftest$ac_exeext'
3841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842   (eval $ac_try) 2>&5
3843   ac_status=$?
3844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845   (exit $ac_status); }; }; then
3846   ac_cv_search_opendir="none required"
3847 else
3848   echo "$as_me: failed program was:" >&5
3849 cat conftest.$ac_ext >&5
3850 fi
3851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3852 if test "$ac_cv_search_opendir" = no; then
3853   for ac_lib in x; do
3854     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3855     cat >conftest.$ac_ext <<_ACEOF
3856 #line $LINENO "configure"
3857 #include "confdefs.h"
3858
3859 /* Override any gcc2 internal prototype to avoid an error.  */
3860 #ifdef __cplusplus
3861 extern "C"
3862 #endif
3863 /* We use char because int might match the return type of a gcc2
3864    builtin and then its argument prototype would still apply.  */
3865 char opendir ();
3866 int
3867 main ()
3868 {
3869 opendir ();
3870   ;
3871   return 0;
3872 }
3873 _ACEOF
3874 rm -f conftest.$ac_objext conftest$ac_exeext
3875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3876   (eval $ac_link) 2>&5
3877   ac_status=$?
3878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); } &&
3880          { ac_try='test -s conftest$ac_exeext'
3881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882   (eval $ac_try) 2>&5
3883   ac_status=$?
3884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885   (exit $ac_status); }; }; then
3886   ac_cv_search_opendir="-l$ac_lib"
3887 break
3888 else
3889   echo "$as_me: failed program was:" >&5
3890 cat conftest.$ac_ext >&5
3891 fi
3892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3893   done
3894 fi
3895 LIBS=$ac_func_search_save_LIBS
3896 fi
3897 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3898 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3899 if test "$ac_cv_search_opendir" != no; then
3900   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3901
3902 fi
3903
3904 fi
3905
3906 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3907 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3908 if test "${ac_cv_header_time+set}" = set; then
3909   echo $ECHO_N "(cached) $ECHO_C" >&6
3910 else
3911   cat >conftest.$ac_ext <<_ACEOF
3912 #line $LINENO "configure"
3913 #include "confdefs.h"
3914 #include <sys/types.h>
3915 #include <sys/time.h>
3916 #include <time.h>
3917
3918 int
3919 main ()
3920 {
3921 if ((struct tm *) 0)
3922 return 0;
3923   ;
3924   return 0;
3925 }
3926 _ACEOF
3927 rm -f conftest.$ac_objext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3929   (eval $ac_compile) 2>&5
3930   ac_status=$?
3931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932   (exit $ac_status); } &&
3933          { ac_try='test -s conftest.$ac_objext'
3934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935   (eval $ac_try) 2>&5
3936   ac_status=$?
3937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938   (exit $ac_status); }; }; then
3939   ac_cv_header_time=yes
3940 else
3941   echo "$as_me: failed program was:" >&5
3942 cat conftest.$ac_ext >&5
3943 ac_cv_header_time=no
3944 fi
3945 rm -f conftest.$ac_objext conftest.$ac_ext
3946 fi
3947 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3948 echo "${ECHO_T}$ac_cv_header_time" >&6
3949 if test $ac_cv_header_time = yes; then
3950
3951 cat >>confdefs.h <<\_ACEOF
3952 #define TIME_WITH_SYS_TIME 1
3953 _ACEOF
3954
3955 fi
3956
3957 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3958 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3959 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3960   echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962   cat >conftest.$ac_ext <<_ACEOF
3963 #line $LINENO "configure"
3964 #include "confdefs.h"
3965 #include <sys/types.h>
3966 #include <sys/wait.h>
3967 #ifndef WEXITSTATUS
3968 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3969 #endif
3970 #ifndef WIFEXITED
3971 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3972 #endif
3973
3974 int
3975 main ()
3976 {
3977   int s;
3978   wait (&s);
3979   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3980   ;
3981   return 0;
3982 }
3983 _ACEOF
3984 rm -f conftest.$ac_objext
3985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986   (eval $ac_compile) 2>&5
3987   ac_status=$?
3988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989   (exit $ac_status); } &&
3990          { ac_try='test -s conftest.$ac_objext'
3991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992   (eval $ac_try) 2>&5
3993   ac_status=$?
3994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995   (exit $ac_status); }; }; then
3996   ac_cv_header_sys_wait_h=yes
3997 else
3998   echo "$as_me: failed program was:" >&5
3999 cat conftest.$ac_ext >&5
4000 ac_cv_header_sys_wait_h=no
4001 fi
4002 rm -f conftest.$ac_objext conftest.$ac_ext
4003 fi
4004 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4005 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4006 if test $ac_cv_header_sys_wait_h = yes; then
4007
4008 cat >>confdefs.h <<\_ACEOF
4009 #define HAVE_SYS_WAIT_H 1
4010 _ACEOF
4011
4012 fi
4013
4014 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4025                   inttypes.h stdint.h unistd.h
4026 do
4027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4028 echo "$as_me:$LINENO: checking for $ac_header" >&5
4029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4031   echo $ECHO_N "(cached) $ECHO_C" >&6
4032 else
4033   cat >conftest.$ac_ext <<_ACEOF
4034 #line $LINENO "configure"
4035 #include "confdefs.h"
4036 $ac_includes_default
4037
4038 #include <$ac_header>
4039 _ACEOF
4040 rm -f conftest.$ac_objext
4041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042   (eval $ac_compile) 2>&5
4043   ac_status=$?
4044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045   (exit $ac_status); } &&
4046          { ac_try='test -s conftest.$ac_objext'
4047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048   (eval $ac_try) 2>&5
4049   ac_status=$?
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); }; }; then
4052   eval "$as_ac_Header=yes"
4053 else
4054   echo "$as_me: failed program was:" >&5
4055 cat conftest.$ac_ext >&5
4056 eval "$as_ac_Header=no"
4057 fi
4058 rm -f conftest.$ac_objext conftest.$ac_ext
4059 fi
4060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4063   cat >>confdefs.h <<_ACEOF
4064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4065 _ACEOF
4066
4067 fi
4068
4069 done
4070
4071
4072
4073
4074
4075
4076
4077
4078 for ac_header in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
4079 do
4080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4082   echo "$as_me:$LINENO: checking for $ac_header" >&5
4083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4085   echo $ECHO_N "(cached) $ECHO_C" >&6
4086 fi
4087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4089 else
4090   # Is the header compilable?
4091 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4093 cat >conftest.$ac_ext <<_ACEOF
4094 #line $LINENO "configure"
4095 #include "confdefs.h"
4096 $ac_includes_default
4097 #include <$ac_header>
4098 _ACEOF
4099 rm -f conftest.$ac_objext
4100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4101   (eval $ac_compile) 2>&5
4102   ac_status=$?
4103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104   (exit $ac_status); } &&
4105          { ac_try='test -s conftest.$ac_objext'
4106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107   (eval $ac_try) 2>&5
4108   ac_status=$?
4109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); }; }; then
4111   ac_header_compiler=yes
4112 else
4113   echo "$as_me: failed program was:" >&5
4114 cat conftest.$ac_ext >&5
4115 ac_header_compiler=no
4116 fi
4117 rm -f conftest.$ac_objext conftest.$ac_ext
4118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4119 echo "${ECHO_T}$ac_header_compiler" >&6
4120
4121 # Is the header present?
4122 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4124 cat >conftest.$ac_ext <<_ACEOF
4125 #line $LINENO "configure"
4126 #include "confdefs.h"
4127 #include <$ac_header>
4128 _ACEOF
4129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4130   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4131   ac_status=$?
4132   grep -v '^ *+' conftest.er1 >conftest.err
4133   rm -f conftest.er1
4134   cat conftest.err >&5
4135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136   (exit $ac_status); } >/dev/null; then
4137   if test -s conftest.err; then
4138     ac_cpp_err=$ac_c_preproc_warn_flag
4139   else
4140     ac_cpp_err=
4141   fi
4142 else
4143   ac_cpp_err=yes
4144 fi
4145 if test -z "$ac_cpp_err"; then
4146   ac_header_preproc=yes
4147 else
4148   echo "$as_me: failed program was:" >&5
4149   cat conftest.$ac_ext >&5
4150   ac_header_preproc=no
4151 fi
4152 rm -f conftest.err conftest.$ac_ext
4153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4154 echo "${ECHO_T}$ac_header_preproc" >&6
4155
4156 # So?  What about this header?
4157 case $ac_header_compiler:$ac_header_preproc in
4158   yes:no )
4159     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4163   no:yes )
4164     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4166     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4170 esac
4171 echo "$as_me:$LINENO: checking for $ac_header" >&5
4172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4174   echo $ECHO_N "(cached) $ECHO_C" >&6
4175 else
4176   eval "$as_ac_Header=$ac_header_preproc"
4177 fi
4178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4180
4181 fi
4182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4183   cat >>confdefs.h <<_ACEOF
4184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4185 _ACEOF
4186
4187 fi
4188
4189 done
4190
4191
4192
4193
4194
4195
4196
4197
4198 for ac_header in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
4199 do
4200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4202   echo "$as_me:$LINENO: checking for $ac_header" >&5
4203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4205   echo $ECHO_N "(cached) $ECHO_C" >&6
4206 fi
4207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4209 else
4210   # Is the header compilable?
4211 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4213 cat >conftest.$ac_ext <<_ACEOF
4214 #line $LINENO "configure"
4215 #include "confdefs.h"
4216 $ac_includes_default
4217 #include <$ac_header>
4218 _ACEOF
4219 rm -f conftest.$ac_objext
4220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221   (eval $ac_compile) 2>&5
4222   ac_status=$?
4223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224   (exit $ac_status); } &&
4225          { ac_try='test -s conftest.$ac_objext'
4226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227   (eval $ac_try) 2>&5
4228   ac_status=$?
4229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230   (exit $ac_status); }; }; then
4231   ac_header_compiler=yes
4232 else
4233   echo "$as_me: failed program was:" >&5
4234 cat conftest.$ac_ext >&5
4235 ac_header_compiler=no
4236 fi
4237 rm -f conftest.$ac_objext conftest.$ac_ext
4238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4239 echo "${ECHO_T}$ac_header_compiler" >&6
4240
4241 # Is the header present?
4242 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4244 cat >conftest.$ac_ext <<_ACEOF
4245 #line $LINENO "configure"
4246 #include "confdefs.h"
4247 #include <$ac_header>
4248 _ACEOF
4249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4250   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4251   ac_status=$?
4252   grep -v '^ *+' conftest.er1 >conftest.err
4253   rm -f conftest.er1
4254   cat conftest.err >&5
4255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256   (exit $ac_status); } >/dev/null; then
4257   if test -s conftest.err; then
4258     ac_cpp_err=$ac_c_preproc_warn_flag
4259   else
4260     ac_cpp_err=
4261   fi
4262 else
4263   ac_cpp_err=yes
4264 fi
4265 if test -z "$ac_cpp_err"; then
4266   ac_header_preproc=yes
4267 else
4268   echo "$as_me: failed program was:" >&5
4269   cat conftest.$ac_ext >&5
4270   ac_header_preproc=no
4271 fi
4272 rm -f conftest.err conftest.$ac_ext
4273 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4274 echo "${ECHO_T}$ac_header_preproc" >&6
4275
4276 # So?  What about this header?
4277 case $ac_header_compiler:$ac_header_preproc in
4278   yes:no )
4279     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4280 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4283   no:yes )
4284     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4285 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4286     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4287 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4290 esac
4291 echo "$as_me:$LINENO: checking for $ac_header" >&5
4292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4294   echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296   eval "$as_ac_Header=$ac_header_preproc"
4297 fi
4298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4300
4301 fi
4302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4303   cat >>confdefs.h <<_ACEOF
4304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4305 _ACEOF
4306
4307 fi
4308
4309 done
4310
4311
4312
4313
4314
4315
4316 for ac_header in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
4317 do
4318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4320   echo "$as_me:$LINENO: checking for $ac_header" >&5
4321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4323   echo $ECHO_N "(cached) $ECHO_C" >&6
4324 fi
4325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4327 else
4328   # Is the header compilable?
4329 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4331 cat >conftest.$ac_ext <<_ACEOF
4332 #line $LINENO "configure"
4333 #include "confdefs.h"
4334 $ac_includes_default
4335 #include <$ac_header>
4336 _ACEOF
4337 rm -f conftest.$ac_objext
4338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4339   (eval $ac_compile) 2>&5
4340   ac_status=$?
4341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342   (exit $ac_status); } &&
4343          { ac_try='test -s conftest.$ac_objext'
4344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345   (eval $ac_try) 2>&5
4346   ac_status=$?
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); }; }; then
4349   ac_header_compiler=yes
4350 else
4351   echo "$as_me: failed program was:" >&5
4352 cat conftest.$ac_ext >&5
4353 ac_header_compiler=no
4354 fi
4355 rm -f conftest.$ac_objext conftest.$ac_ext
4356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4357 echo "${ECHO_T}$ac_header_compiler" >&6
4358
4359 # Is the header present?
4360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4362 cat >conftest.$ac_ext <<_ACEOF
4363 #line $LINENO "configure"
4364 #include "confdefs.h"
4365 #include <$ac_header>
4366 _ACEOF
4367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4368   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4369   ac_status=$?
4370   grep -v '^ *+' conftest.er1 >conftest.err
4371   rm -f conftest.er1
4372   cat conftest.err >&5
4373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374   (exit $ac_status); } >/dev/null; then
4375   if test -s conftest.err; then
4376     ac_cpp_err=$ac_c_preproc_warn_flag
4377   else
4378     ac_cpp_err=
4379   fi
4380 else
4381   ac_cpp_err=yes
4382 fi
4383 if test -z "$ac_cpp_err"; then
4384   ac_header_preproc=yes
4385 else
4386   echo "$as_me: failed program was:" >&5
4387   cat conftest.$ac_ext >&5
4388   ac_header_preproc=no
4389 fi
4390 rm -f conftest.err conftest.$ac_ext
4391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4392 echo "${ECHO_T}$ac_header_preproc" >&6
4393
4394 # So?  What about this header?
4395 case $ac_header_compiler:$ac_header_preproc in
4396   yes:no )
4397     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4399     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4401   no:yes )
4402     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4404     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4406     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4408 esac
4409 echo "$as_me:$LINENO: checking for $ac_header" >&5
4410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4412   echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414   eval "$as_ac_Header=$ac_header_preproc"
4415 fi
4416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4418
4419 fi
4420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4421   cat >>confdefs.h <<_ACEOF
4422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4423 _ACEOF
4424
4425 fi
4426
4427 done
4428
4429
4430
4431
4432
4433
4434
4435
4436 for ac_header in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
4437 do
4438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4440   echo "$as_me:$LINENO: checking for $ac_header" >&5
4441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4443   echo $ECHO_N "(cached) $ECHO_C" >&6
4444 fi
4445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4447 else
4448   # Is the header compilable?
4449 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4451 cat >conftest.$ac_ext <<_ACEOF
4452 #line $LINENO "configure"
4453 #include "confdefs.h"
4454 $ac_includes_default
4455 #include <$ac_header>
4456 _ACEOF
4457 rm -f conftest.$ac_objext
4458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4459   (eval $ac_compile) 2>&5
4460   ac_status=$?
4461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462   (exit $ac_status); } &&
4463          { ac_try='test -s conftest.$ac_objext'
4464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465   (eval $ac_try) 2>&5
4466   ac_status=$?
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); }; }; then
4469   ac_header_compiler=yes
4470 else
4471   echo "$as_me: failed program was:" >&5
4472 cat conftest.$ac_ext >&5
4473 ac_header_compiler=no
4474 fi
4475 rm -f conftest.$ac_objext conftest.$ac_ext
4476 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4477 echo "${ECHO_T}$ac_header_compiler" >&6
4478
4479 # Is the header present?
4480 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4482 cat >conftest.$ac_ext <<_ACEOF
4483 #line $LINENO "configure"
4484 #include "confdefs.h"
4485 #include <$ac_header>
4486 _ACEOF
4487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4488   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4489   ac_status=$?
4490   grep -v '^ *+' conftest.er1 >conftest.err
4491   rm -f conftest.er1
4492   cat conftest.err >&5
4493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494   (exit $ac_status); } >/dev/null; then
4495   if test -s conftest.err; then
4496     ac_cpp_err=$ac_c_preproc_warn_flag
4497   else
4498     ac_cpp_err=
4499   fi
4500 else
4501   ac_cpp_err=yes
4502 fi
4503 if test -z "$ac_cpp_err"; then
4504   ac_header_preproc=yes
4505 else
4506   echo "$as_me: failed program was:" >&5
4507   cat conftest.$ac_ext >&5
4508   ac_header_preproc=no
4509 fi
4510 rm -f conftest.err conftest.$ac_ext
4511 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4512 echo "${ECHO_T}$ac_header_preproc" >&6
4513
4514 # So?  What about this header?
4515 case $ac_header_compiler:$ac_header_preproc in
4516   yes:no )
4517     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4521   no:yes )
4522     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4524     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4526     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4528 esac
4529 echo "$as_me:$LINENO: checking for $ac_header" >&5
4530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4532   echo $ECHO_N "(cached) $ECHO_C" >&6
4533 else
4534   eval "$as_ac_Header=$ac_header_preproc"
4535 fi
4536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4538
4539 fi
4540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4541   cat >>confdefs.h <<_ACEOF
4542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4543 _ACEOF
4544
4545 fi
4546
4547 done
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557 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
4558 do
4559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4561   echo "$as_me:$LINENO: checking for $ac_header" >&5
4562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4564   echo $ECHO_N "(cached) $ECHO_C" >&6
4565 fi
4566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4568 else
4569   # Is the header compilable?
4570 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4572 cat >conftest.$ac_ext <<_ACEOF
4573 #line $LINENO "configure"
4574 #include "confdefs.h"
4575 $ac_includes_default
4576 #include <$ac_header>
4577 _ACEOF
4578 rm -f conftest.$ac_objext
4579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4580   (eval $ac_compile) 2>&5
4581   ac_status=$?
4582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583   (exit $ac_status); } &&
4584          { ac_try='test -s conftest.$ac_objext'
4585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4586   (eval $ac_try) 2>&5
4587   ac_status=$?
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); }; }; then
4590   ac_header_compiler=yes
4591 else
4592   echo "$as_me: failed program was:" >&5
4593 cat conftest.$ac_ext >&5
4594 ac_header_compiler=no
4595 fi
4596 rm -f conftest.$ac_objext conftest.$ac_ext
4597 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4598 echo "${ECHO_T}$ac_header_compiler" >&6
4599
4600 # Is the header present?
4601 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4602 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4603 cat >conftest.$ac_ext <<_ACEOF
4604 #line $LINENO "configure"
4605 #include "confdefs.h"
4606 #include <$ac_header>
4607 _ACEOF
4608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4609   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4610   ac_status=$?
4611   grep -v '^ *+' conftest.er1 >conftest.err
4612   rm -f conftest.er1
4613   cat conftest.err >&5
4614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615   (exit $ac_status); } >/dev/null; then
4616   if test -s conftest.err; then
4617     ac_cpp_err=$ac_c_preproc_warn_flag
4618   else
4619     ac_cpp_err=
4620   fi
4621 else
4622   ac_cpp_err=yes
4623 fi
4624 if test -z "$ac_cpp_err"; then
4625   ac_header_preproc=yes
4626 else
4627   echo "$as_me: failed program was:" >&5
4628   cat conftest.$ac_ext >&5
4629   ac_header_preproc=no
4630 fi
4631 rm -f conftest.err conftest.$ac_ext
4632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4633 echo "${ECHO_T}$ac_header_preproc" >&6
4634
4635 # So?  What about this header?
4636 case $ac_header_compiler:$ac_header_preproc in
4637   yes:no )
4638     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4642   no:yes )
4643     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4645     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4646 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4647     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4649 esac
4650 echo "$as_me:$LINENO: checking for $ac_header" >&5
4651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4653   echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655   eval "$as_ac_Header=$ac_header_preproc"
4656 fi
4657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4659
4660 fi
4661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4662   cat >>confdefs.h <<_ACEOF
4663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4664 _ACEOF
4665
4666 fi
4667
4668 done
4669
4670
4671
4672
4673
4674
4675
4676 for ac_header in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
4677 do
4678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4680   echo "$as_me:$LINENO: checking for $ac_header" >&5
4681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4683   echo $ECHO_N "(cached) $ECHO_C" >&6
4684 fi
4685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4687 else
4688   # Is the header compilable?
4689 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4691 cat >conftest.$ac_ext <<_ACEOF
4692 #line $LINENO "configure"
4693 #include "confdefs.h"
4694 $ac_includes_default
4695 #include <$ac_header>
4696 _ACEOF
4697 rm -f conftest.$ac_objext
4698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4699   (eval $ac_compile) 2>&5
4700   ac_status=$?
4701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702   (exit $ac_status); } &&
4703          { ac_try='test -s conftest.$ac_objext'
4704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705   (eval $ac_try) 2>&5
4706   ac_status=$?
4707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); }; }; then
4709   ac_header_compiler=yes
4710 else
4711   echo "$as_me: failed program was:" >&5
4712 cat conftest.$ac_ext >&5
4713 ac_header_compiler=no
4714 fi
4715 rm -f conftest.$ac_objext conftest.$ac_ext
4716 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4717 echo "${ECHO_T}$ac_header_compiler" >&6
4718
4719 # Is the header present?
4720 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4722 cat >conftest.$ac_ext <<_ACEOF
4723 #line $LINENO "configure"
4724 #include "confdefs.h"
4725 #include <$ac_header>
4726 _ACEOF
4727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4728   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4729   ac_status=$?
4730   grep -v '^ *+' conftest.er1 >conftest.err
4731   rm -f conftest.er1
4732   cat conftest.err >&5
4733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734   (exit $ac_status); } >/dev/null; then
4735   if test -s conftest.err; then
4736     ac_cpp_err=$ac_c_preproc_warn_flag
4737   else
4738     ac_cpp_err=
4739   fi
4740 else
4741   ac_cpp_err=yes
4742 fi
4743 if test -z "$ac_cpp_err"; then
4744   ac_header_preproc=yes
4745 else
4746   echo "$as_me: failed program was:" >&5
4747   cat conftest.$ac_ext >&5
4748   ac_header_preproc=no
4749 fi
4750 rm -f conftest.err conftest.$ac_ext
4751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4752 echo "${ECHO_T}$ac_header_preproc" >&6
4753
4754 # So?  What about this header?
4755 case $ac_header_compiler:$ac_header_preproc in
4756   yes:no )
4757     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4759     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4761   no:yes )
4762     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4764     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4766     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4768 esac
4769 echo "$as_me:$LINENO: checking for $ac_header" >&5
4770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4772   echo $ECHO_N "(cached) $ECHO_C" >&6
4773 else
4774   eval "$as_ac_Header=$ac_header_preproc"
4775 fi
4776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4778
4779 fi
4780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4781   cat >>confdefs.h <<_ACEOF
4782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4783 _ACEOF
4784
4785 fi
4786
4787 done
4788
4789
4790
4791
4792
4793
4794
4795 for ac_header in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
4796 do
4797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4799   echo "$as_me:$LINENO: checking for $ac_header" >&5
4800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4802   echo $ECHO_N "(cached) $ECHO_C" >&6
4803 fi
4804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4806 else
4807   # Is the header compilable?
4808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4810 cat >conftest.$ac_ext <<_ACEOF
4811 #line $LINENO "configure"
4812 #include "confdefs.h"
4813 $ac_includes_default
4814 #include <$ac_header>
4815 _ACEOF
4816 rm -f conftest.$ac_objext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818   (eval $ac_compile) 2>&5
4819   ac_status=$?
4820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821   (exit $ac_status); } &&
4822          { ac_try='test -s conftest.$ac_objext'
4823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824   (eval $ac_try) 2>&5
4825   ac_status=$?
4826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827   (exit $ac_status); }; }; then
4828   ac_header_compiler=yes
4829 else
4830   echo "$as_me: failed program was:" >&5
4831 cat conftest.$ac_ext >&5
4832 ac_header_compiler=no
4833 fi
4834 rm -f conftest.$ac_objext conftest.$ac_ext
4835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4836 echo "${ECHO_T}$ac_header_compiler" >&6
4837
4838 # Is the header present?
4839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4841 cat >conftest.$ac_ext <<_ACEOF
4842 #line $LINENO "configure"
4843 #include "confdefs.h"
4844 #include <$ac_header>
4845 _ACEOF
4846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4847   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4848   ac_status=$?
4849   grep -v '^ *+' conftest.er1 >conftest.err
4850   rm -f conftest.er1
4851   cat conftest.err >&5
4852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853   (exit $ac_status); } >/dev/null; then
4854   if test -s conftest.err; then
4855     ac_cpp_err=$ac_c_preproc_warn_flag
4856   else
4857     ac_cpp_err=
4858   fi
4859 else
4860   ac_cpp_err=yes
4861 fi
4862 if test -z "$ac_cpp_err"; then
4863   ac_header_preproc=yes
4864 else
4865   echo "$as_me: failed program was:" >&5
4866   cat conftest.$ac_ext >&5
4867   ac_header_preproc=no
4868 fi
4869 rm -f conftest.err conftest.$ac_ext
4870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4871 echo "${ECHO_T}$ac_header_preproc" >&6
4872
4873 # So?  What about this header?
4874 case $ac_header_compiler:$ac_header_preproc in
4875   yes:no )
4876     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4880   no:yes )
4881     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4883     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4884 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4885     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4887 esac
4888 echo "$as_me:$LINENO: checking for $ac_header" >&5
4889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4891   echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893   eval "$as_ac_Header=$ac_header_preproc"
4894 fi
4895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4897
4898 fi
4899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4900   cat >>confdefs.h <<_ACEOF
4901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4902 _ACEOF
4903
4904 fi
4905
4906 done
4907
4908
4909
4910
4911
4912
4913 for ac_header in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
4914 do
4915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4917   echo "$as_me:$LINENO: checking for $ac_header" >&5
4918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4920   echo $ECHO_N "(cached) $ECHO_C" >&6
4921 fi
4922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4924 else
4925   # Is the header compilable?
4926 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4928 cat >conftest.$ac_ext <<_ACEOF
4929 #line $LINENO "configure"
4930 #include "confdefs.h"
4931 $ac_includes_default
4932 #include <$ac_header>
4933 _ACEOF
4934 rm -f conftest.$ac_objext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936   (eval $ac_compile) 2>&5
4937   ac_status=$?
4938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939   (exit $ac_status); } &&
4940          { ac_try='test -s conftest.$ac_objext'
4941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942   (eval $ac_try) 2>&5
4943   ac_status=$?
4944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945   (exit $ac_status); }; }; then
4946   ac_header_compiler=yes
4947 else
4948   echo "$as_me: failed program was:" >&5
4949 cat conftest.$ac_ext >&5
4950 ac_header_compiler=no
4951 fi
4952 rm -f conftest.$ac_objext conftest.$ac_ext
4953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4954 echo "${ECHO_T}$ac_header_compiler" >&6
4955
4956 # Is the header present?
4957 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4958 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4959 cat >conftest.$ac_ext <<_ACEOF
4960 #line $LINENO "configure"
4961 #include "confdefs.h"
4962 #include <$ac_header>
4963 _ACEOF
4964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4965   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4966   ac_status=$?
4967   grep -v '^ *+' conftest.er1 >conftest.err
4968   rm -f conftest.er1
4969   cat conftest.err >&5
4970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971   (exit $ac_status); } >/dev/null; then
4972   if test -s conftest.err; then
4973     ac_cpp_err=$ac_c_preproc_warn_flag
4974   else
4975     ac_cpp_err=
4976   fi
4977 else
4978   ac_cpp_err=yes
4979 fi
4980 if test -z "$ac_cpp_err"; then
4981   ac_header_preproc=yes
4982 else
4983   echo "$as_me: failed program was:" >&5
4984   cat conftest.$ac_ext >&5
4985   ac_header_preproc=no
4986 fi
4987 rm -f conftest.err conftest.$ac_ext
4988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4989 echo "${ECHO_T}$ac_header_preproc" >&6
4990
4991 # So?  What about this header?
4992 case $ac_header_compiler:$ac_header_preproc in
4993   yes:no )
4994     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4996     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4998   no:yes )
4999     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5001     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5005 esac
5006 echo "$as_me:$LINENO: checking for $ac_header" >&5
5007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5009   echo $ECHO_N "(cached) $ECHO_C" >&6
5010 else
5011   eval "$as_ac_Header=$ac_header_preproc"
5012 fi
5013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5015
5016 fi
5017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5018   cat >>confdefs.h <<_ACEOF
5019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5020 _ACEOF
5021
5022 fi
5023
5024 done
5025
5026
5027
5028 for ac_header in sys/syslog.h syslog.h
5029 do
5030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5032   echo "$as_me:$LINENO: checking for $ac_header" >&5
5033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5035   echo $ECHO_N "(cached) $ECHO_C" >&6
5036 fi
5037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5039 else
5040   # Is the header compilable?
5041 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5043 cat >conftest.$ac_ext <<_ACEOF
5044 #line $LINENO "configure"
5045 #include "confdefs.h"
5046 $ac_includes_default
5047 #include <$ac_header>
5048 _ACEOF
5049 rm -f conftest.$ac_objext
5050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5051   (eval $ac_compile) 2>&5
5052   ac_status=$?
5053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054   (exit $ac_status); } &&
5055          { ac_try='test -s conftest.$ac_objext'
5056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057   (eval $ac_try) 2>&5
5058   ac_status=$?
5059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060   (exit $ac_status); }; }; then
5061   ac_header_compiler=yes
5062 else
5063   echo "$as_me: failed program was:" >&5
5064 cat conftest.$ac_ext >&5
5065 ac_header_compiler=no
5066 fi
5067 rm -f conftest.$ac_objext conftest.$ac_ext
5068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5069 echo "${ECHO_T}$ac_header_compiler" >&6
5070
5071 # Is the header present?
5072 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5074 cat >conftest.$ac_ext <<_ACEOF
5075 #line $LINENO "configure"
5076 #include "confdefs.h"
5077 #include <$ac_header>
5078 _ACEOF
5079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5080   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5081   ac_status=$?
5082   grep -v '^ *+' conftest.er1 >conftest.err
5083   rm -f conftest.er1
5084   cat conftest.err >&5
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); } >/dev/null; then
5087   if test -s conftest.err; then
5088     ac_cpp_err=$ac_c_preproc_warn_flag
5089   else
5090     ac_cpp_err=
5091   fi
5092 else
5093   ac_cpp_err=yes
5094 fi
5095 if test -z "$ac_cpp_err"; then
5096   ac_header_preproc=yes
5097 else
5098   echo "$as_me: failed program was:" >&5
5099   cat conftest.$ac_ext >&5
5100   ac_header_preproc=no
5101 fi
5102 rm -f conftest.err conftest.$ac_ext
5103 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5104 echo "${ECHO_T}$ac_header_preproc" >&6
5105
5106 # So?  What about this header?
5107 case $ac_header_compiler:$ac_header_preproc in
5108   yes:no )
5109     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5111     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5113   no:yes )
5114     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5116     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5118     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5120 esac
5121 echo "$as_me:$LINENO: checking for $ac_header" >&5
5122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5124   echo $ECHO_N "(cached) $ECHO_C" >&6
5125 else
5126   eval "$as_ac_Header=$ac_header_preproc"
5127 fi
5128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5130
5131 fi
5132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5133   cat >>confdefs.h <<_ACEOF
5134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5135 _ACEOF
5136
5137 fi
5138
5139 done
5140
5141
5142 #
5143 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
5144 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
5145 #
5146 case "$host_os" in
5147     *hpux*)
5148                 cat >conftest.$ac_ext <<_ACEOF
5149 #line $LINENO "configure"
5150 #include "confdefs.h"
5151 #include <shadow.h>
5152 int
5153 main ()
5154 {
5155 struct spwd testme
5156   ;
5157   return 0;
5158 }
5159 _ACEOF
5160 rm -f conftest.$ac_objext
5161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5162   (eval $ac_compile) 2>&5
5163   ac_status=$?
5164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165   (exit $ac_status); } &&
5166          { ac_try='test -s conftest.$ac_objext'
5167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168   (eval $ac_try) 2>&5
5169   ac_status=$?
5170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171   (exit $ac_status); }; }; then
5172   ac_cv_header_shadow_h=yes
5173 else
5174   echo "$as_me: failed program was:" >&5
5175 cat conftest.$ac_ext >&5
5176 ac_cv_header_shadow_h=no
5177 fi
5178 rm -f conftest.$ac_objext conftest.$ac_ext
5179                 if test x"$ac_cv_header_shadow_h" = x"yes"; then
5180
5181 cat >>confdefs.h <<\_ACEOF
5182 #define HAVE_SHADOW_H 1
5183 _ACEOF
5184
5185                 fi
5186         ;;
5187 esac
5188
5189
5190
5191
5192
5193 for ac_header in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
5194 do
5195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5197   echo "$as_me:$LINENO: checking for $ac_header" >&5
5198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5200   echo $ECHO_N "(cached) $ECHO_C" >&6
5201 fi
5202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5204 else
5205   # Is the header compilable?
5206 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5208 cat >conftest.$ac_ext <<_ACEOF
5209 #line $LINENO "configure"
5210 #include "confdefs.h"
5211 $ac_includes_default
5212 #include <$ac_header>
5213 _ACEOF
5214 rm -f conftest.$ac_objext
5215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5216   (eval $ac_compile) 2>&5
5217   ac_status=$?
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); } &&
5220          { ac_try='test -s conftest.$ac_objext'
5221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222   (eval $ac_try) 2>&5
5223   ac_status=$?
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); }; }; then
5226   ac_header_compiler=yes
5227 else
5228   echo "$as_me: failed program was:" >&5
5229 cat conftest.$ac_ext >&5
5230 ac_header_compiler=no
5231 fi
5232 rm -f conftest.$ac_objext conftest.$ac_ext
5233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5234 echo "${ECHO_T}$ac_header_compiler" >&6
5235
5236 # Is the header present?
5237 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5238 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5239 cat >conftest.$ac_ext <<_ACEOF
5240 #line $LINENO "configure"
5241 #include "confdefs.h"
5242 #include <$ac_header>
5243 _ACEOF
5244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5245   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5246   ac_status=$?
5247   grep -v '^ *+' conftest.er1 >conftest.err
5248   rm -f conftest.er1
5249   cat conftest.err >&5
5250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251   (exit $ac_status); } >/dev/null; then
5252   if test -s conftest.err; then
5253     ac_cpp_err=$ac_c_preproc_warn_flag
5254   else
5255     ac_cpp_err=
5256   fi
5257 else
5258   ac_cpp_err=yes
5259 fi
5260 if test -z "$ac_cpp_err"; then
5261   ac_header_preproc=yes
5262 else
5263   echo "$as_me: failed program was:" >&5
5264   cat conftest.$ac_ext >&5
5265   ac_header_preproc=no
5266 fi
5267 rm -f conftest.err conftest.$ac_ext
5268 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5269 echo "${ECHO_T}$ac_header_preproc" >&6
5270
5271 # So?  What about this header?
5272 case $ac_header_compiler:$ac_header_preproc in
5273   yes:no )
5274     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5276     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5278   no:yes )
5279     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5281     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5285 esac
5286 echo "$as_me:$LINENO: checking for $ac_header" >&5
5287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5289   echo $ECHO_N "(cached) $ECHO_C" >&6
5290 else
5291   eval "$as_ac_Header=$ac_header_preproc"
5292 fi
5293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5295
5296 fi
5297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5298   cat >>confdefs.h <<_ACEOF
5299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5300 _ACEOF
5301
5302 fi
5303
5304 done
5305
5306
5307
5308
5309
5310
5311
5312 for ac_header in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
5313 do
5314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5316   echo "$as_me:$LINENO: checking for $ac_header" >&5
5317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5319   echo $ECHO_N "(cached) $ECHO_C" >&6
5320 fi
5321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5323 else
5324   # Is the header compilable?
5325 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5327 cat >conftest.$ac_ext <<_ACEOF
5328 #line $LINENO "configure"
5329 #include "confdefs.h"
5330 $ac_includes_default
5331 #include <$ac_header>
5332 _ACEOF
5333 rm -f conftest.$ac_objext
5334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5335   (eval $ac_compile) 2>&5
5336   ac_status=$?
5337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338   (exit $ac_status); } &&
5339          { ac_try='test -s conftest.$ac_objext'
5340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341   (eval $ac_try) 2>&5
5342   ac_status=$?
5343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344   (exit $ac_status); }; }; then
5345   ac_header_compiler=yes
5346 else
5347   echo "$as_me: failed program was:" >&5
5348 cat conftest.$ac_ext >&5
5349 ac_header_compiler=no
5350 fi
5351 rm -f conftest.$ac_objext conftest.$ac_ext
5352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5353 echo "${ECHO_T}$ac_header_compiler" >&6
5354
5355 # Is the header present?
5356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5358 cat >conftest.$ac_ext <<_ACEOF
5359 #line $LINENO "configure"
5360 #include "confdefs.h"
5361 #include <$ac_header>
5362 _ACEOF
5363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5364   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5365   ac_status=$?
5366   grep -v '^ *+' conftest.er1 >conftest.err
5367   rm -f conftest.er1
5368   cat conftest.err >&5
5369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370   (exit $ac_status); } >/dev/null; then
5371   if test -s conftest.err; then
5372     ac_cpp_err=$ac_c_preproc_warn_flag
5373   else
5374     ac_cpp_err=
5375   fi
5376 else
5377   ac_cpp_err=yes
5378 fi
5379 if test -z "$ac_cpp_err"; then
5380   ac_header_preproc=yes
5381 else
5382   echo "$as_me: failed program was:" >&5
5383   cat conftest.$ac_ext >&5
5384   ac_header_preproc=no
5385 fi
5386 rm -f conftest.err conftest.$ac_ext
5387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5388 echo "${ECHO_T}$ac_header_preproc" >&6
5389
5390 # So?  What about this header?
5391 case $ac_header_compiler:$ac_header_preproc in
5392   yes:no )
5393     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5397   no:yes )
5398     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5400     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5404 esac
5405 echo "$as_me:$LINENO: checking for $ac_header" >&5
5406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5408   echo $ECHO_N "(cached) $ECHO_C" >&6
5409 else
5410   eval "$as_ac_Header=$ac_header_preproc"
5411 fi
5412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5414
5415 fi
5416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5417   cat >>confdefs.h <<_ACEOF
5418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5419 _ACEOF
5420
5421 fi
5422
5423 done
5424
5425
5426
5427 for ac_header in stropts.h poll.h
5428 do
5429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5431   echo "$as_me:$LINENO: checking for $ac_header" >&5
5432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5434   echo $ECHO_N "(cached) $ECHO_C" >&6
5435 fi
5436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5438 else
5439   # Is the header compilable?
5440 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5442 cat >conftest.$ac_ext <<_ACEOF
5443 #line $LINENO "configure"
5444 #include "confdefs.h"
5445 $ac_includes_default
5446 #include <$ac_header>
5447 _ACEOF
5448 rm -f conftest.$ac_objext
5449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5450   (eval $ac_compile) 2>&5
5451   ac_status=$?
5452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453   (exit $ac_status); } &&
5454          { ac_try='test -s conftest.$ac_objext'
5455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456   (eval $ac_try) 2>&5
5457   ac_status=$?
5458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459   (exit $ac_status); }; }; then
5460   ac_header_compiler=yes
5461 else
5462   echo "$as_me: failed program was:" >&5
5463 cat conftest.$ac_ext >&5
5464 ac_header_compiler=no
5465 fi
5466 rm -f conftest.$ac_objext conftest.$ac_ext
5467 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5468 echo "${ECHO_T}$ac_header_compiler" >&6
5469
5470 # Is the header present?
5471 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5473 cat >conftest.$ac_ext <<_ACEOF
5474 #line $LINENO "configure"
5475 #include "confdefs.h"
5476 #include <$ac_header>
5477 _ACEOF
5478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5479   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5480   ac_status=$?
5481   grep -v '^ *+' conftest.er1 >conftest.err
5482   rm -f conftest.er1
5483   cat conftest.err >&5
5484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485   (exit $ac_status); } >/dev/null; then
5486   if test -s conftest.err; then
5487     ac_cpp_err=$ac_c_preproc_warn_flag
5488   else
5489     ac_cpp_err=
5490   fi
5491 else
5492   ac_cpp_err=yes
5493 fi
5494 if test -z "$ac_cpp_err"; then
5495   ac_header_preproc=yes
5496 else
5497   echo "$as_me: failed program was:" >&5
5498   cat conftest.$ac_ext >&5
5499   ac_header_preproc=no
5500 fi
5501 rm -f conftest.err conftest.$ac_ext
5502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5503 echo "${ECHO_T}$ac_header_preproc" >&6
5504
5505 # So?  What about this header?
5506 case $ac_header_compiler:$ac_header_preproc in
5507   yes:no )
5508     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5512   no:yes )
5513     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5515     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5517     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5519 esac
5520 echo "$as_me:$LINENO: checking for $ac_header" >&5
5521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5523   echo $ECHO_N "(cached) $ECHO_C" >&6
5524 else
5525   eval "$as_ac_Header=$ac_header_preproc"
5526 fi
5527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5529
5530 fi
5531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5532   cat >>confdefs.h <<_ACEOF
5533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5534 _ACEOF
5535
5536 fi
5537
5538 done
5539
5540
5541
5542
5543 for ac_header in sys/capability.h syscall.h sys/syscall.h
5544 do
5545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5547   echo "$as_me:$LINENO: checking for $ac_header" >&5
5548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5550   echo $ECHO_N "(cached) $ECHO_C" >&6
5551 fi
5552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5554 else
5555   # Is the header compilable?
5556 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5558 cat >conftest.$ac_ext <<_ACEOF
5559 #line $LINENO "configure"
5560 #include "confdefs.h"
5561 $ac_includes_default
5562 #include <$ac_header>
5563 _ACEOF
5564 rm -f conftest.$ac_objext
5565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5566   (eval $ac_compile) 2>&5
5567   ac_status=$?
5568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569   (exit $ac_status); } &&
5570          { ac_try='test -s conftest.$ac_objext'
5571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572   (eval $ac_try) 2>&5
5573   ac_status=$?
5574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575   (exit $ac_status); }; }; then
5576   ac_header_compiler=yes
5577 else
5578   echo "$as_me: failed program was:" >&5
5579 cat conftest.$ac_ext >&5
5580 ac_header_compiler=no
5581 fi
5582 rm -f conftest.$ac_objext conftest.$ac_ext
5583 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5584 echo "${ECHO_T}$ac_header_compiler" >&6
5585
5586 # Is the header present?
5587 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5588 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5589 cat >conftest.$ac_ext <<_ACEOF
5590 #line $LINENO "configure"
5591 #include "confdefs.h"
5592 #include <$ac_header>
5593 _ACEOF
5594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5595   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5596   ac_status=$?
5597   grep -v '^ *+' conftest.er1 >conftest.err
5598   rm -f conftest.er1
5599   cat conftest.err >&5
5600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601   (exit $ac_status); } >/dev/null; then
5602   if test -s conftest.err; then
5603     ac_cpp_err=$ac_c_preproc_warn_flag
5604   else
5605     ac_cpp_err=
5606   fi
5607 else
5608   ac_cpp_err=yes
5609 fi
5610 if test -z "$ac_cpp_err"; then
5611   ac_header_preproc=yes
5612 else
5613   echo "$as_me: failed program was:" >&5
5614   cat conftest.$ac_ext >&5
5615   ac_header_preproc=no
5616 fi
5617 rm -f conftest.err conftest.$ac_ext
5618 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5619 echo "${ECHO_T}$ac_header_preproc" >&6
5620
5621 # So?  What about this header?
5622 case $ac_header_compiler:$ac_header_preproc in
5623   yes:no )
5624     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5626     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5628   no:yes )
5629     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5631     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5632 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5633     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5635 esac
5636 echo "$as_me:$LINENO: checking for $ac_header" >&5
5637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5639   echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641   eval "$as_ac_Header=$ac_header_preproc"
5642 fi
5643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5645
5646 fi
5647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5648   cat >>confdefs.h <<_ACEOF
5649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5650 _ACEOF
5651
5652 fi
5653
5654 done
5655
5656
5657
5658
5659 for ac_header in sys/acl.h sys/cdefs.h glob.h
5660 do
5661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5663   echo "$as_me:$LINENO: checking for $ac_header" >&5
5664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5666   echo $ECHO_N "(cached) $ECHO_C" >&6
5667 fi
5668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5670 else
5671   # Is the header compilable?
5672 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5674 cat >conftest.$ac_ext <<_ACEOF
5675 #line $LINENO "configure"
5676 #include "confdefs.h"
5677 $ac_includes_default
5678 #include <$ac_header>
5679 _ACEOF
5680 rm -f conftest.$ac_objext
5681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5682   (eval $ac_compile) 2>&5
5683   ac_status=$?
5684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685   (exit $ac_status); } &&
5686          { ac_try='test -s conftest.$ac_objext'
5687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688   (eval $ac_try) 2>&5
5689   ac_status=$?
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); }; }; then
5692   ac_header_compiler=yes
5693 else
5694   echo "$as_me: failed program was:" >&5
5695 cat conftest.$ac_ext >&5
5696 ac_header_compiler=no
5697 fi
5698 rm -f conftest.$ac_objext conftest.$ac_ext
5699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5700 echo "${ECHO_T}$ac_header_compiler" >&6
5701
5702 # Is the header present?
5703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5705 cat >conftest.$ac_ext <<_ACEOF
5706 #line $LINENO "configure"
5707 #include "confdefs.h"
5708 #include <$ac_header>
5709 _ACEOF
5710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5711   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5712   ac_status=$?
5713   grep -v '^ *+' conftest.er1 >conftest.err
5714   rm -f conftest.er1
5715   cat conftest.err >&5
5716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717   (exit $ac_status); } >/dev/null; then
5718   if test -s conftest.err; then
5719     ac_cpp_err=$ac_c_preproc_warn_flag
5720   else
5721     ac_cpp_err=
5722   fi
5723 else
5724   ac_cpp_err=yes
5725 fi
5726 if test -z "$ac_cpp_err"; then
5727   ac_header_preproc=yes
5728 else
5729   echo "$as_me: failed program was:" >&5
5730   cat conftest.$ac_ext >&5
5731   ac_header_preproc=no
5732 fi
5733 rm -f conftest.err conftest.$ac_ext
5734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5735 echo "${ECHO_T}$ac_header_preproc" >&6
5736
5737 # So?  What about this header?
5738 case $ac_header_compiler:$ac_header_preproc in
5739   yes:no )
5740     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5744   no:yes )
5745     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5747     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5749     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5751 esac
5752 echo "$as_me:$LINENO: checking for $ac_header" >&5
5753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5755   echo $ECHO_N "(cached) $ECHO_C" >&6
5756 else
5757   eval "$as_ac_Header=$ac_header_preproc"
5758 fi
5759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5761
5762 fi
5763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5764   cat >>confdefs.h <<_ACEOF
5765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5766 _ACEOF
5767
5768 fi
5769
5770 done
5771
5772
5773 # For experimental utmp support (lastlog on some BSD-like systems)
5774
5775
5776
5777 for ac_header in utmp.h utmpx.h lastlog.h
5778 do
5779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5781   echo "$as_me:$LINENO: checking for $ac_header" >&5
5782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5784   echo $ECHO_N "(cached) $ECHO_C" >&6
5785 fi
5786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5788 else
5789   # Is the header compilable?
5790 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5792 cat >conftest.$ac_ext <<_ACEOF
5793 #line $LINENO "configure"
5794 #include "confdefs.h"
5795 $ac_includes_default
5796 #include <$ac_header>
5797 _ACEOF
5798 rm -f conftest.$ac_objext
5799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5800   (eval $ac_compile) 2>&5
5801   ac_status=$?
5802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803   (exit $ac_status); } &&
5804          { ac_try='test -s conftest.$ac_objext'
5805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806   (eval $ac_try) 2>&5
5807   ac_status=$?
5808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809   (exit $ac_status); }; }; then
5810   ac_header_compiler=yes
5811 else
5812   echo "$as_me: failed program was:" >&5
5813 cat conftest.$ac_ext >&5
5814 ac_header_compiler=no
5815 fi
5816 rm -f conftest.$ac_objext conftest.$ac_ext
5817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5818 echo "${ECHO_T}$ac_header_compiler" >&6
5819
5820 # Is the header present?
5821 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5823 cat >conftest.$ac_ext <<_ACEOF
5824 #line $LINENO "configure"
5825 #include "confdefs.h"
5826 #include <$ac_header>
5827 _ACEOF
5828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5829   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5830   ac_status=$?
5831   grep -v '^ *+' conftest.er1 >conftest.err
5832   rm -f conftest.er1
5833   cat conftest.err >&5
5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); } >/dev/null; then
5836   if test -s conftest.err; then
5837     ac_cpp_err=$ac_c_preproc_warn_flag
5838   else
5839     ac_cpp_err=
5840   fi
5841 else
5842   ac_cpp_err=yes
5843 fi
5844 if test -z "$ac_cpp_err"; then
5845   ac_header_preproc=yes
5846 else
5847   echo "$as_me: failed program was:" >&5
5848   cat conftest.$ac_ext >&5
5849   ac_header_preproc=no
5850 fi
5851 rm -f conftest.err conftest.$ac_ext
5852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5853 echo "${ECHO_T}$ac_header_preproc" >&6
5854
5855 # So?  What about this header?
5856 case $ac_header_compiler:$ac_header_preproc in
5857   yes:no )
5858     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5860     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5862   no:yes )
5863     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5865     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5867     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5869 esac
5870 echo "$as_me:$LINENO: checking for $ac_header" >&5
5871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5873   echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875   eval "$as_ac_Header=$ac_header_preproc"
5876 fi
5877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5879
5880 fi
5881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5882   cat >>confdefs.h <<_ACEOF
5883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5884 _ACEOF
5885
5886 fi
5887
5888 done
5889
5890
5891 # For quotas on Veritas VxFS filesystems
5892
5893 for ac_header in sys/fs/vx_quota.h
5894 do
5895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5897   echo "$as_me:$LINENO: checking for $ac_header" >&5
5898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5900   echo $ECHO_N "(cached) $ECHO_C" >&6
5901 fi
5902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5904 else
5905   # Is the header compilable?
5906 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5908 cat >conftest.$ac_ext <<_ACEOF
5909 #line $LINENO "configure"
5910 #include "confdefs.h"
5911 $ac_includes_default
5912 #include <$ac_header>
5913 _ACEOF
5914 rm -f conftest.$ac_objext
5915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5916   (eval $ac_compile) 2>&5
5917   ac_status=$?
5918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919   (exit $ac_status); } &&
5920          { ac_try='test -s conftest.$ac_objext'
5921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922   (eval $ac_try) 2>&5
5923   ac_status=$?
5924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925   (exit $ac_status); }; }; then
5926   ac_header_compiler=yes
5927 else
5928   echo "$as_me: failed program was:" >&5
5929 cat conftest.$ac_ext >&5
5930 ac_header_compiler=no
5931 fi
5932 rm -f conftest.$ac_objext conftest.$ac_ext
5933 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5934 echo "${ECHO_T}$ac_header_compiler" >&6
5935
5936 # Is the header present?
5937 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5939 cat >conftest.$ac_ext <<_ACEOF
5940 #line $LINENO "configure"
5941 #include "confdefs.h"
5942 #include <$ac_header>
5943 _ACEOF
5944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5945   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5946   ac_status=$?
5947   grep -v '^ *+' conftest.er1 >conftest.err
5948   rm -f conftest.er1
5949   cat conftest.err >&5
5950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951   (exit $ac_status); } >/dev/null; then
5952   if test -s conftest.err; then
5953     ac_cpp_err=$ac_c_preproc_warn_flag
5954   else
5955     ac_cpp_err=
5956   fi
5957 else
5958   ac_cpp_err=yes
5959 fi
5960 if test -z "$ac_cpp_err"; then
5961   ac_header_preproc=yes
5962 else
5963   echo "$as_me: failed program was:" >&5
5964   cat conftest.$ac_ext >&5
5965   ac_header_preproc=no
5966 fi
5967 rm -f conftest.err conftest.$ac_ext
5968 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5969 echo "${ECHO_T}$ac_header_preproc" >&6
5970
5971 # So?  What about this header?
5972 case $ac_header_compiler:$ac_header_preproc in
5973   yes:no )
5974     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5976     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5978   no:yes )
5979     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5981     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5983     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5985 esac
5986 echo "$as_me:$LINENO: checking for $ac_header" >&5
5987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5989   echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991   eval "$as_ac_Header=$ac_header_preproc"
5992 fi
5993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5995
5996 fi
5997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5998   cat >>confdefs.h <<_ACEOF
5999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6000 _ACEOF
6001
6002 fi
6003
6004 done
6005
6006
6007 # For quotas on Linux XFS filesystems
6008
6009 for ac_header in linux/xqm.h
6010 do
6011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6013   echo "$as_me:$LINENO: checking for $ac_header" >&5
6014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6016   echo $ECHO_N "(cached) $ECHO_C" >&6
6017 fi
6018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6020 else
6021   # Is the header compilable?
6022 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6024 cat >conftest.$ac_ext <<_ACEOF
6025 #line $LINENO "configure"
6026 #include "confdefs.h"
6027 $ac_includes_default
6028 #include <$ac_header>
6029 _ACEOF
6030 rm -f conftest.$ac_objext
6031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6032   (eval $ac_compile) 2>&5
6033   ac_status=$?
6034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035   (exit $ac_status); } &&
6036          { ac_try='test -s conftest.$ac_objext'
6037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038   (eval $ac_try) 2>&5
6039   ac_status=$?
6040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041   (exit $ac_status); }; }; then
6042   ac_header_compiler=yes
6043 else
6044   echo "$as_me: failed program was:" >&5
6045 cat conftest.$ac_ext >&5
6046 ac_header_compiler=no
6047 fi
6048 rm -f conftest.$ac_objext conftest.$ac_ext
6049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6050 echo "${ECHO_T}$ac_header_compiler" >&6
6051
6052 # Is the header present?
6053 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6055 cat >conftest.$ac_ext <<_ACEOF
6056 #line $LINENO "configure"
6057 #include "confdefs.h"
6058 #include <$ac_header>
6059 _ACEOF
6060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6061   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6062   ac_status=$?
6063   grep -v '^ *+' conftest.er1 >conftest.err
6064   rm -f conftest.er1
6065   cat conftest.err >&5
6066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067   (exit $ac_status); } >/dev/null; then
6068   if test -s conftest.err; then
6069     ac_cpp_err=$ac_c_preproc_warn_flag
6070   else
6071     ac_cpp_err=
6072   fi
6073 else
6074   ac_cpp_err=yes
6075 fi
6076 if test -z "$ac_cpp_err"; then
6077   ac_header_preproc=yes
6078 else
6079   echo "$as_me: failed program was:" >&5
6080   cat conftest.$ac_ext >&5
6081   ac_header_preproc=no
6082 fi
6083 rm -f conftest.err conftest.$ac_ext
6084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6085 echo "${ECHO_T}$ac_header_preproc" >&6
6086
6087 # So?  What about this header?
6088 case $ac_header_compiler:$ac_header_preproc in
6089   yes:no )
6090     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6092     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6094   no:yes )
6095     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6097     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6098 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6099     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6101 esac
6102 echo "$as_me:$LINENO: checking for $ac_header" >&5
6103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6105   echo $ECHO_N "(cached) $ECHO_C" >&6
6106 else
6107   eval "$as_ac_Header=$ac_header_preproc"
6108 fi
6109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6111
6112 fi
6113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6114   cat >>confdefs.h <<_ACEOF
6115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6116 _ACEOF
6117
6118 fi
6119
6120 done
6121
6122
6123 echo "$as_me:$LINENO: checking for int" >&5
6124 echo $ECHO_N "checking for int... $ECHO_C" >&6
6125 if test "${ac_cv_type_int+set}" = set; then
6126   echo $ECHO_N "(cached) $ECHO_C" >&6
6127 else
6128   cat >conftest.$ac_ext <<_ACEOF
6129 #line $LINENO "configure"
6130 #include "confdefs.h"
6131 $ac_includes_default
6132 int
6133 main ()
6134 {
6135 if ((int *) 0)
6136   return 0;
6137 if (sizeof (int))
6138   return 0;
6139   ;
6140   return 0;
6141 }
6142 _ACEOF
6143 rm -f conftest.$ac_objext
6144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6145   (eval $ac_compile) 2>&5
6146   ac_status=$?
6147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148   (exit $ac_status); } &&
6149          { ac_try='test -s conftest.$ac_objext'
6150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151   (eval $ac_try) 2>&5
6152   ac_status=$?
6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154   (exit $ac_status); }; }; then
6155   ac_cv_type_int=yes
6156 else
6157   echo "$as_me: failed program was:" >&5
6158 cat conftest.$ac_ext >&5
6159 ac_cv_type_int=no
6160 fi
6161 rm -f conftest.$ac_objext conftest.$ac_ext
6162 fi
6163 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6164 echo "${ECHO_T}$ac_cv_type_int" >&6
6165
6166 echo "$as_me:$LINENO: checking size of int" >&5
6167 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6168 if test "${ac_cv_sizeof_int+set}" = set; then
6169   echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171   if test "$ac_cv_type_int" = yes; then
6172   # The cast to unsigned long works around a bug in the HP C Compiler
6173   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6174   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6175   # This bug is HP SR number 8606223364.
6176   if test "$cross_compiling" = yes; then
6177   # Depending upon the size, compute the lo and hi bounds.
6178 cat >conftest.$ac_ext <<_ACEOF
6179 #line $LINENO "configure"
6180 #include "confdefs.h"
6181 $ac_includes_default
6182 int
6183 main ()
6184 {
6185 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6186 test_array [0] = 0
6187
6188   ;
6189   return 0;
6190 }
6191 _ACEOF
6192 rm -f conftest.$ac_objext
6193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6194   (eval $ac_compile) 2>&5
6195   ac_status=$?
6196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197   (exit $ac_status); } &&
6198          { ac_try='test -s conftest.$ac_objext'
6199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200   (eval $ac_try) 2>&5
6201   ac_status=$?
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); }; }; then
6204   ac_lo=0 ac_mid=0
6205   while :; do
6206     cat >conftest.$ac_ext <<_ACEOF
6207 #line $LINENO "configure"
6208 #include "confdefs.h"
6209 $ac_includes_default
6210 int
6211 main ()
6212 {
6213 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6214 test_array [0] = 0
6215
6216   ;
6217   return 0;
6218 }
6219 _ACEOF
6220 rm -f conftest.$ac_objext
6221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6222   (eval $ac_compile) 2>&5
6223   ac_status=$?
6224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225   (exit $ac_status); } &&
6226          { ac_try='test -s conftest.$ac_objext'
6227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228   (eval $ac_try) 2>&5
6229   ac_status=$?
6230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231   (exit $ac_status); }; }; then
6232   ac_hi=$ac_mid; break
6233 else
6234   echo "$as_me: failed program was:" >&5
6235 cat conftest.$ac_ext >&5
6236 ac_lo=`expr $ac_mid + 1`
6237                     if test $ac_lo -le $ac_mid; then
6238                       ac_lo= ac_hi=
6239                       break
6240                     fi
6241                     ac_mid=`expr 2 '*' $ac_mid + 1`
6242 fi
6243 rm -f conftest.$ac_objext conftest.$ac_ext
6244   done
6245 else
6246   echo "$as_me: failed program was:" >&5
6247 cat conftest.$ac_ext >&5
6248 cat >conftest.$ac_ext <<_ACEOF
6249 #line $LINENO "configure"
6250 #include "confdefs.h"
6251 $ac_includes_default
6252 int
6253 main ()
6254 {
6255 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6256 test_array [0] = 0
6257
6258   ;
6259   return 0;
6260 }
6261 _ACEOF
6262 rm -f conftest.$ac_objext
6263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6264   (eval $ac_compile) 2>&5
6265   ac_status=$?
6266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267   (exit $ac_status); } &&
6268          { ac_try='test -s conftest.$ac_objext'
6269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270   (eval $ac_try) 2>&5
6271   ac_status=$?
6272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273   (exit $ac_status); }; }; then
6274   ac_hi=-1 ac_mid=-1
6275   while :; do
6276     cat >conftest.$ac_ext <<_ACEOF
6277 #line $LINENO "configure"
6278 #include "confdefs.h"
6279 $ac_includes_default
6280 int
6281 main ()
6282 {
6283 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6284 test_array [0] = 0
6285
6286   ;
6287   return 0;
6288 }
6289 _ACEOF
6290 rm -f conftest.$ac_objext
6291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6292   (eval $ac_compile) 2>&5
6293   ac_status=$?
6294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295   (exit $ac_status); } &&
6296          { ac_try='test -s conftest.$ac_objext'
6297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298   (eval $ac_try) 2>&5
6299   ac_status=$?
6300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301   (exit $ac_status); }; }; then
6302   ac_lo=$ac_mid; break
6303 else
6304   echo "$as_me: failed program was:" >&5
6305 cat conftest.$ac_ext >&5
6306 ac_hi=`expr '(' $ac_mid ')' - 1`
6307                        if test $ac_mid -le $ac_hi; then
6308                          ac_lo= ac_hi=
6309                          break
6310                        fi
6311                        ac_mid=`expr 2 '*' $ac_mid`
6312 fi
6313 rm -f conftest.$ac_objext conftest.$ac_ext
6314   done
6315 else
6316   echo "$as_me: failed program was:" >&5
6317 cat conftest.$ac_ext >&5
6318 ac_lo= ac_hi=
6319 fi
6320 rm -f conftest.$ac_objext conftest.$ac_ext
6321 fi
6322 rm -f conftest.$ac_objext conftest.$ac_ext
6323 # Binary search between lo and hi bounds.
6324 while test "x$ac_lo" != "x$ac_hi"; do
6325   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6326   cat >conftest.$ac_ext <<_ACEOF
6327 #line $LINENO "configure"
6328 #include "confdefs.h"
6329 $ac_includes_default
6330 int
6331 main ()
6332 {
6333 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6334 test_array [0] = 0
6335
6336   ;
6337   return 0;
6338 }
6339 _ACEOF
6340 rm -f conftest.$ac_objext
6341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6342   (eval $ac_compile) 2>&5
6343   ac_status=$?
6344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345   (exit $ac_status); } &&
6346          { ac_try='test -s conftest.$ac_objext'
6347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348   (eval $ac_try) 2>&5
6349   ac_status=$?
6350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351   (exit $ac_status); }; }; then
6352   ac_hi=$ac_mid
6353 else
6354   echo "$as_me: failed program was:" >&5
6355 cat conftest.$ac_ext >&5
6356 ac_lo=`expr '(' $ac_mid ')' + 1`
6357 fi
6358 rm -f conftest.$ac_objext conftest.$ac_ext
6359 done
6360 case $ac_lo in
6361 ?*) ac_cv_sizeof_int=$ac_lo;;
6362 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6363 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6364    { (exit 1); exit 1; }; } ;;
6365 esac
6366 else
6367   if test "$cross_compiling" = yes; then
6368   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6369 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6370    { (exit 1); exit 1; }; }
6371 else
6372   cat >conftest.$ac_ext <<_ACEOF
6373 #line $LINENO "configure"
6374 #include "confdefs.h"
6375 $ac_includes_default
6376 long longval () { return (long) (sizeof (int)); }
6377 unsigned long ulongval () { return (long) (sizeof (int)); }
6378 #include <stdio.h>
6379 #include <stdlib.h>
6380 int
6381 main ()
6382 {
6383
6384   FILE *f = fopen ("conftest.val", "w");
6385   if (! f)
6386     exit (1);
6387   if (((long) (sizeof (int))) < 0)
6388     {
6389       long i = longval ();
6390       if (i != ((long) (sizeof (int))))
6391         exit (1);
6392       fprintf (f, "%ld\n", i);
6393     }
6394   else
6395     {
6396       unsigned long i = ulongval ();
6397       if (i != ((long) (sizeof (int))))
6398         exit (1);
6399       fprintf (f, "%lu\n", i);
6400     }
6401   exit (ferror (f) || fclose (f) != 0);
6402
6403   ;
6404   return 0;
6405 }
6406 _ACEOF
6407 rm -f conftest$ac_exeext
6408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6409   (eval $ac_link) 2>&5
6410   ac_status=$?
6411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414   (eval $ac_try) 2>&5
6415   ac_status=$?
6416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417   (exit $ac_status); }; }; then
6418   ac_cv_sizeof_int=`cat conftest.val`
6419 else
6420   echo "$as_me: program exited with status $ac_status" >&5
6421 echo "$as_me: failed program was:" >&5
6422 cat conftest.$ac_ext >&5
6423 ( exit $ac_status )
6424 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6425 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6426    { (exit 1); exit 1; }; }
6427 fi
6428 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6429 fi
6430 fi
6431 rm -f conftest.val
6432 else
6433   ac_cv_sizeof_int=0
6434 fi
6435 fi
6436 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6437 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6438 cat >>confdefs.h <<_ACEOF
6439 #define SIZEOF_INT $ac_cv_sizeof_int
6440 _ACEOF
6441
6442
6443 echo "$as_me:$LINENO: checking for long" >&5
6444 echo $ECHO_N "checking for long... $ECHO_C" >&6
6445 if test "${ac_cv_type_long+set}" = set; then
6446   echo $ECHO_N "(cached) $ECHO_C" >&6
6447 else
6448   cat >conftest.$ac_ext <<_ACEOF
6449 #line $LINENO "configure"
6450 #include "confdefs.h"
6451 $ac_includes_default
6452 int
6453 main ()
6454 {
6455 if ((long *) 0)
6456   return 0;
6457 if (sizeof (long))
6458   return 0;
6459   ;
6460   return 0;
6461 }
6462 _ACEOF
6463 rm -f conftest.$ac_objext
6464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6465   (eval $ac_compile) 2>&5
6466   ac_status=$?
6467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468   (exit $ac_status); } &&
6469          { ac_try='test -s conftest.$ac_objext'
6470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6471   (eval $ac_try) 2>&5
6472   ac_status=$?
6473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474   (exit $ac_status); }; }; then
6475   ac_cv_type_long=yes
6476 else
6477   echo "$as_me: failed program was:" >&5
6478 cat conftest.$ac_ext >&5
6479 ac_cv_type_long=no
6480 fi
6481 rm -f conftest.$ac_objext conftest.$ac_ext
6482 fi
6483 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6484 echo "${ECHO_T}$ac_cv_type_long" >&6
6485
6486 echo "$as_me:$LINENO: checking size of long" >&5
6487 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6488 if test "${ac_cv_sizeof_long+set}" = set; then
6489   echo $ECHO_N "(cached) $ECHO_C" >&6
6490 else
6491   if test "$ac_cv_type_long" = yes; then
6492   # The cast to unsigned long works around a bug in the HP C Compiler
6493   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6494   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6495   # This bug is HP SR number 8606223364.
6496   if test "$cross_compiling" = yes; then
6497   # Depending upon the size, compute the lo and hi bounds.
6498 cat >conftest.$ac_ext <<_ACEOF
6499 #line $LINENO "configure"
6500 #include "confdefs.h"
6501 $ac_includes_default
6502 int
6503 main ()
6504 {
6505 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6506 test_array [0] = 0
6507
6508   ;
6509   return 0;
6510 }
6511 _ACEOF
6512 rm -f conftest.$ac_objext
6513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6514   (eval $ac_compile) 2>&5
6515   ac_status=$?
6516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517   (exit $ac_status); } &&
6518          { ac_try='test -s conftest.$ac_objext'
6519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520   (eval $ac_try) 2>&5
6521   ac_status=$?
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); }; }; then
6524   ac_lo=0 ac_mid=0
6525   while :; do
6526     cat >conftest.$ac_ext <<_ACEOF
6527 #line $LINENO "configure"
6528 #include "confdefs.h"
6529 $ac_includes_default
6530 int
6531 main ()
6532 {
6533 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6534 test_array [0] = 0
6535
6536   ;
6537   return 0;
6538 }
6539 _ACEOF
6540 rm -f conftest.$ac_objext
6541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6542   (eval $ac_compile) 2>&5
6543   ac_status=$?
6544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545   (exit $ac_status); } &&
6546          { ac_try='test -s conftest.$ac_objext'
6547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548   (eval $ac_try) 2>&5
6549   ac_status=$?
6550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551   (exit $ac_status); }; }; then
6552   ac_hi=$ac_mid; break
6553 else
6554   echo "$as_me: failed program was:" >&5
6555 cat conftest.$ac_ext >&5
6556 ac_lo=`expr $ac_mid + 1`
6557                     if test $ac_lo -le $ac_mid; then
6558                       ac_lo= ac_hi=
6559                       break
6560                     fi
6561                     ac_mid=`expr 2 '*' $ac_mid + 1`
6562 fi
6563 rm -f conftest.$ac_objext conftest.$ac_ext
6564   done
6565 else
6566   echo "$as_me: failed program was:" >&5
6567 cat conftest.$ac_ext >&5
6568 cat >conftest.$ac_ext <<_ACEOF
6569 #line $LINENO "configure"
6570 #include "confdefs.h"
6571 $ac_includes_default
6572 int
6573 main ()
6574 {
6575 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6576 test_array [0] = 0
6577
6578   ;
6579   return 0;
6580 }
6581 _ACEOF
6582 rm -f conftest.$ac_objext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6584   (eval $ac_compile) 2>&5
6585   ac_status=$?
6586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587   (exit $ac_status); } &&
6588          { ac_try='test -s conftest.$ac_objext'
6589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590   (eval $ac_try) 2>&5
6591   ac_status=$?
6592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593   (exit $ac_status); }; }; then
6594   ac_hi=-1 ac_mid=-1
6595   while :; do
6596     cat >conftest.$ac_ext <<_ACEOF
6597 #line $LINENO "configure"
6598 #include "confdefs.h"
6599 $ac_includes_default
6600 int
6601 main ()
6602 {
6603 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6604 test_array [0] = 0
6605
6606   ;
6607   return 0;
6608 }
6609 _ACEOF
6610 rm -f conftest.$ac_objext
6611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6612   (eval $ac_compile) 2>&5
6613   ac_status=$?
6614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615   (exit $ac_status); } &&
6616          { ac_try='test -s conftest.$ac_objext'
6617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618   (eval $ac_try) 2>&5
6619   ac_status=$?
6620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621   (exit $ac_status); }; }; then
6622   ac_lo=$ac_mid; break
6623 else
6624   echo "$as_me: failed program was:" >&5
6625 cat conftest.$ac_ext >&5
6626 ac_hi=`expr '(' $ac_mid ')' - 1`
6627                        if test $ac_mid -le $ac_hi; then
6628                          ac_lo= ac_hi=
6629                          break
6630                        fi
6631                        ac_mid=`expr 2 '*' $ac_mid`
6632 fi
6633 rm -f conftest.$ac_objext conftest.$ac_ext
6634   done
6635 else
6636   echo "$as_me: failed program was:" >&5
6637 cat conftest.$ac_ext >&5
6638 ac_lo= ac_hi=
6639 fi
6640 rm -f conftest.$ac_objext conftest.$ac_ext
6641 fi
6642 rm -f conftest.$ac_objext conftest.$ac_ext
6643 # Binary search between lo and hi bounds.
6644 while test "x$ac_lo" != "x$ac_hi"; do
6645   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6646   cat >conftest.$ac_ext <<_ACEOF
6647 #line $LINENO "configure"
6648 #include "confdefs.h"
6649 $ac_includes_default
6650 int
6651 main ()
6652 {
6653 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6654 test_array [0] = 0
6655
6656   ;
6657   return 0;
6658 }
6659 _ACEOF
6660 rm -f conftest.$ac_objext
6661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6662   (eval $ac_compile) 2>&5
6663   ac_status=$?
6664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665   (exit $ac_status); } &&
6666          { ac_try='test -s conftest.$ac_objext'
6667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668   (eval $ac_try) 2>&5
6669   ac_status=$?
6670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671   (exit $ac_status); }; }; then
6672   ac_hi=$ac_mid
6673 else
6674   echo "$as_me: failed program was:" >&5
6675 cat conftest.$ac_ext >&5
6676 ac_lo=`expr '(' $ac_mid ')' + 1`
6677 fi
6678 rm -f conftest.$ac_objext conftest.$ac_ext
6679 done
6680 case $ac_lo in
6681 ?*) ac_cv_sizeof_long=$ac_lo;;
6682 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
6683 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
6684    { (exit 1); exit 1; }; } ;;
6685 esac
6686 else
6687   if test "$cross_compiling" = yes; then
6688   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6689 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6690    { (exit 1); exit 1; }; }
6691 else
6692   cat >conftest.$ac_ext <<_ACEOF
6693 #line $LINENO "configure"
6694 #include "confdefs.h"
6695 $ac_includes_default
6696 long longval () { return (long) (sizeof (long)); }
6697 unsigned long ulongval () { return (long) (sizeof (long)); }
6698 #include <stdio.h>
6699 #include <stdlib.h>
6700 int
6701 main ()
6702 {
6703
6704   FILE *f = fopen ("conftest.val", "w");
6705   if (! f)
6706     exit (1);
6707   if (((long) (sizeof (long))) < 0)
6708     {
6709       long i = longval ();
6710       if (i != ((long) (sizeof (long))))
6711         exit (1);
6712       fprintf (f, "%ld\n", i);
6713     }
6714   else
6715     {
6716       unsigned long i = ulongval ();
6717       if (i != ((long) (sizeof (long))))
6718         exit (1);
6719       fprintf (f, "%lu\n", i);
6720     }
6721   exit (ferror (f) || fclose (f) != 0);
6722
6723   ;
6724   return 0;
6725 }
6726 _ACEOF
6727 rm -f conftest$ac_exeext
6728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6729   (eval $ac_link) 2>&5
6730   ac_status=$?
6731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734   (eval $ac_try) 2>&5
6735   ac_status=$?
6736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737   (exit $ac_status); }; }; then
6738   ac_cv_sizeof_long=`cat conftest.val`
6739 else
6740   echo "$as_me: program exited with status $ac_status" >&5
6741 echo "$as_me: failed program was:" >&5
6742 cat conftest.$ac_ext >&5
6743 ( exit $ac_status )
6744 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
6745 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
6746    { (exit 1); exit 1; }; }
6747 fi
6748 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6749 fi
6750 fi
6751 rm -f conftest.val
6752 else
6753   ac_cv_sizeof_long=0
6754 fi
6755 fi
6756 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6757 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6758 cat >>confdefs.h <<_ACEOF
6759 #define SIZEOF_LONG $ac_cv_sizeof_long
6760 _ACEOF
6761
6762
6763 echo "$as_me:$LINENO: checking for short" >&5
6764 echo $ECHO_N "checking for short... $ECHO_C" >&6
6765 if test "${ac_cv_type_short+set}" = set; then
6766   echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768   cat >conftest.$ac_ext <<_ACEOF
6769 #line $LINENO "configure"
6770 #include "confdefs.h"
6771 $ac_includes_default
6772 int
6773 main ()
6774 {
6775 if ((short *) 0)
6776   return 0;
6777 if (sizeof (short))
6778   return 0;
6779   ;
6780   return 0;
6781 }
6782 _ACEOF
6783 rm -f conftest.$ac_objext
6784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6785   (eval $ac_compile) 2>&5
6786   ac_status=$?
6787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788   (exit $ac_status); } &&
6789          { ac_try='test -s conftest.$ac_objext'
6790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791   (eval $ac_try) 2>&5
6792   ac_status=$?
6793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794   (exit $ac_status); }; }; then
6795   ac_cv_type_short=yes
6796 else
6797   echo "$as_me: failed program was:" >&5
6798 cat conftest.$ac_ext >&5
6799 ac_cv_type_short=no
6800 fi
6801 rm -f conftest.$ac_objext conftest.$ac_ext
6802 fi
6803 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
6804 echo "${ECHO_T}$ac_cv_type_short" >&6
6805
6806 echo "$as_me:$LINENO: checking size of short" >&5
6807 echo $ECHO_N "checking size of short... $ECHO_C" >&6
6808 if test "${ac_cv_sizeof_short+set}" = set; then
6809   echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811   if test "$ac_cv_type_short" = yes; then
6812   # The cast to unsigned long works around a bug in the HP C Compiler
6813   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6814   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6815   # This bug is HP SR number 8606223364.
6816   if test "$cross_compiling" = yes; then
6817   # Depending upon the size, compute the lo and hi bounds.
6818 cat >conftest.$ac_ext <<_ACEOF
6819 #line $LINENO "configure"
6820 #include "confdefs.h"
6821 $ac_includes_default
6822 int
6823 main ()
6824 {
6825 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
6826 test_array [0] = 0
6827
6828   ;
6829   return 0;
6830 }
6831 _ACEOF
6832 rm -f conftest.$ac_objext
6833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6834   (eval $ac_compile) 2>&5
6835   ac_status=$?
6836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837   (exit $ac_status); } &&
6838          { ac_try='test -s conftest.$ac_objext'
6839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840   (eval $ac_try) 2>&5
6841   ac_status=$?
6842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843   (exit $ac_status); }; }; then
6844   ac_lo=0 ac_mid=0
6845   while :; do
6846     cat >conftest.$ac_ext <<_ACEOF
6847 #line $LINENO "configure"
6848 #include "confdefs.h"
6849 $ac_includes_default
6850 int
6851 main ()
6852 {
6853 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6854 test_array [0] = 0
6855
6856   ;
6857   return 0;
6858 }
6859 _ACEOF
6860 rm -f conftest.$ac_objext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6862   (eval $ac_compile) 2>&5
6863   ac_status=$?
6864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865   (exit $ac_status); } &&
6866          { ac_try='test -s conftest.$ac_objext'
6867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868   (eval $ac_try) 2>&5
6869   ac_status=$?
6870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); }; }; then
6872   ac_hi=$ac_mid; break
6873 else
6874   echo "$as_me: failed program was:" >&5
6875 cat conftest.$ac_ext >&5
6876 ac_lo=`expr $ac_mid + 1`
6877                     if test $ac_lo -le $ac_mid; then
6878                       ac_lo= ac_hi=
6879                       break
6880                     fi
6881                     ac_mid=`expr 2 '*' $ac_mid + 1`
6882 fi
6883 rm -f conftest.$ac_objext conftest.$ac_ext
6884   done
6885 else
6886   echo "$as_me: failed program was:" >&5
6887 cat conftest.$ac_ext >&5
6888 cat >conftest.$ac_ext <<_ACEOF
6889 #line $LINENO "configure"
6890 #include "confdefs.h"
6891 $ac_includes_default
6892 int
6893 main ()
6894 {
6895 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
6896 test_array [0] = 0
6897
6898   ;
6899   return 0;
6900 }
6901 _ACEOF
6902 rm -f conftest.$ac_objext
6903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6904   (eval $ac_compile) 2>&5
6905   ac_status=$?
6906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907   (exit $ac_status); } &&
6908          { ac_try='test -s conftest.$ac_objext'
6909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910   (eval $ac_try) 2>&5
6911   ac_status=$?
6912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913   (exit $ac_status); }; }; then
6914   ac_hi=-1 ac_mid=-1
6915   while :; do
6916     cat >conftest.$ac_ext <<_ACEOF
6917 #line $LINENO "configure"
6918 #include "confdefs.h"
6919 $ac_includes_default
6920 int
6921 main ()
6922 {
6923 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
6924 test_array [0] = 0
6925
6926   ;
6927   return 0;
6928 }
6929 _ACEOF
6930 rm -f conftest.$ac_objext
6931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6932   (eval $ac_compile) 2>&5
6933   ac_status=$?
6934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935   (exit $ac_status); } &&
6936          { ac_try='test -s conftest.$ac_objext'
6937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938   (eval $ac_try) 2>&5
6939   ac_status=$?
6940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941   (exit $ac_status); }; }; then
6942   ac_lo=$ac_mid; break
6943 else
6944   echo "$as_me: failed program was:" >&5
6945 cat conftest.$ac_ext >&5
6946 ac_hi=`expr '(' $ac_mid ')' - 1`
6947                        if test $ac_mid -le $ac_hi; then
6948                          ac_lo= ac_hi=
6949                          break
6950                        fi
6951                        ac_mid=`expr 2 '*' $ac_mid`
6952 fi
6953 rm -f conftest.$ac_objext conftest.$ac_ext
6954   done
6955 else
6956   echo "$as_me: failed program was:" >&5
6957 cat conftest.$ac_ext >&5
6958 ac_lo= ac_hi=
6959 fi
6960 rm -f conftest.$ac_objext conftest.$ac_ext
6961 fi
6962 rm -f conftest.$ac_objext conftest.$ac_ext
6963 # Binary search between lo and hi bounds.
6964 while test "x$ac_lo" != "x$ac_hi"; do
6965   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6966   cat >conftest.$ac_ext <<_ACEOF
6967 #line $LINENO "configure"
6968 #include "confdefs.h"
6969 $ac_includes_default
6970 int
6971 main ()
6972 {
6973 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6974 test_array [0] = 0
6975
6976   ;
6977   return 0;
6978 }
6979 _ACEOF
6980 rm -f conftest.$ac_objext
6981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6982   (eval $ac_compile) 2>&5
6983   ac_status=$?
6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985   (exit $ac_status); } &&
6986          { ac_try='test -s conftest.$ac_objext'
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_hi=$ac_mid
6993 else
6994   echo "$as_me: failed program was:" >&5
6995 cat conftest.$ac_ext >&5
6996 ac_lo=`expr '(' $ac_mid ')' + 1`
6997 fi
6998 rm -f conftest.$ac_objext conftest.$ac_ext
6999 done
7000 case $ac_lo in
7001 ?*) ac_cv_sizeof_short=$ac_lo;;
7002 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7003 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7004    { (exit 1); exit 1; }; } ;;
7005 esac
7006 else
7007   if test "$cross_compiling" = yes; then
7008   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7009 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7010    { (exit 1); exit 1; }; }
7011 else
7012   cat >conftest.$ac_ext <<_ACEOF
7013 #line $LINENO "configure"
7014 #include "confdefs.h"
7015 $ac_includes_default
7016 long longval () { return (long) (sizeof (short)); }
7017 unsigned long ulongval () { return (long) (sizeof (short)); }
7018 #include <stdio.h>
7019 #include <stdlib.h>
7020 int
7021 main ()
7022 {
7023
7024   FILE *f = fopen ("conftest.val", "w");
7025   if (! f)
7026     exit (1);
7027   if (((long) (sizeof (short))) < 0)
7028     {
7029       long i = longval ();
7030       if (i != ((long) (sizeof (short))))
7031         exit (1);
7032       fprintf (f, "%ld\n", i);
7033     }
7034   else
7035     {
7036       unsigned long i = ulongval ();
7037       if (i != ((long) (sizeof (short))))
7038         exit (1);
7039       fprintf (f, "%lu\n", i);
7040     }
7041   exit (ferror (f) || fclose (f) != 0);
7042
7043   ;
7044   return 0;
7045 }
7046 _ACEOF
7047 rm -f conftest$ac_exeext
7048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7049   (eval $ac_link) 2>&5
7050   ac_status=$?
7051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054   (eval $ac_try) 2>&5
7055   ac_status=$?
7056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057   (exit $ac_status); }; }; then
7058   ac_cv_sizeof_short=`cat conftest.val`
7059 else
7060   echo "$as_me: program exited with status $ac_status" >&5
7061 echo "$as_me: failed program was:" >&5
7062 cat conftest.$ac_ext >&5
7063 ( exit $ac_status )
7064 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7065 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7066    { (exit 1); exit 1; }; }
7067 fi
7068 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7069 fi
7070 fi
7071 rm -f conftest.val
7072 else
7073   ac_cv_sizeof_short=0
7074 fi
7075 fi
7076 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7077 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7078 cat >>confdefs.h <<_ACEOF
7079 #define SIZEOF_SHORT $ac_cv_sizeof_short
7080 _ACEOF
7081
7082
7083
7084 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7085 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7086 if test "${ac_cv_c_const+set}" = set; then
7087   echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089   cat >conftest.$ac_ext <<_ACEOF
7090 #line $LINENO "configure"
7091 #include "confdefs.h"
7092
7093 int
7094 main ()
7095 {
7096 /* FIXME: Include the comments suggested by Paul. */
7097 #ifndef __cplusplus
7098   /* Ultrix mips cc rejects this.  */
7099   typedef int charset[2];
7100   const charset x;
7101   /* SunOS 4.1.1 cc rejects this.  */
7102   char const *const *ccp;
7103   char **p;
7104   /* NEC SVR4.0.2 mips cc rejects this.  */
7105   struct point {int x, y;};
7106   static struct point const zero = {0,0};
7107   /* AIX XL C 1.02.0.0 rejects this.
7108      It does not let you subtract one const X* pointer from another in
7109      an arm of an if-expression whose if-part is not a constant
7110      expression */
7111   const char *g = "string";
7112   ccp = &g + (g ? g-g : 0);
7113   /* HPUX 7.0 cc rejects these. */
7114   ++ccp;
7115   p = (char**) ccp;
7116   ccp = (char const *const *) p;
7117   { /* SCO 3.2v4 cc rejects this.  */
7118     char *t;
7119     char const *s = 0 ? (char *) 0 : (char const *) 0;
7120
7121     *t++ = 0;
7122   }
7123   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7124     int x[] = {25, 17};
7125     const int *foo = &x[0];
7126     ++foo;
7127   }
7128   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7129     typedef const int *iptr;
7130     iptr p = 0;
7131     ++p;
7132   }
7133   { /* AIX XL C 1.02.0.0 rejects this saying
7134        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7135     struct s { int j; const int *ap[3]; };
7136     struct s *b; b->j = 5;
7137   }
7138   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7139     const int foo = 10;
7140   }
7141 #endif
7142
7143   ;
7144   return 0;
7145 }
7146 _ACEOF
7147 rm -f conftest.$ac_objext
7148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7149   (eval $ac_compile) 2>&5
7150   ac_status=$?
7151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152   (exit $ac_status); } &&
7153          { ac_try='test -s conftest.$ac_objext'
7154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155   (eval $ac_try) 2>&5
7156   ac_status=$?
7157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158   (exit $ac_status); }; }; then
7159   ac_cv_c_const=yes
7160 else
7161   echo "$as_me: failed program was:" >&5
7162 cat conftest.$ac_ext >&5
7163 ac_cv_c_const=no
7164 fi
7165 rm -f conftest.$ac_objext conftest.$ac_ext
7166 fi
7167 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7168 echo "${ECHO_T}$ac_cv_c_const" >&6
7169 if test $ac_cv_c_const = no; then
7170
7171 cat >>confdefs.h <<\_ACEOF
7172 #define const
7173 _ACEOF
7174
7175 fi
7176
7177 echo "$as_me:$LINENO: checking for inline" >&5
7178 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7179 if test "${ac_cv_c_inline+set}" = set; then
7180   echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182   ac_cv_c_inline=no
7183 for ac_kw in inline __inline__ __inline; do
7184   cat >conftest.$ac_ext <<_ACEOF
7185 #line $LINENO "configure"
7186 #include "confdefs.h"
7187 #ifndef __cplusplus
7188 typedef int foo_t;
7189 static $ac_kw foo_t static_foo () {return 0; }
7190 $ac_kw foo_t foo () {return 0; }
7191 #endif
7192
7193 _ACEOF
7194 rm -f conftest.$ac_objext
7195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196   (eval $ac_compile) 2>&5
7197   ac_status=$?
7198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199   (exit $ac_status); } &&
7200          { ac_try='test -s conftest.$ac_objext'
7201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202   (eval $ac_try) 2>&5
7203   ac_status=$?
7204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205   (exit $ac_status); }; }; then
7206   ac_cv_c_inline=$ac_kw; break
7207 else
7208   echo "$as_me: failed program was:" >&5
7209 cat conftest.$ac_ext >&5
7210 fi
7211 rm -f conftest.$ac_objext conftest.$ac_ext
7212 done
7213
7214 fi
7215 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7216 echo "${ECHO_T}$ac_cv_c_inline" >&6
7217 case $ac_cv_c_inline in
7218   inline | yes) ;;
7219   no)
7220 cat >>confdefs.h <<\_ACEOF
7221 #define inline
7222 _ACEOF
7223  ;;
7224   *)  cat >>confdefs.h <<_ACEOF
7225 #define inline $ac_cv_c_inline
7226 _ACEOF
7227  ;;
7228 esac
7229
7230 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7231 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7232 if test "${ac_cv_c_bigendian+set}" = set; then
7233   echo $ECHO_N "(cached) $ECHO_C" >&6
7234 else
7235   # See if sys/param.h defines the BYTE_ORDER macro.
7236 cat >conftest.$ac_ext <<_ACEOF
7237 #line $LINENO "configure"
7238 #include "confdefs.h"
7239 #include <sys/types.h>
7240 #include <sys/param.h>
7241
7242 int
7243 main ()
7244 {
7245 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7246  bogus endian macros
7247 #endif
7248
7249   ;
7250   return 0;
7251 }
7252 _ACEOF
7253 rm -f conftest.$ac_objext
7254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7255   (eval $ac_compile) 2>&5
7256   ac_status=$?
7257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258   (exit $ac_status); } &&
7259          { ac_try='test -s conftest.$ac_objext'
7260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7261   (eval $ac_try) 2>&5
7262   ac_status=$?
7263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264   (exit $ac_status); }; }; then
7265   # It does; now see whether it defined to BIG_ENDIAN or not.
7266 cat >conftest.$ac_ext <<_ACEOF
7267 #line $LINENO "configure"
7268 #include "confdefs.h"
7269 #include <sys/types.h>
7270 #include <sys/param.h>
7271
7272 int
7273 main ()
7274 {
7275 #if BYTE_ORDER != BIG_ENDIAN
7276  not big endian
7277 #endif
7278
7279   ;
7280   return 0;
7281 }
7282 _ACEOF
7283 rm -f conftest.$ac_objext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7285   (eval $ac_compile) 2>&5
7286   ac_status=$?
7287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288   (exit $ac_status); } &&
7289          { ac_try='test -s conftest.$ac_objext'
7290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291   (eval $ac_try) 2>&5
7292   ac_status=$?
7293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294   (exit $ac_status); }; }; then
7295   ac_cv_c_bigendian=yes
7296 else
7297   echo "$as_me: failed program was:" >&5
7298 cat conftest.$ac_ext >&5
7299 ac_cv_c_bigendian=no
7300 fi
7301 rm -f conftest.$ac_objext conftest.$ac_ext
7302 else
7303   echo "$as_me: failed program was:" >&5
7304 cat conftest.$ac_ext >&5
7305 # It does not; compile a test program.
7306 if test "$cross_compiling" = yes; then
7307   # try to guess the endianness by grepping values into an object file
7308   ac_cv_c_bigendian=unknown
7309   cat >conftest.$ac_ext <<_ACEOF
7310 #line $LINENO "configure"
7311 #include "confdefs.h"
7312 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7313 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7314 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7315 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7316 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7317 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7318 int
7319 main ()
7320 {
7321  _ascii (); _ebcdic ();
7322   ;
7323   return 0;
7324 }
7325 _ACEOF
7326 rm -f conftest.$ac_objext
7327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7328   (eval $ac_compile) 2>&5
7329   ac_status=$?
7330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331   (exit $ac_status); } &&
7332          { ac_try='test -s conftest.$ac_objext'
7333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334   (eval $ac_try) 2>&5
7335   ac_status=$?
7336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337   (exit $ac_status); }; }; then
7338   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7339   ac_cv_c_bigendian=yes
7340 fi
7341 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7342   if test "$ac_cv_c_bigendian" = unknown; then
7343     ac_cv_c_bigendian=no
7344   else
7345     # finding both strings is unlikely to happen, but who knows?
7346     ac_cv_c_bigendian=unknown
7347   fi
7348 fi
7349 else
7350   echo "$as_me: failed program was:" >&5
7351 cat conftest.$ac_ext >&5
7352 fi
7353 rm -f conftest.$ac_objext conftest.$ac_ext
7354 else
7355   cat >conftest.$ac_ext <<_ACEOF
7356 #line $LINENO "configure"
7357 #include "confdefs.h"
7358 int
7359 main ()
7360 {
7361   /* Are we little or big endian?  From Harbison&Steele.  */
7362   union
7363   {
7364     long l;
7365     char c[sizeof (long)];
7366   } u;
7367   u.l = 1;
7368   exit (u.c[sizeof (long) - 1] == 1);
7369 }
7370 _ACEOF
7371 rm -f conftest$ac_exeext
7372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7373   (eval $ac_link) 2>&5
7374   ac_status=$?
7375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7378   (eval $ac_try) 2>&5
7379   ac_status=$?
7380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381   (exit $ac_status); }; }; then
7382   ac_cv_c_bigendian=no
7383 else
7384   echo "$as_me: program exited with status $ac_status" >&5
7385 echo "$as_me: failed program was:" >&5
7386 cat conftest.$ac_ext >&5
7387 ( exit $ac_status )
7388 ac_cv_c_bigendian=yes
7389 fi
7390 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7391 fi
7392 fi
7393 rm -f conftest.$ac_objext conftest.$ac_ext
7394 fi
7395 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7396 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7397 case $ac_cv_c_bigendian in
7398   yes)
7399
7400 cat >>confdefs.h <<\_ACEOF
7401 #define WORDS_BIGENDIAN 1
7402 _ACEOF
7403  ;;
7404   no)
7405      ;;
7406   *)
7407     { { echo "$as_me:$LINENO: error: unknown endianness
7408 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7409 echo "$as_me: error: unknown endianness
7410 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7411    { (exit 1); exit 1; }; } ;;
7412 esac
7413
7414
7415 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
7416 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
7417 if test "${ac_cv_c_char_unsigned+set}" = set; then
7418   echo $ECHO_N "(cached) $ECHO_C" >&6
7419 else
7420   cat >conftest.$ac_ext <<_ACEOF
7421 #line $LINENO "configure"
7422 #include "confdefs.h"
7423 $ac_includes_default
7424 int
7425 main ()
7426 {
7427 static int test_array [1 - 2 * !(((char) -1) < 0)];
7428 test_array [0] = 0
7429
7430   ;
7431   return 0;
7432 }
7433 _ACEOF
7434 rm -f conftest.$ac_objext
7435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7436   (eval $ac_compile) 2>&5
7437   ac_status=$?
7438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439   (exit $ac_status); } &&
7440          { ac_try='test -s conftest.$ac_objext'
7441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442   (eval $ac_try) 2>&5
7443   ac_status=$?
7444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445   (exit $ac_status); }; }; then
7446   ac_cv_c_char_unsigned=no
7447 else
7448   echo "$as_me: failed program was:" >&5
7449 cat conftest.$ac_ext >&5
7450 ac_cv_c_char_unsigned=yes
7451 fi
7452 rm -f conftest.$ac_objext conftest.$ac_ext
7453 fi
7454 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
7455 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
7456 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
7457   cat >>confdefs.h <<\_ACEOF
7458 #define __CHAR_UNSIGNED__ 1
7459 _ACEOF
7460
7461 fi
7462
7463
7464 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7465 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7466 if test "${ac_cv_type_signal+set}" = set; then
7467   echo $ECHO_N "(cached) $ECHO_C" >&6
7468 else
7469   cat >conftest.$ac_ext <<_ACEOF
7470 #line $LINENO "configure"
7471 #include "confdefs.h"
7472 #include <sys/types.h>
7473 #include <signal.h>
7474 #ifdef signal
7475 # undef signal
7476 #endif
7477 #ifdef __cplusplus
7478 extern "C" void (*signal (int, void (*)(int)))(int);
7479 #else
7480 void (*signal ()) ();
7481 #endif
7482
7483 int
7484 main ()
7485 {
7486 int i;
7487   ;
7488   return 0;
7489 }
7490 _ACEOF
7491 rm -f conftest.$ac_objext
7492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7493   (eval $ac_compile) 2>&5
7494   ac_status=$?
7495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496   (exit $ac_status); } &&
7497          { ac_try='test -s conftest.$ac_objext'
7498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499   (eval $ac_try) 2>&5
7500   ac_status=$?
7501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502   (exit $ac_status); }; }; then
7503   ac_cv_type_signal=void
7504 else
7505   echo "$as_me: failed program was:" >&5
7506 cat conftest.$ac_ext >&5
7507 ac_cv_type_signal=int
7508 fi
7509 rm -f conftest.$ac_objext conftest.$ac_ext
7510 fi
7511 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7512 echo "${ECHO_T}$ac_cv_type_signal" >&6
7513
7514 cat >>confdefs.h <<_ACEOF
7515 #define RETSIGTYPE $ac_cv_type_signal
7516 _ACEOF
7517
7518
7519 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7520 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7521 if test "${ac_cv_type_uid_t+set}" = set; then
7522   echo $ECHO_N "(cached) $ECHO_C" >&6
7523 else
7524   cat >conftest.$ac_ext <<_ACEOF
7525 #line $LINENO "configure"
7526 #include "confdefs.h"
7527 #include <sys/types.h>
7528
7529 _ACEOF
7530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7531   $EGREP "uid_t" >/dev/null 2>&1; then
7532   ac_cv_type_uid_t=yes
7533 else
7534   ac_cv_type_uid_t=no
7535 fi
7536 rm -f conftest*
7537
7538 fi
7539 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7540 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7541 if test $ac_cv_type_uid_t = no; then
7542
7543 cat >>confdefs.h <<\_ACEOF
7544 #define uid_t int
7545 _ACEOF
7546
7547
7548 cat >>confdefs.h <<\_ACEOF
7549 #define gid_t int
7550 _ACEOF
7551
7552 fi
7553
7554 echo "$as_me:$LINENO: checking for mode_t" >&5
7555 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7556 if test "${ac_cv_type_mode_t+set}" = set; then
7557   echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7559   cat >conftest.$ac_ext <<_ACEOF
7560 #line $LINENO "configure"
7561 #include "confdefs.h"
7562 $ac_includes_default
7563 int
7564 main ()
7565 {
7566 if ((mode_t *) 0)
7567   return 0;
7568 if (sizeof (mode_t))
7569   return 0;
7570   ;
7571   return 0;
7572 }
7573 _ACEOF
7574 rm -f conftest.$ac_objext
7575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7576   (eval $ac_compile) 2>&5
7577   ac_status=$?
7578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579   (exit $ac_status); } &&
7580          { ac_try='test -s conftest.$ac_objext'
7581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582   (eval $ac_try) 2>&5
7583   ac_status=$?
7584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585   (exit $ac_status); }; }; then
7586   ac_cv_type_mode_t=yes
7587 else
7588   echo "$as_me: failed program was:" >&5
7589 cat conftest.$ac_ext >&5
7590 ac_cv_type_mode_t=no
7591 fi
7592 rm -f conftest.$ac_objext conftest.$ac_ext
7593 fi
7594 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7595 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7596 if test $ac_cv_type_mode_t = yes; then
7597   :
7598 else
7599
7600 cat >>confdefs.h <<_ACEOF
7601 #define mode_t int
7602 _ACEOF
7603
7604 fi
7605
7606 echo "$as_me:$LINENO: checking for off_t" >&5
7607 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7608 if test "${ac_cv_type_off_t+set}" = set; then
7609   echo $ECHO_N "(cached) $ECHO_C" >&6
7610 else
7611   cat >conftest.$ac_ext <<_ACEOF
7612 #line $LINENO "configure"
7613 #include "confdefs.h"
7614 $ac_includes_default
7615 int
7616 main ()
7617 {
7618 if ((off_t *) 0)
7619   return 0;
7620 if (sizeof (off_t))
7621   return 0;
7622   ;
7623   return 0;
7624 }
7625 _ACEOF
7626 rm -f conftest.$ac_objext
7627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7628   (eval $ac_compile) 2>&5
7629   ac_status=$?
7630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631   (exit $ac_status); } &&
7632          { ac_try='test -s conftest.$ac_objext'
7633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634   (eval $ac_try) 2>&5
7635   ac_status=$?
7636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637   (exit $ac_status); }; }; then
7638   ac_cv_type_off_t=yes
7639 else
7640   echo "$as_me: failed program was:" >&5
7641 cat conftest.$ac_ext >&5
7642 ac_cv_type_off_t=no
7643 fi
7644 rm -f conftest.$ac_objext conftest.$ac_ext
7645 fi
7646 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7647 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7648 if test $ac_cv_type_off_t = yes; then
7649   :
7650 else
7651
7652 cat >>confdefs.h <<_ACEOF
7653 #define off_t long
7654 _ACEOF
7655
7656 fi
7657
7658 echo "$as_me:$LINENO: checking for size_t" >&5
7659 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7660 if test "${ac_cv_type_size_t+set}" = set; then
7661   echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663   cat >conftest.$ac_ext <<_ACEOF
7664 #line $LINENO "configure"
7665 #include "confdefs.h"
7666 $ac_includes_default
7667 int
7668 main ()
7669 {
7670 if ((size_t *) 0)
7671   return 0;
7672 if (sizeof (size_t))
7673   return 0;
7674   ;
7675   return 0;
7676 }
7677 _ACEOF
7678 rm -f conftest.$ac_objext
7679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7680   (eval $ac_compile) 2>&5
7681   ac_status=$?
7682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683   (exit $ac_status); } &&
7684          { ac_try='test -s conftest.$ac_objext'
7685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686   (eval $ac_try) 2>&5
7687   ac_status=$?
7688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689   (exit $ac_status); }; }; then
7690   ac_cv_type_size_t=yes
7691 else
7692   echo "$as_me: failed program was:" >&5
7693 cat conftest.$ac_ext >&5
7694 ac_cv_type_size_t=no
7695 fi
7696 rm -f conftest.$ac_objext conftest.$ac_ext
7697 fi
7698 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7699 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7700 if test $ac_cv_type_size_t = yes; then
7701   :
7702 else
7703
7704 cat >>confdefs.h <<_ACEOF
7705 #define size_t unsigned
7706 _ACEOF
7707
7708 fi
7709
7710 echo "$as_me:$LINENO: checking for pid_t" >&5
7711 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7712 if test "${ac_cv_type_pid_t+set}" = set; then
7713   echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715   cat >conftest.$ac_ext <<_ACEOF
7716 #line $LINENO "configure"
7717 #include "confdefs.h"
7718 $ac_includes_default
7719 int
7720 main ()
7721 {
7722 if ((pid_t *) 0)
7723   return 0;
7724 if (sizeof (pid_t))
7725   return 0;
7726   ;
7727   return 0;
7728 }
7729 _ACEOF
7730 rm -f conftest.$ac_objext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7732   (eval $ac_compile) 2>&5
7733   ac_status=$?
7734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735   (exit $ac_status); } &&
7736          { ac_try='test -s conftest.$ac_objext'
7737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738   (eval $ac_try) 2>&5
7739   ac_status=$?
7740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741   (exit $ac_status); }; }; then
7742   ac_cv_type_pid_t=yes
7743 else
7744   echo "$as_me: failed program was:" >&5
7745 cat conftest.$ac_ext >&5
7746 ac_cv_type_pid_t=no
7747 fi
7748 rm -f conftest.$ac_objext conftest.$ac_ext
7749 fi
7750 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7751 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7752 if test $ac_cv_type_pid_t = yes; then
7753   :
7754 else
7755
7756 cat >>confdefs.h <<_ACEOF
7757 #define pid_t int
7758 _ACEOF
7759
7760 fi
7761
7762
7763 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7764 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
7765 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
7766   echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768   cat >conftest.$ac_ext <<_ACEOF
7769 #line $LINENO "configure"
7770 #include "confdefs.h"
7771 $ac_includes_default
7772 int
7773 main ()
7774 {
7775 static struct stat ac_aggr;
7776 if (ac_aggr.st_rdev)
7777 return 0;
7778   ;
7779   return 0;
7780 }
7781 _ACEOF
7782 rm -f conftest.$ac_objext
7783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7784   (eval $ac_compile) 2>&5
7785   ac_status=$?
7786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787   (exit $ac_status); } &&
7788          { ac_try='test -s conftest.$ac_objext'
7789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790   (eval $ac_try) 2>&5
7791   ac_status=$?
7792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793   (exit $ac_status); }; }; then
7794   ac_cv_member_struct_stat_st_rdev=yes
7795 else
7796   echo "$as_me: failed program was:" >&5
7797 cat conftest.$ac_ext >&5
7798 cat >conftest.$ac_ext <<_ACEOF
7799 #line $LINENO "configure"
7800 #include "confdefs.h"
7801 $ac_includes_default
7802 int
7803 main ()
7804 {
7805 static struct stat ac_aggr;
7806 if (sizeof ac_aggr.st_rdev)
7807 return 0;
7808   ;
7809   return 0;
7810 }
7811 _ACEOF
7812 rm -f conftest.$ac_objext
7813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7814   (eval $ac_compile) 2>&5
7815   ac_status=$?
7816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817   (exit $ac_status); } &&
7818          { ac_try='test -s conftest.$ac_objext'
7819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820   (eval $ac_try) 2>&5
7821   ac_status=$?
7822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823   (exit $ac_status); }; }; then
7824   ac_cv_member_struct_stat_st_rdev=yes
7825 else
7826   echo "$as_me: failed program was:" >&5
7827 cat conftest.$ac_ext >&5
7828 ac_cv_member_struct_stat_st_rdev=no
7829 fi
7830 rm -f conftest.$ac_objext conftest.$ac_ext
7831 fi
7832 rm -f conftest.$ac_objext conftest.$ac_ext
7833 fi
7834 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7835 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7836 if test $ac_cv_member_struct_stat_st_rdev = yes; then
7837
7838 cat >>confdefs.h <<_ACEOF
7839 #define HAVE_STRUCT_STAT_ST_RDEV 1
7840 _ACEOF
7841
7842
7843 cat >>confdefs.h <<\_ACEOF
7844 #define HAVE_ST_RDEV 1
7845 _ACEOF
7846
7847 fi
7848
7849
7850 echo "$as_me:$LINENO: checking for d_off in dirent" >&5
7851 echo $ECHO_N "checking for d_off in dirent... $ECHO_C" >&6
7852 if test "${ac_cv_dirent_d_off+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
7859 #include <unistd.h>
7860 #include <sys/types.h>
7861 #include <dirent.h>
7862 int
7863 main ()
7864 {
7865 struct dirent d; d.d_off;
7866   ;
7867   return 0;
7868 }
7869 _ACEOF
7870 rm -f conftest.$ac_objext
7871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7872   (eval $ac_compile) 2>&5
7873   ac_status=$?
7874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875   (exit $ac_status); } &&
7876          { ac_try='test -s conftest.$ac_objext'
7877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878   (eval $ac_try) 2>&5
7879   ac_status=$?
7880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881   (exit $ac_status); }; }; then
7882   ac_cv_dirent_d_off=yes
7883 else
7884   echo "$as_me: failed program was:" >&5
7885 cat conftest.$ac_ext >&5
7886 ac_cv_dirent_d_off=no
7887 fi
7888 rm -f conftest.$ac_objext conftest.$ac_ext
7889 fi
7890 echo "$as_me:$LINENO: result: $ac_cv_dirent_d_off" >&5
7891 echo "${ECHO_T}$ac_cv_dirent_d_off" >&6
7892 if test $ac_cv_dirent_d_off = yes; then
7893
7894 cat >>confdefs.h <<\_ACEOF
7895 #define HAVE_DIRENT_D_OFF 1
7896 _ACEOF
7897
7898 fi
7899
7900 echo "$as_me:$LINENO: checking for ino_t" >&5
7901 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
7902 if test "${ac_cv_type_ino_t+set}" = set; then
7903   echo $ECHO_N "(cached) $ECHO_C" >&6
7904 else
7905   cat >conftest.$ac_ext <<_ACEOF
7906 #line $LINENO "configure"
7907 #include "confdefs.h"
7908 $ac_includes_default
7909 int
7910 main ()
7911 {
7912 if ((ino_t *) 0)
7913   return 0;
7914 if (sizeof (ino_t))
7915   return 0;
7916   ;
7917   return 0;
7918 }
7919 _ACEOF
7920 rm -f conftest.$ac_objext
7921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7922   (eval $ac_compile) 2>&5
7923   ac_status=$?
7924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925   (exit $ac_status); } &&
7926          { ac_try='test -s conftest.$ac_objext'
7927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928   (eval $ac_try) 2>&5
7929   ac_status=$?
7930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931   (exit $ac_status); }; }; then
7932   ac_cv_type_ino_t=yes
7933 else
7934   echo "$as_me: failed program was:" >&5
7935 cat conftest.$ac_ext >&5
7936 ac_cv_type_ino_t=no
7937 fi
7938 rm -f conftest.$ac_objext conftest.$ac_ext
7939 fi
7940 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
7941 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
7942 if test $ac_cv_type_ino_t = yes; then
7943   :
7944 else
7945
7946 cat >>confdefs.h <<_ACEOF
7947 #define ino_t unsigned
7948 _ACEOF
7949
7950 fi
7951
7952 echo "$as_me:$LINENO: checking for loff_t" >&5
7953 echo $ECHO_N "checking for loff_t... $ECHO_C" >&6
7954 if test "${ac_cv_type_loff_t+set}" = set; then
7955   echo $ECHO_N "(cached) $ECHO_C" >&6
7956 else
7957   cat >conftest.$ac_ext <<_ACEOF
7958 #line $LINENO "configure"
7959 #include "confdefs.h"
7960 $ac_includes_default
7961 int
7962 main ()
7963 {
7964 if ((loff_t *) 0)
7965   return 0;
7966 if (sizeof (loff_t))
7967   return 0;
7968   ;
7969   return 0;
7970 }
7971 _ACEOF
7972 rm -f conftest.$ac_objext
7973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7974   (eval $ac_compile) 2>&5
7975   ac_status=$?
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); } &&
7978          { ac_try='test -s conftest.$ac_objext'
7979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980   (eval $ac_try) 2>&5
7981   ac_status=$?
7982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983   (exit $ac_status); }; }; then
7984   ac_cv_type_loff_t=yes
7985 else
7986   echo "$as_me: failed program was:" >&5
7987 cat conftest.$ac_ext >&5
7988 ac_cv_type_loff_t=no
7989 fi
7990 rm -f conftest.$ac_objext conftest.$ac_ext
7991 fi
7992 echo "$as_me:$LINENO: result: $ac_cv_type_loff_t" >&5
7993 echo "${ECHO_T}$ac_cv_type_loff_t" >&6
7994 if test $ac_cv_type_loff_t = yes; then
7995   :
7996 else
7997
7998 cat >>confdefs.h <<_ACEOF
7999 #define loff_t off_t
8000 _ACEOF
8001
8002 fi
8003
8004 echo "$as_me:$LINENO: checking for offset_t" >&5
8005 echo $ECHO_N "checking for offset_t... $ECHO_C" >&6
8006 if test "${ac_cv_type_offset_t+set}" = set; then
8007   echo $ECHO_N "(cached) $ECHO_C" >&6
8008 else
8009   cat >conftest.$ac_ext <<_ACEOF
8010 #line $LINENO "configure"
8011 #include "confdefs.h"
8012 $ac_includes_default
8013 int
8014 main ()
8015 {
8016 if ((offset_t *) 0)
8017   return 0;
8018 if (sizeof (offset_t))
8019   return 0;
8020   ;
8021   return 0;
8022 }
8023 _ACEOF
8024 rm -f conftest.$ac_objext
8025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8026   (eval $ac_compile) 2>&5
8027   ac_status=$?
8028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029   (exit $ac_status); } &&
8030          { ac_try='test -s conftest.$ac_objext'
8031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032   (eval $ac_try) 2>&5
8033   ac_status=$?
8034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035   (exit $ac_status); }; }; then
8036   ac_cv_type_offset_t=yes
8037 else
8038   echo "$as_me: failed program was:" >&5
8039 cat conftest.$ac_ext >&5
8040 ac_cv_type_offset_t=no
8041 fi
8042 rm -f conftest.$ac_objext conftest.$ac_ext
8043 fi
8044 echo "$as_me:$LINENO: result: $ac_cv_type_offset_t" >&5
8045 echo "${ECHO_T}$ac_cv_type_offset_t" >&6
8046 if test $ac_cv_type_offset_t = yes; then
8047   :
8048 else
8049
8050 cat >>confdefs.h <<_ACEOF
8051 #define offset_t loff_t
8052 _ACEOF
8053
8054 fi
8055
8056 echo "$as_me:$LINENO: checking for ssize_t" >&5
8057 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
8058 if test "${ac_cv_type_ssize_t+set}" = set; then
8059   echo $ECHO_N "(cached) $ECHO_C" >&6
8060 else
8061   cat >conftest.$ac_ext <<_ACEOF
8062 #line $LINENO "configure"
8063 #include "confdefs.h"
8064 $ac_includes_default
8065 int
8066 main ()
8067 {
8068 if ((ssize_t *) 0)
8069   return 0;
8070 if (sizeof (ssize_t))
8071   return 0;
8072   ;
8073   return 0;
8074 }
8075 _ACEOF
8076 rm -f conftest.$ac_objext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8078   (eval $ac_compile) 2>&5
8079   ac_status=$?
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); } &&
8082          { ac_try='test -s conftest.$ac_objext'
8083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084   (eval $ac_try) 2>&5
8085   ac_status=$?
8086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087   (exit $ac_status); }; }; then
8088   ac_cv_type_ssize_t=yes
8089 else
8090   echo "$as_me: failed program was:" >&5
8091 cat conftest.$ac_ext >&5
8092 ac_cv_type_ssize_t=no
8093 fi
8094 rm -f conftest.$ac_objext conftest.$ac_ext
8095 fi
8096 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8097 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
8098 if test $ac_cv_type_ssize_t = yes; then
8099   :
8100 else
8101
8102 cat >>confdefs.h <<_ACEOF
8103 #define ssize_t int
8104 _ACEOF
8105
8106 fi
8107
8108 echo "$as_me:$LINENO: checking for wchar_t" >&5
8109 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
8110 if test "${ac_cv_type_wchar_t+set}" = set; then
8111   echo $ECHO_N "(cached) $ECHO_C" >&6
8112 else
8113   cat >conftest.$ac_ext <<_ACEOF
8114 #line $LINENO "configure"
8115 #include "confdefs.h"
8116 $ac_includes_default
8117 int
8118 main ()
8119 {
8120 if ((wchar_t *) 0)
8121   return 0;
8122 if (sizeof (wchar_t))
8123   return 0;
8124   ;
8125   return 0;
8126 }
8127 _ACEOF
8128 rm -f conftest.$ac_objext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8130   (eval $ac_compile) 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); } &&
8134          { ac_try='test -s conftest.$ac_objext'
8135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136   (eval $ac_try) 2>&5
8137   ac_status=$?
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); }; }; then
8140   ac_cv_type_wchar_t=yes
8141 else
8142   echo "$as_me: failed program was:" >&5
8143 cat conftest.$ac_ext >&5
8144 ac_cv_type_wchar_t=no
8145 fi
8146 rm -f conftest.$ac_objext conftest.$ac_ext
8147 fi
8148 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
8149 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
8150 if test $ac_cv_type_wchar_t = yes; then
8151   :
8152 else
8153
8154 cat >>confdefs.h <<_ACEOF
8155 #define wchar_t unsigned short
8156 _ACEOF
8157
8158 fi
8159
8160
8161 ############################################
8162 # for cups support we need libcups, and a handful of header files
8163
8164 # Check whether --enable-cups or --disable-cups was given.
8165 if test "${enable_cups+set}" = set; then
8166   enableval="$enable_cups"
8167
8168 fi;
8169
8170 if test x$enable_cups != xno; then
8171         # Extract the first word of "cups-config", so it can be a program name with args.
8172 set dummy cups-config; ac_word=$2
8173 echo "$as_me:$LINENO: checking for $ac_word" >&5
8174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8175 if test "${ac_cv_path_CUPS_CONFIG+set}" = set; then
8176   echo $ECHO_N "(cached) $ECHO_C" >&6
8177 else
8178   case $CUPS_CONFIG in
8179   [\\/]* | ?:[\\/]*)
8180   ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
8181   ;;
8182   *)
8183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184 for as_dir in $PATH
8185 do
8186   IFS=$as_save_IFS
8187   test -z "$as_dir" && as_dir=.
8188   for ac_exec_ext in '' $ac_executable_extensions; do
8189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8190     ac_cv_path_CUPS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8192     break 2
8193   fi
8194 done
8195 done
8196
8197   ;;
8198 esac
8199 fi
8200 CUPS_CONFIG=$ac_cv_path_CUPS_CONFIG
8201
8202 if test -n "$CUPS_CONFIG"; then
8203   echo "$as_me:$LINENO: result: $CUPS_CONFIG" >&5
8204 echo "${ECHO_T}$CUPS_CONFIG" >&6
8205 else
8206   echo "$as_me:$LINENO: result: no" >&5
8207 echo "${ECHO_T}no" >&6
8208 fi
8209
8210
8211         if test "x$CUPS_CONFIG" != x; then
8212
8213 cat >>confdefs.h <<\_ACEOF
8214 #define HAVE_CUPS 1
8215 _ACEOF
8216
8217                 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
8218                 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
8219                 PRINTLIBS="$PRINTLIBS `$CUPS_CONFIG --libs`"
8220         fi
8221 fi
8222
8223 ############################################
8224 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
8225
8226 for ac_func in dlopen
8227 do
8228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8229 echo "$as_me:$LINENO: checking for $ac_func" >&5
8230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8231 if eval "test \"\${$as_ac_var+set}\" = set"; then
8232   echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234   cat >conftest.$ac_ext <<_ACEOF
8235 #line $LINENO "configure"
8236 #include "confdefs.h"
8237 /* System header to define __stub macros and hopefully few prototypes,
8238     which can conflict with char $ac_func (); below.  */
8239 #include <assert.h>
8240 /* Override any gcc2 internal prototype to avoid an error.  */
8241 #ifdef __cplusplus
8242 extern "C"
8243 #endif
8244 /* We use char because int might match the return type of a gcc2
8245    builtin and then its argument prototype would still apply.  */
8246 char $ac_func ();
8247 char (*f) ();
8248
8249 int
8250 main ()
8251 {
8252 /* The GNU C library defines this for functions which it implements
8253     to always fail with ENOSYS.  Some functions are actually named
8254     something starting with __ and the normal name is an alias.  */
8255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8256 choke me
8257 #else
8258 f = $ac_func;
8259 #endif
8260
8261   ;
8262   return 0;
8263 }
8264 _ACEOF
8265 rm -f conftest.$ac_objext conftest$ac_exeext
8266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8267   (eval $ac_link) 2>&5
8268   ac_status=$?
8269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270   (exit $ac_status); } &&
8271          { ac_try='test -s conftest$ac_exeext'
8272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273   (eval $ac_try) 2>&5
8274   ac_status=$?
8275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276   (exit $ac_status); }; }; then
8277   eval "$as_ac_var=yes"
8278 else
8279   echo "$as_me: failed program was:" >&5
8280 cat conftest.$ac_ext >&5
8281 eval "$as_ac_var=no"
8282 fi
8283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8284 fi
8285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8287 if test `eval echo '${'$as_ac_var'}'` = yes; then
8288   cat >>confdefs.h <<_ACEOF
8289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8290 _ACEOF
8291
8292 fi
8293 done
8294
8295 if test x"$ac_cv_func_dlopen" = x"no"; then
8296     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8297 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8298 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8299   echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301   ac_check_lib_save_LIBS=$LIBS
8302 LIBS="-ldl  $LIBS"
8303 cat >conftest.$ac_ext <<_ACEOF
8304 #line $LINENO "configure"
8305 #include "confdefs.h"
8306
8307 /* Override any gcc2 internal prototype to avoid an error.  */
8308 #ifdef __cplusplus
8309 extern "C"
8310 #endif
8311 /* We use char because int might match the return type of a gcc2
8312    builtin and then its argument prototype would still apply.  */
8313 char dlopen ();
8314 int
8315 main ()
8316 {
8317 dlopen ();
8318   ;
8319   return 0;
8320 }
8321 _ACEOF
8322 rm -f conftest.$ac_objext conftest$ac_exeext
8323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324   (eval $ac_link) 2>&5
8325   ac_status=$?
8326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327   (exit $ac_status); } &&
8328          { ac_try='test -s conftest$ac_exeext'
8329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330   (eval $ac_try) 2>&5
8331   ac_status=$?
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   (exit $ac_status); }; }; then
8334   ac_cv_lib_dl_dlopen=yes
8335 else
8336   echo "$as_me: failed program was:" >&5
8337 cat conftest.$ac_ext >&5
8338 ac_cv_lib_dl_dlopen=no
8339 fi
8340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8341 LIBS=$ac_check_lib_save_LIBS
8342 fi
8343 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8344 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8345 if test $ac_cv_lib_dl_dlopen = yes; then
8346   LIBS="$LIBS -ldl";
8347
8348 cat >>confdefs.h <<\_ACEOF
8349 #define HAVE_DLOPEN 1
8350 _ACEOF
8351
8352 fi
8353
8354 fi
8355 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
8356
8357 ############################################
8358 # check if the compiler can do immediate structures
8359 echo "$as_me:$LINENO: checking for immediate structures" >&5
8360 echo $ECHO_N "checking for immediate structures... $ECHO_C" >&6
8361 if test "${samba_cv_immediate_structures+set}" = set; then
8362   echo $ECHO_N "(cached) $ECHO_C" >&6
8363 else
8364
8365     cat >conftest.$ac_ext <<_ACEOF
8366 #line $LINENO "configure"
8367 #include "confdefs.h"
8368
8369 #include <stdio.h>
8370 int
8371 main ()
8372 {
8373
8374    typedef struct {unsigned x;} FOOBAR;
8375    #define X_FOOBAR(x) ((FOOBAR) { x })
8376    #define FOO_ONE X_FOOBAR(1)
8377    FOOBAR f = FOO_ONE;
8378    static struct {
8379         FOOBAR y;
8380         } f2[] = {
8381                 {FOO_ONE}
8382         };
8383
8384   ;
8385   return 0;
8386 }
8387 _ACEOF
8388 rm -f conftest.$ac_objext
8389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8390   (eval $ac_compile) 2>&5
8391   ac_status=$?
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); } &&
8394          { ac_try='test -s conftest.$ac_objext'
8395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396   (eval $ac_try) 2>&5
8397   ac_status=$?
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); }; }; then
8400   samba_cv_immediate_structures=yes
8401 else
8402   echo "$as_me: failed program was:" >&5
8403 cat conftest.$ac_ext >&5
8404 samba_cv_immediate_structures=no
8405 fi
8406 rm -f conftest.$ac_objext conftest.$ac_ext
8407 fi
8408 echo "$as_me:$LINENO: result: $samba_cv_immediate_structures" >&5
8409 echo "${ECHO_T}$samba_cv_immediate_structures" >&6
8410 if test x"$samba_cv_immediate_structures" = x"yes"; then
8411
8412 cat >>confdefs.h <<\_ACEOF
8413 #define HAVE_IMMEDIATE_STRUCTURES 1
8414 _ACEOF
8415
8416 fi
8417
8418 ############################################
8419 # check for unix domain sockets
8420 echo "$as_me:$LINENO: checking for unix domain sockets" >&5
8421 echo $ECHO_N "checking for unix domain sockets... $ECHO_C" >&6
8422 if test "${samba_cv_unixsocket+set}" = set; then
8423   echo $ECHO_N "(cached) $ECHO_C" >&6
8424 else
8425
8426     cat >conftest.$ac_ext <<_ACEOF
8427 #line $LINENO "configure"
8428 #include "confdefs.h"
8429
8430 #include <sys/types.h>
8431 #include <stdlib.h>
8432 #include <stddef.h>
8433 #include <sys/socket.h>
8434 #include <sys/un.h>
8435 int
8436 main ()
8437 {
8438
8439   struct sockaddr_un sunaddr;
8440   sunaddr.sun_family = AF_UNIX;
8441
8442   ;
8443   return 0;
8444 }
8445 _ACEOF
8446 rm -f conftest.$ac_objext
8447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8448   (eval $ac_compile) 2>&5
8449   ac_status=$?
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); } &&
8452          { ac_try='test -s conftest.$ac_objext'
8453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454   (eval $ac_try) 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); }; }; then
8458   samba_cv_unixsocket=yes
8459 else
8460   echo "$as_me: failed program was:" >&5
8461 cat conftest.$ac_ext >&5
8462 samba_cv_unixsocket=no
8463 fi
8464 rm -f conftest.$ac_objext conftest.$ac_ext
8465 fi
8466 echo "$as_me:$LINENO: result: $samba_cv_unixsocket" >&5
8467 echo "${ECHO_T}$samba_cv_unixsocket" >&6
8468 if test x"$samba_cv_unixsocket" = x"yes"; then
8469
8470 cat >>confdefs.h <<\_ACEOF
8471 #define HAVE_UNIXSOCKET 1
8472 _ACEOF
8473
8474 fi
8475
8476
8477 echo "$as_me:$LINENO: checking for socklen_t type" >&5
8478 echo $ECHO_N "checking for socklen_t type... $ECHO_C" >&6
8479 if test "${samba_cv_socklen_t+set}" = set; then
8480   echo $ECHO_N "(cached) $ECHO_C" >&6
8481 else
8482
8483     cat >conftest.$ac_ext <<_ACEOF
8484 #line $LINENO "configure"
8485 #include "confdefs.h"
8486
8487 #include <sys/types.h>
8488 #if STDC_HEADERS
8489 #include <stdlib.h>
8490 #include <stddef.h>
8491 #endif
8492 #include <sys/socket.h>
8493 int
8494 main ()
8495 {
8496 socklen_t i = 0
8497   ;
8498   return 0;
8499 }
8500 _ACEOF
8501 rm -f conftest.$ac_objext
8502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8503   (eval $ac_compile) 2>&5
8504   ac_status=$?
8505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506   (exit $ac_status); } &&
8507          { ac_try='test -s conftest.$ac_objext'
8508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509   (eval $ac_try) 2>&5
8510   ac_status=$?
8511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512   (exit $ac_status); }; }; then
8513   samba_cv_socklen_t=yes
8514 else
8515   echo "$as_me: failed program was:" >&5
8516 cat conftest.$ac_ext >&5
8517 samba_cv_socklen_t=no
8518 fi
8519 rm -f conftest.$ac_objext conftest.$ac_ext
8520 fi
8521 echo "$as_me:$LINENO: result: $samba_cv_socklen_t" >&5
8522 echo "${ECHO_T}$samba_cv_socklen_t" >&6
8523 if test x"$samba_cv_socklen_t" = x"yes"; then
8524
8525 cat >>confdefs.h <<\_ACEOF
8526 #define HAVE_SOCKLEN_T_TYPE 1
8527 _ACEOF
8528
8529 fi
8530
8531 echo "$as_me:$LINENO: checking for sig_atomic_t type" >&5
8532 echo $ECHO_N "checking for sig_atomic_t type... $ECHO_C" >&6
8533 if test "${samba_cv_sig_atomic_t+set}" = set; then
8534   echo $ECHO_N "(cached) $ECHO_C" >&6
8535 else
8536
8537     cat >conftest.$ac_ext <<_ACEOF
8538 #line $LINENO "configure"
8539 #include "confdefs.h"
8540
8541 #include <sys/types.h>
8542 #if STDC_HEADERS
8543 #include <stdlib.h>
8544 #include <stddef.h>
8545 #endif
8546 #include <signal.h>
8547 int
8548 main ()
8549 {
8550 sig_atomic_t i = 0
8551   ;
8552   return 0;
8553 }
8554 _ACEOF
8555 rm -f conftest.$ac_objext
8556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8557   (eval $ac_compile) 2>&5
8558   ac_status=$?
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); } &&
8561          { ac_try='test -s conftest.$ac_objext'
8562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563   (eval $ac_try) 2>&5
8564   ac_status=$?
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); }; }; then
8567   samba_cv_sig_atomic_t=yes
8568 else
8569   echo "$as_me: failed program was:" >&5
8570 cat conftest.$ac_ext >&5
8571 samba_cv_sig_atomic_t=no
8572 fi
8573 rm -f conftest.$ac_objext conftest.$ac_ext
8574 fi
8575 echo "$as_me:$LINENO: result: $samba_cv_sig_atomic_t" >&5
8576 echo "${ECHO_T}$samba_cv_sig_atomic_t" >&6
8577 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
8578
8579 cat >>confdefs.h <<\_ACEOF
8580 #define HAVE_SIG_ATOMIC_T_TYPE 1
8581 _ACEOF
8582
8583 fi
8584
8585 # stupid headers have the functions but no declaration. grrrr.
8586
8587  echo "$as_me:$LINENO: checking for errno declaration" >&5
8588 echo $ECHO_N "checking for errno declaration... $ECHO_C" >&6
8589 if test "${ac_cv_have_errno_decl+set}" = set; then
8590   echo $ECHO_N "(cached) $ECHO_C" >&6
8591 else
8592
8593     cat >conftest.$ac_ext <<_ACEOF
8594 #line $LINENO "configure"
8595 #include "confdefs.h"
8596 #include <errno.h>
8597 int
8598 main ()
8599 {
8600 int i = (int)errno
8601   ;
8602   return 0;
8603 }
8604 _ACEOF
8605 rm -f conftest.$ac_objext
8606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8607   (eval $ac_compile) 2>&5
8608   ac_status=$?
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); } &&
8611          { ac_try='test -s conftest.$ac_objext'
8612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613   (eval $ac_try) 2>&5
8614   ac_status=$?
8615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616   (exit $ac_status); }; }; then
8617   ac_cv_have_errno_decl=yes
8618 else
8619   echo "$as_me: failed program was:" >&5
8620 cat conftest.$ac_ext >&5
8621 ac_cv_have_errno_decl=no
8622 fi
8623 rm -f conftest.$ac_objext conftest.$ac_ext
8624 fi
8625 echo "$as_me:$LINENO: result: $ac_cv_have_errno_decl" >&5
8626 echo "${ECHO_T}$ac_cv_have_errno_decl" >&6
8627  if test x"$ac_cv_have_errno_decl" = x"yes"; then
8628
8629 cat >>confdefs.h <<\_ACEOF
8630 #define HAVE_ERRNO_DECL 1
8631 _ACEOF
8632
8633  fi
8634
8635
8636  echo "$as_me:$LINENO: checking for setresuid declaration" >&5
8637 echo $ECHO_N "checking for setresuid declaration... $ECHO_C" >&6
8638 if test "${ac_cv_have_setresuid_decl+set}" = set; then
8639   echo $ECHO_N "(cached) $ECHO_C" >&6
8640 else
8641
8642     cat >conftest.$ac_ext <<_ACEOF
8643 #line $LINENO "configure"
8644 #include "confdefs.h"
8645 #include <unistd.h>
8646 int
8647 main ()
8648 {
8649 int i = (int)setresuid
8650   ;
8651   return 0;
8652 }
8653 _ACEOF
8654 rm -f conftest.$ac_objext
8655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8656   (eval $ac_compile) 2>&5
8657   ac_status=$?
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); } &&
8660          { ac_try='test -s conftest.$ac_objext'
8661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662   (eval $ac_try) 2>&5
8663   ac_status=$?
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   (exit $ac_status); }; }; then
8666   ac_cv_have_setresuid_decl=yes
8667 else
8668   echo "$as_me: failed program was:" >&5
8669 cat conftest.$ac_ext >&5
8670 ac_cv_have_setresuid_decl=no
8671 fi
8672 rm -f conftest.$ac_objext conftest.$ac_ext
8673 fi
8674 echo "$as_me:$LINENO: result: $ac_cv_have_setresuid_decl" >&5
8675 echo "${ECHO_T}$ac_cv_have_setresuid_decl" >&6
8676  if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
8677
8678 cat >>confdefs.h <<\_ACEOF
8679 #define HAVE_SETRESUID_DECL 1
8680 _ACEOF
8681
8682  fi
8683
8684
8685  echo "$as_me:$LINENO: checking for setresgid declaration" >&5
8686 echo $ECHO_N "checking for setresgid declaration... $ECHO_C" >&6
8687 if test "${ac_cv_have_setresgid_decl+set}" = set; then
8688   echo $ECHO_N "(cached) $ECHO_C" >&6
8689 else
8690
8691     cat >conftest.$ac_ext <<_ACEOF
8692 #line $LINENO "configure"
8693 #include "confdefs.h"
8694 #include <unistd.h>
8695 int
8696 main ()
8697 {
8698 int i = (int)setresgid
8699   ;
8700   return 0;
8701 }
8702 _ACEOF
8703 rm -f conftest.$ac_objext
8704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8705   (eval $ac_compile) 2>&5
8706   ac_status=$?
8707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708   (exit $ac_status); } &&
8709          { ac_try='test -s conftest.$ac_objext'
8710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711   (eval $ac_try) 2>&5
8712   ac_status=$?
8713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714   (exit $ac_status); }; }; then
8715   ac_cv_have_setresgid_decl=yes
8716 else
8717   echo "$as_me: failed program was:" >&5
8718 cat conftest.$ac_ext >&5
8719 ac_cv_have_setresgid_decl=no
8720 fi
8721 rm -f conftest.$ac_objext conftest.$ac_ext
8722 fi
8723 echo "$as_me:$LINENO: result: $ac_cv_have_setresgid_decl" >&5
8724 echo "${ECHO_T}$ac_cv_have_setresgid_decl" >&6
8725  if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
8726
8727 cat >>confdefs.h <<\_ACEOF
8728 #define HAVE_SETRESGID_DECL 1
8729 _ACEOF
8730
8731  fi
8732
8733
8734  echo "$as_me:$LINENO: checking for asprintf declaration" >&5
8735 echo $ECHO_N "checking for asprintf declaration... $ECHO_C" >&6
8736 if test "${ac_cv_have_asprintf_decl+set}" = set; then
8737   echo $ECHO_N "(cached) $ECHO_C" >&6
8738 else
8739
8740     cat >conftest.$ac_ext <<_ACEOF
8741 #line $LINENO "configure"
8742 #include "confdefs.h"
8743 #include <stdio.h>
8744 int
8745 main ()
8746 {
8747 int i = (int)asprintf
8748   ;
8749   return 0;
8750 }
8751 _ACEOF
8752 rm -f conftest.$ac_objext
8753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8754   (eval $ac_compile) 2>&5
8755   ac_status=$?
8756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757   (exit $ac_status); } &&
8758          { ac_try='test -s conftest.$ac_objext'
8759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760   (eval $ac_try) 2>&5
8761   ac_status=$?
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); }; }; then
8764   ac_cv_have_asprintf_decl=yes
8765 else
8766   echo "$as_me: failed program was:" >&5
8767 cat conftest.$ac_ext >&5
8768 ac_cv_have_asprintf_decl=no
8769 fi
8770 rm -f conftest.$ac_objext conftest.$ac_ext
8771 fi
8772 echo "$as_me:$LINENO: result: $ac_cv_have_asprintf_decl" >&5
8773 echo "${ECHO_T}$ac_cv_have_asprintf_decl" >&6
8774  if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
8775
8776 cat >>confdefs.h <<\_ACEOF
8777 #define HAVE_ASPRINTF_DECL 1
8778 _ACEOF
8779
8780  fi
8781
8782
8783  echo "$as_me:$LINENO: checking for vasprintf declaration" >&5
8784 echo $ECHO_N "checking for vasprintf declaration... $ECHO_C" >&6
8785 if test "${ac_cv_have_vasprintf_decl+set}" = set; then
8786   echo $ECHO_N "(cached) $ECHO_C" >&6
8787 else
8788
8789     cat >conftest.$ac_ext <<_ACEOF
8790 #line $LINENO "configure"
8791 #include "confdefs.h"
8792 #include <stdio.h>
8793 int
8794 main ()
8795 {
8796 int i = (int)vasprintf
8797   ;
8798   return 0;
8799 }
8800 _ACEOF
8801 rm -f conftest.$ac_objext
8802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8803   (eval $ac_compile) 2>&5
8804   ac_status=$?
8805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806   (exit $ac_status); } &&
8807          { ac_try='test -s conftest.$ac_objext'
8808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809   (eval $ac_try) 2>&5
8810   ac_status=$?
8811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812   (exit $ac_status); }; }; then
8813   ac_cv_have_vasprintf_decl=yes
8814 else
8815   echo "$as_me: failed program was:" >&5
8816 cat conftest.$ac_ext >&5
8817 ac_cv_have_vasprintf_decl=no
8818 fi
8819 rm -f conftest.$ac_objext conftest.$ac_ext
8820 fi
8821 echo "$as_me:$LINENO: result: $ac_cv_have_vasprintf_decl" >&5
8822 echo "${ECHO_T}$ac_cv_have_vasprintf_decl" >&6
8823  if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
8824
8825 cat >>confdefs.h <<\_ACEOF
8826 #define HAVE_VASPRINTF_DECL 1
8827 _ACEOF
8828
8829  fi
8830
8831
8832  echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
8833 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
8834 if test "${ac_cv_have_vsnprintf_decl+set}" = set; then
8835   echo $ECHO_N "(cached) $ECHO_C" >&6
8836 else
8837
8838     cat >conftest.$ac_ext <<_ACEOF
8839 #line $LINENO "configure"
8840 #include "confdefs.h"
8841 #include <stdio.h>
8842 int
8843 main ()
8844 {
8845 int i = (int)vsnprintf
8846   ;
8847   return 0;
8848 }
8849 _ACEOF
8850 rm -f conftest.$ac_objext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8852   (eval $ac_compile) 2>&5
8853   ac_status=$?
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   (exit $ac_status); } &&
8856          { ac_try='test -s conftest.$ac_objext'
8857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858   (eval $ac_try) 2>&5
8859   ac_status=$?
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   (exit $ac_status); }; }; then
8862   ac_cv_have_vsnprintf_decl=yes
8863 else
8864   echo "$as_me: failed program was:" >&5
8865 cat conftest.$ac_ext >&5
8866 ac_cv_have_vsnprintf_decl=no
8867 fi
8868 rm -f conftest.$ac_objext conftest.$ac_ext
8869 fi
8870 echo "$as_me:$LINENO: result: $ac_cv_have_vsnprintf_decl" >&5
8871 echo "${ECHO_T}$ac_cv_have_vsnprintf_decl" >&6
8872  if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
8873
8874 cat >>confdefs.h <<\_ACEOF
8875 #define HAVE_VSNPRINTF_DECL 1
8876 _ACEOF
8877
8878  fi
8879
8880
8881  echo "$as_me:$LINENO: checking for snprintf declaration" >&5
8882 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
8883 if test "${ac_cv_have_snprintf_decl+set}" = set; then
8884   echo $ECHO_N "(cached) $ECHO_C" >&6
8885 else
8886
8887     cat >conftest.$ac_ext <<_ACEOF
8888 #line $LINENO "configure"
8889 #include "confdefs.h"
8890 #include <stdio.h>
8891 int
8892 main ()
8893 {
8894 int i = (int)snprintf
8895   ;
8896   return 0;
8897 }
8898 _ACEOF
8899 rm -f conftest.$ac_objext
8900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8901   (eval $ac_compile) 2>&5
8902   ac_status=$?
8903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904   (exit $ac_status); } &&
8905          { ac_try='test -s conftest.$ac_objext'
8906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907   (eval $ac_try) 2>&5
8908   ac_status=$?
8909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910   (exit $ac_status); }; }; then
8911   ac_cv_have_snprintf_decl=yes
8912 else
8913   echo "$as_me: failed program was:" >&5
8914 cat conftest.$ac_ext >&5
8915 ac_cv_have_snprintf_decl=no
8916 fi
8917 rm -f conftest.$ac_objext conftest.$ac_ext
8918 fi
8919 echo "$as_me:$LINENO: result: $ac_cv_have_snprintf_decl" >&5
8920 echo "${ECHO_T}$ac_cv_have_snprintf_decl" >&6
8921  if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
8922
8923 cat >>confdefs.h <<\_ACEOF
8924 #define HAVE_SNPRINTF_DECL 1
8925 _ACEOF
8926
8927  fi
8928
8929
8930 # and glibc has setresuid under linux but the function does
8931 # nothing until kernel 2.1.44! very dumb.
8932 echo "$as_me:$LINENO: checking for real setresuid" >&5
8933 echo $ECHO_N "checking for real setresuid... $ECHO_C" >&6
8934 if test "${samba_cv_have_setresuid+set}" = set; then
8935   echo $ECHO_N "(cached) $ECHO_C" >&6
8936 else
8937
8938     if test "$cross_compiling" = yes; then
8939   samba_cv_have_setresuid=cross
8940 else
8941   cat >conftest.$ac_ext <<_ACEOF
8942 #line $LINENO "configure"
8943 #include "confdefs.h"
8944 #include <errno.h>
8945 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
8946 _ACEOF
8947 rm -f conftest$ac_exeext
8948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8949   (eval $ac_link) 2>&5
8950   ac_status=$?
8951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954   (eval $ac_try) 2>&5
8955   ac_status=$?
8956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957   (exit $ac_status); }; }; then
8958   samba_cv_have_setresuid=yes
8959 else
8960   echo "$as_me: program exited with status $ac_status" >&5
8961 echo "$as_me: failed program was:" >&5
8962 cat conftest.$ac_ext >&5
8963 ( exit $ac_status )
8964 samba_cv_have_setresuid=no
8965 fi
8966 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8967 fi
8968 fi
8969 echo "$as_me:$LINENO: result: $samba_cv_have_setresuid" >&5
8970 echo "${ECHO_T}$samba_cv_have_setresuid" >&6
8971 if test x"$samba_cv_have_setresuid" = x"yes"; then
8972
8973 cat >>confdefs.h <<\_ACEOF
8974 #define HAVE_SETRESUID 1
8975 _ACEOF
8976
8977 fi
8978
8979 # Do the same check for setresguid...
8980 #
8981 echo "$as_me:$LINENO: checking for real setresgid" >&5
8982 echo $ECHO_N "checking for real setresgid... $ECHO_C" >&6
8983 if test "${samba_cv_have_setresgid+set}" = set; then
8984   echo $ECHO_N "(cached) $ECHO_C" >&6
8985 else
8986
8987     if test "$cross_compiling" = yes; then
8988   samba_cv_have_setresgid=cross
8989 else
8990   cat >conftest.$ac_ext <<_ACEOF
8991 #line $LINENO "configure"
8992 #include "confdefs.h"
8993 #include <unistd.h>
8994 #include <errno.h>
8995 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
8996 _ACEOF
8997 rm -f conftest$ac_exeext
8998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8999   (eval $ac_link) 2>&5
9000   ac_status=$?
9001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004   (eval $ac_try) 2>&5
9005   ac_status=$?
9006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007   (exit $ac_status); }; }; then
9008   samba_cv_have_setresgid=yes
9009 else
9010   echo "$as_me: program exited with status $ac_status" >&5
9011 echo "$as_me: failed program was:" >&5
9012 cat conftest.$ac_ext >&5
9013 ( exit $ac_status )
9014 samba_cv_have_setresgid=no
9015 fi
9016 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9017 fi
9018 fi
9019 echo "$as_me:$LINENO: result: $samba_cv_have_setresgid" >&5
9020 echo "${ECHO_T}$samba_cv_have_setresgid" >&6
9021 if test x"$samba_cv_have_setresgid" = x"yes"; then
9022
9023 cat >>confdefs.h <<\_ACEOF
9024 #define HAVE_SETRESGID 1
9025 _ACEOF
9026
9027 fi
9028
9029 echo "$as_me:$LINENO: checking for working memcmp" >&5
9030 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9031 if test "${ac_cv_func_memcmp_working+set}" = set; then
9032   echo $ECHO_N "(cached) $ECHO_C" >&6
9033 else
9034   if test "$cross_compiling" = yes; then
9035   ac_cv_func_memcmp_working=no
9036 else
9037   cat >conftest.$ac_ext <<_ACEOF
9038 #line $LINENO "configure"
9039 #include "confdefs.h"
9040
9041 int
9042 main ()
9043 {
9044
9045   /* Some versions of memcmp are not 8-bit clean.  */
9046   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9047   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9048     exit (1);
9049
9050   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9051      or more and with at least one buffer not starting on a 4-byte boundary.
9052      William Lewis provided this test program.   */
9053   {
9054     char foo[21];
9055     char bar[21];
9056     int i;
9057     for (i = 0; i < 4; i++)
9058       {
9059         char *a = foo + i;
9060         char *b = bar + i;
9061         strcpy (a, "--------01111111");
9062         strcpy (b, "--------10000000");
9063         if (memcmp (a, b, 16) >= 0)
9064           exit (1);
9065       }
9066     exit (0);
9067   }
9068
9069   ;
9070   return 0;
9071 }
9072 _ACEOF
9073 rm -f conftest$ac_exeext
9074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9075   (eval $ac_link) 2>&5
9076   ac_status=$?
9077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080   (eval $ac_try) 2>&5
9081   ac_status=$?
9082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083   (exit $ac_status); }; }; then
9084   ac_cv_func_memcmp_working=yes
9085 else
9086   echo "$as_me: program exited with status $ac_status" >&5
9087 echo "$as_me: failed program was:" >&5
9088 cat conftest.$ac_ext >&5
9089 ( exit $ac_status )
9090 ac_cv_func_memcmp_working=no
9091 fi
9092 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9093 fi
9094 fi
9095 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9096 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9097 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9098
9099
9100 ###############################################
9101 # test for where we get crypt() from
9102
9103 for ac_func in crypt
9104 do
9105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9106 echo "$as_me:$LINENO: checking for $ac_func" >&5
9107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9108 if eval "test \"\${$as_ac_var+set}\" = set"; then
9109   echo $ECHO_N "(cached) $ECHO_C" >&6
9110 else
9111   cat >conftest.$ac_ext <<_ACEOF
9112 #line $LINENO "configure"
9113 #include "confdefs.h"
9114 /* System header to define __stub macros and hopefully few prototypes,
9115     which can conflict with char $ac_func (); below.  */
9116 #include <assert.h>
9117 /* Override any gcc2 internal prototype to avoid an error.  */
9118 #ifdef __cplusplus
9119 extern "C"
9120 #endif
9121 /* We use char because int might match the return type of a gcc2
9122    builtin and then its argument prototype would still apply.  */
9123 char $ac_func ();
9124 char (*f) ();
9125
9126 int
9127 main ()
9128 {
9129 /* The GNU C library defines this for functions which it implements
9130     to always fail with ENOSYS.  Some functions are actually named
9131     something starting with __ and the normal name is an alias.  */
9132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9133 choke me
9134 #else
9135 f = $ac_func;
9136 #endif
9137
9138   ;
9139   return 0;
9140 }
9141 _ACEOF
9142 rm -f conftest.$ac_objext conftest$ac_exeext
9143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9144   (eval $ac_link) 2>&5
9145   ac_status=$?
9146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147   (exit $ac_status); } &&
9148          { ac_try='test -s conftest$ac_exeext'
9149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150   (eval $ac_try) 2>&5
9151   ac_status=$?
9152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153   (exit $ac_status); }; }; then
9154   eval "$as_ac_var=yes"
9155 else
9156   echo "$as_me: failed program was:" >&5
9157 cat conftest.$ac_ext >&5
9158 eval "$as_ac_var=no"
9159 fi
9160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9161 fi
9162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9164 if test `eval echo '${'$as_ac_var'}'` = yes; then
9165   cat >>confdefs.h <<_ACEOF
9166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9167 _ACEOF
9168
9169 fi
9170 done
9171
9172 if test x"$ac_cv_func_crypt" = x"no"; then
9173     echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
9174 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
9175 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9176   echo $ECHO_N "(cached) $ECHO_C" >&6
9177 else
9178   ac_check_lib_save_LIBS=$LIBS
9179 LIBS="-lcrypt  $LIBS"
9180 cat >conftest.$ac_ext <<_ACEOF
9181 #line $LINENO "configure"
9182 #include "confdefs.h"
9183
9184 /* Override any gcc2 internal prototype to avoid an error.  */
9185 #ifdef __cplusplus
9186 extern "C"
9187 #endif
9188 /* We use char because int might match the return type of a gcc2
9189    builtin and then its argument prototype would still apply.  */
9190 char crypt ();
9191 int
9192 main ()
9193 {
9194 crypt ();
9195   ;
9196   return 0;
9197 }
9198 _ACEOF
9199 rm -f conftest.$ac_objext conftest$ac_exeext
9200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9201   (eval $ac_link) 2>&5
9202   ac_status=$?
9203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204   (exit $ac_status); } &&
9205          { ac_try='test -s conftest$ac_exeext'
9206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207   (eval $ac_try) 2>&5
9208   ac_status=$?
9209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210   (exit $ac_status); }; }; then
9211   ac_cv_lib_crypt_crypt=yes
9212 else
9213   echo "$as_me: failed program was:" >&5
9214 cat conftest.$ac_ext >&5
9215 ac_cv_lib_crypt_crypt=no
9216 fi
9217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9218 LIBS=$ac_check_lib_save_LIBS
9219 fi
9220 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
9221 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
9222 if test $ac_cv_lib_crypt_crypt = yes; then
9223   AUTHLIBS="$AUTHLIBS -lcrypt";
9224
9225 cat >>confdefs.h <<\_ACEOF
9226 #define HAVE_CRYPT 1
9227 _ACEOF
9228
9229 fi
9230
9231 fi
9232
9233
9234 ###############################################
9235 # Readline included by default unless explicitly asked not to
9236 test "${with_readline+set}" != "set" && with_readline=yes
9237
9238 # test for where we get readline() from
9239 echo "$as_me:$LINENO: checking whether to use readline" >&5
9240 echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6
9241
9242 # Check whether --with-readline or --without-readline was given.
9243 if test "${with_readline+set}" = set; then
9244   withval="$with_readline"
9245     case "$with_readline" in
9246   yes)
9247     echo "$as_me:$LINENO: result: yes" >&5
9248 echo "${ECHO_T}yes" >&6
9249
9250
9251
9252
9253 for ac_header in readline.h history.h readline/readline.h
9254 do
9255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9257   echo "$as_me:$LINENO: checking for $ac_header" >&5
9258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9260   echo $ECHO_N "(cached) $ECHO_C" >&6
9261 fi
9262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9264 else
9265   # Is the header compilable?
9266 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9268 cat >conftest.$ac_ext <<_ACEOF
9269 #line $LINENO "configure"
9270 #include "confdefs.h"
9271 $ac_includes_default
9272 #include <$ac_header>
9273 _ACEOF
9274 rm -f conftest.$ac_objext
9275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9276   (eval $ac_compile) 2>&5
9277   ac_status=$?
9278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279   (exit $ac_status); } &&
9280          { ac_try='test -s conftest.$ac_objext'
9281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282   (eval $ac_try) 2>&5
9283   ac_status=$?
9284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285   (exit $ac_status); }; }; then
9286   ac_header_compiler=yes
9287 else
9288   echo "$as_me: failed program was:" >&5
9289 cat conftest.$ac_ext >&5
9290 ac_header_compiler=no
9291 fi
9292 rm -f conftest.$ac_objext conftest.$ac_ext
9293 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9294 echo "${ECHO_T}$ac_header_compiler" >&6
9295
9296 # Is the header present?
9297 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9299 cat >conftest.$ac_ext <<_ACEOF
9300 #line $LINENO "configure"
9301 #include "confdefs.h"
9302 #include <$ac_header>
9303 _ACEOF
9304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9305   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9306   ac_status=$?
9307   grep -v '^ *+' conftest.er1 >conftest.err
9308   rm -f conftest.er1
9309   cat conftest.err >&5
9310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311   (exit $ac_status); } >/dev/null; then
9312   if test -s conftest.err; then
9313     ac_cpp_err=$ac_c_preproc_warn_flag
9314   else
9315     ac_cpp_err=
9316   fi
9317 else
9318   ac_cpp_err=yes
9319 fi
9320 if test -z "$ac_cpp_err"; then
9321   ac_header_preproc=yes
9322 else
9323   echo "$as_me: failed program was:" >&5
9324   cat conftest.$ac_ext >&5
9325   ac_header_preproc=no
9326 fi
9327 rm -f conftest.err conftest.$ac_ext
9328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9329 echo "${ECHO_T}$ac_header_preproc" >&6
9330
9331 # So?  What about this header?
9332 case $ac_header_compiler:$ac_header_preproc in
9333   yes:no )
9334     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9336     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9338   no:yes )
9339     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9341     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9343     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9345 esac
9346 echo "$as_me:$LINENO: checking for $ac_header" >&5
9347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9349   echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351   eval "$as_ac_Header=$ac_header_preproc"
9352 fi
9353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9355
9356 fi
9357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9358   cat >>confdefs.h <<_ACEOF
9359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9360 _ACEOF
9361
9362 fi
9363
9364 done
9365
9366
9367 for ac_header in readline/history.h
9368 do
9369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9371   echo "$as_me:$LINENO: checking for $ac_header" >&5
9372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9374   echo $ECHO_N "(cached) $ECHO_C" >&6
9375 fi
9376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9378 else
9379   # Is the header compilable?
9380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9382 cat >conftest.$ac_ext <<_ACEOF
9383 #line $LINENO "configure"
9384 #include "confdefs.h"
9385 $ac_includes_default
9386 #include <$ac_header>
9387 _ACEOF
9388 rm -f conftest.$ac_objext
9389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9390   (eval $ac_compile) 2>&5
9391   ac_status=$?
9392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393   (exit $ac_status); } &&
9394          { ac_try='test -s conftest.$ac_objext'
9395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396   (eval $ac_try) 2>&5
9397   ac_status=$?
9398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399   (exit $ac_status); }; }; then
9400   ac_header_compiler=yes
9401 else
9402   echo "$as_me: failed program was:" >&5
9403 cat conftest.$ac_ext >&5
9404 ac_header_compiler=no
9405 fi
9406 rm -f conftest.$ac_objext conftest.$ac_ext
9407 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9408 echo "${ECHO_T}$ac_header_compiler" >&6
9409
9410 # Is the header present?
9411 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9413 cat >conftest.$ac_ext <<_ACEOF
9414 #line $LINENO "configure"
9415 #include "confdefs.h"
9416 #include <$ac_header>
9417 _ACEOF
9418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9419   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9420   ac_status=$?
9421   grep -v '^ *+' conftest.er1 >conftest.err
9422   rm -f conftest.er1
9423   cat conftest.err >&5
9424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425   (exit $ac_status); } >/dev/null; then
9426   if test -s conftest.err; then
9427     ac_cpp_err=$ac_c_preproc_warn_flag
9428   else
9429     ac_cpp_err=
9430   fi
9431 else
9432   ac_cpp_err=yes
9433 fi
9434 if test -z "$ac_cpp_err"; then
9435   ac_header_preproc=yes
9436 else
9437   echo "$as_me: failed program was:" >&5
9438   cat conftest.$ac_ext >&5
9439   ac_header_preproc=no
9440 fi
9441 rm -f conftest.err conftest.$ac_ext
9442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9443 echo "${ECHO_T}$ac_header_preproc" >&6
9444
9445 # So?  What about this header?
9446 case $ac_header_compiler:$ac_header_preproc in
9447   yes:no )
9448     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9452   no:yes )
9453     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9455     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9459 esac
9460 echo "$as_me:$LINENO: checking for $ac_header" >&5
9461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9463   echo $ECHO_N "(cached) $ECHO_C" >&6
9464 else
9465   eval "$as_ac_Header=$ac_header_preproc"
9466 fi
9467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9469
9470 fi
9471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9472   cat >>confdefs.h <<_ACEOF
9473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9474 _ACEOF
9475
9476 fi
9477
9478 done
9479
9480
9481
9482
9483 for ac_header in readline.h readline/readline.h
9484 do
9485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9487   echo "$as_me:$LINENO: checking for $ac_header" >&5
9488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9490   echo $ECHO_N "(cached) $ECHO_C" >&6
9491 fi
9492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9494 else
9495   # Is the header compilable?
9496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9498 cat >conftest.$ac_ext <<_ACEOF
9499 #line $LINENO "configure"
9500 #include "confdefs.h"
9501 $ac_includes_default
9502 #include <$ac_header>
9503 _ACEOF
9504 rm -f conftest.$ac_objext
9505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9506   (eval $ac_compile) 2>&5
9507   ac_status=$?
9508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509   (exit $ac_status); } &&
9510          { ac_try='test -s conftest.$ac_objext'
9511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512   (eval $ac_try) 2>&5
9513   ac_status=$?
9514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515   (exit $ac_status); }; }; then
9516   ac_header_compiler=yes
9517 else
9518   echo "$as_me: failed program was:" >&5
9519 cat conftest.$ac_ext >&5
9520 ac_header_compiler=no
9521 fi
9522 rm -f conftest.$ac_objext conftest.$ac_ext
9523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9524 echo "${ECHO_T}$ac_header_compiler" >&6
9525
9526 # Is the header present?
9527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9529 cat >conftest.$ac_ext <<_ACEOF
9530 #line $LINENO "configure"
9531 #include "confdefs.h"
9532 #include <$ac_header>
9533 _ACEOF
9534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9535   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9536   ac_status=$?
9537   grep -v '^ *+' conftest.er1 >conftest.err
9538   rm -f conftest.er1
9539   cat conftest.err >&5
9540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541   (exit $ac_status); } >/dev/null; then
9542   if test -s conftest.err; then
9543     ac_cpp_err=$ac_c_preproc_warn_flag
9544   else
9545     ac_cpp_err=
9546   fi
9547 else
9548   ac_cpp_err=yes
9549 fi
9550 if test -z "$ac_cpp_err"; then
9551   ac_header_preproc=yes
9552 else
9553   echo "$as_me: failed program was:" >&5
9554   cat conftest.$ac_ext >&5
9555   ac_header_preproc=no
9556 fi
9557 rm -f conftest.err conftest.$ac_ext
9558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9559 echo "${ECHO_T}$ac_header_preproc" >&6
9560
9561 # So?  What about this header?
9562 case $ac_header_compiler:$ac_header_preproc in
9563   yes:no )
9564     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9568   no:yes )
9569     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9571     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9575 esac
9576 echo "$as_me:$LINENO: checking for $ac_header" >&5
9577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9579   echo $ECHO_N "(cached) $ECHO_C" >&6
9580 else
9581   eval "$as_ac_Header=$ac_header_preproc"
9582 fi
9583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9585
9586 fi
9587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9588   cat >>confdefs.h <<_ACEOF
9589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9590 _ACEOF
9591
9592       for termlib in ncurses curses termcap terminfo termlib; do
9593        as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
9594 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
9595 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
9596 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
9597   echo $ECHO_N "(cached) $ECHO_C" >&6
9598 else
9599   ac_check_lib_save_LIBS=$LIBS
9600 LIBS="-l${termlib}  $LIBS"
9601 cat >conftest.$ac_ext <<_ACEOF
9602 #line $LINENO "configure"
9603 #include "confdefs.h"
9604
9605 /* Override any gcc2 internal prototype to avoid an error.  */
9606 #ifdef __cplusplus
9607 extern "C"
9608 #endif
9609 /* We use char because int might match the return type of a gcc2
9610    builtin and then its argument prototype would still apply.  */
9611 char tgetent ();
9612 int
9613 main ()
9614 {
9615 tgetent ();
9616   ;
9617   return 0;
9618 }
9619 _ACEOF
9620 rm -f conftest.$ac_objext conftest$ac_exeext
9621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9622   (eval $ac_link) 2>&5
9623   ac_status=$?
9624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625   (exit $ac_status); } &&
9626          { ac_try='test -s conftest$ac_exeext'
9627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628   (eval $ac_try) 2>&5
9629   ac_status=$?
9630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631   (exit $ac_status); }; }; then
9632   eval "$as_ac_Lib=yes"
9633 else
9634   echo "$as_me: failed program was:" >&5
9635 cat conftest.$ac_ext >&5
9636 eval "$as_ac_Lib=no"
9637 fi
9638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9639 LIBS=$ac_check_lib_save_LIBS
9640 fi
9641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
9642 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
9643 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9644   TERMLIBS="-l${termlib}"; break
9645 fi
9646
9647       done
9648       echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
9649 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
9650 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
9651   echo $ECHO_N "(cached) $ECHO_C" >&6
9652 else
9653   ac_check_lib_save_LIBS=$LIBS
9654 LIBS="-lreadline $TERMLIBS $LIBS"
9655 cat >conftest.$ac_ext <<_ACEOF
9656 #line $LINENO "configure"
9657 #include "confdefs.h"
9658
9659 /* Override any gcc2 internal prototype to avoid an error.  */
9660 #ifdef __cplusplus
9661 extern "C"
9662 #endif
9663 /* We use char because int might match the return type of a gcc2
9664    builtin and then its argument prototype would still apply.  */
9665 char rl_callback_handler_install ();
9666 int
9667 main ()
9668 {
9669 rl_callback_handler_install ();
9670   ;
9671   return 0;
9672 }
9673 _ACEOF
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9676   (eval $ac_link) 2>&5
9677   ac_status=$?
9678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679   (exit $ac_status); } &&
9680          { ac_try='test -s conftest$ac_exeext'
9681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682   (eval $ac_try) 2>&5
9683   ac_status=$?
9684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   (exit $ac_status); }; }; then
9686   ac_cv_lib_readline_rl_callback_handler_install=yes
9687 else
9688   echo "$as_me: failed program was:" >&5
9689 cat conftest.$ac_ext >&5
9690 ac_cv_lib_readline_rl_callback_handler_install=no
9691 fi
9692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9693 LIBS=$ac_check_lib_save_LIBS
9694 fi
9695 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
9696 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
9697 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
9698   TERMLIBS="-lreadline $TERMLIBS"
9699
9700 cat >>confdefs.h <<\_ACEOF
9701 #define HAVE_LIBREADLINE 1
9702 _ACEOF
9703
9704        break
9705 else
9706   TERMLIBS=
9707 fi
9708
9709 fi
9710
9711 done
9712
9713     ;;
9714   no)
9715     echo "$as_me:$LINENO: result: no" >&5
9716 echo "${ECHO_T}no" >&6
9717     ;;
9718   *)
9719     echo "$as_me:$LINENO: result: yes" >&5
9720 echo "${ECHO_T}yes" >&6
9721
9722     # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
9723     # alternate readline path
9724     _ldflags=${LDFLAGS}
9725     _cppflags=${CPPFLAGS}
9726
9727     # Add additional search path
9728     LDFLAGS="-L$with_readline/lib $LDFLAGS"
9729     CPPFLAGS="-I$with_readline/include $CPPFLAGS"
9730
9731
9732
9733
9734 for ac_header in readline.h history.h readline/readline.h
9735 do
9736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9738   echo "$as_me:$LINENO: checking for $ac_header" >&5
9739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9741   echo $ECHO_N "(cached) $ECHO_C" >&6
9742 fi
9743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9745 else
9746   # Is the header compilable?
9747 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9749 cat >conftest.$ac_ext <<_ACEOF
9750 #line $LINENO "configure"
9751 #include "confdefs.h"
9752 $ac_includes_default
9753 #include <$ac_header>
9754 _ACEOF
9755 rm -f conftest.$ac_objext
9756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9757   (eval $ac_compile) 2>&5
9758   ac_status=$?
9759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760   (exit $ac_status); } &&
9761          { ac_try='test -s conftest.$ac_objext'
9762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763   (eval $ac_try) 2>&5
9764   ac_status=$?
9765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766   (exit $ac_status); }; }; then
9767   ac_header_compiler=yes
9768 else
9769   echo "$as_me: failed program was:" >&5
9770 cat conftest.$ac_ext >&5
9771 ac_header_compiler=no
9772 fi
9773 rm -f conftest.$ac_objext conftest.$ac_ext
9774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9775 echo "${ECHO_T}$ac_header_compiler" >&6
9776
9777 # Is the header present?
9778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9780 cat >conftest.$ac_ext <<_ACEOF
9781 #line $LINENO "configure"
9782 #include "confdefs.h"
9783 #include <$ac_header>
9784 _ACEOF
9785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9786   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9787   ac_status=$?
9788   grep -v '^ *+' conftest.er1 >conftest.err
9789   rm -f conftest.er1
9790   cat conftest.err >&5
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); } >/dev/null; then
9793   if test -s conftest.err; then
9794     ac_cpp_err=$ac_c_preproc_warn_flag
9795   else
9796     ac_cpp_err=
9797   fi
9798 else
9799   ac_cpp_err=yes
9800 fi
9801 if test -z "$ac_cpp_err"; then
9802   ac_header_preproc=yes
9803 else
9804   echo "$as_me: failed program was:" >&5
9805   cat conftest.$ac_ext >&5
9806   ac_header_preproc=no
9807 fi
9808 rm -f conftest.err conftest.$ac_ext
9809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9810 echo "${ECHO_T}$ac_header_preproc" >&6
9811
9812 # So?  What about this header?
9813 case $ac_header_compiler:$ac_header_preproc in
9814   yes:no )
9815     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9819   no:yes )
9820     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9822     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9826 esac
9827 echo "$as_me:$LINENO: checking for $ac_header" >&5
9828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9830   echo $ECHO_N "(cached) $ECHO_C" >&6
9831 else
9832   eval "$as_ac_Header=$ac_header_preproc"
9833 fi
9834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9836
9837 fi
9838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9839   cat >>confdefs.h <<_ACEOF
9840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9841 _ACEOF
9842
9843 fi
9844
9845 done
9846
9847
9848 for ac_header in readline/history.h
9849 do
9850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9852   echo "$as_me:$LINENO: checking for $ac_header" >&5
9853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9855   echo $ECHO_N "(cached) $ECHO_C" >&6
9856 fi
9857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9859 else
9860   # Is the header compilable?
9861 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9863 cat >conftest.$ac_ext <<_ACEOF
9864 #line $LINENO "configure"
9865 #include "confdefs.h"
9866 $ac_includes_default
9867 #include <$ac_header>
9868 _ACEOF
9869 rm -f conftest.$ac_objext
9870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9871   (eval $ac_compile) 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); } &&
9875          { ac_try='test -s conftest.$ac_objext'
9876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877   (eval $ac_try) 2>&5
9878   ac_status=$?
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); }; }; then
9881   ac_header_compiler=yes
9882 else
9883   echo "$as_me: failed program was:" >&5
9884 cat conftest.$ac_ext >&5
9885 ac_header_compiler=no
9886 fi
9887 rm -f conftest.$ac_objext conftest.$ac_ext
9888 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9889 echo "${ECHO_T}$ac_header_compiler" >&6
9890
9891 # Is the header present?
9892 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9894 cat >conftest.$ac_ext <<_ACEOF
9895 #line $LINENO "configure"
9896 #include "confdefs.h"
9897 #include <$ac_header>
9898 _ACEOF
9899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9900   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9901   ac_status=$?
9902   grep -v '^ *+' conftest.er1 >conftest.err
9903   rm -f conftest.er1
9904   cat conftest.err >&5
9905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); } >/dev/null; then
9907   if test -s conftest.err; then
9908     ac_cpp_err=$ac_c_preproc_warn_flag
9909   else
9910     ac_cpp_err=
9911   fi
9912 else
9913   ac_cpp_err=yes
9914 fi
9915 if test -z "$ac_cpp_err"; then
9916   ac_header_preproc=yes
9917 else
9918   echo "$as_me: failed program was:" >&5
9919   cat conftest.$ac_ext >&5
9920   ac_header_preproc=no
9921 fi
9922 rm -f conftest.err conftest.$ac_ext
9923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9924 echo "${ECHO_T}$ac_header_preproc" >&6
9925
9926 # So?  What about this header?
9927 case $ac_header_compiler:$ac_header_preproc in
9928   yes:no )
9929     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9933   no:yes )
9934     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9936     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9940 esac
9941 echo "$as_me:$LINENO: checking for $ac_header" >&5
9942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9944   echo $ECHO_N "(cached) $ECHO_C" >&6
9945 else
9946   eval "$as_ac_Header=$ac_header_preproc"
9947 fi
9948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9950
9951 fi
9952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9953   cat >>confdefs.h <<_ACEOF
9954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9955 _ACEOF
9956
9957 fi
9958
9959 done
9960
9961
9962
9963
9964 for ac_header in readline.h readline/readline.h
9965 do
9966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9968   echo "$as_me:$LINENO: checking for $ac_header" >&5
9969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9971   echo $ECHO_N "(cached) $ECHO_C" >&6
9972 fi
9973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9975 else
9976   # Is the header compilable?
9977 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9979 cat >conftest.$ac_ext <<_ACEOF
9980 #line $LINENO "configure"
9981 #include "confdefs.h"
9982 $ac_includes_default
9983 #include <$ac_header>
9984 _ACEOF
9985 rm -f conftest.$ac_objext
9986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9987   (eval $ac_compile) 2>&5
9988   ac_status=$?
9989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990   (exit $ac_status); } &&
9991          { ac_try='test -s conftest.$ac_objext'
9992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993   (eval $ac_try) 2>&5
9994   ac_status=$?
9995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996   (exit $ac_status); }; }; then
9997   ac_header_compiler=yes
9998 else
9999   echo "$as_me: failed program was:" >&5
10000 cat conftest.$ac_ext >&5
10001 ac_header_compiler=no
10002 fi
10003 rm -f conftest.$ac_objext conftest.$ac_ext
10004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10005 echo "${ECHO_T}$ac_header_compiler" >&6
10006
10007 # Is the header present?
10008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10010 cat >conftest.$ac_ext <<_ACEOF
10011 #line $LINENO "configure"
10012 #include "confdefs.h"
10013 #include <$ac_header>
10014 _ACEOF
10015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10016   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10017   ac_status=$?
10018   grep -v '^ *+' conftest.er1 >conftest.err
10019   rm -f conftest.er1
10020   cat conftest.err >&5
10021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022   (exit $ac_status); } >/dev/null; then
10023   if test -s conftest.err; then
10024     ac_cpp_err=$ac_c_preproc_warn_flag
10025   else
10026     ac_cpp_err=
10027   fi
10028 else
10029   ac_cpp_err=yes
10030 fi
10031 if test -z "$ac_cpp_err"; then
10032   ac_header_preproc=yes
10033 else
10034   echo "$as_me: failed program was:" >&5
10035   cat conftest.$ac_ext >&5
10036   ac_header_preproc=no
10037 fi
10038 rm -f conftest.err conftest.$ac_ext
10039 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10040 echo "${ECHO_T}$ac_header_preproc" >&6
10041
10042 # So?  What about this header?
10043 case $ac_header_compiler:$ac_header_preproc in
10044   yes:no )
10045     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10046 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10047     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10049   no:yes )
10050     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10052     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10056 esac
10057 echo "$as_me:$LINENO: checking for $ac_header" >&5
10058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10060   echo $ECHO_N "(cached) $ECHO_C" >&6
10061 else
10062   eval "$as_ac_Header=$ac_header_preproc"
10063 fi
10064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10066
10067 fi
10068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10069   cat >>confdefs.h <<_ACEOF
10070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10071 _ACEOF
10072
10073       for termlib in ncurses curses termcap terminfo termlib; do
10074        as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
10075 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
10076 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
10077 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10078   echo $ECHO_N "(cached) $ECHO_C" >&6
10079 else
10080   ac_check_lib_save_LIBS=$LIBS
10081 LIBS="-l${termlib}  $LIBS"
10082 cat >conftest.$ac_ext <<_ACEOF
10083 #line $LINENO "configure"
10084 #include "confdefs.h"
10085
10086 /* Override any gcc2 internal prototype to avoid an error.  */
10087 #ifdef __cplusplus
10088 extern "C"
10089 #endif
10090 /* We use char because int might match the return type of a gcc2
10091    builtin and then its argument prototype would still apply.  */
10092 char tgetent ();
10093 int
10094 main ()
10095 {
10096 tgetent ();
10097   ;
10098   return 0;
10099 }
10100 _ACEOF
10101 rm -f conftest.$ac_objext conftest$ac_exeext
10102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10103   (eval $ac_link) 2>&5
10104   ac_status=$?
10105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106   (exit $ac_status); } &&
10107          { ac_try='test -s conftest$ac_exeext'
10108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109   (eval $ac_try) 2>&5
10110   ac_status=$?
10111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112   (exit $ac_status); }; }; then
10113   eval "$as_ac_Lib=yes"
10114 else
10115   echo "$as_me: failed program was:" >&5
10116 cat conftest.$ac_ext >&5
10117 eval "$as_ac_Lib=no"
10118 fi
10119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10120 LIBS=$ac_check_lib_save_LIBS
10121 fi
10122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10123 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10124 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10125   TERMLIBS="-l${termlib}"; break
10126 fi
10127
10128       done
10129       echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
10130 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
10131 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
10132   echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134   ac_check_lib_save_LIBS=$LIBS
10135 LIBS="-lreadline $TERMLIBS $LIBS"
10136 cat >conftest.$ac_ext <<_ACEOF
10137 #line $LINENO "configure"
10138 #include "confdefs.h"
10139
10140 /* Override any gcc2 internal prototype to avoid an error.  */
10141 #ifdef __cplusplus
10142 extern "C"
10143 #endif
10144 /* We use char because int might match the return type of a gcc2
10145    builtin and then its argument prototype would still apply.  */
10146 char rl_callback_handler_install ();
10147 int
10148 main ()
10149 {
10150 rl_callback_handler_install ();
10151   ;
10152   return 0;
10153 }
10154 _ACEOF
10155 rm -f conftest.$ac_objext conftest$ac_exeext
10156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10157   (eval $ac_link) 2>&5
10158   ac_status=$?
10159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160   (exit $ac_status); } &&
10161          { ac_try='test -s conftest$ac_exeext'
10162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163   (eval $ac_try) 2>&5
10164   ac_status=$?
10165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166   (exit $ac_status); }; }; then
10167   ac_cv_lib_readline_rl_callback_handler_install=yes
10168 else
10169   echo "$as_me: failed program was:" >&5
10170 cat conftest.$ac_ext >&5
10171 ac_cv_lib_readline_rl_callback_handler_install=no
10172 fi
10173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10174 LIBS=$ac_check_lib_save_LIBS
10175 fi
10176 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
10177 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
10178 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
10179   TERMLDFLAGS="-L$with_readline/lib"
10180        TERMCPPFLAGS="-I$with_readline/include"
10181        CPPFLAGS="-I$with_readline/include $CPPFLAGS"
10182        TERMLIBS="-lreadline $TERMLIBS"
10183
10184 cat >>confdefs.h <<\_ACEOF
10185 #define HAVE_LIBREADLINE 1
10186 _ACEOF
10187
10188        break
10189 else
10190   TERMLIBS= CPPFLAGS=$_cppflags
10191 fi
10192
10193 fi
10194
10195 done
10196
10197
10198     LDFLAGS=$_ldflags
10199     ;;
10200   esac
10201 else
10202   echo "$as_me:$LINENO: result: no" >&5
10203 echo "${ECHO_T}no" >&6
10204
10205 fi;
10206
10207
10208
10209 # The readline API changed slightly from readline3 to readline4, so
10210 # code will generate warnings on one of them unless we have a few
10211 # special cases.
10212 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
10213 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
10214 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
10215   echo $ECHO_N "(cached) $ECHO_C" >&6
10216 else
10217   ac_check_lib_save_LIBS=$LIBS
10218 LIBS="-lreadline $TERMLIBS $LIBS"
10219 cat >conftest.$ac_ext <<_ACEOF
10220 #line $LINENO "configure"
10221 #include "confdefs.h"
10222
10223 /* Override any gcc2 internal prototype to avoid an error.  */
10224 #ifdef __cplusplus
10225 extern "C"
10226 #endif
10227 /* We use char because int might match the return type of a gcc2
10228    builtin and then its argument prototype would still apply.  */
10229 char rl_completion_matches ();
10230 int
10231 main ()
10232 {
10233 rl_completion_matches ();
10234   ;
10235   return 0;
10236 }
10237 _ACEOF
10238 rm -f conftest.$ac_objext conftest$ac_exeext
10239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10240   (eval $ac_link) 2>&5
10241   ac_status=$?
10242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243   (exit $ac_status); } &&
10244          { ac_try='test -s conftest$ac_exeext'
10245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10246   (eval $ac_try) 2>&5
10247   ac_status=$?
10248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249   (exit $ac_status); }; }; then
10250   ac_cv_lib_readline_rl_completion_matches=yes
10251 else
10252   echo "$as_me: failed program was:" >&5
10253 cat conftest.$ac_ext >&5
10254 ac_cv_lib_readline_rl_completion_matches=no
10255 fi
10256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10257 LIBS=$ac_check_lib_save_LIBS
10258 fi
10259 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
10260 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
10261 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
10262
10263 cat >>confdefs.h <<\_ACEOF
10264 #define HAVE_NEW_LIBREADLINE 1
10265 _ACEOF
10266
10267 fi
10268
10269
10270 # The following test taken from the cvs sources
10271 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
10272 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
10273 # libsocket.so which has a bad implementation of gethostbyname (it
10274 # only looks in /etc/hosts), so we only look for -lsocket if we need
10275 # it.
10276
10277 for ac_func in connect
10278 do
10279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10280 echo "$as_me:$LINENO: checking for $ac_func" >&5
10281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10282 if eval "test \"\${$as_ac_var+set}\" = set"; then
10283   echo $ECHO_N "(cached) $ECHO_C" >&6
10284 else
10285   cat >conftest.$ac_ext <<_ACEOF
10286 #line $LINENO "configure"
10287 #include "confdefs.h"
10288 /* System header to define __stub macros and hopefully few prototypes,
10289     which can conflict with char $ac_func (); below.  */
10290 #include <assert.h>
10291 /* Override any gcc2 internal prototype to avoid an error.  */
10292 #ifdef __cplusplus
10293 extern "C"
10294 #endif
10295 /* We use char because int might match the return type of a gcc2
10296    builtin and then its argument prototype would still apply.  */
10297 char $ac_func ();
10298 char (*f) ();
10299
10300 int
10301 main ()
10302 {
10303 /* The GNU C library defines this for functions which it implements
10304     to always fail with ENOSYS.  Some functions are actually named
10305     something starting with __ and the normal name is an alias.  */
10306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10307 choke me
10308 #else
10309 f = $ac_func;
10310 #endif
10311
10312   ;
10313   return 0;
10314 }
10315 _ACEOF
10316 rm -f conftest.$ac_objext conftest$ac_exeext
10317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10318   (eval $ac_link) 2>&5
10319   ac_status=$?
10320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321   (exit $ac_status); } &&
10322          { ac_try='test -s conftest$ac_exeext'
10323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324   (eval $ac_try) 2>&5
10325   ac_status=$?
10326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327   (exit $ac_status); }; }; then
10328   eval "$as_ac_var=yes"
10329 else
10330   echo "$as_me: failed program was:" >&5
10331 cat conftest.$ac_ext >&5
10332 eval "$as_ac_var=no"
10333 fi
10334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10335 fi
10336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10338 if test `eval echo '${'$as_ac_var'}'` = yes; then
10339   cat >>confdefs.h <<_ACEOF
10340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10341 _ACEOF
10342
10343 fi
10344 done
10345
10346 if test x"$ac_cv_func_connect" = x"no"; then
10347     case "$LIBS" in
10348     *-lnsl*) ;;
10349     *)
10350 echo "$as_me:$LINENO: checking for printf in -lnsl_s" >&5
10351 echo $ECHO_N "checking for printf in -lnsl_s... $ECHO_C" >&6
10352 if test "${ac_cv_lib_nsl_s_printf+set}" = set; then
10353   echo $ECHO_N "(cached) $ECHO_C" >&6
10354 else
10355   ac_check_lib_save_LIBS=$LIBS
10356 LIBS="-lnsl_s  $LIBS"
10357 cat >conftest.$ac_ext <<_ACEOF
10358 #line $LINENO "configure"
10359 #include "confdefs.h"
10360
10361 /* Override any gcc2 internal prototype to avoid an error.  */
10362 #ifdef __cplusplus
10363 extern "C"
10364 #endif
10365 /* We use char because int might match the return type of a gcc2
10366    builtin and then its argument prototype would still apply.  */
10367 char printf ();
10368 int
10369 main ()
10370 {
10371 printf ();
10372   ;
10373   return 0;
10374 }
10375 _ACEOF
10376 rm -f conftest.$ac_objext conftest$ac_exeext
10377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10378   (eval $ac_link) 2>&5
10379   ac_status=$?
10380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381   (exit $ac_status); } &&
10382          { ac_try='test -s conftest$ac_exeext'
10383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384   (eval $ac_try) 2>&5
10385   ac_status=$?
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); }; }; then
10388   ac_cv_lib_nsl_s_printf=yes
10389 else
10390   echo "$as_me: failed program was:" >&5
10391 cat conftest.$ac_ext >&5
10392 ac_cv_lib_nsl_s_printf=no
10393 fi
10394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10395 LIBS=$ac_check_lib_save_LIBS
10396 fi
10397 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_printf" >&5
10398 echo "${ECHO_T}$ac_cv_lib_nsl_s_printf" >&6
10399 if test $ac_cv_lib_nsl_s_printf = yes; then
10400   cat >>confdefs.h <<_ACEOF
10401 #define HAVE_LIBNSL_S 1
10402 _ACEOF
10403
10404   LIBS="-lnsl_s $LIBS"
10405
10406 fi
10407  ;;
10408     esac
10409     case "$LIBS" in
10410     *-lnsl*) ;;
10411     *)
10412 echo "$as_me:$LINENO: checking for printf in -lnsl" >&5
10413 echo $ECHO_N "checking for printf in -lnsl... $ECHO_C" >&6
10414 if test "${ac_cv_lib_nsl_printf+set}" = set; then
10415   echo $ECHO_N "(cached) $ECHO_C" >&6
10416 else
10417   ac_check_lib_save_LIBS=$LIBS
10418 LIBS="-lnsl  $LIBS"
10419 cat >conftest.$ac_ext <<_ACEOF
10420 #line $LINENO "configure"
10421 #include "confdefs.h"
10422
10423 /* Override any gcc2 internal prototype to avoid an error.  */
10424 #ifdef __cplusplus
10425 extern "C"
10426 #endif
10427 /* We use char because int might match the return type of a gcc2
10428    builtin and then its argument prototype would still apply.  */
10429 char printf ();
10430 int
10431 main ()
10432 {
10433 printf ();
10434   ;
10435   return 0;
10436 }
10437 _ACEOF
10438 rm -f conftest.$ac_objext conftest$ac_exeext
10439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10440   (eval $ac_link) 2>&5
10441   ac_status=$?
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); } &&
10444          { ac_try='test -s conftest$ac_exeext'
10445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446   (eval $ac_try) 2>&5
10447   ac_status=$?
10448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449   (exit $ac_status); }; }; then
10450   ac_cv_lib_nsl_printf=yes
10451 else
10452   echo "$as_me: failed program was:" >&5
10453 cat conftest.$ac_ext >&5
10454 ac_cv_lib_nsl_printf=no
10455 fi
10456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10457 LIBS=$ac_check_lib_save_LIBS
10458 fi
10459 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_printf" >&5
10460 echo "${ECHO_T}$ac_cv_lib_nsl_printf" >&6
10461 if test $ac_cv_lib_nsl_printf = yes; then
10462   cat >>confdefs.h <<_ACEOF
10463 #define HAVE_LIBNSL 1
10464 _ACEOF
10465
10466   LIBS="-lnsl $LIBS"
10467
10468 fi
10469  ;;
10470     esac
10471     case "$LIBS" in
10472     *-lsocket*) ;;
10473     *)
10474 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10475 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10476 if test "${ac_cv_lib_socket_connect+set}" = set; then
10477   echo $ECHO_N "(cached) $ECHO_C" >&6
10478 else
10479   ac_check_lib_save_LIBS=$LIBS
10480 LIBS="-lsocket  $LIBS"
10481 cat >conftest.$ac_ext <<_ACEOF
10482 #line $LINENO "configure"
10483 #include "confdefs.h"
10484
10485 /* Override any gcc2 internal prototype to avoid an error.  */
10486 #ifdef __cplusplus
10487 extern "C"
10488 #endif
10489 /* We use char because int might match the return type of a gcc2
10490    builtin and then its argument prototype would still apply.  */
10491 char connect ();
10492 int
10493 main ()
10494 {
10495 connect ();
10496   ;
10497   return 0;
10498 }
10499 _ACEOF
10500 rm -f conftest.$ac_objext conftest$ac_exeext
10501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10502   (eval $ac_link) 2>&5
10503   ac_status=$?
10504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505   (exit $ac_status); } &&
10506          { ac_try='test -s conftest$ac_exeext'
10507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508   (eval $ac_try) 2>&5
10509   ac_status=$?
10510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511   (exit $ac_status); }; }; then
10512   ac_cv_lib_socket_connect=yes
10513 else
10514   echo "$as_me: failed program was:" >&5
10515 cat conftest.$ac_ext >&5
10516 ac_cv_lib_socket_connect=no
10517 fi
10518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10519 LIBS=$ac_check_lib_save_LIBS
10520 fi
10521 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10522 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10523 if test $ac_cv_lib_socket_connect = yes; then
10524   cat >>confdefs.h <<_ACEOF
10525 #define HAVE_LIBSOCKET 1
10526 _ACEOF
10527
10528   LIBS="-lsocket $LIBS"
10529
10530 fi
10531  ;;
10532     esac
10533     case "$LIBS" in
10534     *-linet*) ;;
10535     *)
10536 echo "$as_me:$LINENO: checking for connect in -linet" >&5
10537 echo $ECHO_N "checking for connect in -linet... $ECHO_C" >&6
10538 if test "${ac_cv_lib_inet_connect+set}" = set; then
10539   echo $ECHO_N "(cached) $ECHO_C" >&6
10540 else
10541   ac_check_lib_save_LIBS=$LIBS
10542 LIBS="-linet  $LIBS"
10543 cat >conftest.$ac_ext <<_ACEOF
10544 #line $LINENO "configure"
10545 #include "confdefs.h"
10546
10547 /* Override any gcc2 internal prototype to avoid an error.  */
10548 #ifdef __cplusplus
10549 extern "C"
10550 #endif
10551 /* We use char because int might match the return type of a gcc2
10552    builtin and then its argument prototype would still apply.  */
10553 char connect ();
10554 int
10555 main ()
10556 {
10557 connect ();
10558   ;
10559   return 0;
10560 }
10561 _ACEOF
10562 rm -f conftest.$ac_objext conftest$ac_exeext
10563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10564   (eval $ac_link) 2>&5
10565   ac_status=$?
10566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567   (exit $ac_status); } &&
10568          { ac_try='test -s conftest$ac_exeext'
10569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10570   (eval $ac_try) 2>&5
10571   ac_status=$?
10572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573   (exit $ac_status); }; }; then
10574   ac_cv_lib_inet_connect=yes
10575 else
10576   echo "$as_me: failed program was:" >&5
10577 cat conftest.$ac_ext >&5
10578 ac_cv_lib_inet_connect=no
10579 fi
10580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10581 LIBS=$ac_check_lib_save_LIBS
10582 fi
10583 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_connect" >&5
10584 echo "${ECHO_T}$ac_cv_lib_inet_connect" >&6
10585 if test $ac_cv_lib_inet_connect = yes; then
10586   cat >>confdefs.h <<_ACEOF
10587 #define HAVE_LIBINET 1
10588 _ACEOF
10589
10590   LIBS="-linet $LIBS"
10591
10592 fi
10593  ;;
10594     esac
10595             if test x"$ac_cv_lib_socket_connect" = x"yes" ||
10596        test x"$ac_cv_lib_inet_connect" = x"yes"; then
10597         # ac_cv_func_connect=yes
10598         # don't!  it would cause AC_CHECK_FUNC to succeed next time configure is run
10599
10600 cat >>confdefs.h <<\_ACEOF
10601 #define HAVE_CONNECT 1
10602 _ACEOF
10603
10604     fi
10605 fi
10606
10607 ###############################################
10608 # test for where we get get_yp_default_domain() from
10609
10610 for ac_func in yp_get_default_domain
10611 do
10612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10613 echo "$as_me:$LINENO: checking for $ac_func" >&5
10614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10615 if eval "test \"\${$as_ac_var+set}\" = set"; then
10616   echo $ECHO_N "(cached) $ECHO_C" >&6
10617 else
10618   cat >conftest.$ac_ext <<_ACEOF
10619 #line $LINENO "configure"
10620 #include "confdefs.h"
10621 /* System header to define __stub macros and hopefully few prototypes,
10622     which can conflict with char $ac_func (); below.  */
10623 #include <assert.h>
10624 /* Override any gcc2 internal prototype to avoid an error.  */
10625 #ifdef __cplusplus
10626 extern "C"
10627 #endif
10628 /* We use char because int might match the return type of a gcc2
10629    builtin and then its argument prototype would still apply.  */
10630 char $ac_func ();
10631 char (*f) ();
10632
10633 int
10634 main ()
10635 {
10636 /* The GNU C library defines this for functions which it implements
10637     to always fail with ENOSYS.  Some functions are actually named
10638     something starting with __ and the normal name is an alias.  */
10639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10640 choke me
10641 #else
10642 f = $ac_func;
10643 #endif
10644
10645   ;
10646   return 0;
10647 }
10648 _ACEOF
10649 rm -f conftest.$ac_objext conftest$ac_exeext
10650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10651   (eval $ac_link) 2>&5
10652   ac_status=$?
10653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654   (exit $ac_status); } &&
10655          { ac_try='test -s conftest$ac_exeext'
10656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657   (eval $ac_try) 2>&5
10658   ac_status=$?
10659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660   (exit $ac_status); }; }; then
10661   eval "$as_ac_var=yes"
10662 else
10663   echo "$as_me: failed program was:" >&5
10664 cat conftest.$ac_ext >&5
10665 eval "$as_ac_var=no"
10666 fi
10667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10668 fi
10669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10671 if test `eval echo '${'$as_ac_var'}'` = yes; then
10672   cat >>confdefs.h <<_ACEOF
10673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10674 _ACEOF
10675
10676 fi
10677 done
10678
10679 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
10680         echo "$as_me:$LINENO: checking for yp_get_default_domain in -lnsl" >&5
10681 echo $ECHO_N "checking for yp_get_default_domain in -lnsl... $ECHO_C" >&6
10682 if test "${ac_cv_lib_nsl_yp_get_default_domain+set}" = set; then
10683   echo $ECHO_N "(cached) $ECHO_C" >&6
10684 else
10685   ac_check_lib_save_LIBS=$LIBS
10686 LIBS="-lnsl  $LIBS"
10687 cat >conftest.$ac_ext <<_ACEOF
10688 #line $LINENO "configure"
10689 #include "confdefs.h"
10690
10691 /* Override any gcc2 internal prototype to avoid an error.  */
10692 #ifdef __cplusplus
10693 extern "C"
10694 #endif
10695 /* We use char because int might match the return type of a gcc2
10696    builtin and then its argument prototype would still apply.  */
10697 char yp_get_default_domain ();
10698 int
10699 main ()
10700 {
10701 yp_get_default_domain ();
10702   ;
10703   return 0;
10704 }
10705 _ACEOF
10706 rm -f conftest.$ac_objext conftest$ac_exeext
10707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10708   (eval $ac_link) 2>&5
10709   ac_status=$?
10710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711   (exit $ac_status); } &&
10712          { ac_try='test -s conftest$ac_exeext'
10713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714   (eval $ac_try) 2>&5
10715   ac_status=$?
10716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717   (exit $ac_status); }; }; then
10718   ac_cv_lib_nsl_yp_get_default_domain=yes
10719 else
10720   echo "$as_me: failed program was:" >&5
10721 cat conftest.$ac_ext >&5
10722 ac_cv_lib_nsl_yp_get_default_domain=no
10723 fi
10724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10725 LIBS=$ac_check_lib_save_LIBS
10726 fi
10727 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
10728 echo "${ECHO_T}$ac_cv_lib_nsl_yp_get_default_domain" >&6
10729 if test $ac_cv_lib_nsl_yp_get_default_domain = yes; then
10730   LIBS="$LIBS -lnsl";
10731
10732 cat >>confdefs.h <<\_ACEOF
10733 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
10734 _ACEOF
10735
10736 fi
10737
10738 fi
10739
10740 # Check if we have execl, if not we need to compile smbrun.
10741
10742 for ac_func in execl
10743 do
10744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10745 echo "$as_me:$LINENO: checking for $ac_func" >&5
10746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10747 if eval "test \"\${$as_ac_var+set}\" = set"; then
10748   echo $ECHO_N "(cached) $ECHO_C" >&6
10749 else
10750   cat >conftest.$ac_ext <<_ACEOF
10751 #line $LINENO "configure"
10752 #include "confdefs.h"
10753 /* System header to define __stub macros and hopefully few prototypes,
10754     which can conflict with char $ac_func (); below.  */
10755 #include <assert.h>
10756 /* Override any gcc2 internal prototype to avoid an error.  */
10757 #ifdef __cplusplus
10758 extern "C"
10759 #endif
10760 /* We use char because int might match the return type of a gcc2
10761    builtin and then its argument prototype would still apply.  */
10762 char $ac_func ();
10763 char (*f) ();
10764
10765 int
10766 main ()
10767 {
10768 /* The GNU C library defines this for functions which it implements
10769     to always fail with ENOSYS.  Some functions are actually named
10770     something starting with __ and the normal name is an alias.  */
10771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10772 choke me
10773 #else
10774 f = $ac_func;
10775 #endif
10776
10777   ;
10778   return 0;
10779 }
10780 _ACEOF
10781 rm -f conftest.$ac_objext conftest$ac_exeext
10782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10783   (eval $ac_link) 2>&5
10784   ac_status=$?
10785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786   (exit $ac_status); } &&
10787          { ac_try='test -s conftest$ac_exeext'
10788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789   (eval $ac_try) 2>&5
10790   ac_status=$?
10791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792   (exit $ac_status); }; }; then
10793   eval "$as_ac_var=yes"
10794 else
10795   echo "$as_me: failed program was:" >&5
10796 cat conftest.$ac_ext >&5
10797 eval "$as_ac_var=no"
10798 fi
10799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10800 fi
10801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10803 if test `eval echo '${'$as_ac_var'}'` = yes; then
10804   cat >>confdefs.h <<_ACEOF
10805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10806 _ACEOF
10807
10808 fi
10809 done
10810
10811 if test x"$ac_cv_func_execl" = x"no"; then
10812     RUNPROG="bin/smbrun"
10813 else
10814     RUNPROG=""
10815 fi
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
10837 do
10838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10839 echo "$as_me:$LINENO: checking for $ac_func" >&5
10840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10841 if eval "test \"\${$as_ac_var+set}\" = set"; then
10842   echo $ECHO_N "(cached) $ECHO_C" >&6
10843 else
10844   cat >conftest.$ac_ext <<_ACEOF
10845 #line $LINENO "configure"
10846 #include "confdefs.h"
10847 /* System header to define __stub macros and hopefully few prototypes,
10848     which can conflict with char $ac_func (); below.  */
10849 #include <assert.h>
10850 /* Override any gcc2 internal prototype to avoid an error.  */
10851 #ifdef __cplusplus
10852 extern "C"
10853 #endif
10854 /* We use char because int might match the return type of a gcc2
10855    builtin and then its argument prototype would still apply.  */
10856 char $ac_func ();
10857 char (*f) ();
10858
10859 int
10860 main ()
10861 {
10862 /* The GNU C library defines this for functions which it implements
10863     to always fail with ENOSYS.  Some functions are actually named
10864     something starting with __ and the normal name is an alias.  */
10865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10866 choke me
10867 #else
10868 f = $ac_func;
10869 #endif
10870
10871   ;
10872   return 0;
10873 }
10874 _ACEOF
10875 rm -f conftest.$ac_objext conftest$ac_exeext
10876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10877   (eval $ac_link) 2>&5
10878   ac_status=$?
10879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880   (exit $ac_status); } &&
10881          { ac_try='test -s conftest$ac_exeext'
10882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883   (eval $ac_try) 2>&5
10884   ac_status=$?
10885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886   (exit $ac_status); }; }; then
10887   eval "$as_ac_var=yes"
10888 else
10889   echo "$as_me: failed program was:" >&5
10890 cat conftest.$ac_ext >&5
10891 eval "$as_ac_var=no"
10892 fi
10893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10894 fi
10895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10897 if test `eval echo '${'$as_ac_var'}'` = yes; then
10898   cat >>confdefs.h <<_ACEOF
10899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10900 _ACEOF
10901
10902 fi
10903 done
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
10917 do
10918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10919 echo "$as_me:$LINENO: checking for $ac_func" >&5
10920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10921 if eval "test \"\${$as_ac_var+set}\" = set"; then
10922   echo $ECHO_N "(cached) $ECHO_C" >&6
10923 else
10924   cat >conftest.$ac_ext <<_ACEOF
10925 #line $LINENO "configure"
10926 #include "confdefs.h"
10927 /* System header to define __stub macros and hopefully few prototypes,
10928     which can conflict with char $ac_func (); below.  */
10929 #include <assert.h>
10930 /* Override any gcc2 internal prototype to avoid an error.  */
10931 #ifdef __cplusplus
10932 extern "C"
10933 #endif
10934 /* We use char because int might match the return type of a gcc2
10935    builtin and then its argument prototype would still apply.  */
10936 char $ac_func ();
10937 char (*f) ();
10938
10939 int
10940 main ()
10941 {
10942 /* The GNU C library defines this for functions which it implements
10943     to always fail with ENOSYS.  Some functions are actually named
10944     something starting with __ and the normal name is an alias.  */
10945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10946 choke me
10947 #else
10948 f = $ac_func;
10949 #endif
10950
10951   ;
10952   return 0;
10953 }
10954 _ACEOF
10955 rm -f conftest.$ac_objext conftest$ac_exeext
10956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10957   (eval $ac_link) 2>&5
10958   ac_status=$?
10959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960   (exit $ac_status); } &&
10961          { ac_try='test -s conftest$ac_exeext'
10962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963   (eval $ac_try) 2>&5
10964   ac_status=$?
10965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966   (exit $ac_status); }; }; then
10967   eval "$as_ac_var=yes"
10968 else
10969   echo "$as_me: failed program was:" >&5
10970 cat conftest.$ac_ext >&5
10971 eval "$as_ac_var=no"
10972 fi
10973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10974 fi
10975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10977 if test `eval echo '${'$as_ac_var'}'` = yes; then
10978   cat >>confdefs.h <<_ACEOF
10979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10980 _ACEOF
10981
10982 fi
10983 done
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
10997 do
10998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10999 echo "$as_me:$LINENO: checking for $ac_func" >&5
11000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11001 if eval "test \"\${$as_ac_var+set}\" = set"; then
11002   echo $ECHO_N "(cached) $ECHO_C" >&6
11003 else
11004   cat >conftest.$ac_ext <<_ACEOF
11005 #line $LINENO "configure"
11006 #include "confdefs.h"
11007 /* System header to define __stub macros and hopefully few prototypes,
11008     which can conflict with char $ac_func (); below.  */
11009 #include <assert.h>
11010 /* Override any gcc2 internal prototype to avoid an error.  */
11011 #ifdef __cplusplus
11012 extern "C"
11013 #endif
11014 /* We use char because int might match the return type of a gcc2
11015    builtin and then its argument prototype would still apply.  */
11016 char $ac_func ();
11017 char (*f) ();
11018
11019 int
11020 main ()
11021 {
11022 /* The GNU C library defines this for functions which it implements
11023     to always fail with ENOSYS.  Some functions are actually named
11024     something starting with __ and the normal name is an alias.  */
11025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11026 choke me
11027 #else
11028 f = $ac_func;
11029 #endif
11030
11031   ;
11032   return 0;
11033 }
11034 _ACEOF
11035 rm -f conftest.$ac_objext conftest$ac_exeext
11036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11037   (eval $ac_link) 2>&5
11038   ac_status=$?
11039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040   (exit $ac_status); } &&
11041          { ac_try='test -s conftest$ac_exeext'
11042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043   (eval $ac_try) 2>&5
11044   ac_status=$?
11045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046   (exit $ac_status); }; }; then
11047   eval "$as_ac_var=yes"
11048 else
11049   echo "$as_me: failed program was:" >&5
11050 cat conftest.$ac_ext >&5
11051 eval "$as_ac_var=no"
11052 fi
11053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11054 fi
11055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11057 if test `eval echo '${'$as_ac_var'}'` = yes; then
11058   cat >>confdefs.h <<_ACEOF
11059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11060 _ACEOF
11061
11062 fi
11063 done
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
11075 do
11076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11077 echo "$as_me:$LINENO: checking for $ac_func" >&5
11078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11079 if eval "test \"\${$as_ac_var+set}\" = set"; then
11080   echo $ECHO_N "(cached) $ECHO_C" >&6
11081 else
11082   cat >conftest.$ac_ext <<_ACEOF
11083 #line $LINENO "configure"
11084 #include "confdefs.h"
11085 /* System header to define __stub macros and hopefully few prototypes,
11086     which can conflict with char $ac_func (); below.  */
11087 #include <assert.h>
11088 /* Override any gcc2 internal prototype to avoid an error.  */
11089 #ifdef __cplusplus
11090 extern "C"
11091 #endif
11092 /* We use char because int might match the return type of a gcc2
11093    builtin and then its argument prototype would still apply.  */
11094 char $ac_func ();
11095 char (*f) ();
11096
11097 int
11098 main ()
11099 {
11100 /* The GNU C library defines this for functions which it implements
11101     to always fail with ENOSYS.  Some functions are actually named
11102     something starting with __ and the normal name is an alias.  */
11103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11104 choke me
11105 #else
11106 f = $ac_func;
11107 #endif
11108
11109   ;
11110   return 0;
11111 }
11112 _ACEOF
11113 rm -f conftest.$ac_objext conftest$ac_exeext
11114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11115   (eval $ac_link) 2>&5
11116   ac_status=$?
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); } &&
11119          { ac_try='test -s conftest$ac_exeext'
11120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121   (eval $ac_try) 2>&5
11122   ac_status=$?
11123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124   (exit $ac_status); }; }; then
11125   eval "$as_ac_var=yes"
11126 else
11127   echo "$as_me: failed program was:" >&5
11128 cat conftest.$ac_ext >&5
11129 eval "$as_ac_var=no"
11130 fi
11131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11132 fi
11133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11135 if test `eval echo '${'$as_ac_var'}'` = yes; then
11136   cat >>confdefs.h <<_ACEOF
11137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11138 _ACEOF
11139
11140 fi
11141 done
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
11152 do
11153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11154 echo "$as_me:$LINENO: checking for $ac_func" >&5
11155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11156 if eval "test \"\${$as_ac_var+set}\" = set"; then
11157   echo $ECHO_N "(cached) $ECHO_C" >&6
11158 else
11159   cat >conftest.$ac_ext <<_ACEOF
11160 #line $LINENO "configure"
11161 #include "confdefs.h"
11162 /* System header to define __stub macros and hopefully few prototypes,
11163     which can conflict with char $ac_func (); below.  */
11164 #include <assert.h>
11165 /* Override any gcc2 internal prototype to avoid an error.  */
11166 #ifdef __cplusplus
11167 extern "C"
11168 #endif
11169 /* We use char because int might match the return type of a gcc2
11170    builtin and then its argument prototype would still apply.  */
11171 char $ac_func ();
11172 char (*f) ();
11173
11174 int
11175 main ()
11176 {
11177 /* The GNU C library defines this for functions which it implements
11178     to always fail with ENOSYS.  Some functions are actually named
11179     something starting with __ and the normal name is an alias.  */
11180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11181 choke me
11182 #else
11183 f = $ac_func;
11184 #endif
11185
11186   ;
11187   return 0;
11188 }
11189 _ACEOF
11190 rm -f conftest.$ac_objext conftest$ac_exeext
11191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11192   (eval $ac_link) 2>&5
11193   ac_status=$?
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); } &&
11196          { ac_try='test -s conftest$ac_exeext'
11197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198   (eval $ac_try) 2>&5
11199   ac_status=$?
11200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201   (exit $ac_status); }; }; then
11202   eval "$as_ac_var=yes"
11203 else
11204   echo "$as_me: failed program was:" >&5
11205 cat conftest.$ac_ext >&5
11206 eval "$as_ac_var=no"
11207 fi
11208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11209 fi
11210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11212 if test `eval echo '${'$as_ac_var'}'` = yes; then
11213   cat >>confdefs.h <<_ACEOF
11214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11215 _ACEOF
11216
11217 fi
11218 done
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
11231 do
11232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11233 echo "$as_me:$LINENO: checking for $ac_func" >&5
11234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11235 if eval "test \"\${$as_ac_var+set}\" = set"; then
11236   echo $ECHO_N "(cached) $ECHO_C" >&6
11237 else
11238   cat >conftest.$ac_ext <<_ACEOF
11239 #line $LINENO "configure"
11240 #include "confdefs.h"
11241 /* System header to define __stub macros and hopefully few prototypes,
11242     which can conflict with char $ac_func (); below.  */
11243 #include <assert.h>
11244 /* Override any gcc2 internal prototype to avoid an error.  */
11245 #ifdef __cplusplus
11246 extern "C"
11247 #endif
11248 /* We use char because int might match the return type of a gcc2
11249    builtin and then its argument prototype would still apply.  */
11250 char $ac_func ();
11251 char (*f) ();
11252
11253 int
11254 main ()
11255 {
11256 /* The GNU C library defines this for functions which it implements
11257     to always fail with ENOSYS.  Some functions are actually named
11258     something starting with __ and the normal name is an alias.  */
11259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11260 choke me
11261 #else
11262 f = $ac_func;
11263 #endif
11264
11265   ;
11266   return 0;
11267 }
11268 _ACEOF
11269 rm -f conftest.$ac_objext conftest$ac_exeext
11270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11271   (eval $ac_link) 2>&5
11272   ac_status=$?
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   (exit $ac_status); } &&
11275          { ac_try='test -s conftest$ac_exeext'
11276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277   (eval $ac_try) 2>&5
11278   ac_status=$?
11279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280   (exit $ac_status); }; }; then
11281   eval "$as_ac_var=yes"
11282 else
11283   echo "$as_me: failed program was:" >&5
11284 cat conftest.$ac_ext >&5
11285 eval "$as_ac_var=no"
11286 fi
11287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11288 fi
11289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11291 if test `eval echo '${'$as_ac_var'}'` = yes; then
11292   cat >>confdefs.h <<_ACEOF
11293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11294 _ACEOF
11295
11296 fi
11297 done
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
11308 do
11309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11310 echo "$as_me:$LINENO: checking for $ac_func" >&5
11311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11312 if eval "test \"\${$as_ac_var+set}\" = set"; then
11313   echo $ECHO_N "(cached) $ECHO_C" >&6
11314 else
11315   cat >conftest.$ac_ext <<_ACEOF
11316 #line $LINENO "configure"
11317 #include "confdefs.h"
11318 /* System header to define __stub macros and hopefully few prototypes,
11319     which can conflict with char $ac_func (); below.  */
11320 #include <assert.h>
11321 /* Override any gcc2 internal prototype to avoid an error.  */
11322 #ifdef __cplusplus
11323 extern "C"
11324 #endif
11325 /* We use char because int might match the return type of a gcc2
11326    builtin and then its argument prototype would still apply.  */
11327 char $ac_func ();
11328 char (*f) ();
11329
11330 int
11331 main ()
11332 {
11333 /* The GNU C library defines this for functions which it implements
11334     to always fail with ENOSYS.  Some functions are actually named
11335     something starting with __ and the normal name is an alias.  */
11336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11337 choke me
11338 #else
11339 f = $ac_func;
11340 #endif
11341
11342   ;
11343   return 0;
11344 }
11345 _ACEOF
11346 rm -f conftest.$ac_objext conftest$ac_exeext
11347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11348   (eval $ac_link) 2>&5
11349   ac_status=$?
11350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351   (exit $ac_status); } &&
11352          { ac_try='test -s conftest$ac_exeext'
11353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11354   (eval $ac_try) 2>&5
11355   ac_status=$?
11356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357   (exit $ac_status); }; }; then
11358   eval "$as_ac_var=yes"
11359 else
11360   echo "$as_me: failed program was:" >&5
11361 cat conftest.$ac_ext >&5
11362 eval "$as_ac_var=no"
11363 fi
11364 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11365 fi
11366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11367 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11368 if test `eval echo '${'$as_ac_var'}'` = yes; then
11369   cat >>confdefs.h <<_ACEOF
11370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11371 _ACEOF
11372
11373 fi
11374 done
11375
11376
11377
11378
11379
11380
11381
11382
11383 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
11384 do
11385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11386 echo "$as_me:$LINENO: checking for $ac_func" >&5
11387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11388 if eval "test \"\${$as_ac_var+set}\" = set"; then
11389   echo $ECHO_N "(cached) $ECHO_C" >&6
11390 else
11391   cat >conftest.$ac_ext <<_ACEOF
11392 #line $LINENO "configure"
11393 #include "confdefs.h"
11394 /* System header to define __stub macros and hopefully few prototypes,
11395     which can conflict with char $ac_func (); below.  */
11396 #include <assert.h>
11397 /* Override any gcc2 internal prototype to avoid an error.  */
11398 #ifdef __cplusplus
11399 extern "C"
11400 #endif
11401 /* We use char because int might match the return type of a gcc2
11402    builtin and then its argument prototype would still apply.  */
11403 char $ac_func ();
11404 char (*f) ();
11405
11406 int
11407 main ()
11408 {
11409 /* The GNU C library defines this for functions which it implements
11410     to always fail with ENOSYS.  Some functions are actually named
11411     something starting with __ and the normal name is an alias.  */
11412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11413 choke me
11414 #else
11415 f = $ac_func;
11416 #endif
11417
11418   ;
11419   return 0;
11420 }
11421 _ACEOF
11422 rm -f conftest.$ac_objext conftest$ac_exeext
11423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11424   (eval $ac_link) 2>&5
11425   ac_status=$?
11426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427   (exit $ac_status); } &&
11428          { ac_try='test -s conftest$ac_exeext'
11429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430   (eval $ac_try) 2>&5
11431   ac_status=$?
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); }; }; then
11434   eval "$as_ac_var=yes"
11435 else
11436   echo "$as_me: failed program was:" >&5
11437 cat conftest.$ac_ext >&5
11438 eval "$as_ac_var=no"
11439 fi
11440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11441 fi
11442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11443 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11444 if test `eval echo '${'$as_ac_var'}'` = yes; then
11445   cat >>confdefs.h <<_ACEOF
11446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11447 _ACEOF
11448
11449 fi
11450 done
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
11464 do
11465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11466 echo "$as_me:$LINENO: checking for $ac_func" >&5
11467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11468 if eval "test \"\${$as_ac_var+set}\" = set"; then
11469   echo $ECHO_N "(cached) $ECHO_C" >&6
11470 else
11471   cat >conftest.$ac_ext <<_ACEOF
11472 #line $LINENO "configure"
11473 #include "confdefs.h"
11474 /* System header to define __stub macros and hopefully few prototypes,
11475     which can conflict with char $ac_func (); below.  */
11476 #include <assert.h>
11477 /* Override any gcc2 internal prototype to avoid an error.  */
11478 #ifdef __cplusplus
11479 extern "C"
11480 #endif
11481 /* We use char because int might match the return type of a gcc2
11482    builtin and then its argument prototype would still apply.  */
11483 char $ac_func ();
11484 char (*f) ();
11485
11486 int
11487 main ()
11488 {
11489 /* The GNU C library defines this for functions which it implements
11490     to always fail with ENOSYS.  Some functions are actually named
11491     something starting with __ and the normal name is an alias.  */
11492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11493 choke me
11494 #else
11495 f = $ac_func;
11496 #endif
11497
11498   ;
11499   return 0;
11500 }
11501 _ACEOF
11502 rm -f conftest.$ac_objext conftest$ac_exeext
11503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11504   (eval $ac_link) 2>&5
11505   ac_status=$?
11506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507   (exit $ac_status); } &&
11508          { ac_try='test -s conftest$ac_exeext'
11509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510   (eval $ac_try) 2>&5
11511   ac_status=$?
11512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513   (exit $ac_status); }; }; then
11514   eval "$as_ac_var=yes"
11515 else
11516   echo "$as_me: failed program was:" >&5
11517 cat conftest.$ac_ext >&5
11518 eval "$as_ac_var=no"
11519 fi
11520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11521 fi
11522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11524 if test `eval echo '${'$as_ac_var'}'` = yes; then
11525   cat >>confdefs.h <<_ACEOF
11526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11527 _ACEOF
11528
11529 fi
11530 done
11531
11532
11533
11534
11535
11536 for ac_func in syslog vsyslog getgrouplist timegm
11537 do
11538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11539 echo "$as_me:$LINENO: checking for $ac_func" >&5
11540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11541 if eval "test \"\${$as_ac_var+set}\" = set"; then
11542   echo $ECHO_N "(cached) $ECHO_C" >&6
11543 else
11544   cat >conftest.$ac_ext <<_ACEOF
11545 #line $LINENO "configure"
11546 #include "confdefs.h"
11547 /* System header to define __stub macros and hopefully few prototypes,
11548     which can conflict with char $ac_func (); below.  */
11549 #include <assert.h>
11550 /* Override any gcc2 internal prototype to avoid an error.  */
11551 #ifdef __cplusplus
11552 extern "C"
11553 #endif
11554 /* We use char because int might match the return type of a gcc2
11555    builtin and then its argument prototype would still apply.  */
11556 char $ac_func ();
11557 char (*f) ();
11558
11559 int
11560 main ()
11561 {
11562 /* The GNU C library defines this for functions which it implements
11563     to always fail with ENOSYS.  Some functions are actually named
11564     something starting with __ and the normal name is an alias.  */
11565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11566 choke me
11567 #else
11568 f = $ac_func;
11569 #endif
11570
11571   ;
11572   return 0;
11573 }
11574 _ACEOF
11575 rm -f conftest.$ac_objext conftest$ac_exeext
11576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11577   (eval $ac_link) 2>&5
11578   ac_status=$?
11579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580   (exit $ac_status); } &&
11581          { ac_try='test -s conftest$ac_exeext'
11582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11583   (eval $ac_try) 2>&5
11584   ac_status=$?
11585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586   (exit $ac_status); }; }; then
11587   eval "$as_ac_var=yes"
11588 else
11589   echo "$as_me: failed program was:" >&5
11590 cat conftest.$ac_ext >&5
11591 eval "$as_ac_var=no"
11592 fi
11593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11594 fi
11595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11596 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11597 if test `eval echo '${'$as_ac_var'}'` = yes; then
11598   cat >>confdefs.h <<_ACEOF
11599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11600 _ACEOF
11601
11602 fi
11603 done
11604
11605 # setbuffer is needed for smbtorture
11606
11607 for ac_func in setbuffer
11608 do
11609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11610 echo "$as_me:$LINENO: checking for $ac_func" >&5
11611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11612 if eval "test \"\${$as_ac_var+set}\" = set"; then
11613   echo $ECHO_N "(cached) $ECHO_C" >&6
11614 else
11615   cat >conftest.$ac_ext <<_ACEOF
11616 #line $LINENO "configure"
11617 #include "confdefs.h"
11618 /* System header to define __stub macros and hopefully few prototypes,
11619     which can conflict with char $ac_func (); below.  */
11620 #include <assert.h>
11621 /* Override any gcc2 internal prototype to avoid an error.  */
11622 #ifdef __cplusplus
11623 extern "C"
11624 #endif
11625 /* We use char because int might match the return type of a gcc2
11626    builtin and then its argument prototype would still apply.  */
11627 char $ac_func ();
11628 char (*f) ();
11629
11630 int
11631 main ()
11632 {
11633 /* The GNU C library defines this for functions which it implements
11634     to always fail with ENOSYS.  Some functions are actually named
11635     something starting with __ and the normal name is an alias.  */
11636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11637 choke me
11638 #else
11639 f = $ac_func;
11640 #endif
11641
11642   ;
11643   return 0;
11644 }
11645 _ACEOF
11646 rm -f conftest.$ac_objext conftest$ac_exeext
11647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11648   (eval $ac_link) 2>&5
11649   ac_status=$?
11650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651   (exit $ac_status); } &&
11652          { ac_try='test -s conftest$ac_exeext'
11653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654   (eval $ac_try) 2>&5
11655   ac_status=$?
11656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657   (exit $ac_status); }; }; then
11658   eval "$as_ac_var=yes"
11659 else
11660   echo "$as_me: failed program was:" >&5
11661 cat conftest.$ac_ext >&5
11662 eval "$as_ac_var=no"
11663 fi
11664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11665 fi
11666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11667 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11668 if test `eval echo '${'$as_ac_var'}'` = yes; then
11669   cat >>confdefs.h <<_ACEOF
11670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11671 _ACEOF
11672
11673 fi
11674 done
11675
11676
11677 # syscall() is needed for smbwrapper.
11678
11679 for ac_func in syscall
11680 do
11681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11682 echo "$as_me:$LINENO: checking for $ac_func" >&5
11683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11684 if eval "test \"\${$as_ac_var+set}\" = set"; then
11685   echo $ECHO_N "(cached) $ECHO_C" >&6
11686 else
11687   cat >conftest.$ac_ext <<_ACEOF
11688 #line $LINENO "configure"
11689 #include "confdefs.h"
11690 /* System header to define __stub macros and hopefully few prototypes,
11691     which can conflict with char $ac_func (); below.  */
11692 #include <assert.h>
11693 /* Override any gcc2 internal prototype to avoid an error.  */
11694 #ifdef __cplusplus
11695 extern "C"
11696 #endif
11697 /* We use char because int might match the return type of a gcc2
11698    builtin and then its argument prototype would still apply.  */
11699 char $ac_func ();
11700 char (*f) ();
11701
11702 int
11703 main ()
11704 {
11705 /* The GNU C library defines this for functions which it implements
11706     to always fail with ENOSYS.  Some functions are actually named
11707     something starting with __ and the normal name is an alias.  */
11708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11709 choke me
11710 #else
11711 f = $ac_func;
11712 #endif
11713
11714   ;
11715   return 0;
11716 }
11717 _ACEOF
11718 rm -f conftest.$ac_objext conftest$ac_exeext
11719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11720   (eval $ac_link) 2>&5
11721   ac_status=$?
11722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723   (exit $ac_status); } &&
11724          { ac_try='test -s conftest$ac_exeext'
11725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726   (eval $ac_try) 2>&5
11727   ac_status=$?
11728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729   (exit $ac_status); }; }; then
11730   eval "$as_ac_var=yes"
11731 else
11732   echo "$as_me: failed program was:" >&5
11733 cat conftest.$ac_ext >&5
11734 eval "$as_ac_var=no"
11735 fi
11736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11737 fi
11738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11740 if test `eval echo '${'$as_ac_var'}'` = yes; then
11741   cat >>confdefs.h <<_ACEOF
11742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11743 _ACEOF
11744
11745 fi
11746 done
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
11757 do
11758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11759 echo "$as_me:$LINENO: checking for $ac_func" >&5
11760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11761 if eval "test \"\${$as_ac_var+set}\" = set"; then
11762   echo $ECHO_N "(cached) $ECHO_C" >&6
11763 else
11764   cat >conftest.$ac_ext <<_ACEOF
11765 #line $LINENO "configure"
11766 #include "confdefs.h"
11767 /* System header to define __stub macros and hopefully few prototypes,
11768     which can conflict with char $ac_func (); below.  */
11769 #include <assert.h>
11770 /* Override any gcc2 internal prototype to avoid an error.  */
11771 #ifdef __cplusplus
11772 extern "C"
11773 #endif
11774 /* We use char because int might match the return type of a gcc2
11775    builtin and then its argument prototype would still apply.  */
11776 char $ac_func ();
11777 char (*f) ();
11778
11779 int
11780 main ()
11781 {
11782 /* The GNU C library defines this for functions which it implements
11783     to always fail with ENOSYS.  Some functions are actually named
11784     something starting with __ and the normal name is an alias.  */
11785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11786 choke me
11787 #else
11788 f = $ac_func;
11789 #endif
11790
11791   ;
11792   return 0;
11793 }
11794 _ACEOF
11795 rm -f conftest.$ac_objext conftest$ac_exeext
11796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11797   (eval $ac_link) 2>&5
11798   ac_status=$?
11799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800   (exit $ac_status); } &&
11801          { ac_try='test -s conftest$ac_exeext'
11802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803   (eval $ac_try) 2>&5
11804   ac_status=$?
11805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806   (exit $ac_status); }; }; then
11807   eval "$as_ac_var=yes"
11808 else
11809   echo "$as_me: failed program was:" >&5
11810 cat conftest.$ac_ext >&5
11811 eval "$as_ac_var=no"
11812 fi
11813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11814 fi
11815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11817 if test `eval echo '${'$as_ac_var'}'` = yes; then
11818   cat >>confdefs.h <<_ACEOF
11819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11820 _ACEOF
11821
11822 fi
11823 done
11824
11825
11826
11827
11828
11829
11830
11831
11832 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
11833 do
11834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11835 echo "$as_me:$LINENO: checking for $ac_func" >&5
11836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11837 if eval "test \"\${$as_ac_var+set}\" = set"; then
11838   echo $ECHO_N "(cached) $ECHO_C" >&6
11839 else
11840   cat >conftest.$ac_ext <<_ACEOF
11841 #line $LINENO "configure"
11842 #include "confdefs.h"
11843 /* System header to define __stub macros and hopefully few prototypes,
11844     which can conflict with char $ac_func (); below.  */
11845 #include <assert.h>
11846 /* Override any gcc2 internal prototype to avoid an error.  */
11847 #ifdef __cplusplus
11848 extern "C"
11849 #endif
11850 /* We use char because int might match the return type of a gcc2
11851    builtin and then its argument prototype would still apply.  */
11852 char $ac_func ();
11853 char (*f) ();
11854
11855 int
11856 main ()
11857 {
11858 /* The GNU C library defines this for functions which it implements
11859     to always fail with ENOSYS.  Some functions are actually named
11860     something starting with __ and the normal name is an alias.  */
11861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11862 choke me
11863 #else
11864 f = $ac_func;
11865 #endif
11866
11867   ;
11868   return 0;
11869 }
11870 _ACEOF
11871 rm -f conftest.$ac_objext conftest$ac_exeext
11872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11873   (eval $ac_link) 2>&5
11874   ac_status=$?
11875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876   (exit $ac_status); } &&
11877          { ac_try='test -s conftest$ac_exeext'
11878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879   (eval $ac_try) 2>&5
11880   ac_status=$?
11881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882   (exit $ac_status); }; }; then
11883   eval "$as_ac_var=yes"
11884 else
11885   echo "$as_me: failed program was:" >&5
11886 cat conftest.$ac_ext >&5
11887 eval "$as_ac_var=no"
11888 fi
11889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11890 fi
11891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11893 if test `eval echo '${'$as_ac_var'}'` = yes; then
11894   cat >>confdefs.h <<_ACEOF
11895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11896 _ACEOF
11897
11898 fi
11899 done
11900
11901
11902
11903 for ac_func in __getcwd _getcwd
11904 do
11905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11906 echo "$as_me:$LINENO: checking for $ac_func" >&5
11907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11908 if eval "test \"\${$as_ac_var+set}\" = set"; then
11909   echo $ECHO_N "(cached) $ECHO_C" >&6
11910 else
11911   cat >conftest.$ac_ext <<_ACEOF
11912 #line $LINENO "configure"
11913 #include "confdefs.h"
11914 /* System header to define __stub macros and hopefully few prototypes,
11915     which can conflict with char $ac_func (); below.  */
11916 #include <assert.h>
11917 /* Override any gcc2 internal prototype to avoid an error.  */
11918 #ifdef __cplusplus
11919 extern "C"
11920 #endif
11921 /* We use char because int might match the return type of a gcc2
11922    builtin and then its argument prototype would still apply.  */
11923 char $ac_func ();
11924 char (*f) ();
11925
11926 int
11927 main ()
11928 {
11929 /* The GNU C library defines this for functions which it implements
11930     to always fail with ENOSYS.  Some functions are actually named
11931     something starting with __ and the normal name is an alias.  */
11932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11933 choke me
11934 #else
11935 f = $ac_func;
11936 #endif
11937
11938   ;
11939   return 0;
11940 }
11941 _ACEOF
11942 rm -f conftest.$ac_objext conftest$ac_exeext
11943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11944   (eval $ac_link) 2>&5
11945   ac_status=$?
11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947   (exit $ac_status); } &&
11948          { ac_try='test -s conftest$ac_exeext'
11949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950   (eval $ac_try) 2>&5
11951   ac_status=$?
11952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953   (exit $ac_status); }; }; then
11954   eval "$as_ac_var=yes"
11955 else
11956   echo "$as_me: failed program was:" >&5
11957 cat conftest.$ac_ext >&5
11958 eval "$as_ac_var=no"
11959 fi
11960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11961 fi
11962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11964 if test `eval echo '${'$as_ac_var'}'` = yes; then
11965   cat >>confdefs.h <<_ACEOF
11966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11967 _ACEOF
11968
11969 fi
11970 done
11971
11972
11973
11974
11975 for ac_func in __xstat __fxstat __lxstat
11976 do
11977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11978 echo "$as_me:$LINENO: checking for $ac_func" >&5
11979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11980 if eval "test \"\${$as_ac_var+set}\" = set"; then
11981   echo $ECHO_N "(cached) $ECHO_C" >&6
11982 else
11983   cat >conftest.$ac_ext <<_ACEOF
11984 #line $LINENO "configure"
11985 #include "confdefs.h"
11986 /* System header to define __stub macros and hopefully few prototypes,
11987     which can conflict with char $ac_func (); below.  */
11988 #include <assert.h>
11989 /* Override any gcc2 internal prototype to avoid an error.  */
11990 #ifdef __cplusplus
11991 extern "C"
11992 #endif
11993 /* We use char because int might match the return type of a gcc2
11994    builtin and then its argument prototype would still apply.  */
11995 char $ac_func ();
11996 char (*f) ();
11997
11998 int
11999 main ()
12000 {
12001 /* The GNU C library defines this for functions which it implements
12002     to always fail with ENOSYS.  Some functions are actually named
12003     something starting with __ and the normal name is an alias.  */
12004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12005 choke me
12006 #else
12007 f = $ac_func;
12008 #endif
12009
12010   ;
12011   return 0;
12012 }
12013 _ACEOF
12014 rm -f conftest.$ac_objext conftest$ac_exeext
12015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12016   (eval $ac_link) 2>&5
12017   ac_status=$?
12018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019   (exit $ac_status); } &&
12020          { ac_try='test -s conftest$ac_exeext'
12021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022   (eval $ac_try) 2>&5
12023   ac_status=$?
12024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025   (exit $ac_status); }; }; then
12026   eval "$as_ac_var=yes"
12027 else
12028   echo "$as_me: failed program was:" >&5
12029 cat conftest.$ac_ext >&5
12030 eval "$as_ac_var=no"
12031 fi
12032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12033 fi
12034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12036 if test `eval echo '${'$as_ac_var'}'` = yes; then
12037   cat >>confdefs.h <<_ACEOF
12038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12039 _ACEOF
12040
12041 fi
12042 done
12043
12044
12045
12046
12047
12048
12049
12050 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
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 int
12074 main ()
12075 {
12076 /* The GNU C library defines this for functions which it implements
12077     to always fail with ENOSYS.  Some functions are actually named
12078     something starting with __ and the normal name is an alias.  */
12079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12080 choke me
12081 #else
12082 f = $ac_func;
12083 #endif
12084
12085   ;
12086   return 0;
12087 }
12088 _ACEOF
12089 rm -f conftest.$ac_objext conftest$ac_exeext
12090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12091   (eval $ac_link) 2>&5
12092   ac_status=$?
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); } &&
12095          { ac_try='test -s conftest$ac_exeext'
12096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097   (eval $ac_try) 2>&5
12098   ac_status=$?
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); }; }; then
12101   eval "$as_ac_var=yes"
12102 else
12103   echo "$as_me: failed program was:" >&5
12104 cat conftest.$ac_ext >&5
12105 eval "$as_ac_var=no"
12106 fi
12107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12108 fi
12109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12111 if test `eval echo '${'$as_ac_var'}'` = yes; then
12112   cat >>confdefs.h <<_ACEOF
12113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12114 _ACEOF
12115
12116 fi
12117 done
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
12128 do
12129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12130 echo "$as_me:$LINENO: checking for $ac_func" >&5
12131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12132 if eval "test \"\${$as_ac_var+set}\" = set"; then
12133   echo $ECHO_N "(cached) $ECHO_C" >&6
12134 else
12135   cat >conftest.$ac_ext <<_ACEOF
12136 #line $LINENO "configure"
12137 #include "confdefs.h"
12138 /* System header to define __stub macros and hopefully few prototypes,
12139     which can conflict with char $ac_func (); below.  */
12140 #include <assert.h>
12141 /* Override any gcc2 internal prototype to avoid an error.  */
12142 #ifdef __cplusplus
12143 extern "C"
12144 #endif
12145 /* We use char because int might match the return type of a gcc2
12146    builtin and then its argument prototype would still apply.  */
12147 char $ac_func ();
12148 char (*f) ();
12149
12150 int
12151 main ()
12152 {
12153 /* The GNU C library defines this for functions which it implements
12154     to always fail with ENOSYS.  Some functions are actually named
12155     something starting with __ and the normal name is an alias.  */
12156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12157 choke me
12158 #else
12159 f = $ac_func;
12160 #endif
12161
12162   ;
12163   return 0;
12164 }
12165 _ACEOF
12166 rm -f conftest.$ac_objext conftest$ac_exeext
12167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12168   (eval $ac_link) 2>&5
12169   ac_status=$?
12170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171   (exit $ac_status); } &&
12172          { ac_try='test -s conftest$ac_exeext'
12173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174   (eval $ac_try) 2>&5
12175   ac_status=$?
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); }; }; then
12178   eval "$as_ac_var=yes"
12179 else
12180   echo "$as_me: failed program was:" >&5
12181 cat conftest.$ac_ext >&5
12182 eval "$as_ac_var=no"
12183 fi
12184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12185 fi
12186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12187 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12188 if test `eval echo '${'$as_ac_var'}'` = yes; then
12189   cat >>confdefs.h <<_ACEOF
12190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12191 _ACEOF
12192
12193 fi
12194 done
12195
12196
12197
12198
12199
12200
12201
12202 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
12203 do
12204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12205 echo "$as_me:$LINENO: checking for $ac_func" >&5
12206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12207 if eval "test \"\${$as_ac_var+set}\" = set"; then
12208   echo $ECHO_N "(cached) $ECHO_C" >&6
12209 else
12210   cat >conftest.$ac_ext <<_ACEOF
12211 #line $LINENO "configure"
12212 #include "confdefs.h"
12213 /* System header to define __stub macros and hopefully few prototypes,
12214     which can conflict with char $ac_func (); below.  */
12215 #include <assert.h>
12216 /* Override any gcc2 internal prototype to avoid an error.  */
12217 #ifdef __cplusplus
12218 extern "C"
12219 #endif
12220 /* We use char because int might match the return type of a gcc2
12221    builtin and then its argument prototype would still apply.  */
12222 char $ac_func ();
12223 char (*f) ();
12224
12225 int
12226 main ()
12227 {
12228 /* The GNU C library defines this for functions which it implements
12229     to always fail with ENOSYS.  Some functions are actually named
12230     something starting with __ and the normal name is an alias.  */
12231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12232 choke me
12233 #else
12234 f = $ac_func;
12235 #endif
12236
12237   ;
12238   return 0;
12239 }
12240 _ACEOF
12241 rm -f conftest.$ac_objext conftest$ac_exeext
12242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12243   (eval $ac_link) 2>&5
12244   ac_status=$?
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); } &&
12247          { ac_try='test -s conftest$ac_exeext'
12248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249   (eval $ac_try) 2>&5
12250   ac_status=$?
12251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252   (exit $ac_status); }; }; then
12253   eval "$as_ac_var=yes"
12254 else
12255   echo "$as_me: failed program was:" >&5
12256 cat conftest.$ac_ext >&5
12257 eval "$as_ac_var=no"
12258 fi
12259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12260 fi
12261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12263 if test `eval echo '${'$as_ac_var'}'` = yes; then
12264   cat >>confdefs.h <<_ACEOF
12265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12266 _ACEOF
12267
12268 fi
12269 done
12270
12271
12272
12273
12274
12275
12276
12277
12278 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
12279 do
12280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12281 echo "$as_me:$LINENO: checking for $ac_func" >&5
12282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12283 if eval "test \"\${$as_ac_var+set}\" = set"; then
12284   echo $ECHO_N "(cached) $ECHO_C" >&6
12285 else
12286   cat >conftest.$ac_ext <<_ACEOF
12287 #line $LINENO "configure"
12288 #include "confdefs.h"
12289 /* System header to define __stub macros and hopefully few prototypes,
12290     which can conflict with char $ac_func (); below.  */
12291 #include <assert.h>
12292 /* Override any gcc2 internal prototype to avoid an error.  */
12293 #ifdef __cplusplus
12294 extern "C"
12295 #endif
12296 /* We use char because int might match the return type of a gcc2
12297    builtin and then its argument prototype would still apply.  */
12298 char $ac_func ();
12299 char (*f) ();
12300
12301 int
12302 main ()
12303 {
12304 /* The GNU C library defines this for functions which it implements
12305     to always fail with ENOSYS.  Some functions are actually named
12306     something starting with __ and the normal name is an alias.  */
12307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12308 choke me
12309 #else
12310 f = $ac_func;
12311 #endif
12312
12313   ;
12314   return 0;
12315 }
12316 _ACEOF
12317 rm -f conftest.$ac_objext conftest$ac_exeext
12318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12319   (eval $ac_link) 2>&5
12320   ac_status=$?
12321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322   (exit $ac_status); } &&
12323          { ac_try='test -s conftest$ac_exeext'
12324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325   (eval $ac_try) 2>&5
12326   ac_status=$?
12327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328   (exit $ac_status); }; }; then
12329   eval "$as_ac_var=yes"
12330 else
12331   echo "$as_me: failed program was:" >&5
12332 cat conftest.$ac_ext >&5
12333 eval "$as_ac_var=no"
12334 fi
12335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12336 fi
12337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12339 if test `eval echo '${'$as_ac_var'}'` = yes; then
12340   cat >>confdefs.h <<_ACEOF
12341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12342 _ACEOF
12343
12344 fi
12345 done
12346
12347
12348
12349
12350
12351 for ac_func in _write __write _fork __fork
12352 do
12353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12354 echo "$as_me:$LINENO: checking for $ac_func" >&5
12355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12356 if eval "test \"\${$as_ac_var+set}\" = set"; then
12357   echo $ECHO_N "(cached) $ECHO_C" >&6
12358 else
12359   cat >conftest.$ac_ext <<_ACEOF
12360 #line $LINENO "configure"
12361 #include "confdefs.h"
12362 /* System header to define __stub macros and hopefully few prototypes,
12363     which can conflict with char $ac_func (); below.  */
12364 #include <assert.h>
12365 /* Override any gcc2 internal prototype to avoid an error.  */
12366 #ifdef __cplusplus
12367 extern "C"
12368 #endif
12369 /* We use char because int might match the return type of a gcc2
12370    builtin and then its argument prototype would still apply.  */
12371 char $ac_func ();
12372 char (*f) ();
12373
12374 int
12375 main ()
12376 {
12377 /* The GNU C library defines this for functions which it implements
12378     to always fail with ENOSYS.  Some functions are actually named
12379     something starting with __ and the normal name is an alias.  */
12380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12381 choke me
12382 #else
12383 f = $ac_func;
12384 #endif
12385
12386   ;
12387   return 0;
12388 }
12389 _ACEOF
12390 rm -f conftest.$ac_objext conftest$ac_exeext
12391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12392   (eval $ac_link) 2>&5
12393   ac_status=$?
12394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395   (exit $ac_status); } &&
12396          { ac_try='test -s conftest$ac_exeext'
12397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12398   (eval $ac_try) 2>&5
12399   ac_status=$?
12400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401   (exit $ac_status); }; }; then
12402   eval "$as_ac_var=yes"
12403 else
12404   echo "$as_me: failed program was:" >&5
12405 cat conftest.$ac_ext >&5
12406 eval "$as_ac_var=no"
12407 fi
12408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12409 fi
12410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12412 if test `eval echo '${'$as_ac_var'}'` = yes; then
12413   cat >>confdefs.h <<_ACEOF
12414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12415 _ACEOF
12416
12417 fi
12418 done
12419
12420
12421
12422
12423
12424
12425
12426 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
12427 do
12428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12429 echo "$as_me:$LINENO: checking for $ac_func" >&5
12430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12431 if eval "test \"\${$as_ac_var+set}\" = set"; then
12432   echo $ECHO_N "(cached) $ECHO_C" >&6
12433 else
12434   cat >conftest.$ac_ext <<_ACEOF
12435 #line $LINENO "configure"
12436 #include "confdefs.h"
12437 /* System header to define __stub macros and hopefully few prototypes,
12438     which can conflict with char $ac_func (); below.  */
12439 #include <assert.h>
12440 /* Override any gcc2 internal prototype to avoid an error.  */
12441 #ifdef __cplusplus
12442 extern "C"
12443 #endif
12444 /* We use char because int might match the return type of a gcc2
12445    builtin and then its argument prototype would still apply.  */
12446 char $ac_func ();
12447 char (*f) ();
12448
12449 int
12450 main ()
12451 {
12452 /* The GNU C library defines this for functions which it implements
12453     to always fail with ENOSYS.  Some functions are actually named
12454     something starting with __ and the normal name is an alias.  */
12455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12456 choke me
12457 #else
12458 f = $ac_func;
12459 #endif
12460
12461   ;
12462   return 0;
12463 }
12464 _ACEOF
12465 rm -f conftest.$ac_objext conftest$ac_exeext
12466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12467   (eval $ac_link) 2>&5
12468   ac_status=$?
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); } &&
12471          { ac_try='test -s conftest$ac_exeext'
12472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473   (eval $ac_try) 2>&5
12474   ac_status=$?
12475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476   (exit $ac_status); }; }; then
12477   eval "$as_ac_var=yes"
12478 else
12479   echo "$as_me: failed program was:" >&5
12480 cat conftest.$ac_ext >&5
12481 eval "$as_ac_var=no"
12482 fi
12483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12484 fi
12485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12487 if test `eval echo '${'$as_ac_var'}'` = yes; then
12488   cat >>confdefs.h <<_ACEOF
12489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12490 _ACEOF
12491
12492 fi
12493 done
12494
12495
12496
12497
12498
12499
12500
12501
12502 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
12503 do
12504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12505 echo "$as_me:$LINENO: checking for $ac_func" >&5
12506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12507 if eval "test \"\${$as_ac_var+set}\" = set"; then
12508   echo $ECHO_N "(cached) $ECHO_C" >&6
12509 else
12510   cat >conftest.$ac_ext <<_ACEOF
12511 #line $LINENO "configure"
12512 #include "confdefs.h"
12513 /* System header to define __stub macros and hopefully few prototypes,
12514     which can conflict with char $ac_func (); below.  */
12515 #include <assert.h>
12516 /* Override any gcc2 internal prototype to avoid an error.  */
12517 #ifdef __cplusplus
12518 extern "C"
12519 #endif
12520 /* We use char because int might match the return type of a gcc2
12521    builtin and then its argument prototype would still apply.  */
12522 char $ac_func ();
12523 char (*f) ();
12524
12525 int
12526 main ()
12527 {
12528 /* The GNU C library defines this for functions which it implements
12529     to always fail with ENOSYS.  Some functions are actually named
12530     something starting with __ and the normal name is an alias.  */
12531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12532 choke me
12533 #else
12534 f = $ac_func;
12535 #endif
12536
12537   ;
12538   return 0;
12539 }
12540 _ACEOF
12541 rm -f conftest.$ac_objext conftest$ac_exeext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12543   (eval $ac_link) 2>&5
12544   ac_status=$?
12545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546   (exit $ac_status); } &&
12547          { ac_try='test -s conftest$ac_exeext'
12548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549   (eval $ac_try) 2>&5
12550   ac_status=$?
12551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552   (exit $ac_status); }; }; then
12553   eval "$as_ac_var=yes"
12554 else
12555   echo "$as_me: failed program was:" >&5
12556 cat conftest.$ac_ext >&5
12557 eval "$as_ac_var=no"
12558 fi
12559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12560 fi
12561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12563 if test `eval echo '${'$as_ac_var'}'` = yes; then
12564   cat >>confdefs.h <<_ACEOF
12565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12566 _ACEOF
12567
12568 fi
12569 done
12570
12571
12572
12573
12574
12575
12576
12577 for ac_func in pread _pread __pread pread64 _pread64 __pread64
12578 do
12579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12580 echo "$as_me:$LINENO: checking for $ac_func" >&5
12581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12582 if eval "test \"\${$as_ac_var+set}\" = set"; then
12583   echo $ECHO_N "(cached) $ECHO_C" >&6
12584 else
12585   cat >conftest.$ac_ext <<_ACEOF
12586 #line $LINENO "configure"
12587 #include "confdefs.h"
12588 /* System header to define __stub macros and hopefully few prototypes,
12589     which can conflict with char $ac_func (); below.  */
12590 #include <assert.h>
12591 /* Override any gcc2 internal prototype to avoid an error.  */
12592 #ifdef __cplusplus
12593 extern "C"
12594 #endif
12595 /* We use char because int might match the return type of a gcc2
12596    builtin and then its argument prototype would still apply.  */
12597 char $ac_func ();
12598 char (*f) ();
12599
12600 int
12601 main ()
12602 {
12603 /* The GNU C library defines this for functions which it implements
12604     to always fail with ENOSYS.  Some functions are actually named
12605     something starting with __ and the normal name is an alias.  */
12606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12607 choke me
12608 #else
12609 f = $ac_func;
12610 #endif
12611
12612   ;
12613   return 0;
12614 }
12615 _ACEOF
12616 rm -f conftest.$ac_objext conftest$ac_exeext
12617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12618   (eval $ac_link) 2>&5
12619   ac_status=$?
12620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621   (exit $ac_status); } &&
12622          { ac_try='test -s conftest$ac_exeext'
12623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624   (eval $ac_try) 2>&5
12625   ac_status=$?
12626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627   (exit $ac_status); }; }; then
12628   eval "$as_ac_var=yes"
12629 else
12630   echo "$as_me: failed program was:" >&5
12631 cat conftest.$ac_ext >&5
12632 eval "$as_ac_var=no"
12633 fi
12634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12635 fi
12636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12638 if test `eval echo '${'$as_ac_var'}'` = yes; then
12639   cat >>confdefs.h <<_ACEOF
12640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12641 _ACEOF
12642
12643 fi
12644 done
12645
12646
12647
12648
12649
12650
12651
12652 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
12653 do
12654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12655 echo "$as_me:$LINENO: checking for $ac_func" >&5
12656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12657 if eval "test \"\${$as_ac_var+set}\" = set"; then
12658   echo $ECHO_N "(cached) $ECHO_C" >&6
12659 else
12660   cat >conftest.$ac_ext <<_ACEOF
12661 #line $LINENO "configure"
12662 #include "confdefs.h"
12663 /* System header to define __stub macros and hopefully few prototypes,
12664     which can conflict with char $ac_func (); below.  */
12665 #include <assert.h>
12666 /* Override any gcc2 internal prototype to avoid an error.  */
12667 #ifdef __cplusplus
12668 extern "C"
12669 #endif
12670 /* We use char because int might match the return type of a gcc2
12671    builtin and then its argument prototype would still apply.  */
12672 char $ac_func ();
12673 char (*f) ();
12674
12675 int
12676 main ()
12677 {
12678 /* The GNU C library defines this for functions which it implements
12679     to always fail with ENOSYS.  Some functions are actually named
12680     something starting with __ and the normal name is an alias.  */
12681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12682 choke me
12683 #else
12684 f = $ac_func;
12685 #endif
12686
12687   ;
12688   return 0;
12689 }
12690 _ACEOF
12691 rm -f conftest.$ac_objext conftest$ac_exeext
12692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12693   (eval $ac_link) 2>&5
12694   ac_status=$?
12695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696   (exit $ac_status); } &&
12697          { ac_try='test -s conftest$ac_exeext'
12698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699   (eval $ac_try) 2>&5
12700   ac_status=$?
12701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702   (exit $ac_status); }; }; then
12703   eval "$as_ac_var=yes"
12704 else
12705   echo "$as_me: failed program was:" >&5
12706 cat conftest.$ac_ext >&5
12707 eval "$as_ac_var=no"
12708 fi
12709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12710 fi
12711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12713 if test `eval echo '${'$as_ac_var'}'` = yes; then
12714   cat >>confdefs.h <<_ACEOF
12715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12716 _ACEOF
12717
12718 fi
12719 done
12720
12721
12722
12723
12724
12725 for ac_func in open64 _open64 __open64 creat64
12726 do
12727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12728 echo "$as_me:$LINENO: checking for $ac_func" >&5
12729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12730 if eval "test \"\${$as_ac_var+set}\" = set"; then
12731   echo $ECHO_N "(cached) $ECHO_C" >&6
12732 else
12733   cat >conftest.$ac_ext <<_ACEOF
12734 #line $LINENO "configure"
12735 #include "confdefs.h"
12736 /* System header to define __stub macros and hopefully few prototypes,
12737     which can conflict with char $ac_func (); below.  */
12738 #include <assert.h>
12739 /* Override any gcc2 internal prototype to avoid an error.  */
12740 #ifdef __cplusplus
12741 extern "C"
12742 #endif
12743 /* We use char because int might match the return type of a gcc2
12744    builtin and then its argument prototype would still apply.  */
12745 char $ac_func ();
12746 char (*f) ();
12747
12748 int
12749 main ()
12750 {
12751 /* The GNU C library defines this for functions which it implements
12752     to always fail with ENOSYS.  Some functions are actually named
12753     something starting with __ and the normal name is an alias.  */
12754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12755 choke me
12756 #else
12757 f = $ac_func;
12758 #endif
12759
12760   ;
12761   return 0;
12762 }
12763 _ACEOF
12764 rm -f conftest.$ac_objext conftest$ac_exeext
12765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12766   (eval $ac_link) 2>&5
12767   ac_status=$?
12768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769   (exit $ac_status); } &&
12770          { ac_try='test -s conftest$ac_exeext'
12771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772   (eval $ac_try) 2>&5
12773   ac_status=$?
12774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775   (exit $ac_status); }; }; then
12776   eval "$as_ac_var=yes"
12777 else
12778   echo "$as_me: failed program was:" >&5
12779 cat conftest.$ac_ext >&5
12780 eval "$as_ac_var=no"
12781 fi
12782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12783 fi
12784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12786 if test `eval echo '${'$as_ac_var'}'` = yes; then
12787   cat >>confdefs.h <<_ACEOF
12788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12789 _ACEOF
12790
12791 fi
12792 done
12793
12794
12795 #
12796 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
12797 #
12798
12799 if test x$ac_cv_func_stat64 = xno ; then
12800   echo "$as_me:$LINENO: checking for stat64 in <sys/stat.h>" >&5
12801 echo $ECHO_N "checking for stat64 in <sys/stat.h>... $ECHO_C" >&6
12802   cat >conftest.$ac_ext <<_ACEOF
12803 #line $LINENO "configure"
12804 #include "confdefs.h"
12805
12806 #if defined(HAVE_UNISTD_H)
12807 #include <unistd.h>
12808 #endif
12809 #include <sys/stat.h>
12810
12811 int
12812 main ()
12813 {
12814 struct stat64 st64; exit(stat64(".",&st64));
12815   ;
12816   return 0;
12817 }
12818 _ACEOF
12819 rm -f conftest.$ac_objext conftest$ac_exeext
12820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12821   (eval $ac_link) 2>&5
12822   ac_status=$?
12823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824   (exit $ac_status); } &&
12825          { ac_try='test -s conftest$ac_exeext'
12826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827   (eval $ac_try) 2>&5
12828   ac_status=$?
12829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830   (exit $ac_status); }; }; then
12831   ac_cv_func_stat64=yes
12832 else
12833   echo "$as_me: failed program was:" >&5
12834 cat conftest.$ac_ext >&5
12835 fi
12836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12837   echo "$as_me:$LINENO: result: $ac_cv_func_stat64" >&5
12838 echo "${ECHO_T}$ac_cv_func_stat64" >&6
12839   if test x$ac_cv_func_stat64 = xyes ; then
12840
12841 cat >>confdefs.h <<\_ACEOF
12842 #define HAVE_STAT64 1
12843 _ACEOF
12844
12845   fi
12846 fi
12847
12848 if test x$ac_cv_func_lstat64 = xno ; then
12849   echo "$as_me:$LINENO: checking for lstat64 in <sys/stat.h>" >&5
12850 echo $ECHO_N "checking for lstat64 in <sys/stat.h>... $ECHO_C" >&6
12851   cat >conftest.$ac_ext <<_ACEOF
12852 #line $LINENO "configure"
12853 #include "confdefs.h"
12854
12855 #if defined(HAVE_UNISTD_H)
12856 #include <unistd.h>
12857 #endif
12858 #include <sys/stat.h>
12859
12860 int
12861 main ()
12862 {
12863 struct stat64 st64; exit(lstat64(".",&st64));
12864   ;
12865   return 0;
12866 }
12867 _ACEOF
12868 rm -f conftest.$ac_objext conftest$ac_exeext
12869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12870   (eval $ac_link) 2>&5
12871   ac_status=$?
12872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873   (exit $ac_status); } &&
12874          { ac_try='test -s conftest$ac_exeext'
12875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876   (eval $ac_try) 2>&5
12877   ac_status=$?
12878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879   (exit $ac_status); }; }; then
12880   ac_cv_func_lstat64=yes
12881 else
12882   echo "$as_me: failed program was:" >&5
12883 cat conftest.$ac_ext >&5
12884 fi
12885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12886   echo "$as_me:$LINENO: result: $ac_cv_func_lstat64" >&5
12887 echo "${ECHO_T}$ac_cv_func_lstat64" >&6
12888   if test x$ac_cv_func_lstat64 = xyes ; then
12889     cat >>confdefs.h <<\_ACEOF
12890 #define HAVE_LSTAT64 Whether lstat64() is available
12891 _ACEOF
12892
12893   fi
12894 fi
12895
12896 if test x$ac_cv_func_fstat64 = xno ; then
12897   echo "$as_me:$LINENO: checking for fstat64 in <sys/stat.h>" >&5
12898 echo $ECHO_N "checking for fstat64 in <sys/stat.h>... $ECHO_C" >&6
12899   cat >conftest.$ac_ext <<_ACEOF
12900 #line $LINENO "configure"
12901 #include "confdefs.h"
12902
12903 #if defined(HAVE_UNISTD_H)
12904 #include <unistd.h>
12905 #endif
12906 #include <sys/stat.h>
12907
12908 int
12909 main ()
12910 {
12911 struct stat64 st64; exit(fstat64(0,&st64));
12912   ;
12913   return 0;
12914 }
12915 _ACEOF
12916 rm -f conftest.$ac_objext conftest$ac_exeext
12917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12918   (eval $ac_link) 2>&5
12919   ac_status=$?
12920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921   (exit $ac_status); } &&
12922          { ac_try='test -s conftest$ac_exeext'
12923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924   (eval $ac_try) 2>&5
12925   ac_status=$?
12926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927   (exit $ac_status); }; }; then
12928   ac_cv_func_fstat64=yes
12929 else
12930   echo "$as_me: failed program was:" >&5
12931 cat conftest.$ac_ext >&5
12932 fi
12933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12934   echo "$as_me:$LINENO: result: $ac_cv_func_fstat64" >&5
12935 echo "${ECHO_T}$ac_cv_func_fstat64" >&6
12936   if test x$ac_cv_func_fstat64 = xyes ; then
12937
12938 cat >>confdefs.h <<\_ACEOF
12939 #define HAVE_FSTAT64 1
12940 _ACEOF
12941
12942   fi
12943 fi
12944
12945 #####################################
12946 # we might need the resolv library on some systems
12947
12948 echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
12949 echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
12950 if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
12951   echo $ECHO_N "(cached) $ECHO_C" >&6
12952 else
12953   ac_check_lib_save_LIBS=$LIBS
12954 LIBS="-lresolv  $LIBS"
12955 cat >conftest.$ac_ext <<_ACEOF
12956 #line $LINENO "configure"
12957 #include "confdefs.h"
12958
12959 /* Override any gcc2 internal prototype to avoid an error.  */
12960 #ifdef __cplusplus
12961 extern "C"
12962 #endif
12963 /* We use char because int might match the return type of a gcc2
12964    builtin and then its argument prototype would still apply.  */
12965 char dn_expand ();
12966 int
12967 main ()
12968 {
12969 dn_expand ();
12970   ;
12971   return 0;
12972 }
12973 _ACEOF
12974 rm -f conftest.$ac_objext conftest$ac_exeext
12975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12976   (eval $ac_link) 2>&5
12977   ac_status=$?
12978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979   (exit $ac_status); } &&
12980          { ac_try='test -s conftest$ac_exeext'
12981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982   (eval $ac_try) 2>&5
12983   ac_status=$?
12984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985   (exit $ac_status); }; }; then
12986   ac_cv_lib_resolv_dn_expand=yes
12987 else
12988   echo "$as_me: failed program was:" >&5
12989 cat conftest.$ac_ext >&5
12990 ac_cv_lib_resolv_dn_expand=no
12991 fi
12992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12993 LIBS=$ac_check_lib_save_LIBS
12994 fi
12995 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
12996 echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
12997 if test $ac_cv_lib_resolv_dn_expand = yes; then
12998   cat >>confdefs.h <<_ACEOF
12999 #define HAVE_LIBRESOLV 1
13000 _ACEOF
13001
13002   LIBS="-lresolv $LIBS"
13003
13004 fi
13005
13006
13007 #
13008 # Check for the functions putprpwnam, set_auth_parameters,
13009 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
13010 # Needed for OSF1 and HPUX.
13011 #
13012
13013 case "$LIBS" in
13014   *-lsecurity*)
13015 for ac_func in putprpwnam
13016 do
13017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13018 echo "$as_me:$LINENO: checking for $ac_func" >&5
13019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13020 if eval "test \"\${$as_ac_var+set}\" = set"; then
13021   echo $ECHO_N "(cached) $ECHO_C" >&6
13022 else
13023   cat >conftest.$ac_ext <<_ACEOF
13024 #line $LINENO "configure"
13025 #include "confdefs.h"
13026 /* System header to define __stub macros and hopefully few prototypes,
13027     which can conflict with char $ac_func (); below.  */
13028 #include <assert.h>
13029 /* Override any gcc2 internal prototype to avoid an error.  */
13030 #ifdef __cplusplus
13031 extern "C"
13032 #endif
13033 /* We use char because int might match the return type of a gcc2
13034    builtin and then its argument prototype would still apply.  */
13035 char $ac_func ();
13036 char (*f) ();
13037
13038 int
13039 main ()
13040 {
13041 /* The GNU C library defines this for functions which it implements
13042     to always fail with ENOSYS.  Some functions are actually named
13043     something starting with __ and the normal name is an alias.  */
13044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13045 choke me
13046 #else
13047 f = $ac_func;
13048 #endif
13049
13050   ;
13051   return 0;
13052 }
13053 _ACEOF
13054 rm -f conftest.$ac_objext conftest$ac_exeext
13055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13056   (eval $ac_link) 2>&5
13057   ac_status=$?
13058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059   (exit $ac_status); } &&
13060          { ac_try='test -s conftest$ac_exeext'
13061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062   (eval $ac_try) 2>&5
13063   ac_status=$?
13064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065   (exit $ac_status); }; }; then
13066   eval "$as_ac_var=yes"
13067 else
13068   echo "$as_me: failed program was:" >&5
13069 cat conftest.$ac_ext >&5
13070 eval "$as_ac_var=no"
13071 fi
13072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13073 fi
13074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13076 if test `eval echo '${'$as_ac_var'}'` = yes; then
13077   cat >>confdefs.h <<_ACEOF
13078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13079 _ACEOF
13080
13081 fi
13082 done
13083  ;;
13084   *)
13085 echo "$as_me:$LINENO: checking for putprpwnam in -lsecurity" >&5
13086 echo $ECHO_N "checking for putprpwnam in -lsecurity... $ECHO_C" >&6
13087 if test "${ac_cv_lib_security_putprpwnam+set}" = set; then
13088   echo $ECHO_N "(cached) $ECHO_C" >&6
13089 else
13090   ac_check_lib_save_LIBS=$LIBS
13091 LIBS="-lsecurity  $LIBS"
13092 cat >conftest.$ac_ext <<_ACEOF
13093 #line $LINENO "configure"
13094 #include "confdefs.h"
13095
13096 /* Override any gcc2 internal prototype to avoid an error.  */
13097 #ifdef __cplusplus
13098 extern "C"
13099 #endif
13100 /* We use char because int might match the return type of a gcc2
13101    builtin and then its argument prototype would still apply.  */
13102 char putprpwnam ();
13103 int
13104 main ()
13105 {
13106 putprpwnam ();
13107   ;
13108   return 0;
13109 }
13110 _ACEOF
13111 rm -f conftest.$ac_objext conftest$ac_exeext
13112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13113   (eval $ac_link) 2>&5
13114   ac_status=$?
13115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116   (exit $ac_status); } &&
13117          { ac_try='test -s conftest$ac_exeext'
13118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119   (eval $ac_try) 2>&5
13120   ac_status=$?
13121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122   (exit $ac_status); }; }; then
13123   ac_cv_lib_security_putprpwnam=yes
13124 else
13125   echo "$as_me: failed program was:" >&5
13126 cat conftest.$ac_ext >&5
13127 ac_cv_lib_security_putprpwnam=no
13128 fi
13129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13130 LIBS=$ac_check_lib_save_LIBS
13131 fi
13132 echo "$as_me:$LINENO: result: $ac_cv_lib_security_putprpwnam" >&5
13133 echo "${ECHO_T}$ac_cv_lib_security_putprpwnam" >&6
13134 if test $ac_cv_lib_security_putprpwnam = yes; then
13135   cat >>confdefs.h <<_ACEOF
13136 #define HAVE_LIBSECURITY 1
13137 _ACEOF
13138
13139   LIBS="-lsecurity $LIBS"
13140
13141 fi
13142
13143
13144 for ac_func in putprpwnam
13145 do
13146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13147 echo "$as_me:$LINENO: checking for $ac_func" >&5
13148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13149 if eval "test \"\${$as_ac_var+set}\" = set"; then
13150   echo $ECHO_N "(cached) $ECHO_C" >&6
13151 else
13152   cat >conftest.$ac_ext <<_ACEOF
13153 #line $LINENO "configure"
13154 #include "confdefs.h"
13155 /* System header to define __stub macros and hopefully few prototypes,
13156     which can conflict with char $ac_func (); below.  */
13157 #include <assert.h>
13158 /* Override any gcc2 internal prototype to avoid an error.  */
13159 #ifdef __cplusplus
13160 extern "C"
13161 #endif
13162 /* We use char because int might match the return type of a gcc2
13163    builtin and then its argument prototype would still apply.  */
13164 char $ac_func ();
13165 char (*f) ();
13166
13167 int
13168 main ()
13169 {
13170 /* The GNU C library defines this for functions which it implements
13171     to always fail with ENOSYS.  Some functions are actually named
13172     something starting with __ and the normal name is an alias.  */
13173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13174 choke me
13175 #else
13176 f = $ac_func;
13177 #endif
13178
13179   ;
13180   return 0;
13181 }
13182 _ACEOF
13183 rm -f conftest.$ac_objext conftest$ac_exeext
13184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13185   (eval $ac_link) 2>&5
13186   ac_status=$?
13187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188   (exit $ac_status); } &&
13189          { ac_try='test -s conftest$ac_exeext'
13190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191   (eval $ac_try) 2>&5
13192   ac_status=$?
13193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194   (exit $ac_status); }; }; then
13195   eval "$as_ac_var=yes"
13196 else
13197   echo "$as_me: failed program was:" >&5
13198 cat conftest.$ac_ext >&5
13199 eval "$as_ac_var=no"
13200 fi
13201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13202 fi
13203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13205 if test `eval echo '${'$as_ac_var'}'` = yes; then
13206   cat >>confdefs.h <<_ACEOF
13207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13208 _ACEOF
13209
13210 fi
13211 done
13212
13213   ;;
13214   esac
13215
13216 case "$LIBS" in
13217   *-lsec*)
13218 for ac_func in putprpwnam
13219 do
13220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13221 echo "$as_me:$LINENO: checking for $ac_func" >&5
13222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13223 if eval "test \"\${$as_ac_var+set}\" = set"; then
13224   echo $ECHO_N "(cached) $ECHO_C" >&6
13225 else
13226   cat >conftest.$ac_ext <<_ACEOF
13227 #line $LINENO "configure"
13228 #include "confdefs.h"
13229 /* System header to define __stub macros and hopefully few prototypes,
13230     which can conflict with char $ac_func (); below.  */
13231 #include <assert.h>
13232 /* Override any gcc2 internal prototype to avoid an error.  */
13233 #ifdef __cplusplus
13234 extern "C"
13235 #endif
13236 /* We use char because int might match the return type of a gcc2
13237    builtin and then its argument prototype would still apply.  */
13238 char $ac_func ();
13239 char (*f) ();
13240
13241 int
13242 main ()
13243 {
13244 /* The GNU C library defines this for functions which it implements
13245     to always fail with ENOSYS.  Some functions are actually named
13246     something starting with __ and the normal name is an alias.  */
13247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13248 choke me
13249 #else
13250 f = $ac_func;
13251 #endif
13252
13253   ;
13254   return 0;
13255 }
13256 _ACEOF
13257 rm -f conftest.$ac_objext conftest$ac_exeext
13258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13259   (eval $ac_link) 2>&5
13260   ac_status=$?
13261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262   (exit $ac_status); } &&
13263          { ac_try='test -s conftest$ac_exeext'
13264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265   (eval $ac_try) 2>&5
13266   ac_status=$?
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); }; }; then
13269   eval "$as_ac_var=yes"
13270 else
13271   echo "$as_me: failed program was:" >&5
13272 cat conftest.$ac_ext >&5
13273 eval "$as_ac_var=no"
13274 fi
13275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13276 fi
13277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13279 if test `eval echo '${'$as_ac_var'}'` = yes; then
13280   cat >>confdefs.h <<_ACEOF
13281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13282 _ACEOF
13283
13284 fi
13285 done
13286  ;;
13287   *)
13288 echo "$as_me:$LINENO: checking for putprpwnam in -lsec" >&5
13289 echo $ECHO_N "checking for putprpwnam in -lsec... $ECHO_C" >&6
13290 if test "${ac_cv_lib_sec_putprpwnam+set}" = set; then
13291   echo $ECHO_N "(cached) $ECHO_C" >&6
13292 else
13293   ac_check_lib_save_LIBS=$LIBS
13294 LIBS="-lsec  $LIBS"
13295 cat >conftest.$ac_ext <<_ACEOF
13296 #line $LINENO "configure"
13297 #include "confdefs.h"
13298
13299 /* Override any gcc2 internal prototype to avoid an error.  */
13300 #ifdef __cplusplus
13301 extern "C"
13302 #endif
13303 /* We use char because int might match the return type of a gcc2
13304    builtin and then its argument prototype would still apply.  */
13305 char putprpwnam ();
13306 int
13307 main ()
13308 {
13309 putprpwnam ();
13310   ;
13311   return 0;
13312 }
13313 _ACEOF
13314 rm -f conftest.$ac_objext conftest$ac_exeext
13315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13316   (eval $ac_link) 2>&5
13317   ac_status=$?
13318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319   (exit $ac_status); } &&
13320          { ac_try='test -s conftest$ac_exeext'
13321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322   (eval $ac_try) 2>&5
13323   ac_status=$?
13324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325   (exit $ac_status); }; }; then
13326   ac_cv_lib_sec_putprpwnam=yes
13327 else
13328   echo "$as_me: failed program was:" >&5
13329 cat conftest.$ac_ext >&5
13330 ac_cv_lib_sec_putprpwnam=no
13331 fi
13332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13333 LIBS=$ac_check_lib_save_LIBS
13334 fi
13335 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_putprpwnam" >&5
13336 echo "${ECHO_T}$ac_cv_lib_sec_putprpwnam" >&6
13337 if test $ac_cv_lib_sec_putprpwnam = yes; then
13338   cat >>confdefs.h <<_ACEOF
13339 #define HAVE_LIBSEC 1
13340 _ACEOF
13341
13342   LIBS="-lsec $LIBS"
13343
13344 fi
13345
13346
13347 for ac_func in putprpwnam
13348 do
13349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13350 echo "$as_me:$LINENO: checking for $ac_func" >&5
13351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13352 if eval "test \"\${$as_ac_var+set}\" = set"; then
13353   echo $ECHO_N "(cached) $ECHO_C" >&6
13354 else
13355   cat >conftest.$ac_ext <<_ACEOF
13356 #line $LINENO "configure"
13357 #include "confdefs.h"
13358 /* System header to define __stub macros and hopefully few prototypes,
13359     which can conflict with char $ac_func (); below.  */
13360 #include <assert.h>
13361 /* Override any gcc2 internal prototype to avoid an error.  */
13362 #ifdef __cplusplus
13363 extern "C"
13364 #endif
13365 /* We use char because int might match the return type of a gcc2
13366    builtin and then its argument prototype would still apply.  */
13367 char $ac_func ();
13368 char (*f) ();
13369
13370 int
13371 main ()
13372 {
13373 /* The GNU C library defines this for functions which it implements
13374     to always fail with ENOSYS.  Some functions are actually named
13375     something starting with __ and the normal name is an alias.  */
13376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13377 choke me
13378 #else
13379 f = $ac_func;
13380 #endif
13381
13382   ;
13383   return 0;
13384 }
13385 _ACEOF
13386 rm -f conftest.$ac_objext conftest$ac_exeext
13387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13388   (eval $ac_link) 2>&5
13389   ac_status=$?
13390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391   (exit $ac_status); } &&
13392          { ac_try='test -s conftest$ac_exeext'
13393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394   (eval $ac_try) 2>&5
13395   ac_status=$?
13396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397   (exit $ac_status); }; }; then
13398   eval "$as_ac_var=yes"
13399 else
13400   echo "$as_me: failed program was:" >&5
13401 cat conftest.$ac_ext >&5
13402 eval "$as_ac_var=no"
13403 fi
13404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13405 fi
13406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13408 if test `eval echo '${'$as_ac_var'}'` = yes; then
13409   cat >>confdefs.h <<_ACEOF
13410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13411 _ACEOF
13412
13413 fi
13414 done
13415
13416   ;;
13417   esac
13418
13419
13420 case "$LIBS" in
13421   *-lsecurity*)
13422 for ac_func in set_auth_parameters
13423 do
13424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13425 echo "$as_me:$LINENO: checking for $ac_func" >&5
13426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13427 if eval "test \"\${$as_ac_var+set}\" = set"; then
13428   echo $ECHO_N "(cached) $ECHO_C" >&6
13429 else
13430   cat >conftest.$ac_ext <<_ACEOF
13431 #line $LINENO "configure"
13432 #include "confdefs.h"
13433 /* System header to define __stub macros and hopefully few prototypes,
13434     which can conflict with char $ac_func (); below.  */
13435 #include <assert.h>
13436 /* Override any gcc2 internal prototype to avoid an error.  */
13437 #ifdef __cplusplus
13438 extern "C"
13439 #endif
13440 /* We use char because int might match the return type of a gcc2
13441    builtin and then its argument prototype would still apply.  */
13442 char $ac_func ();
13443 char (*f) ();
13444
13445 int
13446 main ()
13447 {
13448 /* The GNU C library defines this for functions which it implements
13449     to always fail with ENOSYS.  Some functions are actually named
13450     something starting with __ and the normal name is an alias.  */
13451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13452 choke me
13453 #else
13454 f = $ac_func;
13455 #endif
13456
13457   ;
13458   return 0;
13459 }
13460 _ACEOF
13461 rm -f conftest.$ac_objext conftest$ac_exeext
13462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13463   (eval $ac_link) 2>&5
13464   ac_status=$?
13465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466   (exit $ac_status); } &&
13467          { ac_try='test -s conftest$ac_exeext'
13468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469   (eval $ac_try) 2>&5
13470   ac_status=$?
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); }; }; then
13473   eval "$as_ac_var=yes"
13474 else
13475   echo "$as_me: failed program was:" >&5
13476 cat conftest.$ac_ext >&5
13477 eval "$as_ac_var=no"
13478 fi
13479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13480 fi
13481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13483 if test `eval echo '${'$as_ac_var'}'` = yes; then
13484   cat >>confdefs.h <<_ACEOF
13485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13486 _ACEOF
13487
13488 fi
13489 done
13490  ;;
13491   *)
13492 echo "$as_me:$LINENO: checking for set_auth_parameters in -lsecurity" >&5
13493 echo $ECHO_N "checking for set_auth_parameters in -lsecurity... $ECHO_C" >&6
13494 if test "${ac_cv_lib_security_set_auth_parameters+set}" = set; then
13495   echo $ECHO_N "(cached) $ECHO_C" >&6
13496 else
13497   ac_check_lib_save_LIBS=$LIBS
13498 LIBS="-lsecurity  $LIBS"
13499 cat >conftest.$ac_ext <<_ACEOF
13500 #line $LINENO "configure"
13501 #include "confdefs.h"
13502
13503 /* Override any gcc2 internal prototype to avoid an error.  */
13504 #ifdef __cplusplus
13505 extern "C"
13506 #endif
13507 /* We use char because int might match the return type of a gcc2
13508    builtin and then its argument prototype would still apply.  */
13509 char set_auth_parameters ();
13510 int
13511 main ()
13512 {
13513 set_auth_parameters ();
13514   ;
13515   return 0;
13516 }
13517 _ACEOF
13518 rm -f conftest.$ac_objext conftest$ac_exeext
13519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13520   (eval $ac_link) 2>&5
13521   ac_status=$?
13522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523   (exit $ac_status); } &&
13524          { ac_try='test -s conftest$ac_exeext'
13525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526   (eval $ac_try) 2>&5
13527   ac_status=$?
13528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529   (exit $ac_status); }; }; then
13530   ac_cv_lib_security_set_auth_parameters=yes
13531 else
13532   echo "$as_me: failed program was:" >&5
13533 cat conftest.$ac_ext >&5
13534 ac_cv_lib_security_set_auth_parameters=no
13535 fi
13536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13537 LIBS=$ac_check_lib_save_LIBS
13538 fi
13539 echo "$as_me:$LINENO: result: $ac_cv_lib_security_set_auth_parameters" >&5
13540 echo "${ECHO_T}$ac_cv_lib_security_set_auth_parameters" >&6
13541 if test $ac_cv_lib_security_set_auth_parameters = yes; then
13542   cat >>confdefs.h <<_ACEOF
13543 #define HAVE_LIBSECURITY 1
13544 _ACEOF
13545
13546   LIBS="-lsecurity $LIBS"
13547
13548 fi
13549
13550
13551 for ac_func in set_auth_parameters
13552 do
13553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13554 echo "$as_me:$LINENO: checking for $ac_func" >&5
13555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13556 if eval "test \"\${$as_ac_var+set}\" = set"; then
13557   echo $ECHO_N "(cached) $ECHO_C" >&6
13558 else
13559   cat >conftest.$ac_ext <<_ACEOF
13560 #line $LINENO "configure"
13561 #include "confdefs.h"
13562 /* System header to define __stub macros and hopefully few prototypes,
13563     which can conflict with char $ac_func (); below.  */
13564 #include <assert.h>
13565 /* Override any gcc2 internal prototype to avoid an error.  */
13566 #ifdef __cplusplus
13567 extern "C"
13568 #endif
13569 /* We use char because int might match the return type of a gcc2
13570    builtin and then its argument prototype would still apply.  */
13571 char $ac_func ();
13572 char (*f) ();
13573
13574 int
13575 main ()
13576 {
13577 /* The GNU C library defines this for functions which it implements
13578     to always fail with ENOSYS.  Some functions are actually named
13579     something starting with __ and the normal name is an alias.  */
13580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13581 choke me
13582 #else
13583 f = $ac_func;
13584 #endif
13585
13586   ;
13587   return 0;
13588 }
13589 _ACEOF
13590 rm -f conftest.$ac_objext conftest$ac_exeext
13591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13592   (eval $ac_link) 2>&5
13593   ac_status=$?
13594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595   (exit $ac_status); } &&
13596          { ac_try='test -s conftest$ac_exeext'
13597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13598   (eval $ac_try) 2>&5
13599   ac_status=$?
13600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601   (exit $ac_status); }; }; then
13602   eval "$as_ac_var=yes"
13603 else
13604   echo "$as_me: failed program was:" >&5
13605 cat conftest.$ac_ext >&5
13606 eval "$as_ac_var=no"
13607 fi
13608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13609 fi
13610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13612 if test `eval echo '${'$as_ac_var'}'` = yes; then
13613   cat >>confdefs.h <<_ACEOF
13614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13615 _ACEOF
13616
13617 fi
13618 done
13619
13620   ;;
13621   esac
13622
13623 case "$LIBS" in
13624   *-lsec*)
13625 for ac_func in set_auth_parameters
13626 do
13627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13628 echo "$as_me:$LINENO: checking for $ac_func" >&5
13629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13630 if eval "test \"\${$as_ac_var+set}\" = set"; then
13631   echo $ECHO_N "(cached) $ECHO_C" >&6
13632 else
13633   cat >conftest.$ac_ext <<_ACEOF
13634 #line $LINENO "configure"
13635 #include "confdefs.h"
13636 /* System header to define __stub macros and hopefully few prototypes,
13637     which can conflict with char $ac_func (); below.  */
13638 #include <assert.h>
13639 /* Override any gcc2 internal prototype to avoid an error.  */
13640 #ifdef __cplusplus
13641 extern "C"
13642 #endif
13643 /* We use char because int might match the return type of a gcc2
13644    builtin and then its argument prototype would still apply.  */
13645 char $ac_func ();
13646 char (*f) ();
13647
13648 int
13649 main ()
13650 {
13651 /* The GNU C library defines this for functions which it implements
13652     to always fail with ENOSYS.  Some functions are actually named
13653     something starting with __ and the normal name is an alias.  */
13654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13655 choke me
13656 #else
13657 f = $ac_func;
13658 #endif
13659
13660   ;
13661   return 0;
13662 }
13663 _ACEOF
13664 rm -f conftest.$ac_objext conftest$ac_exeext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13666   (eval $ac_link) 2>&5
13667   ac_status=$?
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); } &&
13670          { ac_try='test -s conftest$ac_exeext'
13671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672   (eval $ac_try) 2>&5
13673   ac_status=$?
13674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675   (exit $ac_status); }; }; then
13676   eval "$as_ac_var=yes"
13677 else
13678   echo "$as_me: failed program was:" >&5
13679 cat conftest.$ac_ext >&5
13680 eval "$as_ac_var=no"
13681 fi
13682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13683 fi
13684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13686 if test `eval echo '${'$as_ac_var'}'` = yes; then
13687   cat >>confdefs.h <<_ACEOF
13688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13689 _ACEOF
13690
13691 fi
13692 done
13693  ;;
13694   *)
13695 echo "$as_me:$LINENO: checking for set_auth_parameters in -lsec" >&5
13696 echo $ECHO_N "checking for set_auth_parameters in -lsec... $ECHO_C" >&6
13697 if test "${ac_cv_lib_sec_set_auth_parameters+set}" = set; then
13698   echo $ECHO_N "(cached) $ECHO_C" >&6
13699 else
13700   ac_check_lib_save_LIBS=$LIBS
13701 LIBS="-lsec  $LIBS"
13702 cat >conftest.$ac_ext <<_ACEOF
13703 #line $LINENO "configure"
13704 #include "confdefs.h"
13705
13706 /* Override any gcc2 internal prototype to avoid an error.  */
13707 #ifdef __cplusplus
13708 extern "C"
13709 #endif
13710 /* We use char because int might match the return type of a gcc2
13711    builtin and then its argument prototype would still apply.  */
13712 char set_auth_parameters ();
13713 int
13714 main ()
13715 {
13716 set_auth_parameters ();
13717   ;
13718   return 0;
13719 }
13720 _ACEOF
13721 rm -f conftest.$ac_objext conftest$ac_exeext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13723   (eval $ac_link) 2>&5
13724   ac_status=$?
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); } &&
13727          { ac_try='test -s conftest$ac_exeext'
13728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729   (eval $ac_try) 2>&5
13730   ac_status=$?
13731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732   (exit $ac_status); }; }; then
13733   ac_cv_lib_sec_set_auth_parameters=yes
13734 else
13735   echo "$as_me: failed program was:" >&5
13736 cat conftest.$ac_ext >&5
13737 ac_cv_lib_sec_set_auth_parameters=no
13738 fi
13739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13740 LIBS=$ac_check_lib_save_LIBS
13741 fi
13742 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_set_auth_parameters" >&5
13743 echo "${ECHO_T}$ac_cv_lib_sec_set_auth_parameters" >&6
13744 if test $ac_cv_lib_sec_set_auth_parameters = yes; then
13745   cat >>confdefs.h <<_ACEOF
13746 #define HAVE_LIBSEC 1
13747 _ACEOF
13748
13749   LIBS="-lsec $LIBS"
13750
13751 fi
13752
13753
13754 for ac_func in set_auth_parameters
13755 do
13756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13757 echo "$as_me:$LINENO: checking for $ac_func" >&5
13758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13759 if eval "test \"\${$as_ac_var+set}\" = set"; then
13760   echo $ECHO_N "(cached) $ECHO_C" >&6
13761 else
13762   cat >conftest.$ac_ext <<_ACEOF
13763 #line $LINENO "configure"
13764 #include "confdefs.h"
13765 /* System header to define __stub macros and hopefully few prototypes,
13766     which can conflict with char $ac_func (); below.  */
13767 #include <assert.h>
13768 /* Override any gcc2 internal prototype to avoid an error.  */
13769 #ifdef __cplusplus
13770 extern "C"
13771 #endif
13772 /* We use char because int might match the return type of a gcc2
13773    builtin and then its argument prototype would still apply.  */
13774 char $ac_func ();
13775 char (*f) ();
13776
13777 int
13778 main ()
13779 {
13780 /* The GNU C library defines this for functions which it implements
13781     to always fail with ENOSYS.  Some functions are actually named
13782     something starting with __ and the normal name is an alias.  */
13783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13784 choke me
13785 #else
13786 f = $ac_func;
13787 #endif
13788
13789   ;
13790   return 0;
13791 }
13792 _ACEOF
13793 rm -f conftest.$ac_objext conftest$ac_exeext
13794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13795   (eval $ac_link) 2>&5
13796   ac_status=$?
13797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798   (exit $ac_status); } &&
13799          { ac_try='test -s conftest$ac_exeext'
13800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801   (eval $ac_try) 2>&5
13802   ac_status=$?
13803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804   (exit $ac_status); }; }; then
13805   eval "$as_ac_var=yes"
13806 else
13807   echo "$as_me: failed program was:" >&5
13808 cat conftest.$ac_ext >&5
13809 eval "$as_ac_var=no"
13810 fi
13811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13812 fi
13813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13815 if test `eval echo '${'$as_ac_var'}'` = yes; then
13816   cat >>confdefs.h <<_ACEOF
13817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13818 _ACEOF
13819
13820 fi
13821 done
13822
13823   ;;
13824   esac
13825
13826
13827 # UnixWare 7.x has its getspnam in -lgen
13828 case "$LIBS" in
13829   *-lgen*)
13830 for ac_func in getspnam
13831 do
13832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13833 echo "$as_me:$LINENO: checking for $ac_func" >&5
13834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13835 if eval "test \"\${$as_ac_var+set}\" = set"; then
13836   echo $ECHO_N "(cached) $ECHO_C" >&6
13837 else
13838   cat >conftest.$ac_ext <<_ACEOF
13839 #line $LINENO "configure"
13840 #include "confdefs.h"
13841 /* System header to define __stub macros and hopefully few prototypes,
13842     which can conflict with char $ac_func (); below.  */
13843 #include <assert.h>
13844 /* Override any gcc2 internal prototype to avoid an error.  */
13845 #ifdef __cplusplus
13846 extern "C"
13847 #endif
13848 /* We use char because int might match the return type of a gcc2
13849    builtin and then its argument prototype would still apply.  */
13850 char $ac_func ();
13851 char (*f) ();
13852
13853 int
13854 main ()
13855 {
13856 /* The GNU C library defines this for functions which it implements
13857     to always fail with ENOSYS.  Some functions are actually named
13858     something starting with __ and the normal name is an alias.  */
13859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13860 choke me
13861 #else
13862 f = $ac_func;
13863 #endif
13864
13865   ;
13866   return 0;
13867 }
13868 _ACEOF
13869 rm -f conftest.$ac_objext conftest$ac_exeext
13870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13871   (eval $ac_link) 2>&5
13872   ac_status=$?
13873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874   (exit $ac_status); } &&
13875          { ac_try='test -s conftest$ac_exeext'
13876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877   (eval $ac_try) 2>&5
13878   ac_status=$?
13879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880   (exit $ac_status); }; }; then
13881   eval "$as_ac_var=yes"
13882 else
13883   echo "$as_me: failed program was:" >&5
13884 cat conftest.$ac_ext >&5
13885 eval "$as_ac_var=no"
13886 fi
13887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13888 fi
13889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13891 if test `eval echo '${'$as_ac_var'}'` = yes; then
13892   cat >>confdefs.h <<_ACEOF
13893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13894 _ACEOF
13895
13896 fi
13897 done
13898  ;;
13899   *)
13900 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
13901 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
13902 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
13903   echo $ECHO_N "(cached) $ECHO_C" >&6
13904 else
13905   ac_check_lib_save_LIBS=$LIBS
13906 LIBS="-lgen  $LIBS"
13907 cat >conftest.$ac_ext <<_ACEOF
13908 #line $LINENO "configure"
13909 #include "confdefs.h"
13910
13911 /* Override any gcc2 internal prototype to avoid an error.  */
13912 #ifdef __cplusplus
13913 extern "C"
13914 #endif
13915 /* We use char because int might match the return type of a gcc2
13916    builtin and then its argument prototype would still apply.  */
13917 char getspnam ();
13918 int
13919 main ()
13920 {
13921 getspnam ();
13922   ;
13923   return 0;
13924 }
13925 _ACEOF
13926 rm -f conftest.$ac_objext conftest$ac_exeext
13927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13928   (eval $ac_link) 2>&5
13929   ac_status=$?
13930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931   (exit $ac_status); } &&
13932          { ac_try='test -s conftest$ac_exeext'
13933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13934   (eval $ac_try) 2>&5
13935   ac_status=$?
13936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937   (exit $ac_status); }; }; then
13938   ac_cv_lib_gen_getspnam=yes
13939 else
13940   echo "$as_me: failed program was:" >&5
13941 cat conftest.$ac_ext >&5
13942 ac_cv_lib_gen_getspnam=no
13943 fi
13944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13945 LIBS=$ac_check_lib_save_LIBS
13946 fi
13947 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
13948 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
13949 if test $ac_cv_lib_gen_getspnam = yes; then
13950   cat >>confdefs.h <<_ACEOF
13951 #define HAVE_LIBGEN 1
13952 _ACEOF
13953
13954   LIBS="-lgen $LIBS"
13955
13956 fi
13957
13958
13959 for ac_func in getspnam
13960 do
13961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13962 echo "$as_me:$LINENO: checking for $ac_func" >&5
13963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13964 if eval "test \"\${$as_ac_var+set}\" = set"; then
13965   echo $ECHO_N "(cached) $ECHO_C" >&6
13966 else
13967   cat >conftest.$ac_ext <<_ACEOF
13968 #line $LINENO "configure"
13969 #include "confdefs.h"
13970 /* System header to define __stub macros and hopefully few prototypes,
13971     which can conflict with char $ac_func (); below.  */
13972 #include <assert.h>
13973 /* Override any gcc2 internal prototype to avoid an error.  */
13974 #ifdef __cplusplus
13975 extern "C"
13976 #endif
13977 /* We use char because int might match the return type of a gcc2
13978    builtin and then its argument prototype would still apply.  */
13979 char $ac_func ();
13980 char (*f) ();
13981
13982 int
13983 main ()
13984 {
13985 /* The GNU C library defines this for functions which it implements
13986     to always fail with ENOSYS.  Some functions are actually named
13987     something starting with __ and the normal name is an alias.  */
13988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13989 choke me
13990 #else
13991 f = $ac_func;
13992 #endif
13993
13994   ;
13995   return 0;
13996 }
13997 _ACEOF
13998 rm -f conftest.$ac_objext conftest$ac_exeext
13999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14000   (eval $ac_link) 2>&5
14001   ac_status=$?
14002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003   (exit $ac_status); } &&
14004          { ac_try='test -s conftest$ac_exeext'
14005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006   (eval $ac_try) 2>&5
14007   ac_status=$?
14008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009   (exit $ac_status); }; }; then
14010   eval "$as_ac_var=yes"
14011 else
14012   echo "$as_me: failed program was:" >&5
14013 cat conftest.$ac_ext >&5
14014 eval "$as_ac_var=no"
14015 fi
14016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14017 fi
14018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14020 if test `eval echo '${'$as_ac_var'}'` = yes; then
14021   cat >>confdefs.h <<_ACEOF
14022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14023 _ACEOF
14024
14025 fi
14026 done
14027
14028   ;;
14029   esac
14030
14031
14032 case "$LIBS" in
14033   *-lsecurity*)
14034 for ac_func in getspnam
14035 do
14036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14037 echo "$as_me:$LINENO: checking for $ac_func" >&5
14038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14039 if eval "test \"\${$as_ac_var+set}\" = set"; then
14040   echo $ECHO_N "(cached) $ECHO_C" >&6
14041 else
14042   cat >conftest.$ac_ext <<_ACEOF
14043 #line $LINENO "configure"
14044 #include "confdefs.h"
14045 /* System header to define __stub macros and hopefully few prototypes,
14046     which can conflict with char $ac_func (); below.  */
14047 #include <assert.h>
14048 /* Override any gcc2 internal prototype to avoid an error.  */
14049 #ifdef __cplusplus
14050 extern "C"
14051 #endif
14052 /* We use char because int might match the return type of a gcc2
14053    builtin and then its argument prototype would still apply.  */
14054 char $ac_func ();
14055 char (*f) ();
14056
14057 int
14058 main ()
14059 {
14060 /* The GNU C library defines this for functions which it implements
14061     to always fail with ENOSYS.  Some functions are actually named
14062     something starting with __ and the normal name is an alias.  */
14063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14064 choke me
14065 #else
14066 f = $ac_func;
14067 #endif
14068
14069   ;
14070   return 0;
14071 }
14072 _ACEOF
14073 rm -f conftest.$ac_objext conftest$ac_exeext
14074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14075   (eval $ac_link) 2>&5
14076   ac_status=$?
14077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078   (exit $ac_status); } &&
14079          { ac_try='test -s conftest$ac_exeext'
14080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14081   (eval $ac_try) 2>&5
14082   ac_status=$?
14083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084   (exit $ac_status); }; }; then
14085   eval "$as_ac_var=yes"
14086 else
14087   echo "$as_me: failed program was:" >&5
14088 cat conftest.$ac_ext >&5
14089 eval "$as_ac_var=no"
14090 fi
14091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14092 fi
14093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14095 if test `eval echo '${'$as_ac_var'}'` = yes; then
14096   cat >>confdefs.h <<_ACEOF
14097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14098 _ACEOF
14099
14100 fi
14101 done
14102  ;;
14103   *)
14104 echo "$as_me:$LINENO: checking for getspnam in -lsecurity" >&5
14105 echo $ECHO_N "checking for getspnam in -lsecurity... $ECHO_C" >&6
14106 if test "${ac_cv_lib_security_getspnam+set}" = set; then
14107   echo $ECHO_N "(cached) $ECHO_C" >&6
14108 else
14109   ac_check_lib_save_LIBS=$LIBS
14110 LIBS="-lsecurity  $LIBS"
14111 cat >conftest.$ac_ext <<_ACEOF
14112 #line $LINENO "configure"
14113 #include "confdefs.h"
14114
14115 /* Override any gcc2 internal prototype to avoid an error.  */
14116 #ifdef __cplusplus
14117 extern "C"
14118 #endif
14119 /* We use char because int might match the return type of a gcc2
14120    builtin and then its argument prototype would still apply.  */
14121 char getspnam ();
14122 int
14123 main ()
14124 {
14125 getspnam ();
14126   ;
14127   return 0;
14128 }
14129 _ACEOF
14130 rm -f conftest.$ac_objext conftest$ac_exeext
14131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14132   (eval $ac_link) 2>&5
14133   ac_status=$?
14134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135   (exit $ac_status); } &&
14136          { ac_try='test -s conftest$ac_exeext'
14137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138   (eval $ac_try) 2>&5
14139   ac_status=$?
14140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141   (exit $ac_status); }; }; then
14142   ac_cv_lib_security_getspnam=yes
14143 else
14144   echo "$as_me: failed program was:" >&5
14145 cat conftest.$ac_ext >&5
14146 ac_cv_lib_security_getspnam=no
14147 fi
14148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14149 LIBS=$ac_check_lib_save_LIBS
14150 fi
14151 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getspnam" >&5
14152 echo "${ECHO_T}$ac_cv_lib_security_getspnam" >&6
14153 if test $ac_cv_lib_security_getspnam = yes; then
14154   cat >>confdefs.h <<_ACEOF
14155 #define HAVE_LIBSECURITY 1
14156 _ACEOF
14157
14158   LIBS="-lsecurity $LIBS"
14159
14160 fi
14161
14162
14163 for ac_func in getspnam
14164 do
14165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14166 echo "$as_me:$LINENO: checking for $ac_func" >&5
14167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14168 if eval "test \"\${$as_ac_var+set}\" = set"; then
14169   echo $ECHO_N "(cached) $ECHO_C" >&6
14170 else
14171   cat >conftest.$ac_ext <<_ACEOF
14172 #line $LINENO "configure"
14173 #include "confdefs.h"
14174 /* System header to define __stub macros and hopefully few prototypes,
14175     which can conflict with char $ac_func (); below.  */
14176 #include <assert.h>
14177 /* Override any gcc2 internal prototype to avoid an error.  */
14178 #ifdef __cplusplus
14179 extern "C"
14180 #endif
14181 /* We use char because int might match the return type of a gcc2
14182    builtin and then its argument prototype would still apply.  */
14183 char $ac_func ();
14184 char (*f) ();
14185
14186 int
14187 main ()
14188 {
14189 /* The GNU C library defines this for functions which it implements
14190     to always fail with ENOSYS.  Some functions are actually named
14191     something starting with __ and the normal name is an alias.  */
14192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14193 choke me
14194 #else
14195 f = $ac_func;
14196 #endif
14197
14198   ;
14199   return 0;
14200 }
14201 _ACEOF
14202 rm -f conftest.$ac_objext conftest$ac_exeext
14203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14204   (eval $ac_link) 2>&5
14205   ac_status=$?
14206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207   (exit $ac_status); } &&
14208          { ac_try='test -s conftest$ac_exeext'
14209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14210   (eval $ac_try) 2>&5
14211   ac_status=$?
14212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213   (exit $ac_status); }; }; then
14214   eval "$as_ac_var=yes"
14215 else
14216   echo "$as_me: failed program was:" >&5
14217 cat conftest.$ac_ext >&5
14218 eval "$as_ac_var=no"
14219 fi
14220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14221 fi
14222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14224 if test `eval echo '${'$as_ac_var'}'` = yes; then
14225   cat >>confdefs.h <<_ACEOF
14226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14227 _ACEOF
14228
14229 fi
14230 done
14231
14232   ;;
14233   esac
14234
14235 case "$LIBS" in
14236   *-lsec*)
14237 for ac_func in getspnam
14238 do
14239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14240 echo "$as_me:$LINENO: checking for $ac_func" >&5
14241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14242 if eval "test \"\${$as_ac_var+set}\" = set"; then
14243   echo $ECHO_N "(cached) $ECHO_C" >&6
14244 else
14245   cat >conftest.$ac_ext <<_ACEOF
14246 #line $LINENO "configure"
14247 #include "confdefs.h"
14248 /* System header to define __stub macros and hopefully few prototypes,
14249     which can conflict with char $ac_func (); below.  */
14250 #include <assert.h>
14251 /* Override any gcc2 internal prototype to avoid an error.  */
14252 #ifdef __cplusplus
14253 extern "C"
14254 #endif
14255 /* We use char because int might match the return type of a gcc2
14256    builtin and then its argument prototype would still apply.  */
14257 char $ac_func ();
14258 char (*f) ();
14259
14260 int
14261 main ()
14262 {
14263 /* The GNU C library defines this for functions which it implements
14264     to always fail with ENOSYS.  Some functions are actually named
14265     something starting with __ and the normal name is an alias.  */
14266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14267 choke me
14268 #else
14269 f = $ac_func;
14270 #endif
14271
14272   ;
14273   return 0;
14274 }
14275 _ACEOF
14276 rm -f conftest.$ac_objext conftest$ac_exeext
14277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14278   (eval $ac_link) 2>&5
14279   ac_status=$?
14280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281   (exit $ac_status); } &&
14282          { ac_try='test -s conftest$ac_exeext'
14283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284   (eval $ac_try) 2>&5
14285   ac_status=$?
14286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287   (exit $ac_status); }; }; then
14288   eval "$as_ac_var=yes"
14289 else
14290   echo "$as_me: failed program was:" >&5
14291 cat conftest.$ac_ext >&5
14292 eval "$as_ac_var=no"
14293 fi
14294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14295 fi
14296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14298 if test `eval echo '${'$as_ac_var'}'` = yes; then
14299   cat >>confdefs.h <<_ACEOF
14300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14301 _ACEOF
14302
14303 fi
14304 done
14305  ;;
14306   *)
14307 echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
14308 echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
14309 if test "${ac_cv_lib_sec_getspnam+set}" = set; then
14310   echo $ECHO_N "(cached) $ECHO_C" >&6
14311 else
14312   ac_check_lib_save_LIBS=$LIBS
14313 LIBS="-lsec  $LIBS"
14314 cat >conftest.$ac_ext <<_ACEOF
14315 #line $LINENO "configure"
14316 #include "confdefs.h"
14317
14318 /* Override any gcc2 internal prototype to avoid an error.  */
14319 #ifdef __cplusplus
14320 extern "C"
14321 #endif
14322 /* We use char because int might match the return type of a gcc2
14323    builtin and then its argument prototype would still apply.  */
14324 char getspnam ();
14325 int
14326 main ()
14327 {
14328 getspnam ();
14329   ;
14330   return 0;
14331 }
14332 _ACEOF
14333 rm -f conftest.$ac_objext conftest$ac_exeext
14334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14335   (eval $ac_link) 2>&5
14336   ac_status=$?
14337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338   (exit $ac_status); } &&
14339          { ac_try='test -s conftest$ac_exeext'
14340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14341   (eval $ac_try) 2>&5
14342   ac_status=$?
14343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344   (exit $ac_status); }; }; then
14345   ac_cv_lib_sec_getspnam=yes
14346 else
14347   echo "$as_me: failed program was:" >&5
14348 cat conftest.$ac_ext >&5
14349 ac_cv_lib_sec_getspnam=no
14350 fi
14351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14352 LIBS=$ac_check_lib_save_LIBS
14353 fi
14354 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
14355 echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
14356 if test $ac_cv_lib_sec_getspnam = yes; then
14357   cat >>confdefs.h <<_ACEOF
14358 #define HAVE_LIBSEC 1
14359 _ACEOF
14360
14361   LIBS="-lsec $LIBS"
14362
14363 fi
14364
14365
14366 for ac_func in getspnam
14367 do
14368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14369 echo "$as_me:$LINENO: checking for $ac_func" >&5
14370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14371 if eval "test \"\${$as_ac_var+set}\" = set"; then
14372   echo $ECHO_N "(cached) $ECHO_C" >&6
14373 else
14374   cat >conftest.$ac_ext <<_ACEOF
14375 #line $LINENO "configure"
14376 #include "confdefs.h"
14377 /* System header to define __stub macros and hopefully few prototypes,
14378     which can conflict with char $ac_func (); below.  */
14379 #include <assert.h>
14380 /* Override any gcc2 internal prototype to avoid an error.  */
14381 #ifdef __cplusplus
14382 extern "C"
14383 #endif
14384 /* We use char because int might match the return type of a gcc2
14385    builtin and then its argument prototype would still apply.  */
14386 char $ac_func ();
14387 char (*f) ();
14388
14389 int
14390 main ()
14391 {
14392 /* The GNU C library defines this for functions which it implements
14393     to always fail with ENOSYS.  Some functions are actually named
14394     something starting with __ and the normal name is an alias.  */
14395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14396 choke me
14397 #else
14398 f = $ac_func;
14399 #endif
14400
14401   ;
14402   return 0;
14403 }
14404 _ACEOF
14405 rm -f conftest.$ac_objext conftest$ac_exeext
14406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14407   (eval $ac_link) 2>&5
14408   ac_status=$?
14409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410   (exit $ac_status); } &&
14411          { ac_try='test -s conftest$ac_exeext'
14412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413   (eval $ac_try) 2>&5
14414   ac_status=$?
14415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416   (exit $ac_status); }; }; then
14417   eval "$as_ac_var=yes"
14418 else
14419   echo "$as_me: failed program was:" >&5
14420 cat conftest.$ac_ext >&5
14421 eval "$as_ac_var=no"
14422 fi
14423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14424 fi
14425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14427 if test `eval echo '${'$as_ac_var'}'` = yes; then
14428   cat >>confdefs.h <<_ACEOF
14429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14430 _ACEOF
14431
14432 fi
14433 done
14434
14435   ;;
14436   esac
14437
14438
14439 case "$LIBS" in
14440   *-lsecurity*)
14441 for ac_func in bigcrypt
14442 do
14443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14444 echo "$as_me:$LINENO: checking for $ac_func" >&5
14445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14446 if eval "test \"\${$as_ac_var+set}\" = set"; then
14447   echo $ECHO_N "(cached) $ECHO_C" >&6
14448 else
14449   cat >conftest.$ac_ext <<_ACEOF
14450 #line $LINENO "configure"
14451 #include "confdefs.h"
14452 /* System header to define __stub macros and hopefully few prototypes,
14453     which can conflict with char $ac_func (); below.  */
14454 #include <assert.h>
14455 /* Override any gcc2 internal prototype to avoid an error.  */
14456 #ifdef __cplusplus
14457 extern "C"
14458 #endif
14459 /* We use char because int might match the return type of a gcc2
14460    builtin and then its argument prototype would still apply.  */
14461 char $ac_func ();
14462 char (*f) ();
14463
14464 int
14465 main ()
14466 {
14467 /* The GNU C library defines this for functions which it implements
14468     to always fail with ENOSYS.  Some functions are actually named
14469     something starting with __ and the normal name is an alias.  */
14470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14471 choke me
14472 #else
14473 f = $ac_func;
14474 #endif
14475
14476   ;
14477   return 0;
14478 }
14479 _ACEOF
14480 rm -f conftest.$ac_objext conftest$ac_exeext
14481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14482   (eval $ac_link) 2>&5
14483   ac_status=$?
14484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485   (exit $ac_status); } &&
14486          { ac_try='test -s conftest$ac_exeext'
14487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488   (eval $ac_try) 2>&5
14489   ac_status=$?
14490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491   (exit $ac_status); }; }; then
14492   eval "$as_ac_var=yes"
14493 else
14494   echo "$as_me: failed program was:" >&5
14495 cat conftest.$ac_ext >&5
14496 eval "$as_ac_var=no"
14497 fi
14498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14499 fi
14500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14501 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14502 if test `eval echo '${'$as_ac_var'}'` = yes; then
14503   cat >>confdefs.h <<_ACEOF
14504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14505 _ACEOF
14506
14507 fi
14508 done
14509  ;;
14510   *)
14511 echo "$as_me:$LINENO: checking for bigcrypt in -lsecurity" >&5
14512 echo $ECHO_N "checking for bigcrypt in -lsecurity... $ECHO_C" >&6
14513 if test "${ac_cv_lib_security_bigcrypt+set}" = set; then
14514   echo $ECHO_N "(cached) $ECHO_C" >&6
14515 else
14516   ac_check_lib_save_LIBS=$LIBS
14517 LIBS="-lsecurity  $LIBS"
14518 cat >conftest.$ac_ext <<_ACEOF
14519 #line $LINENO "configure"
14520 #include "confdefs.h"
14521
14522 /* Override any gcc2 internal prototype to avoid an error.  */
14523 #ifdef __cplusplus
14524 extern "C"
14525 #endif
14526 /* We use char because int might match the return type of a gcc2
14527    builtin and then its argument prototype would still apply.  */
14528 char bigcrypt ();
14529 int
14530 main ()
14531 {
14532 bigcrypt ();
14533   ;
14534   return 0;
14535 }
14536 _ACEOF
14537 rm -f conftest.$ac_objext conftest$ac_exeext
14538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14539   (eval $ac_link) 2>&5
14540   ac_status=$?
14541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542   (exit $ac_status); } &&
14543          { ac_try='test -s conftest$ac_exeext'
14544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545   (eval $ac_try) 2>&5
14546   ac_status=$?
14547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548   (exit $ac_status); }; }; then
14549   ac_cv_lib_security_bigcrypt=yes
14550 else
14551   echo "$as_me: failed program was:" >&5
14552 cat conftest.$ac_ext >&5
14553 ac_cv_lib_security_bigcrypt=no
14554 fi
14555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14556 LIBS=$ac_check_lib_save_LIBS
14557 fi
14558 echo "$as_me:$LINENO: result: $ac_cv_lib_security_bigcrypt" >&5
14559 echo "${ECHO_T}$ac_cv_lib_security_bigcrypt" >&6
14560 if test $ac_cv_lib_security_bigcrypt = yes; then
14561   cat >>confdefs.h <<_ACEOF
14562 #define HAVE_LIBSECURITY 1
14563 _ACEOF
14564
14565   LIBS="-lsecurity $LIBS"
14566
14567 fi
14568
14569
14570 for ac_func in bigcrypt
14571 do
14572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14573 echo "$as_me:$LINENO: checking for $ac_func" >&5
14574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14575 if eval "test \"\${$as_ac_var+set}\" = set"; then
14576   echo $ECHO_N "(cached) $ECHO_C" >&6
14577 else
14578   cat >conftest.$ac_ext <<_ACEOF
14579 #line $LINENO "configure"
14580 #include "confdefs.h"
14581 /* System header to define __stub macros and hopefully few prototypes,
14582     which can conflict with char $ac_func (); below.  */
14583 #include <assert.h>
14584 /* Override any gcc2 internal prototype to avoid an error.  */
14585 #ifdef __cplusplus
14586 extern "C"
14587 #endif
14588 /* We use char because int might match the return type of a gcc2
14589    builtin and then its argument prototype would still apply.  */
14590 char $ac_func ();
14591 char (*f) ();
14592
14593 int
14594 main ()
14595 {
14596 /* The GNU C library defines this for functions which it implements
14597     to always fail with ENOSYS.  Some functions are actually named
14598     something starting with __ and the normal name is an alias.  */
14599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14600 choke me
14601 #else
14602 f = $ac_func;
14603 #endif
14604
14605   ;
14606   return 0;
14607 }
14608 _ACEOF
14609 rm -f conftest.$ac_objext conftest$ac_exeext
14610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14611   (eval $ac_link) 2>&5
14612   ac_status=$?
14613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614   (exit $ac_status); } &&
14615          { ac_try='test -s conftest$ac_exeext'
14616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617   (eval $ac_try) 2>&5
14618   ac_status=$?
14619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620   (exit $ac_status); }; }; then
14621   eval "$as_ac_var=yes"
14622 else
14623   echo "$as_me: failed program was:" >&5
14624 cat conftest.$ac_ext >&5
14625 eval "$as_ac_var=no"
14626 fi
14627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14628 fi
14629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14631 if test `eval echo '${'$as_ac_var'}'` = yes; then
14632   cat >>confdefs.h <<_ACEOF
14633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14634 _ACEOF
14635
14636 fi
14637 done
14638
14639   ;;
14640   esac
14641
14642 case "$LIBS" in
14643   *-lsec*)
14644 for ac_func in bigcrypt
14645 do
14646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14647 echo "$as_me:$LINENO: checking for $ac_func" >&5
14648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14649 if eval "test \"\${$as_ac_var+set}\" = set"; then
14650   echo $ECHO_N "(cached) $ECHO_C" >&6
14651 else
14652   cat >conftest.$ac_ext <<_ACEOF
14653 #line $LINENO "configure"
14654 #include "confdefs.h"
14655 /* System header to define __stub macros and hopefully few prototypes,
14656     which can conflict with char $ac_func (); below.  */
14657 #include <assert.h>
14658 /* Override any gcc2 internal prototype to avoid an error.  */
14659 #ifdef __cplusplus
14660 extern "C"
14661 #endif
14662 /* We use char because int might match the return type of a gcc2
14663    builtin and then its argument prototype would still apply.  */
14664 char $ac_func ();
14665 char (*f) ();
14666
14667 int
14668 main ()
14669 {
14670 /* The GNU C library defines this for functions which it implements
14671     to always fail with ENOSYS.  Some functions are actually named
14672     something starting with __ and the normal name is an alias.  */
14673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14674 choke me
14675 #else
14676 f = $ac_func;
14677 #endif
14678
14679   ;
14680   return 0;
14681 }
14682 _ACEOF
14683 rm -f conftest.$ac_objext conftest$ac_exeext
14684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14685   (eval $ac_link) 2>&5
14686   ac_status=$?
14687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688   (exit $ac_status); } &&
14689          { ac_try='test -s conftest$ac_exeext'
14690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14691   (eval $ac_try) 2>&5
14692   ac_status=$?
14693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694   (exit $ac_status); }; }; then
14695   eval "$as_ac_var=yes"
14696 else
14697   echo "$as_me: failed program was:" >&5
14698 cat conftest.$ac_ext >&5
14699 eval "$as_ac_var=no"
14700 fi
14701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14702 fi
14703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14705 if test `eval echo '${'$as_ac_var'}'` = yes; then
14706   cat >>confdefs.h <<_ACEOF
14707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14708 _ACEOF
14709
14710 fi
14711 done
14712  ;;
14713   *)
14714 echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
14715 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
14716 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
14717   echo $ECHO_N "(cached) $ECHO_C" >&6
14718 else
14719   ac_check_lib_save_LIBS=$LIBS
14720 LIBS="-lsec  $LIBS"
14721 cat >conftest.$ac_ext <<_ACEOF
14722 #line $LINENO "configure"
14723 #include "confdefs.h"
14724
14725 /* Override any gcc2 internal prototype to avoid an error.  */
14726 #ifdef __cplusplus
14727 extern "C"
14728 #endif
14729 /* We use char because int might match the return type of a gcc2
14730    builtin and then its argument prototype would still apply.  */
14731 char bigcrypt ();
14732 int
14733 main ()
14734 {
14735 bigcrypt ();
14736   ;
14737   return 0;
14738 }
14739 _ACEOF
14740 rm -f conftest.$ac_objext conftest$ac_exeext
14741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14742   (eval $ac_link) 2>&5
14743   ac_status=$?
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); } &&
14746          { ac_try='test -s conftest$ac_exeext'
14747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748   (eval $ac_try) 2>&5
14749   ac_status=$?
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); }; }; then
14752   ac_cv_lib_sec_bigcrypt=yes
14753 else
14754   echo "$as_me: failed program was:" >&5
14755 cat conftest.$ac_ext >&5
14756 ac_cv_lib_sec_bigcrypt=no
14757 fi
14758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14759 LIBS=$ac_check_lib_save_LIBS
14760 fi
14761 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
14762 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
14763 if test $ac_cv_lib_sec_bigcrypt = yes; then
14764   cat >>confdefs.h <<_ACEOF
14765 #define HAVE_LIBSEC 1
14766 _ACEOF
14767
14768   LIBS="-lsec $LIBS"
14769
14770 fi
14771
14772
14773 for ac_func in bigcrypt
14774 do
14775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14776 echo "$as_me:$LINENO: checking for $ac_func" >&5
14777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14778 if eval "test \"\${$as_ac_var+set}\" = set"; then
14779   echo $ECHO_N "(cached) $ECHO_C" >&6
14780 else
14781   cat >conftest.$ac_ext <<_ACEOF
14782 #line $LINENO "configure"
14783 #include "confdefs.h"
14784 /* System header to define __stub macros and hopefully few prototypes,
14785     which can conflict with char $ac_func (); below.  */
14786 #include <assert.h>
14787 /* Override any gcc2 internal prototype to avoid an error.  */
14788 #ifdef __cplusplus
14789 extern "C"
14790 #endif
14791 /* We use char because int might match the return type of a gcc2
14792    builtin and then its argument prototype would still apply.  */
14793 char $ac_func ();
14794 char (*f) ();
14795
14796 int
14797 main ()
14798 {
14799 /* The GNU C library defines this for functions which it implements
14800     to always fail with ENOSYS.  Some functions are actually named
14801     something starting with __ and the normal name is an alias.  */
14802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14803 choke me
14804 #else
14805 f = $ac_func;
14806 #endif
14807
14808   ;
14809   return 0;
14810 }
14811 _ACEOF
14812 rm -f conftest.$ac_objext conftest$ac_exeext
14813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14814   (eval $ac_link) 2>&5
14815   ac_status=$?
14816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817   (exit $ac_status); } &&
14818          { ac_try='test -s conftest$ac_exeext'
14819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820   (eval $ac_try) 2>&5
14821   ac_status=$?
14822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); }; }; then
14824   eval "$as_ac_var=yes"
14825 else
14826   echo "$as_me: failed program was:" >&5
14827 cat conftest.$ac_ext >&5
14828 eval "$as_ac_var=no"
14829 fi
14830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14831 fi
14832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14833 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14834 if test `eval echo '${'$as_ac_var'}'` = yes; then
14835   cat >>confdefs.h <<_ACEOF
14836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14837 _ACEOF
14838
14839 fi
14840 done
14841
14842   ;;
14843   esac
14844
14845
14846 case "$LIBS" in
14847   *-lsecurity*)
14848 for ac_func in getprpwnam
14849 do
14850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14851 echo "$as_me:$LINENO: checking for $ac_func" >&5
14852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14853 if eval "test \"\${$as_ac_var+set}\" = set"; then
14854   echo $ECHO_N "(cached) $ECHO_C" >&6
14855 else
14856   cat >conftest.$ac_ext <<_ACEOF
14857 #line $LINENO "configure"
14858 #include "confdefs.h"
14859 /* System header to define __stub macros and hopefully few prototypes,
14860     which can conflict with char $ac_func (); below.  */
14861 #include <assert.h>
14862 /* Override any gcc2 internal prototype to avoid an error.  */
14863 #ifdef __cplusplus
14864 extern "C"
14865 #endif
14866 /* We use char because int might match the return type of a gcc2
14867    builtin and then its argument prototype would still apply.  */
14868 char $ac_func ();
14869 char (*f) ();
14870
14871 int
14872 main ()
14873 {
14874 /* The GNU C library defines this for functions which it implements
14875     to always fail with ENOSYS.  Some functions are actually named
14876     something starting with __ and the normal name is an alias.  */
14877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14878 choke me
14879 #else
14880 f = $ac_func;
14881 #endif
14882
14883   ;
14884   return 0;
14885 }
14886 _ACEOF
14887 rm -f conftest.$ac_objext conftest$ac_exeext
14888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14889   (eval $ac_link) 2>&5
14890   ac_status=$?
14891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892   (exit $ac_status); } &&
14893          { ac_try='test -s conftest$ac_exeext'
14894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895   (eval $ac_try) 2>&5
14896   ac_status=$?
14897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898   (exit $ac_status); }; }; then
14899   eval "$as_ac_var=yes"
14900 else
14901   echo "$as_me: failed program was:" >&5
14902 cat conftest.$ac_ext >&5
14903 eval "$as_ac_var=no"
14904 fi
14905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14906 fi
14907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14909 if test `eval echo '${'$as_ac_var'}'` = yes; then
14910   cat >>confdefs.h <<_ACEOF
14911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14912 _ACEOF
14913
14914 fi
14915 done
14916  ;;
14917   *)
14918 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
14919 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
14920 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
14921   echo $ECHO_N "(cached) $ECHO_C" >&6
14922 else
14923   ac_check_lib_save_LIBS=$LIBS
14924 LIBS="-lsecurity  $LIBS"
14925 cat >conftest.$ac_ext <<_ACEOF
14926 #line $LINENO "configure"
14927 #include "confdefs.h"
14928
14929 /* Override any gcc2 internal prototype to avoid an error.  */
14930 #ifdef __cplusplus
14931 extern "C"
14932 #endif
14933 /* We use char because int might match the return type of a gcc2
14934    builtin and then its argument prototype would still apply.  */
14935 char getprpwnam ();
14936 int
14937 main ()
14938 {
14939 getprpwnam ();
14940   ;
14941   return 0;
14942 }
14943 _ACEOF
14944 rm -f conftest.$ac_objext conftest$ac_exeext
14945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14946   (eval $ac_link) 2>&5
14947   ac_status=$?
14948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949   (exit $ac_status); } &&
14950          { ac_try='test -s conftest$ac_exeext'
14951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952   (eval $ac_try) 2>&5
14953   ac_status=$?
14954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955   (exit $ac_status); }; }; then
14956   ac_cv_lib_security_getprpwnam=yes
14957 else
14958   echo "$as_me: failed program was:" >&5
14959 cat conftest.$ac_ext >&5
14960 ac_cv_lib_security_getprpwnam=no
14961 fi
14962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14963 LIBS=$ac_check_lib_save_LIBS
14964 fi
14965 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
14966 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
14967 if test $ac_cv_lib_security_getprpwnam = yes; then
14968   cat >>confdefs.h <<_ACEOF
14969 #define HAVE_LIBSECURITY 1
14970 _ACEOF
14971
14972   LIBS="-lsecurity $LIBS"
14973
14974 fi
14975
14976
14977 for ac_func in getprpwnam
14978 do
14979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14980 echo "$as_me:$LINENO: checking for $ac_func" >&5
14981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14982 if eval "test \"\${$as_ac_var+set}\" = set"; then
14983   echo $ECHO_N "(cached) $ECHO_C" >&6
14984 else
14985   cat >conftest.$ac_ext <<_ACEOF
14986 #line $LINENO "configure"
14987 #include "confdefs.h"
14988 /* System header to define __stub macros and hopefully few prototypes,
14989     which can conflict with char $ac_func (); below.  */
14990 #include <assert.h>
14991 /* Override any gcc2 internal prototype to avoid an error.  */
14992 #ifdef __cplusplus
14993 extern "C"
14994 #endif
14995 /* We use char because int might match the return type of a gcc2
14996    builtin and then its argument prototype would still apply.  */
14997 char $ac_func ();
14998 char (*f) ();
14999
15000 int
15001 main ()
15002 {
15003 /* The GNU C library defines this for functions which it implements
15004     to always fail with ENOSYS.  Some functions are actually named
15005     something starting with __ and the normal name is an alias.  */
15006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15007 choke me
15008 #else
15009 f = $ac_func;
15010 #endif
15011
15012   ;
15013   return 0;
15014 }
15015 _ACEOF
15016 rm -f conftest.$ac_objext conftest$ac_exeext
15017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15018   (eval $ac_link) 2>&5
15019   ac_status=$?
15020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021   (exit $ac_status); } &&
15022          { ac_try='test -s conftest$ac_exeext'
15023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15024   (eval $ac_try) 2>&5
15025   ac_status=$?
15026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027   (exit $ac_status); }; }; then
15028   eval "$as_ac_var=yes"
15029 else
15030   echo "$as_me: failed program was:" >&5
15031 cat conftest.$ac_ext >&5
15032 eval "$as_ac_var=no"
15033 fi
15034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15035 fi
15036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15038 if test `eval echo '${'$as_ac_var'}'` = yes; then
15039   cat >>confdefs.h <<_ACEOF
15040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15041 _ACEOF
15042
15043 fi
15044 done
15045
15046   ;;
15047   esac
15048
15049 case "$LIBS" in
15050   *-lsec*)
15051 for ac_func in getprpwnam
15052 do
15053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15054 echo "$as_me:$LINENO: checking for $ac_func" >&5
15055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15056 if eval "test \"\${$as_ac_var+set}\" = set"; then
15057   echo $ECHO_N "(cached) $ECHO_C" >&6
15058 else
15059   cat >conftest.$ac_ext <<_ACEOF
15060 #line $LINENO "configure"
15061 #include "confdefs.h"
15062 /* System header to define __stub macros and hopefully few prototypes,
15063     which can conflict with char $ac_func (); below.  */
15064 #include <assert.h>
15065 /* Override any gcc2 internal prototype to avoid an error.  */
15066 #ifdef __cplusplus
15067 extern "C"
15068 #endif
15069 /* We use char because int might match the return type of a gcc2
15070    builtin and then its argument prototype would still apply.  */
15071 char $ac_func ();
15072 char (*f) ();
15073
15074 int
15075 main ()
15076 {
15077 /* The GNU C library defines this for functions which it implements
15078     to always fail with ENOSYS.  Some functions are actually named
15079     something starting with __ and the normal name is an alias.  */
15080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15081 choke me
15082 #else
15083 f = $ac_func;
15084 #endif
15085
15086   ;
15087   return 0;
15088 }
15089 _ACEOF
15090 rm -f conftest.$ac_objext conftest$ac_exeext
15091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15092   (eval $ac_link) 2>&5
15093   ac_status=$?
15094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095   (exit $ac_status); } &&
15096          { ac_try='test -s conftest$ac_exeext'
15097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098   (eval $ac_try) 2>&5
15099   ac_status=$?
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); }; }; then
15102   eval "$as_ac_var=yes"
15103 else
15104   echo "$as_me: failed program was:" >&5
15105 cat conftest.$ac_ext >&5
15106 eval "$as_ac_var=no"
15107 fi
15108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15109 fi
15110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15112 if test `eval echo '${'$as_ac_var'}'` = yes; then
15113   cat >>confdefs.h <<_ACEOF
15114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15115 _ACEOF
15116
15117 fi
15118 done
15119  ;;
15120   *)
15121 echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
15122 echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
15123 if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
15124   echo $ECHO_N "(cached) $ECHO_C" >&6
15125 else
15126   ac_check_lib_save_LIBS=$LIBS
15127 LIBS="-lsec  $LIBS"
15128 cat >conftest.$ac_ext <<_ACEOF
15129 #line $LINENO "configure"
15130 #include "confdefs.h"
15131
15132 /* Override any gcc2 internal prototype to avoid an error.  */
15133 #ifdef __cplusplus
15134 extern "C"
15135 #endif
15136 /* We use char because int might match the return type of a gcc2
15137    builtin and then its argument prototype would still apply.  */
15138 char getprpwnam ();
15139 int
15140 main ()
15141 {
15142 getprpwnam ();
15143   ;
15144   return 0;
15145 }
15146 _ACEOF
15147 rm -f conftest.$ac_objext conftest$ac_exeext
15148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15149   (eval $ac_link) 2>&5
15150   ac_status=$?
15151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152   (exit $ac_status); } &&
15153          { ac_try='test -s conftest$ac_exeext'
15154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155   (eval $ac_try) 2>&5
15156   ac_status=$?
15157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158   (exit $ac_status); }; }; then
15159   ac_cv_lib_sec_getprpwnam=yes
15160 else
15161   echo "$as_me: failed program was:" >&5
15162 cat conftest.$ac_ext >&5
15163 ac_cv_lib_sec_getprpwnam=no
15164 fi
15165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15166 LIBS=$ac_check_lib_save_LIBS
15167 fi
15168 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
15169 echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
15170 if test $ac_cv_lib_sec_getprpwnam = yes; then
15171   cat >>confdefs.h <<_ACEOF
15172 #define HAVE_LIBSEC 1
15173 _ACEOF
15174
15175   LIBS="-lsec $LIBS"
15176
15177 fi
15178
15179
15180 for ac_func in getprpwnam
15181 do
15182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15183 echo "$as_me:$LINENO: checking for $ac_func" >&5
15184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15185 if eval "test \"\${$as_ac_var+set}\" = set"; then
15186   echo $ECHO_N "(cached) $ECHO_C" >&6
15187 else
15188   cat >conftest.$ac_ext <<_ACEOF
15189 #line $LINENO "configure"
15190 #include "confdefs.h"
15191 /* System header to define __stub macros and hopefully few prototypes,
15192     which can conflict with char $ac_func (); below.  */
15193 #include <assert.h>
15194 /* Override any gcc2 internal prototype to avoid an error.  */
15195 #ifdef __cplusplus
15196 extern "C"
15197 #endif
15198 /* We use char because int might match the return type of a gcc2
15199    builtin and then its argument prototype would still apply.  */
15200 char $ac_func ();
15201 char (*f) ();
15202
15203 int
15204 main ()
15205 {
15206 /* The GNU C library defines this for functions which it implements
15207     to always fail with ENOSYS.  Some functions are actually named
15208     something starting with __ and the normal name is an alias.  */
15209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15210 choke me
15211 #else
15212 f = $ac_func;
15213 #endif
15214
15215   ;
15216   return 0;
15217 }
15218 _ACEOF
15219 rm -f conftest.$ac_objext conftest$ac_exeext
15220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15221   (eval $ac_link) 2>&5
15222   ac_status=$?
15223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224   (exit $ac_status); } &&
15225          { ac_try='test -s conftest$ac_exeext'
15226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227   (eval $ac_try) 2>&5
15228   ac_status=$?
15229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230   (exit $ac_status); }; }; then
15231   eval "$as_ac_var=yes"
15232 else
15233   echo "$as_me: failed program was:" >&5
15234 cat conftest.$ac_ext >&5
15235 eval "$as_ac_var=no"
15236 fi
15237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15238 fi
15239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15240 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15241 if test `eval echo '${'$as_ac_var'}'` = yes; then
15242   cat >>confdefs.h <<_ACEOF
15243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15244 _ACEOF
15245
15246 fi
15247 done
15248
15249   ;;
15250   esac
15251
15252
15253 # this bit needs to be modified for each OS that is suported by
15254 # smbwrapper. You need to specify how to created a shared library and
15255 # how to compile C code to produce PIC object files
15256
15257 # these are the defaults, good for lots of systems
15258 HOST_OS="$host_os"
15259 LDSHFLAGS="-shared"
15260 SONAMEFLAG="#"
15261 SHLD="\${CC}"
15262 PICFLAG=""
15263 PICSUFFIX="po"
15264 POBAD_CC="#"
15265 SHLIBEXT="so"
15266 # Assume non-shared by default and override below
15267 BLDSHARED="false"
15268 echo "$as_me:$LINENO: checking ability to build shared libraries" >&5
15269 echo $ECHO_N "checking ability to build shared libraries... $ECHO_C" >&6
15270
15271 # and these are for particular systems
15272 case "$host_os" in
15273                 *linux*)
15274 cat >>confdefs.h <<\_ACEOF
15275 #define LINUX 1
15276 _ACEOF
15277
15278                         BLDSHARED="true"
15279                         LDSHFLAGS="-shared"
15280                         DYNEXP="-Wl,--export-dynamic"
15281                         PICFLAG="-fPIC"
15282                         SONAMEFLAG="-Wl,-soname="
15283                         cat >>confdefs.h <<\_ACEOF
15284 #define STAT_ST_BLOCKSIZE 512
15285 _ACEOF
15286
15287                 ;;
15288                 *solaris*)
15289 cat >>confdefs.h <<\_ACEOF
15290 #define SUNOS5 1
15291 _ACEOF
15292
15293                         BLDSHARED="true"
15294                         LDSHFLAGS="-G"
15295                         SONAMEFLAG="-h "
15296                         if test "${GCC}" = "yes"; then
15297                                 PICFLAG="-fPIC"
15298                                 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
15299                                         DYNEXP="-Wl,-E"
15300                                 fi
15301                         else
15302                                 PICFLAG="-KPIC"
15303                                 ## ${CFLAGS} added for building 64-bit shared
15304                                 ## libs using Sun's Compiler
15305                                 LDSHFLAGS="-G \${CFLAGS}"
15306                                 POBAD_CC=""
15307                                 PICSUFFIX="po.o"
15308                         fi
15309
15310 cat >>confdefs.h <<\_ACEOF
15311 #define STAT_ST_BLOCKSIZE 512
15312 _ACEOF
15313
15314                 ;;
15315                 *sunos*)
15316 cat >>confdefs.h <<\_ACEOF
15317 #define SUNOS4 1
15318 _ACEOF
15319
15320                         BLDSHARED="true"
15321                         LDSHFLAGS="-G"
15322                         SONAMEFLAG="-Wl,-h,"
15323                         PICFLAG="-KPIC"   # Is this correct for SunOS
15324                 ;;
15325                 *freebsd*)  BLDSHARED="true"
15326                         LDSHFLAGS="-shared"
15327                         DYNEXP="-Wl,--export-dynamic"
15328                         SONAMEFLAG="-Wl,-soname,"
15329                         PICFLAG="-fPIC -DPIC"
15330
15331 cat >>confdefs.h <<\_ACEOF
15332 #define STAT_ST_BLOCKSIZE 512
15333 _ACEOF
15334
15335                 ;;
15336                 *openbsd*)  BLDSHARED="true"
15337                         LDSHFLAGS="-shared"
15338                         DYNEXP="-Wl,-Bdynamic"
15339                         SONAMEFLAG="-Wl,-soname,"
15340                         PICFLAG="-fPIC"
15341
15342 cat >>confdefs.h <<\_ACEOF
15343 #define STAT_ST_BLOCKSIZE 512
15344 _ACEOF
15345
15346                 ;;
15347                 *irix*)
15348 cat >>confdefs.h <<\_ACEOF
15349 #define IRIX 1
15350 _ACEOF
15351
15352                         case "$host_os" in
15353                         *irix6*)
15354 cat >>confdefs.h <<\_ACEOF
15355 #define IRIX6 1
15356 _ACEOF
15357
15358                         ;;
15359                         esac
15360                         ATTEMPT_WRAP32_BUILD=yes
15361                         BLDSHARED="true"
15362                         LDSHFLAGS="-set_version sgi1.0 -shared"
15363                         SONAMEFLAG="-soname "
15364                         SHLD="\${LD}"
15365                         if test "${GCC}" = "yes"; then
15366                                 PICFLAG="-fPIC"
15367                         else
15368                                 PICFLAG="-KPIC"
15369                         fi
15370
15371 cat >>confdefs.h <<\_ACEOF
15372 #define STAT_ST_BLOCKSIZE 512
15373 _ACEOF
15374
15375                 ;;
15376                 *aix*)
15377 cat >>confdefs.h <<\_ACEOF
15378 #define AIX 1
15379 _ACEOF
15380
15381                         BLDSHARED="true"
15382                         LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
15383                         DYNEXP="-Wl,-brtl,-bexpall"
15384                         PICFLAG="-O2"
15385                         if test "${GCC}" != "yes"; then
15386                                 ## for funky AIX compiler using strncpy()
15387                                 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
15388                         fi
15389
15390
15391 cat >>confdefs.h <<\_ACEOF
15392 #define STAT_ST_BLOCKSIZE DEV_BSIZE
15393 _ACEOF
15394
15395                 ;;
15396                 *hpux*)
15397 cat >>confdefs.h <<\_ACEOF
15398 #define HPUX 1
15399 _ACEOF
15400
15401                         SHLIBEXT="sl"
15402                         # Use special PIC flags for the native HP-UX compiler.
15403                         if test $ac_cv_prog_cc_Ae = yes; then
15404                                 BLDSHARED="true"
15405                                 SHLD="/usr/bin/ld"
15406                                 LDSHFLAGS="-B symbolic -b -z"
15407                                 SONAMEFLAG="+h "
15408                                 PICFLAG="+z"
15409                         fi
15410                         DYNEXP="-Wl,-E"
15411
15412 cat >>confdefs.h <<\_ACEOF
15413 #define STAT_ST_BLOCKSIZE 8192
15414 _ACEOF
15415
15416                 ;;
15417                 *qnx*)
15418 cat >>confdefs.h <<\_ACEOF
15419 #define QNX 1
15420 _ACEOF
15421 ;;
15422                 *osf*)
15423 cat >>confdefs.h <<\_ACEOF
15424 #define OSF1 1
15425 _ACEOF
15426
15427                         BLDSHARED="true"
15428                         LDSHFLAGS="-shared"
15429                         SONAMEFLAG="-Wl,-soname,"
15430                         PICFLAG="-fPIC"
15431                 ;;
15432                 *sco*)
15433 cat >>confdefs.h <<\_ACEOF
15434 #define SCO 1
15435 _ACEOF
15436 ;;
15437                 *unixware*)
15438 cat >>confdefs.h <<\_ACEOF
15439 #define UNIXWARE 1
15440 _ACEOF
15441
15442                         BLDSHARED="true"
15443                         LDSHFLAGS="-shared"
15444                         SONAMEFLAG="-Wl,-soname,"
15445                         PICFLAG="-KPIC"
15446                 ;;
15447                 *next2*)
15448 cat >>confdefs.h <<\_ACEOF
15449 #define NEXT2 1
15450 _ACEOF
15451 ;;
15452                 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
15453 set dummy groff; ac_word=$2
15454 echo "$as_me:$LINENO: checking for $ac_word" >&5
15455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15456 if test "${ac_cv_prog_ROFF+set}" = set; then
15457   echo $ECHO_N "(cached) $ECHO_C" >&6
15458 else
15459   if test -n "$ROFF"; then
15460   ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
15461 else
15462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15463 for as_dir in $PATH
15464 do
15465   IFS=$as_save_IFS
15466   test -z "$as_dir" && as_dir=.
15467   for ac_exec_ext in '' $ac_executable_extensions; do
15468   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15469     ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
15470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15471     break 2
15472   fi
15473 done
15474 done
15475
15476 fi
15477 fi
15478 ROFF=$ac_cv_prog_ROFF
15479 if test -n "$ROFF"; then
15480   echo "$as_me:$LINENO: result: $ROFF" >&5
15481 echo "${ECHO_T}$ROFF" >&6
15482 else
15483   echo "$as_me:$LINENO: result: no" >&5
15484 echo "${ECHO_T}no" >&6
15485 fi
15486 ;;
15487                 *sysv4*)
15488 cat >>confdefs.h <<\_ACEOF
15489 #define SYSV 1
15490 _ACEOF
15491
15492                         case "$host" in
15493                                 *-univel-*)     if  test "$GCC" != yes ; then
15494
15495 cat >>confdefs.h <<\_ACEOF
15496 #define HAVE_MEMSET 1
15497 _ACEOF
15498
15499                                         fi
15500                                         LDSHFLAGS="-G"
15501                                         DYNEXP="-Bexport"
15502                                 ;;
15503                                 *mips-sni-sysv4*)
15504 cat >>confdefs.h <<\_ACEOF
15505 #define RELIANTUNIX 1
15506 _ACEOF
15507 ;;
15508                         esac
15509                 ;;
15510
15511                 *sysv5*)
15512 cat >>confdefs.h <<\_ACEOF
15513 #define SYSV 1
15514 _ACEOF
15515
15516                         if  test "$GCC" != yes ; then
15517
15518 cat >>confdefs.h <<\_ACEOF
15519 #define HAVE_MEMSET 1
15520 _ACEOF
15521
15522                         fi
15523                         LDSHFLAGS="-G"
15524                 ;;
15525 esac
15526
15527 echo "$as_me:$LINENO: result: $BLDSHARED" >&5
15528 echo "${ECHO_T}$BLDSHARED" >&6
15529 echo "$as_me:$LINENO: checking linker flags for shared libraries" >&5
15530 echo $ECHO_N "checking linker flags for shared libraries... $ECHO_C" >&6
15531 echo "$as_me:$LINENO: result: $LDSHFLAGS" >&5
15532 echo "${ECHO_T}$LDSHFLAGS" >&6
15533 echo "$as_me:$LINENO: checking compiler flags for position-independent code" >&5
15534 echo $ECHO_N "checking compiler flags for position-independent code... $ECHO_C" >&6
15535 echo "$as_me:$LINENO: result: $PICFLAGS" >&5
15536 echo "${ECHO_T}$PICFLAGS" >&6
15537
15538 #######################################################
15539 # test whether building a shared library actually works
15540 if test $BLDSHARED = true; then
15541 echo "$as_me:$LINENO: checking whether building shared libraries actually works" >&5
15542 echo $ECHO_N "checking whether building shared libraries actually works... $ECHO_C" >&6
15543 if test "${ac_cv_shlib_works+set}" = set; then
15544   echo $ECHO_N "(cached) $ECHO_C" >&6
15545 else
15546
15547    ac_cv_shlib_works=no
15548    # try building a trivial shared library
15549    $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
15550      $CC $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po &&
15551      ac_cv_shlib_works=yes
15552    rm -f shlib.so shlib.po
15553
15554 fi
15555 echo "$as_me:$LINENO: result: $ac_cv_shlib_works" >&5
15556 echo "${ECHO_T}$ac_cv_shlib_works" >&6
15557 if test $ac_cv_shlib_works = no; then
15558    BLDSHARED=false
15559 fi
15560 fi
15561
15562
15563 # this updates our target list if we can build shared libs
15564 if test $BLDSHARED = true; then
15565    LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
15566 else
15567    LIBSMBCLIENT_SHARED=
15568 fi
15569
15570 ################
15571
15572 echo "$as_me:$LINENO: checking for long long" >&5
15573 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15574 if test "${samba_cv_have_longlong+set}" = set; then
15575   echo $ECHO_N "(cached) $ECHO_C" >&6
15576 else
15577
15578 if test "$cross_compiling" = yes; then
15579   samba_cv_have_longlong=cross
15580 else
15581   cat >conftest.$ac_ext <<_ACEOF
15582 #line $LINENO "configure"
15583 #include "confdefs.h"
15584 #include <stdio.h>
15585 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
15586 _ACEOF
15587 rm -f conftest$ac_exeext
15588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15589   (eval $ac_link) 2>&5
15590   ac_status=$?
15591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594   (eval $ac_try) 2>&5
15595   ac_status=$?
15596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597   (exit $ac_status); }; }; then
15598   samba_cv_have_longlong=yes
15599 else
15600   echo "$as_me: program exited with status $ac_status" >&5
15601 echo "$as_me: failed program was:" >&5
15602 cat conftest.$ac_ext >&5
15603 ( exit $ac_status )
15604 samba_cv_have_longlong=no
15605 fi
15606 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15607 fi
15608 fi
15609 echo "$as_me:$LINENO: result: $samba_cv_have_longlong" >&5
15610 echo "${ECHO_T}$samba_cv_have_longlong" >&6
15611 if test x"$samba_cv_have_longlong" = x"yes"; then
15612
15613 cat >>confdefs.h <<\_ACEOF
15614 #define HAVE_LONGLONG 1
15615 _ACEOF
15616
15617 fi
15618
15619 #
15620 # Check if the compiler supports the LL prefix on long long integers.
15621 # AIX needs this.
15622
15623 echo "$as_me:$LINENO: checking for LL suffix on long long integers" >&5
15624 echo $ECHO_N "checking for LL suffix on long long integers... $ECHO_C" >&6
15625 if test "${samba_cv_compiler_supports_ll+set}" = set; then
15626   echo $ECHO_N "(cached) $ECHO_C" >&6
15627 else
15628
15629     cat >conftest.$ac_ext <<_ACEOF
15630 #line $LINENO "configure"
15631 #include "confdefs.h"
15632 #include <stdio.h>
15633 int
15634 main ()
15635 {
15636 long long i = 0x8000000000LL
15637   ;
15638   return 0;
15639 }
15640 _ACEOF
15641 rm -f conftest.$ac_objext
15642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15643   (eval $ac_compile) 2>&5
15644   ac_status=$?
15645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646   (exit $ac_status); } &&
15647          { ac_try='test -s conftest.$ac_objext'
15648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15649   (eval $ac_try) 2>&5
15650   ac_status=$?
15651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652   (exit $ac_status); }; }; then
15653   samba_cv_compiler_supports_ll=yes
15654 else
15655   echo "$as_me: failed program was:" >&5
15656 cat conftest.$ac_ext >&5
15657 samba_cv_compiler_supports_ll=no
15658 fi
15659 rm -f conftest.$ac_objext conftest.$ac_ext
15660 fi
15661 echo "$as_me:$LINENO: result: $samba_cv_compiler_supports_ll" >&5
15662 echo "${ECHO_T}$samba_cv_compiler_supports_ll" >&6
15663 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
15664
15665 cat >>confdefs.h <<\_ACEOF
15666 #define COMPILER_SUPPORTS_LL 1
15667 _ACEOF
15668
15669 fi
15670
15671
15672 echo "$as_me:$LINENO: checking for 64 bit off_t" >&5
15673 echo $ECHO_N "checking for 64 bit off_t... $ECHO_C" >&6
15674 if test "${samba_cv_SIZEOF_OFF_T+set}" = set; then
15675   echo $ECHO_N "(cached) $ECHO_C" >&6
15676 else
15677
15678 if test "$cross_compiling" = yes; then
15679   samba_cv_SIZEOF_OFF_T=cross
15680 else
15681   cat >conftest.$ac_ext <<_ACEOF
15682 #line $LINENO "configure"
15683 #include "confdefs.h"
15684 #include <stdio.h>
15685 #include <sys/stat.h>
15686 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
15687 _ACEOF
15688 rm -f conftest$ac_exeext
15689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15690   (eval $ac_link) 2>&5
15691   ac_status=$?
15692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15695   (eval $ac_try) 2>&5
15696   ac_status=$?
15697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698   (exit $ac_status); }; }; then
15699   samba_cv_SIZEOF_OFF_T=yes
15700 else
15701   echo "$as_me: program exited with status $ac_status" >&5
15702 echo "$as_me: failed program was:" >&5
15703 cat conftest.$ac_ext >&5
15704 ( exit $ac_status )
15705 samba_cv_SIZEOF_OFF_T=no
15706 fi
15707 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15708 fi
15709 fi
15710 echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_OFF_T" >&5
15711 echo "${ECHO_T}$samba_cv_SIZEOF_OFF_T" >&6
15712 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
15713
15714 cat >>confdefs.h <<\_ACEOF
15715 #define SIZEOF_OFF_T 8
15716 _ACEOF
15717
15718 fi
15719
15720 echo "$as_me:$LINENO: checking for off64_t" >&5
15721 echo $ECHO_N "checking for off64_t... $ECHO_C" >&6
15722 if test "${samba_cv_HAVE_OFF64_T+set}" = set; then
15723   echo $ECHO_N "(cached) $ECHO_C" >&6
15724 else
15725
15726 if test "$cross_compiling" = yes; then
15727   samba_cv_HAVE_OFF64_T=cross
15728 else
15729   cat >conftest.$ac_ext <<_ACEOF
15730 #line $LINENO "configure"
15731 #include "confdefs.h"
15732
15733 #if defined(HAVE_UNISTD_H)
15734 #include <unistd.h>
15735 #endif
15736 #include <stdio.h>
15737 #include <sys/stat.h>
15738 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
15739 _ACEOF
15740 rm -f conftest$ac_exeext
15741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15742   (eval $ac_link) 2>&5
15743   ac_status=$?
15744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15747   (eval $ac_try) 2>&5
15748   ac_status=$?
15749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750   (exit $ac_status); }; }; then
15751   samba_cv_HAVE_OFF64_T=yes
15752 else
15753   echo "$as_me: program exited with status $ac_status" >&5
15754 echo "$as_me: failed program was:" >&5
15755 cat conftest.$ac_ext >&5
15756 ( exit $ac_status )
15757 samba_cv_HAVE_OFF64_T=no
15758 fi
15759 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15760 fi
15761 fi
15762 echo "$as_me:$LINENO: result: $samba_cv_HAVE_OFF64_T" >&5
15763 echo "${ECHO_T}$samba_cv_HAVE_OFF64_T" >&6
15764 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
15765
15766 cat >>confdefs.h <<\_ACEOF
15767 #define HAVE_OFF64_T 1
15768 _ACEOF
15769
15770 fi
15771
15772 echo "$as_me:$LINENO: checking for 64 bit ino_t" >&5
15773 echo $ECHO_N "checking for 64 bit ino_t... $ECHO_C" >&6
15774 if test "${samba_cv_SIZEOF_INO_T+set}" = set; then
15775   echo $ECHO_N "(cached) $ECHO_C" >&6
15776 else
15777
15778 if test "$cross_compiling" = yes; then
15779   samba_cv_SIZEOF_INO_T=cross
15780 else
15781   cat >conftest.$ac_ext <<_ACEOF
15782 #line $LINENO "configure"
15783 #include "confdefs.h"
15784 #include <stdio.h>
15785 #include <sys/stat.h>
15786 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
15787 _ACEOF
15788 rm -f conftest$ac_exeext
15789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15790   (eval $ac_link) 2>&5
15791   ac_status=$?
15792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795   (eval $ac_try) 2>&5
15796   ac_status=$?
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); }; }; then
15799   samba_cv_SIZEOF_INO_T=yes
15800 else
15801   echo "$as_me: program exited with status $ac_status" >&5
15802 echo "$as_me: failed program was:" >&5
15803 cat conftest.$ac_ext >&5
15804 ( exit $ac_status )
15805 samba_cv_SIZEOF_INO_T=no
15806 fi
15807 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15808 fi
15809 fi
15810 echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_INO_T" >&5
15811 echo "${ECHO_T}$samba_cv_SIZEOF_INO_T" >&6
15812 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
15813
15814 cat >>confdefs.h <<\_ACEOF
15815 #define SIZEOF_INO_T 8
15816 _ACEOF
15817
15818 fi
15819
15820 echo "$as_me:$LINENO: checking for ino64_t" >&5
15821 echo $ECHO_N "checking for ino64_t... $ECHO_C" >&6
15822 if test "${samba_cv_HAVE_INO64_T+set}" = set; then
15823   echo $ECHO_N "(cached) $ECHO_C" >&6
15824 else
15825
15826 if test "$cross_compiling" = yes; then
15827   samba_cv_HAVE_INO64_T=cross
15828 else
15829   cat >conftest.$ac_ext <<_ACEOF
15830 #line $LINENO "configure"
15831 #include "confdefs.h"
15832
15833 #if defined(HAVE_UNISTD_H)
15834 #include <unistd.h>
15835 #endif
15836 #include <stdio.h>
15837 #include <sys/stat.h>
15838 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
15839 _ACEOF
15840 rm -f conftest$ac_exeext
15841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15842   (eval $ac_link) 2>&5
15843   ac_status=$?
15844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847   (eval $ac_try) 2>&5
15848   ac_status=$?
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); }; }; then
15851   samba_cv_HAVE_INO64_T=yes
15852 else
15853   echo "$as_me: program exited with status $ac_status" >&5
15854 echo "$as_me: failed program was:" >&5
15855 cat conftest.$ac_ext >&5
15856 ( exit $ac_status )
15857 samba_cv_HAVE_INO64_T=no
15858 fi
15859 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15860 fi
15861 fi
15862 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INO64_T" >&5
15863 echo "${ECHO_T}$samba_cv_HAVE_INO64_T" >&6
15864 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
15865
15866 cat >>confdefs.h <<\_ACEOF
15867 #define HAVE_INO64_T 1
15868 _ACEOF
15869
15870 fi
15871
15872 echo "$as_me:$LINENO: checking for dev64_t" >&5
15873 echo $ECHO_N "checking for dev64_t... $ECHO_C" >&6
15874 if test "${samba_cv_HAVE_DEV64_T+set}" = set; then
15875   echo $ECHO_N "(cached) $ECHO_C" >&6
15876 else
15877
15878 if test "$cross_compiling" = yes; then
15879   samba_cv_HAVE_DEV64_T=cross
15880 else
15881   cat >conftest.$ac_ext <<_ACEOF
15882 #line $LINENO "configure"
15883 #include "confdefs.h"
15884
15885 #if defined(HAVE_UNISTD_H)
15886 #include <unistd.h>
15887 #endif
15888 #include <stdio.h>
15889 #include <sys/stat.h>
15890 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
15891 _ACEOF
15892 rm -f conftest$ac_exeext
15893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15894   (eval $ac_link) 2>&5
15895   ac_status=$?
15896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899   (eval $ac_try) 2>&5
15900   ac_status=$?
15901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902   (exit $ac_status); }; }; then
15903   samba_cv_HAVE_DEV64_T=yes
15904 else
15905   echo "$as_me: program exited with status $ac_status" >&5
15906 echo "$as_me: failed program was:" >&5
15907 cat conftest.$ac_ext >&5
15908 ( exit $ac_status )
15909 samba_cv_HAVE_DEV64_T=no
15910 fi
15911 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15912 fi
15913 fi
15914 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEV64_T" >&5
15915 echo "${ECHO_T}$samba_cv_HAVE_DEV64_T" >&6
15916 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
15917
15918 cat >>confdefs.h <<\_ACEOF
15919 #define HAVE_DEV64_T 1
15920 _ACEOF
15921
15922 fi
15923
15924 echo "$as_me:$LINENO: checking for struct dirent64" >&5
15925 echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6
15926 if test "${samba_cv_HAVE_STRUCT_DIRENT64+set}" = set; then
15927   echo $ECHO_N "(cached) $ECHO_C" >&6
15928 else
15929
15930 cat >conftest.$ac_ext <<_ACEOF
15931 #line $LINENO "configure"
15932 #include "confdefs.h"
15933
15934 #if defined(HAVE_UNISTD_H)
15935 #include <unistd.h>
15936 #endif
15937 #include <sys/types.h>
15938 #include <dirent.h>
15939 int
15940 main ()
15941 {
15942 struct dirent64 de;
15943   ;
15944   return 0;
15945 }
15946 _ACEOF
15947 rm -f conftest.$ac_objext
15948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15949   (eval $ac_compile) 2>&5
15950   ac_status=$?
15951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952   (exit $ac_status); } &&
15953          { ac_try='test -s conftest.$ac_objext'
15954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15955   (eval $ac_try) 2>&5
15956   ac_status=$?
15957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958   (exit $ac_status); }; }; then
15959   samba_cv_HAVE_STRUCT_DIRENT64=yes
15960 else
15961   echo "$as_me: failed program was:" >&5
15962 cat conftest.$ac_ext >&5
15963 samba_cv_HAVE_STRUCT_DIRENT64=no
15964 fi
15965 rm -f conftest.$ac_objext conftest.$ac_ext
15966 fi
15967 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_DIRENT64" >&5
15968 echo "${ECHO_T}$samba_cv_HAVE_STRUCT_DIRENT64" >&6
15969 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
15970
15971 cat >>confdefs.h <<\_ACEOF
15972 #define HAVE_STRUCT_DIRENT64 1
15973 _ACEOF
15974
15975 fi
15976
15977 echo "$as_me:$LINENO: checking for major macro" >&5
15978 echo $ECHO_N "checking for major macro... $ECHO_C" >&6
15979 if test "${samba_cv_HAVE_DEVICE_MAJOR_FN+set}" = set; then
15980   echo $ECHO_N "(cached) $ECHO_C" >&6
15981 else
15982
15983 if test "$cross_compiling" = yes; then
15984   samba_cv_HAVE_DEVICE_MAJOR_FN=cross
15985 else
15986   cat >conftest.$ac_ext <<_ACEOF
15987 #line $LINENO "configure"
15988 #include "confdefs.h"
15989
15990 #if defined(HAVE_UNISTD_H)
15991 #include <unistd.h>
15992 #endif
15993 #include <sys/types.h>
15994 main() { dev_t dev; int i = major(dev); return 0; }
15995 _ACEOF
15996 rm -f conftest$ac_exeext
15997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15998   (eval $ac_link) 2>&5
15999   ac_status=$?
16000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001   (exit $ac_status); } && { ac_try='./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   samba_cv_HAVE_DEVICE_MAJOR_FN=yes
16008 else
16009   echo "$as_me: program exited with status $ac_status" >&5
16010 echo "$as_me: failed program was:" >&5
16011 cat conftest.$ac_ext >&5
16012 ( exit $ac_status )
16013 samba_cv_HAVE_DEVICE_MAJOR_FN=no
16014 fi
16015 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16016 fi
16017 fi
16018 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MAJOR_FN" >&5
16019 echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MAJOR_FN" >&6
16020 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
16021
16022 cat >>confdefs.h <<\_ACEOF
16023 #define HAVE_DEVICE_MAJOR_FN 1
16024 _ACEOF
16025
16026 fi
16027
16028 echo "$as_me:$LINENO: checking for minor macro" >&5
16029 echo $ECHO_N "checking for minor macro... $ECHO_C" >&6
16030 if test "${samba_cv_HAVE_DEVICE_MINOR_FN+set}" = set; then
16031   echo $ECHO_N "(cached) $ECHO_C" >&6
16032 else
16033
16034 if test "$cross_compiling" = yes; then
16035   samba_cv_HAVE_DEVICE_MINOR_FN=cross
16036 else
16037   cat >conftest.$ac_ext <<_ACEOF
16038 #line $LINENO "configure"
16039 #include "confdefs.h"
16040
16041 #if defined(HAVE_UNISTD_H)
16042 #include <unistd.h>
16043 #endif
16044 #include <sys/types.h>
16045 main() { dev_t dev; int i = minor(dev); return 0; }
16046 _ACEOF
16047 rm -f conftest$ac_exeext
16048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16049   (eval $ac_link) 2>&5
16050   ac_status=$?
16051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054   (eval $ac_try) 2>&5
16055   ac_status=$?
16056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057   (exit $ac_status); }; }; then
16058   samba_cv_HAVE_DEVICE_MINOR_FN=yes
16059 else
16060   echo "$as_me: program exited with status $ac_status" >&5
16061 echo "$as_me: failed program was:" >&5
16062 cat conftest.$ac_ext >&5
16063 ( exit $ac_status )
16064 samba_cv_HAVE_DEVICE_MINOR_FN=no
16065 fi
16066 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16067 fi
16068 fi
16069 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MINOR_FN" >&5
16070 echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MINOR_FN" >&6
16071 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
16072
16073 cat >>confdefs.h <<\_ACEOF
16074 #define HAVE_DEVICE_MINOR_FN 1
16075 _ACEOF
16076
16077 fi
16078
16079 echo "$as_me:$LINENO: checking for unsigned char" >&5
16080 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
16081 if test "${samba_cv_HAVE_UNSIGNED_CHAR+set}" = set; then
16082   echo $ECHO_N "(cached) $ECHO_C" >&6
16083 else
16084
16085 if test "$cross_compiling" = yes; then
16086   samba_cv_HAVE_UNSIGNED_CHAR=cross
16087 else
16088   cat >conftest.$ac_ext <<_ACEOF
16089 #line $LINENO "configure"
16090 #include "confdefs.h"
16091 #include <stdio.h>
16092 main() { char c; c=250; exit((c > 0)?0:1); }
16093 _ACEOF
16094 rm -f conftest$ac_exeext
16095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16096   (eval $ac_link) 2>&5
16097   ac_status=$?
16098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16101   (eval $ac_try) 2>&5
16102   ac_status=$?
16103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104   (exit $ac_status); }; }; then
16105   samba_cv_HAVE_UNSIGNED_CHAR=yes
16106 else
16107   echo "$as_me: program exited with status $ac_status" >&5
16108 echo "$as_me: failed program was:" >&5
16109 cat conftest.$ac_ext >&5
16110 ( exit $ac_status )
16111 samba_cv_HAVE_UNSIGNED_CHAR=no
16112 fi
16113 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16114 fi
16115 fi
16116 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UNSIGNED_CHAR" >&5
16117 echo "${ECHO_T}$samba_cv_HAVE_UNSIGNED_CHAR" >&6
16118 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
16119
16120 cat >>confdefs.h <<\_ACEOF
16121 #define HAVE_UNSIGNED_CHAR 1
16122 _ACEOF
16123
16124 fi
16125
16126 echo "$as_me:$LINENO: checking for sin_len in sock" >&5
16127 echo $ECHO_N "checking for sin_len in sock... $ECHO_C" >&6
16128 if test "${samba_cv_HAVE_SOCK_SIN_LEN+set}" = set; then
16129   echo $ECHO_N "(cached) $ECHO_C" >&6
16130 else
16131
16132 cat >conftest.$ac_ext <<_ACEOF
16133 #line $LINENO "configure"
16134 #include "confdefs.h"
16135 #include <sys/types.h>
16136 #include <sys/socket.h>
16137 #include <netinet/in.h>
16138 int
16139 main ()
16140 {
16141 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
16142   ;
16143   return 0;
16144 }
16145 _ACEOF
16146 rm -f conftest.$ac_objext
16147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16148   (eval $ac_compile) 2>&5
16149   ac_status=$?
16150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151   (exit $ac_status); } &&
16152          { ac_try='test -s conftest.$ac_objext'
16153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154   (eval $ac_try) 2>&5
16155   ac_status=$?
16156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157   (exit $ac_status); }; }; then
16158   samba_cv_HAVE_SOCK_SIN_LEN=yes
16159 else
16160   echo "$as_me: failed program was:" >&5
16161 cat conftest.$ac_ext >&5
16162 samba_cv_HAVE_SOCK_SIN_LEN=no
16163 fi
16164 rm -f conftest.$ac_objext conftest.$ac_ext
16165 fi
16166 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SOCK_SIN_LEN" >&5
16167 echo "${ECHO_T}$samba_cv_HAVE_SOCK_SIN_LEN" >&6
16168 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
16169
16170 cat >>confdefs.h <<\_ACEOF
16171 #define HAVE_SOCK_SIN_LEN 1
16172 _ACEOF
16173
16174 fi
16175
16176 echo "$as_me:$LINENO: checking whether seekdir returns void" >&5
16177 echo $ECHO_N "checking whether seekdir returns void... $ECHO_C" >&6
16178 if test "${samba_cv_SEEKDIR_RETURNS_VOID+set}" = set; then
16179   echo $ECHO_N "(cached) $ECHO_C" >&6
16180 else
16181
16182 cat >conftest.$ac_ext <<_ACEOF
16183 #line $LINENO "configure"
16184 #include "confdefs.h"
16185 #include <sys/types.h>
16186 #include <dirent.h>
16187 void seekdir(DIR *d, long loc) { return; }
16188 int
16189 main ()
16190 {
16191 return 0;
16192   ;
16193   return 0;
16194 }
16195 _ACEOF
16196 rm -f conftest.$ac_objext
16197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16198   (eval $ac_compile) 2>&5
16199   ac_status=$?
16200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201   (exit $ac_status); } &&
16202          { ac_try='test -s conftest.$ac_objext'
16203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204   (eval $ac_try) 2>&5
16205   ac_status=$?
16206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207   (exit $ac_status); }; }; then
16208   samba_cv_SEEKDIR_RETURNS_VOID=yes
16209 else
16210   echo "$as_me: failed program was:" >&5
16211 cat conftest.$ac_ext >&5
16212 samba_cv_SEEKDIR_RETURNS_VOID=no
16213 fi
16214 rm -f conftest.$ac_objext conftest.$ac_ext
16215 fi
16216 echo "$as_me:$LINENO: result: $samba_cv_SEEKDIR_RETURNS_VOID" >&5
16217 echo "${ECHO_T}$samba_cv_SEEKDIR_RETURNS_VOID" >&6
16218 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
16219
16220 cat >>confdefs.h <<\_ACEOF
16221 #define SEEKDIR_RETURNS_VOID 1
16222 _ACEOF
16223
16224 fi
16225
16226 echo "$as_me:$LINENO: checking for __FILE__ macro" >&5
16227 echo $ECHO_N "checking for __FILE__ macro... $ECHO_C" >&6
16228 if test "${samba_cv_HAVE_FILE_MACRO+set}" = set; then
16229   echo $ECHO_N "(cached) $ECHO_C" >&6
16230 else
16231
16232 cat >conftest.$ac_ext <<_ACEOF
16233 #line $LINENO "configure"
16234 #include "confdefs.h"
16235 #include <stdio.h>
16236 int
16237 main ()
16238 {
16239 printf("%s\n", __FILE__);
16240   ;
16241   return 0;
16242 }
16243 _ACEOF
16244 rm -f conftest.$ac_objext
16245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16246   (eval $ac_compile) 2>&5
16247   ac_status=$?
16248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249   (exit $ac_status); } &&
16250          { ac_try='test -s conftest.$ac_objext'
16251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252   (eval $ac_try) 2>&5
16253   ac_status=$?
16254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255   (exit $ac_status); }; }; then
16256   samba_cv_HAVE_FILE_MACRO=yes
16257 else
16258   echo "$as_me: failed program was:" >&5
16259 cat conftest.$ac_ext >&5
16260 samba_cv_HAVE_FILE_MACRO=no
16261 fi
16262 rm -f conftest.$ac_objext conftest.$ac_ext
16263 fi
16264 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FILE_MACRO" >&5
16265 echo "${ECHO_T}$samba_cv_HAVE_FILE_MACRO" >&6
16266 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
16267
16268 cat >>confdefs.h <<\_ACEOF
16269 #define HAVE_FILE_MACRO 1
16270 _ACEOF
16271
16272 fi
16273
16274 echo "$as_me:$LINENO: checking for __FUNCTION__ macro" >&5
16275 echo $ECHO_N "checking for __FUNCTION__ macro... $ECHO_C" >&6
16276 if test "${samba_cv_HAVE_FUNCTION_MACRO+set}" = set; then
16277   echo $ECHO_N "(cached) $ECHO_C" >&6
16278 else
16279
16280 cat >conftest.$ac_ext <<_ACEOF
16281 #line $LINENO "configure"
16282 #include "confdefs.h"
16283 #include <stdio.h>
16284 int
16285 main ()
16286 {
16287 printf("%s\n", __FUNCTION__);
16288   ;
16289   return 0;
16290 }
16291 _ACEOF
16292 rm -f conftest.$ac_objext
16293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16294   (eval $ac_compile) 2>&5
16295   ac_status=$?
16296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297   (exit $ac_status); } &&
16298          { ac_try='test -s conftest.$ac_objext'
16299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16300   (eval $ac_try) 2>&5
16301   ac_status=$?
16302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303   (exit $ac_status); }; }; then
16304   samba_cv_HAVE_FUNCTION_MACRO=yes
16305 else
16306   echo "$as_me: failed program was:" >&5
16307 cat conftest.$ac_ext >&5
16308 samba_cv_HAVE_FUNCTION_MACRO=no
16309 fi
16310 rm -f conftest.$ac_objext conftest.$ac_ext
16311 fi
16312 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FUNCTION_MACRO" >&5
16313 echo "${ECHO_T}$samba_cv_HAVE_FUNCTION_MACRO" >&6
16314 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
16315
16316 cat >>confdefs.h <<\_ACEOF
16317 #define HAVE_FUNCTION_MACRO 1
16318 _ACEOF
16319
16320 fi
16321
16322 echo "$as_me:$LINENO: checking if gettimeofday takes tz argument" >&5
16323 echo $ECHO_N "checking if gettimeofday takes tz argument... $ECHO_C" >&6
16324 if test "${samba_cv_HAVE_GETTIMEOFDAY_TZ+set}" = set; then
16325   echo $ECHO_N "(cached) $ECHO_C" >&6
16326 else
16327
16328 if test "$cross_compiling" = yes; then
16329   samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
16330 else
16331   cat >conftest.$ac_ext <<_ACEOF
16332 #line $LINENO "configure"
16333 #include "confdefs.h"
16334
16335 #include <sys/time.h>
16336 #include <unistd.h>
16337 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
16338 _ACEOF
16339 rm -f conftest$ac_exeext
16340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16341   (eval $ac_link) 2>&5
16342   ac_status=$?
16343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16346   (eval $ac_try) 2>&5
16347   ac_status=$?
16348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349   (exit $ac_status); }; }; then
16350   samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
16351 else
16352   echo "$as_me: program exited with status $ac_status" >&5
16353 echo "$as_me: failed program was:" >&5
16354 cat conftest.$ac_ext >&5
16355 ( exit $ac_status )
16356 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
16357 fi
16358 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16359 fi
16360 fi
16361 echo "$as_me:$LINENO: result: $samba_cv_HAVE_GETTIMEOFDAY_TZ" >&5
16362 echo "${ECHO_T}$samba_cv_HAVE_GETTIMEOFDAY_TZ" >&6
16363 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
16364
16365 cat >>confdefs.h <<\_ACEOF
16366 #define HAVE_GETTIMEOFDAY_TZ 1
16367 _ACEOF
16368
16369 fi
16370
16371 echo "$as_me:$LINENO: checking for __va_copy" >&5
16372 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
16373 if test "${samba_cv_HAVE_VA_COPY+set}" = set; then
16374   echo $ECHO_N "(cached) $ECHO_C" >&6
16375 else
16376
16377 cat >conftest.$ac_ext <<_ACEOF
16378 #line $LINENO "configure"
16379 #include "confdefs.h"
16380 #include <stdarg.h>
16381 va_list ap1,ap2;
16382 int
16383 main ()
16384 {
16385 __va_copy(ap1,ap2);
16386   ;
16387   return 0;
16388 }
16389 _ACEOF
16390 rm -f conftest.$ac_objext conftest$ac_exeext
16391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16392   (eval $ac_link) 2>&5
16393   ac_status=$?
16394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395   (exit $ac_status); } &&
16396          { ac_try='test -s conftest$ac_exeext'
16397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398   (eval $ac_try) 2>&5
16399   ac_status=$?
16400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); }; }; then
16402   samba_cv_HAVE_VA_COPY=yes
16403 else
16404   echo "$as_me: failed program was:" >&5
16405 cat conftest.$ac_ext >&5
16406 samba_cv_HAVE_VA_COPY=no
16407 fi
16408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16409 fi
16410 echo "$as_me:$LINENO: result: $samba_cv_HAVE_VA_COPY" >&5
16411 echo "${ECHO_T}$samba_cv_HAVE_VA_COPY" >&6
16412 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
16413
16414 cat >>confdefs.h <<\_ACEOF
16415 #define HAVE_VA_COPY 1
16416 _ACEOF
16417
16418 fi
16419
16420 echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
16421 echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6
16422 if test "${samba_cv_HAVE_C99_VSNPRINTF+set}" = set; then
16423   echo $ECHO_N "(cached) $ECHO_C" >&6
16424 else
16425
16426 if test "$cross_compiling" = yes; then
16427   samba_cv_HAVE_C99_VSNPRINTF=cross
16428 else
16429   cat >conftest.$ac_ext <<_ACEOF
16430 #line $LINENO "configure"
16431 #include "confdefs.h"
16432
16433 #include <sys/types.h>
16434 #include <stdarg.h>
16435 void foo(const char *format, ...) {
16436        va_list ap;
16437        int len;
16438        char buf[5];
16439
16440        va_start(ap, format);
16441        len = vsnprintf(buf, 0, format, ap);
16442        va_end(ap);
16443        if (len != 5) exit(1);
16444
16445        va_start(ap, format);
16446        len = vsnprintf(0, 0, format, ap);
16447        va_end(ap);
16448        if (len != 5) exit(1);
16449
16450        if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
16451
16452        exit(0);
16453 }
16454 main() { foo("hello"); }
16455
16456 _ACEOF
16457 rm -f conftest$ac_exeext
16458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16459   (eval $ac_link) 2>&5
16460   ac_status=$?
16461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16464   (eval $ac_try) 2>&5
16465   ac_status=$?
16466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467   (exit $ac_status); }; }; then
16468   samba_cv_HAVE_C99_VSNPRINTF=yes
16469 else
16470   echo "$as_me: program exited with status $ac_status" >&5
16471 echo "$as_me: failed program was:" >&5
16472 cat conftest.$ac_ext >&5
16473 ( exit $ac_status )
16474 samba_cv_HAVE_C99_VSNPRINTF=no
16475 fi
16476 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16477 fi
16478 fi
16479 echo "$as_me:$LINENO: result: $samba_cv_HAVE_C99_VSNPRINTF" >&5
16480 echo "${ECHO_T}$samba_cv_HAVE_C99_VSNPRINTF" >&6
16481 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
16482
16483 cat >>confdefs.h <<\_ACEOF
16484 #define HAVE_C99_VSNPRINTF 1
16485 _ACEOF
16486
16487 fi
16488
16489 echo "$as_me:$LINENO: checking for broken readdir" >&5
16490 echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6
16491 if test "${samba_cv_HAVE_BROKEN_READDIR+set}" = set; then
16492   echo $ECHO_N "(cached) $ECHO_C" >&6
16493 else
16494
16495 if test "$cross_compiling" = yes; then
16496   samba_cv_HAVE_BROKEN_READDIR=cross
16497 else
16498   cat >conftest.$ac_ext <<_ACEOF
16499 #line $LINENO "configure"
16500 #include "confdefs.h"
16501 #include <sys/types.h>
16502 #include <dirent.h>
16503 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
16504 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
16505 di->d_name[0] == 0) exit(0); exit(1);}
16506 _ACEOF
16507 rm -f conftest$ac_exeext
16508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16509   (eval $ac_link) 2>&5
16510   ac_status=$?
16511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16514   (eval $ac_try) 2>&5
16515   ac_status=$?
16516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517   (exit $ac_status); }; }; then
16518   samba_cv_HAVE_BROKEN_READDIR=yes
16519 else
16520   echo "$as_me: program exited with status $ac_status" >&5
16521 echo "$as_me: failed program was:" >&5
16522 cat conftest.$ac_ext >&5
16523 ( exit $ac_status )
16524 samba_cv_HAVE_BROKEN_READDIR=no
16525 fi
16526 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16527 fi
16528 fi
16529 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_READDIR" >&5
16530 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_READDIR" >&6
16531 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
16532
16533 cat >>confdefs.h <<\_ACEOF
16534 #define HAVE_BROKEN_READDIR 1
16535 _ACEOF
16536
16537 fi
16538
16539 echo "$as_me:$LINENO: checking for utimbuf" >&5
16540 echo $ECHO_N "checking for utimbuf... $ECHO_C" >&6
16541 if test "${samba_cv_HAVE_UTIMBUF+set}" = set; then
16542   echo $ECHO_N "(cached) $ECHO_C" >&6
16543 else
16544
16545 cat >conftest.$ac_ext <<_ACEOF
16546 #line $LINENO "configure"
16547 #include "confdefs.h"
16548 #include <sys/types.h>
16549 #include <utime.h>
16550 int
16551 main ()
16552 {
16553 struct utimbuf tbuf;  tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
16554   ;
16555   return 0;
16556 }
16557 _ACEOF
16558 rm -f conftest.$ac_objext
16559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16560   (eval $ac_compile) 2>&5
16561   ac_status=$?
16562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563   (exit $ac_status); } &&
16564          { ac_try='test -s conftest.$ac_objext'
16565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16566   (eval $ac_try) 2>&5
16567   ac_status=$?
16568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569   (exit $ac_status); }; }; then
16570   samba_cv_HAVE_UTIMBUF=yes
16571 else
16572   echo "$as_me: failed program was:" >&5
16573 cat conftest.$ac_ext >&5
16574 samba_cv_HAVE_UTIMBUF=no
16575 fi
16576 rm -f conftest.$ac_objext conftest.$ac_ext
16577 fi
16578 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UTIMBUF" >&5
16579 echo "${ECHO_T}$samba_cv_HAVE_UTIMBUF" >&6
16580 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
16581
16582 cat >>confdefs.h <<\_ACEOF
16583 #define HAVE_UTIMBUF 1
16584 _ACEOF
16585
16586 fi
16587
16588
16589
16590
16591
16592
16593
16594 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
16595 do
16596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16597 echo "$as_me:$LINENO: checking for $ac_func" >&5
16598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16599 if eval "test \"\${$as_ac_var+set}\" = set"; then
16600   echo $ECHO_N "(cached) $ECHO_C" >&6
16601 else
16602   cat >conftest.$ac_ext <<_ACEOF
16603 #line $LINENO "configure"
16604 #include "confdefs.h"
16605 /* System header to define __stub macros and hopefully few prototypes,
16606     which can conflict with char $ac_func (); below.  */
16607 #include <assert.h>
16608 /* Override any gcc2 internal prototype to avoid an error.  */
16609 #ifdef __cplusplus
16610 extern "C"
16611 #endif
16612 /* We use char because int might match the return type of a gcc2
16613    builtin and then its argument prototype would still apply.  */
16614 char $ac_func ();
16615 char (*f) ();
16616
16617 int
16618 main ()
16619 {
16620 /* The GNU C library defines this for functions which it implements
16621     to always fail with ENOSYS.  Some functions are actually named
16622     something starting with __ and the normal name is an alias.  */
16623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16624 choke me
16625 #else
16626 f = $ac_func;
16627 #endif
16628
16629   ;
16630   return 0;
16631 }
16632 _ACEOF
16633 rm -f conftest.$ac_objext conftest$ac_exeext
16634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16635   (eval $ac_link) 2>&5
16636   ac_status=$?
16637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638   (exit $ac_status); } &&
16639          { ac_try='test -s conftest$ac_exeext'
16640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16641   (eval $ac_try) 2>&5
16642   ac_status=$?
16643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644   (exit $ac_status); }; }; then
16645   eval "$as_ac_var=yes"
16646 else
16647   echo "$as_me: failed program was:" >&5
16648 cat conftest.$ac_ext >&5
16649 eval "$as_ac_var=no"
16650 fi
16651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16652 fi
16653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16655 if test `eval echo '${'$as_ac_var'}'` = yes; then
16656   cat >>confdefs.h <<_ACEOF
16657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16658 _ACEOF
16659
16660 fi
16661 done
16662
16663
16664 echo "$as_me:$LINENO: checking for ut_name in utmp" >&5
16665 echo $ECHO_N "checking for ut_name in utmp... $ECHO_C" >&6
16666 if test "${samba_cv_HAVE_UT_UT_NAME+set}" = set; then
16667   echo $ECHO_N "(cached) $ECHO_C" >&6
16668 else
16669
16670 cat >conftest.$ac_ext <<_ACEOF
16671 #line $LINENO "configure"
16672 #include "confdefs.h"
16673 #include <sys/types.h>
16674 #include <utmp.h>
16675 int
16676 main ()
16677 {
16678 struct utmp ut;  ut.ut_name[0] = 'a';
16679   ;
16680   return 0;
16681 }
16682 _ACEOF
16683 rm -f conftest.$ac_objext
16684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16685   (eval $ac_compile) 2>&5
16686   ac_status=$?
16687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688   (exit $ac_status); } &&
16689          { ac_try='test -s conftest.$ac_objext'
16690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691   (eval $ac_try) 2>&5
16692   ac_status=$?
16693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694   (exit $ac_status); }; }; then
16695   samba_cv_HAVE_UT_UT_NAME=yes
16696 else
16697   echo "$as_me: failed program was:" >&5
16698 cat conftest.$ac_ext >&5
16699 samba_cv_HAVE_UT_UT_NAME=no
16700 fi
16701 rm -f conftest.$ac_objext conftest.$ac_ext
16702 fi
16703 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_NAME" >&5
16704 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_NAME" >&6
16705 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
16706
16707 cat >>confdefs.h <<\_ACEOF
16708 #define HAVE_UT_UT_NAME 1
16709 _ACEOF
16710
16711 fi
16712
16713 echo "$as_me:$LINENO: checking for ut_user in utmp" >&5
16714 echo $ECHO_N "checking for ut_user in utmp... $ECHO_C" >&6
16715 if test "${samba_cv_HAVE_UT_UT_USER+set}" = set; then
16716   echo $ECHO_N "(cached) $ECHO_C" >&6
16717 else
16718
16719 cat >conftest.$ac_ext <<_ACEOF
16720 #line $LINENO "configure"
16721 #include "confdefs.h"
16722 #include <sys/types.h>
16723 #include <utmp.h>
16724 int
16725 main ()
16726 {
16727 struct utmp ut;  ut.ut_user[0] = 'a';
16728   ;
16729   return 0;
16730 }
16731 _ACEOF
16732 rm -f conftest.$ac_objext
16733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16734   (eval $ac_compile) 2>&5
16735   ac_status=$?
16736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737   (exit $ac_status); } &&
16738          { ac_try='test -s conftest.$ac_objext'
16739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740   (eval $ac_try) 2>&5
16741   ac_status=$?
16742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743   (exit $ac_status); }; }; then
16744   samba_cv_HAVE_UT_UT_USER=yes
16745 else
16746   echo "$as_me: failed program was:" >&5
16747 cat conftest.$ac_ext >&5
16748 samba_cv_HAVE_UT_UT_USER=no
16749 fi
16750 rm -f conftest.$ac_objext conftest.$ac_ext
16751 fi
16752 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_USER" >&5
16753 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_USER" >&6
16754 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
16755
16756 cat >>confdefs.h <<\_ACEOF
16757 #define HAVE_UT_UT_USER 1
16758 _ACEOF
16759
16760 fi
16761
16762 echo "$as_me:$LINENO: checking for ut_id in utmp" >&5
16763 echo $ECHO_N "checking for ut_id in utmp... $ECHO_C" >&6
16764 if test "${samba_cv_HAVE_UT_UT_ID+set}" = set; then
16765   echo $ECHO_N "(cached) $ECHO_C" >&6
16766 else
16767
16768 cat >conftest.$ac_ext <<_ACEOF
16769 #line $LINENO "configure"
16770 #include "confdefs.h"
16771 #include <sys/types.h>
16772 #include <utmp.h>
16773 int
16774 main ()
16775 {
16776 struct utmp ut;  ut.ut_id[0] = 'a';
16777   ;
16778   return 0;
16779 }
16780 _ACEOF
16781 rm -f conftest.$ac_objext
16782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16783   (eval $ac_compile) 2>&5
16784   ac_status=$?
16785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786   (exit $ac_status); } &&
16787          { ac_try='test -s conftest.$ac_objext'
16788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16789   (eval $ac_try) 2>&5
16790   ac_status=$?
16791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792   (exit $ac_status); }; }; then
16793   samba_cv_HAVE_UT_UT_ID=yes
16794 else
16795   echo "$as_me: failed program was:" >&5
16796 cat conftest.$ac_ext >&5
16797 samba_cv_HAVE_UT_UT_ID=no
16798 fi
16799 rm -f conftest.$ac_objext conftest.$ac_ext
16800 fi
16801 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ID" >&5
16802 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ID" >&6
16803 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
16804
16805 cat >>confdefs.h <<\_ACEOF
16806 #define HAVE_UT_UT_ID 1
16807 _ACEOF
16808
16809 fi
16810
16811 echo "$as_me:$LINENO: checking for ut_host in utmp" >&5
16812 echo $ECHO_N "checking for ut_host in utmp... $ECHO_C" >&6
16813 if test "${samba_cv_HAVE_UT_UT_HOST+set}" = set; then
16814   echo $ECHO_N "(cached) $ECHO_C" >&6
16815 else
16816
16817 cat >conftest.$ac_ext <<_ACEOF
16818 #line $LINENO "configure"
16819 #include "confdefs.h"
16820 #include <sys/types.h>
16821 #include <utmp.h>
16822 int
16823 main ()
16824 {
16825 struct utmp ut;  ut.ut_host[0] = 'a';
16826   ;
16827   return 0;
16828 }
16829 _ACEOF
16830 rm -f conftest.$ac_objext
16831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16832   (eval $ac_compile) 2>&5
16833   ac_status=$?
16834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835   (exit $ac_status); } &&
16836          { ac_try='test -s conftest.$ac_objext'
16837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838   (eval $ac_try) 2>&5
16839   ac_status=$?
16840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841   (exit $ac_status); }; }; then
16842   samba_cv_HAVE_UT_UT_HOST=yes
16843 else
16844   echo "$as_me: failed program was:" >&5
16845 cat conftest.$ac_ext >&5
16846 samba_cv_HAVE_UT_UT_HOST=no
16847 fi
16848 rm -f conftest.$ac_objext conftest.$ac_ext
16849 fi
16850 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_HOST" >&5
16851 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_HOST" >&6
16852 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
16853
16854 cat >>confdefs.h <<\_ACEOF
16855 #define HAVE_UT_UT_HOST 1
16856 _ACEOF
16857
16858 fi
16859
16860 echo "$as_me:$LINENO: checking for ut_time in utmp" >&5
16861 echo $ECHO_N "checking for ut_time in utmp... $ECHO_C" >&6
16862 if test "${samba_cv_HAVE_UT_UT_TIME+set}" = set; then
16863   echo $ECHO_N "(cached) $ECHO_C" >&6
16864 else
16865
16866 cat >conftest.$ac_ext <<_ACEOF
16867 #line $LINENO "configure"
16868 #include "confdefs.h"
16869 #include <sys/types.h>
16870 #include <utmp.h>
16871 int
16872 main ()
16873 {
16874 struct utmp ut;  time_t t; ut.ut_time = t;
16875   ;
16876   return 0;
16877 }
16878 _ACEOF
16879 rm -f conftest.$ac_objext
16880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16881   (eval $ac_compile) 2>&5
16882   ac_status=$?
16883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884   (exit $ac_status); } &&
16885          { ac_try='test -s conftest.$ac_objext'
16886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887   (eval $ac_try) 2>&5
16888   ac_status=$?
16889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890   (exit $ac_status); }; }; then
16891   samba_cv_HAVE_UT_UT_TIME=yes
16892 else
16893   echo "$as_me: failed program was:" >&5
16894 cat conftest.$ac_ext >&5
16895 samba_cv_HAVE_UT_UT_TIME=no
16896 fi
16897 rm -f conftest.$ac_objext conftest.$ac_ext
16898 fi
16899 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TIME" >&5
16900 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TIME" >&6
16901 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
16902
16903 cat >>confdefs.h <<\_ACEOF
16904 #define HAVE_UT_UT_TIME 1
16905 _ACEOF
16906
16907 fi
16908
16909 echo "$as_me:$LINENO: checking for ut_tv in utmp" >&5
16910 echo $ECHO_N "checking for ut_tv in utmp... $ECHO_C" >&6
16911 if test "${samba_cv_HAVE_UT_UT_TV+set}" = set; then
16912   echo $ECHO_N "(cached) $ECHO_C" >&6
16913 else
16914
16915 cat >conftest.$ac_ext <<_ACEOF
16916 #line $LINENO "configure"
16917 #include "confdefs.h"
16918 #include <sys/types.h>
16919 #include <utmp.h>
16920 int
16921 main ()
16922 {
16923 struct utmp ut;  struct timeval tv; ut.ut_tv = tv;
16924   ;
16925   return 0;
16926 }
16927 _ACEOF
16928 rm -f conftest.$ac_objext
16929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16930   (eval $ac_compile) 2>&5
16931   ac_status=$?
16932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933   (exit $ac_status); } &&
16934          { ac_try='test -s conftest.$ac_objext'
16935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936   (eval $ac_try) 2>&5
16937   ac_status=$?
16938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939   (exit $ac_status); }; }; then
16940   samba_cv_HAVE_UT_UT_TV=yes
16941 else
16942   echo "$as_me: failed program was:" >&5
16943 cat conftest.$ac_ext >&5
16944 samba_cv_HAVE_UT_UT_TV=no
16945 fi
16946 rm -f conftest.$ac_objext conftest.$ac_ext
16947 fi
16948 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TV" >&5
16949 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TV" >&6
16950 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
16951
16952 cat >>confdefs.h <<\_ACEOF
16953 #define HAVE_UT_UT_TV 1
16954 _ACEOF
16955
16956 fi
16957
16958 echo "$as_me:$LINENO: checking for ut_type in utmp" >&5
16959 echo $ECHO_N "checking for ut_type in utmp... $ECHO_C" >&6
16960 if test "${samba_cv_HAVE_UT_UT_TYPE+set}" = set; then
16961   echo $ECHO_N "(cached) $ECHO_C" >&6
16962 else
16963
16964 cat >conftest.$ac_ext <<_ACEOF
16965 #line $LINENO "configure"
16966 #include "confdefs.h"
16967 #include <sys/types.h>
16968 #include <utmp.h>
16969 int
16970 main ()
16971 {
16972 struct utmp ut;  ut.ut_type = 0;
16973   ;
16974   return 0;
16975 }
16976 _ACEOF
16977 rm -f conftest.$ac_objext
16978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16979   (eval $ac_compile) 2>&5
16980   ac_status=$?
16981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982   (exit $ac_status); } &&
16983          { ac_try='test -s conftest.$ac_objext'
16984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16985   (eval $ac_try) 2>&5
16986   ac_status=$?
16987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988   (exit $ac_status); }; }; then
16989   samba_cv_HAVE_UT_UT_TYPE=yes
16990 else
16991   echo "$as_me: failed program was:" >&5
16992 cat conftest.$ac_ext >&5
16993 samba_cv_HAVE_UT_UT_TYPE=no
16994 fi
16995 rm -f conftest.$ac_objext conftest.$ac_ext
16996 fi
16997 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TYPE" >&5
16998 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TYPE" >&6
16999 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
17000
17001 cat >>confdefs.h <<\_ACEOF
17002 #define HAVE_UT_UT_TYPE 1
17003 _ACEOF
17004
17005 fi
17006
17007 echo "$as_me:$LINENO: checking for ut_pid in utmp" >&5
17008 echo $ECHO_N "checking for ut_pid in utmp... $ECHO_C" >&6
17009 if test "${samba_cv_HAVE_UT_UT_PID+set}" = set; then
17010   echo $ECHO_N "(cached) $ECHO_C" >&6
17011 else
17012
17013 cat >conftest.$ac_ext <<_ACEOF
17014 #line $LINENO "configure"
17015 #include "confdefs.h"
17016 #include <sys/types.h>
17017 #include <utmp.h>
17018 int
17019 main ()
17020 {
17021 struct utmp ut;  ut.ut_pid = 0;
17022   ;
17023   return 0;
17024 }
17025 _ACEOF
17026 rm -f conftest.$ac_objext
17027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17028   (eval $ac_compile) 2>&5
17029   ac_status=$?
17030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031   (exit $ac_status); } &&
17032          { ac_try='test -s conftest.$ac_objext'
17033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17034   (eval $ac_try) 2>&5
17035   ac_status=$?
17036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037   (exit $ac_status); }; }; then
17038   samba_cv_HAVE_UT_UT_PID=yes
17039 else
17040   echo "$as_me: failed program was:" >&5
17041 cat conftest.$ac_ext >&5
17042 samba_cv_HAVE_UT_UT_PID=no
17043 fi
17044 rm -f conftest.$ac_objext conftest.$ac_ext
17045 fi
17046 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_PID" >&5
17047 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_PID" >&6
17048 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
17049
17050 cat >>confdefs.h <<\_ACEOF
17051 #define HAVE_UT_UT_PID 1
17052 _ACEOF
17053
17054 fi
17055
17056 echo "$as_me:$LINENO: checking for ut_exit in utmp" >&5
17057 echo $ECHO_N "checking for ut_exit in utmp... $ECHO_C" >&6
17058 if test "${samba_cv_HAVE_UT_UT_EXIT+set}" = set; then
17059   echo $ECHO_N "(cached) $ECHO_C" >&6
17060 else
17061
17062 cat >conftest.$ac_ext <<_ACEOF
17063 #line $LINENO "configure"
17064 #include "confdefs.h"
17065 #include <sys/types.h>
17066 #include <utmp.h>
17067 int
17068 main ()
17069 {
17070 struct utmp ut;  ut.ut_exit.e_exit = 0;
17071   ;
17072   return 0;
17073 }
17074 _ACEOF
17075 rm -f conftest.$ac_objext
17076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17077   (eval $ac_compile) 2>&5
17078   ac_status=$?
17079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080   (exit $ac_status); } &&
17081          { ac_try='test -s conftest.$ac_objext'
17082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17083   (eval $ac_try) 2>&5
17084   ac_status=$?
17085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086   (exit $ac_status); }; }; then
17087   samba_cv_HAVE_UT_UT_EXIT=yes
17088 else
17089   echo "$as_me: failed program was:" >&5
17090 cat conftest.$ac_ext >&5
17091 samba_cv_HAVE_UT_UT_EXIT=no
17092 fi
17093 rm -f conftest.$ac_objext conftest.$ac_ext
17094 fi
17095 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_EXIT" >&5
17096 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_EXIT" >&6
17097 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
17098
17099 cat >>confdefs.h <<\_ACEOF
17100 #define HAVE_UT_UT_EXIT 1
17101 _ACEOF
17102
17103 fi
17104
17105 echo "$as_me:$LINENO: checking for ut_addr in utmp" >&5
17106 echo $ECHO_N "checking for ut_addr in utmp... $ECHO_C" >&6
17107 if test "${samba_cv_HAVE_UT_UT_ADDR+set}" = set; then
17108   echo $ECHO_N "(cached) $ECHO_C" >&6
17109 else
17110
17111 cat >conftest.$ac_ext <<_ACEOF
17112 #line $LINENO "configure"
17113 #include "confdefs.h"
17114 #include <sys/types.h>
17115 #include <utmp.h>
17116 int
17117 main ()
17118 {
17119 struct utmp ut;  ut.ut_addr = 0;
17120   ;
17121   return 0;
17122 }
17123 _ACEOF
17124 rm -f conftest.$ac_objext
17125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17126   (eval $ac_compile) 2>&5
17127   ac_status=$?
17128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129   (exit $ac_status); } &&
17130          { ac_try='test -s conftest.$ac_objext'
17131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132   (eval $ac_try) 2>&5
17133   ac_status=$?
17134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135   (exit $ac_status); }; }; then
17136   samba_cv_HAVE_UT_UT_ADDR=yes
17137 else
17138   echo "$as_me: failed program was:" >&5
17139 cat conftest.$ac_ext >&5
17140 samba_cv_HAVE_UT_UT_ADDR=no
17141 fi
17142 rm -f conftest.$ac_objext conftest.$ac_ext
17143 fi
17144 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ADDR" >&5
17145 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ADDR" >&6
17146 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
17147
17148 cat >>confdefs.h <<\_ACEOF
17149 #define HAVE_UT_UT_ADDR 1
17150 _ACEOF
17151
17152 fi
17153
17154 if test x$ac_cv_func_pututline = xyes ; then
17155   echo "$as_me:$LINENO: checking whether pututline returns pointer" >&5
17156 echo $ECHO_N "checking whether pututline returns pointer... $ECHO_C" >&6
17157 if test "${samba_cv_PUTUTLINE_RETURNS_UTMP+set}" = set; then
17158   echo $ECHO_N "(cached) $ECHO_C" >&6
17159 else
17160
17161   cat >conftest.$ac_ext <<_ACEOF
17162 #line $LINENO "configure"
17163 #include "confdefs.h"
17164 #include <sys/types.h>
17165 #include <utmp.h>
17166 int
17167 main ()
17168 {
17169 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
17170   ;
17171   return 0;
17172 }
17173 _ACEOF
17174 rm -f conftest.$ac_objext
17175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17176   (eval $ac_compile) 2>&5
17177   ac_status=$?
17178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179   (exit $ac_status); } &&
17180          { ac_try='test -s conftest.$ac_objext'
17181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182   (eval $ac_try) 2>&5
17183   ac_status=$?
17184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185   (exit $ac_status); }; }; then
17186   samba_cv_PUTUTLINE_RETURNS_UTMP=yes
17187 else
17188   echo "$as_me: failed program was:" >&5
17189 cat conftest.$ac_ext >&5
17190 samba_cv_PUTUTLINE_RETURNS_UTMP=no
17191 fi
17192 rm -f conftest.$ac_objext conftest.$ac_ext
17193 fi
17194 echo "$as_me:$LINENO: result: $samba_cv_PUTUTLINE_RETURNS_UTMP" >&5
17195 echo "${ECHO_T}$samba_cv_PUTUTLINE_RETURNS_UTMP" >&6
17196   if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
17197
17198 cat >>confdefs.h <<\_ACEOF
17199 #define PUTUTLINE_RETURNS_UTMP 1
17200 _ACEOF
17201
17202   fi
17203 fi
17204
17205 echo "$as_me:$LINENO: checking for ut_syslen in utmpx" >&5
17206 echo $ECHO_N "checking for ut_syslen in utmpx... $ECHO_C" >&6
17207 if test "${samba_cv_HAVE_UX_UT_SYSLEN+set}" = set; then
17208   echo $ECHO_N "(cached) $ECHO_C" >&6
17209 else
17210
17211 cat >conftest.$ac_ext <<_ACEOF
17212 #line $LINENO "configure"
17213 #include "confdefs.h"
17214 #include <sys/types.h>
17215 #include <utmpx.h>
17216 int
17217 main ()
17218 {
17219 struct utmpx ux;  ux.ut_syslen = 0;
17220   ;
17221   return 0;
17222 }
17223 _ACEOF
17224 rm -f conftest.$ac_objext
17225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17226   (eval $ac_compile) 2>&5
17227   ac_status=$?
17228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229   (exit $ac_status); } &&
17230          { ac_try='test -s conftest.$ac_objext'
17231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232   (eval $ac_try) 2>&5
17233   ac_status=$?
17234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235   (exit $ac_status); }; }; then
17236   samba_cv_HAVE_UX_UT_SYSLEN=yes
17237 else
17238   echo "$as_me: failed program was:" >&5
17239 cat conftest.$ac_ext >&5
17240 samba_cv_HAVE_UX_UT_SYSLEN=no
17241 fi
17242 rm -f conftest.$ac_objext conftest.$ac_ext
17243 fi
17244 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UX_UT_SYSLEN" >&5
17245 echo "${ECHO_T}$samba_cv_HAVE_UX_UT_SYSLEN" >&6
17246 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
17247
17248 cat >>confdefs.h <<\_ACEOF
17249 #define HAVE_UX_UT_SYSLEN 1
17250 _ACEOF
17251
17252 fi
17253
17254
17255 #################################################
17256 # check for libiconv support
17257 echo "$as_me:$LINENO: checking whether to use libiconv" >&5
17258 echo $ECHO_N "checking whether to use libiconv... $ECHO_C" >&6
17259
17260 # Check whether --with-libiconv or --without-libiconv was given.
17261 if test "${with_libiconv+set}" = set; then
17262   withval="$with_libiconv"
17263    case "$withval" in
17264   no)
17265     echo "$as_me:$LINENO: result: no" >&5
17266 echo "${ECHO_T}no" >&6
17267     ;;
17268   *)
17269     echo "$as_me:$LINENO: result: yes" >&5
17270 echo "${ECHO_T}yes" >&6
17271     CFLAGS="$CFLAGS -I$withval/include"
17272     LDFLAGS="$LDFLAGS -L$withval/lib"
17273
17274 echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
17275 echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6
17276 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
17277   echo $ECHO_N "(cached) $ECHO_C" >&6
17278 else
17279   ac_check_lib_save_LIBS=$LIBS
17280 LIBS="-liconv  $LIBS"
17281 cat >conftest.$ac_ext <<_ACEOF
17282 #line $LINENO "configure"
17283 #include "confdefs.h"
17284
17285 /* Override any gcc2 internal prototype to avoid an error.  */
17286 #ifdef __cplusplus
17287 extern "C"
17288 #endif
17289 /* We use char because int might match the return type of a gcc2
17290    builtin and then its argument prototype would still apply.  */
17291 char iconv_open ();
17292 int
17293 main ()
17294 {
17295 iconv_open ();
17296   ;
17297   return 0;
17298 }
17299 _ACEOF
17300 rm -f conftest.$ac_objext conftest$ac_exeext
17301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17302   (eval $ac_link) 2>&5
17303   ac_status=$?
17304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305   (exit $ac_status); } &&
17306          { ac_try='test -s conftest$ac_exeext'
17307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17308   (eval $ac_try) 2>&5
17309   ac_status=$?
17310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311   (exit $ac_status); }; }; then
17312   ac_cv_lib_iconv_iconv_open=yes
17313 else
17314   echo "$as_me: failed program was:" >&5
17315 cat conftest.$ac_ext >&5
17316 ac_cv_lib_iconv_iconv_open=no
17317 fi
17318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17319 LIBS=$ac_check_lib_save_LIBS
17320 fi
17321 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
17322 echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6
17323 if test $ac_cv_lib_iconv_iconv_open = yes; then
17324   cat >>confdefs.h <<_ACEOF
17325 #define HAVE_LIBICONV 1
17326 _ACEOF
17327
17328   LIBS="-liconv $LIBS"
17329
17330 fi
17331
17332
17333 cat >>confdefs.h <<_ACEOF
17334 #define WITH_LIBICONV "${withval}"
17335 _ACEOF
17336
17337     ;;
17338   esac
17339 else
17340   echo "$as_me:$LINENO: result: no" >&5
17341 echo "${ECHO_T}no" >&6
17342
17343 fi;
17344
17345
17346 ############
17347 # check for iconv in libc
17348 echo "$as_me:$LINENO: checking for working iconv" >&5
17349 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6
17350 if test "${samba_cv_HAVE_NATIVE_ICONV+set}" = set; then
17351   echo $ECHO_N "(cached) $ECHO_C" >&6
17352 else
17353
17354 if test "$cross_compiling" = yes; then
17355   samba_cv_HAVE_NATIVE_ICONV=cross
17356 else
17357   cat >conftest.$ac_ext <<_ACEOF
17358 #line $LINENO "configure"
17359 #include "confdefs.h"
17360
17361 #include <iconv.h>
17362 main() {
17363        iconv_t cd = iconv_open("ASCII", "UCS-2LE");
17364        if (cd == 0 || cd == (iconv_t)-1) return -1;
17365        return 0;
17366 }
17367
17368 _ACEOF
17369 rm -f conftest$ac_exeext
17370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17371   (eval $ac_link) 2>&5
17372   ac_status=$?
17373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376   (eval $ac_try) 2>&5
17377   ac_status=$?
17378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379   (exit $ac_status); }; }; then
17380   samba_cv_HAVE_NATIVE_ICONV=yes
17381 else
17382   echo "$as_me: program exited with status $ac_status" >&5
17383 echo "$as_me: failed program was:" >&5
17384 cat conftest.$ac_ext >&5
17385 ( exit $ac_status )
17386 samba_cv_HAVE_NATIVE_ICONV=no
17387 fi
17388 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17389 fi
17390 fi
17391 echo "$as_me:$LINENO: result: $samba_cv_HAVE_NATIVE_ICONV" >&5
17392 echo "${ECHO_T}$samba_cv_HAVE_NATIVE_ICONV" >&6
17393 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
17394
17395 cat >>confdefs.h <<\_ACEOF
17396 #define HAVE_NATIVE_ICONV 1
17397 _ACEOF
17398
17399 fi
17400
17401
17402 echo "$as_me:$LINENO: checking for Linux kernel oplocks" >&5
17403 echo $ECHO_N "checking for Linux kernel oplocks... $ECHO_C" >&6
17404 if test "${samba_cv_HAVE_KERNEL_OPLOCKS_LINUX+set}" = set; then
17405   echo $ECHO_N "(cached) $ECHO_C" >&6
17406 else
17407
17408 if test "$cross_compiling" = yes; then
17409   samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
17410 else
17411   cat >conftest.$ac_ext <<_ACEOF
17412 #line $LINENO "configure"
17413 #include "confdefs.h"
17414
17415 #include <sys/types.h>
17416 #include <fcntl.h>
17417 #ifndef F_GETLEASE
17418 #define F_GETLEASE      1025
17419 #endif
17420 main() {
17421        int fd = open("/dev/null", O_RDONLY);
17422        return fcntl(fd, F_GETLEASE, 0) == -1;
17423 }
17424
17425 _ACEOF
17426 rm -f conftest$ac_exeext
17427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17428   (eval $ac_link) 2>&5
17429   ac_status=$?
17430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433   (eval $ac_try) 2>&5
17434   ac_status=$?
17435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436   (exit $ac_status); }; }; then
17437   samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
17438 else
17439   echo "$as_me: program exited with status $ac_status" >&5
17440 echo "$as_me: failed program was:" >&5
17441 cat conftest.$ac_ext >&5
17442 ( exit $ac_status )
17443 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
17444 fi
17445 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17446 fi
17447 fi
17448 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&5
17449 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&6
17450 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
17451
17452 cat >>confdefs.h <<\_ACEOF
17453 #define HAVE_KERNEL_OPLOCKS_LINUX 1
17454 _ACEOF
17455
17456 fi
17457
17458 echo "$as_me:$LINENO: checking for kernel change notify support" >&5
17459 echo $ECHO_N "checking for kernel change notify support... $ECHO_C" >&6
17460 if test "${samba_cv_HAVE_KERNEL_CHANGE_NOTIFY+set}" = set; then
17461   echo $ECHO_N "(cached) $ECHO_C" >&6
17462 else
17463
17464 if test "$cross_compiling" = yes; then
17465   samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
17466 else
17467   cat >conftest.$ac_ext <<_ACEOF
17468 #line $LINENO "configure"
17469 #include "confdefs.h"
17470
17471 #include <sys/types.h>
17472 #include <fcntl.h>
17473 #include <signal.h>
17474 #ifndef F_NOTIFY
17475 #define F_NOTIFY 1026
17476 #endif
17477 main() {
17478         exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ?  1 : 0);
17479 }
17480
17481 _ACEOF
17482 rm -f conftest$ac_exeext
17483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17484   (eval $ac_link) 2>&5
17485   ac_status=$?
17486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489   (eval $ac_try) 2>&5
17490   ac_status=$?
17491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492   (exit $ac_status); }; }; then
17493   samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
17494 else
17495   echo "$as_me: program exited with status $ac_status" >&5
17496 echo "$as_me: failed program was:" >&5
17497 cat conftest.$ac_ext >&5
17498 ( exit $ac_status )
17499 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
17500 fi
17501 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17502 fi
17503 fi
17504 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&5
17505 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&6
17506 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
17507
17508 cat >>confdefs.h <<\_ACEOF
17509 #define HAVE_KERNEL_CHANGE_NOTIFY 1
17510 _ACEOF
17511
17512 fi
17513
17514 echo "$as_me:$LINENO: checking for kernel share modes" >&5
17515 echo $ECHO_N "checking for kernel share modes... $ECHO_C" >&6
17516 if test "${samba_cv_HAVE_KERNEL_SHARE_MODES+set}" = set; then
17517   echo $ECHO_N "(cached) $ECHO_C" >&6
17518 else
17519
17520 if test "$cross_compiling" = yes; then
17521   samba_cv_HAVE_KERNEL_SHARE_MODES=cross
17522 else
17523   cat >conftest.$ac_ext <<_ACEOF
17524 #line $LINENO "configure"
17525 #include "confdefs.h"
17526
17527 #include <sys/types.h>
17528 #include <fcntl.h>
17529 #include <signal.h>
17530 #include <sys/file.h>
17531 #ifndef LOCK_MAND
17532 #define LOCK_MAND       32
17533 #define LOCK_READ       64
17534 #endif
17535 main() {
17536         exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
17537 }
17538
17539 _ACEOF
17540 rm -f conftest$ac_exeext
17541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17542   (eval $ac_link) 2>&5
17543   ac_status=$?
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547   (eval $ac_try) 2>&5
17548   ac_status=$?
17549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550   (exit $ac_status); }; }; then
17551   samba_cv_HAVE_KERNEL_SHARE_MODES=yes
17552 else
17553   echo "$as_me: program exited with status $ac_status" >&5
17554 echo "$as_me: failed program was:" >&5
17555 cat conftest.$ac_ext >&5
17556 ( exit $ac_status )
17557 samba_cv_HAVE_KERNEL_SHARE_MODES=no
17558 fi
17559 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17560 fi
17561 fi
17562 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_SHARE_MODES" >&5
17563 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_SHARE_MODES" >&6
17564 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
17565
17566 cat >>confdefs.h <<\_ACEOF
17567 #define HAVE_KERNEL_SHARE_MODES 1
17568 _ACEOF
17569
17570 fi
17571
17572
17573
17574
17575 echo "$as_me:$LINENO: checking for IRIX kernel oplock type definitions" >&5
17576 echo $ECHO_N "checking for IRIX kernel oplock type definitions... $ECHO_C" >&6
17577 if test "${samba_cv_HAVE_KERNEL_OPLOCKS_IRIX+set}" = set; then
17578   echo $ECHO_N "(cached) $ECHO_C" >&6
17579 else
17580
17581 cat >conftest.$ac_ext <<_ACEOF
17582 #line $LINENO "configure"
17583 #include "confdefs.h"
17584 #include <sys/types.h>
17585 #include <fcntl.h>
17586 int
17587 main ()
17588 {
17589 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
17590   ;
17591   return 0;
17592 }
17593 _ACEOF
17594 rm -f conftest.$ac_objext
17595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17596   (eval $ac_compile) 2>&5
17597   ac_status=$?
17598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599   (exit $ac_status); } &&
17600          { ac_try='test -s conftest.$ac_objext'
17601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602   (eval $ac_try) 2>&5
17603   ac_status=$?
17604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605   (exit $ac_status); }; }; then
17606   samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
17607 else
17608   echo "$as_me: failed program was:" >&5
17609 cat conftest.$ac_ext >&5
17610 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
17611 fi
17612 rm -f conftest.$ac_objext conftest.$ac_ext
17613 fi
17614 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&5
17615 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&6
17616 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
17617
17618 cat >>confdefs.h <<\_ACEOF
17619 #define HAVE_KERNEL_OPLOCKS_IRIX 1
17620 _ACEOF
17621
17622 fi
17623
17624 echo "$as_me:$LINENO: checking for irix specific capabilities" >&5
17625 echo $ECHO_N "checking for irix specific capabilities... $ECHO_C" >&6
17626 if test "${samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES+set}" = set; then
17627   echo $ECHO_N "(cached) $ECHO_C" >&6
17628 else
17629
17630 if test "$cross_compiling" = yes; then
17631   samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
17632 else
17633   cat >conftest.$ac_ext <<_ACEOF
17634 #line $LINENO "configure"
17635 #include "confdefs.h"
17636 #include <sys/types.h>
17637 #include <sys/capability.h>
17638 main() {
17639  cap_t cap;
17640  if ((cap = cap_get_proc()) == NULL)
17641    exit(1);
17642  cap->cap_effective |= CAP_NETWORK_MGT;
17643  cap->cap_inheritable |= CAP_NETWORK_MGT;
17644  cap_set_proc(cap);
17645  exit(0);
17646 }
17647
17648 _ACEOF
17649 rm -f conftest$ac_exeext
17650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17651   (eval $ac_link) 2>&5
17652   ac_status=$?
17653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656   (eval $ac_try) 2>&5
17657   ac_status=$?
17658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659   (exit $ac_status); }; }; then
17660   samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
17661 else
17662   echo "$as_me: program exited with status $ac_status" >&5
17663 echo "$as_me: failed program was:" >&5
17664 cat conftest.$ac_ext >&5
17665 ( exit $ac_status )
17666 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
17667 fi
17668 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17669 fi
17670 fi
17671 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&5
17672 echo "${ECHO_T}$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&6
17673 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
17674
17675 cat >>confdefs.h <<\_ACEOF
17676 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
17677 _ACEOF
17678
17679 fi
17680
17681 #
17682 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
17683 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
17684 #
17685
17686 echo "$as_me:$LINENO: checking for int16 typedef included by rpc/rpc.h" >&5
17687 echo $ECHO_N "checking for int16 typedef included by rpc/rpc.h... $ECHO_C" >&6
17688 if test "${samba_cv_HAVE_INT16_FROM_RPC_RPC_H+set}" = set; then
17689   echo $ECHO_N "(cached) $ECHO_C" >&6
17690 else
17691
17692 cat >conftest.$ac_ext <<_ACEOF
17693 #line $LINENO "configure"
17694 #include "confdefs.h"
17695 #include <sys/types.h>
17696 #if defined(HAVE_RPC_RPC_H)
17697 #include <rpc/rpc.h>
17698 #endif
17699 int
17700 main ()
17701 {
17702 int16 testvar;
17703   ;
17704   return 0;
17705 }
17706 _ACEOF
17707 rm -f conftest.$ac_objext
17708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17709   (eval $ac_compile) 2>&5
17710   ac_status=$?
17711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712   (exit $ac_status); } &&
17713          { ac_try='test -s conftest.$ac_objext'
17714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715   (eval $ac_try) 2>&5
17716   ac_status=$?
17717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718   (exit $ac_status); }; }; then
17719   samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
17720 else
17721   echo "$as_me: failed program was:" >&5
17722 cat conftest.$ac_ext >&5
17723 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
17724 fi
17725 rm -f conftest.$ac_objext conftest.$ac_ext
17726 fi
17727 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&5
17728 echo "${ECHO_T}$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&6
17729 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
17730
17731 cat >>confdefs.h <<\_ACEOF
17732 #define HAVE_INT16_FROM_RPC_RPC_H 1
17733 _ACEOF
17734
17735 fi
17736
17737 echo "$as_me:$LINENO: checking for uint16 typedef included by rpc/rpc.h" >&5
17738 echo $ECHO_N "checking for uint16 typedef included by rpc/rpc.h... $ECHO_C" >&6
17739 if test "${samba_cv_HAVE_UINT16_FROM_RPC_RPC_H+set}" = set; then
17740   echo $ECHO_N "(cached) $ECHO_C" >&6
17741 else
17742
17743 cat >conftest.$ac_ext <<_ACEOF
17744 #line $LINENO "configure"
17745 #include "confdefs.h"
17746 #include <sys/types.h>
17747 #if defined(HAVE_RPC_RPC_H)
17748 #include <rpc/rpc.h>
17749 #endif
17750 int
17751 main ()
17752 {
17753 uint16 testvar;
17754   ;
17755   return 0;
17756 }
17757 _ACEOF
17758 rm -f conftest.$ac_objext
17759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17760   (eval $ac_compile) 2>&5
17761   ac_status=$?
17762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763   (exit $ac_status); } &&
17764          { ac_try='test -s conftest.$ac_objext'
17765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766   (eval $ac_try) 2>&5
17767   ac_status=$?
17768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); }; }; then
17770   samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
17771 else
17772   echo "$as_me: failed program was:" >&5
17773 cat conftest.$ac_ext >&5
17774 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
17775 fi
17776 rm -f conftest.$ac_objext conftest.$ac_ext
17777 fi
17778 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&5
17779 echo "${ECHO_T}$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&6
17780 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
17781
17782 cat >>confdefs.h <<\_ACEOF
17783 #define HAVE_UINT16_FROM_RPC_RPC_H 1
17784 _ACEOF
17785
17786 fi
17787
17788 echo "$as_me:$LINENO: checking for int32 typedef included by rpc/rpc.h" >&5
17789 echo $ECHO_N "checking for int32 typedef included by rpc/rpc.h... $ECHO_C" >&6
17790 if test "${samba_cv_HAVE_INT32_FROM_RPC_RPC_H+set}" = set; then
17791   echo $ECHO_N "(cached) $ECHO_C" >&6
17792 else
17793
17794 cat >conftest.$ac_ext <<_ACEOF
17795 #line $LINENO "configure"
17796 #include "confdefs.h"
17797 #include <sys/types.h>
17798 #if defined(HAVE_RPC_RPC_H)
17799 #include <rpc/rpc.h>
17800 #endif
17801 int
17802 main ()
17803 {
17804 int32 testvar;
17805   ;
17806   return 0;
17807 }
17808 _ACEOF
17809 rm -f conftest.$ac_objext
17810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17811   (eval $ac_compile) 2>&5
17812   ac_status=$?
17813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814   (exit $ac_status); } &&
17815          { ac_try='test -s conftest.$ac_objext'
17816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817   (eval $ac_try) 2>&5
17818   ac_status=$?
17819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820   (exit $ac_status); }; }; then
17821   samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
17822 else
17823   echo "$as_me: failed program was:" >&5
17824 cat conftest.$ac_ext >&5
17825 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
17826 fi
17827 rm -f conftest.$ac_objext conftest.$ac_ext
17828 fi
17829 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&5
17830 echo "${ECHO_T}$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&6
17831 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
17832
17833 cat >>confdefs.h <<\_ACEOF
17834 #define HAVE_INT32_FROM_RPC_RPC_H 1
17835 _ACEOF
17836
17837 fi
17838
17839 echo "$as_me:$LINENO: checking for uint32 typedef included by rpc/rpc.h" >&5
17840 echo $ECHO_N "checking for uint32 typedef included by rpc/rpc.h... $ECHO_C" >&6
17841 if test "${samba_cv_HAVE_UINT32_FROM_RPC_RPC_H+set}" = set; then
17842   echo $ECHO_N "(cached) $ECHO_C" >&6
17843 else
17844
17845 cat >conftest.$ac_ext <<_ACEOF
17846 #line $LINENO "configure"
17847 #include "confdefs.h"
17848 #include <sys/types.h>
17849 #if defined(HAVE_RPC_RPC_H)
17850 #include <rpc/rpc.h>
17851 #endif
17852 int
17853 main ()
17854 {
17855 uint32 testvar;
17856   ;
17857   return 0;
17858 }
17859 _ACEOF
17860 rm -f conftest.$ac_objext
17861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17862   (eval $ac_compile) 2>&5
17863   ac_status=$?
17864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865   (exit $ac_status); } &&
17866          { ac_try='test -s conftest.$ac_objext'
17867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868   (eval $ac_try) 2>&5
17869   ac_status=$?
17870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871   (exit $ac_status); }; }; then
17872   samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
17873 else
17874   echo "$as_me: failed program was:" >&5
17875 cat conftest.$ac_ext >&5
17876 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
17877 fi
17878 rm -f conftest.$ac_objext conftest.$ac_ext
17879 fi
17880 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&5
17881 echo "${ECHO_T}$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&6
17882 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
17883
17884 cat >>confdefs.h <<\_ACEOF
17885 #define HAVE_UINT32_FROM_RPC_RPC_H 1
17886 _ACEOF
17887
17888 fi
17889
17890
17891 echo "$as_me:$LINENO: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
17892 echo $ECHO_N "checking for conflicting AUTH_ERROR define in rpc/rpc.h... $ECHO_C" >&6
17893 if test "${samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT+set}" = set; then
17894   echo $ECHO_N "(cached) $ECHO_C" >&6
17895 else
17896
17897 cat >conftest.$ac_ext <<_ACEOF
17898 #line $LINENO "configure"
17899 #include "confdefs.h"
17900 #include <sys/types.h>
17901 #ifdef HAVE_SYS_SECURITY_H
17902 #include <sys/security.h>
17903 #include <prot.h>
17904 #endif  /* HAVE_SYS_SECURITY_H */
17905 #if defined(HAVE_RPC_RPC_H)
17906 #include <rpc/rpc.h>
17907 #endif
17908 int
17909 main ()
17910 {
17911 int testvar;
17912   ;
17913   return 0;
17914 }
17915 _ACEOF
17916 rm -f conftest.$ac_objext
17917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17918   (eval $ac_compile) 2>&5
17919   ac_status=$?
17920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921   (exit $ac_status); } &&
17922          { ac_try='test -s conftest.$ac_objext'
17923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924   (eval $ac_try) 2>&5
17925   ac_status=$?
17926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927   (exit $ac_status); }; }; then
17928   samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
17929 else
17930   echo "$as_me: failed program was:" >&5
17931 cat conftest.$ac_ext >&5
17932 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
17933 fi
17934 rm -f conftest.$ac_objext conftest.$ac_ext
17935 fi
17936 echo "$as_me:$LINENO: result: $samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&5
17937 echo "${ECHO_T}$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&6
17938 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
17939
17940 cat >>confdefs.h <<\_ACEOF
17941 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
17942 _ACEOF
17943
17944 fi
17945
17946 echo "$as_me:$LINENO: checking for test routines" >&5
17947 echo $ECHO_N "checking for test routines... $ECHO_C" >&6
17948 if test "$cross_compiling" = yes; then
17949   { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
17950 echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
17951 else
17952   cat >conftest.$ac_ext <<_ACEOF
17953 #line $LINENO "configure"
17954 #include "confdefs.h"
17955 #include "${srcdir-.}/tests/trivial.c"
17956 _ACEOF
17957 rm -f conftest$ac_exeext
17958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17959   (eval $ac_link) 2>&5
17960   ac_status=$?
17961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964   (eval $ac_try) 2>&5
17965   ac_status=$?
17966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967   (exit $ac_status); }; }; then
17968   echo "$as_me:$LINENO: result: yes" >&5
17969 echo "${ECHO_T}yes" >&6
17970 else
17971   echo "$as_me: program exited with status $ac_status" >&5
17972 echo "$as_me: failed program was:" >&5
17973 cat conftest.$ac_ext >&5
17974 ( exit $ac_status )
17975 { { echo "$as_me:$LINENO: error: cant find test code. Aborting config" >&5
17976 echo "$as_me: error: cant find test code. Aborting config" >&2;}
17977    { (exit 1); exit 1; }; }
17978 fi
17979 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17980 fi
17981
17982 echo "$as_me:$LINENO: checking for ftruncate extend" >&5
17983 echo $ECHO_N "checking for ftruncate extend... $ECHO_C" >&6
17984 if test "${samba_cv_HAVE_FTRUNCATE_EXTEND+set}" = set; then
17985   echo $ECHO_N "(cached) $ECHO_C" >&6
17986 else
17987
17988 if test "$cross_compiling" = yes; then
17989   samba_cv_HAVE_FTRUNCATE_EXTEND=cross
17990 else
17991   cat >conftest.$ac_ext <<_ACEOF
17992 #line $LINENO "configure"
17993 #include "confdefs.h"
17994 #include "${srcdir-.}/tests/ftruncate.c"
17995 _ACEOF
17996 rm -f conftest$ac_exeext
17997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17998   (eval $ac_link) 2>&5
17999   ac_status=$?
18000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003   (eval $ac_try) 2>&5
18004   ac_status=$?
18005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006   (exit $ac_status); }; }; then
18007   samba_cv_HAVE_FTRUNCATE_EXTEND=yes
18008 else
18009   echo "$as_me: program exited with status $ac_status" >&5
18010 echo "$as_me: failed program was:" >&5
18011 cat conftest.$ac_ext >&5
18012 ( exit $ac_status )
18013 samba_cv_HAVE_FTRUNCATE_EXTEND=no
18014 fi
18015 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18016 fi
18017 fi
18018 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FTRUNCATE_EXTEND" >&5
18019 echo "${ECHO_T}$samba_cv_HAVE_FTRUNCATE_EXTEND" >&6
18020 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
18021
18022 cat >>confdefs.h <<\_ACEOF
18023 #define HAVE_FTRUNCATE_EXTEND 1
18024 _ACEOF
18025
18026 fi
18027
18028 echo "$as_me:$LINENO: checking for AF_LOCAL socket support" >&5
18029 echo $ECHO_N "checking for AF_LOCAL socket support... $ECHO_C" >&6
18030 if test "${samba_cv_HAVE_WORKING_AF_LOCAL+set}" = set; then
18031   echo $ECHO_N "(cached) $ECHO_C" >&6
18032 else
18033
18034 if test "$cross_compiling" = yes; then
18035   samba_cv_HAVE_WORKING_AF_LOCAL=cross
18036 else
18037   cat >conftest.$ac_ext <<_ACEOF
18038 #line $LINENO "configure"
18039 #include "confdefs.h"
18040 #include "${srcdir-.}/tests/unixsock.c"
18041 _ACEOF
18042 rm -f conftest$ac_exeext
18043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18044   (eval $ac_link) 2>&5
18045   ac_status=$?
18046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049   (eval $ac_try) 2>&5
18050   ac_status=$?
18051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052   (exit $ac_status); }; }; then
18053   samba_cv_HAVE_WORKING_AF_LOCAL=yes
18054 else
18055   echo "$as_me: program exited with status $ac_status" >&5
18056 echo "$as_me: failed program was:" >&5
18057 cat conftest.$ac_ext >&5
18058 ( exit $ac_status )
18059 samba_cv_HAVE_WORKING_AF_LOCAL=no
18060 fi
18061 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18062 fi
18063 fi
18064 echo "$as_me:$LINENO: result: $samba_cv_HAVE_WORKING_AF_LOCAL" >&5
18065 echo "${ECHO_T}$samba_cv_HAVE_WORKING_AF_LOCAL" >&6
18066 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
18067 then
18068
18069 cat >>confdefs.h <<\_ACEOF
18070 #define HAVE_WORKING_AF_LOCAL 1
18071 _ACEOF
18072
18073 fi
18074
18075 echo "$as_me:$LINENO: checking for broken getgroups" >&5
18076 echo $ECHO_N "checking for broken getgroups... $ECHO_C" >&6
18077 if test "${samba_cv_HAVE_BROKEN_GETGROUPS+set}" = set; then
18078   echo $ECHO_N "(cached) $ECHO_C" >&6
18079 else
18080
18081 if test "$cross_compiling" = yes; then
18082   samba_cv_HAVE_BROKEN_GETGROUPS=cross
18083 else
18084   cat >conftest.$ac_ext <<_ACEOF
18085 #line $LINENO "configure"
18086 #include "confdefs.h"
18087 #include "${srcdir-.}/tests/getgroups.c"
18088 _ACEOF
18089 rm -f conftest$ac_exeext
18090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18091   (eval $ac_link) 2>&5
18092   ac_status=$?
18093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096   (eval $ac_try) 2>&5
18097   ac_status=$?
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); }; }; then
18100   samba_cv_HAVE_BROKEN_GETGROUPS=yes
18101 else
18102   echo "$as_me: program exited with status $ac_status" >&5
18103 echo "$as_me: failed program was:" >&5
18104 cat conftest.$ac_ext >&5
18105 ( exit $ac_status )
18106 samba_cv_HAVE_BROKEN_GETGROUPS=no
18107 fi
18108 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18109 fi
18110 fi
18111 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_GETGROUPS" >&5
18112 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_GETGROUPS" >&6
18113 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
18114
18115 cat >>confdefs.h <<\_ACEOF
18116 #define HAVE_BROKEN_GETGROUPS 1
18117 _ACEOF
18118
18119 fi
18120
18121 echo "$as_me:$LINENO: checking whether getpass should be replaced" >&5
18122 echo $ECHO_N "checking whether getpass should be replaced... $ECHO_C" >&6
18123 if test "${samba_cv_REPLACE_GETPASS+set}" = set; then
18124   echo $ECHO_N "(cached) $ECHO_C" >&6
18125 else
18126
18127 SAVE_CPPFLAGS="$CPPFLAGS"
18128 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt  -I${srcdir-.}/smbwrapper"
18129 cat >conftest.$ac_ext <<_ACEOF
18130 #line $LINENO "configure"
18131 #include "confdefs.h"
18132
18133 #define REPLACE_GETPASS 1
18134 #define NO_CONFIG_H 1
18135 #define main dont_declare_main
18136 #include "${srcdir-.}/lib/getsmbpass.c"
18137 #undef main
18138
18139 int
18140 main ()
18141 {
18142
18143   ;
18144   return 0;
18145 }
18146 _ACEOF
18147 rm -f conftest.$ac_objext
18148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18149   (eval $ac_compile) 2>&5
18150   ac_status=$?
18151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152   (exit $ac_status); } &&
18153          { ac_try='test -s conftest.$ac_objext'
18154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155   (eval $ac_try) 2>&5
18156   ac_status=$?
18157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158   (exit $ac_status); }; }; then
18159   samba_cv_REPLACE_GETPASS=yes
18160 else
18161   echo "$as_me: failed program was:" >&5
18162 cat conftest.$ac_ext >&5
18163 samba_cv_REPLACE_GETPASS=no
18164 fi
18165 rm -f conftest.$ac_objext conftest.$ac_ext
18166 CPPFLAGS="$SAVE_CPPFLAGS"
18167
18168 fi
18169 echo "$as_me:$LINENO: result: $samba_cv_REPLACE_GETPASS" >&5
18170 echo "${ECHO_T}$samba_cv_REPLACE_GETPASS" >&6
18171 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
18172
18173 cat >>confdefs.h <<\_ACEOF
18174 #define REPLACE_GETPASS 1
18175 _ACEOF
18176
18177 fi
18178
18179 echo "$as_me:$LINENO: checking for broken inet_ntoa" >&5
18180 echo $ECHO_N "checking for broken inet_ntoa... $ECHO_C" >&6
18181 if test "${samba_cv_REPLACE_INET_NTOA+set}" = set; then
18182   echo $ECHO_N "(cached) $ECHO_C" >&6
18183 else
18184
18185 if test "$cross_compiling" = yes; then
18186   samba_cv_REPLACE_INET_NTOA=cross
18187 else
18188   cat >conftest.$ac_ext <<_ACEOF
18189 #line $LINENO "configure"
18190 #include "confdefs.h"
18191
18192 #include <stdio.h>
18193 #include <sys/types.h>
18194 #include <netinet/in.h>
18195 #ifdef HAVE_ARPA_INET_H
18196 #include <arpa/inet.h>
18197 #endif
18198 main() { struct in_addr ip; ip.s_addr = 0x12345678;
18199 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
18200     strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
18201 exit(1);}
18202 _ACEOF
18203 rm -f conftest$ac_exeext
18204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18205   (eval $ac_link) 2>&5
18206   ac_status=$?
18207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18210   (eval $ac_try) 2>&5
18211   ac_status=$?
18212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213   (exit $ac_status); }; }; then
18214   samba_cv_REPLACE_INET_NTOA=yes
18215 else
18216   echo "$as_me: program exited with status $ac_status" >&5
18217 echo "$as_me: failed program was:" >&5
18218 cat conftest.$ac_ext >&5
18219 ( exit $ac_status )
18220 samba_cv_REPLACE_INET_NTOA=no
18221 fi
18222 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18223 fi
18224 fi
18225 echo "$as_me:$LINENO: result: $samba_cv_REPLACE_INET_NTOA" >&5
18226 echo "${ECHO_T}$samba_cv_REPLACE_INET_NTOA" >&6
18227 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
18228
18229 cat >>confdefs.h <<\_ACEOF
18230 #define REPLACE_INET_NTOA 1
18231 _ACEOF
18232
18233 fi
18234
18235 echo "$as_me:$LINENO: checking for secure mkstemp" >&5
18236 echo $ECHO_N "checking for secure mkstemp... $ECHO_C" >&6
18237 if test "${samba_cv_HAVE_SECURE_MKSTEMP+set}" = set; then
18238   echo $ECHO_N "(cached) $ECHO_C" >&6
18239 else
18240
18241 if test "$cross_compiling" = yes; then
18242   samba_cv_HAVE_SECURE_MKSTEMP=cross
18243 else
18244   cat >conftest.$ac_ext <<_ACEOF
18245 #line $LINENO "configure"
18246 #include "confdefs.h"
18247 #include <stdlib.h>
18248 #include <sys/types.h>
18249 #include <sys/stat.h>
18250 #include <unistd.h>
18251 main() {
18252   struct stat st;
18253   char tpl[20]="/tmp/test.XXXXXX";
18254   int fd = mkstemp(tpl);
18255   if (fd == -1) exit(1);
18256   unlink(tpl);
18257   if (fstat(fd, &st) != 0) exit(1);
18258   if ((st.st_mode & 0777) != 0600) exit(1);
18259   exit(0);
18260 }
18261 _ACEOF
18262 rm -f conftest$ac_exeext
18263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18264   (eval $ac_link) 2>&5
18265   ac_status=$?
18266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18269   (eval $ac_try) 2>&5
18270   ac_status=$?
18271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272   (exit $ac_status); }; }; then
18273   samba_cv_HAVE_SECURE_MKSTEMP=yes
18274 else
18275   echo "$as_me: program exited with status $ac_status" >&5
18276 echo "$as_me: failed program was:" >&5
18277 cat conftest.$ac_ext >&5
18278 ( exit $ac_status )
18279 samba_cv_HAVE_SECURE_MKSTEMP=no
18280 fi
18281 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18282 fi
18283 fi
18284 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SECURE_MKSTEMP" >&5
18285 echo "${ECHO_T}$samba_cv_HAVE_SECURE_MKSTEMP" >&6
18286 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
18287
18288 cat >>confdefs.h <<\_ACEOF
18289 #define HAVE_SECURE_MKSTEMP 1
18290 _ACEOF
18291
18292 fi
18293
18294 echo "$as_me:$LINENO: checking for sysconf(_SC_NGROUPS_MAX)" >&5
18295 echo $ECHO_N "checking for sysconf(_SC_NGROUPS_MAX)... $ECHO_C" >&6
18296 if test "${samba_cv_SYSCONF_SC_NGROUPS_MAX+set}" = set; then
18297   echo $ECHO_N "(cached) $ECHO_C" >&6
18298 else
18299
18300 if test "$cross_compiling" = yes; then
18301   samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
18302 else
18303   cat >conftest.$ac_ext <<_ACEOF
18304 #line $LINENO "configure"
18305 #include "confdefs.h"
18306 #include <unistd.h>
18307 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
18308 _ACEOF
18309 rm -f conftest$ac_exeext
18310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18311   (eval $ac_link) 2>&5
18312   ac_status=$?
18313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18316   (eval $ac_try) 2>&5
18317   ac_status=$?
18318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319   (exit $ac_status); }; }; then
18320   samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
18321 else
18322   echo "$as_me: program exited with status $ac_status" >&5
18323 echo "$as_me: failed program was:" >&5
18324 cat conftest.$ac_ext >&5
18325 ( exit $ac_status )
18326 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
18327 fi
18328 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18329 fi
18330 fi
18331 echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NGROUPS_MAX" >&5
18332 echo "${ECHO_T}$samba_cv_SYSCONF_SC_NGROUPS_MAX" >&6
18333 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
18334
18335 cat >>confdefs.h <<\_ACEOF
18336 #define SYSCONF_SC_NGROUPS_MAX 1
18337 _ACEOF
18338
18339 fi
18340
18341 echo "$as_me:$LINENO: checking for root" >&5
18342 echo $ECHO_N "checking for root... $ECHO_C" >&6
18343 if test "${samba_cv_HAVE_ROOT+set}" = set; then
18344   echo $ECHO_N "(cached) $ECHO_C" >&6
18345 else
18346
18347 if test "$cross_compiling" = yes; then
18348   samba_cv_HAVE_ROOT=cross
18349 else
18350   cat >conftest.$ac_ext <<_ACEOF
18351 #line $LINENO "configure"
18352 #include "confdefs.h"
18353 main() { exit(getuid() != 0); }
18354 _ACEOF
18355 rm -f conftest$ac_exeext
18356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18357   (eval $ac_link) 2>&5
18358   ac_status=$?
18359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362   (eval $ac_try) 2>&5
18363   ac_status=$?
18364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365   (exit $ac_status); }; }; then
18366   samba_cv_HAVE_ROOT=yes
18367 else
18368   echo "$as_me: program exited with status $ac_status" >&5
18369 echo "$as_me: failed program was:" >&5
18370 cat conftest.$ac_ext >&5
18371 ( exit $ac_status )
18372 samba_cv_HAVE_ROOT=no
18373 fi
18374 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18375 fi
18376 fi
18377 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ROOT" >&5
18378 echo "${ECHO_T}$samba_cv_HAVE_ROOT" >&6
18379 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
18380
18381 cat >>confdefs.h <<\_ACEOF
18382 #define HAVE_ROOT 1
18383 _ACEOF
18384
18385 else
18386     { echo "$as_me:$LINENO: WARNING: running as non-root will disable some tests" >&5
18387 echo "$as_me: WARNING: running as non-root will disable some tests" >&2;}
18388 fi
18389
18390 ##################
18391 # look for a method of finding the list of network interfaces
18392 iface=no;
18393 echo "$as_me:$LINENO: checking for iface AIX" >&5
18394 echo $ECHO_N "checking for iface AIX... $ECHO_C" >&6
18395 if test "${samba_cv_HAVE_IFACE_AIX+set}" = set; then
18396   echo $ECHO_N "(cached) $ECHO_C" >&6
18397 else
18398
18399 if test "$cross_compiling" = yes; then
18400   samba_cv_HAVE_IFACE_AIX=cross
18401 else
18402   cat >conftest.$ac_ext <<_ACEOF
18403 #line $LINENO "configure"
18404 #include "confdefs.h"
18405
18406 #define HAVE_IFACE_AIX 1
18407 #define AUTOCONF_TEST 1
18408 #include "confdefs.h"
18409 #include "${srcdir-.}/lib/interfaces.c"
18410 _ACEOF
18411 rm -f conftest$ac_exeext
18412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18413   (eval $ac_link) 2>&5
18414   ac_status=$?
18415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418   (eval $ac_try) 2>&5
18419   ac_status=$?
18420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421   (exit $ac_status); }; }; then
18422   samba_cv_HAVE_IFACE_AIX=yes
18423 else
18424   echo "$as_me: program exited with status $ac_status" >&5
18425 echo "$as_me: failed program was:" >&5
18426 cat conftest.$ac_ext >&5
18427 ( exit $ac_status )
18428 samba_cv_HAVE_IFACE_AIX=no
18429 fi
18430 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18431 fi
18432 fi
18433 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_AIX" >&5
18434 echo "${ECHO_T}$samba_cv_HAVE_IFACE_AIX" >&6
18435 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
18436     iface=yes;
18437 cat >>confdefs.h <<\_ACEOF
18438 #define HAVE_IFACE_AIX 1
18439 _ACEOF
18440
18441 fi
18442
18443 if test $iface = no; then
18444 echo "$as_me:$LINENO: checking for iface ifconf" >&5
18445 echo $ECHO_N "checking for iface ifconf... $ECHO_C" >&6
18446 if test "${samba_cv_HAVE_IFACE_IFCONF+set}" = set; then
18447   echo $ECHO_N "(cached) $ECHO_C" >&6
18448 else
18449
18450 if test "$cross_compiling" = yes; then
18451   samba_cv_HAVE_IFACE_IFCONF=cross
18452 else
18453   cat >conftest.$ac_ext <<_ACEOF
18454 #line $LINENO "configure"
18455 #include "confdefs.h"
18456
18457 #define HAVE_IFACE_IFCONF 1
18458 #define AUTOCONF_TEST 1
18459 #include "confdefs.h"
18460 #include "${srcdir-.}/lib/interfaces.c"
18461 _ACEOF
18462 rm -f conftest$ac_exeext
18463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18464   (eval $ac_link) 2>&5
18465   ac_status=$?
18466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469   (eval $ac_try) 2>&5
18470   ac_status=$?
18471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472   (exit $ac_status); }; }; then
18473   samba_cv_HAVE_IFACE_IFCONF=yes
18474 else
18475   echo "$as_me: program exited with status $ac_status" >&5
18476 echo "$as_me: failed program was:" >&5
18477 cat conftest.$ac_ext >&5
18478 ( exit $ac_status )
18479 samba_cv_HAVE_IFACE_IFCONF=no
18480 fi
18481 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18482 fi
18483 fi
18484 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFCONF" >&5
18485 echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFCONF" >&6
18486 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
18487     iface=yes;
18488 cat >>confdefs.h <<\_ACEOF
18489 #define HAVE_IFACE_IFCONF 1
18490 _ACEOF
18491
18492 fi
18493 fi
18494
18495 if test $iface = no; then
18496 echo "$as_me:$LINENO: checking for iface ifreq" >&5
18497 echo $ECHO_N "checking for iface ifreq... $ECHO_C" >&6
18498 if test "${samba_cv_HAVE_IFACE_IFREQ+set}" = set; then
18499   echo $ECHO_N "(cached) $ECHO_C" >&6
18500 else
18501
18502 if test "$cross_compiling" = yes; then
18503   samba_cv_HAVE_IFACE_IFREQ=cross
18504 else
18505   cat >conftest.$ac_ext <<_ACEOF
18506 #line $LINENO "configure"
18507 #include "confdefs.h"
18508
18509 #define HAVE_IFACE_IFREQ 1
18510 #define AUTOCONF_TEST 1
18511 #include "confdefs.h"
18512 #include "${srcdir-.}/lib/interfaces.c"
18513 _ACEOF
18514 rm -f conftest$ac_exeext
18515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18516   (eval $ac_link) 2>&5
18517   ac_status=$?
18518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18521   (eval $ac_try) 2>&5
18522   ac_status=$?
18523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524   (exit $ac_status); }; }; then
18525   samba_cv_HAVE_IFACE_IFREQ=yes
18526 else
18527   echo "$as_me: program exited with status $ac_status" >&5
18528 echo "$as_me: failed program was:" >&5
18529 cat conftest.$ac_ext >&5
18530 ( exit $ac_status )
18531 samba_cv_HAVE_IFACE_IFREQ=no
18532 fi
18533 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18534 fi
18535 fi
18536 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFREQ" >&5
18537 echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFREQ" >&6
18538 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
18539     iface=yes;
18540 cat >>confdefs.h <<\_ACEOF
18541 #define HAVE_IFACE_IFREQ 1
18542 _ACEOF
18543
18544 fi
18545 fi
18546
18547
18548 ################################################
18549 # look for a method of setting the effective uid
18550 seteuid=no;
18551 if test $seteuid = no; then
18552 echo "$as_me:$LINENO: checking for setresuid" >&5
18553 echo $ECHO_N "checking for setresuid... $ECHO_C" >&6
18554 if test "${samba_cv_USE_SETRESUID+set}" = set; then
18555   echo $ECHO_N "(cached) $ECHO_C" >&6
18556 else
18557
18558 if test "$cross_compiling" = yes; then
18559   samba_cv_USE_SETRESUID=cross
18560 else
18561   cat >conftest.$ac_ext <<_ACEOF
18562 #line $LINENO "configure"
18563 #include "confdefs.h"
18564
18565 #define AUTOCONF_TEST 1
18566 #define USE_SETRESUID 1
18567 #include "confdefs.h"
18568 #include "${srcdir-.}/lib/util_sec.c"
18569 _ACEOF
18570 rm -f conftest$ac_exeext
18571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18572   (eval $ac_link) 2>&5
18573   ac_status=$?
18574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18577   (eval $ac_try) 2>&5
18578   ac_status=$?
18579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580   (exit $ac_status); }; }; then
18581   samba_cv_USE_SETRESUID=yes
18582 else
18583   echo "$as_me: program exited with status $ac_status" >&5
18584 echo "$as_me: failed program was:" >&5
18585 cat conftest.$ac_ext >&5
18586 ( exit $ac_status )
18587 samba_cv_USE_SETRESUID=no
18588 fi
18589 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18590 fi
18591 fi
18592 echo "$as_me:$LINENO: result: $samba_cv_USE_SETRESUID" >&5
18593 echo "${ECHO_T}$samba_cv_USE_SETRESUID" >&6
18594 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
18595     seteuid=yes;
18596 cat >>confdefs.h <<\_ACEOF
18597 #define USE_SETRESUID 1
18598 _ACEOF
18599
18600 fi
18601 fi
18602
18603
18604 if test $seteuid = no; then
18605 echo "$as_me:$LINENO: checking for setreuid" >&5
18606 echo $ECHO_N "checking for setreuid... $ECHO_C" >&6
18607 if test "${samba_cv_USE_SETREUID+set}" = set; then
18608   echo $ECHO_N "(cached) $ECHO_C" >&6
18609 else
18610
18611 if test "$cross_compiling" = yes; then
18612   samba_cv_USE_SETREUID=cross
18613 else
18614   cat >conftest.$ac_ext <<_ACEOF
18615 #line $LINENO "configure"
18616 #include "confdefs.h"
18617
18618 #define AUTOCONF_TEST 1
18619 #define USE_SETREUID 1
18620 #include "confdefs.h"
18621 #include "${srcdir-.}/lib/util_sec.c"
18622 _ACEOF
18623 rm -f conftest$ac_exeext
18624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18625   (eval $ac_link) 2>&5
18626   ac_status=$?
18627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18630   (eval $ac_try) 2>&5
18631   ac_status=$?
18632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633   (exit $ac_status); }; }; then
18634   samba_cv_USE_SETREUID=yes
18635 else
18636   echo "$as_me: program exited with status $ac_status" >&5
18637 echo "$as_me: failed program was:" >&5
18638 cat conftest.$ac_ext >&5
18639 ( exit $ac_status )
18640 samba_cv_USE_SETREUID=no
18641 fi
18642 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18643 fi
18644 fi
18645 echo "$as_me:$LINENO: result: $samba_cv_USE_SETREUID" >&5
18646 echo "${ECHO_T}$samba_cv_USE_SETREUID" >&6
18647 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
18648     seteuid=yes;
18649 cat >>confdefs.h <<\_ACEOF
18650 #define USE_SETREUID 1
18651 _ACEOF
18652
18653 fi
18654 fi
18655
18656 if test $seteuid = no; then
18657 echo "$as_me:$LINENO: checking for seteuid" >&5
18658 echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
18659 if test "${samba_cv_USE_SETEUID+set}" = set; then
18660   echo $ECHO_N "(cached) $ECHO_C" >&6
18661 else
18662
18663 if test "$cross_compiling" = yes; then
18664   samba_cv_USE_SETEUID=cross
18665 else
18666   cat >conftest.$ac_ext <<_ACEOF
18667 #line $LINENO "configure"
18668 #include "confdefs.h"
18669
18670 #define AUTOCONF_TEST 1
18671 #define USE_SETEUID 1
18672 #include "confdefs.h"
18673 #include "${srcdir-.}/lib/util_sec.c"
18674 _ACEOF
18675 rm -f conftest$ac_exeext
18676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18677   (eval $ac_link) 2>&5
18678   ac_status=$?
18679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18682   (eval $ac_try) 2>&5
18683   ac_status=$?
18684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685   (exit $ac_status); }; }; then
18686   samba_cv_USE_SETEUID=yes
18687 else
18688   echo "$as_me: program exited with status $ac_status" >&5
18689 echo "$as_me: failed program was:" >&5
18690 cat conftest.$ac_ext >&5
18691 ( exit $ac_status )
18692 samba_cv_USE_SETEUID=no
18693 fi
18694 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18695 fi
18696 fi
18697 echo "$as_me:$LINENO: result: $samba_cv_USE_SETEUID" >&5
18698 echo "${ECHO_T}$samba_cv_USE_SETEUID" >&6
18699 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
18700     seteuid=yes;
18701 cat >>confdefs.h <<\_ACEOF
18702 #define USE_SETEUID 1
18703 _ACEOF
18704
18705 fi
18706 fi
18707
18708 if test $seteuid = no; then
18709 echo "$as_me:$LINENO: checking for setuidx" >&5
18710 echo $ECHO_N "checking for setuidx... $ECHO_C" >&6
18711 if test "${samba_cv_USE_SETUIDX+set}" = set; then
18712   echo $ECHO_N "(cached) $ECHO_C" >&6
18713 else
18714
18715 if test "$cross_compiling" = yes; then
18716   samba_cv_USE_SETUIDX=cross
18717 else
18718   cat >conftest.$ac_ext <<_ACEOF
18719 #line $LINENO "configure"
18720 #include "confdefs.h"
18721
18722 #define AUTOCONF_TEST 1
18723 #define USE_SETUIDX 1
18724 #include "confdefs.h"
18725 #include "${srcdir-.}/lib/util_sec.c"
18726 _ACEOF
18727 rm -f conftest$ac_exeext
18728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18729   (eval $ac_link) 2>&5
18730   ac_status=$?
18731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734   (eval $ac_try) 2>&5
18735   ac_status=$?
18736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737   (exit $ac_status); }; }; then
18738   samba_cv_USE_SETUIDX=yes
18739 else
18740   echo "$as_me: program exited with status $ac_status" >&5
18741 echo "$as_me: failed program was:" >&5
18742 cat conftest.$ac_ext >&5
18743 ( exit $ac_status )
18744 samba_cv_USE_SETUIDX=no
18745 fi
18746 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18747 fi
18748 fi
18749 echo "$as_me:$LINENO: result: $samba_cv_USE_SETUIDX" >&5
18750 echo "${ECHO_T}$samba_cv_USE_SETUIDX" >&6
18751 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
18752     seteuid=yes;
18753 cat >>confdefs.h <<\_ACEOF
18754 #define USE_SETUIDX 1
18755 _ACEOF
18756
18757 fi
18758 fi
18759
18760
18761 echo "$as_me:$LINENO: checking for working mmap" >&5
18762 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
18763 if test "${samba_cv_HAVE_MMAP+set}" = set; then
18764   echo $ECHO_N "(cached) $ECHO_C" >&6
18765 else
18766
18767 if test "$cross_compiling" = yes; then
18768   samba_cv_HAVE_MMAP=cross
18769 else
18770   cat >conftest.$ac_ext <<_ACEOF
18771 #line $LINENO "configure"
18772 #include "confdefs.h"
18773 #include "${srcdir-.}/tests/shared_mmap.c"
18774 _ACEOF
18775 rm -f conftest$ac_exeext
18776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18777   (eval $ac_link) 2>&5
18778   ac_status=$?
18779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18782   (eval $ac_try) 2>&5
18783   ac_status=$?
18784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785   (exit $ac_status); }; }; then
18786   samba_cv_HAVE_MMAP=yes
18787 else
18788   echo "$as_me: program exited with status $ac_status" >&5
18789 echo "$as_me: failed program was:" >&5
18790 cat conftest.$ac_ext >&5
18791 ( exit $ac_status )
18792 samba_cv_HAVE_MMAP=no
18793 fi
18794 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18795 fi
18796 fi
18797 echo "$as_me:$LINENO: result: $samba_cv_HAVE_MMAP" >&5
18798 echo "${ECHO_T}$samba_cv_HAVE_MMAP" >&6
18799 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
18800
18801 cat >>confdefs.h <<\_ACEOF
18802 #define HAVE_MMAP 1
18803 _ACEOF
18804
18805 fi
18806
18807 echo "$as_me:$LINENO: checking for ftruncate needs root" >&5
18808 echo $ECHO_N "checking for ftruncate needs root... $ECHO_C" >&6
18809 if test "${samba_cv_FTRUNCATE_NEEDS_ROOT+set}" = set; then
18810   echo $ECHO_N "(cached) $ECHO_C" >&6
18811 else
18812
18813 if test "$cross_compiling" = yes; then
18814   samba_cv_FTRUNCATE_NEEDS_ROOT=cross
18815 else
18816   cat >conftest.$ac_ext <<_ACEOF
18817 #line $LINENO "configure"
18818 #include "confdefs.h"
18819 #include "${srcdir-.}/tests/ftruncroot.c"
18820 _ACEOF
18821 rm -f conftest$ac_exeext
18822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18823   (eval $ac_link) 2>&5
18824   ac_status=$?
18825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828   (eval $ac_try) 2>&5
18829   ac_status=$?
18830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831   (exit $ac_status); }; }; then
18832   samba_cv_FTRUNCATE_NEEDS_ROOT=yes
18833 else
18834   echo "$as_me: program exited with status $ac_status" >&5
18835 echo "$as_me: failed program was:" >&5
18836 cat conftest.$ac_ext >&5
18837 ( exit $ac_status )
18838 samba_cv_FTRUNCATE_NEEDS_ROOT=no
18839 fi
18840 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18841 fi
18842 fi
18843 echo "$as_me:$LINENO: result: $samba_cv_FTRUNCATE_NEEDS_ROOT" >&5
18844 echo "${ECHO_T}$samba_cv_FTRUNCATE_NEEDS_ROOT" >&6
18845 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
18846
18847 cat >>confdefs.h <<\_ACEOF
18848 #define FTRUNCATE_NEEDS_ROOT 1
18849 _ACEOF
18850
18851 fi
18852
18853 echo "$as_me:$LINENO: checking for fcntl locking" >&5
18854 echo $ECHO_N "checking for fcntl locking... $ECHO_C" >&6
18855 if test "${samba_cv_HAVE_FCNTL_LOCK+set}" = set; then
18856   echo $ECHO_N "(cached) $ECHO_C" >&6
18857 else
18858
18859 if test "$cross_compiling" = yes; then
18860   samba_cv_HAVE_FCNTL_LOCK=cross
18861 else
18862   cat >conftest.$ac_ext <<_ACEOF
18863 #line $LINENO "configure"
18864 #include "confdefs.h"
18865 #include "${srcdir-.}/tests/fcntl_lock.c"
18866 _ACEOF
18867 rm -f conftest$ac_exeext
18868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18869   (eval $ac_link) 2>&5
18870   ac_status=$?
18871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18874   (eval $ac_try) 2>&5
18875   ac_status=$?
18876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877   (exit $ac_status); }; }; then
18878   samba_cv_HAVE_FCNTL_LOCK=yes
18879 else
18880   echo "$as_me: program exited with status $ac_status" >&5
18881 echo "$as_me: failed program was:" >&5
18882 cat conftest.$ac_ext >&5
18883 ( exit $ac_status )
18884 samba_cv_HAVE_FCNTL_LOCK=no
18885 fi
18886 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18887 fi
18888 fi
18889 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FCNTL_LOCK" >&5
18890 echo "${ECHO_T}$samba_cv_HAVE_FCNTL_LOCK" >&6
18891 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
18892
18893 cat >>confdefs.h <<\_ACEOF
18894 #define HAVE_FCNTL_LOCK 1
18895 _ACEOF
18896
18897 fi
18898
18899 echo "$as_me:$LINENO: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
18900 echo $ECHO_N "checking for broken (glibc2.1/x86) 64 bit fcntl locking... $ECHO_C" >&6
18901 if test "${samba_cv_HAVE_BROKEN_FCNTL64_LOCKS+set}" = set; then
18902   echo $ECHO_N "(cached) $ECHO_C" >&6
18903 else
18904
18905 if test "$cross_compiling" = yes; then
18906   samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
18907 else
18908   cat >conftest.$ac_ext <<_ACEOF
18909 #line $LINENO "configure"
18910 #include "confdefs.h"
18911 #include "${srcdir-.}/tests/fcntl_lock64.c"
18912 _ACEOF
18913 rm -f conftest$ac_exeext
18914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18915   (eval $ac_link) 2>&5
18916   ac_status=$?
18917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18920   (eval $ac_try) 2>&5
18921   ac_status=$?
18922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923   (exit $ac_status); }; }; then
18924   samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
18925 else
18926   echo "$as_me: program exited with status $ac_status" >&5
18927 echo "$as_me: failed program was:" >&5
18928 cat conftest.$ac_ext >&5
18929 ( exit $ac_status )
18930 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
18931 fi
18932 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18933 fi
18934 fi
18935 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&5
18936 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&6
18937 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
18938
18939 cat >>confdefs.h <<\_ACEOF
18940 #define HAVE_BROKEN_FCNTL64_LOCKS 1
18941 _ACEOF
18942
18943
18944 else
18945
18946
18947   echo "$as_me:$LINENO: checking for 64 bit fcntl locking" >&5
18948 echo $ECHO_N "checking for 64 bit fcntl locking... $ECHO_C" >&6
18949 if test "${samba_cv_HAVE_STRUCT_FLOCK64+set}" = set; then
18950   echo $ECHO_N "(cached) $ECHO_C" >&6
18951 else
18952
18953   if test "$cross_compiling" = yes; then
18954   samba_cv_HAVE_STRUCT_FLOCK64=cross
18955 else
18956   cat >conftest.$ac_ext <<_ACEOF
18957 #line $LINENO "configure"
18958 #include "confdefs.h"
18959
18960 #if defined(HAVE_UNISTD_H)
18961 #include <unistd.h>
18962 #endif
18963 #include <stdio.h>
18964 #include <stdlib.h>
18965
18966 #ifdef HAVE_FCNTL_H
18967 #include <fcntl.h>
18968 #endif
18969
18970 #ifdef HAVE_SYS_FCNTL_H
18971 #include <sys/fcntl.h>
18972 #endif
18973 main() { struct flock64 fl64;
18974 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
18975 exit(0);
18976 #else
18977 exit(1);
18978 #endif
18979 }
18980 _ACEOF
18981 rm -f conftest$ac_exeext
18982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18983   (eval $ac_link) 2>&5
18984   ac_status=$?
18985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18988   (eval $ac_try) 2>&5
18989   ac_status=$?
18990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991   (exit $ac_status); }; }; then
18992   samba_cv_HAVE_STRUCT_FLOCK64=yes
18993 else
18994   echo "$as_me: program exited with status $ac_status" >&5
18995 echo "$as_me: failed program was:" >&5
18996 cat conftest.$ac_ext >&5
18997 ( exit $ac_status )
18998 samba_cv_HAVE_STRUCT_FLOCK64=no
18999 fi
19000 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19001 fi
19002 fi
19003 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_FLOCK64" >&5
19004 echo "${ECHO_T}$samba_cv_HAVE_STRUCT_FLOCK64" >&6
19005
19006   if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
19007
19008 cat >>confdefs.h <<\_ACEOF
19009 #define HAVE_STRUCT_FLOCK64 1
19010 _ACEOF
19011
19012   fi
19013 fi
19014
19015 echo "$as_me:$LINENO: checking for st_blocks in struct stat" >&5
19016 echo $ECHO_N "checking for st_blocks in struct stat... $ECHO_C" >&6
19017 if test "${samba_cv_HAVE_STAT_ST_BLOCKS+set}" = set; then
19018   echo $ECHO_N "(cached) $ECHO_C" >&6
19019 else
19020
19021 cat >conftest.$ac_ext <<_ACEOF
19022 #line $LINENO "configure"
19023 #include "confdefs.h"
19024 #include <sys/types.h>
19025 #include <sys/stat.h>
19026 #include <unistd.h>
19027 int
19028 main ()
19029 {
19030 struct stat st;  st.st_blocks = 0;
19031   ;
19032   return 0;
19033 }
19034 _ACEOF
19035 rm -f conftest.$ac_objext
19036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19037   (eval $ac_compile) 2>&5
19038   ac_status=$?
19039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040   (exit $ac_status); } &&
19041          { ac_try='test -s conftest.$ac_objext'
19042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19043   (eval $ac_try) 2>&5
19044   ac_status=$?
19045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046   (exit $ac_status); }; }; then
19047   samba_cv_HAVE_STAT_ST_BLOCKS=yes
19048 else
19049   echo "$as_me: failed program was:" >&5
19050 cat conftest.$ac_ext >&5
19051 samba_cv_HAVE_STAT_ST_BLOCKS=no
19052 fi
19053 rm -f conftest.$ac_objext conftest.$ac_ext
19054 fi
19055 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLOCKS" >&5
19056 echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLOCKS" >&6
19057 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
19058
19059 cat >>confdefs.h <<\_ACEOF
19060 #define HAVE_STAT_ST_BLOCKS 1
19061 _ACEOF
19062
19063 fi
19064
19065 echo "$as_me:$LINENO: checking for st_blksize in struct stat" >&5
19066 echo $ECHO_N "checking for st_blksize in struct stat... $ECHO_C" >&6
19067 if test "${samba_cv_HAVE_STAT_ST_BLKSIZE+set}" = set; then
19068   echo $ECHO_N "(cached) $ECHO_C" >&6
19069 else
19070
19071 cat >conftest.$ac_ext <<_ACEOF
19072 #line $LINENO "configure"
19073 #include "confdefs.h"
19074 #include <sys/types.h>
19075 #include <sys/stat.h>
19076 #include <unistd.h>
19077 int
19078 main ()
19079 {
19080 struct stat st;  st.st_blksize = 0;
19081   ;
19082   return 0;
19083 }
19084 _ACEOF
19085 rm -f conftest.$ac_objext
19086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19087   (eval $ac_compile) 2>&5
19088   ac_status=$?
19089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090   (exit $ac_status); } &&
19091          { ac_try='test -s conftest.$ac_objext'
19092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093   (eval $ac_try) 2>&5
19094   ac_status=$?
19095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096   (exit $ac_status); }; }; then
19097   samba_cv_HAVE_STAT_ST_BLKSIZE=yes
19098 else
19099   echo "$as_me: failed program was:" >&5
19100 cat conftest.$ac_ext >&5
19101 samba_cv_HAVE_STAT_ST_BLKSIZE=no
19102 fi
19103 rm -f conftest.$ac_objext conftest.$ac_ext
19104 fi
19105 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLKSIZE" >&5
19106 echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLKSIZE" >&6
19107 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
19108
19109 cat >>confdefs.h <<\_ACEOF
19110 #define HAVE_STAT_ST_BLKSIZE 1
19111 _ACEOF
19112
19113 fi
19114
19115 case "$host_os" in
19116 *linux*)
19117 echo "$as_me:$LINENO: checking for broken RedHat 7.2 system header files" >&5
19118 echo $ECHO_N "checking for broken RedHat 7.2 system header files... $ECHO_C" >&6
19119 if test "${samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS+set}" = set; then
19120   echo $ECHO_N "(cached) $ECHO_C" >&6
19121 else
19122
19123 cat >conftest.$ac_ext <<_ACEOF
19124 #line $LINENO "configure"
19125 #include "confdefs.h"
19126
19127 #ifdef HAVE_SYS_VFS_H
19128 #include <sys/vfs.h>
19129 #endif
19130 #ifdef HAVE_SYS_CAPABILITY_H
19131 #include <sys/capability.h>
19132 #endif
19133
19134 int
19135 main ()
19136 {
19137 int i;
19138   ;
19139   return 0;
19140 }
19141 _ACEOF
19142 rm -f conftest.$ac_objext
19143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19144   (eval $ac_compile) 2>&5
19145   ac_status=$?
19146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147   (exit $ac_status); } &&
19148          { ac_try='test -s conftest.$ac_objext'
19149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150   (eval $ac_try) 2>&5
19151   ac_status=$?
19152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153   (exit $ac_status); }; }; then
19154   samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
19155 else
19156   echo "$as_me: failed program was:" >&5
19157 cat conftest.$ac_ext >&5
19158 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
19159 fi
19160 rm -f conftest.$ac_objext conftest.$ac_ext
19161 fi
19162 echo "$as_me:$LINENO: result: $samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&5
19163 echo "${ECHO_T}$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&6
19164 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
19165
19166 cat >>confdefs.h <<\_ACEOF
19167 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
19168 _ACEOF
19169
19170 fi
19171 ;;
19172 esac
19173
19174 echo "$as_me:$LINENO: checking for broken nisplus include files" >&5
19175 echo $ECHO_N "checking for broken nisplus include files... $ECHO_C" >&6
19176 if test "${samba_cv_BROKEN_NISPLUS_INCLUDE_FILES+set}" = set; then
19177   echo $ECHO_N "(cached) $ECHO_C" >&6
19178 else
19179
19180 cat >conftest.$ac_ext <<_ACEOF
19181 #line $LINENO "configure"
19182 #include "confdefs.h"
19183 #include <sys/acl.h>
19184 #if defined(HAVE_RPCSVC_NIS_H)
19185 #include <rpcsvc/nis.h>
19186 #endif
19187 int
19188 main ()
19189 {
19190 int i;
19191   ;
19192   return 0;
19193 }
19194 _ACEOF
19195 rm -f conftest.$ac_objext
19196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19197   (eval $ac_compile) 2>&5
19198   ac_status=$?
19199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200   (exit $ac_status); } &&
19201          { ac_try='test -s conftest.$ac_objext'
19202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19203   (eval $ac_try) 2>&5
19204   ac_status=$?
19205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206   (exit $ac_status); }; }; then
19207   samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
19208 else
19209   echo "$as_me: failed program was:" >&5
19210 cat conftest.$ac_ext >&5
19211 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
19212 fi
19213 rm -f conftest.$ac_objext conftest.$ac_ext
19214 fi
19215 echo "$as_me:$LINENO: result: $samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&5
19216 echo "${ECHO_T}$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&6
19217 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
19218
19219 cat >>confdefs.h <<\_ACEOF
19220 #define BROKEN_NISPLUS_INCLUDE_FILES 1
19221 _ACEOF
19222
19223 fi
19224
19225
19226 #################################################
19227 # check for smbwrapper support
19228 echo "$as_me:$LINENO: checking whether to use smbwrapper" >&5
19229 echo $ECHO_N "checking whether to use smbwrapper... $ECHO_C" >&6
19230
19231 # Check whether --with-smbwrapper or --without-smbwrapper was given.
19232 if test "${with_smbwrapper+set}" = set; then
19233   withval="$with_smbwrapper"
19234    case "$withval" in
19235   yes)
19236     echo "$as_me:$LINENO: result: yes" >&5
19237 echo "${ECHO_T}yes" >&6
19238
19239 cat >>confdefs.h <<\_ACEOF
19240 #define WITH_SMBWRAPPER 1
19241 _ACEOF
19242
19243         WRAPPROG="bin/smbsh"
19244         WRAP="bin/smbwrapper.$SHLIBEXT"
19245
19246         if test x$ATTEMPT_WRAP32_BUILD = x; then
19247                 WRAP32=""
19248         else
19249                         WRAP32=bin/smbwrapper.32.$SHLIBEXT
19250         fi
19251
19252 # Conditions under which smbwrapper should not be built.
19253
19254         if test x$PICFLAG = x; then
19255            echo No support for PIC code - disabling smbwrapper and smbsh
19256            WRAPPROG=""
19257            WRAP=""
19258            WRAP32=""
19259         elif test x$ac_cv_func_syscall = xno; then
19260            echo "$as_me:$LINENO: result: No syscall() -- disabling smbwrapper and smbsh" >&5
19261 echo "${ECHO_T}No syscall() -- disabling smbwrapper and smbsh" >&6
19262            WRAPPROG=""
19263            WRAP=""
19264            WRAP32=""
19265         fi
19266     ;;
19267   *)
19268     echo "$as_me:$LINENO: result: no" >&5
19269 echo "${ECHO_T}no" >&6
19270     ;;
19271   esac
19272 else
19273   echo "$as_me:$LINENO: result: no" >&5
19274 echo "${ECHO_T}no" >&6
19275
19276 fi;
19277
19278 #################################################
19279 # check for AFS clear-text auth support
19280 echo "$as_me:$LINENO: checking whether to use AFS clear-text auth" >&5
19281 echo $ECHO_N "checking whether to use AFS clear-text auth... $ECHO_C" >&6
19282
19283 # Check whether --with-afs or --without-afs was given.
19284 if test "${with_afs+set}" = set; then
19285   withval="$with_afs"
19286    case "$withval" in
19287   yes)
19288     echo "$as_me:$LINENO: result: yes" >&5
19289 echo "${ECHO_T}yes" >&6
19290
19291 cat >>confdefs.h <<\_ACEOF
19292 #define WITH_AFS 1
19293 _ACEOF
19294
19295     ;;
19296   *)
19297     echo "$as_me:$LINENO: result: no" >&5
19298 echo "${ECHO_T}no" >&6
19299     ;;
19300   esac
19301 else
19302   echo "$as_me:$LINENO: result: no" >&5
19303 echo "${ECHO_T}no" >&6
19304
19305 fi;
19306
19307
19308 #################################################
19309 # check for the DFS clear-text auth system
19310 echo "$as_me:$LINENO: checking whether to use DFS clear-text auth" >&5
19311 echo $ECHO_N "checking whether to use DFS clear-text auth... $ECHO_C" >&6
19312
19313 # Check whether --with-dfs or --without-dfs was given.
19314 if test "${with_dfs+set}" = set; then
19315   withval="$with_dfs"
19316    case "$withval" in
19317   yes)
19318     echo "$as_me:$LINENO: result: yes" >&5
19319 echo "${ECHO_T}yes" >&6
19320
19321 cat >>confdefs.h <<\_ACEOF
19322 #define WITH_DFS 1
19323 _ACEOF
19324
19325     ;;
19326   *)
19327     echo "$as_me:$LINENO: result: no" >&5
19328 echo "${ECHO_T}no" >&6
19329     ;;
19330   esac
19331 else
19332   echo "$as_me:$LINENO: result: no" >&5
19333 echo "${ECHO_T}no" >&6
19334
19335 fi;
19336
19337 #################################################
19338 # active directory support
19339
19340 with_ads_support=yes
19341 echo "$as_me:$LINENO: checking whether to use Active Directory" >&5
19342 echo $ECHO_N "checking whether to use Active Directory... $ECHO_C" >&6
19343
19344
19345 # Check whether --with-ads or --without-ads was given.
19346 if test "${with_ads+set}" = set; then
19347   withval="$with_ads"
19348    case "$withval" in
19349     no)
19350         with_ads_support=no
19351         ;;
19352   esac
19353 fi;
19354
19355 if test x"$with_ads_support" = x"yes"; then
19356
19357 cat >>confdefs.h <<\_ACEOF
19358 #define WITH_ADS 1
19359 _ACEOF
19360
19361 fi
19362
19363 echo "$as_me:$LINENO: result: $with_ads_support" >&5
19364 echo "${ECHO_T}$with_ads_support" >&6
19365
19366 FOUND_KRB5=no
19367 if test x"$with_ads_support" = x"yes"; then
19368
19369   #################################################
19370   # check for location of Kerberos 5 install
19371   echo "$as_me:$LINENO: checking for kerberos 5 install path" >&5
19372 echo $ECHO_N "checking for kerberos 5 install path... $ECHO_C" >&6
19373
19374 # Check whether --with-krb5 or --without-krb5 was given.
19375 if test "${with_krb5+set}" = set; then
19376   withval="$with_krb5"
19377    case "$withval" in
19378     no)
19379       echo "$as_me:$LINENO: result: no" >&5
19380 echo "${ECHO_T}no" >&6
19381       ;;
19382     *)
19383       echo "$as_me:$LINENO: result: yes" >&5
19384 echo "${ECHO_T}yes" >&6
19385       LIBS="$LIBS -lkrb5"
19386       CFLAGS="$CFLAGS -I$withval/include"
19387       CPPFLAGS="$CPPFLAGS -I$withval/include"
19388       LDFLAGS="$LDFLAGS -L$withval/lib"
19389       FOUND_KRB5=yes
19390       ;;
19391     esac
19392 else
19393   echo "$as_me:$LINENO: result: no" >&5
19394 echo "${ECHO_T}no" >&6
19395
19396 fi;
19397
19398
19399 if test x$FOUND_KRB5 = x"no"; then
19400 #################################################
19401 # see if this box has the RedHat location for kerberos
19402 echo "$as_me:$LINENO: checking for /usr/kerberos" >&5
19403 echo $ECHO_N "checking for /usr/kerberos... $ECHO_C" >&6
19404 if test -d /usr/kerberos; then
19405     LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
19406     CFLAGS="$CFLAGS -I/usr/kerberos/include"
19407     CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
19408     echo "$as_me:$LINENO: result: yes" >&5
19409 echo "${ECHO_T}yes" >&6
19410 else
19411     echo "$as_me:$LINENO: result: no" >&5
19412 echo "${ECHO_T}no" >&6
19413 fi
19414 fi
19415
19416
19417   # now check for krb5.h. Some systems have the libraries without the headers!
19418   # note that this check is done here to allow for different kerberos
19419   # include paths
19420
19421 for ac_header in krb5.h
19422 do
19423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19425   echo "$as_me:$LINENO: checking for $ac_header" >&5
19426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19428   echo $ECHO_N "(cached) $ECHO_C" >&6
19429 fi
19430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19432 else
19433   # Is the header compilable?
19434 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19436 cat >conftest.$ac_ext <<_ACEOF
19437 #line $LINENO "configure"
19438 #include "confdefs.h"
19439 $ac_includes_default
19440 #include <$ac_header>
19441 _ACEOF
19442 rm -f conftest.$ac_objext
19443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19444   (eval $ac_compile) 2>&5
19445   ac_status=$?
19446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447   (exit $ac_status); } &&
19448          { ac_try='test -s conftest.$ac_objext'
19449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450   (eval $ac_try) 2>&5
19451   ac_status=$?
19452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453   (exit $ac_status); }; }; then
19454   ac_header_compiler=yes
19455 else
19456   echo "$as_me: failed program was:" >&5
19457 cat conftest.$ac_ext >&5
19458 ac_header_compiler=no
19459 fi
19460 rm -f conftest.$ac_objext conftest.$ac_ext
19461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19462 echo "${ECHO_T}$ac_header_compiler" >&6
19463
19464 # Is the header present?
19465 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19467 cat >conftest.$ac_ext <<_ACEOF
19468 #line $LINENO "configure"
19469 #include "confdefs.h"
19470 #include <$ac_header>
19471 _ACEOF
19472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19473   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19474   ac_status=$?
19475   grep -v '^ *+' conftest.er1 >conftest.err
19476   rm -f conftest.er1
19477   cat conftest.err >&5
19478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479   (exit $ac_status); } >/dev/null; then
19480   if test -s conftest.err; then
19481     ac_cpp_err=$ac_c_preproc_warn_flag
19482   else
19483     ac_cpp_err=
19484   fi
19485 else
19486   ac_cpp_err=yes
19487 fi
19488 if test -z "$ac_cpp_err"; then
19489   ac_header_preproc=yes
19490 else
19491   echo "$as_me: failed program was:" >&5
19492   cat conftest.$ac_ext >&5
19493   ac_header_preproc=no
19494 fi
19495 rm -f conftest.err conftest.$ac_ext
19496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19497 echo "${ECHO_T}$ac_header_preproc" >&6
19498
19499 # So?  What about this header?
19500 case $ac_header_compiler:$ac_header_preproc in
19501   yes:no )
19502     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19506   no:yes )
19507     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19509     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19510 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19513 esac
19514 echo "$as_me:$LINENO: checking for $ac_header" >&5
19515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19517   echo $ECHO_N "(cached) $ECHO_C" >&6
19518 else
19519   eval "$as_ac_Header=$ac_header_preproc"
19520 fi
19521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19523
19524 fi
19525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19526   cat >>confdefs.h <<_ACEOF
19527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19528 _ACEOF
19529
19530 fi
19531
19532 done
19533
19534
19535   # now check for gssapi headers.  This is also done here to allow for
19536   # different kerberos include paths
19537
19538
19539 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi.h
19540 do
19541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19543   echo "$as_me:$LINENO: checking for $ac_header" >&5
19544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19546   echo $ECHO_N "(cached) $ECHO_C" >&6
19547 fi
19548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19550 else
19551   # Is the header compilable?
19552 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19554 cat >conftest.$ac_ext <<_ACEOF
19555 #line $LINENO "configure"
19556 #include "confdefs.h"
19557 $ac_includes_default
19558 #include <$ac_header>
19559 _ACEOF
19560 rm -f conftest.$ac_objext
19561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19562   (eval $ac_compile) 2>&5
19563   ac_status=$?
19564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565   (exit $ac_status); } &&
19566          { ac_try='test -s conftest.$ac_objext'
19567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19568   (eval $ac_try) 2>&5
19569   ac_status=$?
19570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571   (exit $ac_status); }; }; then
19572   ac_header_compiler=yes
19573 else
19574   echo "$as_me: failed program was:" >&5
19575 cat conftest.$ac_ext >&5
19576 ac_header_compiler=no
19577 fi
19578 rm -f conftest.$ac_objext conftest.$ac_ext
19579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19580 echo "${ECHO_T}$ac_header_compiler" >&6
19581
19582 # Is the header present?
19583 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19585 cat >conftest.$ac_ext <<_ACEOF
19586 #line $LINENO "configure"
19587 #include "confdefs.h"
19588 #include <$ac_header>
19589 _ACEOF
19590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19591   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19592   ac_status=$?
19593   grep -v '^ *+' conftest.er1 >conftest.err
19594   rm -f conftest.er1
19595   cat conftest.err >&5
19596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597   (exit $ac_status); } >/dev/null; then
19598   if test -s conftest.err; then
19599     ac_cpp_err=$ac_c_preproc_warn_flag
19600   else
19601     ac_cpp_err=
19602   fi
19603 else
19604   ac_cpp_err=yes
19605 fi
19606 if test -z "$ac_cpp_err"; then
19607   ac_header_preproc=yes
19608 else
19609   echo "$as_me: failed program was:" >&5
19610   cat conftest.$ac_ext >&5
19611   ac_header_preproc=no
19612 fi
19613 rm -f conftest.err conftest.$ac_ext
19614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19615 echo "${ECHO_T}$ac_header_preproc" >&6
19616
19617 # So?  What about this header?
19618 case $ac_header_compiler:$ac_header_preproc in
19619   yes:no )
19620     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19622     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19624   no:yes )
19625     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19626 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19627     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19628 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19629     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19631 esac
19632 echo "$as_me:$LINENO: checking for $ac_header" >&5
19633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19635   echo $ECHO_N "(cached) $ECHO_C" >&6
19636 else
19637   eval "$as_ac_Header=$ac_header_preproc"
19638 fi
19639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19641
19642 fi
19643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19644   cat >>confdefs.h <<_ACEOF
19645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19646 _ACEOF
19647
19648 fi
19649
19650 done
19651
19652
19653   ##################################################################
19654   # we might need the k5crypto and com_err libraries on some systems
19655   echo "$as_me:$LINENO: checking for _et_list in -lcom_err" >&5
19656 echo $ECHO_N "checking for _et_list in -lcom_err... $ECHO_C" >&6
19657 if test "${ac_cv_lib_com_err__et_list+set}" = set; then
19658   echo $ECHO_N "(cached) $ECHO_C" >&6
19659 else
19660   ac_check_lib_save_LIBS=$LIBS
19661 LIBS="-lcom_err  $LIBS"
19662 cat >conftest.$ac_ext <<_ACEOF
19663 #line $LINENO "configure"
19664 #include "confdefs.h"
19665
19666 /* Override any gcc2 internal prototype to avoid an error.  */
19667 #ifdef __cplusplus
19668 extern "C"
19669 #endif
19670 /* We use char because int might match the return type of a gcc2
19671    builtin and then its argument prototype would still apply.  */
19672 char _et_list ();
19673 int
19674 main ()
19675 {
19676 _et_list ();
19677   ;
19678   return 0;
19679 }
19680 _ACEOF
19681 rm -f conftest.$ac_objext conftest$ac_exeext
19682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19683   (eval $ac_link) 2>&5
19684   ac_status=$?
19685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686   (exit $ac_status); } &&
19687          { ac_try='test -s conftest$ac_exeext'
19688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19689   (eval $ac_try) 2>&5
19690   ac_status=$?
19691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692   (exit $ac_status); }; }; then
19693   ac_cv_lib_com_err__et_list=yes
19694 else
19695   echo "$as_me: failed program was:" >&5
19696 cat conftest.$ac_ext >&5
19697 ac_cv_lib_com_err__et_list=no
19698 fi
19699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19700 LIBS=$ac_check_lib_save_LIBS
19701 fi
19702 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err__et_list" >&5
19703 echo "${ECHO_T}$ac_cv_lib_com_err__et_list" >&6
19704 if test $ac_cv_lib_com_err__et_list = yes; then
19705   LIBS="$LIBS -lcom_err"
19706 fi
19707
19708   echo "$as_me:$LINENO: checking for krb5_encrypt_data in -lk5crypto" >&5
19709 echo $ECHO_N "checking for krb5_encrypt_data in -lk5crypto... $ECHO_C" >&6
19710 if test "${ac_cv_lib_k5crypto_krb5_encrypt_data+set}" = set; then
19711   echo $ECHO_N "(cached) $ECHO_C" >&6
19712 else
19713   ac_check_lib_save_LIBS=$LIBS
19714 LIBS="-lk5crypto  $LIBS"
19715 cat >conftest.$ac_ext <<_ACEOF
19716 #line $LINENO "configure"
19717 #include "confdefs.h"
19718
19719 /* Override any gcc2 internal prototype to avoid an error.  */
19720 #ifdef __cplusplus
19721 extern "C"
19722 #endif
19723 /* We use char because int might match the return type of a gcc2
19724    builtin and then its argument prototype would still apply.  */
19725 char krb5_encrypt_data ();
19726 int
19727 main ()
19728 {
19729 krb5_encrypt_data ();
19730   ;
19731   return 0;
19732 }
19733 _ACEOF
19734 rm -f conftest.$ac_objext conftest$ac_exeext
19735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19736   (eval $ac_link) 2>&5
19737   ac_status=$?
19738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739   (exit $ac_status); } &&
19740          { ac_try='test -s conftest$ac_exeext'
19741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742   (eval $ac_try) 2>&5
19743   ac_status=$?
19744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745   (exit $ac_status); }; }; then
19746   ac_cv_lib_k5crypto_krb5_encrypt_data=yes
19747 else
19748   echo "$as_me: failed program was:" >&5
19749 cat conftest.$ac_ext >&5
19750 ac_cv_lib_k5crypto_krb5_encrypt_data=no
19751 fi
19752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19753 LIBS=$ac_check_lib_save_LIBS
19754 fi
19755 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_krb5_encrypt_data" >&5
19756 echo "${ECHO_T}$ac_cv_lib_k5crypto_krb5_encrypt_data" >&6
19757 if test $ac_cv_lib_k5crypto_krb5_encrypt_data = yes; then
19758   LIBS="$LIBS -lk5crypto"
19759 fi
19760
19761
19762   ########################################################
19763   # now see if we can find the krb5 libs in standard paths
19764   # or as specified above
19765   echo "$as_me:$LINENO: checking for krb5_mk_req_extended in -lkrb5" >&5
19766 echo $ECHO_N "checking for krb5_mk_req_extended in -lkrb5... $ECHO_C" >&6
19767 if test "${ac_cv_lib_krb5_krb5_mk_req_extended+set}" = set; then
19768   echo $ECHO_N "(cached) $ECHO_C" >&6
19769 else
19770   ac_check_lib_save_LIBS=$LIBS
19771 LIBS="-lkrb5  $LIBS"
19772 cat >conftest.$ac_ext <<_ACEOF
19773 #line $LINENO "configure"
19774 #include "confdefs.h"
19775
19776 /* Override any gcc2 internal prototype to avoid an error.  */
19777 #ifdef __cplusplus
19778 extern "C"
19779 #endif
19780 /* We use char because int might match the return type of a gcc2
19781    builtin and then its argument prototype would still apply.  */
19782 char krb5_mk_req_extended ();
19783 int
19784 main ()
19785 {
19786 krb5_mk_req_extended ();
19787   ;
19788   return 0;
19789 }
19790 _ACEOF
19791 rm -f conftest.$ac_objext conftest$ac_exeext
19792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19793   (eval $ac_link) 2>&5
19794   ac_status=$?
19795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796   (exit $ac_status); } &&
19797          { ac_try='test -s conftest$ac_exeext'
19798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799   (eval $ac_try) 2>&5
19800   ac_status=$?
19801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802   (exit $ac_status); }; }; then
19803   ac_cv_lib_krb5_krb5_mk_req_extended=yes
19804 else
19805   echo "$as_me: failed program was:" >&5
19806 cat conftest.$ac_ext >&5
19807 ac_cv_lib_krb5_krb5_mk_req_extended=no
19808 fi
19809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19810 LIBS=$ac_check_lib_save_LIBS
19811 fi
19812 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_mk_req_extended" >&5
19813 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_mk_req_extended" >&6
19814 if test $ac_cv_lib_krb5_krb5_mk_req_extended = yes; then
19815   LIBS="$LIBS -lkrb5";
19816
19817 cat >>confdefs.h <<\_ACEOF
19818 #define HAVE_KRB5 1
19819 _ACEOF
19820
19821 fi
19822
19823
19824   ########################################################
19825   # now see if we can find the gssapi libs in standard paths
19826   echo "$as_me:$LINENO: checking for gss_display_status in -lgssapi_krb5" >&5
19827 echo $ECHO_N "checking for gss_display_status in -lgssapi_krb5... $ECHO_C" >&6
19828 if test "${ac_cv_lib_gssapi_krb5_gss_display_status+set}" = set; then
19829   echo $ECHO_N "(cached) $ECHO_C" >&6
19830 else
19831   ac_check_lib_save_LIBS=$LIBS
19832 LIBS="-lgssapi_krb5  $LIBS"
19833 cat >conftest.$ac_ext <<_ACEOF
19834 #line $LINENO "configure"
19835 #include "confdefs.h"
19836
19837 /* Override any gcc2 internal prototype to avoid an error.  */
19838 #ifdef __cplusplus
19839 extern "C"
19840 #endif
19841 /* We use char because int might match the return type of a gcc2
19842    builtin and then its argument prototype would still apply.  */
19843 char gss_display_status ();
19844 int
19845 main ()
19846 {
19847 gss_display_status ();
19848   ;
19849   return 0;
19850 }
19851 _ACEOF
19852 rm -f conftest.$ac_objext conftest$ac_exeext
19853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19854   (eval $ac_link) 2>&5
19855   ac_status=$?
19856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857   (exit $ac_status); } &&
19858          { ac_try='test -s conftest$ac_exeext'
19859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19860   (eval $ac_try) 2>&5
19861   ac_status=$?
19862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863   (exit $ac_status); }; }; then
19864   ac_cv_lib_gssapi_krb5_gss_display_status=yes
19865 else
19866   echo "$as_me: failed program was:" >&5
19867 cat conftest.$ac_ext >&5
19868 ac_cv_lib_gssapi_krb5_gss_display_status=no
19869 fi
19870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19871 LIBS=$ac_check_lib_save_LIBS
19872 fi
19873 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_display_status" >&5
19874 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_display_status" >&6
19875 if test $ac_cv_lib_gssapi_krb5_gss_display_status = yes; then
19876   LIBS="$LIBS -lgssapi_krb5";
19877
19878 cat >>confdefs.h <<\_ACEOF
19879 #define HAVE_GSSAPI 1
19880 _ACEOF
19881
19882 fi
19883
19884 fi
19885
19886 ########################################################
19887 # Compile with LDAP support?
19888
19889 with_ldap_support=yes
19890 echo "$as_me:$LINENO: checking whether to use LDAP" >&5
19891 echo $ECHO_N "checking whether to use LDAP... $ECHO_C" >&6
19892
19893
19894 # Check whether --with-ldap or --without-ldap was given.
19895 if test "${with_ldap+set}" = set; then
19896   withval="$with_ldap"
19897    case "$withval" in
19898     no)
19899         with_ldap_support=no
19900         ;;
19901   esac
19902 fi;
19903
19904 echo "$as_me:$LINENO: result: $with_ldap_support" >&5
19905 echo "${ECHO_T}$with_ldap_support" >&6
19906
19907 if test x"$with_ldap_support" = x"yes"; then
19908
19909   ##################################################################
19910   # we might need the lber lib on some systems. To avoid link errors
19911   # this test must be before the libldap test
19912   echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5
19913 echo $ECHO_N "checking for ber_scanf in -llber... $ECHO_C" >&6
19914 if test "${ac_cv_lib_lber_ber_scanf+set}" = set; then
19915   echo $ECHO_N "(cached) $ECHO_C" >&6
19916 else
19917   ac_check_lib_save_LIBS=$LIBS
19918 LIBS="-llber  $LIBS"
19919 cat >conftest.$ac_ext <<_ACEOF
19920 #line $LINENO "configure"
19921 #include "confdefs.h"
19922
19923 /* Override any gcc2 internal prototype to avoid an error.  */
19924 #ifdef __cplusplus
19925 extern "C"
19926 #endif
19927 /* We use char because int might match the return type of a gcc2
19928    builtin and then its argument prototype would still apply.  */
19929 char ber_scanf ();
19930 int
19931 main ()
19932 {
19933 ber_scanf ();
19934   ;
19935   return 0;
19936 }
19937 _ACEOF
19938 rm -f conftest.$ac_objext conftest$ac_exeext
19939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19940   (eval $ac_link) 2>&5
19941   ac_status=$?
19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943   (exit $ac_status); } &&
19944          { ac_try='test -s conftest$ac_exeext'
19945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946   (eval $ac_try) 2>&5
19947   ac_status=$?
19948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949   (exit $ac_status); }; }; then
19950   ac_cv_lib_lber_ber_scanf=yes
19951 else
19952   echo "$as_me: failed program was:" >&5
19953 cat conftest.$ac_ext >&5
19954 ac_cv_lib_lber_ber_scanf=no
19955 fi
19956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19957 LIBS=$ac_check_lib_save_LIBS
19958 fi
19959 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_scanf" >&5
19960 echo "${ECHO_T}$ac_cv_lib_lber_ber_scanf" >&6
19961 if test $ac_cv_lib_lber_ber_scanf = yes; then
19962   LIBS="$LIBS -llber"
19963 fi
19964
19965
19966   ########################################################
19967   # now see if we can find the ldap libs in standard paths
19968   if test x$have_ldap != xyes; then
19969   echo "$as_me:$LINENO: checking for ldap_domain2hostlist in -lldap" >&5
19970 echo $ECHO_N "checking for ldap_domain2hostlist in -lldap... $ECHO_C" >&6
19971 if test "${ac_cv_lib_ldap_ldap_domain2hostlist+set}" = set; then
19972   echo $ECHO_N "(cached) $ECHO_C" >&6
19973 else
19974   ac_check_lib_save_LIBS=$LIBS
19975 LIBS="-lldap  $LIBS"
19976 cat >conftest.$ac_ext <<_ACEOF
19977 #line $LINENO "configure"
19978 #include "confdefs.h"
19979
19980 /* Override any gcc2 internal prototype to avoid an error.  */
19981 #ifdef __cplusplus
19982 extern "C"
19983 #endif
19984 /* We use char because int might match the return type of a gcc2
19985    builtin and then its argument prototype would still apply.  */
19986 char ldap_domain2hostlist ();
19987 int
19988 main ()
19989 {
19990 ldap_domain2hostlist ();
19991   ;
19992   return 0;
19993 }
19994 _ACEOF
19995 rm -f conftest.$ac_objext conftest$ac_exeext
19996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19997   (eval $ac_link) 2>&5
19998   ac_status=$?
19999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000   (exit $ac_status); } &&
20001          { ac_try='test -s conftest$ac_exeext'
20002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003   (eval $ac_try) 2>&5
20004   ac_status=$?
20005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006   (exit $ac_status); }; }; then
20007   ac_cv_lib_ldap_ldap_domain2hostlist=yes
20008 else
20009   echo "$as_me: failed program was:" >&5
20010 cat conftest.$ac_ext >&5
20011 ac_cv_lib_ldap_ldap_domain2hostlist=no
20012 fi
20013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20014 LIBS=$ac_check_lib_save_LIBS
20015 fi
20016 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_domain2hostlist" >&5
20017 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_domain2hostlist" >&6
20018 if test $ac_cv_lib_ldap_ldap_domain2hostlist = yes; then
20019   LIBS="$LIBS -lldap";
20020
20021 cat >>confdefs.h <<\_ACEOF
20022 #define HAVE_LDAP 1
20023 _ACEOF
20024
20025 fi
20026
20027
20028         ########################################################
20029         # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
20030         # Check found in pam_ldap 145.
20031
20032 for ac_func in ldap_set_rebind_proc
20033 do
20034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20035 echo "$as_me:$LINENO: checking for $ac_func" >&5
20036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20037 if eval "test \"\${$as_ac_var+set}\" = set"; then
20038   echo $ECHO_N "(cached) $ECHO_C" >&6
20039 else
20040   cat >conftest.$ac_ext <<_ACEOF
20041 #line $LINENO "configure"
20042 #include "confdefs.h"
20043 /* System header to define __stub macros and hopefully few prototypes,
20044     which can conflict with char $ac_func (); below.  */
20045 #include <assert.h>
20046 /* Override any gcc2 internal prototype to avoid an error.  */
20047 #ifdef __cplusplus
20048 extern "C"
20049 #endif
20050 /* We use char because int might match the return type of a gcc2
20051    builtin and then its argument prototype would still apply.  */
20052 char $ac_func ();
20053 char (*f) ();
20054
20055 int
20056 main ()
20057 {
20058 /* The GNU C library defines this for functions which it implements
20059     to always fail with ENOSYS.  Some functions are actually named
20060     something starting with __ and the normal name is an alias.  */
20061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20062 choke me
20063 #else
20064 f = $ac_func;
20065 #endif
20066
20067   ;
20068   return 0;
20069 }
20070 _ACEOF
20071 rm -f conftest.$ac_objext conftest$ac_exeext
20072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20073   (eval $ac_link) 2>&5
20074   ac_status=$?
20075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076   (exit $ac_status); } &&
20077          { ac_try='test -s conftest$ac_exeext'
20078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079   (eval $ac_try) 2>&5
20080   ac_status=$?
20081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082   (exit $ac_status); }; }; then
20083   eval "$as_ac_var=yes"
20084 else
20085   echo "$as_me: failed program was:" >&5
20086 cat conftest.$ac_ext >&5
20087 eval "$as_ac_var=no"
20088 fi
20089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20090 fi
20091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20092 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20093 if test `eval echo '${'$as_ac_var'}'` = yes; then
20094   cat >>confdefs.h <<_ACEOF
20095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20096 _ACEOF
20097
20098 fi
20099 done
20100
20101         echo "$as_me:$LINENO: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
20102 echo $ECHO_N "checking whether ldap_set_rebind_proc takes 3 arguments... $ECHO_C" >&6
20103 if test "${pam_ldap_cv_ldap_set_rebind_proc+set}" = set; then
20104   echo $ECHO_N "(cached) $ECHO_C" >&6
20105 else
20106
20107         cat >conftest.$ac_ext <<_ACEOF
20108 #line $LINENO "configure"
20109 #include "confdefs.h"
20110
20111         #include <lber.h>
20112         #include <ldap.h>
20113 int
20114 main ()
20115 {
20116 ldap_set_rebind_proc(0, 0, 0);
20117   ;
20118   return 0;
20119 }
20120 _ACEOF
20121 rm -f conftest.$ac_objext
20122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20123   (eval $ac_compile) 2>&5
20124   ac_status=$?
20125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126   (exit $ac_status); } &&
20127          { ac_try='test -s conftest.$ac_objext'
20128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129   (eval $ac_try) 2>&5
20130   ac_status=$?
20131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132   (exit $ac_status); }; }; then
20133   pam_ldap_cv_ldap_set_rebind_proc=3
20134 else
20135   echo "$as_me: failed program was:" >&5
20136 cat conftest.$ac_ext >&5
20137 pam_ldap_cv_ldap_set_rebind_proc=2
20138 fi
20139 rm -f conftest.$ac_objext conftest.$ac_ext
20140 fi
20141 echo "$as_me:$LINENO: result: $pam_ldap_cv_ldap_set_rebind_proc" >&5
20142 echo "${ECHO_T}$pam_ldap_cv_ldap_set_rebind_proc" >&6
20143
20144 cat >>confdefs.h <<_ACEOF
20145 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
20146 _ACEOF
20147
20148   fi
20149 fi
20150
20151 ########################################################
20152 # Compile with MySQL support?
20153
20154 # Check whether --with-mysql-prefix or --without-mysql-prefix was given.
20155 if test "${with_mysql_prefix+set}" = set; then
20156   withval="$with_mysql_prefix"
20157   mysql_prefix="$withval"
20158 else
20159   mysql_prefix=""
20160 fi;
20161
20162 # Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
20163 if test "${with_mysql_exec_prefix+set}" = set; then
20164   withval="$with_mysql_exec_prefix"
20165   mysql_exec_prefix="$withval"
20166 else
20167   mysql_exec_prefix=""
20168 fi;
20169 # Check whether --enable-mysqltest or --disable-mysqltest was given.
20170 if test "${enable_mysqltest+set}" = set; then
20171   enableval="$enable_mysqltest"
20172
20173 else
20174   enable_mysqltest=yes
20175 fi;
20176
20177   if test x$mysql_exec_prefix != x ; then
20178      mysql_args="$mysql_args --exec-prefix=$mysql_exec_prefix"
20179      if test x${MYSQL_CONFIG+set} != xset ; then
20180         MYSQL_CONFIG=$mysql_exec_prefix/bin/mysql_config
20181      fi
20182   fi
20183   if test x$mysql_prefix != x ; then
20184      mysql_args="$mysql_args --prefix=$mysql_prefix"
20185      if test x${MYSQL_CONFIG+set} != xset ; then
20186         MYSQL_CONFIG=$mysql_prefix/bin/mysql_config
20187      fi
20188   fi
20189
20190
20191   # Extract the first word of "mysql_config", so it can be a program name with args.
20192 set dummy mysql_config; ac_word=$2
20193 echo "$as_me:$LINENO: checking for $ac_word" >&5
20194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20195 if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
20196   echo $ECHO_N "(cached) $ECHO_C" >&6
20197 else
20198   case $MYSQL_CONFIG in
20199   [\\/]* | ?:[\\/]*)
20200   ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
20201   ;;
20202   *)
20203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20204 for as_dir in $PATH
20205 do
20206   IFS=$as_save_IFS
20207   test -z "$as_dir" && as_dir=.
20208   for ac_exec_ext in '' $ac_executable_extensions; do
20209   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20210     ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20212     break 2
20213   fi
20214 done
20215 done
20216
20217   test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG="no"
20218   ;;
20219 esac
20220 fi
20221 MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
20222
20223 if test -n "$MYSQL_CONFIG"; then
20224   echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
20225 echo "${ECHO_T}$MYSQL_CONFIG" >&6
20226 else
20227   echo "$as_me:$LINENO: result: no" >&5
20228 echo "${ECHO_T}no" >&6
20229 fi
20230
20231   min_mysql_version=0.11.0
20232   echo "$as_me:$LINENO: checking for MYSQL - version >= $min_mysql_version" >&5
20233 echo $ECHO_N "checking for MYSQL - version >= $min_mysql_version... $ECHO_C" >&6
20234   no_mysql=""
20235   if test "$MYSQL_CONFIG" = "no" ; then
20236     no_mysql=yes
20237   else
20238     MYSQL_CFLAGS=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
20239     MYSQL_LIBS=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
20240
20241     mysql_major_version=`$MYSQL_CONFIG $mysql_args --version | \
20242            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20243     mysql_minor_version=`$MYSQL_CONFIG $mysql_args --version | \
20244            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20245     mysql_micro_version=`$MYSQL_CONFIG $mysql_config_args --version | \
20246            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20247     if test "x$enable_mysqltest" = "xyes" ; then
20248       ac_save_CFLAGS="$CFLAGS"
20249       ac_save_LIBS="$LIBS"
20250       CFLAGS="$CFLAGS $MYSQL_CFLAGS"
20251       LIBS="$LIBS $MYSQL_LIBS"
20252       rm -f conf.mysqltest
20253       if test "$cross_compiling" = yes; then
20254   echo $ac_n "cross compiling; assumed OK... $ac_c"
20255 else
20256   cat >conftest.$ac_ext <<_ACEOF
20257 #line $LINENO "configure"
20258 #include "confdefs.h"
20259
20260 #include <stdio.h>
20261 #include <stdlib.h>
20262 #include <string.h>
20263 #include <mysql.h>
20264
20265 char*
20266 my_strdup (char *str)
20267 {
20268   char *new_str;
20269
20270   if (str)
20271     {
20272       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
20273       strcpy (new_str, str);
20274     }
20275   else
20276     new_str = NULL;
20277
20278   return new_str;
20279 }
20280
20281 int main (int argc, char *argv[])
20282 {
20283 int major, minor, micro;
20284   char *tmp_version;
20285
20286   /* This hangs on some systems (?)
20287   system ("touch conf.mysqltest");
20288   */
20289   { FILE *fp = fopen("conf.mysqltest", "a"); if ( fp ) fclose(fp); }
20290
20291   /* HP/UX 9 (%@#!) writes to sscanf strings */
20292   tmp_version = my_strdup("$min_mysql_version");
20293   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20294      printf("%s, bad version string\n", "$min_mysql_version");
20295      exit(1);
20296    }
20297
20298    if (($mysql_major_version > major) ||
20299       (($mysql_major_version == major) && ($mysql_minor_version > minor)) ||
20300       (($mysql_major_version == major) && ($mysql_minor_version == minor) && ($mysql_micro_version >= micro)))
20301     {
20302       return 0;
20303     }
20304   else
20305     {
20306       printf("\n*** 'mysql_config --version' returned %d.%d.%d, but the minimum version\n", $mysql_major_version, $mysql_minor_version, $mysql_micro_version);
20307       printf("*** of MYSQL required is %d.%d.%d. If mysql_config is correct, then it is\n", major, minor, micro);
20308       printf("*** best to upgrade to the required version.\n");
20309       printf("*** If mysql_config was wrong, set the environment variable MYSQL_CONFIG\n");
20310       printf("*** to point to the correct copy of mysql_config, and remove the file\n");
20311       printf("*** config.cache before re-running configure\n");
20312       return 1;
20313     }
20314 }
20315
20316
20317 _ACEOF
20318 rm -f conftest$ac_exeext
20319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20320   (eval $ac_link) 2>&5
20321   ac_status=$?
20322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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   :
20330 else
20331   echo "$as_me: program exited with status $ac_status" >&5
20332 echo "$as_me: failed program was:" >&5
20333 cat conftest.$ac_ext >&5
20334 ( exit $ac_status )
20335 no_mysql=yes
20336 fi
20337 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20338 fi
20339        CFLAGS="$ac_save_CFLAGS"
20340        LIBS="$ac_save_LIBS"
20341      fi
20342   fi
20343   if test "x$no_mysql" = x ; then
20344      echo "$as_me:$LINENO: result: yes" >&5
20345 echo "${ECHO_T}yes" >&6
20346      :
20347   else
20348      echo "$as_me:$LINENO: result: no" >&5
20349 echo "${ECHO_T}no" >&6
20350      if test "$MYSQL_CONFIG" = "no" ; then
20351        echo "*** The mysql_config script installed by MYSQL could not be found"
20352        echo "*** If MYSQL was installed in PREFIX, make sure PREFIX/bin is in"
20353        echo "*** your path, or set the MYSQL_CONFIG environment variable to the"
20354        echo "*** full path to mysql_config."
20355      else
20356        if test -f conf.mysqltest ; then
20357         :
20358        else
20359           echo "*** Could not run MYSQL test program, checking why..."
20360           CFLAGS="$CFLAGS $MYSQL_CFLAGS"
20361           LIBS="$LIBS $MYSQL_LIBS"
20362           cat >conftest.$ac_ext <<_ACEOF
20363 #line $LINENO "configure"
20364 #include "confdefs.h"
20365
20366 #include <stdio.h>
20367 #include <mysql.h>
20368
20369 int main(int argc, char *argv[])
20370 { return 0; }
20371 #undef  main
20372 #define main K_and_R_C_main
20373
20374 int
20375 main ()
20376 {
20377  return 0;
20378   ;
20379   return 0;
20380 }
20381 _ACEOF
20382 rm -f conftest.$ac_objext conftest$ac_exeext
20383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20384   (eval $ac_link) 2>&5
20385   ac_status=$?
20386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387   (exit $ac_status); } &&
20388          { ac_try='test -s conftest$ac_exeext'
20389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20390   (eval $ac_try) 2>&5
20391   ac_status=$?
20392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393   (exit $ac_status); }; }; then
20394    echo "*** The test program compiled, but did not run. This usually means"
20395           echo "*** that the run-time linker is not finding MYSQL or finding the wrong"
20396           echo "*** version of MYSQL. If it is not finding MYSQL, you'll need to set your"
20397           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20398           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20399           echo "*** is required on your system"
20400     echo "***"
20401           echo "*** If you have an old version installed, it is best to remove it, although"
20402           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20403 else
20404   echo "$as_me: failed program was:" >&5
20405 cat conftest.$ac_ext >&5
20406  echo "*** The test program failed to compile or link. See the file config.log for the"
20407           echo "*** exact error that occured. This usually means MYSQL was incorrectly installed"
20408           echo "*** or that you have moved MYSQL since it was installed. In the latter case, you"
20409           echo "*** may want to edit the mysql_config script: $MYSQL_CONFIG"
20410 fi
20411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20412           CFLAGS="$ac_save_CFLAGS"
20413           LIBS="$ac_save_LIBS"
20414        fi
20415      fi
20416      MYSQL_CFLAGS=""
20417      MYSQL_LIBS=""
20418      :
20419   fi
20420
20421
20422   rm -f conf.mysqltest
20423
20424 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
20425
20426
20427 ########################################################
20428 # Compile with XML support?
20429
20430
20431 # Check whether --with-xml-prefix or --without-xml-prefix was given.
20432 if test "${with_xml_prefix+set}" = set; then
20433   withval="$with_xml_prefix"
20434   xml_config_prefix="$withval"
20435 else
20436   xml_config_prefix=""
20437 fi;
20438
20439 # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
20440 if test "${with_xml_exec_prefix+set}" = set; then
20441   withval="$with_xml_exec_prefix"
20442   xml_config_exec_prefix="$withval"
20443 else
20444   xml_config_exec_prefix=""
20445 fi;
20446 # Check whether --enable-xmltest or --disable-xmltest was given.
20447 if test "${enable_xmltest+set}" = set; then
20448   enableval="$enable_xmltest"
20449
20450 else
20451   enable_xmltest=yes
20452 fi;
20453
20454   if test x$xml_config_exec_prefix != x ; then
20455      xml_config_args="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
20456      if test x${XML2_CONFIG+set} != xset ; then
20457         XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
20458      fi
20459   fi
20460   if test x$xml_config_prefix != x ; then
20461      xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
20462      if test x${XML2_CONFIG+set} != xset ; then
20463         XML2_CONFIG=$xml_config_prefix/bin/xml2-config
20464      fi
20465   fi
20466
20467   # Extract the first word of "xml2-config", so it can be a program name with args.
20468 set dummy xml2-config; ac_word=$2
20469 echo "$as_me:$LINENO: checking for $ac_word" >&5
20470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20471 if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
20472   echo $ECHO_N "(cached) $ECHO_C" >&6
20473 else
20474   case $XML2_CONFIG in
20475   [\\/]* | ?:[\\/]*)
20476   ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
20477   ;;
20478   *)
20479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20480 for as_dir in $PATH
20481 do
20482   IFS=$as_save_IFS
20483   test -z "$as_dir" && as_dir=.
20484   for ac_exec_ext in '' $ac_executable_extensions; do
20485   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20486     ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20488     break 2
20489   fi
20490 done
20491 done
20492
20493   test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
20494   ;;
20495 esac
20496 fi
20497 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
20498
20499 if test -n "$XML2_CONFIG"; then
20500   echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
20501 echo "${ECHO_T}$XML2_CONFIG" >&6
20502 else
20503   echo "$as_me:$LINENO: result: no" >&5
20504 echo "${ECHO_T}no" >&6
20505 fi
20506
20507   min_xml_version=2.0.0
20508   echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
20509 echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
20510   no_xml=""
20511   if test "$XML2_CONFIG" = "no" ; then
20512     no_xml=yes
20513   else
20514     XML_CFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
20515     XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
20516     xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
20517            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20518     xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
20519            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20520     xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
20521            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20522     if test "x$enable_xmltest" = "xyes" ; then
20523       ac_save_CFLAGS="$CFLAGS"
20524       ac_save_LIBS="$LIBS"
20525       CFLAGS="$CFLAGS $XML_CFLAGS"
20526       LIBS="$XML_LIBS $LIBS"
20527       rm -f conf.xmltest
20528       if test "$cross_compiling" = yes; then
20529   echo $ac_n "cross compiling; assumed OK... $ac_c"
20530 else
20531   cat >conftest.$ac_ext <<_ACEOF
20532 #line $LINENO "configure"
20533 #include "confdefs.h"
20534
20535 #include <stdlib.h>
20536 #include <stdio.h>
20537 #include <string.h>
20538 #include <libxml/xmlversion.h>
20539
20540 int
20541 main()
20542 {
20543   int xml_major_version, xml_minor_version, xml_micro_version;
20544   int major, minor, micro;
20545   char *tmp_version;
20546
20547   system("touch conf.xmltest");
20548
20549   /* Capture xml2-config output via autoconf/configure variables */
20550   /* HP/UX 9 (%@#!) writes to sscanf strings */
20551   tmp_version = (char *)strdup("$min_xml_version");
20552   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20553      printf("%s, bad version string from xml2-config\n", "$min_xml_version");
20554      exit(1);
20555    }
20556    free(tmp_version);
20557
20558    /* Capture the version information from the header files */
20559    tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
20560    if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
20561      printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
20562      exit(1);
20563    }
20564    free(tmp_version);
20565
20566  /* Compare xml2-config output to the libxml headers */
20567   if ((xml_major_version != $xml_config_major_version) ||
20568       (xml_minor_version != $xml_config_minor_version) ||
20569       (xml_micro_version != $xml_config_micro_version))
20570     {
20571       printf("*** libxml header files (version %d.%d.%d) do not match\n",
20572          xml_major_version, xml_minor_version, xml_micro_version);
20573       printf("*** xml2-config (version %d.%d.%d)\n",
20574          $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
20575       return 1;
20576     }
20577 /* Compare the headers to the library to make sure we match */
20578   /* Less than ideal -- doesn't provide us with return value feedback,
20579    * only exits if there's a serious mismatch between header and library.
20580    */
20581     LIBXML_TEST_VERSION;
20582
20583     /* Test that the library is greater than our minimum version */
20584     if ((xml_major_version > major) ||
20585         ((xml_major_version == major) && (xml_minor_version > minor)) ||
20586         ((xml_major_version == major) && (xml_minor_version == minor) &&
20587         (xml_micro_version >= micro)))
20588       {
20589         return 0;
20590        }
20591      else
20592       {
20593         printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
20594                xml_major_version, xml_minor_version, xml_micro_version);
20595         printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
20596            major, minor, micro);
20597         printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
20598         printf("***\n");
20599         printf("*** If you have already installed a sufficiently new version, this error\n");
20600         printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
20601         printf("*** being found. The easiest way to fix this is to remove the old version\n");
20602         printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
20603         printf("*** correct copy of xml2-config. (In this case, you will have to\n");
20604         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20605         printf("*** so that the correct libraries are found at run-time))\n");
20606     }
20607   return 1;
20608 }
20609
20610 _ACEOF
20611 rm -f conftest$ac_exeext
20612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20613   (eval $ac_link) 2>&5
20614   ac_status=$?
20615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618   (eval $ac_try) 2>&5
20619   ac_status=$?
20620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621   (exit $ac_status); }; }; then
20622   :
20623 else
20624   echo "$as_me: program exited with status $ac_status" >&5
20625 echo "$as_me: failed program was:" >&5
20626 cat conftest.$ac_ext >&5
20627 ( exit $ac_status )
20628 no_xml=yes
20629 fi
20630 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20631 fi
20632        CFLAGS="$ac_save_CFLAGS"
20633        LIBS="$ac_save_LIBS"
20634      fi
20635   fi
20636
20637   if test "x$no_xml" = x ; then
20638      echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
20639 echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6
20640      :
20641   else
20642      echo "$as_me:$LINENO: result: no" >&5
20643 echo "${ECHO_T}no" >&6
20644      if test "$XML2_CONFIG" = "no" ; then
20645        echo "*** The xml2-config script installed by LIBXML could not be found"
20646        echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
20647        echo "*** your path, or set the XML2_CONFIG environment variable to the"
20648        echo "*** full path to xml2-config."
20649      else
20650        if test -f conf.xmltest ; then
20651         :
20652        else
20653           echo "*** Could not run libxml test program, checking why..."
20654           CFLAGS="$CFLAGS $XML_CFLAGS"
20655           LIBS="$LIBS $XML_LIBS"
20656           cat >conftest.$ac_ext <<_ACEOF
20657 #line $LINENO "configure"
20658 #include "confdefs.h"
20659
20660 #include <libxml/xmlversion.h>
20661 #include <stdio.h>
20662
20663 int
20664 main ()
20665 {
20666  LIBXML_TEST_VERSION; return 0;
20667   ;
20668   return 0;
20669 }
20670 _ACEOF
20671 rm -f conftest.$ac_objext conftest$ac_exeext
20672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20673   (eval $ac_link) 2>&5
20674   ac_status=$?
20675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676   (exit $ac_status); } &&
20677          { ac_try='test -s conftest$ac_exeext'
20678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679   (eval $ac_try) 2>&5
20680   ac_status=$?
20681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682   (exit $ac_status); }; }; then
20683    echo "*** The test program compiled, but did not run. This usually means"
20684           echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
20685           echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
20686           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20687           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20688           echo "*** is required on your system"
20689           echo "***"
20690           echo "*** If you have an old version installed, it is best to remove it, although"
20691           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20692 else
20693   echo "$as_me: failed program was:" >&5
20694 cat conftest.$ac_ext >&5
20695  echo "*** The test program failed to compile or link. See the file config.log for the"
20696           echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
20697           echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
20698           echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
20699 fi
20700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20701           CFLAGS="$ac_save_CFLAGS"
20702           LIBS="$ac_save_LIBS"
20703        fi
20704      fi
20705
20706      XML_CFLAGS=""
20707      XML_LIBS=""
20708      :
20709   fi
20710
20711
20712   rm -f conf.xmltest
20713
20714 CFLAGS="$CFLAGS $XML_CFLAGS"
20715
20716 #################################################
20717 # check for automount support
20718 echo "$as_me:$LINENO: checking whether to use AUTOMOUNT" >&5
20719 echo $ECHO_N "checking whether to use AUTOMOUNT... $ECHO_C" >&6
20720
20721 # Check whether --with-automount or --without-automount was given.
20722 if test "${with_automount+set}" = set; then
20723   withval="$with_automount"
20724    case "$withval" in
20725   yes)
20726     echo "$as_me:$LINENO: result: yes" >&5
20727 echo "${ECHO_T}yes" >&6
20728
20729 cat >>confdefs.h <<\_ACEOF
20730 #define WITH_AUTOMOUNT 1
20731 _ACEOF
20732
20733     ;;
20734   *)
20735     echo "$as_me:$LINENO: result: no" >&5
20736 echo "${ECHO_T}no" >&6
20737     ;;
20738   esac
20739 else
20740   echo "$as_me:$LINENO: result: no" >&5
20741 echo "${ECHO_T}no" >&6
20742
20743 fi;
20744
20745 #################################################
20746 # check for smbmount support
20747 echo "$as_me:$LINENO: checking whether to use SMBMOUNT" >&5
20748 echo $ECHO_N "checking whether to use SMBMOUNT... $ECHO_C" >&6
20749
20750 # Check whether --with-smbmount or --without-smbmount was given.
20751 if test "${with_smbmount+set}" = set; then
20752   withval="$with_smbmount"
20753    case "$withval" in
20754   yes)
20755         case "$host_os" in
20756         *linux*)
20757                 echo "$as_me:$LINENO: result: yes" >&5
20758 echo "${ECHO_T}yes" >&6
20759
20760 cat >>confdefs.h <<\_ACEOF
20761 #define WITH_SMBMOUNT 1
20762 _ACEOF
20763
20764                 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
20765                 ;;
20766         *)
20767                 { { echo "$as_me:$LINENO: error: not on a linux system!" >&5
20768 echo "$as_me: error: not on a linux system!" >&2;}
20769    { (exit 1); exit 1; }; }
20770                 ;;
20771         esac
20772     ;;
20773   *)
20774     echo "$as_me:$LINENO: result: no" >&5
20775 echo "${ECHO_T}no" >&6
20776     MPROGS=
20777     ;;
20778   esac
20779 else
20780   echo "$as_me:$LINENO: result: no" >&5
20781 echo "${ECHO_T}no" >&6
20782   MPROGS=
20783
20784 fi;
20785
20786
20787 #################################################
20788 # check for a PAM clear-text auth, accounts, password and session support
20789 with_pam_for_crypt=no
20790 echo "$as_me:$LINENO: checking whether to use PAM" >&5
20791 echo $ECHO_N "checking whether to use PAM... $ECHO_C" >&6
20792
20793 # Check whether --with-pam or --without-pam was given.
20794 if test "${with_pam+set}" = set; then
20795   withval="$with_pam"
20796    case "$withval" in
20797   yes)
20798     echo "$as_me:$LINENO: result: yes" >&5
20799 echo "${ECHO_T}yes" >&6
20800
20801 cat >>confdefs.h <<\_ACEOF
20802 #define WITH_PAM 1
20803 _ACEOF
20804
20805     AUTHLIBS="$AUTHLIBS -lpam"
20806     with_pam_for_crypt=yes
20807     ;;
20808   *)
20809     echo "$as_me:$LINENO: result: no" >&5
20810 echo "${ECHO_T}no" >&6
20811     ;;
20812   esac
20813 else
20814   echo "$as_me:$LINENO: result: no" >&5
20815 echo "${ECHO_T}no" >&6
20816
20817 fi;
20818
20819 # we can't build a pam module if we don't have pam.
20820 echo "$as_me:$LINENO: checking for pam_get_data in -lpam" >&5
20821 echo $ECHO_N "checking for pam_get_data in -lpam... $ECHO_C" >&6
20822 if test "${ac_cv_lib_pam_pam_get_data+set}" = set; then
20823   echo $ECHO_N "(cached) $ECHO_C" >&6
20824 else
20825   ac_check_lib_save_LIBS=$LIBS
20826 LIBS="-lpam  $LIBS"
20827 cat >conftest.$ac_ext <<_ACEOF
20828 #line $LINENO "configure"
20829 #include "confdefs.h"
20830
20831 /* Override any gcc2 internal prototype to avoid an error.  */
20832 #ifdef __cplusplus
20833 extern "C"
20834 #endif
20835 /* We use char because int might match the return type of a gcc2
20836    builtin and then its argument prototype would still apply.  */
20837 char pam_get_data ();
20838 int
20839 main ()
20840 {
20841 pam_get_data ();
20842   ;
20843   return 0;
20844 }
20845 _ACEOF
20846 rm -f conftest.$ac_objext conftest$ac_exeext
20847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20848   (eval $ac_link) 2>&5
20849   ac_status=$?
20850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851   (exit $ac_status); } &&
20852          { ac_try='test -s conftest$ac_exeext'
20853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854   (eval $ac_try) 2>&5
20855   ac_status=$?
20856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857   (exit $ac_status); }; }; then
20858   ac_cv_lib_pam_pam_get_data=yes
20859 else
20860   echo "$as_me: failed program was:" >&5
20861 cat conftest.$ac_ext >&5
20862 ac_cv_lib_pam_pam_get_data=no
20863 fi
20864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20865 LIBS=$ac_check_lib_save_LIBS
20866 fi
20867 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_get_data" >&5
20868 echo "${ECHO_T}$ac_cv_lib_pam_pam_get_data" >&6
20869 if test $ac_cv_lib_pam_pam_get_data = yes; then
20870
20871 cat >>confdefs.h <<\_ACEOF
20872 #define HAVE_LIBPAM 1
20873 _ACEOF
20874
20875 fi
20876
20877
20878 #################################################
20879 # check for pam_smbpass support
20880 echo "$as_me:$LINENO: checking whether to use pam_smbpass" >&5
20881 echo $ECHO_N "checking whether to use pam_smbpass... $ECHO_C" >&6
20882
20883 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
20884 if test "${with_pam_smbpass+set}" = set; then
20885   withval="$with_pam_smbpass"
20886    case "$withval" in
20887   yes)
20888     echo "$as_me:$LINENO: result: yes" >&5
20889 echo "${ECHO_T}yes" >&6
20890
20891 # Conditions under which pam_smbpass should not be built.
20892
20893        if test x$PICFLAG = x; then
20894           echo "$as_me:$LINENO: result: No support for PIC code - disabling pam_smbpass" >&5
20895 echo "${ECHO_T}No support for PIC code - disabling pam_smbpass" >&6
20896           PAM_MOD=""
20897        elif test x$ac_cv_lib_pam_pam_get_data = xno; then
20898           echo "$as_me:$LINENO: result: No libpam found -- disabling pam_smbpass" >&5
20899 echo "${ECHO_T}No libpam found -- disabling pam_smbpass" >&6
20900           PAM_MOD=""
20901        else
20902           PAM_MOD="bin/pam_smbpass.so"
20903        fi
20904     ;;
20905   *)
20906     echo "$as_me:$LINENO: result: no" >&5
20907 echo "${ECHO_T}no" >&6
20908     ;;
20909   esac
20910 else
20911   echo "$as_me:$LINENO: result: no" >&5
20912 echo "${ECHO_T}no" >&6
20913
20914 fi;
20915
20916
20917 ###############################################
20918 # test for where we get crypt() from, but only
20919 # if not using PAM
20920 if test x"$with_pam_for_crypt" = x"no"; then
20921
20922 for ac_func in crypt
20923 do
20924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20925 echo "$as_me:$LINENO: checking for $ac_func" >&5
20926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20927 if eval "test \"\${$as_ac_var+set}\" = set"; then
20928   echo $ECHO_N "(cached) $ECHO_C" >&6
20929 else
20930   cat >conftest.$ac_ext <<_ACEOF
20931 #line $LINENO "configure"
20932 #include "confdefs.h"
20933 /* System header to define __stub macros and hopefully few prototypes,
20934     which can conflict with char $ac_func (); below.  */
20935 #include <assert.h>
20936 /* Override any gcc2 internal prototype to avoid an error.  */
20937 #ifdef __cplusplus
20938 extern "C"
20939 #endif
20940 /* We use char because int might match the return type of a gcc2
20941    builtin and then its argument prototype would still apply.  */
20942 char $ac_func ();
20943 char (*f) ();
20944
20945 int
20946 main ()
20947 {
20948 /* The GNU C library defines this for functions which it implements
20949     to always fail with ENOSYS.  Some functions are actually named
20950     something starting with __ and the normal name is an alias.  */
20951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20952 choke me
20953 #else
20954 f = $ac_func;
20955 #endif
20956
20957   ;
20958   return 0;
20959 }
20960 _ACEOF
20961 rm -f conftest.$ac_objext conftest$ac_exeext
20962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20963   (eval $ac_link) 2>&5
20964   ac_status=$?
20965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966   (exit $ac_status); } &&
20967          { ac_try='test -s conftest$ac_exeext'
20968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20969   (eval $ac_try) 2>&5
20970   ac_status=$?
20971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972   (exit $ac_status); }; }; then
20973   eval "$as_ac_var=yes"
20974 else
20975   echo "$as_me: failed program was:" >&5
20976 cat conftest.$ac_ext >&5
20977 eval "$as_ac_var=no"
20978 fi
20979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20980 fi
20981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20983 if test `eval echo '${'$as_ac_var'}'` = yes; then
20984   cat >>confdefs.h <<_ACEOF
20985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20986 _ACEOF
20987
20988 fi
20989 done
20990
20991 if test x"$ac_cv_func_crypt" = x"no"; then
20992     echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
20993 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
20994 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
20995   echo $ECHO_N "(cached) $ECHO_C" >&6
20996 else
20997   ac_check_lib_save_LIBS=$LIBS
20998 LIBS="-lcrypt  $LIBS"
20999 cat >conftest.$ac_ext <<_ACEOF
21000 #line $LINENO "configure"
21001 #include "confdefs.h"
21002
21003 /* Override any gcc2 internal prototype to avoid an error.  */
21004 #ifdef __cplusplus
21005 extern "C"
21006 #endif
21007 /* We use char because int might match the return type of a gcc2
21008    builtin and then its argument prototype would still apply.  */
21009 char crypt ();
21010 int
21011 main ()
21012 {
21013 crypt ();
21014   ;
21015   return 0;
21016 }
21017 _ACEOF
21018 rm -f conftest.$ac_objext conftest$ac_exeext
21019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21020   (eval $ac_link) 2>&5
21021   ac_status=$?
21022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023   (exit $ac_status); } &&
21024          { ac_try='test -s conftest$ac_exeext'
21025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21026   (eval $ac_try) 2>&5
21027   ac_status=$?
21028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029   (exit $ac_status); }; }; then
21030   ac_cv_lib_crypt_crypt=yes
21031 else
21032   echo "$as_me: failed program was:" >&5
21033 cat conftest.$ac_ext >&5
21034 ac_cv_lib_crypt_crypt=no
21035 fi
21036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21037 LIBS=$ac_check_lib_save_LIBS
21038 fi
21039 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21040 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
21041 if test $ac_cv_lib_crypt_crypt = yes; then
21042   AUTHLIBS="$AUTHLIBS -lcrypt";
21043
21044 cat >>confdefs.h <<\_ACEOF
21045 #define HAVE_CRYPT 1
21046 _ACEOF
21047
21048 fi
21049
21050 fi
21051 fi
21052
21053 ##
21054 ## moved after the check for -lcrypt in order to
21055 ## ensure that the necessary libraries are included
21056 ## check checking for truncated salt.  Wrapped by the
21057 ## $with_pam_for_crypt variable as above   --jerry
21058 ##
21059 if test $with_pam_for_crypt = no; then
21060 echo "$as_me:$LINENO: checking for a crypt that needs truncated salt" >&5
21061 echo $ECHO_N "checking for a crypt that needs truncated salt... $ECHO_C" >&6
21062 if test "${samba_cv_HAVE_TRUNCATED_SALT+set}" = set; then
21063   echo $ECHO_N "(cached) $ECHO_C" >&6
21064 else
21065
21066 crypt_LIBS="$LIBS"
21067 LIBS="$AUTHLIBS $LIBS"
21068 if test "$cross_compiling" = yes; then
21069   samba_cv_HAVE_TRUNCATED_SALT=cross
21070 else
21071   cat >conftest.$ac_ext <<_ACEOF
21072 #line $LINENO "configure"
21073 #include "confdefs.h"
21074 #include "${srcdir-.}/tests/crypttest.c"
21075 _ACEOF
21076 rm -f conftest$ac_exeext
21077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21078   (eval $ac_link) 2>&5
21079   ac_status=$?
21080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083   (eval $ac_try) 2>&5
21084   ac_status=$?
21085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086   (exit $ac_status); }; }; then
21087   samba_cv_HAVE_TRUNCATED_SALT=no
21088 else
21089   echo "$as_me: program exited with status $ac_status" >&5
21090 echo "$as_me: failed program was:" >&5
21091 cat conftest.$ac_ext >&5
21092 ( exit $ac_status )
21093 samba_cv_HAVE_TRUNCATED_SALT=yes
21094 fi
21095 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21096 fi
21097 LIBS="$crypt_LIBS"
21098 fi
21099 echo "$as_me:$LINENO: result: $samba_cv_HAVE_TRUNCATED_SALT" >&5
21100 echo "${ECHO_T}$samba_cv_HAVE_TRUNCATED_SALT" >&6
21101 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
21102
21103 cat >>confdefs.h <<\_ACEOF
21104 #define HAVE_TRUNCATED_SALT 1
21105 _ACEOF
21106
21107 fi
21108 fi
21109
21110 # New experimental SAM system
21111
21112 echo "$as_me:$LINENO: checking whether to build the new (experimental) SAM database" >&5
21113 echo $ECHO_N "checking whether to build the new (experimental) SAM database... $ECHO_C" >&6
21114
21115 # Check whether --with-sam or --without-sam was given.
21116 if test "${with_sam+set}" = set; then
21117   withval="$with_sam"
21118    case "$withval" in
21119   yes)
21120     echo "$as_me:$LINENO: result: yes" >&5
21121 echo "${ECHO_T}yes" >&6
21122
21123 cat >>confdefs.h <<\_ACEOF
21124 #define WITH_SAM 1
21125 _ACEOF
21126
21127     ;;
21128   *)
21129     echo "$as_me:$LINENO: result: no" >&5
21130 echo "${ECHO_T}no" >&6
21131     ;;
21132   esac
21133 else
21134   echo "$as_me:$LINENO: result: no" >&5
21135 echo "${ECHO_T}no" >&6
21136
21137 fi;
21138
21139
21140 ########################################################################################
21141 ##
21142 ## TESTS FOR SAM BACKENDS.  KEEP THESE GROUPED TOGETHER
21143 ##
21144 ########################################################################################
21145
21146 #################################################
21147 # check for a LDAP password database configuration backwards compatibility
21148 echo "$as_me:$LINENO: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
21149 echo $ECHO_N "checking whether to use LDAP SAM 2.2 compatible configuration... $ECHO_C" >&6
21150
21151 # Check whether --with-ldapsam or --without-ldapsam was given.
21152 if test "${with_ldapsam+set}" = set; then
21153   withval="$with_ldapsam"
21154    case "$withval" in
21155   yes)
21156     echo "$as_me:$LINENO: result: yes" >&5
21157 echo "${ECHO_T}yes" >&6
21158
21159 cat >>confdefs.h <<\_ACEOF
21160 #define WITH_LDAP_SAMCONFIG 1
21161 _ACEOF
21162
21163     ;;
21164   *)
21165     echo "$as_me:$LINENO: result: no" >&5
21166 echo "${ECHO_T}no" >&6
21167     ;;
21168   esac
21169 else
21170   echo "$as_me:$LINENO: result: no" >&5
21171 echo "${ECHO_T}no" >&6
21172
21173 fi;
21174
21175 #################################################
21176 # check for a TDB password database
21177 echo "$as_me:$LINENO: checking whether to use TDB SAM database" >&5
21178 echo $ECHO_N "checking whether to use TDB SAM database... $ECHO_C" >&6
21179
21180 # Check whether --with-tdbsam or --without-tdbsam was given.
21181 if test "${with_tdbsam+set}" = set; then
21182   withval="$with_tdbsam"
21183    case "$withval" in
21184   yes)
21185     echo "$as_me:$LINENO: result: yes" >&5
21186 echo "${ECHO_T}yes" >&6
21187
21188 cat >>confdefs.h <<\_ACEOF
21189 #define WITH_TDB_SAM 1
21190 _ACEOF
21191
21192     ;;
21193   *)
21194     echo "$as_me:$LINENO: result: no" >&5
21195 echo "${ECHO_T}no" >&6
21196     ;;
21197   esac
21198 else
21199   echo "$as_me:$LINENO: result: no" >&5
21200 echo "${ECHO_T}no" >&6
21201
21202 fi;
21203
21204 #################################################
21205 # check for a NISPLUS password database
21206 echo "$as_me:$LINENO: checking whether to use NISPLUS SAM database" >&5
21207 echo $ECHO_N "checking whether to use NISPLUS SAM database... $ECHO_C" >&6
21208
21209 # Check whether --with-nisplussam or --without-nisplussam was given.
21210 if test "${with_nisplussam+set}" = set; then
21211   withval="$with_nisplussam"
21212    case "$withval" in
21213   yes)
21214     echo "$as_me:$LINENO: result: yes" >&5
21215 echo "${ECHO_T}yes" >&6
21216
21217 cat >>confdefs.h <<\_ACEOF
21218 #define WITH_NISPLUS_SAM 1
21219 _ACEOF
21220
21221     ;;
21222   *)
21223     echo "$as_me:$LINENO: result: no" >&5
21224 echo "${ECHO_T}no" >&6
21225     ;;
21226   esac
21227 else
21228   echo "$as_me:$LINENO: result: no" >&5
21229 echo "${ECHO_T}no" >&6
21230
21231 fi;
21232
21233 ########################################################################################
21234 ##
21235 ## END OF TESTS FOR SAM BACKENDS.
21236 ##
21237 ########################################################################################
21238
21239 #################################################
21240 # check for a NISPLUS_HOME support
21241 echo "$as_me:$LINENO: checking whether to use NISPLUS_HOME" >&5
21242 echo $ECHO_N "checking whether to use NISPLUS_HOME... $ECHO_C" >&6
21243
21244 # Check whether --with-nisplus-home or --without-nisplus-home was given.
21245 if test "${with_nisplus_home+set}" = set; then
21246   withval="$with_nisplus_home"
21247    case "$withval" in
21248   yes)
21249     echo "$as_me:$LINENO: result: yes" >&5
21250 echo "${ECHO_T}yes" >&6
21251
21252 cat >>confdefs.h <<\_ACEOF
21253 #define WITH_NISPLUS_HOME 1
21254 _ACEOF
21255
21256     ;;
21257   *)
21258     echo "$as_me:$LINENO: result: no" >&5
21259 echo "${ECHO_T}no" >&6
21260     ;;
21261   esac
21262 else
21263   echo "$as_me:$LINENO: result: no" >&5
21264 echo "${ECHO_T}no" >&6
21265
21266 fi;
21267
21268 #################################################
21269 # check for syslog logging
21270 echo "$as_me:$LINENO: checking whether to use syslog logging" >&5
21271 echo $ECHO_N "checking whether to use syslog logging... $ECHO_C" >&6
21272
21273 # Check whether --with-syslog or --without-syslog was given.
21274 if test "${with_syslog+set}" = set; then
21275   withval="$with_syslog"
21276    case "$withval" in
21277   yes)
21278     echo "$as_me:$LINENO: result: yes" >&5
21279 echo "${ECHO_T}yes" >&6
21280
21281 cat >>confdefs.h <<\_ACEOF
21282 #define WITH_SYSLOG 1
21283 _ACEOF
21284
21285     ;;
21286   *)
21287     echo "$as_me:$LINENO: result: no" >&5
21288 echo "${ECHO_T}no" >&6
21289     ;;
21290   esac
21291 else
21292   echo "$as_me:$LINENO: result: no" >&5
21293 echo "${ECHO_T}no" >&6
21294
21295 fi;
21296
21297 #################################################
21298 # check for a shared memory profiling support
21299 echo "$as_me:$LINENO: checking whether to use profiling" >&5
21300 echo $ECHO_N "checking whether to use profiling... $ECHO_C" >&6
21301
21302 # Check whether --with-profiling-data or --without-profiling-data was given.
21303 if test "${with_profiling_data+set}" = set; then
21304   withval="$with_profiling_data"
21305    case "$withval" in
21306   yes)
21307     echo "$as_me:$LINENO: result: yes" >&5
21308 echo "${ECHO_T}yes" >&6
21309
21310 cat >>confdefs.h <<\_ACEOF
21311 #define WITH_PROFILE 1
21312 _ACEOF
21313
21314     ;;
21315   *)
21316     echo "$as_me:$LINENO: result: no" >&5
21317 echo "${ECHO_T}no" >&6
21318     ;;
21319   esac
21320 else
21321   echo "$as_me:$LINENO: result: no" >&5
21322 echo "${ECHO_T}no" >&6
21323
21324 fi;
21325
21326
21327 #################################################
21328 # check for experimental disk-quotas support
21329 QUOTAOBJS=smbd/noquotas.o
21330
21331 echo "$as_me:$LINENO: checking whether to support disk-quotas" >&5
21332 echo $ECHO_N "checking whether to support disk-quotas... $ECHO_C" >&6
21333
21334 # Check whether --with-quotas or --without-quotas was given.
21335 if test "${with_quotas+set}" = set; then
21336   withval="$with_quotas"
21337    case "$withval" in
21338   yes)
21339     echo "$as_me:$LINENO: result: yes" >&5
21340 echo "${ECHO_T}yes" >&6
21341     case "$host_os" in
21342       *linux*)
21343         # Check for kernel 2.4.x quota braindamage...
21344         echo "$as_me:$LINENO: checking for linux 2.4.x quota braindamage.." >&5
21345 echo $ECHO_N "checking for linux 2.4.x quota braindamage..... $ECHO_C" >&6
21346 if test "${samba_cv_linux_2_4_quota_braindamage+set}" = set; then
21347   echo $ECHO_N "(cached) $ECHO_C" >&6
21348 else
21349
21350         cat >conftest.$ac_ext <<_ACEOF
21351 #line $LINENO "configure"
21352 #include "confdefs.h"
21353 #include <stdio.h>
21354 #include <sys/types.h>
21355 #include <asm/types.h>
21356 #include <linux/quota.h>
21357 #include <mntent.h>
21358 #include <linux/unistd.h>
21359 int
21360 main ()
21361 {
21362 struct mem_dqblk D;
21363   ;
21364   return 0;
21365 }
21366 _ACEOF
21367 rm -f conftest.$ac_objext
21368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21369   (eval $ac_compile) 2>&5
21370   ac_status=$?
21371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372   (exit $ac_status); } &&
21373          { ac_try='test -s conftest.$ac_objext'
21374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21375   (eval $ac_try) 2>&5
21376   ac_status=$?
21377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378   (exit $ac_status); }; }; then
21379   samba_cv_linux_2_4_quota_braindamage=yes
21380 else
21381   echo "$as_me: failed program was:" >&5
21382 cat conftest.$ac_ext >&5
21383 samba_cv_linux_2_4_quota_braindamage=no
21384 fi
21385 rm -f conftest.$ac_objext conftest.$ac_ext
21386 fi
21387 echo "$as_me:$LINENO: result: $samba_cv_linux_2_4_quota_braindamage" >&5
21388 echo "${ECHO_T}$samba_cv_linux_2_4_quota_braindamage" >&6
21389 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
21390
21391 cat >>confdefs.h <<\_ACEOF
21392 #define LINUX_QUOTAS_2 1
21393 _ACEOF
21394
21395 else
21396
21397 cat >>confdefs.h <<\_ACEOF
21398 #define LINUX_QUOTAS_1 1
21399 _ACEOF
21400
21401 fi
21402         ;;
21403       *)
21404         ;;
21405     esac
21406     QUOTAOBJS=smbd/quotas.o
21407
21408 cat >>confdefs.h <<\_ACEOF
21409 #define WITH_QUOTAS 1
21410 _ACEOF
21411
21412     ;;
21413   *)
21414     echo "$as_me:$LINENO: result: no" >&5
21415 echo "${ECHO_T}no" >&6
21416     ;;
21417   esac
21418 else
21419   echo "$as_me:$LINENO: result: no" >&5
21420 echo "${ECHO_T}no" >&6
21421
21422 fi;
21423
21424
21425 #################################################
21426 # check for experimental utmp accounting
21427
21428 echo "$as_me:$LINENO: checking whether to support utmp accounting" >&5
21429 echo $ECHO_N "checking whether to support utmp accounting... $ECHO_C" >&6
21430
21431 # Check whether --with-utmp or --without-utmp was given.
21432 if test "${with_utmp+set}" = set; then
21433   withval="$with_utmp"
21434    case "$withval" in
21435   yes)
21436     echo "$as_me:$LINENO: result: yes" >&5
21437 echo "${ECHO_T}yes" >&6
21438
21439 cat >>confdefs.h <<\_ACEOF
21440 #define WITH_UTMP 1
21441 _ACEOF
21442
21443     ;;
21444   *)
21445     echo "$as_me:$LINENO: result: no" >&5
21446 echo "${ECHO_T}no" >&6
21447     ;;
21448   esac
21449 else
21450   echo "$as_me:$LINENO: result: no" >&5
21451 echo "${ECHO_T}no" >&6
21452
21453 fi;
21454
21455 #################################################
21456 # choose native language(s) of man pages
21457 echo "$as_me:$LINENO: checking chosen man pages' language(s)" >&5
21458 echo $ECHO_N "checking chosen man pages' language(s)... $ECHO_C" >&6
21459
21460 # Check whether --with-manpages-langs or --without-manpages-langs was given.
21461 if test "${with_manpages_langs+set}" = set; then
21462   withval="$with_manpages_langs"
21463    case "$withval" in
21464   yes|no)
21465     { echo "$as_me:$LINENO: WARNING: --with-manpages-langs called without argument - will use default" >&5
21466 echo "$as_me: WARNING: --with-manpages-langs called without argument - will use default" >&2;}
21467     manlangs="en"
21468   ;;
21469   *)
21470     manlangs="$withval"
21471   ;;
21472   esac
21473
21474   echo "$as_me:$LINENO: result: $manlangs" >&5
21475 echo "${ECHO_T}$manlangs" >&6
21476   manlangs=`echo $manlangs | sed "s/,/ /g"`   # replacing commas with spaces to produce a list
21477
21478 else
21479   manlangs="en"
21480   echo "$as_me:$LINENO: result: $manlangs" >&5
21481 echo "${ECHO_T}$manlangs" >&6
21482
21483
21484 fi;
21485
21486 #################################################
21487 # should we build libsmbclient?
21488
21489 LIBSMBCLIENT_SHARED=
21490 LIBSMBCLIENT=
21491 echo "$as_me:$LINENO: checking whether to build the libsmbclient shared library" >&5
21492 echo $ECHO_N "checking whether to build the libsmbclient shared library... $ECHO_C" >&6
21493
21494 # Check whether --with-libsmbclient or --without-libsmbclient was given.
21495 if test "${with_libsmbclient+set}" = set; then
21496   withval="$with_libsmbclient"
21497    case "$withval" in
21498   no)
21499      echo "$as_me:$LINENO: result: no" >&5
21500 echo "${ECHO_T}no" >&6
21501      ;;
21502   *)
21503      if test $BLDSHARED = true; then
21504         LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
21505         LIBSMBCLIENT=libsmbclient
21506         echo "$as_me:$LINENO: result: yes" >&5
21507 echo "${ECHO_T}yes" >&6
21508      else
21509         echo "$as_me:$LINENO: result: no shared library support" >&5
21510 echo "${ECHO_T}no shared library support" >&6
21511      fi
21512      ;;
21513   esac
21514 else
21515   echo "$as_me:$LINENO: result: yes" >&5
21516 echo "${ECHO_T}yes" >&6
21517
21518 fi;
21519
21520
21521 #################################################
21522 # these tests are taken from the GNU fileutils package
21523 { echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
21524 echo "$as_me: checking how to get filesystem space usage..." >&6;}
21525 space=no
21526
21527 # Test for statvfs64.
21528 if test $space = no; then
21529   # SVR4
21530   echo "$as_me:$LINENO: checking statvfs64 function (SVR4)" >&5
21531 echo $ECHO_N "checking statvfs64 function (SVR4)... $ECHO_C" >&6
21532 if test "${fu_cv_sys_stat_statvfs64+set}" = set; then
21533   echo $ECHO_N "(cached) $ECHO_C" >&6
21534 else
21535   if test "$cross_compiling" = yes; then
21536   fu_cv_sys_stat_statvfs64=cross
21537 else
21538   cat >conftest.$ac_ext <<_ACEOF
21539 #line $LINENO "configure"
21540 #include "confdefs.h"
21541
21542 #if defined(HAVE_UNISTD_H)
21543 #include <unistd.h>
21544 #endif
21545 #include <sys/types.h>
21546 #include <sys/statvfs.h>
21547   main ()
21548   {
21549     struct statvfs64 fsd;
21550     exit (statvfs64 (".", &fsd));
21551   }
21552 _ACEOF
21553 rm -f conftest$ac_exeext
21554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21555   (eval $ac_link) 2>&5
21556   ac_status=$?
21557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21560   (eval $ac_try) 2>&5
21561   ac_status=$?
21562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563   (exit $ac_status); }; }; then
21564   fu_cv_sys_stat_statvfs64=yes
21565 else
21566   echo "$as_me: program exited with status $ac_status" >&5
21567 echo "$as_me: failed program was:" >&5
21568 cat conftest.$ac_ext >&5
21569 ( exit $ac_status )
21570 fu_cv_sys_stat_statvfs64=no
21571 fi
21572 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21573 fi
21574 fi
21575 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs64" >&5
21576 echo "${ECHO_T}$fu_cv_sys_stat_statvfs64" >&6
21577   if test $fu_cv_sys_stat_statvfs64 = yes; then
21578     space=yes
21579
21580 cat >>confdefs.h <<\_ACEOF
21581 #define STAT_STATVFS64 1
21582 _ACEOF
21583
21584   fi
21585 fi
21586
21587 # Perform only the link test since it seems there are no variants of the
21588 # statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
21589 # because that got a false positive on SCO OSR5.  Adding the declaration
21590 # of a `struct statvfs' causes this test to fail (as it should) on such
21591 # systems.  That system is reported to work fine with STAT_STATFS4 which
21592 # is what it gets when this test fails.
21593 if test $space = no; then
21594   # SVR4
21595   echo "$as_me:$LINENO: checking statvfs function (SVR4)" >&5
21596 echo $ECHO_N "checking statvfs function (SVR4)... $ECHO_C" >&6
21597 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
21598   echo $ECHO_N "(cached) $ECHO_C" >&6
21599 else
21600   cat >conftest.$ac_ext <<_ACEOF
21601 #line $LINENO "configure"
21602 #include "confdefs.h"
21603 #include <sys/types.h>
21604 #include <sys/statvfs.h>
21605 int
21606 main ()
21607 {
21608 struct statvfs fsd; statvfs (0, &fsd);
21609   ;
21610   return 0;
21611 }
21612 _ACEOF
21613 rm -f conftest.$ac_objext conftest$ac_exeext
21614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21615   (eval $ac_link) 2>&5
21616   ac_status=$?
21617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618   (exit $ac_status); } &&
21619          { ac_try='test -s conftest$ac_exeext'
21620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21621   (eval $ac_try) 2>&5
21622   ac_status=$?
21623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624   (exit $ac_status); }; }; then
21625   fu_cv_sys_stat_statvfs=yes
21626 else
21627   echo "$as_me: failed program was:" >&5
21628 cat conftest.$ac_ext >&5
21629 fu_cv_sys_stat_statvfs=no
21630 fi
21631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21632 fi
21633 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
21634 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
21635   if test $fu_cv_sys_stat_statvfs = yes; then
21636     space=yes
21637
21638 cat >>confdefs.h <<\_ACEOF
21639 #define STAT_STATVFS 1
21640 _ACEOF
21641
21642   fi
21643 fi
21644
21645 if test $space = no; then
21646   # DEC Alpha running OSF/1
21647   echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
21648 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
21649   if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
21650   echo $ECHO_N "(cached) $ECHO_C" >&6
21651 else
21652   if test "$cross_compiling" = yes; then
21653   fu_cv_sys_stat_statfs3_osf1=no
21654 else
21655   cat >conftest.$ac_ext <<_ACEOF
21656 #line $LINENO "configure"
21657 #include "confdefs.h"
21658
21659 #include <sys/param.h>
21660 #include <sys/types.h>
21661 #include <sys/mount.h>
21662   main ()
21663   {
21664     struct statfs fsd;
21665     fsd.f_fsize = 0;
21666     exit (statfs (".", &fsd, sizeof (struct statfs)));
21667   }
21668 _ACEOF
21669 rm -f conftest$ac_exeext
21670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21671   (eval $ac_link) 2>&5
21672   ac_status=$?
21673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676   (eval $ac_try) 2>&5
21677   ac_status=$?
21678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679   (exit $ac_status); }; }; then
21680   fu_cv_sys_stat_statfs3_osf1=yes
21681 else
21682   echo "$as_me: program exited with status $ac_status" >&5
21683 echo "$as_me: failed program was:" >&5
21684 cat conftest.$ac_ext >&5
21685 ( exit $ac_status )
21686 fu_cv_sys_stat_statfs3_osf1=no
21687 fi
21688 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21689 fi
21690 fi
21691
21692   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
21693 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
21694   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
21695     space=yes
21696
21697 cat >>confdefs.h <<\_ACEOF
21698 #define STAT_STATFS3_OSF1 1
21699 _ACEOF
21700
21701   fi
21702 fi
21703
21704 if test $space = no; then
21705 # AIX
21706   echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
21707 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
21708   if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
21709   echo $ECHO_N "(cached) $ECHO_C" >&6
21710 else
21711   if test "$cross_compiling" = yes; then
21712   fu_cv_sys_stat_statfs2_bsize=no
21713 else
21714   cat >conftest.$ac_ext <<_ACEOF
21715 #line $LINENO "configure"
21716 #include "confdefs.h"
21717
21718 #ifdef HAVE_SYS_PARAM_H
21719 #include <sys/param.h>
21720 #endif
21721 #ifdef HAVE_SYS_MOUNT_H
21722 #include <sys/mount.h>
21723 #endif
21724 #ifdef HAVE_SYS_VFS_H
21725 #include <sys/vfs.h>
21726 #endif
21727   main ()
21728   {
21729   struct statfs fsd;
21730   fsd.f_bsize = 0;
21731   exit (statfs (".", &fsd));
21732   }
21733 _ACEOF
21734 rm -f conftest$ac_exeext
21735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21736   (eval $ac_link) 2>&5
21737   ac_status=$?
21738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21741   (eval $ac_try) 2>&5
21742   ac_status=$?
21743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744   (exit $ac_status); }; }; then
21745   fu_cv_sys_stat_statfs2_bsize=yes
21746 else
21747   echo "$as_me: program exited with status $ac_status" >&5
21748 echo "$as_me: failed program was:" >&5
21749 cat conftest.$ac_ext >&5
21750 ( exit $ac_status )
21751 fu_cv_sys_stat_statfs2_bsize=no
21752 fi
21753 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21754 fi
21755 fi
21756
21757   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
21758 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
21759   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
21760     space=yes
21761
21762 cat >>confdefs.h <<\_ACEOF
21763 #define STAT_STATFS2_BSIZE 1
21764 _ACEOF
21765
21766   fi
21767 fi
21768
21769 if test $space = no; then
21770 # SVR3
21771   echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
21772 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
21773   if test "${fu_cv_sys_stat_statfs4+set}" = set; then
21774   echo $ECHO_N "(cached) $ECHO_C" >&6
21775 else
21776   if test "$cross_compiling" = yes; then
21777   fu_cv_sys_stat_statfs4=no
21778 else
21779   cat >conftest.$ac_ext <<_ACEOF
21780 #line $LINENO "configure"
21781 #include "confdefs.h"
21782 #include <sys/types.h>
21783 #include <sys/statfs.h>
21784   main ()
21785   {
21786   struct statfs fsd;
21787   exit (statfs (".", &fsd, sizeof fsd, 0));
21788   }
21789 _ACEOF
21790 rm -f conftest$ac_exeext
21791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21792   (eval $ac_link) 2>&5
21793   ac_status=$?
21794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21797   (eval $ac_try) 2>&5
21798   ac_status=$?
21799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800   (exit $ac_status); }; }; then
21801   fu_cv_sys_stat_statfs4=yes
21802 else
21803   echo "$as_me: program exited with status $ac_status" >&5
21804 echo "$as_me: failed program was:" >&5
21805 cat conftest.$ac_ext >&5
21806 ( exit $ac_status )
21807 fu_cv_sys_stat_statfs4=no
21808 fi
21809 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21810 fi
21811 fi
21812
21813   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
21814 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
21815   if test $fu_cv_sys_stat_statfs4 = yes; then
21816     space=yes
21817
21818 cat >>confdefs.h <<\_ACEOF
21819 #define STAT_STATFS4 1
21820 _ACEOF
21821
21822   fi
21823 fi
21824
21825 if test $space = no; then
21826 # 4.4BSD and NetBSD
21827   echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
21828 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
21829   if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
21830   echo $ECHO_N "(cached) $ECHO_C" >&6
21831 else
21832   if test "$cross_compiling" = yes; then
21833   fu_cv_sys_stat_statfs2_fsize=no
21834 else
21835   cat >conftest.$ac_ext <<_ACEOF
21836 #line $LINENO "configure"
21837 #include "confdefs.h"
21838 #include <sys/types.h>
21839 #ifdef HAVE_SYS_PARAM_H
21840 #include <sys/param.h>
21841 #endif
21842 #ifdef HAVE_SYS_MOUNT_H
21843 #include <sys/mount.h>
21844 #endif
21845   main ()
21846   {
21847   struct statfs fsd;
21848   fsd.f_fsize = 0;
21849   exit (statfs (".", &fsd));
21850   }
21851 _ACEOF
21852 rm -f conftest$ac_exeext
21853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21854   (eval $ac_link) 2>&5
21855   ac_status=$?
21856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21859   (eval $ac_try) 2>&5
21860   ac_status=$?
21861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862   (exit $ac_status); }; }; then
21863   fu_cv_sys_stat_statfs2_fsize=yes
21864 else
21865   echo "$as_me: program exited with status $ac_status" >&5
21866 echo "$as_me: failed program was:" >&5
21867 cat conftest.$ac_ext >&5
21868 ( exit $ac_status )
21869 fu_cv_sys_stat_statfs2_fsize=no
21870 fi
21871 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21872 fi
21873 fi
21874
21875   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
21876 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
21877   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
21878     space=yes
21879
21880 cat >>confdefs.h <<\_ACEOF
21881 #define STAT_STATFS2_FSIZE 1
21882 _ACEOF
21883
21884   fi
21885 fi
21886
21887 if test $space = no; then
21888   # Ultrix
21889   echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
21890 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
21891   if test "${fu_cv_sys_stat_fs_data+set}" = set; then
21892   echo $ECHO_N "(cached) $ECHO_C" >&6
21893 else
21894   if test "$cross_compiling" = yes; then
21895   fu_cv_sys_stat_fs_data=no
21896 else
21897   cat >conftest.$ac_ext <<_ACEOF
21898 #line $LINENO "configure"
21899 #include "confdefs.h"
21900 #include <sys/types.h>
21901 #ifdef HAVE_SYS_PARAM_H
21902 #include <sys/param.h>
21903 #endif
21904 #ifdef HAVE_SYS_MOUNT_H
21905 #include <sys/mount.h>
21906 #endif
21907 #ifdef HAVE_SYS_FS_TYPES_H
21908 #include <sys/fs_types.h>
21909 #endif
21910   main ()
21911   {
21912   struct fs_data fsd;
21913   /* Ultrix's statfs returns 1 for success,
21914      0 for not mounted, -1 for failure.  */
21915   exit (statfs (".", &fsd) != 1);
21916   }
21917 _ACEOF
21918 rm -f conftest$ac_exeext
21919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21920   (eval $ac_link) 2>&5
21921   ac_status=$?
21922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21925   (eval $ac_try) 2>&5
21926   ac_status=$?
21927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928   (exit $ac_status); }; }; then
21929   fu_cv_sys_stat_fs_data=yes
21930 else
21931   echo "$as_me: program exited with status $ac_status" >&5
21932 echo "$as_me: failed program was:" >&5
21933 cat conftest.$ac_ext >&5
21934 ( exit $ac_status )
21935 fu_cv_sys_stat_fs_data=no
21936 fi
21937 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21938 fi
21939 fi
21940
21941   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
21942 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
21943   if test $fu_cv_sys_stat_fs_data = yes; then
21944     space=yes
21945
21946 cat >>confdefs.h <<\_ACEOF
21947 #define STAT_STATFS2_FS_DATA 1
21948 _ACEOF
21949
21950   fi
21951 fi
21952
21953 #
21954 # As a gating factor for large file support, in order to
21955 # use <4GB files we must have the following minimal support
21956 # available.
21957 # long long, and a 64 bit off_t or off64_t.
21958 # If we don't have all of these then disable large
21959 # file support.
21960 #
21961 echo "$as_me:$LINENO: checking if large file support can be enabled" >&5
21962 echo $ECHO_N "checking if large file support can be enabled... $ECHO_C" >&6
21963 cat >conftest.$ac_ext <<_ACEOF
21964 #line $LINENO "configure"
21965 #include "confdefs.h"
21966
21967 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
21968 #include <sys/types.h>
21969 #else
21970 __COMPILE_ERROR_
21971 #endif
21972
21973 int
21974 main ()
21975 {
21976 int i
21977   ;
21978   return 0;
21979 }
21980 _ACEOF
21981 rm -f conftest.$ac_objext
21982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21983   (eval $ac_compile) 2>&5
21984   ac_status=$?
21985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986   (exit $ac_status); } &&
21987          { ac_try='test -s conftest.$ac_objext'
21988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21989   (eval $ac_try) 2>&5
21990   ac_status=$?
21991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992   (exit $ac_status); }; }; then
21993   samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
21994 else
21995   echo "$as_me: failed program was:" >&5
21996 cat conftest.$ac_ext >&5
21997 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
21998 fi
21999 rm -f conftest.$ac_objext conftest.$ac_ext
22000 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
22001
22002 cat >>confdefs.h <<\_ACEOF
22003 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
22004 _ACEOF
22005
22006 fi
22007 echo "$as_me:$LINENO: result: $samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&5
22008 echo "${ECHO_T}$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&6
22009
22010
22011 # Check whether --with-spinlocks or --without-spinlocks was given.
22012 if test "${with_spinlocks+set}" = set; then
22013   withval="$with_spinlocks"
22014
22015 fi;
22016 if test "x$with_spinlocks" = "xyes"; then
22017
22018 cat >>confdefs.h <<\_ACEOF
22019 #define USE_SPINLOCKS 1
22020 _ACEOF
22021
22022
22023     case "$host_cpu" in
22024         sparc)
22025
22026 cat >>confdefs.h <<\_ACEOF
22027 #define SPARC_SPINLOCKS 1
22028 _ACEOF
22029
22030             ;;
22031
22032         i386|i486|i586|i686)
22033
22034 cat >>confdefs.h <<\_ACEOF
22035 #define INTEL_SPINLOCKS 1
22036 _ACEOF
22037
22038             ;;
22039
22040         mips)
22041
22042 cat >>confdefs.h <<\_ACEOF
22043 #define MIPS_SPINLOCKS 1
22044 _ACEOF
22045
22046             ;;
22047
22048         powerpc)
22049
22050 cat >>confdefs.h <<\_ACEOF
22051 #define POWERPC_SPINLOCKS 1
22052 _ACEOF
22053
22054             ;;
22055     esac
22056 fi
22057
22058 #################################################
22059 # check for ACL support
22060
22061 echo "$as_me:$LINENO: checking whether to support ACLs" >&5
22062 echo $ECHO_N "checking whether to support ACLs... $ECHO_C" >&6
22063
22064 # Check whether --with-acl-support or --without-acl-support was given.
22065 if test "${with_acl_support+set}" = set; then
22066   withval="$with_acl_support"
22067    case "$withval" in
22068   yes)
22069
22070         case "$host_os" in
22071         *sysv5*)
22072                 echo "$as_me:$LINENO: result: Using UnixWare ACLs" >&5
22073 echo "${ECHO_T}Using UnixWare ACLs" >&6
22074
22075 cat >>confdefs.h <<\_ACEOF
22076 #define HAVE_UNIXWARE_ACLS 1
22077 _ACEOF
22078
22079                 ;;
22080         *solaris*)
22081                 echo "$as_me:$LINENO: result: Using solaris ACLs" >&5
22082 echo "${ECHO_T}Using solaris ACLs" >&6
22083
22084 cat >>confdefs.h <<\_ACEOF
22085 #define HAVE_SOLARIS_ACLS 1
22086 _ACEOF
22087
22088                 ;;
22089         *hpux*)
22090                 echo "$as_me:$LINENO: result: Using HPUX ACLs" >&5
22091 echo "${ECHO_T}Using HPUX ACLs" >&6
22092
22093 cat >>confdefs.h <<\_ACEOF
22094 #define HAVE_HPUX_ACLS 1
22095 _ACEOF
22096
22097                 ;;
22098         *irix*)
22099                 echo "$as_me:$LINENO: result: Using IRIX ACLs" >&5
22100 echo "${ECHO_T}Using IRIX ACLs" >&6
22101
22102 cat >>confdefs.h <<\_ACEOF
22103 #define HAVE_IRIX_ACLS 1
22104 _ACEOF
22105
22106                 ;;
22107         *aix*)
22108                 echo "$as_me:$LINENO: result: Using AIX ACLs" >&5
22109 echo "${ECHO_T}Using AIX ACLs" >&6
22110
22111 cat >>confdefs.h <<\_ACEOF
22112 #define HAVE_AIX_ACLS 1
22113 _ACEOF
22114
22115                 ;;
22116         *osf*)
22117                 echo "$as_me:$LINENO: result: Using Tru64 ACLs" >&5
22118 echo "${ECHO_T}Using Tru64 ACLs" >&6
22119
22120 cat >>confdefs.h <<\_ACEOF
22121 #define HAVE_TRU64_ACLS 1
22122 _ACEOF
22123
22124                 LIBS="$LIBS -lpacl"
22125                 ;;
22126         *)
22127
22128 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
22129 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
22130 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
22131   echo $ECHO_N "(cached) $ECHO_C" >&6
22132 else
22133   ac_check_lib_save_LIBS=$LIBS
22134 LIBS="-lacl  $LIBS"
22135 cat >conftest.$ac_ext <<_ACEOF
22136 #line $LINENO "configure"
22137 #include "confdefs.h"
22138
22139 /* Override any gcc2 internal prototype to avoid an error.  */
22140 #ifdef __cplusplus
22141 extern "C"
22142 #endif
22143 /* We use char because int might match the return type of a gcc2
22144    builtin and then its argument prototype would still apply.  */
22145 char acl_get_file ();
22146 int
22147 main ()
22148 {
22149 acl_get_file ();
22150   ;
22151   return 0;
22152 }
22153 _ACEOF
22154 rm -f conftest.$ac_objext conftest$ac_exeext
22155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22156   (eval $ac_link) 2>&5
22157   ac_status=$?
22158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159   (exit $ac_status); } &&
22160          { ac_try='test -s conftest$ac_exeext'
22161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22162   (eval $ac_try) 2>&5
22163   ac_status=$?
22164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165   (exit $ac_status); }; }; then
22166   ac_cv_lib_acl_acl_get_file=yes
22167 else
22168   echo "$as_me: failed program was:" >&5
22169 cat conftest.$ac_ext >&5
22170 ac_cv_lib_acl_acl_get_file=no
22171 fi
22172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22173 LIBS=$ac_check_lib_save_LIBS
22174 fi
22175 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
22176 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
22177 if test $ac_cv_lib_acl_acl_get_file = yes; then
22178   cat >>confdefs.h <<_ACEOF
22179 #define HAVE_LIBACL 1
22180 _ACEOF
22181
22182   LIBS="-lacl $LIBS"
22183
22184 fi
22185
22186                 echo "$as_me:$LINENO: checking for ACL support" >&5
22187 echo $ECHO_N "checking for ACL support... $ECHO_C" >&6
22188 if test "${samba_cv_HAVE_POSIX_ACLS+set}" = set; then
22189   echo $ECHO_N "(cached) $ECHO_C" >&6
22190 else
22191
22192                 cat >conftest.$ac_ext <<_ACEOF
22193 #line $LINENO "configure"
22194 #include "confdefs.h"
22195 #include <sys/types.h>
22196 #include <sys/acl.h>
22197 int
22198 main ()
22199 {
22200  acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
22201   ;
22202   return 0;
22203 }
22204 _ACEOF
22205 rm -f conftest.$ac_objext conftest$ac_exeext
22206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22207   (eval $ac_link) 2>&5
22208   ac_status=$?
22209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210   (exit $ac_status); } &&
22211          { ac_try='test -s conftest$ac_exeext'
22212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22213   (eval $ac_try) 2>&5
22214   ac_status=$?
22215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216   (exit $ac_status); }; }; then
22217   samba_cv_HAVE_POSIX_ACLS=yes
22218 else
22219   echo "$as_me: failed program was:" >&5
22220 cat conftest.$ac_ext >&5
22221 samba_cv_HAVE_POSIX_ACLS=no
22222 fi
22223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22224 fi
22225 echo "$as_me:$LINENO: result: $samba_cv_HAVE_POSIX_ACLS" >&5
22226 echo "${ECHO_T}$samba_cv_HAVE_POSIX_ACLS" >&6
22227                         if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
22228                                 echo "$as_me:$LINENO: result: Using posix ACLs" >&5
22229 echo "${ECHO_T}Using posix ACLs" >&6
22230
22231 cat >>confdefs.h <<\_ACEOF
22232 #define HAVE_POSIX_ACLS 1
22233 _ACEOF
22234
22235                                 echo "$as_me:$LINENO: checking for acl_get_perm_np" >&5
22236 echo $ECHO_N "checking for acl_get_perm_np... $ECHO_C" >&6
22237 if test "${samba_cv_HAVE_ACL_GET_PERM_NP+set}" = set; then
22238   echo $ECHO_N "(cached) $ECHO_C" >&6
22239 else
22240
22241                                 cat >conftest.$ac_ext <<_ACEOF
22242 #line $LINENO "configure"
22243 #include "confdefs.h"
22244 #include <sys/types.h>
22245 #include <sys/acl.h>
22246 int
22247 main ()
22248 {
22249  acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
22250   ;
22251   return 0;
22252 }
22253 _ACEOF
22254 rm -f conftest.$ac_objext conftest$ac_exeext
22255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22256   (eval $ac_link) 2>&5
22257   ac_status=$?
22258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259   (exit $ac_status); } &&
22260          { ac_try='test -s conftest$ac_exeext'
22261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22262   (eval $ac_try) 2>&5
22263   ac_status=$?
22264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265   (exit $ac_status); }; }; then
22266   samba_cv_HAVE_ACL_GET_PERM_NP=yes
22267 else
22268   echo "$as_me: failed program was:" >&5
22269 cat conftest.$ac_ext >&5
22270 samba_cv_HAVE_ACL_GET_PERM_NP=no
22271 fi
22272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22273 fi
22274 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ACL_GET_PERM_NP" >&5
22275 echo "${ECHO_T}$samba_cv_HAVE_ACL_GET_PERM_NP" >&6
22276                                 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
22277
22278 cat >>confdefs.h <<\_ACEOF
22279 #define HAVE_ACL_GET_PERM_NP 1
22280 _ACEOF
22281
22282                                 fi
22283                         fi
22284             ;;
22285         esac
22286         ;;
22287   *)
22288     echo "$as_me:$LINENO: result: no" >&5
22289 echo "${ECHO_T}no" >&6
22290
22291 cat >>confdefs.h <<\_ACEOF
22292 #define HAVE_NO_ACLS 1
22293 _ACEOF
22294
22295     ;;
22296   esac
22297 else
22298
22299 cat >>confdefs.h <<\_ACEOF
22300 #define HAVE_NO_ACLS 1
22301 _ACEOF
22302
22303   echo "$as_me:$LINENO: result: no" >&5
22304 echo "${ECHO_T}no" >&6
22305
22306 fi;
22307
22308 #################################################
22309 # check for sendfile support
22310
22311 with_sendfile_support=yes
22312 echo "$as_me:$LINENO: checking whether to check to support sendfile" >&5
22313 echo $ECHO_N "checking whether to check to support sendfile... $ECHO_C" >&6
22314
22315 # Check whether --with-sendfile-support or --without-sendfile-support was given.
22316 if test "${with_sendfile_support+set}" = set; then
22317   withval="$with_sendfile_support"
22318    case "$withval" in
22319   yes)
22320
22321         echo "$as_me:$LINENO: result: yes" >&5
22322 echo "${ECHO_T}yes" >&6;
22323
22324         case "$host_os" in
22325         *linux*)
22326                 echo "$as_me:$LINENO: checking for linux sendfile64 support" >&5
22327 echo $ECHO_N "checking for linux sendfile64 support... $ECHO_C" >&6
22328 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
22329   echo $ECHO_N "(cached) $ECHO_C" >&6
22330 else
22331
22332                 cat >conftest.$ac_ext <<_ACEOF
22333 #line $LINENO "configure"
22334 #include "confdefs.h"
22335 #include <sys/sendfile.h>
22336 int
22337 main ()
22338 {
22339 \
22340 int tofd, fromfd;
22341 off64_t offset;
22342 size_t total;
22343 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
22344
22345   ;
22346   return 0;
22347 }
22348 _ACEOF
22349 rm -f conftest.$ac_objext conftest$ac_exeext
22350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22351   (eval $ac_link) 2>&5
22352   ac_status=$?
22353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354   (exit $ac_status); } &&
22355          { ac_try='test -s conftest$ac_exeext'
22356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22357   (eval $ac_try) 2>&5
22358   ac_status=$?
22359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360   (exit $ac_status); }; }; then
22361   samba_cv_HAVE_SENDFILE64=yes
22362 else
22363   echo "$as_me: failed program was:" >&5
22364 cat conftest.$ac_ext >&5
22365 samba_cv_HAVE_SENDFILE64=no
22366 fi
22367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22368 fi
22369 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
22370 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
22371
22372                 echo "$as_me:$LINENO: checking for linux sendfile support" >&5
22373 echo $ECHO_N "checking for linux sendfile support... $ECHO_C" >&6
22374 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
22375   echo $ECHO_N "(cached) $ECHO_C" >&6
22376 else
22377
22378                 cat >conftest.$ac_ext <<_ACEOF
22379 #line $LINENO "configure"
22380 #include "confdefs.h"
22381 #include <sys/sendfile.h>
22382 int
22383 main ()
22384 {
22385 \
22386 int tofd, fromfd;
22387 off_t offset;
22388 size_t total;
22389 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
22390
22391   ;
22392   return 0;
22393 }
22394 _ACEOF
22395 rm -f conftest.$ac_objext conftest$ac_exeext
22396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22397   (eval $ac_link) 2>&5
22398   ac_status=$?
22399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400   (exit $ac_status); } &&
22401          { ac_try='test -s conftest$ac_exeext'
22402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22403   (eval $ac_try) 2>&5
22404   ac_status=$?
22405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406   (exit $ac_status); }; }; then
22407   samba_cv_HAVE_SENDFILE=yes
22408 else
22409   echo "$as_me: failed program was:" >&5
22410 cat conftest.$ac_ext >&5
22411 samba_cv_HAVE_SENDFILE=no
22412 fi
22413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22414 fi
22415 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
22416 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
22417
22418 # Try and cope with broken Linux sendfile....
22419                 echo "$as_me:$LINENO: checking for broken linux sendfile support" >&5
22420 echo $ECHO_N "checking for broken linux sendfile support... $ECHO_C" >&6
22421 if test "${samba_cv_HAVE_BROKEN_LINUX_SENDFILE+set}" = set; then
22422   echo $ECHO_N "(cached) $ECHO_C" >&6
22423 else
22424
22425                 cat >conftest.$ac_ext <<_ACEOF
22426 #line $LINENO "configure"
22427 #include "confdefs.h"
22428 \
22429 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
22430 #undef _FILE_OFFSET_BITS
22431 #endif
22432 #include <sys/sendfile.h>
22433 int
22434 main ()
22435 {
22436 \
22437 int tofd, fromfd;
22438 off_t offset;
22439 size_t total;
22440 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
22441
22442   ;
22443   return 0;
22444 }
22445 _ACEOF
22446 rm -f conftest.$ac_objext conftest$ac_exeext
22447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22448   (eval $ac_link) 2>&5
22449   ac_status=$?
22450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451   (exit $ac_status); } &&
22452          { ac_try='test -s conftest$ac_exeext'
22453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22454   (eval $ac_try) 2>&5
22455   ac_status=$?
22456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457   (exit $ac_status); }; }; then
22458   samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
22459 else
22460   echo "$as_me: failed program was:" >&5
22461 cat conftest.$ac_ext >&5
22462 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
22463 fi
22464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22465 fi
22466 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&5
22467 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&6
22468
22469         if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
22470
22471 cat >>confdefs.h <<\_ACEOF
22472 #define HAVE_SENDFILE64 1
22473 _ACEOF
22474
22475
22476 cat >>confdefs.h <<\_ACEOF
22477 #define LINUX_SENDFILE_API 1
22478 _ACEOF
22479
22480
22481 cat >>confdefs.h <<\_ACEOF
22482 #define WITH_SENDFILE 1
22483 _ACEOF
22484
22485         elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
22486
22487 cat >>confdefs.h <<\_ACEOF
22488 #define HAVE_SENDFILE 1
22489 _ACEOF
22490
22491
22492 cat >>confdefs.h <<\_ACEOF
22493 #define LINUX_SENDFILE_API 1
22494 _ACEOF
22495
22496
22497 cat >>confdefs.h <<\_ACEOF
22498 #define WITH_SENDFILE 1
22499 _ACEOF
22500
22501         elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
22502
22503 cat >>confdefs.h <<\_ACEOF
22504 #define LINUX_BROKEN_SENDFILE_API 1
22505 _ACEOF
22506
22507
22508 cat >>confdefs.h <<\_ACEOF
22509 #define WITH_SENDFILE 1
22510 _ACEOF
22511
22512         else
22513                 echo "$as_me:$LINENO: result: no" >&5
22514 echo "${ECHO_T}no" >&6;
22515         fi
22516
22517         ;;
22518         *freebsd*)
22519                 echo "$as_me:$LINENO: checking for freebsd sendfile support" >&5
22520 echo $ECHO_N "checking for freebsd sendfile support... $ECHO_C" >&6
22521 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
22522   echo $ECHO_N "(cached) $ECHO_C" >&6
22523 else
22524
22525                 cat >conftest.$ac_ext <<_ACEOF
22526 #line $LINENO "configure"
22527 #include "confdefs.h"
22528 \
22529 #include <sys/types.h>
22530 #include <sys/socket.h>
22531 #include <sys/uio.h>
22532 int
22533 main ()
22534 {
22535 \
22536         int fromfd, tofd;
22537         off_t offset, nwritten;
22538         struct sf_hdtr hdr;
22539         struct iovec hdtrl;
22540         hdr->headers = &hdtrl;
22541         hdr->hdr_cnt = 1;
22542         hdr->trailers = NULL;
22543         hdr->trl_cnt = 0;
22544         hdtrl.iov_base = NULL;
22545         hdtrl.iov_len = 0;
22546         int ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
22547
22548   ;
22549   return 0;
22550 }
22551 _ACEOF
22552 rm -f conftest.$ac_objext conftest$ac_exeext
22553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22554   (eval $ac_link) 2>&5
22555   ac_status=$?
22556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557   (exit $ac_status); } &&
22558          { ac_try='test -s conftest$ac_exeext'
22559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560   (eval $ac_try) 2>&5
22561   ac_status=$?
22562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563   (exit $ac_status); }; }; then
22564   samba_cv_HAVE_SENDFILE=yes
22565 else
22566   echo "$as_me: failed program was:" >&5
22567 cat conftest.$ac_ext >&5
22568 samba_cv_HAVE_SENDFILE=no
22569 fi
22570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22571 fi
22572 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
22573 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
22574
22575         if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
22576
22577 cat >>confdefs.h <<\_ACEOF
22578 #define HAVE_SENDFILE 1
22579 _ACEOF
22580
22581
22582 cat >>confdefs.h <<\_ACEOF
22583 #define FREEBSD_SENDFILE_API 1
22584 _ACEOF
22585
22586
22587 cat >>confdefs.h <<\_ACEOF
22588 #define WITH_SENDFILE 1
22589 _ACEOF
22590
22591         else
22592                 echo "$as_me:$LINENO: result: no" >&5
22593 echo "${ECHO_T}no" >&6;
22594         fi
22595         ;;
22596
22597         *hpux*)
22598                 echo "$as_me:$LINENO: checking for hpux sendfile64 support" >&5
22599 echo $ECHO_N "checking for hpux sendfile64 support... $ECHO_C" >&6
22600 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
22601   echo $ECHO_N "(cached) $ECHO_C" >&6
22602 else
22603
22604                 cat >conftest.$ac_ext <<_ACEOF
22605 #line $LINENO "configure"
22606 #include "confdefs.h"
22607 \
22608 #include <sys/socket.h>
22609 #include <sys/uio.h>
22610 int
22611 main ()
22612 {
22613 \
22614         int fromfd, tofd;
22615         size_t total=0;
22616         struct iovec hdtrl[2];
22617         ssize_t nwritten;
22618         off64_t offset;
22619
22620         hdtrl[0].iov_base = 0;
22621         hdtrl[0].iov_len = 0;
22622
22623         nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
22624
22625   ;
22626   return 0;
22627 }
22628 _ACEOF
22629 rm -f conftest.$ac_objext conftest$ac_exeext
22630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22631   (eval $ac_link) 2>&5
22632   ac_status=$?
22633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634   (exit $ac_status); } &&
22635          { ac_try='test -s conftest$ac_exeext'
22636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22637   (eval $ac_try) 2>&5
22638   ac_status=$?
22639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640   (exit $ac_status); }; }; then
22641   samba_cv_HAVE_SENDFILE64=yes
22642 else
22643   echo "$as_me: failed program was:" >&5
22644 cat conftest.$ac_ext >&5
22645 samba_cv_HAVE_SENDFILE64=no
22646 fi
22647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22648 fi
22649 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
22650 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
22651         if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
22652
22653 cat >>confdefs.h <<\_ACEOF
22654 #define HAVE_SENDFILE64 1
22655 _ACEOF
22656
22657
22658 cat >>confdefs.h <<\_ACEOF
22659 #define HPUX_SENDFILE_API 1
22660 _ACEOF
22661
22662
22663 cat >>confdefs.h <<\_ACEOF
22664 #define WITH_SENDFILE 1
22665 _ACEOF
22666
22667         else
22668                 echo "$as_me:$LINENO: result: no" >&5
22669 echo "${ECHO_T}no" >&6;
22670         fi
22671
22672                 echo "$as_me:$LINENO: checking for hpux sendfile support" >&5
22673 echo $ECHO_N "checking for hpux sendfile support... $ECHO_C" >&6
22674 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
22675   echo $ECHO_N "(cached) $ECHO_C" >&6
22676 else
22677
22678                 cat >conftest.$ac_ext <<_ACEOF
22679 #line $LINENO "configure"
22680 #include "confdefs.h"
22681 \
22682 #include <sys/socket.h>
22683 #include <sys/uio.h>
22684 int
22685 main ()
22686 {
22687 \
22688         int fromfd, tofd;
22689         size_t total=0;
22690         struct iovec hdtrl[2];
22691         ssize_t nwritten;
22692         off_t offset;
22693
22694         hdtrl[0].iov_base = 0;
22695         hdtrl[0].iov_len = 0;
22696
22697         nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
22698
22699   ;
22700   return 0;
22701 }
22702 _ACEOF
22703 rm -f conftest.$ac_objext conftest$ac_exeext
22704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22705   (eval $ac_link) 2>&5
22706   ac_status=$?
22707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708   (exit $ac_status); } &&
22709          { ac_try='test -s conftest$ac_exeext'
22710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22711   (eval $ac_try) 2>&5
22712   ac_status=$?
22713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714   (exit $ac_status); }; }; then
22715   samba_cv_HAVE_SENDFILE=yes
22716 else
22717   echo "$as_me: failed program was:" >&5
22718 cat conftest.$ac_ext >&5
22719 samba_cv_HAVE_SENDFILE=no
22720 fi
22721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22722 fi
22723 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
22724 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
22725         if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
22726
22727 cat >>confdefs.h <<\_ACEOF
22728 #define HAVE_SENDFILE 1
22729 _ACEOF
22730
22731
22732 cat >>confdefs.h <<\_ACEOF
22733 #define HPUX_SENDFILE_API 1
22734 _ACEOF
22735
22736
22737 cat >>confdefs.h <<\_ACEOF
22738 #define WITH_SENDFILE 1
22739 _ACEOF
22740
22741         else
22742                 echo "$as_me:$LINENO: result: no" >&5
22743 echo "${ECHO_T}no" >&6;
22744         fi
22745         ;;
22746
22747         *solaris*)
22748                 LIBS="$LIBS -lsendfile"
22749                 echo "$as_me:$LINENO: checking for solaris sendfilev64 support" >&5
22750 echo $ECHO_N "checking for solaris sendfilev64 support... $ECHO_C" >&6
22751 if test "${samba_cv_HAVE_SENDFILEV64+set}" = set; then
22752   echo $ECHO_N "(cached) $ECHO_C" >&6
22753 else
22754
22755                 cat >conftest.$ac_ext <<_ACEOF
22756 #line $LINENO "configure"
22757 #include "confdefs.h"
22758 \
22759 #include <sys/sendfile.h>
22760 int
22761 main ()
22762 {
22763 \
22764         int sfvcnt;
22765         size_t xferred;
22766         struct sendfilevec vec[2];
22767         ssize_t nwritten;
22768         int tofd;
22769
22770         sfvcnt = 2;
22771
22772         vec[0].sfv_fd = SFV_FD_SELF;
22773         vec[0].sfv_flag = 0;
22774         vec[0].sfv_off = 0;
22775         vec[0].sfv_len = 0;
22776
22777         vec[1].sfv_fd = 0;
22778         vec[1].sfv_flag = 0;
22779         vec[1].sfv_off = 0;
22780         vec[1].sfv_len = 0;
22781         nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
22782
22783   ;
22784   return 0;
22785 }
22786 _ACEOF
22787 rm -f conftest.$ac_objext conftest$ac_exeext
22788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22789   (eval $ac_link) 2>&5
22790   ac_status=$?
22791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792   (exit $ac_status); } &&
22793          { ac_try='test -s conftest$ac_exeext'
22794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22795   (eval $ac_try) 2>&5
22796   ac_status=$?
22797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798   (exit $ac_status); }; }; then
22799   samba_cv_HAVE_SENDFILEV64=yes
22800 else
22801   echo "$as_me: failed program was:" >&5
22802 cat conftest.$ac_ext >&5
22803 samba_cv_HAVE_SENDFILEV64=no
22804 fi
22805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22806 fi
22807 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV64" >&5
22808 echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV64" >&6
22809
22810         if test x"$samba_cv_HAVE_SENDFILEV64" = x"yes"; then
22811
22812 cat >>confdefs.h <<\_ACEOF
22813 #define HAVE_SENDFILEV64 1
22814 _ACEOF
22815
22816
22817 cat >>confdefs.h <<\_ACEOF
22818 #define SOLARIS_SENDFILE_API 1
22819 _ACEOF
22820
22821
22822 cat >>confdefs.h <<\_ACEOF
22823 #define WITH_SENDFILE 1
22824 _ACEOF
22825
22826         else
22827                 echo "$as_me:$LINENO: result: no" >&5
22828 echo "${ECHO_T}no" >&6;
22829         fi
22830
22831                 echo "$as_me:$LINENO: checking for solaris sendfilev support" >&5
22832 echo $ECHO_N "checking for solaris sendfilev support... $ECHO_C" >&6
22833 if test "${samba_cv_HAVE_SENDFILEV+set}" = set; then
22834   echo $ECHO_N "(cached) $ECHO_C" >&6
22835 else
22836
22837                 cat >conftest.$ac_ext <<_ACEOF
22838 #line $LINENO "configure"
22839 #include "confdefs.h"
22840 \
22841 #include <sys/sendfile.h>
22842 int
22843 main ()
22844 {
22845 \
22846         int sfvcnt;
22847         size_t xferred;
22848         struct sendfilevec vec[2];
22849         ssize_t nwritten;
22850         int tofd;
22851
22852         sfvcnt = 2;
22853
22854         vec[0].sfv_fd = SFV_FD_SELF;
22855         vec[0].sfv_flag = 0;
22856         vec[0].sfv_off = 0;
22857         vec[0].sfv_len = 0;
22858
22859         vec[1].sfv_fd = 0;
22860         vec[1].sfv_flag = 0;
22861         vec[1].sfv_off = 0;
22862         vec[1].sfv_len = 0;
22863         nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
22864
22865   ;
22866   return 0;
22867 }
22868 _ACEOF
22869 rm -f conftest.$ac_objext conftest$ac_exeext
22870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22871   (eval $ac_link) 2>&5
22872   ac_status=$?
22873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874   (exit $ac_status); } &&
22875          { ac_try='test -s conftest$ac_exeext'
22876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22877   (eval $ac_try) 2>&5
22878   ac_status=$?
22879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880   (exit $ac_status); }; }; then
22881   samba_cv_HAVE_SENDFILEV=yes
22882 else
22883   echo "$as_me: failed program was:" >&5
22884 cat conftest.$ac_ext >&5
22885 samba_cv_HAVE_SENDFILEV=no
22886 fi
22887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22888 fi
22889 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV" >&5
22890 echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV" >&6
22891
22892         if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then
22893
22894 cat >>confdefs.h <<\_ACEOF
22895 #define HAVE_SENDFILEV 1
22896 _ACEOF
22897
22898
22899 cat >>confdefs.h <<\_ACEOF
22900 #define SOLARIS_SENDFILE_API 1
22901 _ACEOF
22902
22903
22904 cat >>confdefs.h <<\_ACEOF
22905 #define WITH_SENDFILE 1
22906 _ACEOF
22907
22908         else
22909                 echo "$as_me:$LINENO: result: no" >&5
22910 echo "${ECHO_T}no" >&6;
22911         fi
22912         ;;
22913
22914         *)
22915         ;;
22916         esac
22917         ;;
22918   *)
22919     echo "$as_me:$LINENO: result: no" >&5
22920 echo "${ECHO_T}no" >&6
22921     ;;
22922   esac
22923 else
22924   echo "$as_me:$LINENO: result: yes" >&5
22925 echo "${ECHO_T}yes" >&6
22926
22927 fi;
22928
22929
22930 #################################################
22931 # Check whether winbind is supported on this platform.  If so we need to
22932 # build and install client programs (WINBIND_TARGETS), sbin programs
22933 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
22934
22935 echo "$as_me:$LINENO: checking whether to build winbind" >&5
22936 echo $ECHO_N "checking whether to build winbind... $ECHO_C" >&6
22937
22938 # Initially, the value of $host_os decides whether winbind is supported
22939
22940 case "$host_os" in
22941         *linux*|*irix*)
22942                 HAVE_WINBIND=yes
22943                 ;;
22944         *solaris*)
22945                 HAVE_WINBIND=yes
22946                 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
22947                 WINBIND_NSS_EXTRA_LIBS="-lsocket"
22948                 ;;
22949         *hpux11*)
22950                 HAVE_WINBIND=yes
22951                 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
22952                 ;;
22953         *)
22954                 HAVE_WINBIND=no
22955                 winbind_no_reason=", unsupported on $host_os"
22956                 ;;
22957 esac
22958
22959 # Check the setting of --with-winbindd
22960
22961
22962 # Check whether --with-winbind or --without-winbind was given.
22963 if test "${with_winbind+set}" = set; then
22964   withval="$with_winbind"
22965
22966   case "$withval" in
22967         yes)
22968                 HAVE_WINBIND=yes
22969                 ;;
22970         no)
22971                 HAVE_WINBIND=no
22972                 winbind_reason=""
22973                 ;;
22974   esac
22975 fi;
22976
22977 # We need unix domain sockets for winbind
22978
22979 if test x"$HAVE_WINBIND" = x"yes"; then
22980         if test x"$samba_cv_unixsocket" = x"no"; then
22981                 winbind_no_reason=", no unix domain socket support on $host_os"
22982                 HAVE_WINBIND=no
22983         fi
22984 fi
22985
22986 # Display test results
22987
22988 WINBIND_TARGETS=""
22989 WINBIND_STARGETS=""
22990 WINBIND_LTARGETS=""
22991 WINBIND_PAM_PROGS=""
22992
22993 if test x"$HAVE_WINBIND" = x"yes"; then
22994         echo "$as_me:$LINENO: result: yes" >&5
22995 echo "${ECHO_T}yes" >&6
22996
22997 cat >>confdefs.h <<\_ACEOF
22998 #define WITH_WINBIND 1
22999 _ACEOF
23000
23001
23002         WINBIND_TARGETS="bin/wbinfo"
23003         WINBIND_STARGETS="bin/winbindd"
23004         if test x"$BLDSHARED" = x"true"; then
23005                 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
23006                 if test x"$with_pam" = x"yes"; then
23007                         WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
23008                 fi
23009         fi
23010 else
23011         echo "$as_me:$LINENO: result: no$winbind_no_reason" >&5
23012 echo "${ECHO_T}no$winbind_no_reason" >&6
23013 fi
23014
23015
23016 # Substitution time!
23017
23018
23019
23020
23021
23022
23023
23024
23025 # Solaris has some extra fields in struct passwd that need to be
23026 # initialised otherwise nscd crashes.  Unfortunately autoconf < 2.50
23027 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
23028 # this.
23029
23030 #AC_CHECK_MEMBER(struct passwd.pw_comment,
23031 #               AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
23032 #               [#include <pwd.h>])
23033
23034 echo "$as_me:$LINENO: checking whether struct passwd has pw_comment" >&5
23035 echo $ECHO_N "checking whether struct passwd has pw_comment... $ECHO_C" >&6
23036 if test "${samba_cv_passwd_pw_comment+set}" = set; then
23037   echo $ECHO_N "(cached) $ECHO_C" >&6
23038 else
23039
23040     cat >conftest.$ac_ext <<_ACEOF
23041 #line $LINENO "configure"
23042 #include "confdefs.h"
23043 #include <pwd.h>
23044 int
23045 main ()
23046 {
23047 struct passwd p; p.pw_comment;
23048   ;
23049   return 0;
23050 }
23051 _ACEOF
23052 rm -f conftest.$ac_objext
23053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23054   (eval $ac_compile) 2>&5
23055   ac_status=$?
23056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057   (exit $ac_status); } &&
23058          { ac_try='test -s conftest.$ac_objext'
23059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060   (eval $ac_try) 2>&5
23061   ac_status=$?
23062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063   (exit $ac_status); }; }; then
23064   samba_cv_passwd_pw_comment=yes
23065 else
23066   echo "$as_me: failed program was:" >&5
23067 cat conftest.$ac_ext >&5
23068 samba_cv_passwd_pw_comment=no
23069 fi
23070 rm -f conftest.$ac_objext conftest.$ac_ext
23071 fi
23072 echo "$as_me:$LINENO: result: $samba_cv_passwd_pw_comment" >&5
23073 echo "${ECHO_T}$samba_cv_passwd_pw_comment" >&6
23074 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
23075
23076 cat >>confdefs.h <<\_ACEOF
23077 #define HAVE_PASSWD_PW_COMMENT 1
23078 _ACEOF
23079
23080 fi
23081
23082 #AC_CHECK_MEMBER(struct passwd.pw_age,
23083 #               AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
23084 #               [#include <pwd.h>])
23085
23086 echo "$as_me:$LINENO: checking whether struct passwd has pw_age" >&5
23087 echo $ECHO_N "checking whether struct passwd has pw_age... $ECHO_C" >&6
23088 if test "${samba_cv_passwd_pw_age+set}" = set; then
23089   echo $ECHO_N "(cached) $ECHO_C" >&6
23090 else
23091
23092     cat >conftest.$ac_ext <<_ACEOF
23093 #line $LINENO "configure"
23094 #include "confdefs.h"
23095 #include <pwd.h>
23096 int
23097 main ()
23098 {
23099 struct passwd p; p.pw_age;
23100   ;
23101   return 0;
23102 }
23103 _ACEOF
23104 rm -f conftest.$ac_objext
23105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23106   (eval $ac_compile) 2>&5
23107   ac_status=$?
23108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109   (exit $ac_status); } &&
23110          { ac_try='test -s conftest.$ac_objext'
23111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23112   (eval $ac_try) 2>&5
23113   ac_status=$?
23114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115   (exit $ac_status); }; }; then
23116   samba_cv_passwd_pw_age=yes
23117 else
23118   echo "$as_me: failed program was:" >&5
23119 cat conftest.$ac_ext >&5
23120 samba_cv_passwd_pw_age=no
23121 fi
23122 rm -f conftest.$ac_objext conftest.$ac_ext
23123 fi
23124 echo "$as_me:$LINENO: result: $samba_cv_passwd_pw_age" >&5
23125 echo "${ECHO_T}$samba_cv_passwd_pw_age" >&6
23126 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
23127
23128 cat >>confdefs.h <<\_ACEOF
23129 #define HAVE_PASSWD_PW_AGE 1
23130 _ACEOF
23131
23132 fi
23133
23134 #################################################
23135 # Check to see if we should use the included popt
23136
23137
23138 # Check whether --with-included-popt or --without-included-popt was given.
23139 if test "${with_included_popt+set}" = set; then
23140   withval="$with_included_popt"
23141
23142   case "$withval" in
23143         yes)
23144                 INCLUDED_POPT=yes
23145                 ;;
23146         no)
23147                 INCLUDED_POPT=no
23148                 ;;
23149   esac
23150 fi;
23151 if test x"$INCLUDED_POPT" != x"yes"; then
23152     echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
23153 echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6
23154 if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
23155   echo $ECHO_N "(cached) $ECHO_C" >&6
23156 else
23157   ac_check_lib_save_LIBS=$LIBS
23158 LIBS="-lpopt  $LIBS"
23159 cat >conftest.$ac_ext <<_ACEOF
23160 #line $LINENO "configure"
23161 #include "confdefs.h"
23162
23163 /* Override any gcc2 internal prototype to avoid an error.  */
23164 #ifdef __cplusplus
23165 extern "C"
23166 #endif
23167 /* We use char because int might match the return type of a gcc2
23168    builtin and then its argument prototype would still apply.  */
23169 char poptGetContext ();
23170 int
23171 main ()
23172 {
23173 poptGetContext ();
23174   ;
23175   return 0;
23176 }
23177 _ACEOF
23178 rm -f conftest.$ac_objext conftest$ac_exeext
23179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23180   (eval $ac_link) 2>&5
23181   ac_status=$?
23182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183   (exit $ac_status); } &&
23184          { ac_try='test -s conftest$ac_exeext'
23185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23186   (eval $ac_try) 2>&5
23187   ac_status=$?
23188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189   (exit $ac_status); }; }; then
23190   ac_cv_lib_popt_poptGetContext=yes
23191 else
23192   echo "$as_me: failed program was:" >&5
23193 cat conftest.$ac_ext >&5
23194 ac_cv_lib_popt_poptGetContext=no
23195 fi
23196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23197 LIBS=$ac_check_lib_save_LIBS
23198 fi
23199 echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
23200 echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6
23201 if test $ac_cv_lib_popt_poptGetContext = yes; then
23202   INCLUDED_POPT=no
23203 else
23204   INCLUDED_POPT=yes
23205 fi
23206
23207 fi
23208
23209 echo "$as_me:$LINENO: checking whether to use included popt" >&5
23210 echo $ECHO_N "checking whether to use included popt... $ECHO_C" >&6
23211 if test x"$INCLUDED_POPT" = x"yes"; then
23212     echo "$as_me:$LINENO: result: yes" >&5
23213 echo "${ECHO_T}yes" >&6
23214     BUILD_POPT='$(POPT_OBJS)'
23215     FLAGS1="-I$srcdir/popt"
23216 else
23217     echo "$as_me:$LINENO: result: no" >&5
23218 echo "${ECHO_T}no" >&6
23219     LIBS="$LIBS -lpopt"
23220 fi
23221
23222
23223
23224 #################################################
23225 # Check if the user wants Python
23226
23227 # At the moment, you can use this to set which Python binary to link
23228 # against.  (Libraries built for Python2.2 can't be used by 2.1,
23229 # though they can coexist in different directories.)  In the future
23230 # this might make the Python stuff be built by default.
23231
23232
23233 # Check whether --with-python or --without-python was given.
23234 if test "${with_python+set}" = set; then
23235   withval="$with_python"
23236    case "${withval-python}" in
23237   yes)
23238         PYTHON=python
23239         ;;
23240   *)
23241         PYTHON=${withval-python}
23242         ;;
23243   esac
23244 fi;
23245
23246
23247 #################################################
23248 # do extra things if we are running insure
23249
23250 if test "${ac_cv_prog_CC}" = "insure"; then
23251         CPPFLAGS="$CPPFLAGS -D__INSURE__"
23252 fi
23253
23254 #################################################
23255 # final configure stuff
23256
23257 echo "$as_me:$LINENO: checking configure summary" >&5
23258 echo $ECHO_N "checking configure summary... $ECHO_C" >&6
23259 if test "$cross_compiling" = yes; then
23260   { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
23261 echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
23262 else
23263   cat >conftest.$ac_ext <<_ACEOF
23264 #line $LINENO "configure"
23265 #include "confdefs.h"
23266 #include "${srcdir-.}/tests/summary.c"
23267 _ACEOF
23268 rm -f conftest$ac_exeext
23269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23270   (eval $ac_link) 2>&5
23271   ac_status=$?
23272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23275   (eval $ac_try) 2>&5
23276   ac_status=$?
23277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278   (exit $ac_status); }; }; then
23279   echo "$as_me:$LINENO: result: yes" >&5
23280 echo "${ECHO_T}yes" >&6
23281 else
23282   echo "$as_me: program exited with status $ac_status" >&5
23283 echo "$as_me: failed program was:" >&5
23284 cat conftest.$ac_ext >&5
23285 ( exit $ac_status )
23286 { { echo "$as_me:$LINENO: error: summary failure. Aborting config" >&5
23287 echo "$as_me: error: summary failure. Aborting config" >&2;}
23288    { (exit 1); exit 1; }; }; exit 1;
23289 fi
23290 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23291 fi
23292
23293 builddir=`pwd`
23294
23295
23296 # I added make files that are outside /source directory.
23297 # I know this is not a good solution, will work out a better
23298 # solution soon.                        --simo
23299                                                   ac_config_files="$ac_config_files include/stamp-h Makefile script/findsmb ../examples/VFS/Makefile ../examples/sam/Makefile"
23300 cat >confcache <<\_ACEOF
23301 # This file is a shell script that caches the results of configure
23302 # tests run on this system so they can be shared between configure
23303 # scripts and configure runs, see configure's option --config-cache.
23304 # It is not useful on other systems.  If it contains results you don't
23305 # want to keep, you may remove or edit it.
23306 #
23307 # config.status only pays attention to the cache file if you give it
23308 # the --recheck option to rerun configure.
23309 #
23310 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23311 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23312 # following values.
23313
23314 _ACEOF
23315
23316 # The following way of writing the cache mishandles newlines in values,
23317 # but we know of no workaround that is simple, portable, and efficient.
23318 # So, don't put newlines in cache variables' values.
23319 # Ultrix sh set writes to stderr and can't be redirected directly,
23320 # and sets the high bit in the cache file unless we assign to the vars.
23321 {
23322   (set) 2>&1 |
23323     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23324     *ac_space=\ *)
23325       # `set' does not quote correctly, so add quotes (double-quote
23326       # substitution turns \\\\ into \\, and sed turns \\ into \).
23327       sed -n \
23328         "s/'/'\\\\''/g;
23329           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23330       ;;
23331     *)
23332       # `set' quotes correctly as required by POSIX, so do not add quotes.
23333       sed -n \
23334         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23335       ;;
23336     esac;
23337 } |
23338   sed '
23339      t clear
23340      : clear
23341      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23342      t end
23343      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23344      : end' >>confcache
23345 if cmp -s $cache_file confcache; then :; else
23346   if test -w $cache_file; then
23347     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23348     cat confcache >$cache_file
23349   else
23350     echo "not updating unwritable cache $cache_file"
23351   fi
23352 fi
23353 rm -f confcache
23354
23355 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23356 # Let make expand exec_prefix.
23357 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23358
23359 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23360 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23361 # trailing colons and then remove the whole line if VPATH becomes empty
23362 # (actually we leave an empty line to preserve line numbers).
23363 if test "x$srcdir" = x.; then
23364   ac_vpsub='/^[         ]*VPATH[        ]*=/{
23365 s/:*\$(srcdir):*/:/;
23366 s/:*\${srcdir}:*/:/;
23367 s/:*@srcdir@:*/:/;
23368 s/^\([^=]*=[    ]*\):*/\1/;
23369 s/:*$//;
23370 s/^[^=]*=[      ]*$//;
23371 }'
23372 fi
23373
23374 DEFS=-DHAVE_CONFIG_H
23375
23376 ac_libobjs=
23377 ac_ltlibobjs=
23378 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23379   # 1. Remove the extension, and $U if already installed.
23380   ac_i=`echo "$ac_i" |
23381          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23382   # 2. Add them.
23383   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23384   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23385 done
23386 LIBOBJS=$ac_libobjs
23387
23388 LTLIBOBJS=$ac_ltlibobjs
23389
23390
23391
23392 : ${CONFIG_STATUS=./config.status}
23393 ac_clean_files_save=$ac_clean_files
23394 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23395 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23396 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23397 cat >$CONFIG_STATUS <<_ACEOF
23398 #! $SHELL
23399 # Generated by $as_me.
23400 # Run this file to recreate the current configuration.
23401 # Compiler output produced by configure, useful for debugging
23402 # configure, is in config.log if it exists.
23403
23404 debug=false
23405 SHELL=\${CONFIG_SHELL-$SHELL}
23406 _ACEOF
23407
23408 cat >>$CONFIG_STATUS <<\_ACEOF
23409 ## --------------------- ##
23410 ## M4sh Initialization.  ##
23411 ## --------------------- ##
23412
23413 # Be Bourne compatible
23414 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23415   emulate sh
23416   NULLCMD=:
23417   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23418   # is contrary to our usage.  Disable this feature.
23419   alias -g '${1+"$@"}'='"$@"'
23420 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23421   set -o posix
23422 fi
23423
23424 # Support unset when possible.
23425 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23426   as_unset=unset
23427 else
23428   as_unset=false
23429 fi
23430
23431
23432 # Work around bugs in pre-3.0 UWIN ksh.
23433 $as_unset ENV MAIL MAILPATH
23434 PS1='$ '
23435 PS2='> '
23436 PS4='+ '
23437
23438 # NLS nuisances.
23439 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
23440 do
23441   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23442     eval $as_var=C; export $as_var
23443   else
23444     $as_unset $as_var
23445   fi
23446 done
23447
23448 # Required to use basename.
23449 if expr a : '\(a\)' >/dev/null 2>&1; then
23450   as_expr=expr
23451 else
23452   as_expr=false
23453 fi
23454
23455 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23456   as_basename=basename
23457 else
23458   as_basename=false
23459 fi
23460
23461
23462 # Name of the executable.
23463 as_me=`$as_basename "$0" ||
23464 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23465          X"$0" : 'X\(//\)$' \| \
23466          X"$0" : 'X\(/\)$' \| \
23467          .     : '\(.\)' 2>/dev/null ||
23468 echo X/"$0" |
23469     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23470           /^X\/\(\/\/\)$/{ s//\1/; q; }
23471           /^X\/\(\/\).*/{ s//\1/; q; }
23472           s/.*/./; q'`
23473
23474
23475 # PATH needs CR, and LINENO needs CR and PATH.
23476 # Avoid depending upon Character Ranges.
23477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23480 as_cr_digits='0123456789'
23481 as_cr_alnum=$as_cr_Letters$as_cr_digits
23482
23483 # The user is always right.
23484 if test "${PATH_SEPARATOR+set}" != set; then
23485   echo "#! /bin/sh" >conftest.sh
23486   echo  "exit 0"   >>conftest.sh
23487   chmod +x conftest.sh
23488   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
23489     PATH_SEPARATOR=';'
23490   else
23491     PATH_SEPARATOR=:
23492   fi
23493   rm -f conftest.sh
23494 fi
23495
23496
23497   as_lineno_1=$LINENO
23498   as_lineno_2=$LINENO
23499   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23500   test "x$as_lineno_1" != "x$as_lineno_2" &&
23501   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23502   # Find who we are.  Look in the path if we contain no path at all
23503   # relative or not.
23504   case $0 in
23505     *[\\/]* ) as_myself=$0 ;;
23506     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23507 for as_dir in $PATH
23508 do
23509   IFS=$as_save_IFS
23510   test -z "$as_dir" && as_dir=.
23511   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23512 done
23513
23514        ;;
23515   esac
23516   # We did not find ourselves, most probably we were run as `sh COMMAND'
23517   # in which case we are not to be found in the path.
23518   if test "x$as_myself" = x; then
23519     as_myself=$0
23520   fi
23521   if test ! -f "$as_myself"; then
23522     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23523 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23524    { (exit 1); exit 1; }; }
23525   fi
23526   case $CONFIG_SHELL in
23527   '')
23528     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23529 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23530 do
23531   IFS=$as_save_IFS
23532   test -z "$as_dir" && as_dir=.
23533   for as_base in sh bash ksh sh5; do
23534          case $as_dir in
23535          /*)
23536            if ("$as_dir/$as_base" -c '
23537   as_lineno_1=$LINENO
23538   as_lineno_2=$LINENO
23539   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23540   test "x$as_lineno_1" != "x$as_lineno_2" &&
23541   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23542              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23543              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23544              CONFIG_SHELL=$as_dir/$as_base
23545              export CONFIG_SHELL
23546              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23547            fi;;
23548          esac
23549        done
23550 done
23551 ;;
23552   esac
23553
23554   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23555   # uniformly replaced by the line number.  The first 'sed' inserts a
23556   # line-number line before each line; the second 'sed' does the real
23557   # work.  The second script uses 'N' to pair each line-number line
23558   # with the numbered line, and appends trailing '-' during
23559   # substitution so that $LINENO is not a special case at line end.
23560   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23561   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23562   sed '=' <$as_myself |
23563     sed '
23564       N
23565       s,$,-,
23566       : loop
23567       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23568       t loop
23569       s,-$,,
23570       s,^['$as_cr_digits']*\n,,
23571     ' >$as_me.lineno &&
23572   chmod +x $as_me.lineno ||
23573     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23574 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23575    { (exit 1); exit 1; }; }
23576
23577   # Don't try to exec as it changes $[0], causing all sort of problems
23578   # (the dirname of $[0] is not the place where we might find the
23579   # original and so on.  Autoconf is especially sensible to this).
23580   . ./$as_me.lineno
23581   # Exit status is that of the last command.
23582   exit
23583 }
23584
23585
23586 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23587   *c*,-n*) ECHO_N= ECHO_C='
23588 ' ECHO_T='      ' ;;
23589   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23590   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23591 esac
23592
23593 if expr a : '\(a\)' >/dev/null 2>&1; then
23594   as_expr=expr
23595 else
23596   as_expr=false
23597 fi
23598
23599 rm -f conf$$ conf$$.exe conf$$.file
23600 echo >conf$$.file
23601 if ln -s conf$$.file conf$$ 2>/dev/null; then
23602   # We could just check for DJGPP; but this test a) works b) is more generic
23603   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23604   if test -f conf$$.exe; then
23605     # Don't use ln at all; we don't have any links
23606     as_ln_s='cp -p'
23607   else
23608     as_ln_s='ln -s'
23609   fi
23610 elif ln conf$$.file conf$$ 2>/dev/null; then
23611   as_ln_s=ln
23612 else
23613   as_ln_s='cp -p'
23614 fi
23615 rm -f conf$$ conf$$.exe conf$$.file
23616
23617 if mkdir -p . 2>/dev/null; then
23618   as_mkdir_p=:
23619 else
23620   as_mkdir_p=false
23621 fi
23622
23623 as_executable_p="test -f"
23624
23625 # Sed expression to map a string onto a valid CPP name.
23626 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23627
23628 # Sed expression to map a string onto a valid variable name.
23629 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23630
23631
23632 # IFS
23633 # We need space, tab and new line, in precisely that order.
23634 as_nl='
23635 '
23636 IFS="   $as_nl"
23637
23638 # CDPATH.
23639 $as_unset CDPATH
23640
23641 exec 6>&1
23642
23643 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23644 # report actual input values of CONFIG_FILES etc. instead of their
23645 # values after options handling.  Logging --version etc. is OK.
23646 exec 5>>config.log
23647 {
23648   echo
23649   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23650 ## Running $as_me. ##
23651 _ASBOX
23652 } >&5
23653 cat >&5 <<_CSEOF
23654
23655 This file was extended by $as_me, which was
23656 generated by GNU Autoconf 2.54.  Invocation command line was
23657
23658   CONFIG_FILES    = $CONFIG_FILES
23659   CONFIG_HEADERS  = $CONFIG_HEADERS
23660   CONFIG_LINKS    = $CONFIG_LINKS
23661   CONFIG_COMMANDS = $CONFIG_COMMANDS
23662   $ $0 $@
23663
23664 _CSEOF
23665 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23666 echo >&5
23667 _ACEOF
23668
23669 # Files that config.status was made for.
23670 if test -n "$ac_config_files"; then
23671   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23672 fi
23673
23674 if test -n "$ac_config_headers"; then
23675   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23676 fi
23677
23678 if test -n "$ac_config_links"; then
23679   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23680 fi
23681
23682 if test -n "$ac_config_commands"; then
23683   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23684 fi
23685
23686 cat >>$CONFIG_STATUS <<\_ACEOF
23687
23688 ac_cs_usage="\
23689 \`$as_me' instantiates files from templates according to the
23690 current configuration.
23691
23692 Usage: $0 [OPTIONS] [FILE]...
23693
23694   -h, --help       print this help, then exit
23695   -V, --version    print version number, then exit
23696   -d, --debug      don't remove temporary files
23697       --recheck    update $as_me by reconfiguring in the same conditions
23698   --file=FILE[:TEMPLATE]
23699                    instantiate the configuration file FILE
23700   --header=FILE[:TEMPLATE]
23701                    instantiate the configuration header FILE
23702
23703 Configuration files:
23704 $config_files
23705
23706 Configuration headers:
23707 $config_headers
23708
23709 Report bugs to <bug-autoconf@gnu.org>."
23710 _ACEOF
23711
23712 cat >>$CONFIG_STATUS <<_ACEOF
23713 ac_cs_version="\\
23714 config.status
23715 configured by $0, generated by GNU Autoconf 2.54,
23716   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23717
23718 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23719 Free Software Foundation, Inc.
23720 This config.status script is free software; the Free Software Foundation
23721 gives unlimited permission to copy, distribute and modify it."
23722 srcdir=$srcdir
23723 INSTALL="$INSTALL"
23724 _ACEOF
23725
23726 cat >>$CONFIG_STATUS <<\_ACEOF
23727 # If no file are specified by the user, then we need to provide default
23728 # value.  By we need to know if files were specified by the user.
23729 ac_need_defaults=:
23730 while test $# != 0
23731 do
23732   case $1 in
23733   --*=*)
23734     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23735     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23736     ac_shift=:
23737     ;;
23738   -*)
23739     ac_option=$1
23740     ac_optarg=$2
23741     ac_shift=shift
23742     ;;
23743   *) # This is not an option, so the user has probably given explicit
23744      # arguments.
23745      ac_option=$1
23746      ac_need_defaults=false;;
23747   esac
23748
23749   case $ac_option in
23750   # Handling of the options.
23751 _ACEOF
23752 cat >>$CONFIG_STATUS <<_ACEOF
23753   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23754     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
23755     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
23756 _ACEOF
23757 cat >>$CONFIG_STATUS <<\_ACEOF
23758   --version | --vers* | -V )
23759     echo "$ac_cs_version"; exit 0 ;;
23760   --he | --h)
23761     # Conflict between --help and --header
23762     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23763 Try \`$0 --help' for more information." >&5
23764 echo "$as_me: error: ambiguous option: $1
23765 Try \`$0 --help' for more information." >&2;}
23766    { (exit 1); exit 1; }; };;
23767   --help | --hel | -h )
23768     echo "$ac_cs_usage"; exit 0 ;;
23769   --debug | --d* | -d )
23770     debug=: ;;
23771   --file | --fil | --fi | --f )
23772     $ac_shift
23773     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23774     ac_need_defaults=false;;
23775   --header | --heade | --head | --hea )
23776     $ac_shift
23777     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23778     ac_need_defaults=false;;
23779
23780   # This is an error.
23781   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23782 Try \`$0 --help' for more information." >&5
23783 echo "$as_me: error: unrecognized option: $1
23784 Try \`$0 --help' for more information." >&2;}
23785    { (exit 1); exit 1; }; } ;;
23786
23787   *) ac_config_targets="$ac_config_targets $1" ;;
23788
23789   esac
23790   shift
23791 done
23792
23793 _ACEOF
23794
23795
23796
23797
23798
23799 cat >>$CONFIG_STATUS <<\_ACEOF
23800 for ac_config_target in $ac_config_targets
23801 do
23802   case "$ac_config_target" in
23803   # Handling of arguments.
23804   "include/stamp-h" ) CONFIG_FILES="$CONFIG_FILES include/stamp-h" ;;
23805   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23806   "script/findsmb" ) CONFIG_FILES="$CONFIG_FILES script/findsmb" ;;
23807   "../examples/VFS/Makefile" ) CONFIG_FILES="$CONFIG_FILES ../examples/VFS/Makefile" ;;
23808   "../examples/sam/Makefile" ) CONFIG_FILES="$CONFIG_FILES ../examples/sam/Makefile" ;;
23809   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
23810   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23811 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23812    { (exit 1); exit 1; }; };;
23813   esac
23814 done
23815
23816 # If the user did not use the arguments to specify the items to instantiate,
23817 # then the envvar interface is used.  Set only those that are not.
23818 # We use the long form for the default assignment because of an extremely
23819 # bizarre bug on SunOS 4.1.3.
23820 if $ac_need_defaults; then
23821   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23822   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23823 fi
23824
23825 # Create a temporary directory, and hook for its removal unless debugging.
23826 $debug ||
23827 {
23828   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23829   trap '{ (exit 1); exit 1; }' 1 2 13 15
23830 }
23831
23832 # Create a (secure) tmp directory for tmp files.
23833 : ${TMPDIR=/tmp}
23834 {
23835   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
23836   test -n "$tmp" && test -d "$tmp"
23837 }  ||
23838 {
23839   tmp=$TMPDIR/cs$$-$RANDOM
23840   (umask 077 && mkdir $tmp)
23841 } ||
23842 {
23843    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
23844    { (exit 1); exit 1; }
23845 }
23846
23847 _ACEOF
23848
23849 cat >>$CONFIG_STATUS <<_ACEOF
23850
23851 #
23852 # CONFIG_FILES section.
23853 #
23854
23855 # No need to generate the scripts if there are no CONFIG_FILES.
23856 # This happens for instance when ./config.status config.h
23857 if test -n "\$CONFIG_FILES"; then
23858   # Protect against being on the right side of a sed subst in config.status.
23859   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23860    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23861 s,@SHELL@,$SHELL,;t t
23862 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23863 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23864 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23865 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23866 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23867 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23868 s,@exec_prefix@,$exec_prefix,;t t
23869 s,@prefix@,$prefix,;t t
23870 s,@program_transform_name@,$program_transform_name,;t t
23871 s,@bindir@,$bindir,;t t
23872 s,@sbindir@,$sbindir,;t t
23873 s,@libexecdir@,$libexecdir,;t t
23874 s,@datadir@,$datadir,;t t
23875 s,@sysconfdir@,$sysconfdir,;t t
23876 s,@sharedstatedir@,$sharedstatedir,;t t
23877 s,@localstatedir@,$localstatedir,;t t
23878 s,@libdir@,$libdir,;t t
23879 s,@includedir@,$includedir,;t t
23880 s,@oldincludedir@,$oldincludedir,;t t
23881 s,@infodir@,$infodir,;t t
23882 s,@mandir@,$mandir,;t t
23883 s,@build_alias@,$build_alias,;t t
23884 s,@host_alias@,$host_alias,;t t
23885 s,@target_alias@,$target_alias,;t t
23886 s,@DEFS@,$DEFS,;t t
23887 s,@ECHO_C@,$ECHO_C,;t t
23888 s,@ECHO_N@,$ECHO_N,;t t
23889 s,@ECHO_T@,$ECHO_T,;t t
23890 s,@LIBS@,$LIBS,;t t
23891 s,@configdir@,$configdir,;t t
23892 s,@lockdir@,$lockdir,;t t
23893 s,@piddir@,$piddir,;t t
23894 s,@logfilebase@,$logfilebase,;t t
23895 s,@privatedir@,$privatedir,;t t
23896 s,@swatdir@,$swatdir,;t t
23897 s,@RUNPROG@,$RUNPROG,;t t
23898 s,@MPROGS@,$MPROGS,;t t
23899 s,@LDSHFLAGS@,$LDSHFLAGS,;t t
23900 s,@SONAMEFLAG@,$SONAMEFLAG,;t t
23901 s,@SHLD@,$SHLD,;t t
23902 s,@HOST_OS@,$HOST_OS,;t t
23903 s,@PAM_MOD@,$PAM_MOD,;t t
23904 s,@WRAP@,$WRAP,;t t
23905 s,@WRAP32@,$WRAP32,;t t
23906 s,@WRAPPROG@,$WRAPPROG,;t t
23907 s,@PICFLAG@,$PICFLAG,;t t
23908 s,@PICSUFFIX@,$PICSUFFIX,;t t
23909 s,@POBAD_CC@,$POBAD_CC,;t t
23910 s,@SHLIBEXT@,$SHLIBEXT,;t t
23911 s,@LIBSMBCLIENT_SHARED@,$LIBSMBCLIENT_SHARED,;t t
23912 s,@LIBSMBCLIENT@,$LIBSMBCLIENT,;t t
23913 s,@PRINTLIBS@,$PRINTLIBS,;t t
23914 s,@AUTHLIBS@,$AUTHLIBS,;t t
23915 s,@CC@,$CC,;t t
23916 s,@CFLAGS@,$CFLAGS,;t t
23917 s,@LDFLAGS@,$LDFLAGS,;t t
23918 s,@CPPFLAGS@,$CPPFLAGS,;t t
23919 s,@ac_ct_CC@,$ac_ct_CC,;t t
23920 s,@EXEEXT@,$EXEEXT,;t t
23921 s,@OBJEXT@,$OBJEXT,;t t
23922 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23923 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23924 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23925 s,@AWK@,$AWK,;t t
23926 s,@BROKEN_CC@,$BROKEN_CC,;t t
23927 s,@build@,$build,;t t
23928 s,@build_cpu@,$build_cpu,;t t
23929 s,@build_vendor@,$build_vendor,;t t
23930 s,@build_os@,$build_os,;t t
23931 s,@host@,$host,;t t
23932 s,@host_cpu@,$host_cpu,;t t
23933 s,@host_vendor@,$host_vendor,;t t
23934 s,@host_os@,$host_os,;t t
23935 s,@target@,$target,;t t
23936 s,@target_cpu@,$target_cpu,;t t
23937 s,@target_vendor@,$target_vendor,;t t
23938 s,@target_os@,$target_os,;t t
23939 s,@CPP@,$CPP,;t t
23940 s,@EGREP@,$EGREP,;t t
23941 s,@CUPS_CONFIG@,$CUPS_CONFIG,;t t
23942 s,@LIBOBJS@,$LIBOBJS,;t t
23943 s,@TERMLIBS@,$TERMLIBS,;t t
23944 s,@TERMLDFLAGS@,$TERMLDFLAGS,;t t
23945 s,@ROFF@,$ROFF,;t t
23946 s,@DYNEXP@,$DYNEXP,;t t
23947 s,@MYSQL_CONFIG@,$MYSQL_CONFIG,;t t
23948 s,@MYSQL_CFLAGS@,$MYSQL_CFLAGS,;t t
23949 s,@MYSQL_LIBS@,$MYSQL_LIBS,;t t
23950 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
23951 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
23952 s,@XML_LIBS@,$XML_LIBS,;t t
23953 s,@QUOTAOBJS@,$QUOTAOBJS,;t t
23954 s,@manlangs@,$manlangs,;t t
23955 s,@WINBIND_TARGETS@,$WINBIND_TARGETS,;t t
23956 s,@WINBIND_STARGETS@,$WINBIND_STARGETS,;t t
23957 s,@WINBIND_LTARGETS@,$WINBIND_LTARGETS,;t t
23958 s,@WINBIND_PAM_TARGETS@,$WINBIND_PAM_TARGETS,;t t
23959 s,@WINBIND_NSS_EXTRA_OBJS@,$WINBIND_NSS_EXTRA_OBJS,;t t
23960 s,@WINBIND_NSS_EXTRA_LIBS@,$WINBIND_NSS_EXTRA_LIBS,;t t
23961 s,@BUILD_POPT@,$BUILD_POPT,;t t
23962 s,@FLAGS1@,$FLAGS1,;t t
23963 s,@PYTHON@,$PYTHON,;t t
23964 s,@builddir@,$builddir,;t t
23965 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23966 CEOF
23967
23968 _ACEOF
23969
23970   cat >>$CONFIG_STATUS <<\_ACEOF
23971   # Split the substitutions into bite-sized pieces for seds with
23972   # small command number limits, like on Digital OSF/1 and HP-UX.
23973   ac_max_sed_lines=48
23974   ac_sed_frag=1 # Number of current file.
23975   ac_beg=1 # First line for current file.
23976   ac_end=$ac_max_sed_lines # Line after last line for current file.
23977   ac_more_lines=:
23978   ac_sed_cmds=
23979   while $ac_more_lines; do
23980     if test $ac_beg -gt 1; then
23981       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23982     else
23983       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23984     fi
23985     if test ! -s $tmp/subs.frag; then
23986       ac_more_lines=false
23987     else
23988       # The purpose of the label and of the branching condition is to
23989       # speed up the sed processing (if there are no `@' at all, there
23990       # is no need to browse any of the substitutions).
23991       # These are the two extra sed commands mentioned above.
23992       (echo ':t
23993   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23994       if test -z "$ac_sed_cmds"; then
23995         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23996       else
23997         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23998       fi
23999       ac_sed_frag=`expr $ac_sed_frag + 1`
24000       ac_beg=$ac_end
24001       ac_end=`expr $ac_end + $ac_max_sed_lines`
24002     fi
24003   done
24004   if test -z "$ac_sed_cmds"; then
24005     ac_sed_cmds=cat
24006   fi
24007 fi # test -n "$CONFIG_FILES"
24008
24009 _ACEOF
24010 cat >>$CONFIG_STATUS <<\_ACEOF
24011 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24012   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24013   case $ac_file in
24014   - | *:- | *:-:* ) # input from stdin
24015         cat >$tmp/stdin
24016         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24017         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24018   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24019         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24020   * )   ac_file_in=$ac_file.in ;;
24021   esac
24022
24023   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24024   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24025 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24026          X"$ac_file" : 'X\(//\)[^/]' \| \
24027          X"$ac_file" : 'X\(//\)$' \| \
24028          X"$ac_file" : 'X\(/\)' \| \
24029          .     : '\(.\)' 2>/dev/null ||
24030 echo X"$ac_file" |
24031     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24032           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24033           /^X\(\/\/\)$/{ s//\1/; q; }
24034           /^X\(\/\).*/{ s//\1/; q; }
24035           s/.*/./; q'`
24036   { if $as_mkdir_p; then
24037     mkdir -p "$ac_dir"
24038   else
24039     as_dir="$ac_dir"
24040     as_dirs=
24041     while test ! -d "$as_dir"; do
24042       as_dirs="$as_dir $as_dirs"
24043       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24044 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24045          X"$as_dir" : 'X\(//\)[^/]' \| \
24046          X"$as_dir" : 'X\(//\)$' \| \
24047          X"$as_dir" : 'X\(/\)' \| \
24048          .     : '\(.\)' 2>/dev/null ||
24049 echo X"$as_dir" |
24050     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24051           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24052           /^X\(\/\/\)$/{ s//\1/; q; }
24053           /^X\(\/\).*/{ s//\1/; q; }
24054           s/.*/./; q'`
24055     done
24056     test ! -n "$as_dirs" || mkdir $as_dirs
24057   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24058 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24059    { (exit 1); exit 1; }; }; }
24060
24061   ac_builddir=.
24062
24063 if test "$ac_dir" != .; then
24064   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24065   # A "../" for each directory in $ac_dir_suffix.
24066   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24067 else
24068   ac_dir_suffix= ac_top_builddir=
24069 fi
24070
24071 case $srcdir in
24072   .)  # No --srcdir option.  We are building in place.
24073     ac_srcdir=.
24074     if test -z "$ac_top_builddir"; then
24075        ac_top_srcdir=.
24076     else
24077        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24078     fi ;;
24079   [\\/]* | ?:[\\/]* )  # Absolute path.
24080     ac_srcdir=$srcdir$ac_dir_suffix;
24081     ac_top_srcdir=$srcdir ;;
24082   *) # Relative path.
24083     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24084     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24085 esac
24086 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24087 # absolute.
24088 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24089 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24090 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24091 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24092
24093
24094   case $INSTALL in
24095   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24096   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24097   esac
24098
24099   if test x"$ac_file" != x-; then
24100     { echo "$as_me:$LINENO: creating $ac_file" >&5
24101 echo "$as_me: creating $ac_file" >&6;}
24102     rm -f "$ac_file"
24103   fi
24104   # Let's still pretend it is `configure' which instantiates (i.e., don't
24105   # use $as_me), people would be surprised to read:
24106   #    /* config.h.  Generated by config.status.  */
24107   if test x"$ac_file" = x-; then
24108     configure_input=
24109   else
24110     configure_input="$ac_file.  "
24111   fi
24112   configure_input=$configure_input"Generated from `echo $ac_file_in |
24113                                      sed 's,.*/,,'` by configure."
24114
24115   # First look for the input files in the build tree, otherwise in the
24116   # src tree.
24117   ac_file_inputs=`IFS=:
24118     for f in $ac_file_in; do
24119       case $f in
24120       -) echo $tmp/stdin ;;
24121       [\\/$]*)
24122          # Absolute (can't be DOS-style, as IFS=:)
24123          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24124 echo "$as_me: error: cannot find input file: $f" >&2;}
24125    { (exit 1); exit 1; }; }
24126          echo $f;;
24127       *) # Relative
24128          if test -f "$f"; then
24129            # Build tree
24130            echo $f
24131          elif test -f "$srcdir/$f"; then
24132            # Source tree
24133            echo $srcdir/$f
24134          else
24135            # /dev/null tree
24136            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24137 echo "$as_me: error: cannot find input file: $f" >&2;}
24138    { (exit 1); exit 1; }; }
24139          fi;;
24140       esac
24141     done` || { (exit 1); exit 1; }
24142 _ACEOF
24143 cat >>$CONFIG_STATUS <<_ACEOF
24144   sed "$ac_vpsub
24145 $extrasub
24146 _ACEOF
24147 cat >>$CONFIG_STATUS <<\_ACEOF
24148 :t
24149 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24150 s,@configure_input@,$configure_input,;t t
24151 s,@srcdir@,$ac_srcdir,;t t
24152 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24153 s,@top_srcdir@,$ac_top_srcdir,;t t
24154 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24155 s,@builddir@,$ac_builddir,;t t
24156 s,@abs_builddir@,$ac_abs_builddir,;t t
24157 s,@top_builddir@,$ac_top_builddir,;t t
24158 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24159 s,@INSTALL@,$ac_INSTALL,;t t
24160 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24161   rm -f $tmp/stdin
24162   if test x"$ac_file" != x-; then
24163     mv $tmp/out $ac_file
24164   else
24165     cat $tmp/out
24166     rm -f $tmp/out
24167   fi
24168
24169 done
24170 _ACEOF
24171 cat >>$CONFIG_STATUS <<\_ACEOF
24172
24173 #
24174 # CONFIG_HEADER section.
24175 #
24176
24177 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24178 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24179 #
24180 # ac_d sets the value in "#define NAME VALUE" lines.
24181 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24182 ac_dB='[        ].*$,\1#\2'
24183 ac_dC=' '
24184 ac_dD=',;t'
24185 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24186 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24187 ac_uB='$,\1#\2define\3'
24188 ac_uC=' '
24189 ac_uD=',;t'
24190
24191 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24192   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24193   case $ac_file in
24194   - | *:- | *:-:* ) # input from stdin
24195         cat >$tmp/stdin
24196         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24197         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24198   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24199         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24200   * )   ac_file_in=$ac_file.in ;;
24201   esac
24202
24203   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24204 echo "$as_me: creating $ac_file" >&6;}
24205
24206   # First look for the input files in the build tree, otherwise in the
24207   # src tree.
24208   ac_file_inputs=`IFS=:
24209     for f in $ac_file_in; do
24210       case $f in
24211       -) echo $tmp/stdin ;;
24212       [\\/$]*)
24213          # Absolute (can't be DOS-style, as IFS=:)
24214          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24215 echo "$as_me: error: cannot find input file: $f" >&2;}
24216    { (exit 1); exit 1; }; }
24217          echo $f;;
24218       *) # Relative
24219          if test -f "$f"; then
24220            # Build tree
24221            echo $f
24222          elif test -f "$srcdir/$f"; then
24223            # Source tree
24224            echo $srcdir/$f
24225          else
24226            # /dev/null tree
24227            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24228 echo "$as_me: error: cannot find input file: $f" >&2;}
24229    { (exit 1); exit 1; }; }
24230          fi;;
24231       esac
24232     done` || { (exit 1); exit 1; }
24233   # Remove the trailing spaces.
24234   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
24235
24236 _ACEOF
24237
24238 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24239 # `conftest.undefs', that substitutes the proper values into
24240 # config.h.in to produce config.h.  The first handles `#define'
24241 # templates, and the second `#undef' templates.
24242 # And first: Protect against being on the right side of a sed subst in
24243 # config.status.  Protect against being in an unquoted here document
24244 # in config.status.
24245 rm -f conftest.defines conftest.undefs
24246 # Using a here document instead of a string reduces the quoting nightmare.
24247 # Putting comments in sed scripts is not portable.
24248 #
24249 # `end' is used to avoid that the second main sed command (meant for
24250 # 0-ary CPP macros) applies to n-ary macro definitions.
24251 # See the Autoconf documentation for `clear'.
24252 cat >confdef2sed.sed <<\_ACEOF
24253 s/[\\&,]/\\&/g
24254 s,[\\$`],\\&,g
24255 t clear
24256 : clear
24257 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24258 t end
24259 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24260 : end
24261 _ACEOF
24262 # If some macros were called several times there might be several times
24263 # the same #defines, which is useless.  Nevertheless, we may not want to
24264 # sort them, since we want the *last* AC-DEFINE to be honored.
24265 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24266 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24267 rm -f confdef2sed.sed
24268
24269 # This sed command replaces #undef with comments.  This is necessary, for
24270 # example, in the case of _POSIX_SOURCE, which is predefined and required
24271 # on some systems where configure will not decide to define it.
24272 cat >>conftest.undefs <<\_ACEOF
24273 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24274 _ACEOF
24275
24276 # Break up conftest.defines because some shells have a limit on the size
24277 # of here documents, and old seds have small limits too (100 cmds).
24278 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24279 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24280 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24281 echo '  :' >>$CONFIG_STATUS
24282 rm -f conftest.tail
24283 while grep . conftest.defines >/dev/null
24284 do
24285   # Write a limited-size here document to $tmp/defines.sed.
24286   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24287   # Speed up: don't consider the non `#define' lines.
24288   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
24289   # Work around the forget-to-reset-the-flag bug.
24290   echo 't clr' >>$CONFIG_STATUS
24291   echo ': clr' >>$CONFIG_STATUS
24292   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24293   echo 'CEOF
24294   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24295   rm -f $tmp/in
24296   mv $tmp/out $tmp/in
24297 ' >>$CONFIG_STATUS
24298   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24299   rm -f conftest.defines
24300   mv conftest.tail conftest.defines
24301 done
24302 rm -f conftest.defines
24303 echo '  fi # grep' >>$CONFIG_STATUS
24304 echo >>$CONFIG_STATUS
24305
24306 # Break up conftest.undefs because some shells have a limit on the size
24307 # of here documents, and old seds have small limits too (100 cmds).
24308 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24309 rm -f conftest.tail
24310 while grep . conftest.undefs >/dev/null
24311 do
24312   # Write a limited-size here document to $tmp/undefs.sed.
24313   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24314   # Speed up: don't consider the non `#undef'
24315   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24316   # Work around the forget-to-reset-the-flag bug.
24317   echo 't clr' >>$CONFIG_STATUS
24318   echo ': clr' >>$CONFIG_STATUS
24319   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24320   echo 'CEOF
24321   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24322   rm -f $tmp/in
24323   mv $tmp/out $tmp/in
24324 ' >>$CONFIG_STATUS
24325   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24326   rm -f conftest.undefs
24327   mv conftest.tail conftest.undefs
24328 done
24329 rm -f conftest.undefs
24330
24331 cat >>$CONFIG_STATUS <<\_ACEOF
24332   # Let's still pretend it is `configure' which instantiates (i.e., don't
24333   # use $as_me), people would be surprised to read:
24334   #    /* config.h.  Generated by config.status.  */
24335   if test x"$ac_file" = x-; then
24336     echo "/* Generated by configure.  */" >$tmp/config.h
24337   else
24338     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24339   fi
24340   cat $tmp/in >>$tmp/config.h
24341   rm -f $tmp/in
24342   if test x"$ac_file" != x-; then
24343     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
24344       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24345 echo "$as_me: $ac_file is unchanged" >&6;}
24346     else
24347       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24348 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24349          X"$ac_file" : 'X\(//\)[^/]' \| \
24350          X"$ac_file" : 'X\(//\)$' \| \
24351          X"$ac_file" : 'X\(/\)' \| \
24352          .     : '\(.\)' 2>/dev/null ||
24353 echo X"$ac_file" |
24354     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24355           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24356           /^X\(\/\/\)$/{ s//\1/; q; }
24357           /^X\(\/\).*/{ s//\1/; q; }
24358           s/.*/./; q'`
24359       { if $as_mkdir_p; then
24360     mkdir -p "$ac_dir"
24361   else
24362     as_dir="$ac_dir"
24363     as_dirs=
24364     while test ! -d "$as_dir"; do
24365       as_dirs="$as_dir $as_dirs"
24366       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24367 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24368          X"$as_dir" : 'X\(//\)[^/]' \| \
24369          X"$as_dir" : 'X\(//\)$' \| \
24370          X"$as_dir" : 'X\(/\)' \| \
24371          .     : '\(.\)' 2>/dev/null ||
24372 echo X"$as_dir" |
24373     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24374           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24375           /^X\(\/\/\)$/{ s//\1/; q; }
24376           /^X\(\/\).*/{ s//\1/; q; }
24377           s/.*/./; q'`
24378     done
24379     test ! -n "$as_dirs" || mkdir $as_dirs
24380   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24381 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24382    { (exit 1); exit 1; }; }; }
24383
24384       rm -f $ac_file
24385       mv $tmp/config.h $ac_file
24386     fi
24387   else
24388     cat $tmp/config.h
24389     rm -f $tmp/config.h
24390   fi
24391 done
24392 _ACEOF
24393
24394 cat >>$CONFIG_STATUS <<\_ACEOF
24395
24396 { (exit 0); exit 0; }
24397 _ACEOF
24398 chmod +x $CONFIG_STATUS
24399 ac_clean_files=$ac_clean_files_save
24400
24401
24402 # configure is writing to config.log, and then calls config.status.
24403 # config.status does its own redirection, appending to config.log.
24404 # Unfortunately, on DOS this fails, as config.log is still kept open
24405 # by configure, so config.status won't be able to write to it; its
24406 # output is simply discarded.  So we exec the FD to /dev/null,
24407 # effectively closing config.log, so it can be properly (re)opened and
24408 # appended to by config.status.  When coming back to configure, we
24409 # need to make the FD available again.
24410 if test "$no_create" != yes; then
24411   ac_cs_success=:
24412   exec 5>/dev/null
24413   $SHELL $CONFIG_STATUS || ac_cs_success=false
24414   exec 5>>config.log
24415   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24416   # would make configure fail if this is the last instruction.
24417   $ac_cs_success || { (exit 1); exit 1; }
24418 fi
24419
24420
24421 #################################################
24422 # Print very concise instructions on building/use
24423 if test "x$enable_dmalloc" = xyes
24424 then
24425         echo "$as_me:$LINENO: result: Note: The dmalloc debug library will be included.  To turn it on use" >&5
24426 echo "${ECHO_T}Note: The dmalloc debug library will be included.  To turn it on use" >&6
24427         echo "$as_me:$LINENO: result:       \$ eval \\`dmalloc samba\\`." >&5
24428 echo "${ECHO_T}      \$ eval \\`dmalloc samba\\`." >&6
24429 fi