.
[platform/upstream/coreutils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57b for GNU coreutils 5.0.91.
4 #
5 # Report bugs to <bug-coreutils@gnu.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24
25 # Support unset when possible.
26 if ((MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27   as_unset=unset
28 else
29   as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43   LC_TELEPHONE LC_TIME
44 do
45   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46     eval $as_var=C; export $as_var
47   else
48     $as_unset $as_var
49   fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54   as_expr=expr
55 else
56   as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60   as_basename=basename
61 else
62   as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69          X"$0" : 'X\(//\)$' \| \
70          X"$0" : 'X\(/\)$' \| \
71          .     : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74           /^X\/\(\/\/\)$/{ s//\1/; q; }
75           /^X\/\(\/\).*/{ s//\1/; q; }
76           s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conf$$.sh
90   echo  "exit 0"   >>conf$$.sh
91   chmod +x conf$$.sh
92   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conf$$.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147              CONFIG_SHELL=$as_dir/$as_base
148              export CONFIG_SHELL
149              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150            fi;;
151          esac
152        done
153 done
154 ;;
155   esac
156
157   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158   # uniformly replaced by the line number.  The first 'sed' inserts a
159   # line-number line before each line; the second 'sed' does the real
160   # work.  The second script uses 'N' to pair each line-number line
161   # with the numbered line, and appends trailing '-' during
162   # substitution so that $LINENO is not a special case at line end.
163   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165   sed '=' <$as_myself |
166     sed '
167       N
168       s,$,-,
169       : loop
170       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171       t loop
172       s,-$,,
173       s,^['$as_cr_digits']*\n,,
174     ' >$as_me.lineno &&
175   chmod +x $as_me.lineno ||
176     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177    { (exit 1); exit 1; }; }
178
179   # Don't try to exec as it changes $[0], causing all sort of problems
180   # (the dirname of $[0] is not the place where we might find the
181   # original and so on.  Autoconf is especially sensible to this).
182   . ./$as_me.lineno
183   # Exit status is that of the last command.
184   exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189   *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T='      ' ;;
191   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196   as_expr=expr
197 else
198   as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204   # We could just check for DJGPP; but this test a) works b) is more generic
205   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206   if test -f conf$$.exe; then
207     # Don't use ln at all; we don't have any links
208     as_ln_s='cp -p'
209   else
210     as_ln_s='ln -s'
211   fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213   as_ln_s=ln
214 else
215   as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220   as_mkdir_p=:
221 else
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='GNU coreutils'
269 PACKAGE_TARNAME='coreutils'
270 PACKAGE_VERSION='5.0.91'
271 PACKAGE_STRING='GNU coreutils 5.0.91'
272 PACKAGE_BUGREPORT='bug-coreutils@gnu.org'
273
274 ac_unique_file="src/ls.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 gl_header_list=
313 gl_func_list=
314 ac_config_libobj_dir=lib
315 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot PERL CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB LN_S GNU_PACKAGE HELP2MAN OPTIONAL_BIN_PROGS MAN DF_PROG U ANSI2KNR LIBOBJS STDBOOL_H HAVE__BOOL ALLOCA ALLOCA_H FNMATCH_H NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS POW_LIB YACC LIB_CLOCK_GETTIME LIB_NANOSLEEP SEQ_LIBM GLIBC21 LIBICONV LTLIBICONV SQRT_LIBM FESETROUND_LIBM LIB_CRYPT MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS'
316 ac_subst_files=''
317
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
337
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
355
356 ac_prev=
357 for ac_option
358 do
359   # If the previous option needs an argument, assign it.
360   if test -n "$ac_prev"; then
361     eval "$ac_prev=\$ac_option"
362     ac_prev=
363     continue
364   fi
365
366   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368   # Accept the important Cygnus configure options, so we can diagnose typos.
369
370   case $ac_option in
371
372   -bindir | --bindir | --bindi | --bind | --bin | --bi)
373     ac_prev=bindir ;;
374   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375     bindir=$ac_optarg ;;
376
377   -build | --build | --buil | --bui | --bu)
378     ac_prev=build_alias ;;
379   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380     build_alias=$ac_optarg ;;
381
382   -cache-file | --cache-file | --cache-fil | --cache-fi \
383   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384     ac_prev=cache_file ;;
385   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387     cache_file=$ac_optarg ;;
388
389   --config-cache | -C)
390     cache_file=config.cache ;;
391
392   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393     ac_prev=datadir ;;
394   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395   | --da=*)
396     datadir=$ac_optarg ;;
397
398   -disable-* | --disable-*)
399     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400     # Reject names that are not valid shell variable names.
401     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403    { (exit 1); exit 1; }; }
404     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405     eval "enable_$ac_feature=no" ;;
406
407   -enable-* | --enable-*)
408     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409     # Reject names that are not valid shell variable names.
410     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412    { (exit 1); exit 1; }; }
413     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414     case $ac_option in
415       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416       *) ac_optarg=yes ;;
417     esac
418     eval "enable_$ac_feature='$ac_optarg'" ;;
419
420   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422   | --exec | --exe | --ex)
423     ac_prev=exec_prefix ;;
424   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426   | --exec=* | --exe=* | --ex=*)
427     exec_prefix=$ac_optarg ;;
428
429   -gas | --gas | --ga | --g)
430     # Obsolete; use --with-gas.
431     with_gas=yes ;;
432
433   -help | --help | --hel | --he | -h)
434     ac_init_help=long ;;
435   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436     ac_init_help=recursive ;;
437   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438     ac_init_help=short ;;
439
440   -host | --host | --hos | --ho)
441     ac_prev=host_alias ;;
442   -host=* | --host=* | --hos=* | --ho=*)
443     host_alias=$ac_optarg ;;
444
445   -includedir | --includedir | --includedi | --included | --include \
446   | --includ | --inclu | --incl | --inc)
447     ac_prev=includedir ;;
448   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449   | --includ=* | --inclu=* | --incl=* | --inc=*)
450     includedir=$ac_optarg ;;
451
452   -infodir | --infodir | --infodi | --infod | --info | --inf)
453     ac_prev=infodir ;;
454   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455     infodir=$ac_optarg ;;
456
457   -libdir | --libdir | --libdi | --libd)
458     ac_prev=libdir ;;
459   -libdir=* | --libdir=* | --libdi=* | --libd=*)
460     libdir=$ac_optarg ;;
461
462   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463   | --libexe | --libex | --libe)
464     ac_prev=libexecdir ;;
465   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466   | --libexe=* | --libex=* | --libe=*)
467     libexecdir=$ac_optarg ;;
468
469   -localstatedir | --localstatedir | --localstatedi | --localstated \
470   | --localstate | --localstat | --localsta | --localst \
471   | --locals | --local | --loca | --loc | --lo)
472     ac_prev=localstatedir ;;
473   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476     localstatedir=$ac_optarg ;;
477
478   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479     ac_prev=mandir ;;
480   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481     mandir=$ac_optarg ;;
482
483   -nfp | --nfp | --nf)
484     # Obsolete; use --without-fp.
485     with_fp=no ;;
486
487   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488   | --no-cr | --no-c | -n)
489     no_create=yes ;;
490
491   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493     no_recursion=yes ;;
494
495   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497   | --oldin | --oldi | --old | --ol | --o)
498     ac_prev=oldincludedir ;;
499   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502     oldincludedir=$ac_optarg ;;
503
504   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505     ac_prev=prefix ;;
506   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507     prefix=$ac_optarg ;;
508
509   -program-prefix | --program-prefix | --program-prefi | --program-pref \
510   | --program-pre | --program-pr | --program-p)
511     ac_prev=program_prefix ;;
512   -program-prefix=* | --program-prefix=* | --program-prefi=* \
513   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514     program_prefix=$ac_optarg ;;
515
516   -program-suffix | --program-suffix | --program-suffi | --program-suff \
517   | --program-suf | --program-su | --program-s)
518     ac_prev=program_suffix ;;
519   -program-suffix=* | --program-suffix=* | --program-suffi=* \
520   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521     program_suffix=$ac_optarg ;;
522
523   -program-transform-name | --program-transform-name \
524   | --program-transform-nam | --program-transform-na \
525   | --program-transform-n | --program-transform- \
526   | --program-transform | --program-transfor \
527   | --program-transfo | --program-transf \
528   | --program-trans | --program-tran \
529   | --progr-tra | --program-tr | --program-t)
530     ac_prev=program_transform_name ;;
531   -program-transform-name=* | --program-transform-name=* \
532   | --program-transform-nam=* | --program-transform-na=* \
533   | --program-transform-n=* | --program-transform-=* \
534   | --program-transform=* | --program-transfor=* \
535   | --program-transfo=* | --program-transf=* \
536   | --program-trans=* | --program-tran=* \
537   | --progr-tra=* | --program-tr=* | --program-t=*)
538     program_transform_name=$ac_optarg ;;
539
540   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541   | -silent | --silent | --silen | --sile | --sil)
542     silent=yes ;;
543
544   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545     ac_prev=sbindir ;;
546   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547   | --sbi=* | --sb=*)
548     sbindir=$ac_optarg ;;
549
550   -sharedstatedir | --sharedstatedir | --sharedstatedi \
551   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552   | --sharedst | --shareds | --shared | --share | --shar \
553   | --sha | --sh)
554     ac_prev=sharedstatedir ;;
555   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558   | --sha=* | --sh=*)
559     sharedstatedir=$ac_optarg ;;
560
561   -site | --site | --sit)
562     ac_prev=site ;;
563   -site=* | --site=* | --sit=*)
564     site=$ac_optarg ;;
565
566   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567     ac_prev=srcdir ;;
568   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569     srcdir=$ac_optarg ;;
570
571   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572   | --syscon | --sysco | --sysc | --sys | --sy)
573     ac_prev=sysconfdir ;;
574   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576     sysconfdir=$ac_optarg ;;
577
578   -target | --target | --targe | --targ | --tar | --ta | --t)
579     ac_prev=target_alias ;;
580   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581     target_alias=$ac_optarg ;;
582
583   -v | -verbose | --verbose | --verbos | --verbo | --verb)
584     verbose=yes ;;
585
586   -version | --version | --versio | --versi | --vers | -V)
587     ac_init_version=: ;;
588
589   -with-* | --with-*)
590     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591     # Reject names that are not valid shell variable names.
592     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593       { echo "$as_me: error: invalid package name: $ac_package" >&2
594    { (exit 1); exit 1; }; }
595     ac_package=`echo $ac_package| sed 's/-/_/g'`
596     case $ac_option in
597       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598       *) ac_optarg=yes ;;
599     esac
600     eval "with_$ac_package='$ac_optarg'" ;;
601
602   -without-* | --without-*)
603     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604     # Reject names that are not valid shell variable names.
605     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606       { echo "$as_me: error: invalid package name: $ac_package" >&2
607    { (exit 1); exit 1; }; }
608     ac_package=`echo $ac_package | sed 's/-/_/g'`
609     eval "with_$ac_package=no" ;;
610
611   --x)
612     # Obsolete; use --with-x.
613     with_x=yes ;;
614
615   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616   | --x-incl | --x-inc | --x-in | --x-i)
617     ac_prev=x_includes ;;
618   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620     x_includes=$ac_optarg ;;
621
622   -x-libraries | --x-libraries | --x-librarie | --x-librari \
623   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624     ac_prev=x_libraries ;;
625   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627     x_libraries=$ac_optarg ;;
628
629   -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631    { (exit 1); exit 1; }; }
632     ;;
633
634   *=*)
635     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636     # Reject names that are not valid shell variable names.
637     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639    { (exit 1); exit 1; }; }
640     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641     eval "$ac_envvar='$ac_optarg'"
642     export $ac_envvar ;;
643
644   *)
645     # FIXME: should be removed in autoconf 3.0.
646     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650     ;;
651
652   esac
653 done
654
655 if test -n "$ac_prev"; then
656   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657   { echo "$as_me: error: missing argument to $ac_option" >&2
658    { (exit 1); exit 1; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
664   eval ac_val=$`echo $ac_var`
665   case $ac_val in
666     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668    { (exit 1); exit 1; }; };;
669   esac
670 done
671
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674               localstatedir libdir includedir oldincludedir infodir mandir
675 do
676   eval ac_val=$`echo $ac_var`
677   case $ac_val in
678     [\\/$]* | ?:[\\/]* ) ;;
679     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680    { (exit 1); exit 1; }; };;
681   esac
682 done
683
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
690
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693   if test "x$build_alias" = x; then
694     cross_compiling=maybe
695     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696     If a cross compiler is detected then cross compile mode will be used." >&2
697   elif test "x$build_alias" != "x$host_alias"; then
698     cross_compiling=yes
699   fi
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710   ac_srcdir_defaulted=yes
711   # Try the directory containing this script, then its parent.
712   ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714          X"$0" : 'X\(//\)[^/]' \| \
715          X"$0" : 'X\(//\)$' \| \
716          X"$0" : 'X\(/\)' \| \
717          .     : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721           /^X\(\/\/\)$/{ s//\1/; q; }
722           /^X\(\/\).*/{ s//\1/; q; }
723           s/.*/./; q'`
724   srcdir=$ac_confdir
725   if test ! -r $srcdir/$ac_unique_file; then
726     srcdir=..
727   fi
728 else
729   ac_srcdir_defaulted=no
730 fi
731 if test ! -r $srcdir/$ac_unique_file; then
732   if test "$ac_srcdir_defaulted" = yes; then
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734    { (exit 1); exit 1; }; }
735   else
736     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737    { (exit 1); exit 1; }; }
738   fi
739 fi
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742    { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
776
777 #
778 # Report the --help message.
779 #
780 if test "$ac_init_help" = "long"; then
781   # Omit some internal or obsolete options to make the list less imposing.
782   # This message is too long to be a string in the A/UX 3.1 sh.
783   cat <<_ACEOF
784 \`configure' configures GNU coreutils 5.0.91 to adapt to many kinds of systems.
785
786 Usage: $0 [OPTION]... [VAR=VALUE]...
787
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE.  See below for descriptions of some of the useful variables.
790
791 Defaults for the options are specified in brackets.
792
793 Configuration:
794   -h, --help              display this help and exit
795       --help=short        display options specific to this package
796       --help=recursive    display the short help of all the included packages
797   -V, --version           display version information and exit
798   -q, --quiet, --silent   do not print \`checking...' messages
799       --cache-file=FILE   cache test results in FILE [disabled]
800   -C, --config-cache      alias for \`--cache-file=config.cache'
801   -n, --no-create         do not create output files
802       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
803
804 _ACEOF
805
806   cat <<_ACEOF
807 Installation directories:
808   --prefix=PREFIX         install architecture-independent files in PREFIX
809                           [$ac_default_prefix]
810   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
811                           [PREFIX]
812
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
817
818 For better control, use the options below.
819
820 Fine tuning of the installation directories:
821   --bindir=DIR           user executables [EPREFIX/bin]
822   --sbindir=DIR          system admin executables [EPREFIX/sbin]
823   --libexecdir=DIR       program executables [EPREFIX/libexec]
824   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
825   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
826   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
827   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
828   --libdir=DIR           object code libraries [EPREFIX/lib]
829   --includedir=DIR       C header files [PREFIX/include]
830   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
831   --infodir=DIR          info documentation [PREFIX/info]
832   --mandir=DIR           man documentation [PREFIX/man]
833 _ACEOF
834
835   cat <<\_ACEOF
836
837 Program names:
838   --program-prefix=PREFIX            prepend PREFIX to installed program names
839   --program-suffix=SUFFIX            append SUFFIX to installed program names
840   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
841
842 System types:
843   --build=BUILD     configure for building on BUILD [guessed]
844   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
845 _ACEOF
846 fi
847
848 if test -n "$ac_init_help"; then
849   case $ac_init_help in
850      short | recursive ) echo "Configuration of GNU coreutils 5.0.91:";;
851    esac
852   cat <<\_ACEOF
853
854 Optional Features:
855   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
856   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
857   --disable-dependency-tracking Speeds up one-time builds
858   --enable-dependency-tracking  Do not reject slow dependency extractors
859   --disable-largefile     omit support for large files
860   --disable-assert        turn off assertions
861   --disable-rpath         do not hardcode runtime library paths
862   --disable-nls           do not use Native Language Support
863
864 Optional Packages:
865   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
866   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
867   --without-included-regex don't compile regex; this is the default on
868                           systems with version 2 of the GNU C library
869                           (use with caution on other system)
870   --with-gnu-ld           assume the C compiler uses GNU ld default=no
871   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
872   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
873   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
874   --without-libintl-prefix     don't search for libintl in includedir and libdir
875
876 Some influential environment variables:
877   CC          C compiler command
878   CFLAGS      C compiler flags
879   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
880               nonstandard directory <lib dir>
881   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
882               headers in a nonstandard directory <include dir>
883   CPP         C preprocessor
884
885 Use these variables to override the choices made by `configure' or to help
886 it to find libraries and programs with nonstandard names/locations.
887
888 Report bugs to <bug-coreutils@gnu.org>.
889 _ACEOF
890 fi
891
892 if test "$ac_init_help" = "recursive"; then
893   # If there are subdirs, report their specific --help.
894   ac_popdir=`pwd`
895   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
896     test -d $ac_dir || continue
897     ac_builddir=.
898
899 if test "$ac_dir" != .; then
900   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
901   # A "../" for each directory in $ac_dir_suffix.
902   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
903 else
904   ac_dir_suffix= ac_top_builddir=
905 fi
906
907 case $srcdir in
908   .)  # No --srcdir option.  We are building in place.
909     ac_srcdir=.
910     if test -z "$ac_top_builddir"; then
911        ac_top_srcdir=.
912     else
913        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
914     fi ;;
915   [\\/]* | ?:[\\/]* )  # Absolute path.
916     ac_srcdir=$srcdir$ac_dir_suffix;
917     ac_top_srcdir=$srcdir ;;
918   *) # Relative path.
919     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920     ac_top_srcdir=$ac_top_builddir$srcdir ;;
921 esac
922 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
923 # absolute.
924 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
925 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
926 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
927 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
928
929     cd $ac_dir
930     # Check for guested configure; otherwise get Cygnus style configure.
931     if test -f $ac_srcdir/configure.gnu; then
932       echo
933       $SHELL $ac_srcdir/configure.gnu  --help=recursive
934     elif test -f $ac_srcdir/configure; then
935       echo
936       $SHELL $ac_srcdir/configure  --help=recursive
937     elif test -f $ac_srcdir/configure.ac ||
938            test -f $ac_srcdir/configure.in; then
939       echo
940       $ac_configure --help
941     else
942       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
943     fi
944     cd $ac_popdir
945   done
946 fi
947
948 test -n "$ac_init_help" && exit 0
949 if $ac_init_version; then
950   cat <<\_ACEOF
951 GNU coreutils configure 5.0.91
952 generated by GNU Autoconf 2.57b
953
954 Copyright (C) 2003 Free Software Foundation, Inc.
955 This configure script is free software; the Free Software Foundation
956 gives unlimited permission to copy, distribute and modify it.
957 _ACEOF
958   exit 0
959 fi
960 exec 5>config.log
961 cat >&5 <<_ACEOF
962 This file contains any messages produced by compilers while
963 running configure, to aid debugging if configure makes a mistake.
964
965 It was created by GNU coreutils $as_me 5.0.91, which was
966 generated by GNU Autoconf 2.57b.  Invocation command line was
967
968   $ $0 $@
969
970 _ACEOF
971 {
972 cat <<_ASUNAME
973 ## --------- ##
974 ## Platform. ##
975 ## --------- ##
976
977 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
978 uname -m = `(uname -m) 2>/dev/null || echo unknown`
979 uname -r = `(uname -r) 2>/dev/null || echo unknown`
980 uname -s = `(uname -s) 2>/dev/null || echo unknown`
981 uname -v = `(uname -v) 2>/dev/null || echo unknown`
982
983 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
984 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
985
986 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
987 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
988 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
989 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
990 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
991 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
992 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
993
994 _ASUNAME
995
996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
997 for as_dir in $PATH
998 do
999   IFS=$as_save_IFS
1000   test -z "$as_dir" && as_dir=.
1001   echo "PATH: $as_dir"
1002 done
1003
1004 } >&5
1005
1006 cat >&5 <<_ACEOF
1007
1008
1009 ## ----------- ##
1010 ## Core tests. ##
1011 ## ----------- ##
1012
1013 _ACEOF
1014
1015
1016 # Keep a trace of the command line.
1017 # Strip out --no-create and --no-recursion so they do not pile up.
1018 # Strip out --silent because we don't want to record it for future runs.
1019 # Also quote any args containing shell meta-characters.
1020 # Make two passes to allow for proper duplicate-argument suppression.
1021 ac_configure_args=
1022 ac_configure_args0=
1023 ac_configure_args1=
1024 ac_sep=
1025 ac_must_keep_next=false
1026 for ac_pass in 1 2
1027 do
1028   for ac_arg
1029   do
1030     case $ac_arg in
1031     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1032     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033     | -silent | --silent | --silen | --sile | --sil)
1034       continue ;;
1035     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1036       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037     esac
1038     case $ac_pass in
1039     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1040     2)
1041       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1042       if test $ac_must_keep_next = true; then
1043         ac_must_keep_next=false # Got value, back to normal.
1044       else
1045         case $ac_arg in
1046           *=* | --config-cache | -C | -disable-* | --disable-* \
1047           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1048           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1049           | -with-* | --with-* | -without-* | --without-* | --x)
1050             case "$ac_configure_args0 " in
1051               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1052             esac
1053             ;;
1054           -* ) ac_must_keep_next=true ;;
1055         esac
1056       fi
1057       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1058       # Get rid of the leading space.
1059       ac_sep=" "
1060       ;;
1061     esac
1062   done
1063 done
1064 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1065 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1066
1067 # When interrupted or exit'd, cleanup temporary files, and complete
1068 # config.log.  We remove comments because anyway the quotes in there
1069 # would cause problems or look ugly.
1070 # WARNING: Be sure not to use single quotes in there, as some shells,
1071 # such as our DU 5.0 friend, will then `close' the trap.
1072 trap 'exit_status=$?
1073   # Save into config.log some information that might help in debugging.
1074   {
1075     echo
1076
1077     cat <<\_ASBOX
1078 ## ---------------- ##
1079 ## Cache variables. ##
1080 ## ---------------- ##
1081 _ASBOX
1082     echo
1083     # The following way of writing the cache mishandles newlines in values,
1084 {
1085   (set) 2>&1 |
1086     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1087     *ac_space=\ *)
1088       sed -n \
1089         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1090           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1091       ;;
1092     *)
1093       sed -n \
1094         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1095       ;;
1096     esac;
1097 }
1098     echo
1099
1100     cat <<\_ASBOX
1101 ## ----------------- ##
1102 ## Output variables. ##
1103 ## ----------------- ##
1104 _ASBOX
1105     echo
1106     for ac_var in $ac_subst_vars
1107     do
1108       eval ac_val=$`echo $ac_var`
1109       echo "$ac_var='"'"'$ac_val'"'"'"
1110     done | sort
1111     echo
1112
1113     if test -n "$ac_subst_files"; then
1114       cat <<\_ASBOX
1115 ## ------------- ##
1116 ## Output files. ##
1117 ## ------------- ##
1118 _ASBOX
1119       echo
1120       for ac_var in $ac_subst_files
1121       do
1122         eval ac_val=$`echo $ac_var`
1123         echo "$ac_var='"'"'$ac_val'"'"'"
1124       done | sort
1125       echo
1126     fi
1127
1128     if test -s confdefs.h; then
1129       cat <<\_ASBOX
1130 ## ----------- ##
1131 ## confdefs.h. ##
1132 ## ----------- ##
1133 _ASBOX
1134       echo
1135       sed "/^$/d" confdefs.h | sort
1136       echo
1137     fi
1138     test "$ac_signal" != 0 &&
1139       echo "$as_me: caught signal $ac_signal"
1140     echo "$as_me: exit $exit_status"
1141   } >&5
1142   rm -f core core.* *.core &&
1143   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1144     exit $exit_status
1145      ' 0
1146 for ac_signal in 1 2 13 15; do
1147   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1148 done
1149 ac_signal=0
1150
1151 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1152 rm -rf conftest* confdefs.h
1153 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1154 echo >confdefs.h
1155
1156 # Predefined preprocessor variables.
1157
1158 cat >>confdefs.h <<_ACEOF
1159 #define PACKAGE_NAME "$PACKAGE_NAME"
1160 _ACEOF
1161
1162
1163 cat >>confdefs.h <<_ACEOF
1164 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1165 _ACEOF
1166
1167
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1170 _ACEOF
1171
1172
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_STRING "$PACKAGE_STRING"
1175 _ACEOF
1176
1177
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1180 _ACEOF
1181
1182
1183 # Let the site file select an alternate cache file if it wants to.
1184 # Prefer explicitly selected file to automatically selected ones.
1185 if test -z "$CONFIG_SITE"; then
1186   if test "x$prefix" != xNONE; then
1187     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1188   else
1189     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1190   fi
1191 fi
1192 for ac_site_file in $CONFIG_SITE; do
1193   if test -r "$ac_site_file"; then
1194     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1195 echo "$as_me: loading site script $ac_site_file" >&6;}
1196     sed 's/^/| /' "$ac_site_file" >&5
1197     . "$ac_site_file"
1198   fi
1199 done
1200
1201 if test -r "$cache_file"; then
1202   # Some versions of bash will fail to source /dev/null (special
1203   # files actually), so we avoid doing that.
1204   if test -f "$cache_file"; then
1205     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1206 echo "$as_me: loading cache $cache_file" >&6;}
1207     case $cache_file in
1208       [\\/]* | ?:[\\/]* ) . $cache_file;;
1209       *)                      . ./$cache_file;;
1210     esac
1211   fi
1212 else
1213   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1214 echo "$as_me: creating cache $cache_file" >&6;}
1215   >$cache_file
1216 fi
1217
1218 # Check that the precious variables saved in the cache have kept the same
1219 # value.
1220 ac_cache_corrupted=false
1221 for ac_var in `(set) 2>&1 |
1222                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1223   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1224   eval ac_new_set=\$ac_env_${ac_var}_set
1225   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1226   eval ac_new_val="\$ac_env_${ac_var}_value"
1227   case $ac_old_set,$ac_new_set in
1228     set,)
1229       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1230 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1231       ac_cache_corrupted=: ;;
1232     ,set)
1233       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1234 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1235       ac_cache_corrupted=: ;;
1236     ,);;
1237     *)
1238       if test "x$ac_old_val" != "x$ac_new_val"; then
1239         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1240 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1241         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1242 echo "$as_me:   former value:  $ac_old_val" >&2;}
1243         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1244 echo "$as_me:   current value: $ac_new_val" >&2;}
1245         ac_cache_corrupted=:
1246       fi;;
1247   esac
1248   # Pass precious variables to config.status.
1249   if test "$ac_new_set" = set; then
1250     case $ac_new_val in
1251     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1253     *) ac_arg=$ac_var=$ac_new_val ;;
1254     esac
1255     case " $ac_configure_args " in
1256       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1257       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1258     esac
1259   fi
1260 done
1261 if $ac_cache_corrupted; then
1262   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1263 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1264   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1265 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1266    { (exit 1); exit 1; }; }
1267 fi
1268
1269 ac_ext=c
1270 ac_cpp='$CPP $CPPFLAGS'
1271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1274
1275
1276 gl_header_list="$gl_header_list sys/time.h"
1277 gl_header_list="$gl_header_list utime.h"
1278 gl_header_list="$gl_header_list stdlib.h"
1279 gl_header_list="$gl_header_list string.h"
1280 gl_header_list="$gl_header_list fcntl.h"
1281 gl_header_list="$gl_header_list unistd.h"
1282 gl_header_list="$gl_header_list strings.h"
1283 gl_func_list="$gl_func_list isascii"
1284 gl_header_list="$gl_header_list sys/param.h"
1285 gl_header_list="$gl_header_list locale.h"
1286 gl_header_list="$gl_header_list limits.h"
1287 gl_header_list="$gl_header_list memory.h"
1288 gl_func_list="$gl_func_list setlocale"
1289 gl_func_list="$gl_func_list localeconv"
1290 gl_header_list="$gl_header_list wchar.h"
1291 gl_header_list="$gl_header_list wctype.h"
1292 gl_func_list="$gl_func_list iswprint"
1293 gl_func_list="$gl_func_list mbsinit"
1294 gl_header_list="$gl_header_list stddef.h"
1295 gl_func_list="$gl_func_list mempcpy"
1296 gl_func_list="$gl_func_list memcpy"
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324 ac_aux_dir=
1325 for ac_dir in config $srcdir/config; do
1326   if test -f $ac_dir/install-sh; then
1327     ac_aux_dir=$ac_dir
1328     ac_install_sh="$ac_aux_dir/install-sh -c"
1329     break
1330   elif test -f $ac_dir/install.sh; then
1331     ac_aux_dir=$ac_dir
1332     ac_install_sh="$ac_aux_dir/install.sh -c"
1333     break
1334   elif test -f $ac_dir/shtool; then
1335     ac_aux_dir=$ac_dir
1336     ac_install_sh="$ac_aux_dir/shtool install -c"
1337     break
1338   fi
1339 done
1340 if test -z "$ac_aux_dir"; then
1341   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1342 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1343    { (exit 1); exit 1; }; }
1344 fi
1345 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1346 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1347 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1348
1349           ac_config_headers="$ac_config_headers config.h:config.hin"
1350
1351 # Make sure we can run config.sub.
1352 $ac_config_sub sun4 >/dev/null 2>&1 ||
1353   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1354 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1355    { (exit 1); exit 1; }; }
1356
1357 echo "$as_me:$LINENO: checking build system type" >&5
1358 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1359 if test "${ac_cv_build+set}" = set; then
1360   echo $ECHO_N "(cached) $ECHO_C" >&6
1361 else
1362   ac_cv_build_alias=$build_alias
1363 test -z "$ac_cv_build_alias" &&
1364   ac_cv_build_alias=`$ac_config_guess`
1365 test -z "$ac_cv_build_alias" &&
1366   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1367 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1368    { (exit 1); exit 1; }; }
1369 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1370   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1371 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1372    { (exit 1); exit 1; }; }
1373
1374 fi
1375 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1376 echo "${ECHO_T}$ac_cv_build" >&6
1377 build=$ac_cv_build
1378 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1379 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1380 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1381
1382
1383 echo "$as_me:$LINENO: checking host system type" >&5
1384 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1385 if test "${ac_cv_host+set}" = set; then
1386   echo $ECHO_N "(cached) $ECHO_C" >&6
1387 else
1388   ac_cv_host_alias=$host_alias
1389 test -z "$ac_cv_host_alias" &&
1390   ac_cv_host_alias=$ac_cv_build_alias
1391 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1392   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1393 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1394    { (exit 1); exit 1; }; }
1395
1396 fi
1397 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1398 echo "${ECHO_T}$ac_cv_host" >&6
1399 host=$ac_cv_host
1400 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1403
1404
1405
1406 am__api_version="1.7"
1407 # Find a good install program.  We prefer a C program (faster),
1408 # so one script is as good as another.  But avoid the broken or
1409 # incompatible versions:
1410 # SysV /etc/install, /usr/sbin/install
1411 # SunOS /usr/etc/install
1412 # IRIX /sbin/install
1413 # AIX /bin/install
1414 # AmigaOS /C/install, which installs bootblocks on floppy discs
1415 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1416 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1417 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1418 # OS/2's system install, which has a completely different semantic
1419 # ./install, which can be erroneously created by make from ./install.sh.
1420 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1421 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1422 if test -z "$INSTALL"; then
1423 if test "${ac_cv_path_install+set}" = set; then
1424   echo $ECHO_N "(cached) $ECHO_C" >&6
1425 else
1426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1427 for as_dir in $PATH
1428 do
1429   IFS=$as_save_IFS
1430   test -z "$as_dir" && as_dir=.
1431   # Account for people who put trailing slashes in PATH elements.
1432 case $as_dir/ in
1433   ./ | .// | /cC/* | \
1434   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1435   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1436   /usr/ucb/* ) ;;
1437   *)
1438     # OSF1 and SCO ODT 3.0 have their own names for install.
1439     # Don't use installbsd from OSF since it installs stuff as root
1440     # by default.
1441     for ac_prog in ginstall scoinst install; do
1442       for ac_exec_ext in '' $ac_executable_extensions; do
1443         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1444           if test $ac_prog = install &&
1445             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1446             # AIX install.  It has an incompatible calling convention.
1447             :
1448           elif test $ac_prog = install &&
1449             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1450             # program-specific install script used by HP pwplus--don't use.
1451             :
1452           else
1453             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1454             break 3
1455           fi
1456         fi
1457       done
1458     done
1459     ;;
1460 esac
1461 done
1462
1463
1464 fi
1465   if test "${ac_cv_path_install+set}" = set; then
1466     INSTALL=$ac_cv_path_install
1467   else
1468     # As a last resort, use the slow shell script.  We don't cache a
1469     # path for INSTALL within a source directory, because that will
1470     # break other packages using the cache if that directory is
1471     # removed, or if the path is relative.
1472     INSTALL=$ac_install_sh
1473   fi
1474 fi
1475 echo "$as_me:$LINENO: result: $INSTALL" >&5
1476 echo "${ECHO_T}$INSTALL" >&6
1477
1478 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1479 # It thinks the first close brace ends the variable substitution.
1480 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1481
1482 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1483
1484 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1485
1486 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1487 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1488 # Just in case
1489 sleep 1
1490 echo timestamp > conftest.file
1491 # Do `set' in a subshell so we don't clobber the current shell's
1492 # arguments.  Must try -L first in case configure is actually a
1493 # symlink; some systems play weird games with the mod time of symlinks
1494 # (eg FreeBSD returns the mod time of the symlink's containing
1495 # directory).
1496 if (
1497    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1498    if test "$*" = "X"; then
1499       # -L didn't work.
1500       set X `ls -t $srcdir/configure conftest.file`
1501    fi
1502    rm -f conftest.file
1503    if test "$*" != "X $srcdir/configure conftest.file" \
1504       && test "$*" != "X conftest.file $srcdir/configure"; then
1505
1506       # If neither matched, then we have a broken ls.  This can happen
1507       # if, for instance, CONFIG_SHELL is bash and it inherits a
1508       # broken ls alias from the environment.  This has actually
1509       # happened.  Such a system could not be considered "sane".
1510       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1511 alias in your environment" >&5
1512 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1513 alias in your environment" >&2;}
1514    { (exit 1); exit 1; }; }
1515    fi
1516
1517    test "$2" = conftest.file
1518    )
1519 then
1520    # Ok.
1521    :
1522 else
1523    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1524 Check your system clock" >&5
1525 echo "$as_me: error: newly created file is older than distributed files!
1526 Check your system clock" >&2;}
1527    { (exit 1); exit 1; }; }
1528 fi
1529 echo "$as_me:$LINENO: result: yes" >&5
1530 echo "${ECHO_T}yes" >&6
1531 test "$program_prefix" != NONE &&
1532   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1533 # Use a double $ so make ignores it.
1534 test "$program_suffix" != NONE &&
1535   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1536 # Double any \ or $.  echo might interpret backslashes.
1537 # By default was `s,x,x', remove it if useless.
1538 cat <<\_ACEOF >conftest.sed
1539 s/[\\$]/&&/g;s/;s,x,x,$//
1540 _ACEOF
1541 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1542 rm conftest.sed
1543
1544
1545 # expand $ac_aux_dir to an absolute path
1546 am_aux_dir=`cd $ac_aux_dir && pwd`
1547
1548 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1549 # Use eval to expand $SHELL
1550 if eval "$MISSING --run true"; then
1551   am_missing_run="$MISSING --run "
1552 else
1553   am_missing_run=
1554   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1555 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1556 fi
1557
1558 for ac_prog in gawk mawk nawk awk
1559 do
1560   # Extract the first word of "$ac_prog", so it can be a program name with args.
1561 set dummy $ac_prog; ac_word=$2
1562 echo "$as_me:$LINENO: checking for $ac_word" >&5
1563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564 if test "${ac_cv_prog_AWK+set}" = set; then
1565   echo $ECHO_N "(cached) $ECHO_C" >&6
1566 else
1567   if test -n "$AWK"; then
1568   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1569 else
1570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1571 for as_dir in $PATH
1572 do
1573   IFS=$as_save_IFS
1574   test -z "$as_dir" && as_dir=.
1575   for ac_exec_ext in '' $ac_executable_extensions; do
1576   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1577     ac_cv_prog_AWK="$ac_prog"
1578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579     break 2
1580   fi
1581 done
1582 done
1583
1584 fi
1585 fi
1586 AWK=$ac_cv_prog_AWK
1587 if test -n "$AWK"; then
1588   echo "$as_me:$LINENO: result: $AWK" >&5
1589 echo "${ECHO_T}$AWK" >&6
1590 else
1591   echo "$as_me:$LINENO: result: no" >&5
1592 echo "${ECHO_T}no" >&6
1593 fi
1594
1595   test -n "$AWK" && break
1596 done
1597
1598 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1599 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1600 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1601 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1602   echo $ECHO_N "(cached) $ECHO_C" >&6
1603 else
1604   cat >conftest.make <<\_ACEOF
1605 all:
1606         @echo 'ac_maketemp="$(MAKE)"'
1607 _ACEOF
1608 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1609 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1610 if test -n "$ac_maketemp"; then
1611   eval ac_cv_prog_make_${ac_make}_set=yes
1612 else
1613   eval ac_cv_prog_make_${ac_make}_set=no
1614 fi
1615 rm -f conftest.make
1616 fi
1617 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1618   echo "$as_me:$LINENO: result: yes" >&5
1619 echo "${ECHO_T}yes" >&6
1620   SET_MAKE=
1621 else
1622   echo "$as_me:$LINENO: result: no" >&5
1623 echo "${ECHO_T}no" >&6
1624   SET_MAKE="MAKE=${MAKE-make}"
1625 fi
1626
1627 rm -rf .tst 2>/dev/null
1628 mkdir .tst 2>/dev/null
1629 if test -d .tst; then
1630   am__leading_dot=.
1631 else
1632   am__leading_dot=_
1633 fi
1634 rmdir .tst 2>/dev/null
1635
1636  # test to see if srcdir already configured
1637 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1638    test -f $srcdir/config.status; then
1639   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1640 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1641    { (exit 1); exit 1; }; }
1642 fi
1643
1644 # test whether we have cygpath
1645 if test -z "$CYGPATH_W"; then
1646   if (cygpath --version) >/dev/null 2>/dev/null; then
1647     CYGPATH_W='cygpath -w'
1648   else
1649     CYGPATH_W=echo
1650   fi
1651 fi
1652
1653
1654 # Define the identity of the package.
1655  PACKAGE='coreutils'
1656  VERSION='5.0.91'
1657
1658
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE "$PACKAGE"
1661 _ACEOF
1662
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define VERSION "$VERSION"
1666 _ACEOF
1667
1668 # Some tools Automake needs.
1669
1670 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1671
1672
1673 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1674
1675
1676 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1677
1678
1679 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1680
1681
1682 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1683
1684
1685 AMTAR=${AMTAR-"${am_missing_run}tar"}
1686
1687 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1688
1689 # Installed binaries are usually stripped using `strip' when the user
1690 # run `make install-strip'.  However `strip' might not be the right
1691 # tool to use in cross-compilation environments, therefore Automake
1692 # will honor the `STRIP' environment variable to overrule this program.
1693 if test "$cross_compiling" != no; then
1694   if test -n "$ac_tool_prefix"; then
1695   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1696 set dummy ${ac_tool_prefix}strip; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_STRIP+set}" = set; then
1700   echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702   if test -n "$STRIP"; then
1703   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1707 do
1708   IFS=$as_save_IFS
1709   test -z "$as_dir" && as_dir=.
1710   for ac_exec_ext in '' $ac_executable_extensions; do
1711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714     break 2
1715   fi
1716 done
1717 done
1718
1719 fi
1720 fi
1721 STRIP=$ac_cv_prog_STRIP
1722 if test -n "$STRIP"; then
1723   echo "$as_me:$LINENO: result: $STRIP" >&5
1724 echo "${ECHO_T}$STRIP" >&6
1725 else
1726   echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 fi
1729
1730 fi
1731 if test -z "$ac_cv_prog_STRIP"; then
1732   ac_ct_STRIP=$STRIP
1733   # Extract the first word of "strip", so it can be a program name with args.
1734 set dummy strip; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1738   echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740   if test -n "$ac_ct_STRIP"; then
1741   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1745 do
1746   IFS=$as_save_IFS
1747   test -z "$as_dir" && as_dir=.
1748   for ac_exec_ext in '' $ac_executable_extensions; do
1749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750     ac_cv_prog_ac_ct_STRIP="strip"
1751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752     break 2
1753   fi
1754 done
1755 done
1756
1757   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1758 fi
1759 fi
1760 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1761 if test -n "$ac_ct_STRIP"; then
1762   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1763 echo "${ECHO_T}$ac_ct_STRIP" >&6
1764 else
1765   echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1767 fi
1768
1769   STRIP=$ac_ct_STRIP
1770 else
1771   STRIP="$ac_cv_prog_STRIP"
1772 fi
1773
1774 fi
1775 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1776
1777 # We need awk for the "check" target.  The system "awk" is bad on
1778 # some platforms.
1779
1780
1781
1782
1783
1784 cat >>confdefs.h <<\_ACEOF
1785 #define _GNU_SOURCE 1
1786 _ACEOF
1787
1788
1789
1790
1791
1792
1793       cat >>confdefs.h <<\_ACEOF
1794 #define __EXTENSIONS__ 1
1795 _ACEOF
1796
1797
1798
1799       echo "$as_me:$LINENO: checking for perl5.003 or newer" >&5
1800 echo $ECHO_N "checking for perl5.003 or newer... $ECHO_C" >&6
1801   if test "${PERL+set}" = set; then
1802     # `PERL' is set in the user's environment.
1803     candidate_perl_names="$PERL"
1804     perl_specified=yes
1805   else
1806     candidate_perl_names='perl perl5'
1807     perl_specified=no
1808   fi
1809
1810   found=no
1811
1812   PERL="$am_missing_run perl"
1813   for perl in $candidate_perl_names; do
1814     # Run test in a subshell; some versions of sh will print an error if
1815     # an executable is not found, even if stderr is redirected.
1816     if ( $perl -e 'require 5.003; use File::Compare' ) > /dev/null 2>&1; then
1817       PERL=$perl
1818       found=yes
1819       break
1820     fi
1821   done
1822
1823   echo "$as_me:$LINENO: result: $found" >&5
1824 echo "${ECHO_T}$found" >&6
1825   test $found = no && { echo "$as_me:$LINENO: WARNING:
1826 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1827          a usable version of the Perl File::Compare module.  As a result,
1828          you may be unable to run a few tests or to regenerate certain
1829          files if you modify the sources from which they are derived.
1830  " >&5
1831 echo "$as_me: WARNING:
1832 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1833          a usable version of the Perl File::Compare module.  As a result,
1834          you may be unable to run a few tests or to regenerate certain
1835          files if you modify the sources from which they are derived.
1836  " >&2;}
1837
1838 ac_ext=c
1839 ac_cpp='$CPP $CPPFLAGS'
1840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1843 if test -n "$ac_tool_prefix"; then
1844   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1845 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1846 echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848 if test "${ac_cv_prog_CC+set}" = set; then
1849   echo $ECHO_N "(cached) $ECHO_C" >&6
1850 else
1851   if test -n "$CC"; then
1852   ac_cv_prog_CC="$CC" # Let the user override the test.
1853 else
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 for as_dir in $PATH
1856 do
1857   IFS=$as_save_IFS
1858   test -z "$as_dir" && as_dir=.
1859   for ac_exec_ext in '' $ac_executable_extensions; do
1860   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1861     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863     break 2
1864   fi
1865 done
1866 done
1867
1868 fi
1869 fi
1870 CC=$ac_cv_prog_CC
1871 if test -n "$CC"; then
1872   echo "$as_me:$LINENO: result: $CC" >&5
1873 echo "${ECHO_T}$CC" >&6
1874 else
1875   echo "$as_me:$LINENO: result: no" >&5
1876 echo "${ECHO_T}no" >&6
1877 fi
1878
1879 fi
1880 if test -z "$ac_cv_prog_CC"; then
1881   ac_ct_CC=$CC
1882   # Extract the first word of "gcc", so it can be a program name with args.
1883 set dummy gcc; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1887   echo $ECHO_N "(cached) $ECHO_C" >&6
1888 else
1889   if test -n "$ac_ct_CC"; then
1890   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1891 else
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 for as_dir in $PATH
1894 do
1895   IFS=$as_save_IFS
1896   test -z "$as_dir" && as_dir=.
1897   for ac_exec_ext in '' $ac_executable_extensions; do
1898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899     ac_cv_prog_ac_ct_CC="gcc"
1900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901     break 2
1902   fi
1903 done
1904 done
1905
1906 fi
1907 fi
1908 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1909 if test -n "$ac_ct_CC"; then
1910   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1911 echo "${ECHO_T}$ac_ct_CC" >&6
1912 else
1913   echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1915 fi
1916
1917   CC=$ac_ct_CC
1918 else
1919   CC="$ac_cv_prog_CC"
1920 fi
1921
1922 if test -z "$CC"; then
1923   if test -n "$ac_tool_prefix"; then
1924   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1925 set dummy ${ac_tool_prefix}cc; ac_word=$2
1926 echo "$as_me:$LINENO: checking for $ac_word" >&5
1927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928 if test "${ac_cv_prog_CC+set}" = set; then
1929   echo $ECHO_N "(cached) $ECHO_C" >&6
1930 else
1931   if test -n "$CC"; then
1932   ac_cv_prog_CC="$CC" # Let the user override the test.
1933 else
1934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935 for as_dir in $PATH
1936 do
1937   IFS=$as_save_IFS
1938   test -z "$as_dir" && as_dir=.
1939   for ac_exec_ext in '' $ac_executable_extensions; do
1940   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1941     ac_cv_prog_CC="${ac_tool_prefix}cc"
1942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943     break 2
1944   fi
1945 done
1946 done
1947
1948 fi
1949 fi
1950 CC=$ac_cv_prog_CC
1951 if test -n "$CC"; then
1952   echo "$as_me:$LINENO: result: $CC" >&5
1953 echo "${ECHO_T}$CC" >&6
1954 else
1955   echo "$as_me:$LINENO: result: no" >&5
1956 echo "${ECHO_T}no" >&6
1957 fi
1958
1959 fi
1960 if test -z "$ac_cv_prog_CC"; then
1961   ac_ct_CC=$CC
1962   # Extract the first word of "cc", so it can be a program name with args.
1963 set dummy cc; ac_word=$2
1964 echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1966 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1967   echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969   if test -n "$ac_ct_CC"; then
1970   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1971 else
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 for as_dir in $PATH
1974 do
1975   IFS=$as_save_IFS
1976   test -z "$as_dir" && as_dir=.
1977   for ac_exec_ext in '' $ac_executable_extensions; do
1978   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1979     ac_cv_prog_ac_ct_CC="cc"
1980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981     break 2
1982   fi
1983 done
1984 done
1985
1986 fi
1987 fi
1988 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1989 if test -n "$ac_ct_CC"; then
1990   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1991 echo "${ECHO_T}$ac_ct_CC" >&6
1992 else
1993   echo "$as_me:$LINENO: result: no" >&5
1994 echo "${ECHO_T}no" >&6
1995 fi
1996
1997   CC=$ac_ct_CC
1998 else
1999   CC="$ac_cv_prog_CC"
2000 fi
2001
2002 fi
2003 if test -z "$CC"; then
2004   # Extract the first word of "cc", so it can be a program name with args.
2005 set dummy cc; ac_word=$2
2006 echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008 if test "${ac_cv_prog_CC+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   if test -n "$CC"; then
2012   ac_cv_prog_CC="$CC" # Let the user override the test.
2013 else
2014   ac_prog_rejected=no
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 for as_dir in $PATH
2017 do
2018   IFS=$as_save_IFS
2019   test -z "$as_dir" && as_dir=.
2020   for ac_exec_ext in '' $ac_executable_extensions; do
2021   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2023        ac_prog_rejected=yes
2024        continue
2025      fi
2026     ac_cv_prog_CC="cc"
2027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028     break 2
2029   fi
2030 done
2031 done
2032
2033 if test $ac_prog_rejected = yes; then
2034   # We found a bogon in the path, so make sure we never use it.
2035   set dummy $ac_cv_prog_CC
2036   shift
2037   if test $# != 0; then
2038     # We chose a different compiler from the bogus one.
2039     # However, it has the same basename, so the bogon will be chosen
2040     # first if we set CC to just the basename; use the full file name.
2041     shift
2042     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2043   fi
2044 fi
2045 fi
2046 fi
2047 CC=$ac_cv_prog_CC
2048 if test -n "$CC"; then
2049   echo "$as_me:$LINENO: result: $CC" >&5
2050 echo "${ECHO_T}$CC" >&6
2051 else
2052   echo "$as_me:$LINENO: result: no" >&5
2053 echo "${ECHO_T}no" >&6
2054 fi
2055
2056 fi
2057 if test -z "$CC"; then
2058   if test -n "$ac_tool_prefix"; then
2059   for ac_prog in cl
2060   do
2061     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2063 echo "$as_me:$LINENO: checking for $ac_word" >&5
2064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2065 if test "${ac_cv_prog_CC+set}" = set; then
2066   echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068   if test -n "$CC"; then
2069   ac_cv_prog_CC="$CC" # Let the user override the test.
2070 else
2071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072 for as_dir in $PATH
2073 do
2074   IFS=$as_save_IFS
2075   test -z "$as_dir" && as_dir=.
2076   for ac_exec_ext in '' $ac_executable_extensions; do
2077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2078     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080     break 2
2081   fi
2082 done
2083 done
2084
2085 fi
2086 fi
2087 CC=$ac_cv_prog_CC
2088 if test -n "$CC"; then
2089   echo "$as_me:$LINENO: result: $CC" >&5
2090 echo "${ECHO_T}$CC" >&6
2091 else
2092   echo "$as_me:$LINENO: result: no" >&5
2093 echo "${ECHO_T}no" >&6
2094 fi
2095
2096     test -n "$CC" && break
2097   done
2098 fi
2099 if test -z "$CC"; then
2100   ac_ct_CC=$CC
2101   for ac_prog in cl
2102 do
2103   # Extract the first word of "$ac_prog", so it can be a program name with args.
2104 set dummy $ac_prog; ac_word=$2
2105 echo "$as_me:$LINENO: checking for $ac_word" >&5
2106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2107 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2108   echo $ECHO_N "(cached) $ECHO_C" >&6
2109 else
2110   if test -n "$ac_ct_CC"; then
2111   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2112 else
2113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 for as_dir in $PATH
2115 do
2116   IFS=$as_save_IFS
2117   test -z "$as_dir" && as_dir=.
2118   for ac_exec_ext in '' $ac_executable_extensions; do
2119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2120     ac_cv_prog_ac_ct_CC="$ac_prog"
2121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122     break 2
2123   fi
2124 done
2125 done
2126
2127 fi
2128 fi
2129 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2130 if test -n "$ac_ct_CC"; then
2131   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2132 echo "${ECHO_T}$ac_ct_CC" >&6
2133 else
2134   echo "$as_me:$LINENO: result: no" >&5
2135 echo "${ECHO_T}no" >&6
2136 fi
2137
2138   test -n "$ac_ct_CC" && break
2139 done
2140
2141   CC=$ac_ct_CC
2142 fi
2143
2144 fi
2145
2146
2147 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2148 See \`config.log' for more details." >&5
2149 echo "$as_me: error: no acceptable C compiler found in \$PATH
2150 See \`config.log' for more details." >&2;}
2151    { (exit 1); exit 1; }; }
2152
2153 # Provide some information about the compiler.
2154 echo "$as_me:$LINENO:" \
2155      "checking for C compiler version" >&5
2156 ac_compiler=`set X $ac_compile; echo $2`
2157 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2158   (eval $ac_compiler --version </dev/null >&5) 2>&5
2159   ac_status=$?
2160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161   (exit $ac_status); }
2162 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2163   (eval $ac_compiler -v </dev/null >&5) 2>&5
2164   ac_status=$?
2165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166   (exit $ac_status); }
2167 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2168   (eval $ac_compiler -V </dev/null >&5) 2>&5
2169   ac_status=$?
2170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171   (exit $ac_status); }
2172
2173 cat >conftest.$ac_ext <<_ACEOF
2174 /* confdefs.h.  */
2175 _ACEOF
2176 cat confdefs.h >>conftest.$ac_ext
2177 cat >>conftest.$ac_ext <<_ACEOF
2178 /* end confdefs.h.  */
2179
2180 int
2181 main ()
2182 {
2183
2184   ;
2185   return 0;
2186 }
2187 _ACEOF
2188 ac_clean_files_save=$ac_clean_files
2189 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2190 # Try to create an executable without -o first, disregard a.out.
2191 # It will help us diagnose broken compilers, and finding out an intuition
2192 # of exeext.
2193 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2194 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2195 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2196 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2197   (eval $ac_link_default) 2>&5
2198   ac_status=$?
2199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200   (exit $ac_status); }; then
2201   # Find the output, starting from the most likely.  This scheme is
2202 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2203 # resort.
2204
2205 # Be careful to initialize this variable, since it used to be cached.
2206 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2207 ac_cv_exeext=
2208 # b.out is created by i960 compilers.
2209 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2210 do
2211   test -f "$ac_file" || continue
2212   case $ac_file in
2213     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2214         ;;
2215     conftest.$ac_ext )
2216         # This is the source file.
2217         ;;
2218     [ab].out )
2219         # We found the default executable, but exeext='' is most
2220         # certainly right.
2221         break;;
2222     *.* )
2223         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2224         # FIXME: I believe we export ac_cv_exeext for Libtool,
2225         # but it would be cool to find out if it's true.  Does anybody
2226         # maintain Libtool? --akim.
2227         export ac_cv_exeext
2228         break;;
2229     * )
2230         break;;
2231   esac
2232 done
2233 else
2234   echo "$as_me: failed program was:" >&5
2235 sed 's/^/| /' conftest.$ac_ext >&5
2236
2237 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2238 See \`config.log' for more details." >&5
2239 echo "$as_me: error: C compiler cannot create executables
2240 See \`config.log' for more details." >&2;}
2241    { (exit 77); exit 77; }; }
2242 fi
2243
2244 ac_exeext=$ac_cv_exeext
2245 echo "$as_me:$LINENO: result: $ac_file" >&5
2246 echo "${ECHO_T}$ac_file" >&6
2247
2248 # Check the compiler produces executables we can run.  If not, either
2249 # the compiler is broken, or we cross compile.
2250 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2251 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2252 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2253 # If not cross compiling, check that we can run a simple program.
2254 if test "$cross_compiling" != yes; then
2255   if { ac_try='./$ac_file'
2256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257   (eval $ac_try) 2>&5
2258   ac_status=$?
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); }; }; then
2261     cross_compiling=no
2262   else
2263     if test "$cross_compiling" = maybe; then
2264         cross_compiling=yes
2265     else
2266         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2267 If you meant to cross compile, use \`--host'.
2268 See \`config.log' for more details." >&5
2269 echo "$as_me: error: cannot run C compiled programs.
2270 If you meant to cross compile, use \`--host'.
2271 See \`config.log' for more details." >&2;}
2272    { (exit 1); exit 1; }; }
2273     fi
2274   fi
2275 fi
2276 echo "$as_me:$LINENO: result: yes" >&5
2277 echo "${ECHO_T}yes" >&6
2278
2279 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2280 ac_clean_files=$ac_clean_files_save
2281 # Check the compiler produces executables we can run.  If not, either
2282 # the compiler is broken, or we cross compile.
2283 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2284 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2285 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2286 echo "${ECHO_T}$cross_compiling" >&6
2287
2288 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2289 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2291   (eval $ac_link) 2>&5
2292   ac_status=$?
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); }; then
2295   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2296 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2297 # work properly (i.e., refer to `conftest.exe'), while it won't with
2298 # `rm'.
2299 for ac_file in conftest.exe conftest conftest.*; do
2300   test -f "$ac_file" || continue
2301   case $ac_file in
2302     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2303     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2304           export ac_cv_exeext
2305           break;;
2306     * ) break;;
2307   esac
2308 done
2309 else
2310   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2311 See \`config.log' for more details." >&5
2312 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2313 See \`config.log' for more details." >&2;}
2314    { (exit 1); exit 1; }; }
2315 fi
2316
2317 rm -f conftest$ac_cv_exeext
2318 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2319 echo "${ECHO_T}$ac_cv_exeext" >&6
2320
2321 rm -f conftest.$ac_ext
2322 EXEEXT=$ac_cv_exeext
2323 ac_exeext=$EXEEXT
2324 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2325 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2326 if test "${ac_cv_objext+set}" = set; then
2327   echo $ECHO_N "(cached) $ECHO_C" >&6
2328 else
2329   cat >conftest.$ac_ext <<_ACEOF
2330 /* confdefs.h.  */
2331 _ACEOF
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h.  */
2335
2336 int
2337 main ()
2338 {
2339
2340   ;
2341   return 0;
2342 }
2343 _ACEOF
2344 rm -f conftest.o conftest.obj
2345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2346   (eval $ac_compile) 2>&5
2347   ac_status=$?
2348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349   (exit $ac_status); }; then
2350   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2351   case $ac_file in
2352     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2353     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2354        break;;
2355   esac
2356 done
2357 else
2358   echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.$ac_ext >&5
2360
2361 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2362 See \`config.log' for more details." >&5
2363 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2364 See \`config.log' for more details." >&2;}
2365    { (exit 1); exit 1; }; }
2366 fi
2367
2368 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2369 fi
2370 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2371 echo "${ECHO_T}$ac_cv_objext" >&6
2372 OBJEXT=$ac_cv_objext
2373 ac_objext=$OBJEXT
2374 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2375 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2376 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2377   echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379   cat >conftest.$ac_ext <<_ACEOF
2380 /* confdefs.h.  */
2381 _ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h.  */
2385
2386 int
2387 main ()
2388 {
2389 #ifndef __GNUC__
2390        choke me
2391 #endif
2392
2393   ;
2394   return 0;
2395 }
2396 _ACEOF
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399   (eval $ac_compile) 2>&5
2400   ac_status=$?
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); } &&
2403          { ac_try='test -s conftest.$ac_objext'
2404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405   (eval $ac_try) 2>&5
2406   ac_status=$?
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); }; }; then
2409   ac_compiler_gnu=yes
2410 else
2411   echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2413
2414 ac_compiler_gnu=no
2415 fi
2416 rm -f conftest.$ac_objext conftest.$ac_ext
2417 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2418
2419 fi
2420 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2421 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2422 GCC=`test $ac_compiler_gnu = yes && echo yes`
2423 ac_test_CFLAGS=${CFLAGS+set}
2424 ac_save_CFLAGS=$CFLAGS
2425 CFLAGS="-g"
2426 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2427 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2428 if test "${ac_cv_prog_cc_g+set}" = set; then
2429   echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431   cat >conftest.$ac_ext <<_ACEOF
2432 /* confdefs.h.  */
2433 _ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h.  */
2437
2438 int
2439 main ()
2440 {
2441
2442   ;
2443   return 0;
2444 }
2445 _ACEOF
2446 rm -f conftest.$ac_objext
2447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2448   (eval $ac_compile) 2>&5
2449   ac_status=$?
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); } &&
2452          { ac_try='test -s conftest.$ac_objext'
2453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454   (eval $ac_try) 2>&5
2455   ac_status=$?
2456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457   (exit $ac_status); }; }; then
2458   ac_cv_prog_cc_g=yes
2459 else
2460   echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2462
2463 ac_cv_prog_cc_g=no
2464 fi
2465 rm -f conftest.$ac_objext conftest.$ac_ext
2466 fi
2467 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2468 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2469 if test "$ac_test_CFLAGS" = set; then
2470   CFLAGS=$ac_save_CFLAGS
2471 elif test $ac_cv_prog_cc_g = yes; then
2472   if test "$GCC" = yes; then
2473     CFLAGS="-g -O2"
2474   else
2475     CFLAGS="-g"
2476   fi
2477 else
2478   if test "$GCC" = yes; then
2479     CFLAGS="-O2"
2480   else
2481     CFLAGS=
2482   fi
2483 fi
2484 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2485 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2486 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2487   echo $ECHO_N "(cached) $ECHO_C" >&6
2488 else
2489   ac_cv_prog_cc_stdc=no
2490 ac_save_CC=$CC
2491 cat >conftest.$ac_ext <<_ACEOF
2492 /* confdefs.h.  */
2493 _ACEOF
2494 cat confdefs.h >>conftest.$ac_ext
2495 cat >>conftest.$ac_ext <<_ACEOF
2496 /* end confdefs.h.  */
2497 #include <stdarg.h>
2498 #include <stdio.h>
2499 #include <sys/types.h>
2500 #include <sys/stat.h>
2501 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2502 struct buf { int x; };
2503 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2504 static char *e (p, i)
2505      char **p;
2506      int i;
2507 {
2508   return p[i];
2509 }
2510 static char *f (char * (*g) (char **, int), char **p, ...)
2511 {
2512   char *s;
2513   va_list v;
2514   va_start (v,p);
2515   s = g (p, va_arg (v,int));
2516   va_end (v);
2517   return s;
2518 }
2519
2520 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2521    function prototypes and stuff, but not '\xHH' hex character constants.
2522    These don't provoke an error unfortunately, instead are silently treated
2523    as 'x'.  The following induces an error, until -std1 is added to get
2524    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2525    array size at least.  It's necessary to write '\x00'==0 to get something
2526    that's true only with -std1.  */
2527 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2528
2529 int test (int i, double x);
2530 struct s1 {int (*f) (int a);};
2531 struct s2 {int (*f) (double a);};
2532 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2533 int argc;
2534 char **argv;
2535 int
2536 main ()
2537 {
2538 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2539   ;
2540   return 0;
2541 }
2542 _ACEOF
2543 # Don't try gcc -ansi; that turns off useful extensions and
2544 # breaks some systems' header files.
2545 # AIX                   -qlanglvl=ansi
2546 # Ultrix and OSF/1      -std1
2547 # HP-UX 10.20 and later -Ae
2548 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2549 # SVR4                  -Xc -D__EXTENSIONS__
2550 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2551 do
2552   CC="$ac_save_CC $ac_arg"
2553   rm -f conftest.$ac_objext
2554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555   (eval $ac_compile) 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); } &&
2559          { ac_try='test -s conftest.$ac_objext'
2560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561   (eval $ac_try) 2>&5
2562   ac_status=$?
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); }; }; then
2565   ac_cv_prog_cc_stdc=$ac_arg
2566 break
2567 else
2568   echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2570
2571 fi
2572 rm -f conftest.$ac_objext
2573 done
2574 rm -f conftest.$ac_ext conftest.$ac_objext
2575 CC=$ac_save_CC
2576
2577 fi
2578
2579 case "x$ac_cv_prog_cc_stdc" in
2580   x|xno)
2581     echo "$as_me:$LINENO: result: none needed" >&5
2582 echo "${ECHO_T}none needed" >&6 ;;
2583   *)
2584     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2585 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2586     CC="$CC $ac_cv_prog_cc_stdc" ;;
2587 esac
2588
2589 # Some people use a C++ compiler to compile C.  Since we use `exit',
2590 # in C++ we need to declare it.  In case someone uses the same compiler
2591 # for both compiling C and C++ we need to have the C++ compiler decide
2592 # the declaration of exit, since it's the most demanding environment.
2593 cat >conftest.$ac_ext <<_ACEOF
2594 #ifndef __cplusplus
2595   choke me
2596 #endif
2597 _ACEOF
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600   (eval $ac_compile) 2>&5
2601   ac_status=$?
2602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603   (exit $ac_status); } &&
2604          { ac_try='test -s conftest.$ac_objext'
2605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606   (eval $ac_try) 2>&5
2607   ac_status=$?
2608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609   (exit $ac_status); }; }; then
2610   for ac_declaration in \
2611    '' \
2612    'extern "C" void std::exit (int) throw (); using std::exit;' \
2613    'extern "C" void std::exit (int); using std::exit;' \
2614    'extern "C" void exit (int) throw ();' \
2615    'extern "C" void exit (int);' \
2616    'void exit (int);'
2617 do
2618   cat >conftest.$ac_ext <<_ACEOF
2619 /* confdefs.h.  */
2620 _ACEOF
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h.  */
2624 $ac_declaration
2625 #include <stdlib.h>
2626 int
2627 main ()
2628 {
2629 exit (42);
2630   ;
2631   return 0;
2632 }
2633 _ACEOF
2634 rm -f conftest.$ac_objext
2635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2636   (eval $ac_compile) 2>&5
2637   ac_status=$?
2638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639   (exit $ac_status); } &&
2640          { ac_try='test -s conftest.$ac_objext'
2641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642   (eval $ac_try) 2>&5
2643   ac_status=$?
2644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645   (exit $ac_status); }; }; then
2646   :
2647 else
2648   echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2650
2651 continue
2652 fi
2653 rm -f conftest.$ac_objext conftest.$ac_ext
2654   cat >conftest.$ac_ext <<_ACEOF
2655 /* confdefs.h.  */
2656 _ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h.  */
2660 $ac_declaration
2661 int
2662 main ()
2663 {
2664 exit (42);
2665   ;
2666   return 0;
2667 }
2668 _ACEOF
2669 rm -f conftest.$ac_objext
2670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2671   (eval $ac_compile) 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); } &&
2675          { ac_try='test -s conftest.$ac_objext'
2676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677   (eval $ac_try) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; }; then
2681   break
2682 else
2683   echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2685
2686 fi
2687 rm -f conftest.$ac_objext conftest.$ac_ext
2688 done
2689 rm -f conftest*
2690 if test -n "$ac_declaration"; then
2691   echo '#ifdef __cplusplus' >>confdefs.h
2692   echo $ac_declaration      >>confdefs.h
2693   echo '#endif'             >>confdefs.h
2694 fi
2695
2696 else
2697   echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2699
2700 fi
2701 rm -f conftest.$ac_objext conftest.$ac_ext
2702 ac_ext=c
2703 ac_cpp='$CPP $CPPFLAGS'
2704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2707 DEPDIR="${am__leading_dot}deps"
2708
2709           ac_config_commands="$ac_config_commands depfiles"
2710
2711
2712 am_make=${MAKE-make}
2713 cat > confinc << 'END'
2714 am__doit:
2715         @echo done
2716 .PHONY: am__doit
2717 END
2718 # If we don't find an include directive, just comment out the code.
2719 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2720 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2721 am__include="#"
2722 am__quote=
2723 _am_result=none
2724 # First try GNU make style include.
2725 echo "include confinc" > confmf
2726 # We grep out `Entering directory' and `Leaving directory'
2727 # messages which can occur if `w' ends up in MAKEFLAGS.
2728 # In particular we don't look at `^make:' because GNU make might
2729 # be invoked under some other name (usually "gmake"), in which
2730 # case it prints its new name instead of `make'.
2731 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2732    am__include=include
2733    am__quote=
2734    _am_result=GNU
2735 fi
2736 # Now try BSD make style include.
2737 if test "$am__include" = "#"; then
2738    echo '.include "confinc"' > confmf
2739    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2740       am__include=.include
2741       am__quote="\""
2742       _am_result=BSD
2743    fi
2744 fi
2745
2746
2747 echo "$as_me:$LINENO: result: $_am_result" >&5
2748 echo "${ECHO_T}$_am_result" >&6
2749 rm -f confinc confmf
2750
2751 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2752 if test "${enable_dependency_tracking+set}" = set; then
2753   enableval="$enable_dependency_tracking"
2754
2755 fi;
2756 if test "x$enable_dependency_tracking" != xno; then
2757   am_depcomp="$ac_aux_dir/depcomp"
2758   AMDEPBACKSLASH='\'
2759 fi
2760
2761
2762 if test "x$enable_dependency_tracking" != xno; then
2763   AMDEP_TRUE=
2764   AMDEP_FALSE='#'
2765 else
2766   AMDEP_TRUE='#'
2767   AMDEP_FALSE=
2768 fi
2769
2770
2771
2772
2773 depcc="$CC"   am_compiler_list=
2774
2775 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2776 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2777 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2778   echo $ECHO_N "(cached) $ECHO_C" >&6
2779 else
2780   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2781   # We make a subdir and do the tests there.  Otherwise we can end up
2782   # making bogus files that we don't know about and never remove.  For
2783   # instance it was reported that on HP-UX the gcc test will end up
2784   # making a dummy file named `D' -- because `-MD' means `put the output
2785   # in D'.
2786   mkdir conftest.dir
2787   # Copy depcomp to subdir because otherwise we won't find it if we're
2788   # using a relative directory.
2789   cp "$am_depcomp" conftest.dir
2790   cd conftest.dir
2791   # We will build objects and dependencies in a subdirectory because
2792   # it helps to detect inapplicable dependency modes.  For instance
2793   # both Tru64's cc and ICC support -MD to output dependencies as a
2794   # side effect of compilation, but ICC will put the dependencies in
2795   # the current directory while Tru64 will put them in the object
2796   # directory.
2797   mkdir sub
2798
2799   am_cv_CC_dependencies_compiler_type=none
2800   if test "$am_compiler_list" = ""; then
2801      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2802   fi
2803   for depmode in $am_compiler_list; do
2804     # Setup a source with many dependencies, because some compilers
2805     # like to wrap large dependency lists on column 80 (with \), and
2806     # we should not choose a depcomp mode which is confused by this.
2807     #
2808     # We need to recreate these files for each test, as the compiler may
2809     # overwrite some of them when testing with obscure command lines.
2810     # This happens at least with the AIX C compiler.
2811     : > sub/conftest.c
2812     for i in 1 2 3 4 5 6; do
2813       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2814       : > sub/conftst$i.h
2815     done
2816     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2817
2818     case $depmode in
2819     nosideeffect)
2820       # after this tag, mechanisms are not by side-effect, so they'll
2821       # only be used when explicitly requested
2822       if test "x$enable_dependency_tracking" = xyes; then
2823         continue
2824       else
2825         break
2826       fi
2827       ;;
2828     none) break ;;
2829     esac
2830     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2831     # mode.  It turns out that the SunPro C++ compiler does not properly
2832     # handle `-M -o', and we need to detect this.
2833     if depmode=$depmode \
2834        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2835        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2836        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2837          >/dev/null 2>conftest.err &&
2838        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2839        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2840        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2841       # icc doesn't choke on unknown options, it will just issue warnings
2842       # (even with -Werror).  So we grep stderr for any message
2843       # that says an option was ignored.
2844       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2845         am_cv_CC_dependencies_compiler_type=$depmode
2846         break
2847       fi
2848     fi
2849   done
2850
2851   cd ..
2852   rm -rf conftest.dir
2853 else
2854   am_cv_CC_dependencies_compiler_type=none
2855 fi
2856
2857 fi
2858 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2859 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2860 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2861
2862
2863
2864 if
2865   test "x$enable_dependency_tracking" != xno \
2866   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2867   am__fastdepCC_TRUE=
2868   am__fastdepCC_FALSE='#'
2869 else
2870   am__fastdepCC_TRUE='#'
2871   am__fastdepCC_FALSE=
2872 fi
2873
2874
2875 ac_ext=c
2876 ac_cpp='$CPP $CPPFLAGS'
2877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2880 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2881 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2882 # On Suns, sometimes $CPP names a directory.
2883 if test -n "$CPP" && test -d "$CPP"; then
2884   CPP=
2885 fi
2886 if test -z "$CPP"; then
2887   if test "${ac_cv_prog_CPP+set}" = set; then
2888   echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890       # Double quotes because CPP needs to be expanded
2891     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2892     do
2893       ac_preproc_ok=false
2894 for ac_c_preproc_warn_flag in '' yes
2895 do
2896   # Use a header file that comes with gcc, so configuring glibc
2897   # with a fresh cross-compiler works.
2898   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2899   # <limits.h> exists even on freestanding compilers.
2900   # On the NeXT, cc -E runs the code through the compiler's parser,
2901   # not just through cpp. "Syntax error" is here to catch this case.
2902   cat >conftest.$ac_ext <<_ACEOF
2903 /* confdefs.h.  */
2904 _ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h.  */
2908 #ifdef __STDC__
2909 # include <limits.h>
2910 #else
2911 # include <assert.h>
2912 #endif
2913                      Syntax error
2914 _ACEOF
2915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2916   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2917   ac_status=$?
2918   grep -v '^ *+' conftest.er1 >conftest.err
2919   rm -f conftest.er1
2920   cat conftest.err >&5
2921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922   (exit $ac_status); } >/dev/null; then
2923   if test -s conftest.err; then
2924     ac_cpp_err=$ac_c_preproc_warn_flag
2925   else
2926     ac_cpp_err=
2927   fi
2928 else
2929   ac_cpp_err=yes
2930 fi
2931 if test -z "$ac_cpp_err"; then
2932   :
2933 else
2934   echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2936
2937   # Broken: fails on valid input.
2938 continue
2939 fi
2940 rm -f conftest.err conftest.$ac_ext
2941
2942   # OK, works on sane cases.  Now check whether non-existent headers
2943   # can be detected and how.
2944   cat >conftest.$ac_ext <<_ACEOF
2945 /* confdefs.h.  */
2946 _ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h.  */
2950 #include <ac_nonexistent.h>
2951 _ACEOF
2952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2953   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2954   ac_status=$?
2955   grep -v '^ *+' conftest.er1 >conftest.err
2956   rm -f conftest.er1
2957   cat conftest.err >&5
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); } >/dev/null; then
2960   if test -s conftest.err; then
2961     ac_cpp_err=$ac_c_preproc_warn_flag
2962   else
2963     ac_cpp_err=
2964   fi
2965 else
2966   ac_cpp_err=yes
2967 fi
2968 if test -z "$ac_cpp_err"; then
2969   # Broken: success on invalid input.
2970 continue
2971 else
2972   echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2974
2975   # Passes both tests.
2976 ac_preproc_ok=:
2977 break
2978 fi
2979 rm -f conftest.err conftest.$ac_ext
2980
2981 done
2982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2983 rm -f conftest.err conftest.$ac_ext
2984 if $ac_preproc_ok; then
2985   break
2986 fi
2987
2988     done
2989     ac_cv_prog_CPP=$CPP
2990
2991 fi
2992   CPP=$ac_cv_prog_CPP
2993 else
2994   ac_cv_prog_CPP=$CPP
2995 fi
2996 echo "$as_me:$LINENO: result: $CPP" >&5
2997 echo "${ECHO_T}$CPP" >&6
2998 ac_preproc_ok=false
2999 for ac_c_preproc_warn_flag in '' yes
3000 do
3001   # Use a header file that comes with gcc, so configuring glibc
3002   # with a fresh cross-compiler works.
3003   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3004   # <limits.h> exists even on freestanding compilers.
3005   # On the NeXT, cc -E runs the code through the compiler's parser,
3006   # not just through cpp. "Syntax error" is here to catch this case.
3007   cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h.  */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h.  */
3013 #ifdef __STDC__
3014 # include <limits.h>
3015 #else
3016 # include <assert.h>
3017 #endif
3018                      Syntax error
3019 _ACEOF
3020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3021   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3022   ac_status=$?
3023   grep -v '^ *+' conftest.er1 >conftest.err
3024   rm -f conftest.er1
3025   cat conftest.err >&5
3026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027   (exit $ac_status); } >/dev/null; then
3028   if test -s conftest.err; then
3029     ac_cpp_err=$ac_c_preproc_warn_flag
3030   else
3031     ac_cpp_err=
3032   fi
3033 else
3034   ac_cpp_err=yes
3035 fi
3036 if test -z "$ac_cpp_err"; then
3037   :
3038 else
3039   echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3041
3042   # Broken: fails on valid input.
3043 continue
3044 fi
3045 rm -f conftest.err conftest.$ac_ext
3046
3047   # OK, works on sane cases.  Now check whether non-existent headers
3048   # can be detected and how.
3049   cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h.  */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h.  */
3055 #include <ac_nonexistent.h>
3056 _ACEOF
3057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3058   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3059   ac_status=$?
3060   grep -v '^ *+' conftest.er1 >conftest.err
3061   rm -f conftest.er1
3062   cat conftest.err >&5
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); } >/dev/null; then
3065   if test -s conftest.err; then
3066     ac_cpp_err=$ac_c_preproc_warn_flag
3067   else
3068     ac_cpp_err=
3069   fi
3070 else
3071   ac_cpp_err=yes
3072 fi
3073 if test -z "$ac_cpp_err"; then
3074   # Broken: success on invalid input.
3075 continue
3076 else
3077   echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3079
3080   # Passes both tests.
3081 ac_preproc_ok=:
3082 break
3083 fi
3084 rm -f conftest.err conftest.$ac_ext
3085
3086 done
3087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3088 rm -f conftest.err conftest.$ac_ext
3089 if $ac_preproc_ok; then
3090   :
3091 else
3092   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3093 See \`config.log' for more details." >&5
3094 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3095 See \`config.log' for more details." >&2;}
3096    { (exit 1); exit 1; }; }
3097 fi
3098
3099 ac_ext=c
3100 ac_cpp='$CPP $CPPFLAGS'
3101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104
3105
3106
3107 echo "$as_me:$LINENO: checking for egrep" >&5
3108 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3109 if test "${ac_cv_prog_egrep+set}" = set; then
3110   echo $ECHO_N "(cached) $ECHO_C" >&6
3111 else
3112   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3113     then ac_cv_prog_egrep='grep -E'
3114     else ac_cv_prog_egrep='egrep'
3115     fi
3116 fi
3117 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3118 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3119  EGREP=$ac_cv_prog_egrep
3120
3121
3122 if test $ac_cv_c_compiler_gnu = yes; then
3123     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3124 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3125 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3126   echo $ECHO_N "(cached) $ECHO_C" >&6
3127 else
3128     ac_pattern="Autoconf.*'x'"
3129   cat >conftest.$ac_ext <<_ACEOF
3130 /* confdefs.h.  */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h.  */
3135 #include <sgtty.h>
3136 Autoconf TIOCGETP
3137 _ACEOF
3138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3140   ac_cv_prog_gcc_traditional=yes
3141 else
3142   ac_cv_prog_gcc_traditional=no
3143 fi
3144 rm -f conftest*
3145
3146
3147   if test $ac_cv_prog_gcc_traditional = no; then
3148     cat >conftest.$ac_ext <<_ACEOF
3149 /* confdefs.h.  */
3150 _ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h.  */
3154 #include <termio.h>
3155 Autoconf TCGETA
3156 _ACEOF
3157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3158   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3159   ac_cv_prog_gcc_traditional=yes
3160 fi
3161 rm -f conftest*
3162
3163   fi
3164 fi
3165 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3166 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3167   if test $ac_cv_prog_gcc_traditional = yes; then
3168     CC="$CC -traditional"
3169   fi
3170 fi
3171
3172 if test -n "$ac_tool_prefix"; then
3173   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3174 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3175 echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3177 if test "${ac_cv_prog_RANLIB+set}" = set; then
3178   echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180   if test -n "$RANLIB"; then
3181   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186   IFS=$as_save_IFS
3187   test -z "$as_dir" && as_dir=.
3188   for ac_exec_ext in '' $ac_executable_extensions; do
3189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3192     break 2
3193   fi
3194 done
3195 done
3196
3197 fi
3198 fi
3199 RANLIB=$ac_cv_prog_RANLIB
3200 if test -n "$RANLIB"; then
3201   echo "$as_me:$LINENO: result: $RANLIB" >&5
3202 echo "${ECHO_T}$RANLIB" >&6
3203 else
3204   echo "$as_me:$LINENO: result: no" >&5
3205 echo "${ECHO_T}no" >&6
3206 fi
3207
3208 fi
3209 if test -z "$ac_cv_prog_RANLIB"; then
3210   ac_ct_RANLIB=$RANLIB
3211   # Extract the first word of "ranlib", so it can be a program name with args.
3212 set dummy ranlib; ac_word=$2
3213 echo "$as_me:$LINENO: checking for $ac_word" >&5
3214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3215 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3216   echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218   if test -n "$ac_ct_RANLIB"; then
3219   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3220 else
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3223 do
3224   IFS=$as_save_IFS
3225   test -z "$as_dir" && as_dir=.
3226   for ac_exec_ext in '' $ac_executable_extensions; do
3227   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228     ac_cv_prog_ac_ct_RANLIB="ranlib"
3229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3230     break 2
3231   fi
3232 done
3233 done
3234
3235   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3236 fi
3237 fi
3238 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3239 if test -n "$ac_ct_RANLIB"; then
3240   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3241 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3242 else
3243   echo "$as_me:$LINENO: result: no" >&5
3244 echo "${ECHO_T}no" >&6
3245 fi
3246
3247   RANLIB=$ac_ct_RANLIB
3248 else
3249   RANLIB="$ac_cv_prog_RANLIB"
3250 fi
3251
3252 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3253 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3254 LN_S=$as_ln_s
3255 if test "$LN_S" = "ln -s"; then
3256   echo "$as_me:$LINENO: result: yes" >&5
3257 echo "${ECHO_T}yes" >&6
3258 else
3259   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3260 echo "${ECHO_T}no, using $LN_S" >&6
3261 fi
3262
3263
3264 echo "$as_me:$LINENO: checking for AIX" >&5
3265 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3266 cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272 #ifdef _AIX
3273   yes
3274 #endif
3275
3276 _ACEOF
3277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3278   $EGREP "yes" >/dev/null 2>&1; then
3279   echo "$as_me:$LINENO: result: yes" >&5
3280 echo "${ECHO_T}yes" >&6
3281 cat >>confdefs.h <<\_ACEOF
3282 #define _ALL_SOURCE 1
3283 _ACEOF
3284
3285 else
3286   echo "$as_me:$LINENO: result: no" >&5
3287 echo "${ECHO_T}no" >&6
3288 fi
3289 rm -f conftest*
3290
3291
3292 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3293 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3294 if test "${ac_cv_header_stdc+set}" = set; then
3295   echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297   cat >conftest.$ac_ext <<_ACEOF
3298 /* confdefs.h.  */
3299 _ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h.  */
3303 #include <stdlib.h>
3304 #include <stdarg.h>
3305 #include <string.h>
3306 #include <float.h>
3307
3308 int
3309 main ()
3310 {
3311
3312   ;
3313   return 0;
3314 }
3315 _ACEOF
3316 rm -f conftest.$ac_objext
3317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3318   (eval $ac_compile) 2>&5
3319   ac_status=$?
3320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321   (exit $ac_status); } &&
3322          { ac_try='test -s conftest.$ac_objext'
3323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324   (eval $ac_try) 2>&5
3325   ac_status=$?
3326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327   (exit $ac_status); }; }; then
3328   ac_cv_header_stdc=yes
3329 else
3330   echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3332
3333 ac_cv_header_stdc=no
3334 fi
3335 rm -f conftest.$ac_objext conftest.$ac_ext
3336
3337 if test $ac_cv_header_stdc = yes; then
3338   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3339   cat >conftest.$ac_ext <<_ACEOF
3340 /* confdefs.h.  */
3341 _ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h.  */
3345 #include <string.h>
3346
3347 _ACEOF
3348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3349   $EGREP "memchr" >/dev/null 2>&1; then
3350   :
3351 else
3352   ac_cv_header_stdc=no
3353 fi
3354 rm -f conftest*
3355
3356 fi
3357
3358 if test $ac_cv_header_stdc = yes; then
3359   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3360   cat >conftest.$ac_ext <<_ACEOF
3361 /* confdefs.h.  */
3362 _ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h.  */
3366 #include <stdlib.h>
3367
3368 _ACEOF
3369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3370   $EGREP "free" >/dev/null 2>&1; then
3371   :
3372 else
3373   ac_cv_header_stdc=no
3374 fi
3375 rm -f conftest*
3376
3377 fi
3378
3379 if test $ac_cv_header_stdc = yes; then
3380   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3381   if test "$cross_compiling" = yes; then
3382   :
3383 else
3384   cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h.  */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h.  */
3390 #include <ctype.h>
3391 #if ((' ' & 0x0FF) == 0x020)
3392 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3393 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3394 #else
3395 # define ISLOWER(c) \
3396                    (('a' <= (c) && (c) <= 'i') \
3397                      || ('j' <= (c) && (c) <= 'r') \
3398                      || ('s' <= (c) && (c) <= 'z'))
3399 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3400 #endif
3401
3402 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3403 int
3404 main ()
3405 {
3406   int i;
3407   for (i = 0; i < 256; i++)
3408     if (XOR (islower (i), ISLOWER (i))
3409         || toupper (i) != TOUPPER (i))
3410       exit(2);
3411   exit (0);
3412 }
3413 _ACEOF
3414 rm -f conftest$ac_exeext
3415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3416   (eval $ac_link) 2>&5
3417   ac_status=$?
3418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421   (eval $ac_try) 2>&5
3422   ac_status=$?
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); }; }; then
3425   :
3426 else
3427   echo "$as_me: program exited with status $ac_status" >&5
3428 echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3430
3431 ( exit $ac_status )
3432 ac_cv_header_stdc=no
3433 fi
3434 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3435 fi
3436 fi
3437 fi
3438 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3439 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3440 if test $ac_cv_header_stdc = yes; then
3441
3442 cat >>confdefs.h <<\_ACEOF
3443 #define STDC_HEADERS 1
3444 _ACEOF
3445
3446 fi
3447
3448 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3459                   inttypes.h stdint.h unistd.h
3460 do
3461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3462 echo "$as_me:$LINENO: checking for $ac_header" >&5
3463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3465   echo $ECHO_N "(cached) $ECHO_C" >&6
3466 else
3467   cat >conftest.$ac_ext <<_ACEOF
3468 /* confdefs.h.  */
3469 _ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h.  */
3473 $ac_includes_default
3474
3475 #include <$ac_header>
3476 _ACEOF
3477 rm -f conftest.$ac_objext
3478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3479   (eval $ac_compile) 2>&5
3480   ac_status=$?
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); } &&
3483          { ac_try='test -s conftest.$ac_objext'
3484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485   (eval $ac_try) 2>&5
3486   ac_status=$?
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); }; }; then
3489   eval "$as_ac_Header=yes"
3490 else
3491   echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494 eval "$as_ac_Header=no"
3495 fi
3496 rm -f conftest.$ac_objext conftest.$ac_ext
3497 fi
3498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3501   cat >>confdefs.h <<_ACEOF
3502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3503 _ACEOF
3504
3505 fi
3506
3507 done
3508
3509
3510 if test "${ac_cv_header_minix_config_h+set}" = set; then
3511   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3512 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3513 if test "${ac_cv_header_minix_config_h+set}" = set; then
3514   echo $ECHO_N "(cached) $ECHO_C" >&6
3515 fi
3516 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3517 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3518 else
3519   # Is the header compilable?
3520 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3521 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3522 cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h.  */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h.  */
3528 $ac_includes_default
3529 #include <minix/config.h>
3530 _ACEOF
3531 rm -f conftest.$ac_objext
3532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3533   (eval $ac_compile) 2>&5
3534   ac_status=$?
3535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536   (exit $ac_status); } &&
3537          { ac_try='test -s conftest.$ac_objext'
3538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539   (eval $ac_try) 2>&5
3540   ac_status=$?
3541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542   (exit $ac_status); }; }; then
3543   ac_header_compiler=yes
3544 else
3545   echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3547
3548 ac_header_compiler=no
3549 fi
3550 rm -f conftest.$ac_objext conftest.$ac_ext
3551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3552 echo "${ECHO_T}$ac_header_compiler" >&6
3553
3554 # Is the header present?
3555 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3556 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3557 cat >conftest.$ac_ext <<_ACEOF
3558 /* confdefs.h.  */
3559 _ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h.  */
3563 #include <minix/config.h>
3564 _ACEOF
3565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3566   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3567   ac_status=$?
3568   grep -v '^ *+' conftest.er1 >conftest.err
3569   rm -f conftest.er1
3570   cat conftest.err >&5
3571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572   (exit $ac_status); } >/dev/null; then
3573   if test -s conftest.err; then
3574     ac_cpp_err=$ac_c_preproc_warn_flag
3575   else
3576     ac_cpp_err=
3577   fi
3578 else
3579   ac_cpp_err=yes
3580 fi
3581 if test -z "$ac_cpp_err"; then
3582   ac_header_preproc=yes
3583 else
3584   echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3586
3587   ac_header_preproc=no
3588 fi
3589 rm -f conftest.err conftest.$ac_ext
3590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3591 echo "${ECHO_T}$ac_header_preproc" >&6
3592
3593 # So?  What about this header?
3594 case $ac_header_compiler:$ac_header_preproc in
3595   yes:no )
3596     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3597 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3598     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3599 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3600     ac_header_preproc=yes
3601     ;;
3602   no:yes )
3603     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3604 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3605     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3606 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3607     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3608 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3609     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3610 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3611     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3612 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3613     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3614 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3615     (
3616       cat <<\_ASBOX
3617 ## ------------------------------------ ##
3618 ## Report this to bug-coreutils@gnu.org ##
3619 ## ------------------------------------ ##
3620 _ASBOX
3621     ) |
3622       sed "s/^/$as_me: WARNING:     /" >&2
3623     ;;
3624 esac
3625 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3626 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3627 if test "${ac_cv_header_minix_config_h+set}" = set; then
3628   echo $ECHO_N "(cached) $ECHO_C" >&6
3629 else
3630   ac_cv_header_minix_config_h=$ac_header_preproc
3631 fi
3632 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3633 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3634
3635 fi
3636 if test $ac_cv_header_minix_config_h = yes; then
3637   MINIX=yes
3638 else
3639   MINIX=
3640 fi
3641
3642
3643 if test "$MINIX" = yes; then
3644
3645 cat >>confdefs.h <<\_ACEOF
3646 #define _POSIX_SOURCE 1
3647 _ACEOF
3648
3649
3650 cat >>confdefs.h <<\_ACEOF
3651 #define _POSIX_1_SOURCE 2
3652 _ACEOF
3653
3654
3655 cat >>confdefs.h <<\_ACEOF
3656 #define _MINIX 1
3657 _ACEOF
3658
3659 fi
3660
3661
3662
3663 for ac_func in uname
3664 do
3665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3666 echo "$as_me:$LINENO: checking for $ac_func" >&5
3667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3668 if eval "test \"\${$as_ac_var+set}\" = set"; then
3669   echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671   cat >conftest.$ac_ext <<_ACEOF
3672 /* confdefs.h.  */
3673 _ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h.  */
3677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3679 #define $ac_func innocuous_$ac_func
3680
3681 /* System header to define __stub macros and hopefully few prototypes,
3682     which can conflict with char $ac_func (); below.
3683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3684     <limits.h> exists even on freestanding compilers.  */
3685
3686 #ifdef __STDC__
3687 # include <limits.h>
3688 #else
3689 # include <assert.h>
3690 #endif
3691
3692 #undef $ac_func
3693
3694 /* Override any gcc2 internal prototype to avoid an error.  */
3695 #ifdef __cplusplus
3696 extern "C"
3697 {
3698 #endif
3699 /* We use char because int might match the return type of a gcc2
3700    builtin and then its argument prototype would still apply.  */
3701 char $ac_func ();
3702 /* The GNU C library defines this for functions which it implements
3703     to always fail with ENOSYS.  Some functions are actually named
3704     something starting with __ and the normal name is an alias.  */
3705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3706 choke me
3707 #else
3708 char (*f) () = $ac_func;
3709 #endif
3710 #ifdef __cplusplus
3711 }
3712 #endif
3713
3714 int
3715 main ()
3716 {
3717 return f != $ac_func;
3718   ;
3719   return 0;
3720 }
3721 _ACEOF
3722 rm -f conftest.$ac_objext conftest$ac_exeext
3723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3724   (eval $ac_link) 2>&5
3725   ac_status=$?
3726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); } &&
3728          { ac_try='test -s conftest$ac_exeext'
3729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730   (eval $ac_try) 2>&5
3731   ac_status=$?
3732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733   (exit $ac_status); }; }; then
3734   eval "$as_ac_var=yes"
3735 else
3736   echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3738
3739 eval "$as_ac_var=no"
3740 fi
3741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3742 fi
3743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3745 if test `eval echo '${'$as_ac_var'}'` = yes; then
3746   cat >>confdefs.h <<_ACEOF
3747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3748 _ACEOF
3749  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uname\$(EXEEXT)"
3750         MAN="$MAN uname.1"
3751 fi
3752 done
3753
3754
3755 for ac_func in chroot
3756 do
3757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3758 echo "$as_me:$LINENO: checking for $ac_func" >&5
3759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3760 if eval "test \"\${$as_ac_var+set}\" = set"; then
3761   echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763   cat >conftest.$ac_ext <<_ACEOF
3764 /* confdefs.h.  */
3765 _ACEOF
3766 cat confdefs.h >>conftest.$ac_ext
3767 cat >>conftest.$ac_ext <<_ACEOF
3768 /* end confdefs.h.  */
3769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3771 #define $ac_func innocuous_$ac_func
3772
3773 /* System header to define __stub macros and hopefully few prototypes,
3774     which can conflict with char $ac_func (); below.
3775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3776     <limits.h> exists even on freestanding compilers.  */
3777
3778 #ifdef __STDC__
3779 # include <limits.h>
3780 #else
3781 # include <assert.h>
3782 #endif
3783
3784 #undef $ac_func
3785
3786 /* Override any gcc2 internal prototype to avoid an error.  */
3787 #ifdef __cplusplus
3788 extern "C"
3789 {
3790 #endif
3791 /* We use char because int might match the return type of a gcc2
3792    builtin and then its argument prototype would still apply.  */
3793 char $ac_func ();
3794 /* The GNU C library defines this for functions which it implements
3795     to always fail with ENOSYS.  Some functions are actually named
3796     something starting with __ and the normal name is an alias.  */
3797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3798 choke me
3799 #else
3800 char (*f) () = $ac_func;
3801 #endif
3802 #ifdef __cplusplus
3803 }
3804 #endif
3805
3806 int
3807 main ()
3808 {
3809 return f != $ac_func;
3810   ;
3811   return 0;
3812 }
3813 _ACEOF
3814 rm -f conftest.$ac_objext conftest$ac_exeext
3815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3816   (eval $ac_link) 2>&5
3817   ac_status=$?
3818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819   (exit $ac_status); } &&
3820          { ac_try='test -s conftest$ac_exeext'
3821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822   (eval $ac_try) 2>&5
3823   ac_status=$?
3824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825   (exit $ac_status); }; }; then
3826   eval "$as_ac_var=yes"
3827 else
3828   echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3830
3831 eval "$as_ac_var=no"
3832 fi
3833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3834 fi
3835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3837 if test `eval echo '${'$as_ac_var'}'` = yes; then
3838   cat >>confdefs.h <<_ACEOF
3839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3840 _ACEOF
3841  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS chroot\$(EXEEXT)"
3842         MAN="$MAN chroot.1"
3843 fi
3844 done
3845
3846
3847 for ac_func in gethostid
3848 do
3849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3850 echo "$as_me:$LINENO: checking for $ac_func" >&5
3851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3852 if eval "test \"\${$as_ac_var+set}\" = set"; then
3853   echo $ECHO_N "(cached) $ECHO_C" >&6
3854 else
3855   cat >conftest.$ac_ext <<_ACEOF
3856 /* confdefs.h.  */
3857 _ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h.  */
3861 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3862    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3863 #define $ac_func innocuous_$ac_func
3864
3865 /* System header to define __stub macros and hopefully few prototypes,
3866     which can conflict with char $ac_func (); below.
3867     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3868     <limits.h> exists even on freestanding compilers.  */
3869
3870 #ifdef __STDC__
3871 # include <limits.h>
3872 #else
3873 # include <assert.h>
3874 #endif
3875
3876 #undef $ac_func
3877
3878 /* Override any gcc2 internal prototype to avoid an error.  */
3879 #ifdef __cplusplus
3880 extern "C"
3881 {
3882 #endif
3883 /* We use char because int might match the return type of a gcc2
3884    builtin and then its argument prototype would still apply.  */
3885 char $ac_func ();
3886 /* The GNU C library defines this for functions which it implements
3887     to always fail with ENOSYS.  Some functions are actually named
3888     something starting with __ and the normal name is an alias.  */
3889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3890 choke me
3891 #else
3892 char (*f) () = $ac_func;
3893 #endif
3894 #ifdef __cplusplus
3895 }
3896 #endif
3897
3898 int
3899 main ()
3900 {
3901 return f != $ac_func;
3902   ;
3903   return 0;
3904 }
3905 _ACEOF
3906 rm -f conftest.$ac_objext conftest$ac_exeext
3907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3908   (eval $ac_link) 2>&5
3909   ac_status=$?
3910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911   (exit $ac_status); } &&
3912          { ac_try='test -s conftest$ac_exeext'
3913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914   (eval $ac_try) 2>&5
3915   ac_status=$?
3916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917   (exit $ac_status); }; }; then
3918   eval "$as_ac_var=yes"
3919 else
3920   echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3922
3923 eval "$as_ac_var=no"
3924 fi
3925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3926 fi
3927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3928 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3929 if test `eval echo '${'$as_ac_var'}'` = yes; then
3930   cat >>confdefs.h <<_ACEOF
3931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3932 _ACEOF
3933  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS hostid\$(EXEEXT)"
3934         MAN="$MAN hostid.1"
3935 fi
3936 done
3937
3938
3939
3940         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3941 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3942 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3943   echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945   ac_check_lib_save_LIBS=$LIBS
3946 LIBS="-lcposix  $LIBS"
3947 cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h.  */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h.  */
3953
3954 /* Override any gcc2 internal prototype to avoid an error.  */
3955 #ifdef __cplusplus
3956 extern "C"
3957 #endif
3958 /* We use char because int might match the return type of a gcc2
3959    builtin and then its argument prototype would still apply.  */
3960 char strerror ();
3961 int
3962 main ()
3963 {
3964 strerror ();
3965   ;
3966   return 0;
3967 }
3968 _ACEOF
3969 rm -f conftest.$ac_objext conftest$ac_exeext
3970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3971   (eval $ac_link) 2>&5
3972   ac_status=$?
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); } &&
3975          { ac_try='test -s conftest$ac_exeext'
3976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977   (eval $ac_try) 2>&5
3978   ac_status=$?
3979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980   (exit $ac_status); }; }; then
3981   ac_cv_lib_cposix_strerror=yes
3982 else
3983   echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3985
3986 ac_cv_lib_cposix_strerror=no
3987 fi
3988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3989 LIBS=$ac_check_lib_save_LIBS
3990 fi
3991 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3992 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3993 if test $ac_cv_lib_cposix_strerror = yes; then
3994   LIBS="$LIBS -lcposix"
3995 fi
3996
3997
3998
3999 # Check whether --enable-largefile or --disable-largefile was given.
4000 if test "${enable_largefile+set}" = set; then
4001   enableval="$enable_largefile"
4002
4003 fi;
4004 if test "$enable_largefile" != no; then
4005
4006   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4007 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4008 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4009   echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011   ac_cv_sys_largefile_CC=no
4012      if test "$GCC" != yes; then
4013        ac_save_CC=$CC
4014        while :; do
4015          # IRIX 6.2 and later do not support large files by default,
4016          # so use the C compiler's -n32 option if that helps.
4017          cat >conftest.$ac_ext <<_ACEOF
4018 /* confdefs.h.  */
4019 _ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h.  */
4023 #include <sys/types.h>
4024  /* Check that off_t can represent 2**63 - 1 correctly.
4025     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4026     since some C++ compilers masquerading as C compilers
4027     incorrectly reject 9223372036854775807.  */
4028 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4029   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4030                        && LARGE_OFF_T % 2147483647 == 1)
4031                       ? 1 : -1];
4032 int
4033 main ()
4034 {
4035
4036   ;
4037   return 0;
4038 }
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   break
4053 else
4054   echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4056
4057 fi
4058 rm -f conftest.$ac_objext
4059          CC="$CC -n32"
4060          rm -f conftest.$ac_objext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4062   (eval $ac_compile) 2>&5
4063   ac_status=$?
4064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065   (exit $ac_status); } &&
4066          { ac_try='test -s conftest.$ac_objext'
4067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068   (eval $ac_try) 2>&5
4069   ac_status=$?
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); }; }; then
4072   ac_cv_sys_largefile_CC=' -n32'; break
4073 else
4074   echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4076
4077 fi
4078 rm -f conftest.$ac_objext
4079          break
4080        done
4081        CC=$ac_save_CC
4082        rm -f conftest.$ac_ext
4083     fi
4084 fi
4085 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4086 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4087   if test "$ac_cv_sys_largefile_CC" != no; then
4088     CC=$CC$ac_cv_sys_largefile_CC
4089   fi
4090
4091   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4092 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4093 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4094   echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096   while :; do
4097   ac_cv_sys_file_offset_bits=no
4098   cat >conftest.$ac_ext <<_ACEOF
4099 /* confdefs.h.  */
4100 _ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h.  */
4104 #include <sys/types.h>
4105  /* Check that off_t can represent 2**63 - 1 correctly.
4106     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4107     since some C++ compilers masquerading as C compilers
4108     incorrectly reject 9223372036854775807.  */
4109 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4110   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4111                        && LARGE_OFF_T % 2147483647 == 1)
4112                       ? 1 : -1];
4113 int
4114 main ()
4115 {
4116
4117   ;
4118   return 0;
4119 }
4120 _ACEOF
4121 rm -f conftest.$ac_objext
4122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4123   (eval $ac_compile) 2>&5
4124   ac_status=$?
4125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126   (exit $ac_status); } &&
4127          { ac_try='test -s conftest.$ac_objext'
4128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129   (eval $ac_try) 2>&5
4130   ac_status=$?
4131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132   (exit $ac_status); }; }; then
4133   break
4134 else
4135   echo "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.$ac_ext >&5
4137
4138 fi
4139 rm -f conftest.$ac_objext conftest.$ac_ext
4140   cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h.  */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h.  */
4146 #define _FILE_OFFSET_BITS 64
4147 #include <sys/types.h>
4148  /* Check that off_t can represent 2**63 - 1 correctly.
4149     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4150     since some C++ compilers masquerading as C compilers
4151     incorrectly reject 9223372036854775807.  */
4152 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4153   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4154                        && LARGE_OFF_T % 2147483647 == 1)
4155                       ? 1 : -1];
4156 int
4157 main ()
4158 {
4159
4160   ;
4161   return 0;
4162 }
4163 _ACEOF
4164 rm -f conftest.$ac_objext
4165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4166   (eval $ac_compile) 2>&5
4167   ac_status=$?
4168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169   (exit $ac_status); } &&
4170          { ac_try='test -s conftest.$ac_objext'
4171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172   (eval $ac_try) 2>&5
4173   ac_status=$?
4174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175   (exit $ac_status); }; }; then
4176   ac_cv_sys_file_offset_bits=64; break
4177 else
4178   echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4180
4181 fi
4182 rm -f conftest.$ac_objext conftest.$ac_ext
4183   break
4184 done
4185 fi
4186 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4187 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4188 if test "$ac_cv_sys_file_offset_bits" != no; then
4189
4190 cat >>confdefs.h <<_ACEOF
4191 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4192 _ACEOF
4193
4194 fi
4195 rm -f conftest*
4196   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4197 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4198 if test "${ac_cv_sys_large_files+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   while :; do
4202   ac_cv_sys_large_files=no
4203   cat >conftest.$ac_ext <<_ACEOF
4204 /* confdefs.h.  */
4205 _ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h.  */
4209 #include <sys/types.h>
4210  /* Check that off_t can represent 2**63 - 1 correctly.
4211     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4212     since some C++ compilers masquerading as C compilers
4213     incorrectly reject 9223372036854775807.  */
4214 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4215   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4216                        && LARGE_OFF_T % 2147483647 == 1)
4217                       ? 1 : -1];
4218 int
4219 main ()
4220 {
4221
4222   ;
4223   return 0;
4224 }
4225 _ACEOF
4226 rm -f conftest.$ac_objext
4227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4228   (eval $ac_compile) 2>&5
4229   ac_status=$?
4230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231   (exit $ac_status); } &&
4232          { ac_try='test -s conftest.$ac_objext'
4233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234   (eval $ac_try) 2>&5
4235   ac_status=$?
4236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); }; }; then
4238   break
4239 else
4240   echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4242
4243 fi
4244 rm -f conftest.$ac_objext conftest.$ac_ext
4245   cat >conftest.$ac_ext <<_ACEOF
4246 /* confdefs.h.  */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h.  */
4251 #define _LARGE_FILES 1
4252 #include <sys/types.h>
4253  /* Check that off_t can represent 2**63 - 1 correctly.
4254     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4255     since some C++ compilers masquerading as C compilers
4256     incorrectly reject 9223372036854775807.  */
4257 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4258   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4259                        && LARGE_OFF_T % 2147483647 == 1)
4260                       ? 1 : -1];
4261 int
4262 main ()
4263 {
4264
4265   ;
4266   return 0;
4267 }
4268 _ACEOF
4269 rm -f conftest.$ac_objext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4271   (eval $ac_compile) 2>&5
4272   ac_status=$?
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); } &&
4275          { ac_try='test -s conftest.$ac_objext'
4276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277   (eval $ac_try) 2>&5
4278   ac_status=$?
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); }; }; then
4281   ac_cv_sys_large_files=1; break
4282 else
4283   echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4285
4286 fi
4287 rm -f conftest.$ac_objext conftest.$ac_ext
4288   break
4289 done
4290 fi
4291 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4292 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4293 if test "$ac_cv_sys_large_files" != no; then
4294
4295 cat >>confdefs.h <<_ACEOF
4296 #define _LARGE_FILES $ac_cv_sys_large_files
4297 _ACEOF
4298
4299 fi
4300 rm -f conftest*
4301 fi
4302
4303
4304
4305
4306 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4307 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
4308 if test "${am_cv_prog_cc_stdc+set}" = set; then
4309   echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311   am_cv_prog_cc_stdc=no
4312 ac_save_CC="$CC"
4313 # Don't try gcc -ansi; that turns off useful extensions and
4314 # breaks some systems' header files.
4315 # AIX                   -qlanglvl=ansi
4316 # Ultrix and OSF/1      -std1
4317 # HP-UX 10.20 and later -Ae
4318 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4319 # SVR4                  -Xc -D__EXTENSIONS__
4320 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4321 do
4322   CC="$ac_save_CC $ac_arg"
4323
4324 cat >conftest.$ac_ext <<_ACEOF
4325 /* confdefs.h.  */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h.  */
4330 #include <stdarg.h>
4331 #include <stdio.h>
4332 #include <sys/types.h>
4333 #include <sys/stat.h>
4334 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4335 struct buf { int x; };
4336 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4337 static char *e (p, i)
4338      char **p;
4339      int i;
4340 {
4341   return p[i];
4342 }
4343 static char *f (char * (*g) (char **, int), char **p, ...)
4344 {
4345   char *s;
4346   va_list v;
4347   va_start (v,p);
4348   s = g (p, va_arg (v,int));
4349   va_end (v);
4350   return s;
4351 }
4352 int test (int i, double x);
4353 struct s1 {int (*f) (int a);};
4354 struct s2 {int (*f) (double a);};
4355 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4356 int argc;
4357 char **argv;
4358
4359 int
4360 main ()
4361 {
4362
4363 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4364
4365   ;
4366   return 0;
4367 }
4368 _ACEOF
4369 rm -f conftest.$ac_objext
4370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4371   (eval $ac_compile) 2>&5
4372   ac_status=$?
4373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374   (exit $ac_status); } &&
4375          { ac_try='test -s conftest.$ac_objext'
4376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377   (eval $ac_try) 2>&5
4378   ac_status=$?
4379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380   (exit $ac_status); }; }; then
4381   am_cv_prog_cc_stdc="$ac_arg"; break
4382 else
4383   echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4385
4386 fi
4387 rm -f conftest.$ac_objext conftest.$ac_ext
4388 done
4389 CC="$ac_save_CC"
4390
4391 fi
4392
4393 if test -z "$am_cv_prog_cc_stdc"; then
4394   echo "$as_me:$LINENO: result: none needed" >&5
4395 echo "${ECHO_T}none needed" >&6
4396 else
4397   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4398 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
4399 fi
4400 case "x$am_cv_prog_cc_stdc" in
4401   x|xno) ;;
4402   *) CC="$CC $am_cv_prog_cc_stdc" ;;
4403 esac
4404
4405
4406
4407 echo "$as_me:$LINENO: checking for function prototypes" >&5
4408 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4409 if test "$am_cv_prog_cc_stdc" != no; then
4410   echo "$as_me:$LINENO: result: yes" >&5
4411 echo "${ECHO_T}yes" >&6
4412
4413 cat >>confdefs.h <<\_ACEOF
4414 #define PROTOTYPES 1
4415 _ACEOF
4416
4417   U= ANSI2KNR=
4418 else
4419   echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6
4421   U=_ ANSI2KNR=./ansi2knr
4422 fi
4423 # Ensure some checks needed by ansi2knr itself.
4424 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4425 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4426 if test "${ac_cv_header_stdc+set}" = set; then
4427   echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429   cat >conftest.$ac_ext <<_ACEOF
4430 /* confdefs.h.  */
4431 _ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h.  */
4435 #include <stdlib.h>
4436 #include <stdarg.h>
4437 #include <string.h>
4438 #include <float.h>
4439
4440 int
4441 main ()
4442 {
4443
4444   ;
4445   return 0;
4446 }
4447 _ACEOF
4448 rm -f conftest.$ac_objext
4449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450   (eval $ac_compile) 2>&5
4451   ac_status=$?
4452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453   (exit $ac_status); } &&
4454          { ac_try='test -s conftest.$ac_objext'
4455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456   (eval $ac_try) 2>&5
4457   ac_status=$?
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); }; }; then
4460   ac_cv_header_stdc=yes
4461 else
4462   echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4464
4465 ac_cv_header_stdc=no
4466 fi
4467 rm -f conftest.$ac_objext conftest.$ac_ext
4468
4469 if test $ac_cv_header_stdc = yes; then
4470   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4471   cat >conftest.$ac_ext <<_ACEOF
4472 /* confdefs.h.  */
4473 _ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h.  */
4477 #include <string.h>
4478
4479 _ACEOF
4480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4481   $EGREP "memchr" >/dev/null 2>&1; then
4482   :
4483 else
4484   ac_cv_header_stdc=no
4485 fi
4486 rm -f conftest*
4487
4488 fi
4489
4490 if test $ac_cv_header_stdc = yes; then
4491   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4492   cat >conftest.$ac_ext <<_ACEOF
4493 /* confdefs.h.  */
4494 _ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h.  */
4498 #include <stdlib.h>
4499
4500 _ACEOF
4501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4502   $EGREP "free" >/dev/null 2>&1; then
4503   :
4504 else
4505   ac_cv_header_stdc=no
4506 fi
4507 rm -f conftest*
4508
4509 fi
4510
4511 if test $ac_cv_header_stdc = yes; then
4512   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4513   if test "$cross_compiling" = yes; then
4514   :
4515 else
4516   cat >conftest.$ac_ext <<_ACEOF
4517 /* confdefs.h.  */
4518 _ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h.  */
4522 #include <ctype.h>
4523 #if ((' ' & 0x0FF) == 0x020)
4524 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4525 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4526 #else
4527 # define ISLOWER(c) \
4528                    (('a' <= (c) && (c) <= 'i') \
4529                      || ('j' <= (c) && (c) <= 'r') \
4530                      || ('s' <= (c) && (c) <= 'z'))
4531 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4532 #endif
4533
4534 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4535 int
4536 main ()
4537 {
4538   int i;
4539   for (i = 0; i < 256; i++)
4540     if (XOR (islower (i), ISLOWER (i))
4541         || toupper (i) != TOUPPER (i))
4542       exit(2);
4543   exit (0);
4544 }
4545 _ACEOF
4546 rm -f conftest$ac_exeext
4547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4548   (eval $ac_link) 2>&5
4549   ac_status=$?
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553   (eval $ac_try) 2>&5
4554   ac_status=$?
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); }; }; then
4557   :
4558 else
4559   echo "$as_me: program exited with status $ac_status" >&5
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4562
4563 ( exit $ac_status )
4564 ac_cv_header_stdc=no
4565 fi
4566 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4567 fi
4568 fi
4569 fi
4570 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4571 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4572 if test $ac_cv_header_stdc = yes; then
4573
4574 cat >>confdefs.h <<\_ACEOF
4575 #define STDC_HEADERS 1
4576 _ACEOF
4577
4578 fi
4579
4580
4581 for ac_header in string.h
4582 do
4583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4585   echo "$as_me:$LINENO: checking for $ac_header" >&5
4586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4588   echo $ECHO_N "(cached) $ECHO_C" >&6
4589 fi
4590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4592 else
4593   # Is the header compilable?
4594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4596 cat >conftest.$ac_ext <<_ACEOF
4597 /* confdefs.h.  */
4598 _ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h.  */
4602 $ac_includes_default
4603 #include <$ac_header>
4604 _ACEOF
4605 rm -f conftest.$ac_objext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607   (eval $ac_compile) 2>&5
4608   ac_status=$?
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } &&
4611          { ac_try='test -s conftest.$ac_objext'
4612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613   (eval $ac_try) 2>&5
4614   ac_status=$?
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); }; }; then
4617   ac_header_compiler=yes
4618 else
4619   echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4621
4622 ac_header_compiler=no
4623 fi
4624 rm -f conftest.$ac_objext conftest.$ac_ext
4625 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4626 echo "${ECHO_T}$ac_header_compiler" >&6
4627
4628 # Is the header present?
4629 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4631 cat >conftest.$ac_ext <<_ACEOF
4632 /* confdefs.h.  */
4633 _ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h.  */
4637 #include <$ac_header>
4638 _ACEOF
4639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4640   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4641   ac_status=$?
4642   grep -v '^ *+' conftest.er1 >conftest.err
4643   rm -f conftest.er1
4644   cat conftest.err >&5
4645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646   (exit $ac_status); } >/dev/null; then
4647   if test -s conftest.err; then
4648     ac_cpp_err=$ac_c_preproc_warn_flag
4649   else
4650     ac_cpp_err=
4651   fi
4652 else
4653   ac_cpp_err=yes
4654 fi
4655 if test -z "$ac_cpp_err"; then
4656   ac_header_preproc=yes
4657 else
4658   echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4660
4661   ac_header_preproc=no
4662 fi
4663 rm -f conftest.err conftest.$ac_ext
4664 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4665 echo "${ECHO_T}$ac_header_preproc" >&6
4666
4667 # So?  What about this header?
4668 case $ac_header_compiler:$ac_header_preproc in
4669   yes:no )
4670     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4672     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4673 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4674     ac_header_preproc=yes
4675     ;;
4676   no:yes )
4677     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4679     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4680 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4681     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4682 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4683     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4684 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4685     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4687     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4688 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4689     (
4690       cat <<\_ASBOX
4691 ## ------------------------------------ ##
4692 ## Report this to bug-coreutils@gnu.org ##
4693 ## ------------------------------------ ##
4694 _ASBOX
4695     ) |
4696       sed "s/^/$as_me: WARNING:     /" >&2
4697     ;;
4698 esac
4699 echo "$as_me:$LINENO: checking for $ac_header" >&5
4700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704   eval "$as_ac_Header=\$ac_header_preproc"
4705 fi
4706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4708
4709 fi
4710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4711   cat >>confdefs.h <<_ACEOF
4712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4713 _ACEOF
4714
4715 fi
4716
4717 done
4718
4719
4720 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4721 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4722 if test "${ac_cv_c_bigendian+set}" = set; then
4723   echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725   # See if sys/param.h defines the BYTE_ORDER macro.
4726 cat >conftest.$ac_ext <<_ACEOF
4727 /* confdefs.h.  */
4728 _ACEOF
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h.  */
4732 #include <sys/types.h>
4733 #include <sys/param.h>
4734
4735 int
4736 main ()
4737 {
4738 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4739  bogus endian macros
4740 #endif
4741
4742   ;
4743   return 0;
4744 }
4745 _ACEOF
4746 rm -f conftest.$ac_objext
4747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4748   (eval $ac_compile) 2>&5
4749   ac_status=$?
4750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751   (exit $ac_status); } &&
4752          { ac_try='test -s conftest.$ac_objext'
4753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754   (eval $ac_try) 2>&5
4755   ac_status=$?
4756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); }; }; then
4758   # It does; now see whether it defined to BIG_ENDIAN or not.
4759 cat >conftest.$ac_ext <<_ACEOF
4760 /* confdefs.h.  */
4761 _ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h.  */
4765 #include <sys/types.h>
4766 #include <sys/param.h>
4767
4768 int
4769 main ()
4770 {
4771 #if BYTE_ORDER != BIG_ENDIAN
4772  not big endian
4773 #endif
4774
4775   ;
4776   return 0;
4777 }
4778 _ACEOF
4779 rm -f conftest.$ac_objext
4780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4781   (eval $ac_compile) 2>&5
4782   ac_status=$?
4783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784   (exit $ac_status); } &&
4785          { ac_try='test -s conftest.$ac_objext'
4786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787   (eval $ac_try) 2>&5
4788   ac_status=$?
4789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790   (exit $ac_status); }; }; then
4791   ac_cv_c_bigendian=yes
4792 else
4793   echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4795
4796 ac_cv_c_bigendian=no
4797 fi
4798 rm -f conftest.$ac_objext conftest.$ac_ext
4799 else
4800   echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4802
4803 # It does not; compile a test program.
4804 if test "$cross_compiling" = yes; then
4805   # try to guess the endianness by grepping values into an object file
4806   ac_cv_c_bigendian=unknown
4807   cat >conftest.$ac_ext <<_ACEOF
4808 /* confdefs.h.  */
4809 _ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h.  */
4813 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4814 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4815 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4816 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4817 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4818 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4819 int
4820 main ()
4821 {
4822  _ascii (); _ebcdic ();
4823   ;
4824   return 0;
4825 }
4826 _ACEOF
4827 rm -f conftest.$ac_objext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829   (eval $ac_compile) 2>&5
4830   ac_status=$?
4831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832   (exit $ac_status); } &&
4833          { ac_try='test -s conftest.$ac_objext'
4834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835   (eval $ac_try) 2>&5
4836   ac_status=$?
4837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838   (exit $ac_status); }; }; then
4839   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4840   ac_cv_c_bigendian=yes
4841 fi
4842 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4843   if test "$ac_cv_c_bigendian" = unknown; then
4844     ac_cv_c_bigendian=no
4845   else
4846     # finding both strings is unlikely to happen, but who knows?
4847     ac_cv_c_bigendian=unknown
4848   fi
4849 fi
4850 else
4851   echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4853
4854 fi
4855 rm -f conftest.$ac_objext conftest.$ac_ext
4856 else
4857   cat >conftest.$ac_ext <<_ACEOF
4858 /* confdefs.h.  */
4859 _ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h.  */
4863 int
4864 main ()
4865 {
4866   /* Are we little or big endian?  From Harbison&Steele.  */
4867   union
4868   {
4869     long l;
4870     char c[sizeof (long)];
4871   } u;
4872   u.l = 1;
4873   exit (u.c[sizeof (long) - 1] == 1);
4874 }
4875 _ACEOF
4876 rm -f conftest$ac_exeext
4877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4878   (eval $ac_link) 2>&5
4879   ac_status=$?
4880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883   (eval $ac_try) 2>&5
4884   ac_status=$?
4885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886   (exit $ac_status); }; }; then
4887   ac_cv_c_bigendian=no
4888 else
4889   echo "$as_me: program exited with status $ac_status" >&5
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4892
4893 ( exit $ac_status )
4894 ac_cv_c_bigendian=yes
4895 fi
4896 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4897 fi
4898 fi
4899 rm -f conftest.$ac_objext conftest.$ac_ext
4900 fi
4901 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4902 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4903 case $ac_cv_c_bigendian in
4904   yes)
4905
4906 cat >>confdefs.h <<\_ACEOF
4907 #define WORDS_BIGENDIAN 1
4908 _ACEOF
4909  ;;
4910   no)
4911      ;;
4912   *)
4913     { { echo "$as_me:$LINENO: error: unknown endianness
4914 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4915 echo "$as_me: error: unknown endianness
4916 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4917    { (exit 1); exit 1; }; } ;;
4918 esac
4919
4920 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4921 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4922 if test "${ac_cv_c_const+set}" = set; then
4923   echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925   cat >conftest.$ac_ext <<_ACEOF
4926 /* confdefs.h.  */
4927 _ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h.  */
4931
4932 int
4933 main ()
4934 {
4935 /* FIXME: Include the comments suggested by Paul. */
4936 #ifndef __cplusplus
4937   /* Ultrix mips cc rejects this.  */
4938   typedef int charset[2];
4939   const charset x;
4940   /* SunOS 4.1.1 cc rejects this.  */
4941   char const *const *ccp;
4942   char **p;
4943   /* NEC SVR4.0.2 mips cc rejects this.  */
4944   struct point {int x, y;};
4945   static struct point const zero = {0,0};
4946   /* AIX XL C 1.02.0.0 rejects this.
4947      It does not let you subtract one const X* pointer from another in
4948      an arm of an if-expression whose if-part is not a constant
4949      expression */
4950   const char *g = "string";
4951   ccp = &g + (g ? g-g : 0);
4952   /* HPUX 7.0 cc rejects these. */
4953   ++ccp;
4954   p = (char**) ccp;
4955   ccp = (char const *const *) p;
4956   { /* SCO 3.2v4 cc rejects this.  */
4957     char *t;
4958     char const *s = 0 ? (char *) 0 : (char const *) 0;
4959
4960     *t++ = 0;
4961   }
4962   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4963     int x[] = {25, 17};
4964     const int *foo = &x[0];
4965     ++foo;
4966   }
4967   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4968     typedef const int *iptr;
4969     iptr p = 0;
4970     ++p;
4971   }
4972   { /* AIX XL C 1.02.0.0 rejects this saying
4973        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4974     struct s { int j; const int *ap[3]; };
4975     struct s *b; b->j = 5;
4976   }
4977   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4978     const int foo = 10;
4979   }
4980 #endif
4981
4982   ;
4983   return 0;
4984 }
4985 _ACEOF
4986 rm -f conftest.$ac_objext
4987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4988   (eval $ac_compile) 2>&5
4989   ac_status=$?
4990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991   (exit $ac_status); } &&
4992          { ac_try='test -s conftest.$ac_objext'
4993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994   (eval $ac_try) 2>&5
4995   ac_status=$?
4996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997   (exit $ac_status); }; }; then
4998   ac_cv_c_const=yes
4999 else
5000   echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5002
5003 ac_cv_c_const=no
5004 fi
5005 rm -f conftest.$ac_objext conftest.$ac_ext
5006 fi
5007 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5008 echo "${ECHO_T}$ac_cv_c_const" >&6
5009 if test $ac_cv_c_const = no; then
5010
5011 cat >>confdefs.h <<\_ACEOF
5012 #define const
5013 _ACEOF
5014
5015 fi
5016
5017 echo "$as_me:$LINENO: checking for working volatile" >&5
5018 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
5019 if test "${ac_cv_c_volatile+set}" = set; then
5020   echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022   cat >conftest.$ac_ext <<_ACEOF
5023 /* confdefs.h.  */
5024 _ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h.  */
5028
5029 int
5030 main ()
5031 {
5032
5033 volatile int x;
5034 int * volatile y;
5035   ;
5036   return 0;
5037 }
5038 _ACEOF
5039 rm -f conftest.$ac_objext
5040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5041   (eval $ac_compile) 2>&5
5042   ac_status=$?
5043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044   (exit $ac_status); } &&
5045          { ac_try='test -s conftest.$ac_objext'
5046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047   (eval $ac_try) 2>&5
5048   ac_status=$?
5049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050   (exit $ac_status); }; }; then
5051   ac_cv_c_volatile=yes
5052 else
5053   echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5055
5056 ac_cv_c_volatile=no
5057 fi
5058 rm -f conftest.$ac_objext conftest.$ac_ext
5059 fi
5060 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5061 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5062 if test $ac_cv_c_volatile = no; then
5063
5064 cat >>confdefs.h <<\_ACEOF
5065 #define volatile
5066 _ACEOF
5067
5068 fi
5069
5070 echo "$as_me:$LINENO: checking for inline" >&5
5071 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5072 if test "${ac_cv_c_inline+set}" = set; then
5073   echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075   ac_cv_c_inline=no
5076 for ac_kw in inline __inline__ __inline; do
5077   cat >conftest.$ac_ext <<_ACEOF
5078 /* confdefs.h.  */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h.  */
5083 #ifndef __cplusplus
5084 typedef int foo_t;
5085 static $ac_kw foo_t static_foo () {return 0; }
5086 $ac_kw foo_t foo () {return 0; }
5087 #endif
5088
5089 _ACEOF
5090 rm -f conftest.$ac_objext
5091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5092   (eval $ac_compile) 2>&5
5093   ac_status=$?
5094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095   (exit $ac_status); } &&
5096          { ac_try='test -s conftest.$ac_objext'
5097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098   (eval $ac_try) 2>&5
5099   ac_status=$?
5100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101   (exit $ac_status); }; }; then
5102   ac_cv_c_inline=$ac_kw; break
5103 else
5104   echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5106
5107 fi
5108 rm -f conftest.$ac_objext conftest.$ac_ext
5109 done
5110
5111 fi
5112 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5113 echo "${ECHO_T}$ac_cv_c_inline" >&6
5114
5115
5116 case $ac_cv_c_inline in
5117   inline | yes) ;;
5118   *)
5119     case $ac_cv_c_inline in
5120       no) ac_val=;;
5121       *) ac_val=$ac_cv_c_inline;;
5122     esac
5123     cat >>confdefs.h <<_ACEOF
5124 #ifndef __cplusplus
5125 #define inline $ac_val
5126 #endif
5127 _ACEOF
5128     ;;
5129 esac
5130
5131 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
5132 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
5133 if test "${ac_cv_c_long_double+set}" = set; then
5134   echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136   cat >conftest.$ac_ext <<_ACEOF
5137 /* confdefs.h.  */
5138 _ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h.  */
5142 #include <float.h>
5143           long double foo = 0.0;
5144 int
5145 main ()
5146 {
5147 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug.  */
5148           (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
5149           | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
5150 test_array [0] = 0
5151
5152   ;
5153   return 0;
5154 }
5155 _ACEOF
5156 rm -f conftest.$ac_objext
5157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5158   (eval $ac_compile) 2>&5
5159   ac_status=$?
5160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161   (exit $ac_status); } &&
5162          { ac_try='test -s conftest.$ac_objext'
5163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164   (eval $ac_try) 2>&5
5165   ac_status=$?
5166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167   (exit $ac_status); }; }; then
5168   ac_cv_c_long_double=yes
5169 else
5170   echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5172
5173 ac_cv_c_long_double=no
5174 fi
5175 rm -f conftest.$ac_objext conftest.$ac_ext
5176 fi
5177 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
5178 echo "${ECHO_T}$ac_cv_c_long_double" >&6
5179 if test $ac_cv_c_long_double = yes; then
5180
5181 cat >>confdefs.h <<\_ACEOF
5182 #define HAVE_LONG_DOUBLE 1
5183 _ACEOF
5184
5185 fi
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225 for ac_header in \
5226     errno.h  \
5227     fcntl.h \
5228     float.h \
5229     hurd.h \
5230     limits.h \
5231     memory.h \
5232     mntent.h \
5233     mnttab.h \
5234     netdb.h \
5235     paths.h \
5236     stdlib.h \
5237     stddef.h \
5238     stdint.h \
5239     string.h \
5240     sys/filsys.h \
5241     sys/fs/s5param.h \
5242     sys/fs_types.h \
5243     sys/fstyp.h \
5244     sys/ioctl.h \
5245     sys/mntent.h \
5246     sys/mount.h \
5247     sys/param.h \
5248     sys/resource.h \
5249     sys/socket.h \
5250     sys/statfs.h \
5251     sys/statvfs.h \
5252     sys/sysctl.h \
5253     sys/systeminfo.h \
5254     sys/time.h \
5255     sys/timeb.h \
5256     sys/vfs.h \
5257     sys/wait.h \
5258     syslog.h \
5259     termios.h \
5260     unistd.h \
5261     utime.h \
5262     values.h \
5263
5264 do
5265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5267   echo "$as_me:$LINENO: checking for $ac_header" >&5
5268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5270   echo $ECHO_N "(cached) $ECHO_C" >&6
5271 fi
5272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5274 else
5275   # Is the header compilable?
5276 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5278 cat >conftest.$ac_ext <<_ACEOF
5279 /* confdefs.h.  */
5280 _ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h.  */
5284 $ac_includes_default
5285 #include <$ac_header>
5286 _ACEOF
5287 rm -f conftest.$ac_objext
5288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5289   (eval $ac_compile) 2>&5
5290   ac_status=$?
5291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292   (exit $ac_status); } &&
5293          { ac_try='test -s conftest.$ac_objext'
5294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295   (eval $ac_try) 2>&5
5296   ac_status=$?
5297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298   (exit $ac_status); }; }; then
5299   ac_header_compiler=yes
5300 else
5301   echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.$ac_ext >&5
5303
5304 ac_header_compiler=no
5305 fi
5306 rm -f conftest.$ac_objext conftest.$ac_ext
5307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5308 echo "${ECHO_T}$ac_header_compiler" >&6
5309
5310 # Is the header present?
5311 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5313 cat >conftest.$ac_ext <<_ACEOF
5314 /* confdefs.h.  */
5315 _ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h.  */
5319 #include <$ac_header>
5320 _ACEOF
5321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5322   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5323   ac_status=$?
5324   grep -v '^ *+' conftest.er1 >conftest.err
5325   rm -f conftest.er1
5326   cat conftest.err >&5
5327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328   (exit $ac_status); } >/dev/null; then
5329   if test -s conftest.err; then
5330     ac_cpp_err=$ac_c_preproc_warn_flag
5331   else
5332     ac_cpp_err=
5333   fi
5334 else
5335   ac_cpp_err=yes
5336 fi
5337 if test -z "$ac_cpp_err"; then
5338   ac_header_preproc=yes
5339 else
5340   echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5342
5343   ac_header_preproc=no
5344 fi
5345 rm -f conftest.err conftest.$ac_ext
5346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5347 echo "${ECHO_T}$ac_header_preproc" >&6
5348
5349 # So?  What about this header?
5350 case $ac_header_compiler:$ac_header_preproc in
5351   yes:no )
5352     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5356     ac_header_preproc=yes
5357     ;;
5358   no:yes )
5359     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5361     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5362 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5363     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5365     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5366 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5367     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5369     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5371     (
5372       cat <<\_ASBOX
5373 ## ------------------------------------ ##
5374 ## Report this to bug-coreutils@gnu.org ##
5375 ## ------------------------------------ ##
5376 _ASBOX
5377     ) |
5378       sed "s/^/$as_me: WARNING:     /" >&2
5379     ;;
5380 esac
5381 echo "$as_me:$LINENO: checking for $ac_header" >&5
5382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5384   echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386   eval "$as_ac_Header=\$ac_header_preproc"
5387 fi
5388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5390
5391 fi
5392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5393   cat >>confdefs.h <<_ACEOF
5394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5395 _ACEOF
5396
5397 fi
5398
5399 done
5400
5401
5402
5403
5404
5405
5406
5407 ac_header_dirent=no
5408 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5409   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5410 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5411 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5413   echo $ECHO_N "(cached) $ECHO_C" >&6
5414 else
5415   cat >conftest.$ac_ext <<_ACEOF
5416 /* confdefs.h.  */
5417 _ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h.  */
5421 #include <sys/types.h>
5422 #include <$ac_hdr>
5423
5424 int
5425 main ()
5426 {
5427 if ((DIR *) 0)
5428 return 0;
5429   ;
5430   return 0;
5431 }
5432 _ACEOF
5433 rm -f conftest.$ac_objext
5434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5435   (eval $ac_compile) 2>&5
5436   ac_status=$?
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); } &&
5439          { ac_try='test -s conftest.$ac_objext'
5440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441   (eval $ac_try) 2>&5
5442   ac_status=$?
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); }; }; then
5445   eval "$as_ac_Header=yes"
5446 else
5447   echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5449
5450 eval "$as_ac_Header=no"
5451 fi
5452 rm -f conftest.$ac_objext conftest.$ac_ext
5453 fi
5454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5457   cat >>confdefs.h <<_ACEOF
5458 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5459 _ACEOF
5460
5461 ac_header_dirent=$ac_hdr; break
5462 fi
5463
5464 done
5465 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5466 if test $ac_header_dirent = dirent.h; then
5467
5468   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5469 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5470 if test "${ac_cv_search_opendir+set}" = set; then
5471   echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473
5474     ac_func_search_save_LIBS=$LIBS
5475     ac_cv_search_opendir=no
5476     cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h.  */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h.  */
5482
5483 /* Override any gcc2 internal prototype to avoid an error.  */
5484 #ifdef __cplusplus
5485 extern "C"
5486 #endif
5487 /* We use char because int might match the return type of a gcc2
5488    builtin and then its argument prototype would still apply.  */
5489 char opendir ();
5490 int
5491 main ()
5492 {
5493 opendir ();
5494   ;
5495   return 0;
5496 }
5497 _ACEOF
5498 rm -f conftest.$ac_objext conftest$ac_exeext
5499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5500   (eval $ac_link) 2>&5
5501   ac_status=$?
5502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503   (exit $ac_status); } &&
5504          { ac_try='test -s conftest$ac_exeext'
5505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506   (eval $ac_try) 2>&5
5507   ac_status=$?
5508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509   (exit $ac_status); }; }; then
5510   ac_cv_search_opendir='none required'
5511 else
5512   echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5514
5515 fi
5516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5517     if test "$ac_cv_search_opendir" = no; then
5518       for ac_lib in dir; do
5519         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5520         cat >conftest.$ac_ext <<_ACEOF
5521 /* confdefs.h.  */
5522 _ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h.  */
5526
5527 /* Override any gcc2 internal prototype to avoid an error.  */
5528 #ifdef __cplusplus
5529 extern "C"
5530 #endif
5531 /* We use char because int might match the return type of a gcc2
5532    builtin and then its argument prototype would still apply.  */
5533 char opendir ();
5534 int
5535 main ()
5536 {
5537 opendir ();
5538   ;
5539   return 0;
5540 }
5541 _ACEOF
5542 rm -f conftest.$ac_objext conftest$ac_exeext
5543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5544   (eval $ac_link) 2>&5
5545   ac_status=$?
5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547   (exit $ac_status); } &&
5548          { ac_try='test -s conftest$ac_exeext'
5549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550   (eval $ac_try) 2>&5
5551   ac_status=$?
5552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553   (exit $ac_status); }; }; then
5554   ac_cv_search_opendir="-l$ac_lib"; break
5555 else
5556   echo "$as_me: failed program was:" >&5
5557 sed 's/^/| /' conftest.$ac_ext >&5
5558
5559 fi
5560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5561       done
5562     fi
5563     LIBS=$ac_func_search_save_LIBS
5564
5565 fi
5566 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5567 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5568
5569   if test "$ac_cv_search_opendir" = no; then :
5570
5571   else
5572     if test "$ac_cv_search_opendir" = 'none required'; then :
5573
5574     else
5575       LIBS="$ac_cv_search_opendir $LIBS"
5576
5577     fi
5578   fi
5579
5580 else
5581
5582   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5583 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5584 if test "${ac_cv_search_opendir+set}" = set; then
5585   echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587
5588     ac_func_search_save_LIBS=$LIBS
5589     ac_cv_search_opendir=no
5590     cat >conftest.$ac_ext <<_ACEOF
5591 /* confdefs.h.  */
5592 _ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h.  */
5596
5597 /* Override any gcc2 internal prototype to avoid an error.  */
5598 #ifdef __cplusplus
5599 extern "C"
5600 #endif
5601 /* We use char because int might match the return type of a gcc2
5602    builtin and then its argument prototype would still apply.  */
5603 char opendir ();
5604 int
5605 main ()
5606 {
5607 opendir ();
5608   ;
5609   return 0;
5610 }
5611 _ACEOF
5612 rm -f conftest.$ac_objext conftest$ac_exeext
5613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5614   (eval $ac_link) 2>&5
5615   ac_status=$?
5616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617   (exit $ac_status); } &&
5618          { ac_try='test -s conftest$ac_exeext'
5619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620   (eval $ac_try) 2>&5
5621   ac_status=$?
5622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623   (exit $ac_status); }; }; then
5624   ac_cv_search_opendir='none required'
5625 else
5626   echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5628
5629 fi
5630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5631     if test "$ac_cv_search_opendir" = no; then
5632       for ac_lib in x; do
5633         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5634         cat >conftest.$ac_ext <<_ACEOF
5635 /* confdefs.h.  */
5636 _ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h.  */
5640
5641 /* Override any gcc2 internal prototype to avoid an error.  */
5642 #ifdef __cplusplus
5643 extern "C"
5644 #endif
5645 /* We use char because int might match the return type of a gcc2
5646    builtin and then its argument prototype would still apply.  */
5647 char opendir ();
5648 int
5649 main ()
5650 {
5651 opendir ();
5652   ;
5653   return 0;
5654 }
5655 _ACEOF
5656 rm -f conftest.$ac_objext conftest$ac_exeext
5657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5658   (eval $ac_link) 2>&5
5659   ac_status=$?
5660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661   (exit $ac_status); } &&
5662          { ac_try='test -s conftest$ac_exeext'
5663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664   (eval $ac_try) 2>&5
5665   ac_status=$?
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); }; }; then
5668   ac_cv_search_opendir="-l$ac_lib"; break
5669 else
5670   echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5672
5673 fi
5674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5675       done
5676     fi
5677     LIBS=$ac_func_search_save_LIBS
5678
5679 fi
5680 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5681 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5682
5683   if test "$ac_cv_search_opendir" = no; then :
5684
5685   else
5686     if test "$ac_cv_search_opendir" = 'none required'; then :
5687
5688     else
5689       LIBS="$ac_cv_search_opendir $LIBS"
5690
5691     fi
5692   fi
5693
5694 fi
5695
5696 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
5697 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
5698 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
5699   echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701   cat >conftest.$ac_ext <<_ACEOF
5702 /* confdefs.h.  */
5703 _ACEOF
5704 cat confdefs.h >>conftest.$ac_ext
5705 cat >>conftest.$ac_ext <<_ACEOF
5706 /* end confdefs.h.  */
5707 $ac_includes_default
5708 int
5709 main ()
5710 {
5711 static struct stat ac_aggr;
5712 if (ac_aggr.st_blocks)
5713 return 0;
5714   ;
5715   return 0;
5716 }
5717 _ACEOF
5718 rm -f conftest.$ac_objext
5719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5720   (eval $ac_compile) 2>&5
5721   ac_status=$?
5722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723   (exit $ac_status); } &&
5724          { ac_try='test -s conftest.$ac_objext'
5725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726   (eval $ac_try) 2>&5
5727   ac_status=$?
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); }; }; then
5730   ac_cv_member_struct_stat_st_blocks=yes
5731 else
5732   echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5734
5735 cat >conftest.$ac_ext <<_ACEOF
5736 /* confdefs.h.  */
5737 _ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h.  */
5741 $ac_includes_default
5742 int
5743 main ()
5744 {
5745 static struct stat ac_aggr;
5746 if (sizeof ac_aggr.st_blocks)
5747 return 0;
5748   ;
5749   return 0;
5750 }
5751 _ACEOF
5752 rm -f conftest.$ac_objext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5754   (eval $ac_compile) 2>&5
5755   ac_status=$?
5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); } &&
5758          { ac_try='test -s conftest.$ac_objext'
5759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760   (eval $ac_try) 2>&5
5761   ac_status=$?
5762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763   (exit $ac_status); }; }; then
5764   ac_cv_member_struct_stat_st_blocks=yes
5765 else
5766   echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5768
5769 ac_cv_member_struct_stat_st_blocks=no
5770 fi
5771 rm -f conftest.$ac_objext conftest.$ac_ext
5772 fi
5773 rm -f conftest.$ac_objext conftest.$ac_ext
5774 fi
5775 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
5776 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
5777 if test $ac_cv_member_struct_stat_st_blocks = yes; then
5778
5779 cat >>confdefs.h <<_ACEOF
5780 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5781 _ACEOF
5782
5783
5784 cat >>confdefs.h <<\_ACEOF
5785 #define HAVE_ST_BLOCKS 1
5786 _ACEOF
5787
5788 else
5789   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
5790 fi
5791
5792
5793 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5794 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5795 if test "${ac_cv_header_stat_broken+set}" = set; then
5796   echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798   cat >conftest.$ac_ext <<_ACEOF
5799 /* confdefs.h.  */
5800 _ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h.  */
5804 #include <sys/types.h>
5805 #include <sys/stat.h>
5806
5807 #if defined(S_ISBLK) && defined(S_IFDIR)
5808 # if S_ISBLK (S_IFDIR)
5809 You lose.
5810 # endif
5811 #endif
5812
5813 #if defined(S_ISBLK) && defined(S_IFCHR)
5814 # if S_ISBLK (S_IFCHR)
5815 You lose.
5816 # endif
5817 #endif
5818
5819 #if defined(S_ISLNK) && defined(S_IFREG)
5820 # if S_ISLNK (S_IFREG)
5821 You lose.
5822 # endif
5823 #endif
5824
5825 #if defined(S_ISSOCK) && defined(S_IFREG)
5826 # if S_ISSOCK (S_IFREG)
5827 You lose.
5828 # endif
5829 #endif
5830
5831 _ACEOF
5832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5833   $EGREP "You lose" >/dev/null 2>&1; then
5834   ac_cv_header_stat_broken=yes
5835 else
5836   ac_cv_header_stat_broken=no
5837 fi
5838 rm -f conftest*
5839
5840 fi
5841 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5842 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5843 if test $ac_cv_header_stat_broken = yes; then
5844
5845 cat >>confdefs.h <<\_ACEOF
5846 #define STAT_MACROS_BROKEN 1
5847 _ACEOF
5848
5849 fi
5850
5851 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
5852 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
5853 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
5854   echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856   ac_save_CPPFLAGS="$CPPFLAGS"
5857     ac_cv_struct_st_mtim_nsec=no
5858     # tv_nsec -- the usual case
5859     # _tv_nsec -- Solaris 2.6, if
5860     #   (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
5861     #    && !defined __EXTENSIONS__)
5862     # st__tim.tv_nsec -- UnixWare 2.1.2
5863     for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
5864       CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
5865
5866 cat >conftest.$ac_ext <<_ACEOF
5867 /* confdefs.h.  */
5868 _ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h.  */
5872 #include <sys/types.h>
5873 #include <sys/stat.h>
5874 int
5875 main ()
5876 {
5877 struct stat s; s.st_mtim.ST_MTIM_NSEC;
5878   ;
5879   return 0;
5880 }
5881 _ACEOF
5882 rm -f conftest.$ac_objext
5883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5884   (eval $ac_compile) 2>&5
5885   ac_status=$?
5886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887   (exit $ac_status); } &&
5888          { ac_try='test -s conftest.$ac_objext'
5889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890   (eval $ac_try) 2>&5
5891   ac_status=$?
5892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893   (exit $ac_status); }; }; then
5894   ac_cv_struct_st_mtim_nsec=$ac_val; break
5895 else
5896   echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5898
5899 fi
5900 rm -f conftest.$ac_objext conftest.$ac_ext
5901     done
5902     CPPFLAGS="$ac_save_CPPFLAGS"
5903 fi
5904 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
5905 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
5906
5907   if test $ac_cv_struct_st_mtim_nsec != no; then
5908
5909 cat >>confdefs.h <<_ACEOF
5910 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
5911 _ACEOF
5912
5913   fi
5914
5915
5916 echo "$as_me:$LINENO: checking for st_dm_mode in struct stat" >&5
5917 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6
5918 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
5919   echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921
5922 cat >conftest.$ac_ext <<_ACEOF
5923 /* confdefs.h.  */
5924 _ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h.  */
5928 #include <sys/types.h>
5929 #include <sys/stat.h>
5930 int
5931 main ()
5932 {
5933 struct stat s; s.st_dm_mode;
5934   ;
5935   return 0;
5936 }
5937 _ACEOF
5938 rm -f conftest.$ac_objext
5939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5940   (eval $ac_compile) 2>&5
5941   ac_status=$?
5942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943   (exit $ac_status); } &&
5944          { ac_try='test -s conftest.$ac_objext'
5945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946   (eval $ac_try) 2>&5
5947   ac_status=$?
5948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949   (exit $ac_status); }; }; then
5950   ac_cv_struct_st_dm_mode=yes
5951 else
5952   echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5954
5955 ac_cv_struct_st_dm_mode=no
5956 fi
5957 rm -f conftest.$ac_objext conftest.$ac_ext
5958 fi
5959 echo "$as_me:$LINENO: result: $ac_cv_struct_st_dm_mode" >&5
5960 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6
5961
5962   if test $ac_cv_struct_st_dm_mode = yes; then
5963
5964 cat >>confdefs.h <<\_ACEOF
5965 #define HAVE_ST_DM_MODE 1
5966 _ACEOF
5967
5968   fi
5969
5970
5971 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5972 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5973 if test "${ac_cv_type_uid_t+set}" = set; then
5974   echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976   cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h.  */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h.  */
5982 #include <sys/types.h>
5983
5984 _ACEOF
5985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5986   $EGREP "uid_t" >/dev/null 2>&1; then
5987   ac_cv_type_uid_t=yes
5988 else
5989   ac_cv_type_uid_t=no
5990 fi
5991 rm -f conftest*
5992
5993 fi
5994 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5995 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5996 if test $ac_cv_type_uid_t = no; then
5997
5998 cat >>confdefs.h <<\_ACEOF
5999 #define uid_t int
6000 _ACEOF
6001
6002
6003 cat >>confdefs.h <<\_ACEOF
6004 #define gid_t int
6005 _ACEOF
6006
6007 fi
6008
6009 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6010 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6011 if test "${ac_cv_type_getgroups+set}" = set; then
6012   echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014   if test "$cross_compiling" = yes; then
6015   ac_cv_type_getgroups=cross
6016 else
6017   cat >conftest.$ac_ext <<_ACEOF
6018 /* confdefs.h.  */
6019 _ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h.  */
6023 /* Thanks to Mike Rendell for this test.  */
6024 #include <sys/types.h>
6025 #define NGID 256
6026 #undef MAX
6027 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6028
6029 int
6030 main ()
6031 {
6032   gid_t gidset[NGID];
6033   int i, n;
6034   union { gid_t gval; long lval; }  val;
6035
6036   val.lval = -1;
6037   for (i = 0; i < NGID; i++)
6038     gidset[i] = val.gval;
6039   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6040                  gidset);
6041   /* Exit non-zero if getgroups seems to require an array of ints.  This
6042      happens when gid_t is short but getgroups modifies an array of ints.  */
6043   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6044 }
6045 _ACEOF
6046 rm -f conftest$ac_exeext
6047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6048   (eval $ac_link) 2>&5
6049   ac_status=$?
6050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053   (eval $ac_try) 2>&5
6054   ac_status=$?
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); }; }; then
6057   ac_cv_type_getgroups=gid_t
6058 else
6059   echo "$as_me: program exited with status $ac_status" >&5
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6062
6063 ( exit $ac_status )
6064 ac_cv_type_getgroups=int
6065 fi
6066 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6067 fi
6068 if test $ac_cv_type_getgroups = cross; then
6069         cat >conftest.$ac_ext <<_ACEOF
6070 /* confdefs.h.  */
6071 _ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h.  */
6075 #include <unistd.h>
6076
6077 _ACEOF
6078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6079   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6080   ac_cv_type_getgroups=gid_t
6081 else
6082   ac_cv_type_getgroups=int
6083 fi
6084 rm -f conftest*
6085
6086 fi
6087 fi
6088 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6089 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
6090
6091 cat >>confdefs.h <<_ACEOF
6092 #define GETGROUPS_T $ac_cv_type_getgroups
6093 _ACEOF
6094
6095
6096 echo "$as_me:$LINENO: checking for mode_t" >&5
6097 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
6098 if test "${ac_cv_type_mode_t+set}" = set; then
6099   echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101   cat >conftest.$ac_ext <<_ACEOF
6102 /* confdefs.h.  */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h.  */
6107 $ac_includes_default
6108 int
6109 main ()
6110 {
6111 if ((mode_t *) 0)
6112   return 0;
6113 if (sizeof (mode_t))
6114   return 0;
6115   ;
6116   return 0;
6117 }
6118 _ACEOF
6119 rm -f conftest.$ac_objext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121   (eval $ac_compile) 2>&5
6122   ac_status=$?
6123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124   (exit $ac_status); } &&
6125          { ac_try='test -s conftest.$ac_objext'
6126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127   (eval $ac_try) 2>&5
6128   ac_status=$?
6129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130   (exit $ac_status); }; }; then
6131   ac_cv_type_mode_t=yes
6132 else
6133   echo "$as_me: failed program was:" >&5
6134 sed 's/^/| /' conftest.$ac_ext >&5
6135
6136 ac_cv_type_mode_t=no
6137 fi
6138 rm -f conftest.$ac_objext conftest.$ac_ext
6139 fi
6140 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6141 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
6142 if test $ac_cv_type_mode_t = yes; then
6143   :
6144 else
6145
6146 cat >>confdefs.h <<_ACEOF
6147 #define mode_t int
6148 _ACEOF
6149
6150 fi
6151
6152 echo "$as_me:$LINENO: checking for off_t" >&5
6153 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6154 if test "${ac_cv_type_off_t+set}" = set; then
6155   echo $ECHO_N "(cached) $ECHO_C" >&6
6156 else
6157   cat >conftest.$ac_ext <<_ACEOF
6158 /* confdefs.h.  */
6159 _ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h.  */
6163 $ac_includes_default
6164 int
6165 main ()
6166 {
6167 if ((off_t *) 0)
6168   return 0;
6169 if (sizeof (off_t))
6170   return 0;
6171   ;
6172   return 0;
6173 }
6174 _ACEOF
6175 rm -f conftest.$ac_objext
6176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6177   (eval $ac_compile) 2>&5
6178   ac_status=$?
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); } &&
6181          { ac_try='test -s conftest.$ac_objext'
6182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183   (eval $ac_try) 2>&5
6184   ac_status=$?
6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); }; }; then
6187   ac_cv_type_off_t=yes
6188 else
6189   echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6191
6192 ac_cv_type_off_t=no
6193 fi
6194 rm -f conftest.$ac_objext conftest.$ac_ext
6195 fi
6196 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6197 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6198 if test $ac_cv_type_off_t = yes; then
6199   :
6200 else
6201
6202 cat >>confdefs.h <<_ACEOF
6203 #define off_t long
6204 _ACEOF
6205
6206 fi
6207
6208 echo "$as_me:$LINENO: checking for pid_t" >&5
6209 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6210 if test "${ac_cv_type_pid_t+set}" = set; then
6211   echo $ECHO_N "(cached) $ECHO_C" >&6
6212 else
6213   cat >conftest.$ac_ext <<_ACEOF
6214 /* confdefs.h.  */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h.  */
6219 $ac_includes_default
6220 int
6221 main ()
6222 {
6223 if ((pid_t *) 0)
6224   return 0;
6225 if (sizeof (pid_t))
6226   return 0;
6227   ;
6228   return 0;
6229 }
6230 _ACEOF
6231 rm -f conftest.$ac_objext
6232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6233   (eval $ac_compile) 2>&5
6234   ac_status=$?
6235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236   (exit $ac_status); } &&
6237          { ac_try='test -s conftest.$ac_objext'
6238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239   (eval $ac_try) 2>&5
6240   ac_status=$?
6241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242   (exit $ac_status); }; }; then
6243   ac_cv_type_pid_t=yes
6244 else
6245   echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6247
6248 ac_cv_type_pid_t=no
6249 fi
6250 rm -f conftest.$ac_objext conftest.$ac_ext
6251 fi
6252 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6253 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6254 if test $ac_cv_type_pid_t = yes; then
6255   :
6256 else
6257
6258 cat >>confdefs.h <<_ACEOF
6259 #define pid_t int
6260 _ACEOF
6261
6262 fi
6263
6264 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6265 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6266 if test "${ac_cv_type_signal+set}" = set; then
6267   echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269   cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h.  */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h.  */
6275 #include <sys/types.h>
6276 #include <signal.h>
6277 #ifdef signal
6278 # undef signal
6279 #endif
6280 #ifdef __cplusplus
6281 extern "C" void (*signal (int, void (*)(int)))(int);
6282 #else
6283 void (*signal ()) ();
6284 #endif
6285
6286 int
6287 main ()
6288 {
6289 int i;
6290   ;
6291   return 0;
6292 }
6293 _ACEOF
6294 rm -f conftest.$ac_objext
6295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6296   (eval $ac_compile) 2>&5
6297   ac_status=$?
6298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299   (exit $ac_status); } &&
6300          { ac_try='test -s conftest.$ac_objext'
6301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302   (eval $ac_try) 2>&5
6303   ac_status=$?
6304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305   (exit $ac_status); }; }; then
6306   ac_cv_type_signal=void
6307 else
6308   echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6310
6311 ac_cv_type_signal=int
6312 fi
6313 rm -f conftest.$ac_objext conftest.$ac_ext
6314 fi
6315 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6316 echo "${ECHO_T}$ac_cv_type_signal" >&6
6317
6318 cat >>confdefs.h <<_ACEOF
6319 #define RETSIGTYPE $ac_cv_type_signal
6320 _ACEOF
6321
6322
6323 echo "$as_me:$LINENO: checking for size_t" >&5
6324 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6325 if test "${ac_cv_type_size_t+set}" = set; then
6326   echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328   cat >conftest.$ac_ext <<_ACEOF
6329 /* confdefs.h.  */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h.  */
6334 $ac_includes_default
6335 int
6336 main ()
6337 {
6338 if ((size_t *) 0)
6339   return 0;
6340 if (sizeof (size_t))
6341   return 0;
6342   ;
6343   return 0;
6344 }
6345 _ACEOF
6346 rm -f conftest.$ac_objext
6347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6348   (eval $ac_compile) 2>&5
6349   ac_status=$?
6350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351   (exit $ac_status); } &&
6352          { ac_try='test -s conftest.$ac_objext'
6353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354   (eval $ac_try) 2>&5
6355   ac_status=$?
6356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357   (exit $ac_status); }; }; then
6358   ac_cv_type_size_t=yes
6359 else
6360   echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.$ac_ext >&5
6362
6363 ac_cv_type_size_t=no
6364 fi
6365 rm -f conftest.$ac_objext conftest.$ac_ext
6366 fi
6367 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6368 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6369 if test $ac_cv_type_size_t = yes; then
6370   :
6371 else
6372
6373 cat >>confdefs.h <<_ACEOF
6374 #define size_t unsigned
6375 _ACEOF
6376
6377 fi
6378
6379
6380   echo "$as_me:$LINENO: checking for inttypes.h" >&5
6381 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6382 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
6383   echo $ECHO_N "(cached) $ECHO_C" >&6
6384 else
6385
6386 cat >conftest.$ac_ext <<_ACEOF
6387 /* confdefs.h.  */
6388 _ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h.  */
6392 #include <sys/types.h>
6393 #include <inttypes.h>
6394 int
6395 main ()
6396 {
6397 uintmax_t i = (uintmax_t) -1;
6398   ;
6399   return 0;
6400 }
6401 _ACEOF
6402 rm -f conftest.$ac_objext
6403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6404   (eval $ac_compile) 2>&5
6405   ac_status=$?
6406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407   (exit $ac_status); } &&
6408          { ac_try='test -s conftest.$ac_objext'
6409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410   (eval $ac_try) 2>&5
6411   ac_status=$?
6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413   (exit $ac_status); }; }; then
6414   jm_ac_cv_header_inttypes_h=yes
6415 else
6416   echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6418
6419 jm_ac_cv_header_inttypes_h=no
6420 fi
6421 rm -f conftest.$ac_objext conftest.$ac_ext
6422 fi
6423 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
6424 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
6425   if test $jm_ac_cv_header_inttypes_h = yes; then
6426
6427 cat >>confdefs.h <<_ACEOF
6428 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6429 _ACEOF
6430
6431   fi
6432
6433
6434   echo "$as_me:$LINENO: checking for stdint.h" >&5
6435 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
6436 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
6437   echo $ECHO_N "(cached) $ECHO_C" >&6
6438 else
6439
6440 cat >conftest.$ac_ext <<_ACEOF
6441 /* confdefs.h.  */
6442 _ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h.  */
6446 #include <sys/types.h>
6447 #include <stdint.h>
6448 int
6449 main ()
6450 {
6451 uintmax_t i = (uintmax_t) -1;
6452   ;
6453   return 0;
6454 }
6455 _ACEOF
6456 rm -f conftest.$ac_objext
6457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6458   (eval $ac_compile) 2>&5
6459   ac_status=$?
6460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461   (exit $ac_status); } &&
6462          { ac_try='test -s conftest.$ac_objext'
6463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464   (eval $ac_try) 2>&5
6465   ac_status=$?
6466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467   (exit $ac_status); }; }; then
6468   jm_ac_cv_header_stdint_h=yes
6469 else
6470   echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.$ac_ext >&5
6472
6473 jm_ac_cv_header_stdint_h=no
6474 fi
6475 rm -f conftest.$ac_objext conftest.$ac_ext
6476 fi
6477 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
6478 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
6479   if test $jm_ac_cv_header_stdint_h = yes; then
6480
6481 cat >>confdefs.h <<_ACEOF
6482 #define HAVE_STDINT_H_WITH_UINTMAX 1
6483 _ACEOF
6484
6485   fi
6486
6487
6488   echo "$as_me:$LINENO: checking for unsigned long long" >&5
6489 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6490 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6491   echo $ECHO_N "(cached) $ECHO_C" >&6
6492 else
6493
6494 cat >conftest.$ac_ext <<_ACEOF
6495 /* confdefs.h.  */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h.  */
6500 unsigned long long ull = 1ULL; int i = 63;
6501 int
6502 main ()
6503 {
6504 unsigned long long ullmax = (unsigned long long) -1;
6505      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6506   ;
6507   return 0;
6508 }
6509 _ACEOF
6510 rm -f conftest.$ac_objext conftest$ac_exeext
6511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6512   (eval $ac_link) 2>&5
6513   ac_status=$?
6514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515   (exit $ac_status); } &&
6516          { ac_try='test -s conftest$ac_exeext'
6517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518   (eval $ac_try) 2>&5
6519   ac_status=$?
6520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521   (exit $ac_status); }; }; then
6522   ac_cv_type_unsigned_long_long=yes
6523 else
6524   echo "$as_me: failed program was:" >&5
6525 sed 's/^/| /' conftest.$ac_ext >&5
6526
6527 ac_cv_type_unsigned_long_long=no
6528 fi
6529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6530 fi
6531 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6532 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6533   if test $ac_cv_type_unsigned_long_long = yes; then
6534
6535 cat >>confdefs.h <<\_ACEOF
6536 #define HAVE_UNSIGNED_LONG_LONG 1
6537 _ACEOF
6538
6539   fi
6540
6541
6542
6543
6544   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6545
6546     test $ac_cv_type_unsigned_long_long = yes \
6547       && ac_type='unsigned long long' \
6548       || ac_type='unsigned long'
6549
6550 cat >>confdefs.h <<_ACEOF
6551 #define uintmax_t $ac_type
6552 _ACEOF
6553
6554   else
6555
6556 cat >>confdefs.h <<\_ACEOF
6557 #define HAVE_UINTMAX_T 1
6558 _ACEOF
6559
6560   fi
6561
6562 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6563 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
6564 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6565   echo $ECHO_N "(cached) $ECHO_C" >&6
6566 else
6567   cat >conftest.$ac_ext <<_ACEOF
6568 /* confdefs.h.  */
6569 _ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h.  */
6573 #include <sys/types.h>
6574 int
6575 main ()
6576 {
6577 return makedev(0, 0);
6578   ;
6579   return 0;
6580 }
6581 _ACEOF
6582 rm -f conftest.$ac_objext conftest$ac_exeext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6584   (eval $ac_link) 2>&5
6585   ac_status=$?
6586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587   (exit $ac_status); } &&
6588          { ac_try='test -s conftest$ac_exeext'
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_cv_header_sys_types_h_makedev=yes
6595 else
6596   echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6598
6599 ac_cv_header_sys_types_h_makedev=no
6600 fi
6601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6602
6603 fi
6604 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6605 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
6606
6607 if test $ac_cv_header_sys_types_h_makedev = no; then
6608 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6609   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6610 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6611 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6612   echo $ECHO_N "(cached) $ECHO_C" >&6
6613 fi
6614 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6615 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6616 else
6617   # Is the header compilable?
6618 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6619 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
6620 cat >conftest.$ac_ext <<_ACEOF
6621 /* confdefs.h.  */
6622 _ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h.  */
6626 $ac_includes_default
6627 #include <sys/mkdev.h>
6628 _ACEOF
6629 rm -f conftest.$ac_objext
6630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6631   (eval $ac_compile) 2>&5
6632   ac_status=$?
6633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634   (exit $ac_status); } &&
6635          { ac_try='test -s conftest.$ac_objext'
6636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637   (eval $ac_try) 2>&5
6638   ac_status=$?
6639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640   (exit $ac_status); }; }; then
6641   ac_header_compiler=yes
6642 else
6643   echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6645
6646 ac_header_compiler=no
6647 fi
6648 rm -f conftest.$ac_objext conftest.$ac_ext
6649 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6650 echo "${ECHO_T}$ac_header_compiler" >&6
6651
6652 # Is the header present?
6653 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6654 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
6655 cat >conftest.$ac_ext <<_ACEOF
6656 /* confdefs.h.  */
6657 _ACEOF
6658 cat confdefs.h >>conftest.$ac_ext
6659 cat >>conftest.$ac_ext <<_ACEOF
6660 /* end confdefs.h.  */
6661 #include <sys/mkdev.h>
6662 _ACEOF
6663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6664   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6665   ac_status=$?
6666   grep -v '^ *+' conftest.er1 >conftest.err
6667   rm -f conftest.er1
6668   cat conftest.err >&5
6669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670   (exit $ac_status); } >/dev/null; then
6671   if test -s conftest.err; then
6672     ac_cpp_err=$ac_c_preproc_warn_flag
6673   else
6674     ac_cpp_err=
6675   fi
6676 else
6677   ac_cpp_err=yes
6678 fi
6679 if test -z "$ac_cpp_err"; then
6680   ac_header_preproc=yes
6681 else
6682   echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6684
6685   ac_header_preproc=no
6686 fi
6687 rm -f conftest.err conftest.$ac_ext
6688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6689 echo "${ECHO_T}$ac_header_preproc" >&6
6690
6691 # So?  What about this header?
6692 case $ac_header_compiler:$ac_header_preproc in
6693   yes:no )
6694     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6695 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6696     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6697 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6698     ac_header_preproc=yes
6699     ;;
6700   no:yes )
6701     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6702 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6703     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
6704 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
6705     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6706 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6707     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
6708 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6709     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6710 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6711     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6712 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6713     (
6714       cat <<\_ASBOX
6715 ## ------------------------------------ ##
6716 ## Report this to bug-coreutils@gnu.org ##
6717 ## ------------------------------------ ##
6718 _ASBOX
6719     ) |
6720       sed "s/^/$as_me: WARNING:     /" >&2
6721     ;;
6722 esac
6723 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6724 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6725 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6726   echo $ECHO_N "(cached) $ECHO_C" >&6
6727 else
6728   ac_cv_header_sys_mkdev_h=$ac_header_preproc
6729 fi
6730 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6731 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6732
6733 fi
6734 if test $ac_cv_header_sys_mkdev_h = yes; then
6735
6736 cat >>confdefs.h <<\_ACEOF
6737 #define MAJOR_IN_MKDEV 1
6738 _ACEOF
6739
6740 fi
6741
6742
6743
6744   if test $ac_cv_header_sys_mkdev_h = no; then
6745     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6746   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6747 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
6748 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6749   echo $ECHO_N "(cached) $ECHO_C" >&6
6750 fi
6751 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6752 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
6753 else
6754   # Is the header compilable?
6755 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6756 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
6757 cat >conftest.$ac_ext <<_ACEOF
6758 /* confdefs.h.  */
6759 _ACEOF
6760 cat confdefs.h >>conftest.$ac_ext
6761 cat >>conftest.$ac_ext <<_ACEOF
6762 /* end confdefs.h.  */
6763 $ac_includes_default
6764 #include <sys/sysmacros.h>
6765 _ACEOF
6766 rm -f conftest.$ac_objext
6767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6768   (eval $ac_compile) 2>&5
6769   ac_status=$?
6770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771   (exit $ac_status); } &&
6772          { ac_try='test -s conftest.$ac_objext'
6773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774   (eval $ac_try) 2>&5
6775   ac_status=$?
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); }; }; then
6778   ac_header_compiler=yes
6779 else
6780   echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6782
6783 ac_header_compiler=no
6784 fi
6785 rm -f conftest.$ac_objext conftest.$ac_ext
6786 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6787 echo "${ECHO_T}$ac_header_compiler" >&6
6788
6789 # Is the header present?
6790 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6791 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
6792 cat >conftest.$ac_ext <<_ACEOF
6793 /* confdefs.h.  */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h.  */
6798 #include <sys/sysmacros.h>
6799 _ACEOF
6800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6801   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6802   ac_status=$?
6803   grep -v '^ *+' conftest.er1 >conftest.err
6804   rm -f conftest.er1
6805   cat conftest.err >&5
6806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807   (exit $ac_status); } >/dev/null; then
6808   if test -s conftest.err; then
6809     ac_cpp_err=$ac_c_preproc_warn_flag
6810   else
6811     ac_cpp_err=
6812   fi
6813 else
6814   ac_cpp_err=yes
6815 fi
6816 if test -z "$ac_cpp_err"; then
6817   ac_header_preproc=yes
6818 else
6819   echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6821
6822   ac_header_preproc=no
6823 fi
6824 rm -f conftest.err conftest.$ac_ext
6825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6826 echo "${ECHO_T}$ac_header_preproc" >&6
6827
6828 # So?  What about this header?
6829 case $ac_header_compiler:$ac_header_preproc in
6830   yes:no )
6831     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6832 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6833     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6834 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6835     ac_header_preproc=yes
6836     ;;
6837   no:yes )
6838     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6839 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6840     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
6841 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
6842     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6843 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6844     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
6845 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6846     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6847 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6848     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6849 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6850     (
6851       cat <<\_ASBOX
6852 ## ------------------------------------ ##
6853 ## Report this to bug-coreutils@gnu.org ##
6854 ## ------------------------------------ ##
6855 _ASBOX
6856     ) |
6857       sed "s/^/$as_me: WARNING:     /" >&2
6858     ;;
6859 esac
6860 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6861 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
6862 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6863   echo $ECHO_N "(cached) $ECHO_C" >&6
6864 else
6865   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6866 fi
6867 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6868 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
6869
6870 fi
6871 if test $ac_cv_header_sys_sysmacros_h = yes; then
6872
6873 cat >>confdefs.h <<\_ACEOF
6874 #define MAJOR_IN_SYSMACROS 1
6875 _ACEOF
6876
6877 fi
6878
6879
6880   fi
6881 fi
6882
6883
6884   echo "$as_me:$LINENO: checking host operating system" >&5
6885 echo $ECHO_N "checking host operating system... $ECHO_C" >&6
6886 if test "${utils_cv_host_operating_system+set}" = set; then
6887   echo $ECHO_N "(cached) $ECHO_C" >&6
6888 else
6889   case $host_os in
6890
6891        # These operating system names do not use the default heuristic below.
6892        # They are in reverse order, so that more-specific prefixes come first.
6893        winnt*)          os='Windows NT';;
6894        vos*)            os='VOS';;
6895        sysv*)           os='Unix System V';;
6896        superux*)        os='SUPER-UX';;
6897        sunos*)          os='SunOS';;
6898        stop*)           os='STOP';;
6899        sco*)            os='SCO Unix';;
6900        riscos*)         os='RISC OS';;
6901        riscix*)         os='RISCiX';;
6902        qnx*)            os='QNX';;
6903        pw32*)           os='PW32';;
6904        ptx*)            os='ptx';;
6905        plan9*)          os='Plan 9';;
6906        osf*)            os='Tru64';;
6907        os2*)            os='OS/2';;
6908        openbsd*)        os='OpenBSD';;
6909        nsk*)            os='NonStop Kernel';;
6910        nonstopux*)      os='NonStop-UX';;
6911        netbsd*-gnu*)    os='GNU/NetBSD';;
6912        netbsd*)         os='NetBSD';;
6913        msdosdjgpp*)     os='DJGPP';;
6914        mpeix*)          os='MPE/iX';;
6915        mint*)           os='MiNT';;
6916        mingw*)          os='MinGW';;
6917        lynxos*)         os='LynxOS';;
6918        linux*)          os='GNU/Linux';;
6919        hpux*)           os='HP-UX';;
6920        hiux*)           os='HI-UX';;
6921        gnu*)            os='GNU';;
6922        freebsd*-gnu*)   os='GNU/FreeBSD';;
6923        freebsd*)        os='FreeBSD';;
6924        dgux*)           os='DG/UX';;
6925        bsdi*)           os='BSD/OS';;
6926        bsd*)            os='BSD';;
6927        beos*)           os='BeOS';;
6928        aux*)            os='A/UX';;
6929        atheos*)         os='AtheOS';;
6930        amigaos*)        os='Amiga OS';;
6931        aix*)            os='AIX';;
6932
6933        # The default heuristic takes the initial alphabetic string
6934        # from $host_os, but capitalizes its first letter.
6935        [A-Za-z]*)
6936          os=`
6937            expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
6938          ``
6939            expr "X$host_os" : 'X.\([A-Za-z]*\)'
6940          `
6941          ;;
6942
6943        # If $host_os does not start with an alphabetic string, use it unchanged.
6944        *)
6945          os=$host_os;;
6946      esac
6947      utils_cv_host_operating_system=$os
6948 fi
6949 echo "$as_me:$LINENO: result: $utils_cv_host_operating_system" >&5
6950 echo "${ECHO_T}$utils_cv_host_operating_system" >&6
6951
6952 cat >>confdefs.h <<_ACEOF
6953 #define HOST_OPERATING_SYSTEM "$utils_cv_host_operating_system"
6954 _ACEOF
6955
6956
6957
6958   echo "$as_me:$LINENO: checking whether to enable assertions" >&5
6959 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6
6960   # Check whether --enable-assert or --disable-assert was given.
6961 if test "${enable_assert+set}" = set; then
6962   enableval="$enable_assert"
6963    echo "$as_me:$LINENO: result: no" >&5
6964 echo "${ECHO_T}no" >&6
6965
6966 cat >>confdefs.h <<\_ACEOF
6967 #define NDEBUG 1
6968 _ACEOF
6969
6970 else
6971    echo "$as_me:$LINENO: result: yes" >&5
6972 echo "${ECHO_T}yes" >&6
6973
6974 fi;
6975
6976
6977
6978
6979
6980
6981 for ac_header in $gl_header_list
6982 do
6983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6985   echo "$as_me:$LINENO: checking for $ac_header" >&5
6986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6988   echo $ECHO_N "(cached) $ECHO_C" >&6
6989 fi
6990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6992 else
6993   # Is the header compilable?
6994 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6996 cat >conftest.$ac_ext <<_ACEOF
6997 /* confdefs.h.  */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h.  */
7002 $ac_includes_default
7003 #include <$ac_header>
7004 _ACEOF
7005 rm -f conftest.$ac_objext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7007   (eval $ac_compile) 2>&5
7008   ac_status=$?
7009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010   (exit $ac_status); } &&
7011          { ac_try='test -s conftest.$ac_objext'
7012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013   (eval $ac_try) 2>&5
7014   ac_status=$?
7015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016   (exit $ac_status); }; }; then
7017   ac_header_compiler=yes
7018 else
7019   echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7021
7022 ac_header_compiler=no
7023 fi
7024 rm -f conftest.$ac_objext conftest.$ac_ext
7025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7026 echo "${ECHO_T}$ac_header_compiler" >&6
7027
7028 # Is the header present?
7029 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7031 cat >conftest.$ac_ext <<_ACEOF
7032 /* confdefs.h.  */
7033 _ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h.  */
7037 #include <$ac_header>
7038 _ACEOF
7039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7040   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7041   ac_status=$?
7042   grep -v '^ *+' conftest.er1 >conftest.err
7043   rm -f conftest.er1
7044   cat conftest.err >&5
7045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046   (exit $ac_status); } >/dev/null; then
7047   if test -s conftest.err; then
7048     ac_cpp_err=$ac_c_preproc_warn_flag
7049   else
7050     ac_cpp_err=
7051   fi
7052 else
7053   ac_cpp_err=yes
7054 fi
7055 if test -z "$ac_cpp_err"; then
7056   ac_header_preproc=yes
7057 else
7058   echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.$ac_ext >&5
7060
7061   ac_header_preproc=no
7062 fi
7063 rm -f conftest.err conftest.$ac_ext
7064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7065 echo "${ECHO_T}$ac_header_preproc" >&6
7066
7067 # So?  What about this header?
7068 case $ac_header_compiler:$ac_header_preproc in
7069   yes:no )
7070     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7074     ac_header_preproc=yes
7075     ;;
7076   no:yes )
7077     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7079     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7080 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7081     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7083     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7084 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7085     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7087     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7089     (
7090       cat <<\_ASBOX
7091 ## ------------------------------------ ##
7092 ## Report this to bug-coreutils@gnu.org ##
7093 ## ------------------------------------ ##
7094 _ASBOX
7095     ) |
7096       sed "s/^/$as_me: WARNING:     /" >&2
7097     ;;
7098 esac
7099 echo "$as_me:$LINENO: checking for $ac_header" >&5
7100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7102   echo $ECHO_N "(cached) $ECHO_C" >&6
7103 else
7104   eval "$as_ac_Header=\$ac_header_preproc"
7105 fi
7106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7108
7109 fi
7110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7111   cat >>confdefs.h <<_ACEOF
7112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7113 _ACEOF
7114
7115 fi
7116
7117 done
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7131 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7132 if test "${ac_cv_header_time+set}" = set; then
7133   echo $ECHO_N "(cached) $ECHO_C" >&6
7134 else
7135   cat >conftest.$ac_ext <<_ACEOF
7136 /* confdefs.h.  */
7137 _ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h.  */
7141 #include <sys/types.h>
7142 #include <sys/time.h>
7143 #include <time.h>
7144
7145 int
7146 main ()
7147 {
7148 if ((struct tm *) 0)
7149 return 0;
7150   ;
7151   return 0;
7152 }
7153 _ACEOF
7154 rm -f conftest.$ac_objext
7155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7156   (eval $ac_compile) 2>&5
7157   ac_status=$?
7158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159   (exit $ac_status); } &&
7160          { ac_try='test -s conftest.$ac_objext'
7161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162   (eval $ac_try) 2>&5
7163   ac_status=$?
7164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165   (exit $ac_status); }; }; then
7166   ac_cv_header_time=yes
7167 else
7168   echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.$ac_ext >&5
7170
7171 ac_cv_header_time=no
7172 fi
7173 rm -f conftest.$ac_objext conftest.$ac_ext
7174 fi
7175 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7176 echo "${ECHO_T}$ac_cv_header_time" >&6
7177 if test $ac_cv_header_time = yes; then
7178
7179 cat >>confdefs.h <<\_ACEOF
7180 #define TIME_WITH_SYS_TIME 1
7181 _ACEOF
7182
7183 fi
7184
7185
7186
7187   :
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197   echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7198 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
7199 if test "${fu_cv_sys_struct_utimbuf+set}" = set; then
7200   echo $ECHO_N "(cached) $ECHO_C" >&6
7201 else
7202
7203 cat >conftest.$ac_ext <<_ACEOF
7204 /* confdefs.h.  */
7205 _ACEOF
7206 cat confdefs.h >>conftest.$ac_ext
7207 cat >>conftest.$ac_ext <<_ACEOF
7208 /* end confdefs.h.  */
7209
7210 #ifdef TIME_WITH_SYS_TIME
7211 # include <sys/time.h>
7212 # include <time.h>
7213 #else
7214 # ifdef HAVE_SYS_TIME_H
7215 #  include <sys/time.h>
7216 # else
7217 #  include <time.h>
7218 # endif
7219 #endif
7220 #ifdef HAVE_UTIME_H
7221 # include <utime.h>
7222 #endif
7223
7224 int
7225 main ()
7226 {
7227 static struct utimbuf x; x.actime = x.modtime;
7228   ;
7229   return 0;
7230 }
7231 _ACEOF
7232 rm -f conftest.$ac_objext
7233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7234   (eval $ac_compile) 2>&5
7235   ac_status=$?
7236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237   (exit $ac_status); } &&
7238          { ac_try='test -s conftest.$ac_objext'
7239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240   (eval $ac_try) 2>&5
7241   ac_status=$?
7242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243   (exit $ac_status); }; }; then
7244   fu_cv_sys_struct_utimbuf=yes
7245 else
7246   echo "$as_me: failed program was:" >&5
7247 sed 's/^/| /' conftest.$ac_ext >&5
7248
7249 fu_cv_sys_struct_utimbuf=no
7250 fi
7251 rm -f conftest.$ac_objext conftest.$ac_ext
7252
7253 fi
7254 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5
7255 echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6
7256
7257   if test $fu_cv_sys_struct_utimbuf = yes; then
7258
7259 cat >>confdefs.h <<\_ACEOF
7260 #define HAVE_STRUCT_UTIMBUF 1
7261 _ACEOF
7262
7263   fi
7264
7265    echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
7266 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6
7267 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
7268   echo $ECHO_N "(cached) $ECHO_C" >&6
7269 else
7270
7271 cat >conftest.$ac_ext <<_ACEOF
7272 /* confdefs.h.  */
7273 _ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h.  */
7277
7278 #include <sys/types.h>
7279 #ifdef HAVE_DIRENT_H
7280 # include <dirent.h>
7281 #else /* not HAVE_DIRENT_H */
7282 # define dirent direct
7283 # ifdef HAVE_SYS_NDIR_H
7284 #  include <sys/ndir.h>
7285 # endif /* HAVE_SYS_NDIR_H */
7286 # ifdef HAVE_SYS_DIR_H
7287 #  include <sys/dir.h>
7288 # endif /* HAVE_SYS_DIR_H */
7289 # ifdef HAVE_NDIR_H
7290 #  include <ndir.h>
7291 # endif /* HAVE_NDIR_H */
7292 #endif /* HAVE_DIRENT_H */
7293
7294 int
7295 main ()
7296 {
7297 struct dirent dp; dp.d_type = 0;
7298   ;
7299   return 0;
7300 }
7301 _ACEOF
7302 rm -f conftest.$ac_objext conftest$ac_exeext
7303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7304   (eval $ac_link) 2>&5
7305   ac_status=$?
7306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307   (exit $ac_status); } &&
7308          { ac_try='test -s conftest$ac_exeext'
7309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310   (eval $ac_try) 2>&5
7311   ac_status=$?
7312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313   (exit $ac_status); }; }; then
7314   jm_cv_struct_dirent_d_type=yes
7315 else
7316   echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7318
7319 jm_cv_struct_dirent_d_type=no
7320 fi
7321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7322
7323
7324 fi
7325 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
7326 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6
7327    if test $jm_cv_struct_dirent_d_type = yes; then
7328
7329 cat >>confdefs.h <<\_ACEOF
7330 #define HAVE_STRUCT_DIRENT_D_TYPE 1
7331 _ACEOF
7332
7333    fi
7334
7335
7336    echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
7337 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
7338 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
7339   echo $ECHO_N "(cached) $ECHO_C" >&6
7340 else
7341
7342 cat >conftest.$ac_ext <<_ACEOF
7343 /* confdefs.h.  */
7344 _ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h.  */
7348
7349 #include <sys/types.h>
7350 #ifdef HAVE_DIRENT_H
7351 # include <dirent.h>
7352 #else /* not HAVE_DIRENT_H */
7353 # define dirent direct
7354 # ifdef HAVE_SYS_NDIR_H
7355 #  include <sys/ndir.h>
7356 # endif /* HAVE_SYS_NDIR_H */
7357 # ifdef HAVE_SYS_DIR_H
7358 #  include <sys/dir.h>
7359 # endif /* HAVE_SYS_DIR_H */
7360 # ifdef HAVE_NDIR_H
7361 #  include <ndir.h>
7362 # endif /* HAVE_NDIR_H */
7363 #endif /* HAVE_DIRENT_H */
7364
7365 int
7366 main ()
7367 {
7368 struct dirent dp; dp.d_ino = 0;
7369   ;
7370   return 0;
7371 }
7372 _ACEOF
7373 rm -f conftest.$ac_objext conftest$ac_exeext
7374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7375   (eval $ac_link) 2>&5
7376   ac_status=$?
7377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378   (exit $ac_status); } &&
7379          { ac_try='test -s conftest$ac_exeext'
7380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381   (eval $ac_try) 2>&5
7382   ac_status=$?
7383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384   (exit $ac_status); }; }; then
7385   jm_cv_struct_dirent_d_ino=yes
7386 else
7387   echo "$as_me: failed program was:" >&5
7388 sed 's/^/| /' conftest.$ac_ext >&5
7389
7390 jm_cv_struct_dirent_d_ino=no
7391 fi
7392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7393
7394
7395 fi
7396 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
7397 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
7398    if test $jm_cv_struct_dirent_d_ino = yes; then
7399
7400 cat >>confdefs.h <<\_ACEOF
7401 #define D_INO_IN_DIRENT 1
7402 _ACEOF
7403
7404    fi
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419 for ac_header in grp.h memory.h pwd.h string.h strings.h stdlib.h \
7420                    unistd.h sys/time.h utmp.h utmpx.h
7421 do
7422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7424   echo "$as_me:$LINENO: checking for $ac_header" >&5
7425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7427   echo $ECHO_N "(cached) $ECHO_C" >&6
7428 fi
7429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7431 else
7432   # Is the header compilable?
7433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7435 cat >conftest.$ac_ext <<_ACEOF
7436 /* confdefs.h.  */
7437 _ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h.  */
7441 $ac_includes_default
7442 #include <$ac_header>
7443 _ACEOF
7444 rm -f conftest.$ac_objext
7445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7446   (eval $ac_compile) 2>&5
7447   ac_status=$?
7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449   (exit $ac_status); } &&
7450          { ac_try='test -s conftest.$ac_objext'
7451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452   (eval $ac_try) 2>&5
7453   ac_status=$?
7454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455   (exit $ac_status); }; }; then
7456   ac_header_compiler=yes
7457 else
7458   echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7460
7461 ac_header_compiler=no
7462 fi
7463 rm -f conftest.$ac_objext conftest.$ac_ext
7464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7465 echo "${ECHO_T}$ac_header_compiler" >&6
7466
7467 # Is the header present?
7468 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7470 cat >conftest.$ac_ext <<_ACEOF
7471 /* confdefs.h.  */
7472 _ACEOF
7473 cat confdefs.h >>conftest.$ac_ext
7474 cat >>conftest.$ac_ext <<_ACEOF
7475 /* end confdefs.h.  */
7476 #include <$ac_header>
7477 _ACEOF
7478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7479   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7480   ac_status=$?
7481   grep -v '^ *+' conftest.er1 >conftest.err
7482   rm -f conftest.er1
7483   cat conftest.err >&5
7484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485   (exit $ac_status); } >/dev/null; then
7486   if test -s conftest.err; then
7487     ac_cpp_err=$ac_c_preproc_warn_flag
7488   else
7489     ac_cpp_err=
7490   fi
7491 else
7492   ac_cpp_err=yes
7493 fi
7494 if test -z "$ac_cpp_err"; then
7495   ac_header_preproc=yes
7496 else
7497   echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.$ac_ext >&5
7499
7500   ac_header_preproc=no
7501 fi
7502 rm -f conftest.err conftest.$ac_ext
7503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7504 echo "${ECHO_T}$ac_header_preproc" >&6
7505
7506 # So?  What about this header?
7507 case $ac_header_compiler:$ac_header_preproc in
7508   yes:no )
7509     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7513     ac_header_preproc=yes
7514     ;;
7515   no:yes )
7516     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7518     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7519 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7520     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7522     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7523 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7526     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7528     (
7529       cat <<\_ASBOX
7530 ## ------------------------------------ ##
7531 ## Report this to bug-coreutils@gnu.org ##
7532 ## ------------------------------------ ##
7533 _ASBOX
7534     ) |
7535       sed "s/^/$as_me: WARNING:     /" >&2
7536     ;;
7537 esac
7538 echo "$as_me:$LINENO: checking for $ac_header" >&5
7539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7541   echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543   eval "$as_ac_Header=\$ac_header_preproc"
7544 fi
7545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7547
7548 fi
7549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7550   cat >>confdefs.h <<_ACEOF
7551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7552 _ACEOF
7553
7554 fi
7555
7556 done
7557
7558
7559
7560
7561
7562   headers='
7563 #include <stdio.h>
7564 #if HAVE_STRING_H
7565 # if !STDC_HEADERS && HAVE_MEMORY_H
7566 #  include <memory.h>
7567 # endif
7568 # include <string.h>
7569 #else
7570 # if HAVE_STRINGS_H
7571 #  include <strings.h>
7572 # endif
7573 #endif
7574 #if HAVE_STDLIB_H
7575 # include <stdlib.h>
7576 #endif
7577 #if HAVE_UNISTD_H
7578 # include <unistd.h>
7579 #endif
7580
7581 #include <sys/types.h>
7582 #if TIME_WITH_SYS_TIME
7583 # include <sys/time.h>
7584 # include <time.h>
7585 #else
7586 # if HAVE_SYS_TIME_H
7587 #  include <sys/time.h>
7588 # else
7589 #  include <time.h>
7590 # endif
7591 #endif
7592
7593 #if HAVE_UTMP_H
7594 # include <utmp.h>
7595 #endif
7596
7597 #if HAVE_GRP_H
7598 # include <grp.h>
7599 #endif
7600
7601 #if HAVE_PWD_H
7602 # include <pwd.h>
7603 #endif
7604 '
7605
7606   echo "$as_me:$LINENO: checking whether free is declared" >&5
7607 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
7608 if test "${ac_cv_have_decl_free+set}" = set; then
7609   echo $ECHO_N "(cached) $ECHO_C" >&6
7610 else
7611   cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h.  */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h.  */
7617 $headers
7618
7619 int
7620 main ()
7621 {
7622 #ifndef free
7623   char *p = (char *) free;
7624 #endif
7625
7626   ;
7627   return 0;
7628 }
7629 _ACEOF
7630 rm -f conftest.$ac_objext
7631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7632   (eval $ac_compile) 2>&5
7633   ac_status=$?
7634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635   (exit $ac_status); } &&
7636          { ac_try='test -s conftest.$ac_objext'
7637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638   (eval $ac_try) 2>&5
7639   ac_status=$?
7640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641   (exit $ac_status); }; }; then
7642   ac_cv_have_decl_free=yes
7643 else
7644   echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7646
7647 ac_cv_have_decl_free=no
7648 fi
7649 rm -f conftest.$ac_objext conftest.$ac_ext
7650 fi
7651 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
7652 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
7653 if test $ac_cv_have_decl_free = yes; then
7654
7655 cat >>confdefs.h <<_ACEOF
7656 #define HAVE_DECL_FREE 1
7657 _ACEOF
7658
7659
7660 else
7661   cat >>confdefs.h <<_ACEOF
7662 #define HAVE_DECL_FREE 0
7663 _ACEOF
7664
7665
7666 fi
7667 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
7668 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
7669 if test "${ac_cv_have_decl_getenv+set}" = set; then
7670   echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672   cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h.  */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h.  */
7678 $headers
7679
7680 int
7681 main ()
7682 {
7683 #ifndef getenv
7684   char *p = (char *) getenv;
7685 #endif
7686
7687   ;
7688   return 0;
7689 }
7690 _ACEOF
7691 rm -f conftest.$ac_objext
7692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7693   (eval $ac_compile) 2>&5
7694   ac_status=$?
7695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696   (exit $ac_status); } &&
7697          { ac_try='test -s conftest.$ac_objext'
7698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699   (eval $ac_try) 2>&5
7700   ac_status=$?
7701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702   (exit $ac_status); }; }; then
7703   ac_cv_have_decl_getenv=yes
7704 else
7705   echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7707
7708 ac_cv_have_decl_getenv=no
7709 fi
7710 rm -f conftest.$ac_objext conftest.$ac_ext
7711 fi
7712 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
7713 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
7714 if test $ac_cv_have_decl_getenv = yes; then
7715
7716 cat >>confdefs.h <<_ACEOF
7717 #define HAVE_DECL_GETENV 1
7718 _ACEOF
7719
7720
7721 else
7722   cat >>confdefs.h <<_ACEOF
7723 #define HAVE_DECL_GETENV 0
7724 _ACEOF
7725
7726
7727 fi
7728 echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
7729 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6
7730 if test "${ac_cv_have_decl_geteuid+set}" = set; then
7731   echo $ECHO_N "(cached) $ECHO_C" >&6
7732 else
7733   cat >conftest.$ac_ext <<_ACEOF
7734 /* confdefs.h.  */
7735 _ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h.  */
7739 $headers
7740
7741 int
7742 main ()
7743 {
7744 #ifndef geteuid
7745   char *p = (char *) geteuid;
7746 #endif
7747
7748   ;
7749   return 0;
7750 }
7751 _ACEOF
7752 rm -f conftest.$ac_objext
7753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7754   (eval $ac_compile) 2>&5
7755   ac_status=$?
7756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757   (exit $ac_status); } &&
7758          { ac_try='test -s conftest.$ac_objext'
7759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760   (eval $ac_try) 2>&5
7761   ac_status=$?
7762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763   (exit $ac_status); }; }; then
7764   ac_cv_have_decl_geteuid=yes
7765 else
7766   echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7768
7769 ac_cv_have_decl_geteuid=no
7770 fi
7771 rm -f conftest.$ac_objext conftest.$ac_ext
7772 fi
7773 echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
7774 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6
7775 if test $ac_cv_have_decl_geteuid = yes; then
7776
7777 cat >>confdefs.h <<_ACEOF
7778 #define HAVE_DECL_GETEUID 1
7779 _ACEOF
7780
7781
7782 else
7783   cat >>confdefs.h <<_ACEOF
7784 #define HAVE_DECL_GETEUID 0
7785 _ACEOF
7786
7787
7788 fi
7789 echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
7790 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6
7791 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
7792   echo $ECHO_N "(cached) $ECHO_C" >&6
7793 else
7794   cat >conftest.$ac_ext <<_ACEOF
7795 /* confdefs.h.  */
7796 _ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h.  */
7800 $headers
7801
7802 int
7803 main ()
7804 {
7805 #ifndef getgrgid
7806   char *p = (char *) getgrgid;
7807 #endif
7808
7809   ;
7810   return 0;
7811 }
7812 _ACEOF
7813 rm -f conftest.$ac_objext
7814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7815   (eval $ac_compile) 2>&5
7816   ac_status=$?
7817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818   (exit $ac_status); } &&
7819          { ac_try='test -s conftest.$ac_objext'
7820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821   (eval $ac_try) 2>&5
7822   ac_status=$?
7823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824   (exit $ac_status); }; }; then
7825   ac_cv_have_decl_getgrgid=yes
7826 else
7827   echo "$as_me: failed program was:" >&5
7828 sed 's/^/| /' conftest.$ac_ext >&5
7829
7830 ac_cv_have_decl_getgrgid=no
7831 fi
7832 rm -f conftest.$ac_objext conftest.$ac_ext
7833 fi
7834 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
7835 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6
7836 if test $ac_cv_have_decl_getgrgid = yes; then
7837
7838 cat >>confdefs.h <<_ACEOF
7839 #define HAVE_DECL_GETGRGID 1
7840 _ACEOF
7841
7842
7843 else
7844   cat >>confdefs.h <<_ACEOF
7845 #define HAVE_DECL_GETGRGID 0
7846 _ACEOF
7847
7848
7849 fi
7850 echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
7851 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6
7852 if test "${ac_cv_have_decl_getlogin+set}" = set; then
7853   echo $ECHO_N "(cached) $ECHO_C" >&6
7854 else
7855   cat >conftest.$ac_ext <<_ACEOF
7856 /* confdefs.h.  */
7857 _ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h.  */
7861 $headers
7862
7863 int
7864 main ()
7865 {
7866 #ifndef getlogin
7867   char *p = (char *) getlogin;
7868 #endif
7869
7870   ;
7871   return 0;
7872 }
7873 _ACEOF
7874 rm -f conftest.$ac_objext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7876   (eval $ac_compile) 2>&5
7877   ac_status=$?
7878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879   (exit $ac_status); } &&
7880          { ac_try='test -s conftest.$ac_objext'
7881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882   (eval $ac_try) 2>&5
7883   ac_status=$?
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); }; }; then
7886   ac_cv_have_decl_getlogin=yes
7887 else
7888   echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7890
7891 ac_cv_have_decl_getlogin=no
7892 fi
7893 rm -f conftest.$ac_objext conftest.$ac_ext
7894 fi
7895 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
7896 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6
7897 if test $ac_cv_have_decl_getlogin = yes; then
7898
7899 cat >>confdefs.h <<_ACEOF
7900 #define HAVE_DECL_GETLOGIN 1
7901 _ACEOF
7902
7903
7904 else
7905   cat >>confdefs.h <<_ACEOF
7906 #define HAVE_DECL_GETLOGIN 0
7907 _ACEOF
7908
7909
7910 fi
7911 echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
7912 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6
7913 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
7914   echo $ECHO_N "(cached) $ECHO_C" >&6
7915 else
7916   cat >conftest.$ac_ext <<_ACEOF
7917 /* confdefs.h.  */
7918 _ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h.  */
7922 $headers
7923
7924 int
7925 main ()
7926 {
7927 #ifndef getpwuid
7928   char *p = (char *) getpwuid;
7929 #endif
7930
7931   ;
7932   return 0;
7933 }
7934 _ACEOF
7935 rm -f conftest.$ac_objext
7936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7937   (eval $ac_compile) 2>&5
7938   ac_status=$?
7939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940   (exit $ac_status); } &&
7941          { ac_try='test -s conftest.$ac_objext'
7942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7943   (eval $ac_try) 2>&5
7944   ac_status=$?
7945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946   (exit $ac_status); }; }; then
7947   ac_cv_have_decl_getpwuid=yes
7948 else
7949   echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7951
7952 ac_cv_have_decl_getpwuid=no
7953 fi
7954 rm -f conftest.$ac_objext conftest.$ac_ext
7955 fi
7956 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
7957 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6
7958 if test $ac_cv_have_decl_getpwuid = yes; then
7959
7960 cat >>confdefs.h <<_ACEOF
7961 #define HAVE_DECL_GETPWUID 1
7962 _ACEOF
7963
7964
7965 else
7966   cat >>confdefs.h <<_ACEOF
7967 #define HAVE_DECL_GETPWUID 0
7968 _ACEOF
7969
7970
7971 fi
7972 echo "$as_me:$LINENO: checking whether getuid is declared" >&5
7973 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6
7974 if test "${ac_cv_have_decl_getuid+set}" = set; then
7975   echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977   cat >conftest.$ac_ext <<_ACEOF
7978 /* confdefs.h.  */
7979 _ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h.  */
7983 $headers
7984
7985 int
7986 main ()
7987 {
7988 #ifndef getuid
7989   char *p = (char *) getuid;
7990 #endif
7991
7992   ;
7993   return 0;
7994 }
7995 _ACEOF
7996 rm -f conftest.$ac_objext
7997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7998   (eval $ac_compile) 2>&5
7999   ac_status=$?
8000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001   (exit $ac_status); } &&
8002          { ac_try='test -s conftest.$ac_objext'
8003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004   (eval $ac_try) 2>&5
8005   ac_status=$?
8006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007   (exit $ac_status); }; }; then
8008   ac_cv_have_decl_getuid=yes
8009 else
8010   echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8012
8013 ac_cv_have_decl_getuid=no
8014 fi
8015 rm -f conftest.$ac_objext conftest.$ac_ext
8016 fi
8017 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
8018 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6
8019 if test $ac_cv_have_decl_getuid = yes; then
8020
8021 cat >>confdefs.h <<_ACEOF
8022 #define HAVE_DECL_GETUID 1
8023 _ACEOF
8024
8025
8026 else
8027   cat >>confdefs.h <<_ACEOF
8028 #define HAVE_DECL_GETUID 0
8029 _ACEOF
8030
8031
8032 fi
8033 echo "$as_me:$LINENO: checking whether getutent is declared" >&5
8034 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
8035 if test "${ac_cv_have_decl_getutent+set}" = set; then
8036   echo $ECHO_N "(cached) $ECHO_C" >&6
8037 else
8038   cat >conftest.$ac_ext <<_ACEOF
8039 /* confdefs.h.  */
8040 _ACEOF
8041 cat confdefs.h >>conftest.$ac_ext
8042 cat >>conftest.$ac_ext <<_ACEOF
8043 /* end confdefs.h.  */
8044 $headers
8045
8046 int
8047 main ()
8048 {
8049 #ifndef getutent
8050   char *p = (char *) getutent;
8051 #endif
8052
8053   ;
8054   return 0;
8055 }
8056 _ACEOF
8057 rm -f conftest.$ac_objext
8058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8059   (eval $ac_compile) 2>&5
8060   ac_status=$?
8061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062   (exit $ac_status); } &&
8063          { ac_try='test -s conftest.$ac_objext'
8064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065   (eval $ac_try) 2>&5
8066   ac_status=$?
8067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068   (exit $ac_status); }; }; then
8069   ac_cv_have_decl_getutent=yes
8070 else
8071   echo "$as_me: failed program was:" >&5
8072 sed 's/^/| /' conftest.$ac_ext >&5
8073
8074 ac_cv_have_decl_getutent=no
8075 fi
8076 rm -f conftest.$ac_objext conftest.$ac_ext
8077 fi
8078 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
8079 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
8080 if test $ac_cv_have_decl_getutent = yes; then
8081
8082 cat >>confdefs.h <<_ACEOF
8083 #define HAVE_DECL_GETUTENT 1
8084 _ACEOF
8085
8086
8087 else
8088   cat >>confdefs.h <<_ACEOF
8089 #define HAVE_DECL_GETUTENT 0
8090 _ACEOF
8091
8092
8093 fi
8094 echo "$as_me:$LINENO: checking whether lseek is declared" >&5
8095 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6
8096 if test "${ac_cv_have_decl_lseek+set}" = set; then
8097   echo $ECHO_N "(cached) $ECHO_C" >&6
8098 else
8099   cat >conftest.$ac_ext <<_ACEOF
8100 /* confdefs.h.  */
8101 _ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h.  */
8105 $headers
8106
8107 int
8108 main ()
8109 {
8110 #ifndef lseek
8111   char *p = (char *) lseek;
8112 #endif
8113
8114   ;
8115   return 0;
8116 }
8117 _ACEOF
8118 rm -f conftest.$ac_objext
8119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8120   (eval $ac_compile) 2>&5
8121   ac_status=$?
8122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123   (exit $ac_status); } &&
8124          { ac_try='test -s conftest.$ac_objext'
8125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126   (eval $ac_try) 2>&5
8127   ac_status=$?
8128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); }; }; then
8130   ac_cv_have_decl_lseek=yes
8131 else
8132   echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8134
8135 ac_cv_have_decl_lseek=no
8136 fi
8137 rm -f conftest.$ac_objext conftest.$ac_ext
8138 fi
8139 echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
8140 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6
8141 if test $ac_cv_have_decl_lseek = yes; then
8142
8143 cat >>confdefs.h <<_ACEOF
8144 #define HAVE_DECL_LSEEK 1
8145 _ACEOF
8146
8147
8148 else
8149   cat >>confdefs.h <<_ACEOF
8150 #define HAVE_DECL_LSEEK 0
8151 _ACEOF
8152
8153
8154 fi
8155 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
8156 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
8157 if test "${ac_cv_have_decl_malloc+set}" = set; then
8158   echo $ECHO_N "(cached) $ECHO_C" >&6
8159 else
8160   cat >conftest.$ac_ext <<_ACEOF
8161 /* confdefs.h.  */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h.  */
8166 $headers
8167
8168 int
8169 main ()
8170 {
8171 #ifndef malloc
8172   char *p = (char *) malloc;
8173 #endif
8174
8175   ;
8176   return 0;
8177 }
8178 _ACEOF
8179 rm -f conftest.$ac_objext
8180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8181   (eval $ac_compile) 2>&5
8182   ac_status=$?
8183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184   (exit $ac_status); } &&
8185          { ac_try='test -s conftest.$ac_objext'
8186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187   (eval $ac_try) 2>&5
8188   ac_status=$?
8189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190   (exit $ac_status); }; }; then
8191   ac_cv_have_decl_malloc=yes
8192 else
8193   echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8195
8196 ac_cv_have_decl_malloc=no
8197 fi
8198 rm -f conftest.$ac_objext conftest.$ac_ext
8199 fi
8200 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
8201 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
8202 if test $ac_cv_have_decl_malloc = yes; then
8203
8204 cat >>confdefs.h <<_ACEOF
8205 #define HAVE_DECL_MALLOC 1
8206 _ACEOF
8207
8208
8209 else
8210   cat >>confdefs.h <<_ACEOF
8211 #define HAVE_DECL_MALLOC 0
8212 _ACEOF
8213
8214
8215 fi
8216 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
8217 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
8218 if test "${ac_cv_have_decl_memchr+set}" = set; then
8219   echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221   cat >conftest.$ac_ext <<_ACEOF
8222 /* confdefs.h.  */
8223 _ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h.  */
8227 $headers
8228
8229 int
8230 main ()
8231 {
8232 #ifndef memchr
8233   char *p = (char *) memchr;
8234 #endif
8235
8236   ;
8237   return 0;
8238 }
8239 _ACEOF
8240 rm -f conftest.$ac_objext
8241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8242   (eval $ac_compile) 2>&5
8243   ac_status=$?
8244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245   (exit $ac_status); } &&
8246          { ac_try='test -s conftest.$ac_objext'
8247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248   (eval $ac_try) 2>&5
8249   ac_status=$?
8250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251   (exit $ac_status); }; }; then
8252   ac_cv_have_decl_memchr=yes
8253 else
8254   echo "$as_me: failed program was:" >&5
8255 sed 's/^/| /' conftest.$ac_ext >&5
8256
8257 ac_cv_have_decl_memchr=no
8258 fi
8259 rm -f conftest.$ac_objext conftest.$ac_ext
8260 fi
8261 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
8262 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
8263 if test $ac_cv_have_decl_memchr = yes; then
8264
8265 cat >>confdefs.h <<_ACEOF
8266 #define HAVE_DECL_MEMCHR 1
8267 _ACEOF
8268
8269
8270 else
8271   cat >>confdefs.h <<_ACEOF
8272 #define HAVE_DECL_MEMCHR 0
8273 _ACEOF
8274
8275
8276 fi
8277 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
8278 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
8279 if test "${ac_cv_have_decl_memrchr+set}" = set; then
8280   echo $ECHO_N "(cached) $ECHO_C" >&6
8281 else
8282   cat >conftest.$ac_ext <<_ACEOF
8283 /* confdefs.h.  */
8284 _ACEOF
8285 cat confdefs.h >>conftest.$ac_ext
8286 cat >>conftest.$ac_ext <<_ACEOF
8287 /* end confdefs.h.  */
8288 $headers
8289
8290 int
8291 main ()
8292 {
8293 #ifndef memrchr
8294   char *p = (char *) memrchr;
8295 #endif
8296
8297   ;
8298   return 0;
8299 }
8300 _ACEOF
8301 rm -f conftest.$ac_objext
8302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8303   (eval $ac_compile) 2>&5
8304   ac_status=$?
8305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306   (exit $ac_status); } &&
8307          { ac_try='test -s conftest.$ac_objext'
8308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309   (eval $ac_try) 2>&5
8310   ac_status=$?
8311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312   (exit $ac_status); }; }; then
8313   ac_cv_have_decl_memrchr=yes
8314 else
8315   echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8317
8318 ac_cv_have_decl_memrchr=no
8319 fi
8320 rm -f conftest.$ac_objext conftest.$ac_ext
8321 fi
8322 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
8323 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
8324 if test $ac_cv_have_decl_memrchr = yes; then
8325
8326 cat >>confdefs.h <<_ACEOF
8327 #define HAVE_DECL_MEMRCHR 1
8328 _ACEOF
8329
8330
8331 else
8332   cat >>confdefs.h <<_ACEOF
8333 #define HAVE_DECL_MEMRCHR 0
8334 _ACEOF
8335
8336
8337 fi
8338 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
8339 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
8340 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
8341   echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343   cat >conftest.$ac_ext <<_ACEOF
8344 /* confdefs.h.  */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h.  */
8349 $headers
8350
8351 int
8352 main ()
8353 {
8354 #ifndef nanosleep
8355   char *p = (char *) nanosleep;
8356 #endif
8357
8358   ;
8359   return 0;
8360 }
8361 _ACEOF
8362 rm -f conftest.$ac_objext
8363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8364   (eval $ac_compile) 2>&5
8365   ac_status=$?
8366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367   (exit $ac_status); } &&
8368          { ac_try='test -s conftest.$ac_objext'
8369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370   (eval $ac_try) 2>&5
8371   ac_status=$?
8372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373   (exit $ac_status); }; }; then
8374   ac_cv_have_decl_nanosleep=yes
8375 else
8376   echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8378
8379 ac_cv_have_decl_nanosleep=no
8380 fi
8381 rm -f conftest.$ac_objext conftest.$ac_ext
8382 fi
8383 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
8384 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
8385 if test $ac_cv_have_decl_nanosleep = yes; then
8386
8387 cat >>confdefs.h <<_ACEOF
8388 #define HAVE_DECL_NANOSLEEP 1
8389 _ACEOF
8390
8391
8392 else
8393   cat >>confdefs.h <<_ACEOF
8394 #define HAVE_DECL_NANOSLEEP 0
8395 _ACEOF
8396
8397
8398 fi
8399 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
8400 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
8401 if test "${ac_cv_have_decl_realloc+set}" = set; then
8402   echo $ECHO_N "(cached) $ECHO_C" >&6
8403 else
8404   cat >conftest.$ac_ext <<_ACEOF
8405 /* confdefs.h.  */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h.  */
8410 $headers
8411
8412 int
8413 main ()
8414 {
8415 #ifndef realloc
8416   char *p = (char *) realloc;
8417 #endif
8418
8419   ;
8420   return 0;
8421 }
8422 _ACEOF
8423 rm -f conftest.$ac_objext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8425   (eval $ac_compile) 2>&5
8426   ac_status=$?
8427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428   (exit $ac_status); } &&
8429          { ac_try='test -s conftest.$ac_objext'
8430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8431   (eval $ac_try) 2>&5
8432   ac_status=$?
8433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434   (exit $ac_status); }; }; then
8435   ac_cv_have_decl_realloc=yes
8436 else
8437   echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8439
8440 ac_cv_have_decl_realloc=no
8441 fi
8442 rm -f conftest.$ac_objext conftest.$ac_ext
8443 fi
8444 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
8445 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
8446 if test $ac_cv_have_decl_realloc = yes; then
8447
8448 cat >>confdefs.h <<_ACEOF
8449 #define HAVE_DECL_REALLOC 1
8450 _ACEOF
8451
8452
8453 else
8454   cat >>confdefs.h <<_ACEOF
8455 #define HAVE_DECL_REALLOC 0
8456 _ACEOF
8457
8458
8459 fi
8460 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
8461 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
8462 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
8463   echo $ECHO_N "(cached) $ECHO_C" >&6
8464 else
8465   cat >conftest.$ac_ext <<_ACEOF
8466 /* confdefs.h.  */
8467 _ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h.  */
8471 $headers
8472
8473 int
8474 main ()
8475 {
8476 #ifndef stpcpy
8477   char *p = (char *) stpcpy;
8478 #endif
8479
8480   ;
8481   return 0;
8482 }
8483 _ACEOF
8484 rm -f conftest.$ac_objext
8485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8486   (eval $ac_compile) 2>&5
8487   ac_status=$?
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); } &&
8490          { ac_try='test -s conftest.$ac_objext'
8491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492   (eval $ac_try) 2>&5
8493   ac_status=$?
8494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); }; }; then
8496   ac_cv_have_decl_stpcpy=yes
8497 else
8498   echo "$as_me: failed program was:" >&5
8499 sed 's/^/| /' conftest.$ac_ext >&5
8500
8501 ac_cv_have_decl_stpcpy=no
8502 fi
8503 rm -f conftest.$ac_objext conftest.$ac_ext
8504 fi
8505 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
8506 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
8507 if test $ac_cv_have_decl_stpcpy = yes; then
8508
8509 cat >>confdefs.h <<_ACEOF
8510 #define HAVE_DECL_STPCPY 1
8511 _ACEOF
8512
8513
8514 else
8515   cat >>confdefs.h <<_ACEOF
8516 #define HAVE_DECL_STPCPY 0
8517 _ACEOF
8518
8519
8520 fi
8521 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
8522 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
8523 if test "${ac_cv_have_decl_strndup+set}" = set; then
8524   echo $ECHO_N "(cached) $ECHO_C" >&6
8525 else
8526   cat >conftest.$ac_ext <<_ACEOF
8527 /* confdefs.h.  */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h.  */
8532 $headers
8533
8534 int
8535 main ()
8536 {
8537 #ifndef strndup
8538   char *p = (char *) strndup;
8539 #endif
8540
8541   ;
8542   return 0;
8543 }
8544 _ACEOF
8545 rm -f conftest.$ac_objext
8546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8547   (eval $ac_compile) 2>&5
8548   ac_status=$?
8549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550   (exit $ac_status); } &&
8551          { ac_try='test -s conftest.$ac_objext'
8552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553   (eval $ac_try) 2>&5
8554   ac_status=$?
8555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556   (exit $ac_status); }; }; then
8557   ac_cv_have_decl_strndup=yes
8558 else
8559   echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8561
8562 ac_cv_have_decl_strndup=no
8563 fi
8564 rm -f conftest.$ac_objext conftest.$ac_ext
8565 fi
8566 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
8567 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
8568 if test $ac_cv_have_decl_strndup = yes; then
8569
8570 cat >>confdefs.h <<_ACEOF
8571 #define HAVE_DECL_STRNDUP 1
8572 _ACEOF
8573
8574
8575 else
8576   cat >>confdefs.h <<_ACEOF
8577 #define HAVE_DECL_STRNDUP 0
8578 _ACEOF
8579
8580
8581 fi
8582 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
8583 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
8584 if test "${ac_cv_have_decl_strnlen+set}" = set; then
8585   echo $ECHO_N "(cached) $ECHO_C" >&6
8586 else
8587   cat >conftest.$ac_ext <<_ACEOF
8588 /* confdefs.h.  */
8589 _ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h.  */
8593 $headers
8594
8595 int
8596 main ()
8597 {
8598 #ifndef strnlen
8599   char *p = (char *) strnlen;
8600 #endif
8601
8602   ;
8603   return 0;
8604 }
8605 _ACEOF
8606 rm -f conftest.$ac_objext
8607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8608   (eval $ac_compile) 2>&5
8609   ac_status=$?
8610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); } &&
8612          { ac_try='test -s conftest.$ac_objext'
8613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614   (eval $ac_try) 2>&5
8615   ac_status=$?
8616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617   (exit $ac_status); }; }; then
8618   ac_cv_have_decl_strnlen=yes
8619 else
8620   echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8622
8623 ac_cv_have_decl_strnlen=no
8624 fi
8625 rm -f conftest.$ac_objext conftest.$ac_ext
8626 fi
8627 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
8628 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
8629 if test $ac_cv_have_decl_strnlen = yes; then
8630
8631 cat >>confdefs.h <<_ACEOF
8632 #define HAVE_DECL_STRNLEN 1
8633 _ACEOF
8634
8635
8636 else
8637   cat >>confdefs.h <<_ACEOF
8638 #define HAVE_DECL_STRNLEN 0
8639 _ACEOF
8640
8641
8642 fi
8643 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
8644 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
8645 if test "${ac_cv_have_decl_strstr+set}" = set; then
8646   echo $ECHO_N "(cached) $ECHO_C" >&6
8647 else
8648   cat >conftest.$ac_ext <<_ACEOF
8649 /* confdefs.h.  */
8650 _ACEOF
8651 cat confdefs.h >>conftest.$ac_ext
8652 cat >>conftest.$ac_ext <<_ACEOF
8653 /* end confdefs.h.  */
8654 $headers
8655
8656 int
8657 main ()
8658 {
8659 #ifndef strstr
8660   char *p = (char *) strstr;
8661 #endif
8662
8663   ;
8664   return 0;
8665 }
8666 _ACEOF
8667 rm -f conftest.$ac_objext
8668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8669   (eval $ac_compile) 2>&5
8670   ac_status=$?
8671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672   (exit $ac_status); } &&
8673          { ac_try='test -s conftest.$ac_objext'
8674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675   (eval $ac_try) 2>&5
8676   ac_status=$?
8677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678   (exit $ac_status); }; }; then
8679   ac_cv_have_decl_strstr=yes
8680 else
8681   echo "$as_me: failed program was:" >&5
8682 sed 's/^/| /' conftest.$ac_ext >&5
8683
8684 ac_cv_have_decl_strstr=no
8685 fi
8686 rm -f conftest.$ac_objext conftest.$ac_ext
8687 fi
8688 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
8689 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
8690 if test $ac_cv_have_decl_strstr = yes; then
8691
8692 cat >>confdefs.h <<_ACEOF
8693 #define HAVE_DECL_STRSTR 1
8694 _ACEOF
8695
8696
8697 else
8698   cat >>confdefs.h <<_ACEOF
8699 #define HAVE_DECL_STRSTR 0
8700 _ACEOF
8701
8702
8703 fi
8704 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
8705 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
8706 if test "${ac_cv_have_decl_strtoul+set}" = set; then
8707   echo $ECHO_N "(cached) $ECHO_C" >&6
8708 else
8709   cat >conftest.$ac_ext <<_ACEOF
8710 /* confdefs.h.  */
8711 _ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h.  */
8715 $headers
8716
8717 int
8718 main ()
8719 {
8720 #ifndef strtoul
8721   char *p = (char *) strtoul;
8722 #endif
8723
8724   ;
8725   return 0;
8726 }
8727 _ACEOF
8728 rm -f conftest.$ac_objext
8729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8730   (eval $ac_compile) 2>&5
8731   ac_status=$?
8732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733   (exit $ac_status); } &&
8734          { ac_try='test -s conftest.$ac_objext'
8735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736   (eval $ac_try) 2>&5
8737   ac_status=$?
8738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739   (exit $ac_status); }; }; then
8740   ac_cv_have_decl_strtoul=yes
8741 else
8742   echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8744
8745 ac_cv_have_decl_strtoul=no
8746 fi
8747 rm -f conftest.$ac_objext conftest.$ac_ext
8748 fi
8749 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
8750 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
8751 if test $ac_cv_have_decl_strtoul = yes; then
8752
8753 cat >>confdefs.h <<_ACEOF
8754 #define HAVE_DECL_STRTOUL 1
8755 _ACEOF
8756
8757
8758 else
8759   cat >>confdefs.h <<_ACEOF
8760 #define HAVE_DECL_STRTOUL 0
8761 _ACEOF
8762
8763
8764 fi
8765 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
8766 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
8767 if test "${ac_cv_have_decl_strtoull+set}" = set; then
8768   echo $ECHO_N "(cached) $ECHO_C" >&6
8769 else
8770   cat >conftest.$ac_ext <<_ACEOF
8771 /* confdefs.h.  */
8772 _ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h.  */
8776 $headers
8777
8778 int
8779 main ()
8780 {
8781 #ifndef strtoull
8782   char *p = (char *) strtoull;
8783 #endif
8784
8785   ;
8786   return 0;
8787 }
8788 _ACEOF
8789 rm -f conftest.$ac_objext
8790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8791   (eval $ac_compile) 2>&5
8792   ac_status=$?
8793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794   (exit $ac_status); } &&
8795          { ac_try='test -s conftest.$ac_objext'
8796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797   (eval $ac_try) 2>&5
8798   ac_status=$?
8799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800   (exit $ac_status); }; }; then
8801   ac_cv_have_decl_strtoull=yes
8802 else
8803   echo "$as_me: failed program was:" >&5
8804 sed 's/^/| /' conftest.$ac_ext >&5
8805
8806 ac_cv_have_decl_strtoull=no
8807 fi
8808 rm -f conftest.$ac_objext conftest.$ac_ext
8809 fi
8810 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
8811 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
8812 if test $ac_cv_have_decl_strtoull = yes; then
8813
8814 cat >>confdefs.h <<_ACEOF
8815 #define HAVE_DECL_STRTOULL 1
8816 _ACEOF
8817
8818
8819 else
8820   cat >>confdefs.h <<_ACEOF
8821 #define HAVE_DECL_STRTOULL 0
8822 _ACEOF
8823
8824
8825 fi
8826 echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
8827 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6
8828 if test "${ac_cv_have_decl_ttyname+set}" = set; then
8829   echo $ECHO_N "(cached) $ECHO_C" >&6
8830 else
8831   cat >conftest.$ac_ext <<_ACEOF
8832 /* confdefs.h.  */
8833 _ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h.  */
8837 $headers
8838
8839 int
8840 main ()
8841 {
8842 #ifndef ttyname
8843   char *p = (char *) ttyname;
8844 #endif
8845
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_decl_ttyname=yes
8863 else
8864   echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8866
8867 ac_cv_have_decl_ttyname=no
8868 fi
8869 rm -f conftest.$ac_objext conftest.$ac_ext
8870 fi
8871 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
8872 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6
8873 if test $ac_cv_have_decl_ttyname = yes; then
8874
8875 cat >>confdefs.h <<_ACEOF
8876 #define HAVE_DECL_TTYNAME 1
8877 _ACEOF
8878
8879
8880 else
8881   cat >>confdefs.h <<_ACEOF
8882 #define HAVE_DECL_TTYNAME 0
8883 _ACEOF
8884
8885
8886 fi
8887
8888
8889
8890
8891
8892
8893   am_getline_needs_run_time_check=no
8894   echo "$as_me:$LINENO: checking for getline" >&5
8895 echo $ECHO_N "checking for getline... $ECHO_C" >&6
8896 if test "${ac_cv_func_getline+set}" = set; then
8897   echo $ECHO_N "(cached) $ECHO_C" >&6
8898 else
8899   cat >conftest.$ac_ext <<_ACEOF
8900 /* confdefs.h.  */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h.  */
8905 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
8906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8907 #define getline innocuous_getline
8908
8909 /* System header to define __stub macros and hopefully few prototypes,
8910     which can conflict with char getline (); below.
8911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8912     <limits.h> exists even on freestanding compilers.  */
8913
8914 #ifdef __STDC__
8915 # include <limits.h>
8916 #else
8917 # include <assert.h>
8918 #endif
8919
8920 #undef getline
8921
8922 /* Override any gcc2 internal prototype to avoid an error.  */
8923 #ifdef __cplusplus
8924 extern "C"
8925 {
8926 #endif
8927 /* We use char because int might match the return type of a gcc2
8928    builtin and then its argument prototype would still apply.  */
8929 char getline ();
8930 /* The GNU C library defines this for functions which it implements
8931     to always fail with ENOSYS.  Some functions are actually named
8932     something starting with __ and the normal name is an alias.  */
8933 #if defined (__stub_getline) || defined (__stub___getline)
8934 choke me
8935 #else
8936 char (*f) () = getline;
8937 #endif
8938 #ifdef __cplusplus
8939 }
8940 #endif
8941
8942 int
8943 main ()
8944 {
8945 return f != getline;
8946   ;
8947   return 0;
8948 }
8949 _ACEOF
8950 rm -f conftest.$ac_objext conftest$ac_exeext
8951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8952   (eval $ac_link) 2>&5
8953   ac_status=$?
8954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955   (exit $ac_status); } &&
8956          { ac_try='test -s conftest$ac_exeext'
8957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958   (eval $ac_try) 2>&5
8959   ac_status=$?
8960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961   (exit $ac_status); }; }; then
8962   ac_cv_func_getline=yes
8963 else
8964   echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8966
8967 ac_cv_func_getline=no
8968 fi
8969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8970 fi
8971 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
8972 echo "${ECHO_T}$ac_cv_func_getline" >&6
8973 if test $ac_cv_func_getline = yes; then
8974                 am_getline_needs_run_time_check=yes
8975 else
8976   am_cv_func_working_getline=no
8977 fi
8978
8979   if test $am_getline_needs_run_time_check = yes; then
8980     echo "$as_me:$LINENO: checking for working getline function" >&5
8981 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
8982 if test "${am_cv_func_working_getline+set}" = set; then
8983   echo $ECHO_N "(cached) $ECHO_C" >&6
8984 else
8985   echo fooN |tr -d '\012'|tr N '\012' > conftest.data
8986
8987 if test "$cross_compiling" = yes; then
8988   am_cv_func_working_getline=no
8989 else
8990   cat >conftest.$ac_ext <<_ACEOF
8991 /* confdefs.h.  */
8992 _ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h.  */
8996
8997 #    include <stdio.h>
8998 #    include <stdlib.h>
8999 #    include <string.h>
9000     int main ()
9001     { /* Based on a test program from Karl Heuer.  */
9002       char *line = NULL;
9003       size_t siz = 0;
9004       int len;
9005       FILE *in = fopen ("./conftest.data", "r");
9006       if (!in)
9007         return 1;
9008       len = getline (&line, &siz, in);
9009       exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
9010     }
9011
9012 _ACEOF
9013 rm -f conftest$ac_exeext
9014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9015   (eval $ac_link) 2>&5
9016   ac_status=$?
9017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020   (eval $ac_try) 2>&5
9021   ac_status=$?
9022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023   (exit $ac_status); }; }; then
9024   am_cv_func_working_getline=yes
9025 else
9026   echo "$as_me: program exited with status $ac_status" >&5
9027 echo "$as_me: failed program was:" >&5
9028 sed 's/^/| /' conftest.$ac_ext >&5
9029
9030 ( exit $ac_status )
9031 am_cv_func_working_getline=no
9032 fi
9033 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9034 fi
9035 fi
9036 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
9037 echo "${ECHO_T}$am_cv_func_working_getline" >&6
9038   fi
9039
9040   if test $am_cv_func_working_getline = no; then
9041
9042 cat >>confdefs.h <<\_ACEOF
9043 #define getline gnu_getline
9044 _ACEOF
9045
9046     LIBOBJS="$LIBOBJS getline.$ac_objext"
9047     LIBOBJS="$LIBOBJS getndelim2.$ac_objext"
9048
9049
9050 for ac_func in getdelim
9051 do
9052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9053 echo "$as_me:$LINENO: checking for $ac_func" >&5
9054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9055 if eval "test \"\${$as_ac_var+set}\" = set"; then
9056   echo $ECHO_N "(cached) $ECHO_C" >&6
9057 else
9058   cat >conftest.$ac_ext <<_ACEOF
9059 /* confdefs.h.  */
9060 _ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h.  */
9064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9065    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9066 #define $ac_func innocuous_$ac_func
9067
9068 /* System header to define __stub macros and hopefully few prototypes,
9069     which can conflict with char $ac_func (); below.
9070     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9071     <limits.h> exists even on freestanding compilers.  */
9072
9073 #ifdef __STDC__
9074 # include <limits.h>
9075 #else
9076 # include <assert.h>
9077 #endif
9078
9079 #undef $ac_func
9080
9081 /* Override any gcc2 internal prototype to avoid an error.  */
9082 #ifdef __cplusplus
9083 extern "C"
9084 {
9085 #endif
9086 /* We use char because int might match the return type of a gcc2
9087    builtin and then its argument prototype would still apply.  */
9088 char $ac_func ();
9089 /* The GNU C library defines this for functions which it implements
9090     to always fail with ENOSYS.  Some functions are actually named
9091     something starting with __ and the normal name is an alias.  */
9092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9093 choke me
9094 #else
9095 char (*f) () = $ac_func;
9096 #endif
9097 #ifdef __cplusplus
9098 }
9099 #endif
9100
9101 int
9102 main ()
9103 {
9104 return f != $ac_func;
9105   ;
9106   return 0;
9107 }
9108 _ACEOF
9109 rm -f conftest.$ac_objext conftest$ac_exeext
9110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9111   (eval $ac_link) 2>&5
9112   ac_status=$?
9113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114   (exit $ac_status); } &&
9115          { ac_try='test -s conftest$ac_exeext'
9116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117   (eval $ac_try) 2>&5
9118   ac_status=$?
9119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120   (exit $ac_status); }; }; then
9121   eval "$as_ac_var=yes"
9122 else
9123   echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9125
9126 eval "$as_ac_var=no"
9127 fi
9128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9129 fi
9130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9132 if test `eval echo '${'$as_ac_var'}'` = yes; then
9133   cat >>confdefs.h <<_ACEOF
9134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9135 _ACEOF
9136
9137 fi
9138 done
9139
9140
9141
9142
9143
9144
9145   fi
9146
9147 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9148 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9149 if test "${ac_cv_header_stdbool_h+set}" = set; then
9150   echo $ECHO_N "(cached) $ECHO_C" >&6
9151 else
9152
9153 cat >conftest.$ac_ext <<_ACEOF
9154 /* confdefs.h.  */
9155 _ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h.  */
9159
9160           #include <stdbool.h>
9161           #ifndef bool
9162            "error: bool is not defined"
9163           #endif
9164           #ifndef false
9165            "error: false is not defined"
9166           #endif
9167           #if false
9168            "error: false is not 0"
9169           #endif
9170           #ifndef true
9171            "error: false is not defined"
9172           #endif
9173           #if true != 1
9174            "error: true is not 1"
9175           #endif
9176           #ifndef __bool_true_false_are_defined
9177            "error: __bool_true_false_are_defined is not defined"
9178           #endif
9179
9180           struct s { _Bool s: 1; _Bool t; } s;
9181
9182           char a[true == 1 ? 1 : -1];
9183           char b[false == 0 ? 1 : -1];
9184           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9185           char d[(bool) -0.5 == true ? 1 : -1];
9186           bool e = &s;
9187           char f[(_Bool) -0.0 == false ? 1 : -1];
9188           char g[true];
9189           char h[sizeof (_Bool)];
9190           char i[sizeof s.t];
9191
9192 int
9193 main ()
9194 {
9195  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
9196   ;
9197   return 0;
9198 }
9199 _ACEOF
9200 rm -f conftest.$ac_objext
9201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9202   (eval $ac_compile) 2>&5
9203   ac_status=$?
9204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205   (exit $ac_status); } &&
9206          { ac_try='test -s conftest.$ac_objext'
9207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208   (eval $ac_try) 2>&5
9209   ac_status=$?
9210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211   (exit $ac_status); }; }; then
9212   ac_cv_header_stdbool_h=yes
9213 else
9214   echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9216
9217 ac_cv_header_stdbool_h=no
9218 fi
9219 rm -f conftest.$ac_objext conftest.$ac_ext
9220 fi
9221 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9222 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
9223    echo "$as_me:$LINENO: checking for _Bool" >&5
9224 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
9225 if test "${ac_cv_type__Bool+set}" = set; then
9226   echo $ECHO_N "(cached) $ECHO_C" >&6
9227 else
9228   cat >conftest.$ac_ext <<_ACEOF
9229 /* confdefs.h.  */
9230 _ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h.  */
9234 $ac_includes_default
9235 int
9236 main ()
9237 {
9238 if ((_Bool *) 0)
9239   return 0;
9240 if (sizeof (_Bool))
9241   return 0;
9242   ;
9243   return 0;
9244 }
9245 _ACEOF
9246 rm -f conftest.$ac_objext
9247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9248   (eval $ac_compile) 2>&5
9249   ac_status=$?
9250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251   (exit $ac_status); } &&
9252          { ac_try='test -s conftest.$ac_objext'
9253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254   (eval $ac_try) 2>&5
9255   ac_status=$?
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); }; }; then
9258   ac_cv_type__Bool=yes
9259 else
9260   echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9262
9263 ac_cv_type__Bool=no
9264 fi
9265 rm -f conftest.$ac_objext conftest.$ac_ext
9266 fi
9267 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9268 echo "${ECHO_T}$ac_cv_type__Bool" >&6
9269 if test $ac_cv_type__Bool = yes; then
9270
9271 cat >>confdefs.h <<_ACEOF
9272 #define HAVE__BOOL 1
9273 _ACEOF
9274
9275
9276 fi
9277
9278    if test $ac_cv_header_stdbool_h = yes; then
9279
9280 cat >>confdefs.h <<\_ACEOF
9281 #define HAVE_STDBOOL_H 1
9282 _ACEOF
9283
9284    fi
9285
9286
9287
9288   # Define two additional variables used in the Makefile substitution.
9289
9290   if test "$ac_cv_header_stdbool_h" = yes; then
9291     STDBOOL_H=''
9292   else
9293     STDBOOL_H='stdbool.h'
9294   fi
9295
9296
9297   if test "$ac_cv_type__Bool" = yes; then
9298     HAVE__BOOL=1
9299   else
9300     HAVE__BOOL=0
9301   fi
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317       echo "$as_me:$LINENO: checking whether free is declared" >&5
9318 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
9319 if test "${ac_cv_have_decl_free+set}" = set; then
9320   echo $ECHO_N "(cached) $ECHO_C" >&6
9321 else
9322   cat >conftest.$ac_ext <<_ACEOF
9323 /* confdefs.h.  */
9324 _ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h.  */
9328 $ac_includes_default
9329 int
9330 main ()
9331 {
9332 #ifndef free
9333   char *p = (char *) free;
9334 #endif
9335
9336   ;
9337   return 0;
9338 }
9339 _ACEOF
9340 rm -f conftest.$ac_objext
9341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9342   (eval $ac_compile) 2>&5
9343   ac_status=$?
9344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345   (exit $ac_status); } &&
9346          { ac_try='test -s conftest.$ac_objext'
9347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348   (eval $ac_try) 2>&5
9349   ac_status=$?
9350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351   (exit $ac_status); }; }; then
9352   ac_cv_have_decl_free=yes
9353 else
9354   echo "$as_me: failed program was:" >&5
9355 sed 's/^/| /' conftest.$ac_ext >&5
9356
9357 ac_cv_have_decl_free=no
9358 fi
9359 rm -f conftest.$ac_objext conftest.$ac_ext
9360 fi
9361 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
9362 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
9363 if test $ac_cv_have_decl_free = yes; then
9364
9365 cat >>confdefs.h <<_ACEOF
9366 #define HAVE_DECL_FREE 1
9367 _ACEOF
9368
9369
9370 else
9371   cat >>confdefs.h <<_ACEOF
9372 #define HAVE_DECL_FREE 0
9373 _ACEOF
9374
9375
9376 fi
9377
9378
9379
9380   echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
9381 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6
9382 if test "${utils_cv_func_mkdir_trailing_slash_bug+set}" = set; then
9383   echo $ECHO_N "(cached) $ECHO_C" >&6
9384 else
9385
9386       # Arrange for deletion of the temporary directory this test might create.
9387       ac_clean_files="$ac_clean_files confdir-slash"
9388
9389 if test "$cross_compiling" = yes; then
9390   utils_cv_func_mkdir_trailing_slash_bug=yes
9391
9392 else
9393   cat >conftest.$ac_ext <<_ACEOF
9394 /* confdefs.h.  */
9395 _ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h.  */
9399
9400 #       include <sys/types.h>
9401 #       include <sys/stat.h>
9402 #       include <stdlib.h>
9403         int main ()
9404         {
9405           rmdir ("confdir-slash");
9406           exit (mkdir ("confdir-slash/", 0700));
9407         }
9408
9409 _ACEOF
9410 rm -f conftest$ac_exeext
9411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9412   (eval $ac_link) 2>&5
9413   ac_status=$?
9414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417   (eval $ac_try) 2>&5
9418   ac_status=$?
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); }; }; then
9421   utils_cv_func_mkdir_trailing_slash_bug=no
9422 else
9423   echo "$as_me: program exited with status $ac_status" >&5
9424 echo "$as_me: failed program was:" >&5
9425 sed 's/^/| /' conftest.$ac_ext >&5
9426
9427 ( exit $ac_status )
9428 utils_cv_func_mkdir_trailing_slash_bug=yes
9429 fi
9430 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9431 fi
9432
9433
9434 fi
9435 echo "$as_me:$LINENO: result: $utils_cv_func_mkdir_trailing_slash_bug" >&5
9436 echo "${ECHO_T}$utils_cv_func_mkdir_trailing_slash_bug" >&6
9437
9438   if test $utils_cv_func_mkdir_trailing_slash_bug = yes; then
9439     LIBOBJS="$LIBOBJS mkdir.$ac_objext"
9440
9441 cat >>confdefs.h <<\_ACEOF
9442 #define mkdir rpl_mkdir
9443 _ACEOF
9444
9445
9446
9447   :
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457   :
9458
9459
9460
9461
9462
9463
9464   fi
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479       echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9480 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
9481 if test "${ac_cv_have_decl_getenv+set}" = set; then
9482   echo $ECHO_N "(cached) $ECHO_C" >&6
9483 else
9484   cat >conftest.$ac_ext <<_ACEOF
9485 /* confdefs.h.  */
9486 _ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h.  */
9490 $ac_includes_default
9491 int
9492 main ()
9493 {
9494 #ifndef getenv
9495   char *p = (char *) getenv;
9496 #endif
9497
9498   ;
9499   return 0;
9500 }
9501 _ACEOF
9502 rm -f conftest.$ac_objext
9503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9504   (eval $ac_compile) 2>&5
9505   ac_status=$?
9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); } &&
9508          { ac_try='test -s conftest.$ac_objext'
9509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510   (eval $ac_try) 2>&5
9511   ac_status=$?
9512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513   (exit $ac_status); }; }; then
9514   ac_cv_have_decl_getenv=yes
9515 else
9516   echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9518
9519 ac_cv_have_decl_getenv=no
9520 fi
9521 rm -f conftest.$ac_objext conftest.$ac_ext
9522 fi
9523 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9524 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
9525 if test $ac_cv_have_decl_getenv = yes; then
9526
9527 cat >>confdefs.h <<_ACEOF
9528 #define HAVE_DECL_GETENV 1
9529 _ACEOF
9530
9531
9532 else
9533   cat >>confdefs.h <<_ACEOF
9534 #define HAVE_DECL_GETENV 0
9535 _ACEOF
9536
9537
9538 fi
9539
9540
9541
9542
9543 for ac_func in mkstemp
9544 do
9545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9546 echo "$as_me:$LINENO: checking for $ac_func" >&5
9547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9548 if eval "test \"\${$as_ac_var+set}\" = set"; then
9549   echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551   cat >conftest.$ac_ext <<_ACEOF
9552 /* confdefs.h.  */
9553 _ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h.  */
9557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9558    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9559 #define $ac_func innocuous_$ac_func
9560
9561 /* System header to define __stub macros and hopefully few prototypes,
9562     which can conflict with char $ac_func (); below.
9563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9564     <limits.h> exists even on freestanding compilers.  */
9565
9566 #ifdef __STDC__
9567 # include <limits.h>
9568 #else
9569 # include <assert.h>
9570 #endif
9571
9572 #undef $ac_func
9573
9574 /* Override any gcc2 internal prototype to avoid an error.  */
9575 #ifdef __cplusplus
9576 extern "C"
9577 {
9578 #endif
9579 /* We use char because int might match the return type of a gcc2
9580    builtin and then its argument prototype would still apply.  */
9581 char $ac_func ();
9582 /* The GNU C library defines this for functions which it implements
9583     to always fail with ENOSYS.  Some functions are actually named
9584     something starting with __ and the normal name is an alias.  */
9585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9586 choke me
9587 #else
9588 char (*f) () = $ac_func;
9589 #endif
9590 #ifdef __cplusplus
9591 }
9592 #endif
9593
9594 int
9595 main ()
9596 {
9597 return f != $ac_func;
9598   ;
9599   return 0;
9600 }
9601 _ACEOF
9602 rm -f conftest.$ac_objext conftest$ac_exeext
9603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9604   (eval $ac_link) 2>&5
9605   ac_status=$?
9606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607   (exit $ac_status); } &&
9608          { ac_try='test -s conftest$ac_exeext'
9609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9610   (eval $ac_try) 2>&5
9611   ac_status=$?
9612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613   (exit $ac_status); }; }; then
9614   eval "$as_ac_var=yes"
9615 else
9616   echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9618
9619 eval "$as_ac_var=no"
9620 fi
9621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9622 fi
9623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9625 if test `eval echo '${'$as_ac_var'}'` = yes; then
9626   cat >>confdefs.h <<_ACEOF
9627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9628 _ACEOF
9629
9630 else
9631   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9632 fi
9633 done
9634
9635
9636   if test $ac_cv_func_mkstemp = no; then
9637     utils_cv_func_mkstemp_limitations=yes
9638   else
9639     echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
9640 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
9641 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
9642   echo $ECHO_N "(cached) $ECHO_C" >&6
9643 else
9644
9645
9646 if test "$cross_compiling" = yes; then
9647   utils_cv_func_mkstemp_limitations=yes
9648
9649 else
9650   cat >conftest.$ac_ext <<_ACEOF
9651 /* confdefs.h.  */
9652 _ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h.  */
9656
9657 #         include <stdlib.h>
9658           int main ()
9659           {
9660             int i;
9661             for (i = 0; i < 70; i++)
9662               {
9663                 char template[] = "conftestXXXXXX";
9664                 int fd = mkstemp (template);
9665                 if (fd == -1)
9666                   exit (1);
9667                 close (fd);
9668               }
9669             exit (0);
9670           }
9671
9672 _ACEOF
9673 rm -f conftest$ac_exeext
9674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9675   (eval $ac_link) 2>&5
9676   ac_status=$?
9677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680   (eval $ac_try) 2>&5
9681   ac_status=$?
9682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683   (exit $ac_status); }; }; then
9684   utils_cv_func_mkstemp_limitations=no
9685 else
9686   echo "$as_me: program exited with status $ac_status" >&5
9687 echo "$as_me: failed program was:" >&5
9688 sed 's/^/| /' conftest.$ac_ext >&5
9689
9690 ( exit $ac_status )
9691 utils_cv_func_mkstemp_limitations=yes
9692 fi
9693 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9694 fi
9695
9696
9697 fi
9698 echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
9699 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6
9700   fi
9701
9702   if test $utils_cv_func_mkstemp_limitations = yes; then
9703     LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
9704     LIBOBJS="$LIBOBJS tempname.$ac_objext"
9705
9706 cat >>confdefs.h <<\_ACEOF
9707 #define mkstemp rpl_mkstemp
9708 _ACEOF
9709
9710
9711
9712
9713
9714
9715
9716   :
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729 for ac_header in stdint.h
9730 do
9731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9733   echo "$as_me:$LINENO: checking for $ac_header" >&5
9734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9736   echo $ECHO_N "(cached) $ECHO_C" >&6
9737 fi
9738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9740 else
9741   # Is the header compilable?
9742 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9744 cat >conftest.$ac_ext <<_ACEOF
9745 /* confdefs.h.  */
9746 _ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h.  */
9750 $ac_includes_default
9751 #include <$ac_header>
9752 _ACEOF
9753 rm -f conftest.$ac_objext
9754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9755   (eval $ac_compile) 2>&5
9756   ac_status=$?
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); } &&
9759          { ac_try='test -s conftest.$ac_objext'
9760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761   (eval $ac_try) 2>&5
9762   ac_status=$?
9763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764   (exit $ac_status); }; }; then
9765   ac_header_compiler=yes
9766 else
9767   echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9769
9770 ac_header_compiler=no
9771 fi
9772 rm -f conftest.$ac_objext conftest.$ac_ext
9773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9774 echo "${ECHO_T}$ac_header_compiler" >&6
9775
9776 # Is the header present?
9777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9779 cat >conftest.$ac_ext <<_ACEOF
9780 /* confdefs.h.  */
9781 _ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h.  */
9785 #include <$ac_header>
9786 _ACEOF
9787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9788   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9789   ac_status=$?
9790   grep -v '^ *+' conftest.er1 >conftest.err
9791   rm -f conftest.er1
9792   cat conftest.err >&5
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); } >/dev/null; then
9795   if test -s conftest.err; then
9796     ac_cpp_err=$ac_c_preproc_warn_flag
9797   else
9798     ac_cpp_err=
9799   fi
9800 else
9801   ac_cpp_err=yes
9802 fi
9803 if test -z "$ac_cpp_err"; then
9804   ac_header_preproc=yes
9805 else
9806   echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9808
9809   ac_header_preproc=no
9810 fi
9811 rm -f conftest.err conftest.$ac_ext
9812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9813 echo "${ECHO_T}$ac_header_preproc" >&6
9814
9815 # So?  What about this header?
9816 case $ac_header_compiler:$ac_header_preproc in
9817   yes:no )
9818     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9822     ac_header_preproc=yes
9823     ;;
9824   no:yes )
9825     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9827     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9828 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9829     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9831     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9832 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9835     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9837     (
9838       cat <<\_ASBOX
9839 ## ------------------------------------ ##
9840 ## Report this to bug-coreutils@gnu.org ##
9841 ## ------------------------------------ ##
9842 _ASBOX
9843     ) |
9844       sed "s/^/$as_me: WARNING:     /" >&2
9845     ;;
9846 esac
9847 echo "$as_me:$LINENO: checking for $ac_header" >&5
9848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9850   echo $ECHO_N "(cached) $ECHO_C" >&6
9851 else
9852   eval "$as_ac_Header=\$ac_header_preproc"
9853 fi
9854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9856
9857 fi
9858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9859   cat >>confdefs.h <<_ACEOF
9860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9861 _ACEOF
9862
9863 fi
9864
9865 done
9866
9867
9868
9869 for ac_func in __secure_getenv gettimeofday
9870 do
9871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9872 echo "$as_me:$LINENO: checking for $ac_func" >&5
9873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9874 if eval "test \"\${$as_ac_var+set}\" = set"; then
9875   echo $ECHO_N "(cached) $ECHO_C" >&6
9876 else
9877   cat >conftest.$ac_ext <<_ACEOF
9878 /* confdefs.h.  */
9879 _ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h.  */
9883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9885 #define $ac_func innocuous_$ac_func
9886
9887 /* System header to define __stub macros and hopefully few prototypes,
9888     which can conflict with char $ac_func (); below.
9889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9890     <limits.h> exists even on freestanding compilers.  */
9891
9892 #ifdef __STDC__
9893 # include <limits.h>
9894 #else
9895 # include <assert.h>
9896 #endif
9897
9898 #undef $ac_func
9899
9900 /* Override any gcc2 internal prototype to avoid an error.  */
9901 #ifdef __cplusplus
9902 extern "C"
9903 {
9904 #endif
9905 /* We use char because int might match the return type of a gcc2
9906    builtin and then its argument prototype would still apply.  */
9907 char $ac_func ();
9908 /* The GNU C library defines this for functions which it implements
9909     to always fail with ENOSYS.  Some functions are actually named
9910     something starting with __ and the normal name is an alias.  */
9911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9912 choke me
9913 #else
9914 char (*f) () = $ac_func;
9915 #endif
9916 #ifdef __cplusplus
9917 }
9918 #endif
9919
9920 int
9921 main ()
9922 {
9923 return f != $ac_func;
9924   ;
9925   return 0;
9926 }
9927 _ACEOF
9928 rm -f conftest.$ac_objext conftest$ac_exeext
9929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9930   (eval $ac_link) 2>&5
9931   ac_status=$?
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); } &&
9934          { ac_try='test -s conftest$ac_exeext'
9935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936   (eval $ac_try) 2>&5
9937   ac_status=$?
9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939   (exit $ac_status); }; }; then
9940   eval "$as_ac_var=yes"
9941 else
9942   echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9944
9945 eval "$as_ac_var=no"
9946 fi
9947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9948 fi
9949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9950 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9951 if test `eval echo '${'$as_ac_var'}'` = yes; then
9952   cat >>confdefs.h <<_ACEOF
9953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9954 _ACEOF
9955
9956 fi
9957 done
9958
9959
9960   :
9961
9962
9963
9964
9965
9966
9967
9968   fi
9969
9970 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
9971 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
9972 if test "${ac_cv_func_closedir_void+set}" = set; then
9973   echo $ECHO_N "(cached) $ECHO_C" >&6
9974 else
9975   if test "$cross_compiling" = yes; then
9976   ac_cv_func_closedir_void=yes
9977 else
9978   cat >conftest.$ac_ext <<_ACEOF
9979 /* confdefs.h.  */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h.  */
9984 $ac_includes_default
9985 #include <$ac_header_dirent>
9986 #ifndef __cplusplus
9987 int closedir ();
9988 #endif
9989
9990 int
9991 main ()
9992 {
9993 exit (closedir (opendir (".")) != 0);
9994   ;
9995   return 0;
9996 }
9997 _ACEOF
9998 rm -f conftest$ac_exeext
9999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10000   (eval $ac_link) 2>&5
10001   ac_status=$?
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005   (eval $ac_try) 2>&5
10006   ac_status=$?
10007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008   (exit $ac_status); }; }; then
10009   ac_cv_func_closedir_void=no
10010 else
10011   echo "$as_me: program exited with status $ac_status" >&5
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10014
10015 ( exit $ac_status )
10016 ac_cv_func_closedir_void=yes
10017 fi
10018 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10019 fi
10020 fi
10021 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
10022 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
10023 if test $ac_cv_func_closedir_void = yes; then
10024
10025 cat >>confdefs.h <<\_ACEOF
10026 #define CLOSEDIR_VOID 1
10027 _ACEOF
10028
10029 fi
10030
10031
10032       echo "$as_me:$LINENO: checking whether malloc is declared" >&5
10033 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
10034 if test "${ac_cv_have_decl_malloc+set}" = set; then
10035   echo $ECHO_N "(cached) $ECHO_C" >&6
10036 else
10037   cat >conftest.$ac_ext <<_ACEOF
10038 /* confdefs.h.  */
10039 _ACEOF
10040 cat confdefs.h >>conftest.$ac_ext
10041 cat >>conftest.$ac_ext <<_ACEOF
10042 /* end confdefs.h.  */
10043 $ac_includes_default
10044 int
10045 main ()
10046 {
10047 #ifndef malloc
10048   char *p = (char *) malloc;
10049 #endif
10050
10051   ;
10052   return 0;
10053 }
10054 _ACEOF
10055 rm -f conftest.$ac_objext
10056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10057   (eval $ac_compile) 2>&5
10058   ac_status=$?
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); } &&
10061          { ac_try='test -s conftest.$ac_objext'
10062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063   (eval $ac_try) 2>&5
10064   ac_status=$?
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); }; }; then
10067   ac_cv_have_decl_malloc=yes
10068 else
10069   echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10071
10072 ac_cv_have_decl_malloc=no
10073 fi
10074 rm -f conftest.$ac_objext conftest.$ac_ext
10075 fi
10076 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
10077 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
10078 if test $ac_cv_have_decl_malloc = yes; then
10079
10080 cat >>confdefs.h <<_ACEOF
10081 #define HAVE_DECL_MALLOC 1
10082 _ACEOF
10083
10084
10085 else
10086   cat >>confdefs.h <<_ACEOF
10087 #define HAVE_DECL_MALLOC 0
10088 _ACEOF
10089
10090
10091 fi
10092
10093
10094
10095
10096     echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
10097 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
10098 if test "${ac_cv_win_or_dos+set}" = set; then
10099   echo $ECHO_N "(cached) $ECHO_C" >&6
10100 else
10101
10102
10103 cat >conftest.$ac_ext <<_ACEOF
10104 /* confdefs.h.  */
10105 _ACEOF
10106 cat confdefs.h >>conftest.$ac_ext
10107 cat >>conftest.$ac_ext <<_ACEOF
10108 /* end confdefs.h.  */
10109
10110 int
10111 main ()
10112 {
10113 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__
10114 neither MSDOS nor Windows
10115 #endif
10116   ;
10117   return 0;
10118 }
10119 _ACEOF
10120 rm -f conftest.$ac_objext
10121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10122   (eval $ac_compile) 2>&5
10123   ac_status=$?
10124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125   (exit $ac_status); } &&
10126          { ac_try='test -s conftest.$ac_objext'
10127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128   (eval $ac_try) 2>&5
10129   ac_status=$?
10130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131   (exit $ac_status); }; }; then
10132   ac_cv_win_or_dos=yes
10133 else
10134   echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10136
10137 ac_cv_win_or_dos=no
10138 fi
10139 rm -f conftest.$ac_objext conftest.$ac_ext
10140
10141 fi
10142 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
10143 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
10144
10145     if test x"$ac_cv_win_or_dos" = xyes; then
10146       ac_fs_accepts_drive_letter_prefix=1
10147       ac_fs_backslash_is_file_name_separator=1
10148     else
10149       ac_fs_accepts_drive_letter_prefix=0
10150       ac_fs_backslash_is_file_name_separator=0
10151     fi
10152
10153
10154
10155
10156
10157 cat >>confdefs.h <<_ACEOF
10158 #define FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
10159 _ACEOF
10160
10161
10162
10163
10164
10165
10166 cat >>confdefs.h <<_ACEOF
10167 #define FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
10168 _ACEOF
10169
10170
10171
10172
10173
10174
10175   :
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185   :
10186
10187
10188
10189
10190
10191
10192
10193
10194      echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
10195 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
10196 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
10197   echo $ECHO_N "(cached) $ECHO_C" >&6
10198 else
10199
10200 cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h.  */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h.  */
10206
10207 #include <sys/types.h>
10208 #ifdef HAVE_DIRENT_H
10209 # include <dirent.h>
10210 #else /* not HAVE_DIRENT_H */
10211 # define dirent direct
10212 # ifdef HAVE_SYS_NDIR_H
10213 #  include <sys/ndir.h>
10214 # endif /* HAVE_SYS_NDIR_H */
10215 # ifdef HAVE_SYS_DIR_H
10216 #  include <sys/dir.h>
10217 # endif /* HAVE_SYS_DIR_H */
10218 # ifdef HAVE_NDIR_H
10219 #  include <ndir.h>
10220 # endif /* HAVE_NDIR_H */
10221 #endif /* HAVE_DIRENT_H */
10222
10223 int
10224 main ()
10225 {
10226 struct dirent dp; dp.d_ino = 0;
10227   ;
10228   return 0;
10229 }
10230 _ACEOF
10231 rm -f conftest.$ac_objext conftest$ac_exeext
10232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10233   (eval $ac_link) 2>&5
10234   ac_status=$?
10235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236   (exit $ac_status); } &&
10237          { ac_try='test -s conftest$ac_exeext'
10238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239   (eval $ac_try) 2>&5
10240   ac_status=$?
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); }; }; then
10243   jm_cv_struct_dirent_d_ino=yes
10244 else
10245   echo "$as_me: failed program was:" >&5
10246 sed 's/^/| /' conftest.$ac_ext >&5
10247
10248 jm_cv_struct_dirent_d_ino=no
10249 fi
10250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10251
10252
10253 fi
10254 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
10255 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
10256    if test $jm_cv_struct_dirent_d_ino = yes; then
10257
10258 cat >>confdefs.h <<\_ACEOF
10259 #define D_INO_IN_DIRENT 1
10260 _ACEOF
10261
10262    fi
10263
10264
10265
10266
10267   echo "$as_me:$LINENO: checking for long file names" >&5
10268 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
10269 if test "${ac_cv_sys_long_file_names+set}" = set; then
10270   echo $ECHO_N "(cached) $ECHO_C" >&6
10271 else
10272   ac_cv_sys_long_file_names=yes
10273 # Test for long file names in all the places we know might matter:
10274 #      .                the current directory, where building will happen
10275 #      $prefix/lib      where we will be installing things
10276 #      $exec_prefix/lib likewise
10277 # eval it to expand exec_prefix.
10278 #      $TMPDIR          if set, where it might want to write temporary files
10279 # if $TMPDIR is not set:
10280 #      /tmp             where it might want to write temporary files
10281 #      /var/tmp         likewise
10282 #      /usr/tmp         likewise
10283 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
10284   ac_tmpdirs=$TMPDIR
10285 else
10286   ac_tmpdirs='/tmp /var/tmp /usr/tmp'
10287 fi
10288 for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
10289   test -d $ac_dir || continue
10290   test -w $ac_dir || continue # It is less confusing to not echo anything here.
10291   ac_xdir=$ac_dir/cf$$
10292   (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
10293   ac_tf1=$ac_xdir/conftest9012345
10294   ac_tf2=$ac_xdir/conftest9012346
10295   (echo 1 >$ac_tf1) 2>/dev/null
10296   (echo 2 >$ac_tf2) 2>/dev/null
10297   ac_val=`cat $ac_tf1 2>/dev/null`
10298   if test ! -f $ac_tf1 || test "$ac_val" != 1; then
10299     ac_cv_sys_long_file_names=no
10300     rm -rf $ac_xdir 2>/dev/null
10301     break
10302   fi
10303   rm -rf $ac_xdir 2>/dev/null
10304 done
10305 fi
10306 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
10307 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
10308 if test $ac_cv_sys_long_file_names = yes; then
10309
10310 cat >>confdefs.h <<\_ACEOF
10311 #define HAVE_LONG_FILE_NAMES 1
10312 _ACEOF
10313
10314 fi
10315
10316
10317   :
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327 for ac_func in pathconf
10328 do
10329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10330 echo "$as_me:$LINENO: checking for $ac_func" >&5
10331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10332 if eval "test \"\${$as_ac_var+set}\" = set"; then
10333   echo $ECHO_N "(cached) $ECHO_C" >&6
10334 else
10335   cat >conftest.$ac_ext <<_ACEOF
10336 /* confdefs.h.  */
10337 _ACEOF
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h.  */
10341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10342    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10343 #define $ac_func innocuous_$ac_func
10344
10345 /* System header to define __stub macros and hopefully few prototypes,
10346     which can conflict with char $ac_func (); below.
10347     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10348     <limits.h> exists even on freestanding compilers.  */
10349
10350 #ifdef __STDC__
10351 # include <limits.h>
10352 #else
10353 # include <assert.h>
10354 #endif
10355
10356 #undef $ac_func
10357
10358 /* Override any gcc2 internal prototype to avoid an error.  */
10359 #ifdef __cplusplus
10360 extern "C"
10361 {
10362 #endif
10363 /* We use char because int might match the return type of a gcc2
10364    builtin and then its argument prototype would still apply.  */
10365 char $ac_func ();
10366 /* The GNU C library defines this for functions which it implements
10367     to always fail with ENOSYS.  Some functions are actually named
10368     something starting with __ and the normal name is an alias.  */
10369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10370 choke me
10371 #else
10372 char (*f) () = $ac_func;
10373 #endif
10374 #ifdef __cplusplus
10375 }
10376 #endif
10377
10378 int
10379 main ()
10380 {
10381 return f != $ac_func;
10382   ;
10383   return 0;
10384 }
10385 _ACEOF
10386 rm -f conftest.$ac_objext conftest$ac_exeext
10387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10388   (eval $ac_link) 2>&5
10389   ac_status=$?
10390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391   (exit $ac_status); } &&
10392          { ac_try='test -s conftest$ac_exeext'
10393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10394   (eval $ac_try) 2>&5
10395   ac_status=$?
10396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397   (exit $ac_status); }; }; then
10398   eval "$as_ac_var=yes"
10399 else
10400   echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10402
10403 eval "$as_ac_var=no"
10404 fi
10405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10406 fi
10407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10409 if test `eval echo '${'$as_ac_var'}'` = yes; then
10410   cat >>confdefs.h <<_ACEOF
10411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10412 _ACEOF
10413
10414 fi
10415 done
10416
10417
10418
10419
10420   :
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436 for ac_header in netdb.h sys/socket.h netinet/in.h arpa/inet.h
10437 do
10438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10440   echo "$as_me:$LINENO: checking for $ac_header" >&5
10441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10443   echo $ECHO_N "(cached) $ECHO_C" >&6
10444 fi
10445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10447 else
10448   # Is the header compilable?
10449 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10451 cat >conftest.$ac_ext <<_ACEOF
10452 /* confdefs.h.  */
10453 _ACEOF
10454 cat confdefs.h >>conftest.$ac_ext
10455 cat >>conftest.$ac_ext <<_ACEOF
10456 /* end confdefs.h.  */
10457 $ac_includes_default
10458 #include <$ac_header>
10459 _ACEOF
10460 rm -f conftest.$ac_objext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10462   (eval $ac_compile) 2>&5
10463   ac_status=$?
10464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465   (exit $ac_status); } &&
10466          { ac_try='test -s conftest.$ac_objext'
10467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468   (eval $ac_try) 2>&5
10469   ac_status=$?
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); }; }; then
10472   ac_header_compiler=yes
10473 else
10474   echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10476
10477 ac_header_compiler=no
10478 fi
10479 rm -f conftest.$ac_objext conftest.$ac_ext
10480 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10481 echo "${ECHO_T}$ac_header_compiler" >&6
10482
10483 # Is the header present?
10484 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10486 cat >conftest.$ac_ext <<_ACEOF
10487 /* confdefs.h.  */
10488 _ACEOF
10489 cat confdefs.h >>conftest.$ac_ext
10490 cat >>conftest.$ac_ext <<_ACEOF
10491 /* end confdefs.h.  */
10492 #include <$ac_header>
10493 _ACEOF
10494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10495   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10496   ac_status=$?
10497   grep -v '^ *+' conftest.er1 >conftest.err
10498   rm -f conftest.er1
10499   cat conftest.err >&5
10500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501   (exit $ac_status); } >/dev/null; then
10502   if test -s conftest.err; then
10503     ac_cpp_err=$ac_c_preproc_warn_flag
10504   else
10505     ac_cpp_err=
10506   fi
10507 else
10508   ac_cpp_err=yes
10509 fi
10510 if test -z "$ac_cpp_err"; then
10511   ac_header_preproc=yes
10512 else
10513   echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.$ac_ext >&5
10515
10516   ac_header_preproc=no
10517 fi
10518 rm -f conftest.err conftest.$ac_ext
10519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10520 echo "${ECHO_T}$ac_header_preproc" >&6
10521
10522 # So?  What about this header?
10523 case $ac_header_compiler:$ac_header_preproc in
10524   yes:no )
10525     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10529     ac_header_preproc=yes
10530     ;;
10531   no:yes )
10532     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10534     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10535 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10536     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10538     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10539 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10542     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10544     (
10545       cat <<\_ASBOX
10546 ## ------------------------------------ ##
10547 ## Report this to bug-coreutils@gnu.org ##
10548 ## ------------------------------------ ##
10549 _ASBOX
10550     ) |
10551       sed "s/^/$as_me: WARNING:     /" >&2
10552     ;;
10553 esac
10554 echo "$as_me:$LINENO: checking for $ac_header" >&5
10555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10557   echo $ECHO_N "(cached) $ECHO_C" >&6
10558 else
10559   eval "$as_ac_Header=\$ac_header_preproc"
10560 fi
10561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10563
10564 fi
10565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10566   cat >>confdefs.h <<_ACEOF
10567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10568 _ACEOF
10569
10570 fi
10571
10572 done
10573
10574
10575
10576   echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
10577 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
10578 if test "${ac_cv_search_gethostbyname+set}" = set; then
10579   echo $ECHO_N "(cached) $ECHO_C" >&6
10580 else
10581
10582     ac_func_search_save_LIBS=$LIBS
10583     ac_cv_search_gethostbyname=no
10584     cat >conftest.$ac_ext <<_ACEOF
10585 /* confdefs.h.  */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h.  */
10590
10591 /* Override any gcc2 internal prototype to avoid an error.  */
10592 #ifdef __cplusplus
10593 extern "C"
10594 #endif
10595 /* We use char because int might match the return type of a gcc2
10596    builtin and then its argument prototype would still apply.  */
10597 char gethostbyname ();
10598 int
10599 main ()
10600 {
10601 gethostbyname ();
10602   ;
10603   return 0;
10604 }
10605 _ACEOF
10606 rm -f conftest.$ac_objext conftest$ac_exeext
10607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10608   (eval $ac_link) 2>&5
10609   ac_status=$?
10610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611   (exit $ac_status); } &&
10612          { ac_try='test -s conftest$ac_exeext'
10613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614   (eval $ac_try) 2>&5
10615   ac_status=$?
10616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617   (exit $ac_status); }; }; then
10618   ac_cv_search_gethostbyname='none required'
10619 else
10620   echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10622
10623 fi
10624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10625     if test "$ac_cv_search_gethostbyname" = no; then
10626       for ac_lib in inet nsl; do
10627         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10628         cat >conftest.$ac_ext <<_ACEOF
10629 /* confdefs.h.  */
10630 _ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h.  */
10634
10635 /* Override any gcc2 internal prototype to avoid an error.  */
10636 #ifdef __cplusplus
10637 extern "C"
10638 #endif
10639 /* We use char because int might match the return type of a gcc2
10640    builtin and then its argument prototype would still apply.  */
10641 char gethostbyname ();
10642 int
10643 main ()
10644 {
10645 gethostbyname ();
10646   ;
10647   return 0;
10648 }
10649 _ACEOF
10650 rm -f conftest.$ac_objext conftest$ac_exeext
10651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10652   (eval $ac_link) 2>&5
10653   ac_status=$?
10654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655   (exit $ac_status); } &&
10656          { ac_try='test -s conftest$ac_exeext'
10657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658   (eval $ac_try) 2>&5
10659   ac_status=$?
10660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661   (exit $ac_status); }; }; then
10662   ac_cv_search_gethostbyname="-l$ac_lib"; break
10663 else
10664   echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10666
10667 fi
10668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10669       done
10670     fi
10671     LIBS=$ac_func_search_save_LIBS
10672
10673 fi
10674 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
10675 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
10676
10677   if test "$ac_cv_search_gethostbyname" = no; then :
10678
10679   else
10680     if test "$ac_cv_search_gethostbyname" = 'none required'; then :
10681
10682     else
10683       LIBS="$ac_cv_search_gethostbyname $LIBS"
10684
10685     fi
10686   fi
10687
10688
10689
10690
10691
10692 for ac_func in gethostbyname gethostbyaddr inet_ntoa
10693 do
10694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10695 echo "$as_me:$LINENO: checking for $ac_func" >&5
10696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10697 if eval "test \"\${$as_ac_var+set}\" = set"; then
10698   echo $ECHO_N "(cached) $ECHO_C" >&6
10699 else
10700   cat >conftest.$ac_ext <<_ACEOF
10701 /* confdefs.h.  */
10702 _ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h.  */
10706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10708 #define $ac_func innocuous_$ac_func
10709
10710 /* System header to define __stub macros and hopefully few prototypes,
10711     which can conflict with char $ac_func (); below.
10712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10713     <limits.h> exists even on freestanding compilers.  */
10714
10715 #ifdef __STDC__
10716 # include <limits.h>
10717 #else
10718 # include <assert.h>
10719 #endif
10720
10721 #undef $ac_func
10722
10723 /* Override any gcc2 internal prototype to avoid an error.  */
10724 #ifdef __cplusplus
10725 extern "C"
10726 {
10727 #endif
10728 /* We use char because int might match the return type of a gcc2
10729    builtin and then its argument prototype would still apply.  */
10730 char $ac_func ();
10731 /* The GNU C library defines this for functions which it implements
10732     to always fail with ENOSYS.  Some functions are actually named
10733     something starting with __ and the normal name is an alias.  */
10734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10735 choke me
10736 #else
10737 char (*f) () = $ac_func;
10738 #endif
10739 #ifdef __cplusplus
10740 }
10741 #endif
10742
10743 int
10744 main ()
10745 {
10746 return f != $ac_func;
10747   ;
10748   return 0;
10749 }
10750 _ACEOF
10751 rm -f conftest.$ac_objext conftest$ac_exeext
10752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10753   (eval $ac_link) 2>&5
10754   ac_status=$?
10755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756   (exit $ac_status); } &&
10757          { ac_try='test -s conftest$ac_exeext'
10758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10759   (eval $ac_try) 2>&5
10760   ac_status=$?
10761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762   (exit $ac_status); }; }; then
10763   eval "$as_ac_var=yes"
10764 else
10765   echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.$ac_ext >&5
10767
10768 eval "$as_ac_var=no"
10769 fi
10770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10771 fi
10772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10773 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10774 if test `eval echo '${'$as_ac_var'}'` = yes; then
10775   cat >>confdefs.h <<_ACEOF
10776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10777 _ACEOF
10778
10779 fi
10780 done
10781
10782
10783
10784
10785   :
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797   :
10798
10799
10800
10801
10802
10803
10804
10805
10806   :
10807
10808
10809
10810
10811
10812
10813
10814
10815   :
10816
10817
10818
10819
10820
10821
10822
10823 for ac_func in vprintf
10824 do
10825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10826 echo "$as_me:$LINENO: checking for $ac_func" >&5
10827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10828 if eval "test \"\${$as_ac_var+set}\" = set"; then
10829   echo $ECHO_N "(cached) $ECHO_C" >&6
10830 else
10831   cat >conftest.$ac_ext <<_ACEOF
10832 /* confdefs.h.  */
10833 _ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h.  */
10837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10838    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10839 #define $ac_func innocuous_$ac_func
10840
10841 /* System header to define __stub macros and hopefully few prototypes,
10842     which can conflict with char $ac_func (); below.
10843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10844     <limits.h> exists even on freestanding compilers.  */
10845
10846 #ifdef __STDC__
10847 # include <limits.h>
10848 #else
10849 # include <assert.h>
10850 #endif
10851
10852 #undef $ac_func
10853
10854 /* Override any gcc2 internal prototype to avoid an error.  */
10855 #ifdef __cplusplus
10856 extern "C"
10857 {
10858 #endif
10859 /* We use char because int might match the return type of a gcc2
10860    builtin and then its argument prototype would still apply.  */
10861 char $ac_func ();
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 char (*f) () = $ac_func;
10869 #endif
10870 #ifdef __cplusplus
10871 }
10872 #endif
10873
10874 int
10875 main ()
10876 {
10877 return f != $ac_func;
10878   ;
10879   return 0;
10880 }
10881 _ACEOF
10882 rm -f conftest.$ac_objext conftest$ac_exeext
10883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10884   (eval $ac_link) 2>&5
10885   ac_status=$?
10886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887   (exit $ac_status); } &&
10888          { ac_try='test -s conftest$ac_exeext'
10889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890   (eval $ac_try) 2>&5
10891   ac_status=$?
10892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893   (exit $ac_status); }; }; then
10894   eval "$as_ac_var=yes"
10895 else
10896   echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10898
10899 eval "$as_ac_var=no"
10900 fi
10901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10902 fi
10903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10905 if test `eval echo '${'$as_ac_var'}'` = yes; then
10906   cat >>confdefs.h <<_ACEOF
10907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10908 _ACEOF
10909
10910 echo "$as_me:$LINENO: checking for _doprnt" >&5
10911 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10912 if test "${ac_cv_func__doprnt+set}" = set; then
10913   echo $ECHO_N "(cached) $ECHO_C" >&6
10914 else
10915   cat >conftest.$ac_ext <<_ACEOF
10916 /* confdefs.h.  */
10917 _ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h.  */
10921 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10922    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10923 #define _doprnt innocuous__doprnt
10924
10925 /* System header to define __stub macros and hopefully few prototypes,
10926     which can conflict with char _doprnt (); below.
10927     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10928     <limits.h> exists even on freestanding compilers.  */
10929
10930 #ifdef __STDC__
10931 # include <limits.h>
10932 #else
10933 # include <assert.h>
10934 #endif
10935
10936 #undef _doprnt
10937
10938 /* Override any gcc2 internal prototype to avoid an error.  */
10939 #ifdef __cplusplus
10940 extern "C"
10941 {
10942 #endif
10943 /* We use char because int might match the return type of a gcc2
10944    builtin and then its argument prototype would still apply.  */
10945 char _doprnt ();
10946 /* The GNU C library defines this for functions which it implements
10947     to always fail with ENOSYS.  Some functions are actually named
10948     something starting with __ and the normal name is an alias.  */
10949 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10950 choke me
10951 #else
10952 char (*f) () = _doprnt;
10953 #endif
10954 #ifdef __cplusplus
10955 }
10956 #endif
10957
10958 int
10959 main ()
10960 {
10961 return f != _doprnt;
10962   ;
10963   return 0;
10964 }
10965 _ACEOF
10966 rm -f conftest.$ac_objext conftest$ac_exeext
10967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10968   (eval $ac_link) 2>&5
10969   ac_status=$?
10970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971   (exit $ac_status); } &&
10972          { ac_try='test -s conftest$ac_exeext'
10973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10974   (eval $ac_try) 2>&5
10975   ac_status=$?
10976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977   (exit $ac_status); }; }; then
10978   ac_cv_func__doprnt=yes
10979 else
10980   echo "$as_me: failed program was:" >&5
10981 sed 's/^/| /' conftest.$ac_ext >&5
10982
10983 ac_cv_func__doprnt=no
10984 fi
10985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10986 fi
10987 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10988 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10989 if test $ac_cv_func__doprnt = yes; then
10990
10991 cat >>confdefs.h <<\_ACEOF
10992 #define HAVE_DOPRNT 1
10993 _ACEOF
10994
10995 fi
10996
10997 fi
10998 done
10999
11000
11001
11002   echo "$as_me:$LINENO: checking for error_at_line" >&5
11003 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
11004 if test "${ac_cv_lib_error_at_line+set}" = set; then
11005   echo $ECHO_N "(cached) $ECHO_C" >&6
11006 else
11007   cat >conftest.$ac_ext <<_ACEOF
11008 /* confdefs.h.  */
11009 _ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h.  */
11013 $ac_includes_default
11014 int
11015 main ()
11016 {
11017 error_at_line (0, 0, "", 0, "");
11018   ;
11019   return 0;
11020 }
11021 _ACEOF
11022 rm -f conftest.$ac_objext conftest$ac_exeext
11023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11024   (eval $ac_link) 2>&5
11025   ac_status=$?
11026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027   (exit $ac_status); } &&
11028          { ac_try='test -s conftest$ac_exeext'
11029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11030   (eval $ac_try) 2>&5
11031   ac_status=$?
11032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033   (exit $ac_status); }; }; then
11034   ac_cv_lib_error_at_line=yes
11035 else
11036   echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11038
11039 ac_cv_lib_error_at_line=no
11040 fi
11041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11042 fi
11043 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
11044 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
11045 if test $ac_cv_lib_error_at_line = no; then
11046   LIBOBJS="$LIBOBJS error.$ac_objext"
11047 fi
11048
11049
11050
11051
11052
11053 for ac_func in strerror
11054 do
11055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11056 echo "$as_me:$LINENO: checking for $ac_func" >&5
11057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11058 if eval "test \"\${$as_ac_var+set}\" = set"; then
11059   echo $ECHO_N "(cached) $ECHO_C" >&6
11060 else
11061   cat >conftest.$ac_ext <<_ACEOF
11062 /* confdefs.h.  */
11063 _ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h.  */
11067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11069 #define $ac_func innocuous_$ac_func
11070
11071 /* System header to define __stub macros and hopefully few prototypes,
11072     which can conflict with char $ac_func (); below.
11073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11074     <limits.h> exists even on freestanding compilers.  */
11075
11076 #ifdef __STDC__
11077 # include <limits.h>
11078 #else
11079 # include <assert.h>
11080 #endif
11081
11082 #undef $ac_func
11083
11084 /* Override any gcc2 internal prototype to avoid an error.  */
11085 #ifdef __cplusplus
11086 extern "C"
11087 {
11088 #endif
11089 /* We use char because int might match the return type of a gcc2
11090    builtin and then its argument prototype would still apply.  */
11091 char $ac_func ();
11092 /* The GNU C library defines this for functions which it implements
11093     to always fail with ENOSYS.  Some functions are actually named
11094     something starting with __ and the normal name is an alias.  */
11095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11096 choke me
11097 #else
11098 char (*f) () = $ac_func;
11099 #endif
11100 #ifdef __cplusplus
11101 }
11102 #endif
11103
11104 int
11105 main ()
11106 {
11107 return f != $ac_func;
11108   ;
11109   return 0;
11110 }
11111 _ACEOF
11112 rm -f conftest.$ac_objext conftest$ac_exeext
11113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11114   (eval $ac_link) 2>&5
11115   ac_status=$?
11116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117   (exit $ac_status); } &&
11118          { ac_try='test -s conftest$ac_exeext'
11119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120   (eval $ac_try) 2>&5
11121   ac_status=$?
11122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123   (exit $ac_status); }; }; then
11124   eval "$as_ac_var=yes"
11125 else
11126   echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.$ac_ext >&5
11128
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   echo "$as_me:$LINENO: checking whether strerror is declared" >&5
11144 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
11145 if test "${ac_cv_have_decl_strerror+set}" = set; then
11146   echo $ECHO_N "(cached) $ECHO_C" >&6
11147 else
11148   cat >conftest.$ac_ext <<_ACEOF
11149 /* confdefs.h.  */
11150 _ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h.  */
11154 $ac_includes_default
11155 int
11156 main ()
11157 {
11158 #ifndef strerror
11159   char *p = (char *) strerror;
11160 #endif
11161
11162   ;
11163   return 0;
11164 }
11165 _ACEOF
11166 rm -f conftest.$ac_objext
11167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11168   (eval $ac_compile) 2>&5
11169   ac_status=$?
11170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171   (exit $ac_status); } &&
11172          { ac_try='test -s conftest.$ac_objext'
11173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174   (eval $ac_try) 2>&5
11175   ac_status=$?
11176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177   (exit $ac_status); }; }; then
11178   ac_cv_have_decl_strerror=yes
11179 else
11180   echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11182
11183 ac_cv_have_decl_strerror=no
11184 fi
11185 rm -f conftest.$ac_objext conftest.$ac_ext
11186 fi
11187 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
11188 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
11189 if test $ac_cv_have_decl_strerror = yes; then
11190
11191 cat >>confdefs.h <<_ACEOF
11192 #define HAVE_DECL_STRERROR 1
11193 _ACEOF
11194
11195
11196 else
11197   cat >>confdefs.h <<_ACEOF
11198 #define HAVE_DECL_STRERROR 0
11199 _ACEOF
11200
11201
11202 fi
11203
11204
11205   echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
11206 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
11207 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
11208   echo $ECHO_N "(cached) $ECHO_C" >&6
11209 else
11210   cat >conftest.$ac_ext <<_ACEOF
11211 /* confdefs.h.  */
11212 _ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h.  */
11216 $ac_includes_default
11217 int
11218 main ()
11219 {
11220 #ifndef strerror_r
11221   char *p = (char *) strerror_r;
11222 #endif
11223
11224   ;
11225   return 0;
11226 }
11227 _ACEOF
11228 rm -f conftest.$ac_objext
11229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11230   (eval $ac_compile) 2>&5
11231   ac_status=$?
11232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233   (exit $ac_status); } &&
11234          { ac_try='test -s conftest.$ac_objext'
11235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236   (eval $ac_try) 2>&5
11237   ac_status=$?
11238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239   (exit $ac_status); }; }; then
11240   ac_cv_have_decl_strerror_r=yes
11241 else
11242   echo "$as_me: failed program was:" >&5
11243 sed 's/^/| /' conftest.$ac_ext >&5
11244
11245 ac_cv_have_decl_strerror_r=no
11246 fi
11247 rm -f conftest.$ac_objext conftest.$ac_ext
11248 fi
11249 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
11250 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
11251 if test $ac_cv_have_decl_strerror_r = yes; then
11252
11253 cat >>confdefs.h <<_ACEOF
11254 #define HAVE_DECL_STRERROR_R 1
11255 _ACEOF
11256
11257
11258 else
11259   cat >>confdefs.h <<_ACEOF
11260 #define HAVE_DECL_STRERROR_R 0
11261 _ACEOF
11262
11263
11264 fi
11265
11266
11267
11268 for ac_func in strerror_r
11269 do
11270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11271 echo "$as_me:$LINENO: checking for $ac_func" >&5
11272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11273 if eval "test \"\${$as_ac_var+set}\" = set"; then
11274   echo $ECHO_N "(cached) $ECHO_C" >&6
11275 else
11276   cat >conftest.$ac_ext <<_ACEOF
11277 /* confdefs.h.  */
11278 _ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h.  */
11282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11284 #define $ac_func innocuous_$ac_func
11285
11286 /* System header to define __stub macros and hopefully few prototypes,
11287     which can conflict with char $ac_func (); below.
11288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11289     <limits.h> exists even on freestanding compilers.  */
11290
11291 #ifdef __STDC__
11292 # include <limits.h>
11293 #else
11294 # include <assert.h>
11295 #endif
11296
11297 #undef $ac_func
11298
11299 /* Override any gcc2 internal prototype to avoid an error.  */
11300 #ifdef __cplusplus
11301 extern "C"
11302 {
11303 #endif
11304 /* We use char because int might match the return type of a gcc2
11305    builtin and then its argument prototype would still apply.  */
11306 char $ac_func ();
11307 /* The GNU C library defines this for functions which it implements
11308     to always fail with ENOSYS.  Some functions are actually named
11309     something starting with __ and the normal name is an alias.  */
11310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11311 choke me
11312 #else
11313 char (*f) () = $ac_func;
11314 #endif
11315 #ifdef __cplusplus
11316 }
11317 #endif
11318
11319 int
11320 main ()
11321 {
11322 return f != $ac_func;
11323   ;
11324   return 0;
11325 }
11326 _ACEOF
11327 rm -f conftest.$ac_objext conftest$ac_exeext
11328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11329   (eval $ac_link) 2>&5
11330   ac_status=$?
11331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332   (exit $ac_status); } &&
11333          { ac_try='test -s conftest$ac_exeext'
11334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335   (eval $ac_try) 2>&5
11336   ac_status=$?
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); }; }; then
11339   eval "$as_ac_var=yes"
11340 else
11341   echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11343
11344 eval "$as_ac_var=no"
11345 fi
11346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11347 fi
11348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11350 if test `eval echo '${'$as_ac_var'}'` = yes; then
11351   cat >>confdefs.h <<_ACEOF
11352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11353 _ACEOF
11354
11355 fi
11356 done
11357
11358 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
11359 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
11360 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
11361   echo $ECHO_N "(cached) $ECHO_C" >&6
11362 else
11363
11364     ac_cv_func_strerror_r_char_p=no
11365     if test $ac_cv_have_decl_strerror_r = yes; then
11366       cat >conftest.$ac_ext <<_ACEOF
11367 /* confdefs.h.  */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h.  */
11372 $ac_includes_default
11373 int
11374 main ()
11375 {
11376
11377           char buf[100];
11378           char x = *strerror_r (0, buf, sizeof buf);
11379           char *p = strerror_r (0, buf, sizeof buf);
11380
11381   ;
11382   return 0;
11383 }
11384 _ACEOF
11385 rm -f conftest.$ac_objext
11386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11387   (eval $ac_compile) 2>&5
11388   ac_status=$?
11389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390   (exit $ac_status); } &&
11391          { ac_try='test -s conftest.$ac_objext'
11392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11393   (eval $ac_try) 2>&5
11394   ac_status=$?
11395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396   (exit $ac_status); }; }; then
11397   ac_cv_func_strerror_r_char_p=yes
11398 else
11399   echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11401
11402 fi
11403 rm -f conftest.$ac_objext conftest.$ac_ext
11404     else
11405       # strerror_r is not declared.  Choose between
11406       # systems that have relatively inaccessible declarations for the
11407       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
11408       # former has a strerror_r that returns char*, while the latter
11409       # has a strerror_r that returns `int'.
11410       # This test should segfault on the DEC system.
11411       if test "$cross_compiling" = yes; then
11412   :
11413 else
11414   cat >conftest.$ac_ext <<_ACEOF
11415 /* confdefs.h.  */
11416 _ACEOF
11417 cat confdefs.h >>conftest.$ac_ext
11418 cat >>conftest.$ac_ext <<_ACEOF
11419 /* end confdefs.h.  */
11420 $ac_includes_default
11421         extern char *strerror_r ();
11422 int
11423 main ()
11424 {
11425 char buf[100];
11426           char x = *strerror_r (0, buf, sizeof buf);
11427           exit (!isalpha (x));
11428   ;
11429   return 0;
11430 }
11431 _ACEOF
11432 rm -f conftest$ac_exeext
11433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11434   (eval $ac_link) 2>&5
11435   ac_status=$?
11436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11439   (eval $ac_try) 2>&5
11440   ac_status=$?
11441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442   (exit $ac_status); }; }; then
11443   ac_cv_func_strerror_r_char_p=yes
11444 else
11445   echo "$as_me: program exited with status $ac_status" >&5
11446 echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11448
11449 fi
11450 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11451 fi
11452     fi
11453
11454 fi
11455 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
11456 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
11457 if test $ac_cv_func_strerror_r_char_p = yes; then
11458
11459 cat >>confdefs.h <<\_ACEOF
11460 #define STRERROR_R_CHAR_P 1
11461 _ACEOF
11462
11463 fi
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478 for ac_func in $gl_func_list
11479 do
11480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11481 echo "$as_me:$LINENO: checking for $ac_func" >&5
11482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11483 if eval "test \"\${$as_ac_var+set}\" = set"; then
11484   echo $ECHO_N "(cached) $ECHO_C" >&6
11485 else
11486   cat >conftest.$ac_ext <<_ACEOF
11487 /* confdefs.h.  */
11488 _ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h.  */
11492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11493    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11494 #define $ac_func innocuous_$ac_func
11495
11496 /* System header to define __stub macros and hopefully few prototypes,
11497     which can conflict with char $ac_func (); below.
11498     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11499     <limits.h> exists even on freestanding compilers.  */
11500
11501 #ifdef __STDC__
11502 # include <limits.h>
11503 #else
11504 # include <assert.h>
11505 #endif
11506
11507 #undef $ac_func
11508
11509 /* Override any gcc2 internal prototype to avoid an error.  */
11510 #ifdef __cplusplus
11511 extern "C"
11512 {
11513 #endif
11514 /* We use char because int might match the return type of a gcc2
11515    builtin and then its argument prototype would still apply.  */
11516 char $ac_func ();
11517 /* The GNU C library defines this for functions which it implements
11518     to always fail with ENOSYS.  Some functions are actually named
11519     something starting with __ and the normal name is an alias.  */
11520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11521 choke me
11522 #else
11523 char (*f) () = $ac_func;
11524 #endif
11525 #ifdef __cplusplus
11526 }
11527 #endif
11528
11529 int
11530 main ()
11531 {
11532 return f != $ac_func;
11533   ;
11534   return 0;
11535 }
11536 _ACEOF
11537 rm -f conftest.$ac_objext conftest$ac_exeext
11538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11539   (eval $ac_link) 2>&5
11540   ac_status=$?
11541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542   (exit $ac_status); } &&
11543          { ac_try='test -s conftest$ac_exeext'
11544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545   (eval $ac_try) 2>&5
11546   ac_status=$?
11547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548   (exit $ac_status); }; }; then
11549   eval "$as_ac_var=yes"
11550 else
11551   echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11553
11554 eval "$as_ac_var=no"
11555 fi
11556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11557 fi
11558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11560 if test `eval echo '${'$as_ac_var'}'` = yes; then
11561   cat >>confdefs.h <<_ACEOF
11562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11563 _ACEOF
11564
11565 fi
11566 done
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577   :
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590   :
11591
11592
11593
11594
11595
11596
11597
11598
11599   :
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613   echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11614 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11615 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11616   echo $ECHO_N "(cached) $ECHO_C" >&6
11617 else
11618   cat >conftest.$ac_ext <<_ACEOF
11619 /* confdefs.h.  */
11620 _ACEOF
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h.  */
11624 $ac_includes_default
11625 int
11626 main ()
11627 {
11628 static struct stat ac_aggr;
11629 if (ac_aggr.st_blocks)
11630 return 0;
11631   ;
11632   return 0;
11633 }
11634 _ACEOF
11635 rm -f conftest.$ac_objext
11636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11637   (eval $ac_compile) 2>&5
11638   ac_status=$?
11639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640   (exit $ac_status); } &&
11641          { ac_try='test -s conftest.$ac_objext'
11642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643   (eval $ac_try) 2>&5
11644   ac_status=$?
11645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646   (exit $ac_status); }; }; then
11647   ac_cv_member_struct_stat_st_blocks=yes
11648 else
11649   echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.$ac_ext >&5
11651
11652 cat >conftest.$ac_ext <<_ACEOF
11653 /* confdefs.h.  */
11654 _ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h.  */
11658 $ac_includes_default
11659 int
11660 main ()
11661 {
11662 static struct stat ac_aggr;
11663 if (sizeof ac_aggr.st_blocks)
11664 return 0;
11665   ;
11666   return 0;
11667 }
11668 _ACEOF
11669 rm -f conftest.$ac_objext
11670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11671   (eval $ac_compile) 2>&5
11672   ac_status=$?
11673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674   (exit $ac_status); } &&
11675          { ac_try='test -s conftest.$ac_objext'
11676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677   (eval $ac_try) 2>&5
11678   ac_status=$?
11679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680   (exit $ac_status); }; }; then
11681   ac_cv_member_struct_stat_st_blocks=yes
11682 else
11683   echo "$as_me: failed program was:" >&5
11684 sed 's/^/| /' conftest.$ac_ext >&5
11685
11686 ac_cv_member_struct_stat_st_blocks=no
11687 fi
11688 rm -f conftest.$ac_objext conftest.$ac_ext
11689 fi
11690 rm -f conftest.$ac_objext conftest.$ac_ext
11691 fi
11692 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11693 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11694 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11695
11696 cat >>confdefs.h <<_ACEOF
11697 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11698 _ACEOF
11699
11700
11701 cat >>confdefs.h <<\_ACEOF
11702 #define HAVE_ST_BLOCKS 1
11703 _ACEOF
11704
11705 else
11706   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11707 fi
11708
11709
11710     if test $ac_cv_member_struct_stat_st_blocks = no; then
11711
11712
11713   :
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723   fi
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733   :
11734
11735
11736
11737
11738
11739
11740
11741
11742 for ac_header in sys/mount.h sys/vfs.h sys/fs_types.h
11743 do
11744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11746   echo "$as_me:$LINENO: checking for $ac_header" >&5
11747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11749   echo $ECHO_N "(cached) $ECHO_C" >&6
11750 fi
11751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11753 else
11754   # Is the header compilable?
11755 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11757 cat >conftest.$ac_ext <<_ACEOF
11758 /* confdefs.h.  */
11759 _ACEOF
11760 cat confdefs.h >>conftest.$ac_ext
11761 cat >>conftest.$ac_ext <<_ACEOF
11762 /* end confdefs.h.  */
11763 $ac_includes_default
11764 #include <$ac_header>
11765 _ACEOF
11766 rm -f conftest.$ac_objext
11767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11768   (eval $ac_compile) 2>&5
11769   ac_status=$?
11770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771   (exit $ac_status); } &&
11772          { ac_try='test -s conftest.$ac_objext'
11773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774   (eval $ac_try) 2>&5
11775   ac_status=$?
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); }; }; then
11778   ac_header_compiler=yes
11779 else
11780   echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11782
11783 ac_header_compiler=no
11784 fi
11785 rm -f conftest.$ac_objext conftest.$ac_ext
11786 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11787 echo "${ECHO_T}$ac_header_compiler" >&6
11788
11789 # Is the header present?
11790 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11792 cat >conftest.$ac_ext <<_ACEOF
11793 /* confdefs.h.  */
11794 _ACEOF
11795 cat confdefs.h >>conftest.$ac_ext
11796 cat >>conftest.$ac_ext <<_ACEOF
11797 /* end confdefs.h.  */
11798 #include <$ac_header>
11799 _ACEOF
11800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11801   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11802   ac_status=$?
11803   grep -v '^ *+' conftest.er1 >conftest.err
11804   rm -f conftest.er1
11805   cat conftest.err >&5
11806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807   (exit $ac_status); } >/dev/null; then
11808   if test -s conftest.err; then
11809     ac_cpp_err=$ac_c_preproc_warn_flag
11810   else
11811     ac_cpp_err=
11812   fi
11813 else
11814   ac_cpp_err=yes
11815 fi
11816 if test -z "$ac_cpp_err"; then
11817   ac_header_preproc=yes
11818 else
11819   echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.$ac_ext >&5
11821
11822   ac_header_preproc=no
11823 fi
11824 rm -f conftest.err conftest.$ac_ext
11825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11826 echo "${ECHO_T}$ac_header_preproc" >&6
11827
11828 # So?  What about this header?
11829 case $ac_header_compiler:$ac_header_preproc in
11830   yes:no )
11831     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11835     ac_header_preproc=yes
11836     ;;
11837   no:yes )
11838     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11840     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11841 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11842     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11844     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11845 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11848     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11850     (
11851       cat <<\_ASBOX
11852 ## ------------------------------------ ##
11853 ## Report this to bug-coreutils@gnu.org ##
11854 ## ------------------------------------ ##
11855 _ASBOX
11856     ) |
11857       sed "s/^/$as_me: WARNING:     /" >&2
11858     ;;
11859 esac
11860 echo "$as_me:$LINENO: checking for $ac_header" >&5
11861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11863   echo $ECHO_N "(cached) $ECHO_C" >&6
11864 else
11865   eval "$as_ac_Header=\$ac_header_preproc"
11866 fi
11867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11869
11870 fi
11871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11872   cat >>confdefs.h <<_ACEOF
11873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11874 _ACEOF
11875
11876 fi
11877
11878 done
11879
11880
11881
11882 echo "checking how to get filesystem space usage..."
11883 ac_fsusage_space=no
11884
11885 # Perform only the link test since it seems there are no variants of the
11886 # statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
11887 # because that got a false positive on SCO OSR5.  Adding the declaration
11888 # of a `struct statvfs' causes this test to fail (as it should) on such
11889 # systems.  That system is reported to work fine with STAT_STATFS4 which
11890 # is what it gets when this test fails.
11891 if test $ac_fsusage_space = no; then
11892   # SVR4
11893   echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
11894 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6
11895 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
11896   echo $ECHO_N "(cached) $ECHO_C" >&6
11897 else
11898
11899 cat >conftest.$ac_ext <<_ACEOF
11900 /* confdefs.h.  */
11901 _ACEOF
11902 cat confdefs.h >>conftest.$ac_ext
11903 cat >>conftest.$ac_ext <<_ACEOF
11904 /* end confdefs.h.  */
11905 #include <sys/types.h>
11906 #ifdef __GLIBC__
11907 Do not use statvfs on systems with GNU libc, because that function stats
11908 all preceding entries in /proc/mounts, and that makes df hang if even
11909 one of the corresponding file systems is hard-mounted, but not available.
11910 #endif
11911 #include <sys/statvfs.h>
11912 int
11913 main ()
11914 {
11915 struct statvfs fsd; statvfs (0, &fsd);
11916   ;
11917   return 0;
11918 }
11919 _ACEOF
11920 rm -f conftest.$ac_objext conftest$ac_exeext
11921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11922   (eval $ac_link) 2>&5
11923   ac_status=$?
11924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); } &&
11926          { ac_try='test -s conftest$ac_exeext'
11927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928   (eval $ac_try) 2>&5
11929   ac_status=$?
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); }; }; then
11932   fu_cv_sys_stat_statvfs=yes
11933 else
11934   echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11936
11937 fu_cv_sys_stat_statvfs=no
11938 fi
11939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11940 fi
11941 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
11942 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
11943   if test $fu_cv_sys_stat_statvfs = yes; then
11944     ac_fsusage_space=yes
11945
11946 cat >>confdefs.h <<\_ACEOF
11947 #define STAT_STATVFS 1
11948 _ACEOF
11949
11950   fi
11951 fi
11952
11953 if test $ac_fsusage_space = no; then
11954   # DEC Alpha running OSF/1
11955   echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
11956 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
11957   if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
11958   echo $ECHO_N "(cached) $ECHO_C" >&6
11959 else
11960
11961 if test "$cross_compiling" = yes; then
11962   fu_cv_sys_stat_statfs3_osf1=no
11963 else
11964   cat >conftest.$ac_ext <<_ACEOF
11965 /* confdefs.h.  */
11966 _ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h.  */
11970
11971 #include <sys/param.h>
11972 #include <sys/types.h>
11973 #include <sys/mount.h>
11974   main ()
11975   {
11976     struct statfs fsd;
11977     fsd.f_fsize = 0;
11978     exit (statfs (".", &fsd, sizeof (struct statfs)));
11979   }
11980 _ACEOF
11981 rm -f conftest$ac_exeext
11982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11983   (eval $ac_link) 2>&5
11984   ac_status=$?
11985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988   (eval $ac_try) 2>&5
11989   ac_status=$?
11990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991   (exit $ac_status); }; }; then
11992   fu_cv_sys_stat_statfs3_osf1=yes
11993 else
11994   echo "$as_me: program exited with status $ac_status" >&5
11995 echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11997
11998 ( exit $ac_status )
11999 fu_cv_sys_stat_statfs3_osf1=no
12000 fi
12001 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12002 fi
12003 fi
12004
12005   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
12006 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
12007   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12008     ac_fsusage_space=yes
12009
12010 cat >>confdefs.h <<\_ACEOF
12011 #define STAT_STATFS3_OSF1 1
12012 _ACEOF
12013
12014   fi
12015 fi
12016
12017 if test $ac_fsusage_space = no; then
12018 # AIX
12019   echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12020 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
12021   if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
12022   echo $ECHO_N "(cached) $ECHO_C" >&6
12023 else
12024
12025 if test "$cross_compiling" = yes; then
12026   fu_cv_sys_stat_statfs2_bsize=no
12027 else
12028   cat >conftest.$ac_ext <<_ACEOF
12029 /* confdefs.h.  */
12030 _ACEOF
12031 cat confdefs.h >>conftest.$ac_ext
12032 cat >>conftest.$ac_ext <<_ACEOF
12033 /* end confdefs.h.  */
12034
12035 #ifdef HAVE_SYS_PARAM_H
12036 #include <sys/param.h>
12037 #endif
12038 #ifdef HAVE_SYS_MOUNT_H
12039 #include <sys/mount.h>
12040 #endif
12041 #ifdef HAVE_SYS_VFS_H
12042 #include <sys/vfs.h>
12043 #endif
12044   main ()
12045   {
12046   struct statfs fsd;
12047   fsd.f_bsize = 0;
12048   exit (statfs (".", &fsd));
12049   }
12050 _ACEOF
12051 rm -f conftest$ac_exeext
12052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12053   (eval $ac_link) 2>&5
12054   ac_status=$?
12055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058   (eval $ac_try) 2>&5
12059   ac_status=$?
12060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061   (exit $ac_status); }; }; then
12062   fu_cv_sys_stat_statfs2_bsize=yes
12063 else
12064   echo "$as_me: program exited with status $ac_status" >&5
12065 echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12067
12068 ( exit $ac_status )
12069 fu_cv_sys_stat_statfs2_bsize=no
12070 fi
12071 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12072 fi
12073 fi
12074
12075   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
12076 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
12077   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12078     ac_fsusage_space=yes
12079
12080 cat >>confdefs.h <<\_ACEOF
12081 #define STAT_STATFS2_BSIZE 1
12082 _ACEOF
12083
12084   fi
12085 fi
12086
12087 if test $ac_fsusage_space = no; then
12088 # SVR3
12089   echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12090 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
12091   if test "${fu_cv_sys_stat_statfs4+set}" = set; then
12092   echo $ECHO_N "(cached) $ECHO_C" >&6
12093 else
12094
12095 if test "$cross_compiling" = yes; then
12096   fu_cv_sys_stat_statfs4=no
12097 else
12098   cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h.  */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h.  */
12104 #include <sys/types.h>
12105 #include <sys/statfs.h>
12106   main ()
12107   {
12108   struct statfs fsd;
12109   exit (statfs (".", &fsd, sizeof fsd, 0));
12110   }
12111 _ACEOF
12112 rm -f conftest$ac_exeext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12114   (eval $ac_link) 2>&5
12115   ac_status=$?
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119   (eval $ac_try) 2>&5
12120   ac_status=$?
12121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122   (exit $ac_status); }; }; then
12123   fu_cv_sys_stat_statfs4=yes
12124 else
12125   echo "$as_me: program exited with status $ac_status" >&5
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12128
12129 ( exit $ac_status )
12130 fu_cv_sys_stat_statfs4=no
12131 fi
12132 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12133 fi
12134 fi
12135
12136   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
12137 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
12138   if test $fu_cv_sys_stat_statfs4 = yes; then
12139     ac_fsusage_space=yes
12140
12141 cat >>confdefs.h <<\_ACEOF
12142 #define STAT_STATFS4 1
12143 _ACEOF
12144
12145   fi
12146 fi
12147
12148 if test $ac_fsusage_space = no; then
12149 # 4.4BSD and NetBSD
12150   echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12151 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
12152   if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
12153   echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155
12156 if test "$cross_compiling" = yes; then
12157   fu_cv_sys_stat_statfs2_fsize=no
12158 else
12159   cat >conftest.$ac_ext <<_ACEOF
12160 /* confdefs.h.  */
12161 _ACEOF
12162 cat confdefs.h >>conftest.$ac_ext
12163 cat >>conftest.$ac_ext <<_ACEOF
12164 /* end confdefs.h.  */
12165 #include <sys/types.h>
12166 #ifdef HAVE_SYS_PARAM_H
12167 #include <sys/param.h>
12168 #endif
12169 #ifdef HAVE_SYS_MOUNT_H
12170 #include <sys/mount.h>
12171 #endif
12172   main ()
12173   {
12174   struct statfs fsd;
12175   fsd.f_fsize = 0;
12176   exit (statfs (".", &fsd));
12177   }
12178 _ACEOF
12179 rm -f conftest$ac_exeext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12181   (eval $ac_link) 2>&5
12182   ac_status=$?
12183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12186   (eval $ac_try) 2>&5
12187   ac_status=$?
12188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189   (exit $ac_status); }; }; then
12190   fu_cv_sys_stat_statfs2_fsize=yes
12191 else
12192   echo "$as_me: program exited with status $ac_status" >&5
12193 echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12195
12196 ( exit $ac_status )
12197 fu_cv_sys_stat_statfs2_fsize=no
12198 fi
12199 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12200 fi
12201 fi
12202
12203   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
12204 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
12205   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12206     ac_fsusage_space=yes
12207
12208 cat >>confdefs.h <<\_ACEOF
12209 #define STAT_STATFS2_FSIZE 1
12210 _ACEOF
12211
12212   fi
12213 fi
12214
12215 if test $ac_fsusage_space = no; then
12216   # Ultrix
12217   echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12218 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
12219   if test "${fu_cv_sys_stat_fs_data+set}" = set; then
12220   echo $ECHO_N "(cached) $ECHO_C" >&6
12221 else
12222
12223 if test "$cross_compiling" = yes; then
12224   fu_cv_sys_stat_fs_data=no
12225 else
12226   cat >conftest.$ac_ext <<_ACEOF
12227 /* confdefs.h.  */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h.  */
12232 #include <sys/types.h>
12233 #ifdef HAVE_SYS_PARAM_H
12234 #include <sys/param.h>
12235 #endif
12236 #ifdef HAVE_SYS_MOUNT_H
12237 #include <sys/mount.h>
12238 #endif
12239 #ifdef HAVE_SYS_FS_TYPES_H
12240 #include <sys/fs_types.h>
12241 #endif
12242   main ()
12243   {
12244   struct fs_data fsd;
12245   /* Ultrix's statfs returns 1 for success,
12246      0 for not mounted, -1 for failure.  */
12247   exit (statfs (".", &fsd) != 1);
12248   }
12249 _ACEOF
12250 rm -f conftest$ac_exeext
12251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12252   (eval $ac_link) 2>&5
12253   ac_status=$?
12254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257   (eval $ac_try) 2>&5
12258   ac_status=$?
12259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260   (exit $ac_status); }; }; then
12261   fu_cv_sys_stat_fs_data=yes
12262 else
12263   echo "$as_me: program exited with status $ac_status" >&5
12264 echo "$as_me: failed program was:" >&5
12265 sed 's/^/| /' conftest.$ac_ext >&5
12266
12267 ( exit $ac_status )
12268 fu_cv_sys_stat_fs_data=no
12269 fi
12270 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12271 fi
12272 fi
12273
12274   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
12275 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
12276   if test $fu_cv_sys_stat_fs_data = yes; then
12277     ac_fsusage_space=yes
12278
12279 cat >>confdefs.h <<\_ACEOF
12280 #define STAT_STATFS2_FS_DATA 1
12281 _ACEOF
12282
12283   fi
12284 fi
12285
12286 if test $ac_fsusage_space = no; then
12287   # SVR2
12288
12289 cat >conftest.$ac_ext <<_ACEOF
12290 /* confdefs.h.  */
12291 _ACEOF
12292 cat confdefs.h >>conftest.$ac_ext
12293 cat >>conftest.$ac_ext <<_ACEOF
12294 /* end confdefs.h.  */
12295 #include <sys/filsys.h>
12296
12297 _ACEOF
12298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12299   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12300   ac_status=$?
12301   grep -v '^ *+' conftest.er1 >conftest.err
12302   rm -f conftest.er1
12303   cat conftest.err >&5
12304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305   (exit $ac_status); } >/dev/null; then
12306   if test -s conftest.err; then
12307     ac_cpp_err=$ac_c_preproc_warn_flag
12308   else
12309     ac_cpp_err=
12310   fi
12311 else
12312   ac_cpp_err=yes
12313 fi
12314 if test -z "$ac_cpp_err"; then
12315
12316 cat >>confdefs.h <<\_ACEOF
12317 #define STAT_READ_FILSYS 1
12318 _ACEOF
12319
12320     ac_fsusage_space=yes
12321 else
12322   echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12324
12325
12326 fi
12327 rm -f conftest.err conftest.$ac_ext
12328 fi
12329
12330 if test $ac_fsusage_space = yes; then
12331   gl_cv_fs_space=yes
12332 else
12333   gl_cv_fs_space=no
12334 fi
12335
12336
12337
12338   if test $gl_cv_fs_space = yes; then
12339     LIBOBJS="$LIBOBJS fsusage.$ac_objext"
12340
12341
12342
12343   :
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h sys/statvfs.h
12355 do
12356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12358   echo "$as_me:$LINENO: checking for $ac_header" >&5
12359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12361   echo $ECHO_N "(cached) $ECHO_C" >&6
12362 fi
12363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12365 else
12366   # Is the header compilable?
12367 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12369 cat >conftest.$ac_ext <<_ACEOF
12370 /* confdefs.h.  */
12371 _ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h.  */
12375 $ac_includes_default
12376 #include <$ac_header>
12377 _ACEOF
12378 rm -f conftest.$ac_objext
12379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12380   (eval $ac_compile) 2>&5
12381   ac_status=$?
12382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383   (exit $ac_status); } &&
12384          { ac_try='test -s conftest.$ac_objext'
12385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386   (eval $ac_try) 2>&5
12387   ac_status=$?
12388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389   (exit $ac_status); }; }; then
12390   ac_header_compiler=yes
12391 else
12392   echo "$as_me: failed program was:" >&5
12393 sed 's/^/| /' conftest.$ac_ext >&5
12394
12395 ac_header_compiler=no
12396 fi
12397 rm -f conftest.$ac_objext conftest.$ac_ext
12398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12399 echo "${ECHO_T}$ac_header_compiler" >&6
12400
12401 # Is the header present?
12402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12404 cat >conftest.$ac_ext <<_ACEOF
12405 /* confdefs.h.  */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h.  */
12410 #include <$ac_header>
12411 _ACEOF
12412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12413   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12414   ac_status=$?
12415   grep -v '^ *+' conftest.er1 >conftest.err
12416   rm -f conftest.er1
12417   cat conftest.err >&5
12418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419   (exit $ac_status); } >/dev/null; then
12420   if test -s conftest.err; then
12421     ac_cpp_err=$ac_c_preproc_warn_flag
12422   else
12423     ac_cpp_err=
12424   fi
12425 else
12426   ac_cpp_err=yes
12427 fi
12428 if test -z "$ac_cpp_err"; then
12429   ac_header_preproc=yes
12430 else
12431   echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12433
12434   ac_header_preproc=no
12435 fi
12436 rm -f conftest.err conftest.$ac_ext
12437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12438 echo "${ECHO_T}$ac_header_preproc" >&6
12439
12440 # So?  What about this header?
12441 case $ac_header_compiler:$ac_header_preproc in
12442   yes:no )
12443     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12447     ac_header_preproc=yes
12448     ;;
12449   no:yes )
12450     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12452     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12453 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12454     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12456     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12457 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12458     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12460     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12462     (
12463       cat <<\_ASBOX
12464 ## ------------------------------------ ##
12465 ## Report this to bug-coreutils@gnu.org ##
12466 ## ------------------------------------ ##
12467 _ASBOX
12468     ) |
12469       sed "s/^/$as_me: WARNING:     /" >&2
12470     ;;
12471 esac
12472 echo "$as_me:$LINENO: checking for $ac_header" >&5
12473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12475   echo $ECHO_N "(cached) $ECHO_C" >&6
12476 else
12477   eval "$as_ac_Header=\$ac_header_preproc"
12478 fi
12479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12481
12482 fi
12483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12484   cat >>confdefs.h <<_ACEOF
12485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12486 _ACEOF
12487
12488 fi
12489
12490 done
12491
12492
12493   echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
12494 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6
12495   if test "${fu_cv_sys_truncating_statfs+set}" = set; then
12496   echo $ECHO_N "(cached) $ECHO_C" >&6
12497 else
12498   cat >conftest.$ac_ext <<_ACEOF
12499 /* confdefs.h.  */
12500 _ACEOF
12501 cat confdefs.h >>conftest.$ac_ext
12502 cat >>conftest.$ac_ext <<_ACEOF
12503 /* end confdefs.h.  */
12504
12505 #if !defined(sun) && !defined(__sun)
12506 choke -- this is a workaround for a Sun-specific problem
12507 #endif
12508 #include <sys/types.h>
12509 #include <sys/vfs.h>
12510 int
12511 main ()
12512 {
12513 struct statfs t; long c = *(t.f_spare);
12514   ;
12515   return 0;
12516 }
12517 _ACEOF
12518 rm -f conftest.$ac_objext
12519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12520   (eval $ac_compile) 2>&5
12521   ac_status=$?
12522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523   (exit $ac_status); } &&
12524          { ac_try='test -s conftest.$ac_objext'
12525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526   (eval $ac_try) 2>&5
12527   ac_status=$?
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); }; }; then
12530   fu_cv_sys_truncating_statfs=yes
12531 else
12532   echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12534
12535 fu_cv_sys_truncating_statfs=no
12536 fi
12537 rm -f conftest.$ac_objext conftest.$ac_ext
12538 fi
12539
12540   if test $fu_cv_sys_truncating_statfs = yes; then
12541
12542 cat >>confdefs.h <<\_ACEOF
12543 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
12544 _ACEOF
12545
12546   fi
12547   echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
12548 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6
12549
12550
12551   fi
12552
12553 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12554 # for constant arguments.  Useless!
12555 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12556 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12557 if test "${ac_cv_working_alloca_h+set}" = set; then
12558   echo $ECHO_N "(cached) $ECHO_C" >&6
12559 else
12560   cat >conftest.$ac_ext <<_ACEOF
12561 /* confdefs.h.  */
12562 _ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h.  */
12566 #include <alloca.h>
12567 int
12568 main ()
12569 {
12570 char *p = (char *) alloca (2 * sizeof (int));
12571   ;
12572   return 0;
12573 }
12574 _ACEOF
12575 rm -f conftest.$ac_objext conftest$ac_exeext
12576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12577   (eval $ac_link) 2>&5
12578   ac_status=$?
12579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580   (exit $ac_status); } &&
12581          { ac_try='test -s conftest$ac_exeext'
12582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583   (eval $ac_try) 2>&5
12584   ac_status=$?
12585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586   (exit $ac_status); }; }; then
12587   ac_cv_working_alloca_h=yes
12588 else
12589   echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12591
12592 ac_cv_working_alloca_h=no
12593 fi
12594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12595 fi
12596 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12597 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12598 if test $ac_cv_working_alloca_h = yes; then
12599
12600 cat >>confdefs.h <<\_ACEOF
12601 #define HAVE_ALLOCA_H 1
12602 _ACEOF
12603
12604 fi
12605
12606 echo "$as_me:$LINENO: checking for alloca" >&5
12607 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12608 if test "${ac_cv_func_alloca_works+set}" = set; then
12609   echo $ECHO_N "(cached) $ECHO_C" >&6
12610 else
12611   cat >conftest.$ac_ext <<_ACEOF
12612 /* confdefs.h.  */
12613 _ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h.  */
12617 #ifdef __GNUC__
12618 # define alloca __builtin_alloca
12619 #else
12620 # ifdef _MSC_VER
12621 #  include <malloc.h>
12622 #  define alloca _alloca
12623 # else
12624 #  if HAVE_ALLOCA_H
12625 #   include <alloca.h>
12626 #  else
12627 #   ifdef _AIX
12628  #pragma alloca
12629 #   else
12630 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12631 char *alloca ();
12632 #    endif
12633 #   endif
12634 #  endif
12635 # endif
12636 #endif
12637
12638 int
12639 main ()
12640 {
12641 char *p = (char *) alloca (1);
12642   ;
12643   return 0;
12644 }
12645 _ACEOF
12646 rm -f conftest.$ac_objext conftest$ac_exeext
12647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12648   (eval $ac_link) 2>&5
12649   ac_status=$?
12650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651   (exit $ac_status); } &&
12652          { ac_try='test -s conftest$ac_exeext'
12653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654   (eval $ac_try) 2>&5
12655   ac_status=$?
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); }; }; then
12658   ac_cv_func_alloca_works=yes
12659 else
12660   echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12662
12663 ac_cv_func_alloca_works=no
12664 fi
12665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12666 fi
12667 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12668 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12669
12670 if test $ac_cv_func_alloca_works = yes; then
12671
12672 cat >>confdefs.h <<\_ACEOF
12673 #define HAVE_ALLOCA 1
12674 _ACEOF
12675
12676 else
12677   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12678 # that cause trouble.  Some versions do not even contain alloca or
12679 # contain a buggy version.  If you still want to use their alloca,
12680 # use ar to extract alloca.o from them instead of compiling alloca.c.
12681
12682 ALLOCA=alloca.$ac_objext
12683
12684 cat >>confdefs.h <<\_ACEOF
12685 #define C_ALLOCA 1
12686 _ACEOF
12687
12688
12689 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12690 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12691 if test "${ac_cv_os_cray+set}" = set; then
12692   echo $ECHO_N "(cached) $ECHO_C" >&6
12693 else
12694   cat >conftest.$ac_ext <<_ACEOF
12695 /* confdefs.h.  */
12696 _ACEOF
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h.  */
12700 #if defined(CRAY) && ! defined(CRAY2)
12701 webecray
12702 #else
12703 wenotbecray
12704 #endif
12705
12706 _ACEOF
12707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12708   $EGREP "webecray" >/dev/null 2>&1; then
12709   ac_cv_os_cray=yes
12710 else
12711   ac_cv_os_cray=no
12712 fi
12713 rm -f conftest*
12714
12715 fi
12716 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12717 echo "${ECHO_T}$ac_cv_os_cray" >&6
12718 if test $ac_cv_os_cray = yes; then
12719   for ac_func in _getb67 GETB67 getb67; do
12720     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12721 echo "$as_me:$LINENO: checking for $ac_func" >&5
12722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12723 if eval "test \"\${$as_ac_var+set}\" = set"; then
12724   echo $ECHO_N "(cached) $ECHO_C" >&6
12725 else
12726   cat >conftest.$ac_ext <<_ACEOF
12727 /* confdefs.h.  */
12728 _ACEOF
12729 cat confdefs.h >>conftest.$ac_ext
12730 cat >>conftest.$ac_ext <<_ACEOF
12731 /* end confdefs.h.  */
12732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12733    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12734 #define $ac_func innocuous_$ac_func
12735
12736 /* System header to define __stub macros and hopefully few prototypes,
12737     which can conflict with char $ac_func (); below.
12738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12739     <limits.h> exists even on freestanding compilers.  */
12740
12741 #ifdef __STDC__
12742 # include <limits.h>
12743 #else
12744 # include <assert.h>
12745 #endif
12746
12747 #undef $ac_func
12748
12749 /* Override any gcc2 internal prototype to avoid an error.  */
12750 #ifdef __cplusplus
12751 extern "C"
12752 {
12753 #endif
12754 /* We use char because int might match the return type of a gcc2
12755    builtin and then its argument prototype would still apply.  */
12756 char $ac_func ();
12757 /* The GNU C library defines this for functions which it implements
12758     to always fail with ENOSYS.  Some functions are actually named
12759     something starting with __ and the normal name is an alias.  */
12760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12761 choke me
12762 #else
12763 char (*f) () = $ac_func;
12764 #endif
12765 #ifdef __cplusplus
12766 }
12767 #endif
12768
12769 int
12770 main ()
12771 {
12772 return f != $ac_func;
12773   ;
12774   return 0;
12775 }
12776 _ACEOF
12777 rm -f conftest.$ac_objext conftest$ac_exeext
12778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12779   (eval $ac_link) 2>&5
12780   ac_status=$?
12781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782   (exit $ac_status); } &&
12783          { ac_try='test -s conftest$ac_exeext'
12784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12785   (eval $ac_try) 2>&5
12786   ac_status=$?
12787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788   (exit $ac_status); }; }; then
12789   eval "$as_ac_var=yes"
12790 else
12791   echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12793
12794 eval "$as_ac_var=no"
12795 fi
12796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12797 fi
12798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12800 if test `eval echo '${'$as_ac_var'}'` = yes; then
12801
12802 cat >>confdefs.h <<_ACEOF
12803 #define CRAY_STACKSEG_END $ac_func
12804 _ACEOF
12805
12806     break
12807 fi
12808
12809   done
12810 fi
12811
12812 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12813 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12814 if test "${ac_cv_c_stack_direction+set}" = set; then
12815   echo $ECHO_N "(cached) $ECHO_C" >&6
12816 else
12817   if test "$cross_compiling" = yes; then
12818   ac_cv_c_stack_direction=0
12819 else
12820   cat >conftest.$ac_ext <<_ACEOF
12821 /* confdefs.h.  */
12822 _ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h.  */
12826 int
12827 find_stack_direction ()
12828 {
12829   static char *addr = 0;
12830   auto char dummy;
12831   if (addr == 0)
12832     {
12833       addr = &dummy;
12834       return find_stack_direction ();
12835     }
12836   else
12837     return (&dummy > addr) ? 1 : -1;
12838 }
12839
12840 int
12841 main ()
12842 {
12843   exit (find_stack_direction () < 0);
12844 }
12845 _ACEOF
12846 rm -f conftest$ac_exeext
12847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12848   (eval $ac_link) 2>&5
12849   ac_status=$?
12850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853   (eval $ac_try) 2>&5
12854   ac_status=$?
12855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856   (exit $ac_status); }; }; then
12857   ac_cv_c_stack_direction=1
12858 else
12859   echo "$as_me: program exited with status $ac_status" >&5
12860 echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12862
12863 ( exit $ac_status )
12864 ac_cv_c_stack_direction=-1
12865 fi
12866 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12867 fi
12868 fi
12869 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12870 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12871
12872 cat >>confdefs.h <<_ACEOF
12873 #define STACK_DIRECTION $ac_cv_c_stack_direction
12874 _ACEOF
12875
12876
12877 fi
12878
12879
12880
12881
12882
12883
12884   if test $ac_cv_func_alloca_works = no; then
12885
12886
12887   :
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897   fi
12898
12899   # Define an additional variable used in the Makefile substitution.
12900
12901   cat >conftest.$ac_ext <<_ACEOF
12902 /* confdefs.h.  */
12903 _ACEOF
12904 cat confdefs.h >>conftest.$ac_ext
12905 cat >>conftest.$ac_ext <<_ACEOF
12906 /* end confdefs.h.  */
12907
12908 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
12909   Need own alloca
12910 #endif
12911
12912 _ACEOF
12913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12914   $EGREP "Need own alloca" >/dev/null 2>&1; then
12915   ALLOCA_H=alloca.h
12916 else
12917   ALLOCA_H=
12918 fi
12919 rm -f conftest*
12920
12921
12922
12923
12924
12925 for ac_func in atexit
12926 do
12927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12928 echo "$as_me:$LINENO: checking for $ac_func" >&5
12929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12930 if eval "test \"\${$as_ac_var+set}\" = set"; then
12931   echo $ECHO_N "(cached) $ECHO_C" >&6
12932 else
12933   cat >conftest.$ac_ext <<_ACEOF
12934 /* confdefs.h.  */
12935 _ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h.  */
12939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12940    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12941 #define $ac_func innocuous_$ac_func
12942
12943 /* System header to define __stub macros and hopefully few prototypes,
12944     which can conflict with char $ac_func (); below.
12945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12946     <limits.h> exists even on freestanding compilers.  */
12947
12948 #ifdef __STDC__
12949 # include <limits.h>
12950 #else
12951 # include <assert.h>
12952 #endif
12953
12954 #undef $ac_func
12955
12956 /* Override any gcc2 internal prototype to avoid an error.  */
12957 #ifdef __cplusplus
12958 extern "C"
12959 {
12960 #endif
12961 /* We use char because int might match the return type of a gcc2
12962    builtin and then its argument prototype would still apply.  */
12963 char $ac_func ();
12964 /* The GNU C library defines this for functions which it implements
12965     to always fail with ENOSYS.  Some functions are actually named
12966     something starting with __ and the normal name is an alias.  */
12967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12968 choke me
12969 #else
12970 char (*f) () = $ac_func;
12971 #endif
12972 #ifdef __cplusplus
12973 }
12974 #endif
12975
12976 int
12977 main ()
12978 {
12979 return f != $ac_func;
12980   ;
12981   return 0;
12982 }
12983 _ACEOF
12984 rm -f conftest.$ac_objext conftest$ac_exeext
12985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12986   (eval $ac_link) 2>&5
12987   ac_status=$?
12988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989   (exit $ac_status); } &&
12990          { ac_try='test -s conftest$ac_exeext'
12991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992   (eval $ac_try) 2>&5
12993   ac_status=$?
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); }; }; then
12996   eval "$as_ac_var=yes"
12997 else
12998   echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13000
13001 eval "$as_ac_var=no"
13002 fi
13003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13004 fi
13005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13007 if test `eval echo '${'$as_ac_var'}'` = yes; then
13008   cat >>confdefs.h <<_ACEOF
13009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13010 _ACEOF
13011
13012 else
13013   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13014 fi
13015 done
13016
13017
13018   if test $ac_cv_func_atexit = no; then
13019
13020   :
13021
13022   fi
13023
13024
13025
13026 for ac_func in dup2
13027 do
13028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13029 echo "$as_me:$LINENO: checking for $ac_func" >&5
13030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13031 if eval "test \"\${$as_ac_var+set}\" = set"; then
13032   echo $ECHO_N "(cached) $ECHO_C" >&6
13033 else
13034   cat >conftest.$ac_ext <<_ACEOF
13035 /* confdefs.h.  */
13036 _ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h.  */
13040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13041    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13042 #define $ac_func innocuous_$ac_func
13043
13044 /* System header to define __stub macros and hopefully few prototypes,
13045     which can conflict with char $ac_func (); below.
13046     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13047     <limits.h> exists even on freestanding compilers.  */
13048
13049 #ifdef __STDC__
13050 # include <limits.h>
13051 #else
13052 # include <assert.h>
13053 #endif
13054
13055 #undef $ac_func
13056
13057 /* Override any gcc2 internal prototype to avoid an error.  */
13058 #ifdef __cplusplus
13059 extern "C"
13060 {
13061 #endif
13062 /* We use char because int might match the return type of a gcc2
13063    builtin and then its argument prototype would still apply.  */
13064 char $ac_func ();
13065 /* The GNU C library defines this for functions which it implements
13066     to always fail with ENOSYS.  Some functions are actually named
13067     something starting with __ and the normal name is an alias.  */
13068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13069 choke me
13070 #else
13071 char (*f) () = $ac_func;
13072 #endif
13073 #ifdef __cplusplus
13074 }
13075 #endif
13076
13077 int
13078 main ()
13079 {
13080 return f != $ac_func;
13081   ;
13082   return 0;
13083 }
13084 _ACEOF
13085 rm -f conftest.$ac_objext conftest$ac_exeext
13086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13087   (eval $ac_link) 2>&5
13088   ac_status=$?
13089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090   (exit $ac_status); } &&
13091          { ac_try='test -s conftest$ac_exeext'
13092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13093   (eval $ac_try) 2>&5
13094   ac_status=$?
13095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096   (exit $ac_status); }; }; then
13097   eval "$as_ac_var=yes"
13098 else
13099   echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13101
13102 eval "$as_ac_var=no"
13103 fi
13104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13105 fi
13106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13107 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13108 if test `eval echo '${'$as_ac_var'}'` = yes; then
13109   cat >>confdefs.h <<_ACEOF
13110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13111 _ACEOF
13112
13113 else
13114   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13115 fi
13116 done
13117
13118
13119   if test $ac_cv_func_dup2 = no; then
13120
13121
13122   :
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132   fi
13133
13134 echo "$as_me:$LINENO: checking for getgroups" >&5
13135 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
13136 if test "${ac_cv_func_getgroups+set}" = set; then
13137   echo $ECHO_N "(cached) $ECHO_C" >&6
13138 else
13139   cat >conftest.$ac_ext <<_ACEOF
13140 /* confdefs.h.  */
13141 _ACEOF
13142 cat confdefs.h >>conftest.$ac_ext
13143 cat >>conftest.$ac_ext <<_ACEOF
13144 /* end confdefs.h.  */
13145 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
13146    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13147 #define getgroups innocuous_getgroups
13148
13149 /* System header to define __stub macros and hopefully few prototypes,
13150     which can conflict with char getgroups (); below.
13151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13152     <limits.h> exists even on freestanding compilers.  */
13153
13154 #ifdef __STDC__
13155 # include <limits.h>
13156 #else
13157 # include <assert.h>
13158 #endif
13159
13160 #undef getgroups
13161
13162 /* Override any gcc2 internal prototype to avoid an error.  */
13163 #ifdef __cplusplus
13164 extern "C"
13165 {
13166 #endif
13167 /* We use char because int might match the return type of a gcc2
13168    builtin and then its argument prototype would still apply.  */
13169 char getgroups ();
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_getgroups) || defined (__stub___getgroups)
13174 choke me
13175 #else
13176 char (*f) () = getgroups;
13177 #endif
13178 #ifdef __cplusplus
13179 }
13180 #endif
13181
13182 int
13183 main ()
13184 {
13185 return f != getgroups;
13186   ;
13187   return 0;
13188 }
13189 _ACEOF
13190 rm -f conftest.$ac_objext conftest$ac_exeext
13191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13192   (eval $ac_link) 2>&5
13193   ac_status=$?
13194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); } &&
13196          { ac_try='test -s conftest$ac_exeext'
13197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198   (eval $ac_try) 2>&5
13199   ac_status=$?
13200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201   (exit $ac_status); }; }; then
13202   ac_cv_func_getgroups=yes
13203 else
13204   echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13206
13207 ac_cv_func_getgroups=no
13208 fi
13209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13210 fi
13211 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
13212 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
13213
13214
13215 # If we don't yet have getgroups, see if it's in -lbsd.
13216 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
13217 ac_save_LIBS=$LIBS
13218 if test $ac_cv_func_getgroups = no; then
13219   echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
13220 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
13221 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
13222   echo $ECHO_N "(cached) $ECHO_C" >&6
13223 else
13224   ac_check_lib_save_LIBS=$LIBS
13225 LIBS="-lbsd  $LIBS"
13226 cat >conftest.$ac_ext <<_ACEOF
13227 /* confdefs.h.  */
13228 _ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h.  */
13232
13233 /* Override any gcc2 internal prototype to avoid an error.  */
13234 #ifdef __cplusplus
13235 extern "C"
13236 #endif
13237 /* We use char because int might match the return type of a gcc2
13238    builtin and then its argument prototype would still apply.  */
13239 char getgroups ();
13240 int
13241 main ()
13242 {
13243 getgroups ();
13244   ;
13245   return 0;
13246 }
13247 _ACEOF
13248 rm -f conftest.$ac_objext conftest$ac_exeext
13249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13250   (eval $ac_link) 2>&5
13251   ac_status=$?
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); } &&
13254          { ac_try='test -s conftest$ac_exeext'
13255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256   (eval $ac_try) 2>&5
13257   ac_status=$?
13258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259   (exit $ac_status); }; }; then
13260   ac_cv_lib_bsd_getgroups=yes
13261 else
13262   echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13264
13265 ac_cv_lib_bsd_getgroups=no
13266 fi
13267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13268 LIBS=$ac_check_lib_save_LIBS
13269 fi
13270 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
13271 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
13272 if test $ac_cv_lib_bsd_getgroups = yes; then
13273   GETGROUPS_LIB=-lbsd
13274 fi
13275
13276 fi
13277
13278 # Run the program to test the functionality of the system-supplied
13279 # getgroups function only if there is such a function.
13280 if test $ac_cv_func_getgroups = yes; then
13281   echo "$as_me:$LINENO: checking for working getgroups" >&5
13282 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
13283 if test "${ac_cv_func_getgroups_works+set}" = set; then
13284   echo $ECHO_N "(cached) $ECHO_C" >&6
13285 else
13286   if test "$cross_compiling" = yes; then
13287   ac_cv_func_getgroups_works=no
13288 else
13289   cat >conftest.$ac_ext <<_ACEOF
13290 /* confdefs.h.  */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h.  */
13295 $ac_includes_default
13296 int
13297 main ()
13298 {
13299 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
13300        exit (getgroups (0, 0) == -1 ? 1 : 0);
13301   ;
13302   return 0;
13303 }
13304 _ACEOF
13305 rm -f conftest$ac_exeext
13306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13307   (eval $ac_link) 2>&5
13308   ac_status=$?
13309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312   (eval $ac_try) 2>&5
13313   ac_status=$?
13314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315   (exit $ac_status); }; }; then
13316   ac_cv_func_getgroups_works=yes
13317 else
13318   echo "$as_me: program exited with status $ac_status" >&5
13319 echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.$ac_ext >&5
13321
13322 ( exit $ac_status )
13323 ac_cv_func_getgroups_works=no
13324 fi
13325 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13326 fi
13327
13328 fi
13329 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
13330 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
13331   if test $ac_cv_func_getgroups_works = yes; then
13332
13333 cat >>confdefs.h <<\_ACEOF
13334 #define HAVE_GETGROUPS 1
13335 _ACEOF
13336
13337   fi
13338 fi
13339 LIBS=$ac_save_LIBS
13340
13341
13342
13343
13344   echo "$as_me:$LINENO: checking whether euidaccess is declared" >&5
13345 echo $ECHO_N "checking whether euidaccess is declared... $ECHO_C" >&6
13346 if test "${ac_cv_have_decl_euidaccess+set}" = set; then
13347   echo $ECHO_N "(cached) $ECHO_C" >&6
13348 else
13349   cat >conftest.$ac_ext <<_ACEOF
13350 /* confdefs.h.  */
13351 _ACEOF
13352 cat confdefs.h >>conftest.$ac_ext
13353 cat >>conftest.$ac_ext <<_ACEOF
13354 /* end confdefs.h.  */
13355 $ac_includes_default
13356 int
13357 main ()
13358 {
13359 #ifndef euidaccess
13360   char *p = (char *) euidaccess;
13361 #endif
13362
13363   ;
13364   return 0;
13365 }
13366 _ACEOF
13367 rm -f conftest.$ac_objext
13368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13369   (eval $ac_compile) 2>&5
13370   ac_status=$?
13371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372   (exit $ac_status); } &&
13373          { ac_try='test -s conftest.$ac_objext'
13374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375   (eval $ac_try) 2>&5
13376   ac_status=$?
13377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378   (exit $ac_status); }; }; then
13379   ac_cv_have_decl_euidaccess=yes
13380 else
13381   echo "$as_me: failed program was:" >&5
13382 sed 's/^/| /' conftest.$ac_ext >&5
13383
13384 ac_cv_have_decl_euidaccess=no
13385 fi
13386 rm -f conftest.$ac_objext conftest.$ac_ext
13387 fi
13388 echo "$as_me:$LINENO: result: $ac_cv_have_decl_euidaccess" >&5
13389 echo "${ECHO_T}$ac_cv_have_decl_euidaccess" >&6
13390 if test $ac_cv_have_decl_euidaccess = yes; then
13391
13392 cat >>confdefs.h <<_ACEOF
13393 #define HAVE_DECL_EUIDACCESS 1
13394 _ACEOF
13395
13396
13397 else
13398   cat >>confdefs.h <<_ACEOF
13399 #define HAVE_DECL_EUIDACCESS 0
13400 _ACEOF
13401
13402
13403 fi
13404
13405
13406
13407 for ac_func in euidaccess
13408 do
13409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13410 echo "$as_me:$LINENO: checking for $ac_func" >&5
13411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13412 if eval "test \"\${$as_ac_var+set}\" = set"; then
13413   echo $ECHO_N "(cached) $ECHO_C" >&6
13414 else
13415   cat >conftest.$ac_ext <<_ACEOF
13416 /* confdefs.h.  */
13417 _ACEOF
13418 cat confdefs.h >>conftest.$ac_ext
13419 cat >>conftest.$ac_ext <<_ACEOF
13420 /* end confdefs.h.  */
13421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13423 #define $ac_func innocuous_$ac_func
13424
13425 /* System header to define __stub macros and hopefully few prototypes,
13426     which can conflict with char $ac_func (); below.
13427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13428     <limits.h> exists even on freestanding compilers.  */
13429
13430 #ifdef __STDC__
13431 # include <limits.h>
13432 #else
13433 # include <assert.h>
13434 #endif
13435
13436 #undef $ac_func
13437
13438 /* Override any gcc2 internal prototype to avoid an error.  */
13439 #ifdef __cplusplus
13440 extern "C"
13441 {
13442 #endif
13443 /* We use char because int might match the return type of a gcc2
13444    builtin and then its argument prototype would still apply.  */
13445 char $ac_func ();
13446 /* The GNU C library defines this for functions which it implements
13447     to always fail with ENOSYS.  Some functions are actually named
13448     something starting with __ and the normal name is an alias.  */
13449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13450 choke me
13451 #else
13452 char (*f) () = $ac_func;
13453 #endif
13454 #ifdef __cplusplus
13455 }
13456 #endif
13457
13458 int
13459 main ()
13460 {
13461 return f != $ac_func;
13462   ;
13463   return 0;
13464 }
13465 _ACEOF
13466 rm -f conftest.$ac_objext conftest$ac_exeext
13467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13468   (eval $ac_link) 2>&5
13469   ac_status=$?
13470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471   (exit $ac_status); } &&
13472          { ac_try='test -s conftest$ac_exeext'
13473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474   (eval $ac_try) 2>&5
13475   ac_status=$?
13476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477   (exit $ac_status); }; }; then
13478   eval "$as_ac_var=yes"
13479 else
13480   echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.$ac_ext >&5
13482
13483 eval "$as_ac_var=no"
13484 fi
13485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13486 fi
13487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13489 if test `eval echo '${'$as_ac_var'}'` = yes; then
13490   cat >>confdefs.h <<_ACEOF
13491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13492 _ACEOF
13493
13494 else
13495   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13496 fi
13497 done
13498
13499
13500   if test $ac_cv_func_euidaccess = no; then
13501
13502
13503   :
13504
13505
13506
13507
13508
13509
13510
13511   fi
13512
13513 echo "$as_me:$LINENO: checking for mbstate_t" >&5
13514 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
13515 if test "${ac_cv_type_mbstate_t+set}" = set; then
13516   echo $ECHO_N "(cached) $ECHO_C" >&6
13517 else
13518   cat >conftest.$ac_ext <<_ACEOF
13519 /* confdefs.h.  */
13520 _ACEOF
13521 cat confdefs.h >>conftest.$ac_ext
13522 cat >>conftest.$ac_ext <<_ACEOF
13523 /* end confdefs.h.  */
13524 $ac_includes_default
13525 #           include <wchar.h>
13526 int
13527 main ()
13528 {
13529 mbstate_t x; return sizeof x;
13530   ;
13531   return 0;
13532 }
13533 _ACEOF
13534 rm -f conftest.$ac_objext
13535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13536   (eval $ac_compile) 2>&5
13537   ac_status=$?
13538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539   (exit $ac_status); } &&
13540          { ac_try='test -s conftest.$ac_objext'
13541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542   (eval $ac_try) 2>&5
13543   ac_status=$?
13544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545   (exit $ac_status); }; }; then
13546   ac_cv_type_mbstate_t=yes
13547 else
13548   echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13550
13551 ac_cv_type_mbstate_t=no
13552 fi
13553 rm -f conftest.$ac_objext conftest.$ac_ext
13554 fi
13555 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
13556 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
13557    if test $ac_cv_type_mbstate_t = yes; then
13558
13559 cat >>confdefs.h <<\_ACEOF
13560 #define HAVE_MBSTATE_T 1
13561 _ACEOF
13562
13563    else
13564
13565 cat >>confdefs.h <<\_ACEOF
13566 #define mbstate_t int
13567 _ACEOF
13568
13569    fi
13570
13571
13572
13573   FNMATCH_H=
13574   echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
13575 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6
13576 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
13577   echo $ECHO_N "(cached) $ECHO_C" >&6
13578 else
13579   # Some versions of Solaris, SCO, and the GNU C Library
13580    # have a broken or incompatible fnmatch.
13581    # So we run a test program.  If we are cross-compiling, take no chance.
13582    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
13583    if test "$cross_compiling" = yes; then
13584   ac_cv_func_fnmatch_gnu=cross
13585 else
13586   cat >conftest.$ac_ext <<_ACEOF
13587 /* confdefs.h.  */
13588 _ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h.  */
13592
13593 #          include <stdlib.h>
13594 #          include <fnmatch.h>
13595 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
13596 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
13597
13598 int
13599 main ()
13600 {
13601 exit
13602            (!(y ("a*", "abc", 0)
13603               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
13604               && y ("a\\\\bc", "abc", 0)
13605               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
13606               && y ("*x", ".x", 0)
13607               && n ("*x", ".x", FNM_PERIOD)
13608               && y ("xxXX", "xXxX", FNM_CASEFOLD)
13609                     && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
13610                     && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
13611                     && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
13612                     && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
13613                     && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)));
13614   ;
13615   return 0;
13616 }
13617 _ACEOF
13618 rm -f conftest$ac_exeext
13619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13620   (eval $ac_link) 2>&5
13621   ac_status=$?
13622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625   (eval $ac_try) 2>&5
13626   ac_status=$?
13627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628   (exit $ac_status); }; }; then
13629   ac_cv_func_fnmatch_gnu=yes
13630 else
13631   echo "$as_me: program exited with status $ac_status" >&5
13632 echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13634
13635 ( exit $ac_status )
13636 ac_cv_func_fnmatch_gnu=no
13637 fi
13638 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13639 fi
13640 fi
13641 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
13642 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6
13643 if test $ac_cv_func_fnmatch_gnu = yes; then
13644   rm -f lib/fnmatch.h
13645 else
13646   echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13647 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13648 if test "${ac_cv_have_decl_getenv+set}" = set; then
13649   echo $ECHO_N "(cached) $ECHO_C" >&6
13650 else
13651   cat >conftest.$ac_ext <<_ACEOF
13652 /* confdefs.h.  */
13653 _ACEOF
13654 cat confdefs.h >>conftest.$ac_ext
13655 cat >>conftest.$ac_ext <<_ACEOF
13656 /* end confdefs.h.  */
13657 $ac_includes_default
13658 int
13659 main ()
13660 {
13661 #ifndef getenv
13662   char *p = (char *) getenv;
13663 #endif
13664
13665   ;
13666   return 0;
13667 }
13668 _ACEOF
13669 rm -f conftest.$ac_objext
13670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13671   (eval $ac_compile) 2>&5
13672   ac_status=$?
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); } &&
13675          { ac_try='test -s conftest.$ac_objext'
13676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677   (eval $ac_try) 2>&5
13678   ac_status=$?
13679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680   (exit $ac_status); }; }; then
13681   ac_cv_have_decl_getenv=yes
13682 else
13683   echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13685
13686 ac_cv_have_decl_getenv=no
13687 fi
13688 rm -f conftest.$ac_objext conftest.$ac_ext
13689 fi
13690 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13691 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13692 if test $ac_cv_have_decl_getenv = yes; then
13693
13694 cat >>confdefs.h <<_ACEOF
13695 #define HAVE_DECL_GETENV 1
13696 _ACEOF
13697
13698
13699 else
13700   cat >>confdefs.h <<_ACEOF
13701 #define HAVE_DECL_GETENV 0
13702 _ACEOF
13703
13704
13705 fi
13706
13707
13708
13709
13710
13711
13712 for ac_func in btowc mbsrtowcs mempcpy wmempcpy
13713 do
13714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13715 echo "$as_me:$LINENO: checking for $ac_func" >&5
13716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13717 if eval "test \"\${$as_ac_var+set}\" = set"; then
13718   echo $ECHO_N "(cached) $ECHO_C" >&6
13719 else
13720   cat >conftest.$ac_ext <<_ACEOF
13721 /* confdefs.h.  */
13722 _ACEOF
13723 cat confdefs.h >>conftest.$ac_ext
13724 cat >>conftest.$ac_ext <<_ACEOF
13725 /* end confdefs.h.  */
13726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13728 #define $ac_func innocuous_$ac_func
13729
13730 /* System header to define __stub macros and hopefully few prototypes,
13731     which can conflict with char $ac_func (); below.
13732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13733     <limits.h> exists even on freestanding compilers.  */
13734
13735 #ifdef __STDC__
13736 # include <limits.h>
13737 #else
13738 # include <assert.h>
13739 #endif
13740
13741 #undef $ac_func
13742
13743 /* Override any gcc2 internal prototype to avoid an error.  */
13744 #ifdef __cplusplus
13745 extern "C"
13746 {
13747 #endif
13748 /* We use char because int might match the return type of a gcc2
13749    builtin and then its argument prototype would still apply.  */
13750 char $ac_func ();
13751 /* The GNU C library defines this for functions which it implements
13752     to always fail with ENOSYS.  Some functions are actually named
13753     something starting with __ and the normal name is an alias.  */
13754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13755 choke me
13756 #else
13757 char (*f) () = $ac_func;
13758 #endif
13759 #ifdef __cplusplus
13760 }
13761 #endif
13762
13763 int
13764 main ()
13765 {
13766 return f != $ac_func;
13767   ;
13768   return 0;
13769 }
13770 _ACEOF
13771 rm -f conftest.$ac_objext conftest$ac_exeext
13772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13773   (eval $ac_link) 2>&5
13774   ac_status=$?
13775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776   (exit $ac_status); } &&
13777          { ac_try='test -s conftest$ac_exeext'
13778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779   (eval $ac_try) 2>&5
13780   ac_status=$?
13781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782   (exit $ac_status); }; }; then
13783   eval "$as_ac_var=yes"
13784 else
13785   echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13787
13788 eval "$as_ac_var=no"
13789 fi
13790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13791 fi
13792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13793 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13794 if test `eval echo '${'$as_ac_var'}'` = yes; then
13795   cat >>confdefs.h <<_ACEOF
13796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13797 _ACEOF
13798
13799 fi
13800 done
13801
13802
13803
13804 for ac_header in wchar.h wctype.h
13805 do
13806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13808   echo "$as_me:$LINENO: checking for $ac_header" >&5
13809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13811   echo $ECHO_N "(cached) $ECHO_C" >&6
13812 fi
13813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13815 else
13816   # Is the header compilable?
13817 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13819 cat >conftest.$ac_ext <<_ACEOF
13820 /* confdefs.h.  */
13821 _ACEOF
13822 cat confdefs.h >>conftest.$ac_ext
13823 cat >>conftest.$ac_ext <<_ACEOF
13824 /* end confdefs.h.  */
13825 $ac_includes_default
13826 #include <$ac_header>
13827 _ACEOF
13828 rm -f conftest.$ac_objext
13829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13830   (eval $ac_compile) 2>&5
13831   ac_status=$?
13832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833   (exit $ac_status); } &&
13834          { ac_try='test -s conftest.$ac_objext'
13835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836   (eval $ac_try) 2>&5
13837   ac_status=$?
13838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839   (exit $ac_status); }; }; then
13840   ac_header_compiler=yes
13841 else
13842   echo "$as_me: failed program was:" >&5
13843 sed 's/^/| /' conftest.$ac_ext >&5
13844
13845 ac_header_compiler=no
13846 fi
13847 rm -f conftest.$ac_objext conftest.$ac_ext
13848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13849 echo "${ECHO_T}$ac_header_compiler" >&6
13850
13851 # Is the header present?
13852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13854 cat >conftest.$ac_ext <<_ACEOF
13855 /* confdefs.h.  */
13856 _ACEOF
13857 cat confdefs.h >>conftest.$ac_ext
13858 cat >>conftest.$ac_ext <<_ACEOF
13859 /* end confdefs.h.  */
13860 #include <$ac_header>
13861 _ACEOF
13862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13863   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13864   ac_status=$?
13865   grep -v '^ *+' conftest.er1 >conftest.err
13866   rm -f conftest.er1
13867   cat conftest.err >&5
13868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869   (exit $ac_status); } >/dev/null; then
13870   if test -s conftest.err; then
13871     ac_cpp_err=$ac_c_preproc_warn_flag
13872   else
13873     ac_cpp_err=
13874   fi
13875 else
13876   ac_cpp_err=yes
13877 fi
13878 if test -z "$ac_cpp_err"; then
13879   ac_header_preproc=yes
13880 else
13881   echo "$as_me: failed program was:" >&5
13882 sed 's/^/| /' conftest.$ac_ext >&5
13883
13884   ac_header_preproc=no
13885 fi
13886 rm -f conftest.err conftest.$ac_ext
13887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13888 echo "${ECHO_T}$ac_header_preproc" >&6
13889
13890 # So?  What about this header?
13891 case $ac_header_compiler:$ac_header_preproc in
13892   yes:no )
13893     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13897     ac_header_preproc=yes
13898     ;;
13899   no:yes )
13900     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13902     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13903 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13904     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13906     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13907 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13910     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13912     (
13913       cat <<\_ASBOX
13914 ## ------------------------------------ ##
13915 ## Report this to bug-coreutils@gnu.org ##
13916 ## ------------------------------------ ##
13917 _ASBOX
13918     ) |
13919       sed "s/^/$as_me: WARNING:     /" >&2
13920     ;;
13921 esac
13922 echo "$as_me:$LINENO: checking for $ac_header" >&5
13923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13925   echo $ECHO_N "(cached) $ECHO_C" >&6
13926 else
13927   eval "$as_ac_Header=\$ac_header_preproc"
13928 fi
13929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13931
13932 fi
13933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13934   cat >>confdefs.h <<_ACEOF
13935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13936 _ACEOF
13937
13938 fi
13939
13940 done
13941
13942 LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
13943 FNMATCH_H=fnmatch.h
13944
13945 cat >>confdefs.h <<\_ACEOF
13946 #define fnmatch rpl_fnmatch
13947 _ACEOF
13948
13949
13950 fi
13951
13952
13953   if test $ac_cv_func_fnmatch_gnu != yes; then
13954
13955
13956
13957   :
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968 cat >>confdefs.h <<\_ACEOF
13969 #define fnmatch gnu_fnmatch
13970 _ACEOF
13971
13972   fi
13973
13974
13975
13976
13977 for ac_func in gethostname
13978 do
13979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13980 echo "$as_me:$LINENO: checking for $ac_func" >&5
13981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13982 if eval "test \"\${$as_ac_var+set}\" = set"; then
13983   echo $ECHO_N "(cached) $ECHO_C" >&6
13984 else
13985   cat >conftest.$ac_ext <<_ACEOF
13986 /* confdefs.h.  */
13987 _ACEOF
13988 cat confdefs.h >>conftest.$ac_ext
13989 cat >>conftest.$ac_ext <<_ACEOF
13990 /* end confdefs.h.  */
13991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13993 #define $ac_func innocuous_$ac_func
13994
13995 /* System header to define __stub macros and hopefully few prototypes,
13996     which can conflict with char $ac_func (); below.
13997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13998     <limits.h> exists even on freestanding compilers.  */
13999
14000 #ifdef __STDC__
14001 # include <limits.h>
14002 #else
14003 # include <assert.h>
14004 #endif
14005
14006 #undef $ac_func
14007
14008 /* Override any gcc2 internal prototype to avoid an error.  */
14009 #ifdef __cplusplus
14010 extern "C"
14011 {
14012 #endif
14013 /* We use char because int might match the return type of a gcc2
14014    builtin and then its argument prototype would still apply.  */
14015 char $ac_func ();
14016 /* The GNU C library defines this for functions which it implements
14017     to always fail with ENOSYS.  Some functions are actually named
14018     something starting with __ and the normal name is an alias.  */
14019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14020 choke me
14021 #else
14022 char (*f) () = $ac_func;
14023 #endif
14024 #ifdef __cplusplus
14025 }
14026 #endif
14027
14028 int
14029 main ()
14030 {
14031 return f != $ac_func;
14032   ;
14033   return 0;
14034 }
14035 _ACEOF
14036 rm -f conftest.$ac_objext conftest$ac_exeext
14037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14038   (eval $ac_link) 2>&5
14039   ac_status=$?
14040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041   (exit $ac_status); } &&
14042          { ac_try='test -s conftest$ac_exeext'
14043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14044   (eval $ac_try) 2>&5
14045   ac_status=$?
14046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047   (exit $ac_status); }; }; then
14048   eval "$as_ac_var=yes"
14049 else
14050   echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14052
14053 eval "$as_ac_var=no"
14054 fi
14055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14056 fi
14057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14059 if test `eval echo '${'$as_ac_var'}'` = yes; then
14060   cat >>confdefs.h <<_ACEOF
14061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14062 _ACEOF
14063
14064 else
14065   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14066 fi
14067 done
14068
14069
14070   if test $ac_cv_func_gethostname = no; then
14071
14072
14073 for ac_func in uname
14074 do
14075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14076 echo "$as_me:$LINENO: checking for $ac_func" >&5
14077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14078 if eval "test \"\${$as_ac_var+set}\" = set"; then
14079   echo $ECHO_N "(cached) $ECHO_C" >&6
14080 else
14081   cat >conftest.$ac_ext <<_ACEOF
14082 /* confdefs.h.  */
14083 _ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h.  */
14087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14089 #define $ac_func innocuous_$ac_func
14090
14091 /* System header to define __stub macros and hopefully few prototypes,
14092     which can conflict with char $ac_func (); below.
14093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14094     <limits.h> exists even on freestanding compilers.  */
14095
14096 #ifdef __STDC__
14097 # include <limits.h>
14098 #else
14099 # include <assert.h>
14100 #endif
14101
14102 #undef $ac_func
14103
14104 /* Override any gcc2 internal prototype to avoid an error.  */
14105 #ifdef __cplusplus
14106 extern "C"
14107 {
14108 #endif
14109 /* We use char because int might match the return type of a gcc2
14110    builtin and then its argument prototype would still apply.  */
14111 char $ac_func ();
14112 /* The GNU C library defines this for functions which it implements
14113     to always fail with ENOSYS.  Some functions are actually named
14114     something starting with __ and the normal name is an alias.  */
14115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14116 choke me
14117 #else
14118 char (*f) () = $ac_func;
14119 #endif
14120 #ifdef __cplusplus
14121 }
14122 #endif
14123
14124 int
14125 main ()
14126 {
14127 return f != $ac_func;
14128   ;
14129   return 0;
14130 }
14131 _ACEOF
14132 rm -f conftest.$ac_objext conftest$ac_exeext
14133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14134   (eval $ac_link) 2>&5
14135   ac_status=$?
14136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); } &&
14138          { ac_try='test -s conftest$ac_exeext'
14139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140   (eval $ac_try) 2>&5
14141   ac_status=$?
14142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143   (exit $ac_status); }; }; then
14144   eval "$as_ac_var=yes"
14145 else
14146   echo "$as_me: failed program was:" >&5
14147 sed 's/^/| /' conftest.$ac_ext >&5
14148
14149 eval "$as_ac_var=no"
14150 fi
14151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14152 fi
14153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14155 if test `eval echo '${'$as_ac_var'}'` = yes; then
14156   cat >>confdefs.h <<_ACEOF
14157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14158 _ACEOF
14159
14160 fi
14161 done
14162
14163
14164   fi
14165
14166
14167
14168
14169
14170
14171
14172
14173   ac_have_func=no # yes means we've found a way to get the load average.
14174
14175
14176   :
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189 for ac_header in mach/mach.h
14190 do
14191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14193   echo "$as_me:$LINENO: checking for $ac_header" >&5
14194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14196   echo $ECHO_N "(cached) $ECHO_C" >&6
14197 fi
14198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14200 else
14201   # Is the header compilable?
14202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14204 cat >conftest.$ac_ext <<_ACEOF
14205 /* confdefs.h.  */
14206 _ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h.  */
14210 $ac_includes_default
14211 #include <$ac_header>
14212 _ACEOF
14213 rm -f conftest.$ac_objext
14214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14215   (eval $ac_compile) 2>&5
14216   ac_status=$?
14217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218   (exit $ac_status); } &&
14219          { ac_try='test -s conftest.$ac_objext'
14220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14221   (eval $ac_try) 2>&5
14222   ac_status=$?
14223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224   (exit $ac_status); }; }; then
14225   ac_header_compiler=yes
14226 else
14227   echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14229
14230 ac_header_compiler=no
14231 fi
14232 rm -f conftest.$ac_objext conftest.$ac_ext
14233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14234 echo "${ECHO_T}$ac_header_compiler" >&6
14235
14236 # Is the header present?
14237 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14238 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14239 cat >conftest.$ac_ext <<_ACEOF
14240 /* confdefs.h.  */
14241 _ACEOF
14242 cat confdefs.h >>conftest.$ac_ext
14243 cat >>conftest.$ac_ext <<_ACEOF
14244 /* end confdefs.h.  */
14245 #include <$ac_header>
14246 _ACEOF
14247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14248   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14249   ac_status=$?
14250   grep -v '^ *+' conftest.er1 >conftest.err
14251   rm -f conftest.er1
14252   cat conftest.err >&5
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); } >/dev/null; then
14255   if test -s conftest.err; then
14256     ac_cpp_err=$ac_c_preproc_warn_flag
14257   else
14258     ac_cpp_err=
14259   fi
14260 else
14261   ac_cpp_err=yes
14262 fi
14263 if test -z "$ac_cpp_err"; then
14264   ac_header_preproc=yes
14265 else
14266   echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14268
14269   ac_header_preproc=no
14270 fi
14271 rm -f conftest.err conftest.$ac_ext
14272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14273 echo "${ECHO_T}$ac_header_preproc" >&6
14274
14275 # So?  What about this header?
14276 case $ac_header_compiler:$ac_header_preproc in
14277   yes:no )
14278     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14280     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14282     ac_header_preproc=yes
14283     ;;
14284   no:yes )
14285     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14287     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14288 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14289     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14291     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14292 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14295     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14297     (
14298       cat <<\_ASBOX
14299 ## ------------------------------------ ##
14300 ## Report this to bug-coreutils@gnu.org ##
14301 ## ------------------------------------ ##
14302 _ASBOX
14303     ) |
14304       sed "s/^/$as_me: WARNING:     /" >&2
14305     ;;
14306 esac
14307 echo "$as_me:$LINENO: checking for $ac_header" >&5
14308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14310   echo $ECHO_N "(cached) $ECHO_C" >&6
14311 else
14312   eval "$as_ac_Header=\$ac_header_preproc"
14313 fi
14314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14316
14317 fi
14318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14319   cat >>confdefs.h <<_ACEOF
14320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14321 _ACEOF
14322
14323 fi
14324
14325 done
14326
14327
14328 for ac_func in setlocale
14329 do
14330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14331 echo "$as_me:$LINENO: checking for $ac_func" >&5
14332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14333 if eval "test \"\${$as_ac_var+set}\" = set"; then
14334   echo $ECHO_N "(cached) $ECHO_C" >&6
14335 else
14336   cat >conftest.$ac_ext <<_ACEOF
14337 /* confdefs.h.  */
14338 _ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h.  */
14342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14343    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14344 #define $ac_func innocuous_$ac_func
14345
14346 /* System header to define __stub macros and hopefully few prototypes,
14347     which can conflict with char $ac_func (); below.
14348     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14349     <limits.h> exists even on freestanding compilers.  */
14350
14351 #ifdef __STDC__
14352 # include <limits.h>
14353 #else
14354 # include <assert.h>
14355 #endif
14356
14357 #undef $ac_func
14358
14359 /* Override any gcc2 internal prototype to avoid an error.  */
14360 #ifdef __cplusplus
14361 extern "C"
14362 {
14363 #endif
14364 /* We use char because int might match the return type of a gcc2
14365    builtin and then its argument prototype would still apply.  */
14366 char $ac_func ();
14367 /* The GNU C library defines this for functions which it implements
14368     to always fail with ENOSYS.  Some functions are actually named
14369     something starting with __ and the normal name is an alias.  */
14370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14371 choke me
14372 #else
14373 char (*f) () = $ac_func;
14374 #endif
14375 #ifdef __cplusplus
14376 }
14377 #endif
14378
14379 int
14380 main ()
14381 {
14382 return f != $ac_func;
14383   ;
14384   return 0;
14385 }
14386 _ACEOF
14387 rm -f conftest.$ac_objext conftest$ac_exeext
14388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14389   (eval $ac_link) 2>&5
14390   ac_status=$?
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); } &&
14393          { ac_try='test -s conftest$ac_exeext'
14394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14395   (eval $ac_try) 2>&5
14396   ac_status=$?
14397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398   (exit $ac_status); }; }; then
14399   eval "$as_ac_var=yes"
14400 else
14401   echo "$as_me: failed program was:" >&5
14402 sed 's/^/| /' conftest.$ac_ext >&5
14403
14404 eval "$as_ac_var=no"
14405 fi
14406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14407 fi
14408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14410 if test `eval echo '${'$as_ac_var'}'` = yes; then
14411   cat >>confdefs.h <<_ACEOF
14412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14413 _ACEOF
14414
14415 fi
14416 done
14417
14418
14419 # By default, expect to find getloadavg.c in $srcdir/.
14420 ac_lib_dir_getloadavg=$srcdir
14421 # But if there's an argument, DIR, expect to find getloadavg.c in $srcdir/DIR.
14422 ac_lib_dir_getloadavg=$srcdir/lib
14423 # Make sure getloadavg.c is where it belongs, at ./configure-time.
14424 test -f $ac_lib_dir_getloadavg/getloadavg.c \
14425   || { { echo "$as_me:$LINENO: error: getloadavg.c is not in $ac_lib_dir_getloadavg" >&5
14426 echo "$as_me: error: getloadavg.c is not in $ac_lib_dir_getloadavg" >&2;}
14427    { (exit 1); exit 1; }; }
14428 # FIXME: Add an autoconf-time test, too?
14429
14430 ac_save_LIBS=$LIBS
14431
14432 # Check for getloadavg, but be sure not to touch the cache variable.
14433 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14434 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14435 if test "${ac_cv_func_getloadavg+set}" = set; then
14436   echo $ECHO_N "(cached) $ECHO_C" >&6
14437 else
14438   cat >conftest.$ac_ext <<_ACEOF
14439 /* confdefs.h.  */
14440 _ACEOF
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h.  */
14444 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14445    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14446 #define getloadavg innocuous_getloadavg
14447
14448 /* System header to define __stub macros and hopefully few prototypes,
14449     which can conflict with char getloadavg (); below.
14450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14451     <limits.h> exists even on freestanding compilers.  */
14452
14453 #ifdef __STDC__
14454 # include <limits.h>
14455 #else
14456 # include <assert.h>
14457 #endif
14458
14459 #undef getloadavg
14460
14461 /* Override any gcc2 internal prototype to avoid an error.  */
14462 #ifdef __cplusplus
14463 extern "C"
14464 {
14465 #endif
14466 /* We use char because int might match the return type of a gcc2
14467    builtin and then its argument prototype would still apply.  */
14468 char getloadavg ();
14469 /* The GNU C library defines this for functions which it implements
14470     to always fail with ENOSYS.  Some functions are actually named
14471     something starting with __ and the normal name is an alias.  */
14472 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14473 choke me
14474 #else
14475 char (*f) () = getloadavg;
14476 #endif
14477 #ifdef __cplusplus
14478 }
14479 #endif
14480
14481 int
14482 main ()
14483 {
14484 return f != getloadavg;
14485   ;
14486   return 0;
14487 }
14488 _ACEOF
14489 rm -f conftest.$ac_objext conftest$ac_exeext
14490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14491   (eval $ac_link) 2>&5
14492   ac_status=$?
14493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494   (exit $ac_status); } &&
14495          { ac_try='test -s conftest$ac_exeext'
14496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497   (eval $ac_try) 2>&5
14498   ac_status=$?
14499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500   (exit $ac_status); }; }; then
14501   ac_cv_func_getloadavg=yes
14502 else
14503   echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.$ac_ext >&5
14505
14506 ac_cv_func_getloadavg=no
14507 fi
14508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14509 fi
14510 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14511 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14512 if test $ac_cv_func_getloadavg = yes; then
14513   exit 0
14514 else
14515   exit 1
14516 fi
14517 ) && ac_have_func=yes
14518
14519 # On HPUX9, an unprivileged user can get load averages through this function.
14520
14521 for ac_func in pstat_getdynamic
14522 do
14523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14524 echo "$as_me:$LINENO: checking for $ac_func" >&5
14525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14526 if eval "test \"\${$as_ac_var+set}\" = set"; then
14527   echo $ECHO_N "(cached) $ECHO_C" >&6
14528 else
14529   cat >conftest.$ac_ext <<_ACEOF
14530 /* confdefs.h.  */
14531 _ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h.  */
14535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14536    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14537 #define $ac_func innocuous_$ac_func
14538
14539 /* System header to define __stub macros and hopefully few prototypes,
14540     which can conflict with char $ac_func (); below.
14541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14542     <limits.h> exists even on freestanding compilers.  */
14543
14544 #ifdef __STDC__
14545 # include <limits.h>
14546 #else
14547 # include <assert.h>
14548 #endif
14549
14550 #undef $ac_func
14551
14552 /* Override any gcc2 internal prototype to avoid an error.  */
14553 #ifdef __cplusplus
14554 extern "C"
14555 {
14556 #endif
14557 /* We use char because int might match the return type of a gcc2
14558    builtin and then its argument prototype would still apply.  */
14559 char $ac_func ();
14560 /* The GNU C library defines this for functions which it implements
14561     to always fail with ENOSYS.  Some functions are actually named
14562     something starting with __ and the normal name is an alias.  */
14563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14564 choke me
14565 #else
14566 char (*f) () = $ac_func;
14567 #endif
14568 #ifdef __cplusplus
14569 }
14570 #endif
14571
14572 int
14573 main ()
14574 {
14575 return f != $ac_func;
14576   ;
14577   return 0;
14578 }
14579 _ACEOF
14580 rm -f conftest.$ac_objext conftest$ac_exeext
14581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14582   (eval $ac_link) 2>&5
14583   ac_status=$?
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); } &&
14586          { ac_try='test -s conftest$ac_exeext'
14587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588   (eval $ac_try) 2>&5
14589   ac_status=$?
14590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591   (exit $ac_status); }; }; then
14592   eval "$as_ac_var=yes"
14593 else
14594   echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14596
14597 eval "$as_ac_var=no"
14598 fi
14599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14600 fi
14601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14603 if test `eval echo '${'$as_ac_var'}'` = yes; then
14604   cat >>confdefs.h <<_ACEOF
14605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14606 _ACEOF
14607
14608 fi
14609 done
14610
14611
14612 # Solaris has libkstat which does not require root.
14613
14614 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14615 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14616 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14617   echo $ECHO_N "(cached) $ECHO_C" >&6
14618 else
14619   ac_check_lib_save_LIBS=$LIBS
14620 LIBS="-lkstat  $LIBS"
14621 cat >conftest.$ac_ext <<_ACEOF
14622 /* confdefs.h.  */
14623 _ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h.  */
14627
14628 /* Override any gcc2 internal prototype to avoid an error.  */
14629 #ifdef __cplusplus
14630 extern "C"
14631 #endif
14632 /* We use char because int might match the return type of a gcc2
14633    builtin and then its argument prototype would still apply.  */
14634 char kstat_open ();
14635 int
14636 main ()
14637 {
14638 kstat_open ();
14639   ;
14640   return 0;
14641 }
14642 _ACEOF
14643 rm -f conftest.$ac_objext conftest$ac_exeext
14644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14645   (eval $ac_link) 2>&5
14646   ac_status=$?
14647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648   (exit $ac_status); } &&
14649          { ac_try='test -s conftest$ac_exeext'
14650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651   (eval $ac_try) 2>&5
14652   ac_status=$?
14653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654   (exit $ac_status); }; }; then
14655   ac_cv_lib_kstat_kstat_open=yes
14656 else
14657   echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.$ac_ext >&5
14659
14660 ac_cv_lib_kstat_kstat_open=no
14661 fi
14662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14663 LIBS=$ac_check_lib_save_LIBS
14664 fi
14665 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14666 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14667 if test $ac_cv_lib_kstat_kstat_open = yes; then
14668   cat >>confdefs.h <<_ACEOF
14669 #define HAVE_LIBKSTAT 1
14670 _ACEOF
14671
14672   LIBS="-lkstat $LIBS"
14673
14674 fi
14675
14676 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14677
14678 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14679 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14680 # to get the right answer into the cache.
14681 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14682 if test $ac_have_func = no; then
14683   echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14684 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14685 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14686   echo $ECHO_N "(cached) $ECHO_C" >&6
14687 else
14688   ac_check_lib_save_LIBS=$LIBS
14689 LIBS="-lelf  $LIBS"
14690 cat >conftest.$ac_ext <<_ACEOF
14691 /* confdefs.h.  */
14692 _ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h.  */
14696
14697 /* Override any gcc2 internal prototype to avoid an error.  */
14698 #ifdef __cplusplus
14699 extern "C"
14700 #endif
14701 /* We use char because int might match the return type of a gcc2
14702    builtin and then its argument prototype would still apply.  */
14703 char elf_begin ();
14704 int
14705 main ()
14706 {
14707 elf_begin ();
14708   ;
14709   return 0;
14710 }
14711 _ACEOF
14712 rm -f conftest.$ac_objext conftest$ac_exeext
14713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14714   (eval $ac_link) 2>&5
14715   ac_status=$?
14716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717   (exit $ac_status); } &&
14718          { ac_try='test -s conftest$ac_exeext'
14719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720   (eval $ac_try) 2>&5
14721   ac_status=$?
14722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723   (exit $ac_status); }; }; then
14724   ac_cv_lib_elf_elf_begin=yes
14725 else
14726   echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14728
14729 ac_cv_lib_elf_elf_begin=no
14730 fi
14731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14732 LIBS=$ac_check_lib_save_LIBS
14733 fi
14734 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14735 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14736 if test $ac_cv_lib_elf_elf_begin = yes; then
14737   LIBS="-lelf $LIBS"
14738 fi
14739
14740 fi
14741 if test $ac_have_func = no; then
14742   echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14743 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14744 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14745   echo $ECHO_N "(cached) $ECHO_C" >&6
14746 else
14747   ac_check_lib_save_LIBS=$LIBS
14748 LIBS="-lkvm  $LIBS"
14749 cat >conftest.$ac_ext <<_ACEOF
14750 /* confdefs.h.  */
14751 _ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h.  */
14755
14756 /* Override any gcc2 internal prototype to avoid an error.  */
14757 #ifdef __cplusplus
14758 extern "C"
14759 #endif
14760 /* We use char because int might match the return type of a gcc2
14761    builtin and then its argument prototype would still apply.  */
14762 char kvm_open ();
14763 int
14764 main ()
14765 {
14766 kvm_open ();
14767   ;
14768   return 0;
14769 }
14770 _ACEOF
14771 rm -f conftest.$ac_objext conftest$ac_exeext
14772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14773   (eval $ac_link) 2>&5
14774   ac_status=$?
14775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776   (exit $ac_status); } &&
14777          { ac_try='test -s conftest$ac_exeext'
14778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779   (eval $ac_try) 2>&5
14780   ac_status=$?
14781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782   (exit $ac_status); }; }; then
14783   ac_cv_lib_kvm_kvm_open=yes
14784 else
14785   echo "$as_me: failed program was:" >&5
14786 sed 's/^/| /' conftest.$ac_ext >&5
14787
14788 ac_cv_lib_kvm_kvm_open=no
14789 fi
14790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14791 LIBS=$ac_check_lib_save_LIBS
14792 fi
14793 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14794 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14795 if test $ac_cv_lib_kvm_kvm_open = yes; then
14796   LIBS="-lkvm $LIBS"
14797 fi
14798
14799   # Check for the 4.4BSD definition of getloadavg.
14800   echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14801 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14802 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14803   echo $ECHO_N "(cached) $ECHO_C" >&6
14804 else
14805   ac_check_lib_save_LIBS=$LIBS
14806 LIBS="-lutil  $LIBS"
14807 cat >conftest.$ac_ext <<_ACEOF
14808 /* confdefs.h.  */
14809 _ACEOF
14810 cat confdefs.h >>conftest.$ac_ext
14811 cat >>conftest.$ac_ext <<_ACEOF
14812 /* end confdefs.h.  */
14813
14814 /* Override any gcc2 internal prototype to avoid an error.  */
14815 #ifdef __cplusplus
14816 extern "C"
14817 #endif
14818 /* We use char because int might match the return type of a gcc2
14819    builtin and then its argument prototype would still apply.  */
14820 char getloadavg ();
14821 int
14822 main ()
14823 {
14824 getloadavg ();
14825   ;
14826   return 0;
14827 }
14828 _ACEOF
14829 rm -f conftest.$ac_objext conftest$ac_exeext
14830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14831   (eval $ac_link) 2>&5
14832   ac_status=$?
14833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834   (exit $ac_status); } &&
14835          { ac_try='test -s conftest$ac_exeext'
14836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14837   (eval $ac_try) 2>&5
14838   ac_status=$?
14839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840   (exit $ac_status); }; }; then
14841   ac_cv_lib_util_getloadavg=yes
14842 else
14843   echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.$ac_ext >&5
14845
14846 ac_cv_lib_util_getloadavg=no
14847 fi
14848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14849 LIBS=$ac_check_lib_save_LIBS
14850 fi
14851 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14852 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14853 if test $ac_cv_lib_util_getloadavg = yes; then
14854   LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
14855 fi
14856
14857 fi
14858
14859 if test $ac_have_func = no; then
14860   # There is a commonly available library for RS/6000 AIX.
14861   # Since it is not a standard part of AIX, it might be installed locally.
14862   ac_getloadavg_LIBS=$LIBS
14863   LIBS="-L/usr/local/lib $LIBS"
14864   echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14865 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14866 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14867   echo $ECHO_N "(cached) $ECHO_C" >&6
14868 else
14869   ac_check_lib_save_LIBS=$LIBS
14870 LIBS="-lgetloadavg  $LIBS"
14871 cat >conftest.$ac_ext <<_ACEOF
14872 /* confdefs.h.  */
14873 _ACEOF
14874 cat confdefs.h >>conftest.$ac_ext
14875 cat >>conftest.$ac_ext <<_ACEOF
14876 /* end confdefs.h.  */
14877
14878 /* Override any gcc2 internal prototype to avoid an error.  */
14879 #ifdef __cplusplus
14880 extern "C"
14881 #endif
14882 /* We use char because int might match the return type of a gcc2
14883    builtin and then its argument prototype would still apply.  */
14884 char getloadavg ();
14885 int
14886 main ()
14887 {
14888 getloadavg ();
14889   ;
14890   return 0;
14891 }
14892 _ACEOF
14893 rm -f conftest.$ac_objext conftest$ac_exeext
14894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14895   (eval $ac_link) 2>&5
14896   ac_status=$?
14897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898   (exit $ac_status); } &&
14899          { ac_try='test -s conftest$ac_exeext'
14900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901   (eval $ac_try) 2>&5
14902   ac_status=$?
14903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904   (exit $ac_status); }; }; then
14905   ac_cv_lib_getloadavg_getloadavg=yes
14906 else
14907   echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14909
14910 ac_cv_lib_getloadavg_getloadavg=no
14911 fi
14912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14913 LIBS=$ac_check_lib_save_LIBS
14914 fi
14915 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14916 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14917 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14918   LIBS="-lgetloadavg $LIBS"
14919 else
14920   LIBS=$ac_getloadavg_LIBS
14921 fi
14922
14923 fi
14924
14925 # Make sure it is really in the library, if we think we found it,
14926 # otherwise set up the replacement function.
14927
14928 for ac_func in getloadavg
14929 do
14930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14931 echo "$as_me:$LINENO: checking for $ac_func" >&5
14932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14933 if eval "test \"\${$as_ac_var+set}\" = set"; then
14934   echo $ECHO_N "(cached) $ECHO_C" >&6
14935 else
14936   cat >conftest.$ac_ext <<_ACEOF
14937 /* confdefs.h.  */
14938 _ACEOF
14939 cat confdefs.h >>conftest.$ac_ext
14940 cat >>conftest.$ac_ext <<_ACEOF
14941 /* end confdefs.h.  */
14942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14944 #define $ac_func innocuous_$ac_func
14945
14946 /* System header to define __stub macros and hopefully few prototypes,
14947     which can conflict with char $ac_func (); below.
14948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14949     <limits.h> exists even on freestanding compilers.  */
14950
14951 #ifdef __STDC__
14952 # include <limits.h>
14953 #else
14954 # include <assert.h>
14955 #endif
14956
14957 #undef $ac_func
14958
14959 /* Override any gcc2 internal prototype to avoid an error.  */
14960 #ifdef __cplusplus
14961 extern "C"
14962 {
14963 #endif
14964 /* We use char because int might match the return type of a gcc2
14965    builtin and then its argument prototype would still apply.  */
14966 char $ac_func ();
14967 /* The GNU C library defines this for functions which it implements
14968     to always fail with ENOSYS.  Some functions are actually named
14969     something starting with __ and the normal name is an alias.  */
14970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14971 choke me
14972 #else
14973 char (*f) () = $ac_func;
14974 #endif
14975 #ifdef __cplusplus
14976 }
14977 #endif
14978
14979 int
14980 main ()
14981 {
14982 return f != $ac_func;
14983   ;
14984   return 0;
14985 }
14986 _ACEOF
14987 rm -f conftest.$ac_objext conftest$ac_exeext
14988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14989   (eval $ac_link) 2>&5
14990   ac_status=$?
14991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992   (exit $ac_status); } &&
14993          { ac_try='test -s conftest$ac_exeext'
14994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14995   (eval $ac_try) 2>&5
14996   ac_status=$?
14997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998   (exit $ac_status); }; }; then
14999   eval "$as_ac_var=yes"
15000 else
15001   echo "$as_me: failed program was:" >&5
15002 sed 's/^/| /' conftest.$ac_ext >&5
15003
15004 eval "$as_ac_var=no"
15005 fi
15006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15007 fi
15008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15010 if test `eval echo '${'$as_ac_var'}'` = yes; then
15011   cat >>confdefs.h <<_ACEOF
15012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15013 _ACEOF
15014
15015 else
15016   LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
15017
15018 cat >>confdefs.h <<\_ACEOF
15019 #define C_GETLOADAVG 1
15020 _ACEOF
15021
15022 # Figure out what our getloadavg.c needs.
15023 ac_have_func=no
15024 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15025   echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15026 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15027 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15028   echo $ECHO_N "(cached) $ECHO_C" >&6
15029 fi
15030 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15031 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15032 else
15033   # Is the header compilable?
15034 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15035 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15036 cat >conftest.$ac_ext <<_ACEOF
15037 /* confdefs.h.  */
15038 _ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h.  */
15042 $ac_includes_default
15043 #include <sys/dg_sys_info.h>
15044 _ACEOF
15045 rm -f conftest.$ac_objext
15046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15047   (eval $ac_compile) 2>&5
15048   ac_status=$?
15049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050   (exit $ac_status); } &&
15051          { ac_try='test -s conftest.$ac_objext'
15052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053   (eval $ac_try) 2>&5
15054   ac_status=$?
15055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056   (exit $ac_status); }; }; then
15057   ac_header_compiler=yes
15058 else
15059   echo "$as_me: failed program was:" >&5
15060 sed 's/^/| /' conftest.$ac_ext >&5
15061
15062 ac_header_compiler=no
15063 fi
15064 rm -f conftest.$ac_objext conftest.$ac_ext
15065 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15066 echo "${ECHO_T}$ac_header_compiler" >&6
15067
15068 # Is the header present?
15069 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15070 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15071 cat >conftest.$ac_ext <<_ACEOF
15072 /* confdefs.h.  */
15073 _ACEOF
15074 cat confdefs.h >>conftest.$ac_ext
15075 cat >>conftest.$ac_ext <<_ACEOF
15076 /* end confdefs.h.  */
15077 #include <sys/dg_sys_info.h>
15078 _ACEOF
15079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15080   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15081   ac_status=$?
15082   grep -v '^ *+' conftest.er1 >conftest.err
15083   rm -f conftest.er1
15084   cat conftest.err >&5
15085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086   (exit $ac_status); } >/dev/null; then
15087   if test -s conftest.err; then
15088     ac_cpp_err=$ac_c_preproc_warn_flag
15089   else
15090     ac_cpp_err=
15091   fi
15092 else
15093   ac_cpp_err=yes
15094 fi
15095 if test -z "$ac_cpp_err"; then
15096   ac_header_preproc=yes
15097 else
15098   echo "$as_me: failed program was:" >&5
15099 sed 's/^/| /' conftest.$ac_ext >&5
15100
15101   ac_header_preproc=no
15102 fi
15103 rm -f conftest.err conftest.$ac_ext
15104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15105 echo "${ECHO_T}$ac_header_preproc" >&6
15106
15107 # So?  What about this header?
15108 case $ac_header_compiler:$ac_header_preproc in
15109   yes:no )
15110     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15111 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15112     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15113 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15114     ac_header_preproc=yes
15115     ;;
15116   no:yes )
15117     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15118 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15119     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&5
15120 echo "$as_me: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&2;}
15121     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15122 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15123     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&5
15124 echo "$as_me: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15125     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15126 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15127     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15128 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15129     (
15130       cat <<\_ASBOX
15131 ## ------------------------------------ ##
15132 ## Report this to bug-coreutils@gnu.org ##
15133 ## ------------------------------------ ##
15134 _ASBOX
15135     ) |
15136       sed "s/^/$as_me: WARNING:     /" >&2
15137     ;;
15138 esac
15139 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15140 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15141 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15142   echo $ECHO_N "(cached) $ECHO_C" >&6
15143 else
15144   ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15145 fi
15146 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15147 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15148
15149 fi
15150 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15151   ac_have_func=yes
15152
15153 cat >>confdefs.h <<\_ACEOF
15154 #define DGUX 1
15155 _ACEOF
15156
15157
15158 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15159 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15160 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15161   echo $ECHO_N "(cached) $ECHO_C" >&6
15162 else
15163   ac_check_lib_save_LIBS=$LIBS
15164 LIBS="-ldgc  $LIBS"
15165 cat >conftest.$ac_ext <<_ACEOF
15166 /* confdefs.h.  */
15167 _ACEOF
15168 cat confdefs.h >>conftest.$ac_ext
15169 cat >>conftest.$ac_ext <<_ACEOF
15170 /* end confdefs.h.  */
15171
15172 /* Override any gcc2 internal prototype to avoid an error.  */
15173 #ifdef __cplusplus
15174 extern "C"
15175 #endif
15176 /* We use char because int might match the return type of a gcc2
15177    builtin and then its argument prototype would still apply.  */
15178 char dg_sys_info ();
15179 int
15180 main ()
15181 {
15182 dg_sys_info ();
15183   ;
15184   return 0;
15185 }
15186 _ACEOF
15187 rm -f conftest.$ac_objext conftest$ac_exeext
15188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15189   (eval $ac_link) 2>&5
15190   ac_status=$?
15191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192   (exit $ac_status); } &&
15193          { ac_try='test -s conftest$ac_exeext'
15194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15195   (eval $ac_try) 2>&5
15196   ac_status=$?
15197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198   (exit $ac_status); }; }; then
15199   ac_cv_lib_dgc_dg_sys_info=yes
15200 else
15201   echo "$as_me: failed program was:" >&5
15202 sed 's/^/| /' conftest.$ac_ext >&5
15203
15204 ac_cv_lib_dgc_dg_sys_info=no
15205 fi
15206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15207 LIBS=$ac_check_lib_save_LIBS
15208 fi
15209 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15210 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15211 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15212   cat >>confdefs.h <<_ACEOF
15213 #define HAVE_LIBDGC 1
15214 _ACEOF
15215
15216   LIBS="-ldgc $LIBS"
15217
15218 fi
15219
15220 fi
15221
15222
15223
15224 if test "${ac_cv_header_locale_h+set}" = set; then
15225   echo "$as_me:$LINENO: checking for locale.h" >&5
15226 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15227 if test "${ac_cv_header_locale_h+set}" = set; then
15228   echo $ECHO_N "(cached) $ECHO_C" >&6
15229 fi
15230 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15231 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15232 else
15233   # Is the header compilable?
15234 echo "$as_me:$LINENO: checking locale.h usability" >&5
15235 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15236 cat >conftest.$ac_ext <<_ACEOF
15237 /* confdefs.h.  */
15238 _ACEOF
15239 cat confdefs.h >>conftest.$ac_ext
15240 cat >>conftest.$ac_ext <<_ACEOF
15241 /* end confdefs.h.  */
15242 $ac_includes_default
15243 #include <locale.h>
15244 _ACEOF
15245 rm -f conftest.$ac_objext
15246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15247   (eval $ac_compile) 2>&5
15248   ac_status=$?
15249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250   (exit $ac_status); } &&
15251          { ac_try='test -s conftest.$ac_objext'
15252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253   (eval $ac_try) 2>&5
15254   ac_status=$?
15255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256   (exit $ac_status); }; }; then
15257   ac_header_compiler=yes
15258 else
15259   echo "$as_me: failed program was:" >&5
15260 sed 's/^/| /' conftest.$ac_ext >&5
15261
15262 ac_header_compiler=no
15263 fi
15264 rm -f conftest.$ac_objext conftest.$ac_ext
15265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15266 echo "${ECHO_T}$ac_header_compiler" >&6
15267
15268 # Is the header present?
15269 echo "$as_me:$LINENO: checking locale.h presence" >&5
15270 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15271 cat >conftest.$ac_ext <<_ACEOF
15272 /* confdefs.h.  */
15273 _ACEOF
15274 cat confdefs.h >>conftest.$ac_ext
15275 cat >>conftest.$ac_ext <<_ACEOF
15276 /* end confdefs.h.  */
15277 #include <locale.h>
15278 _ACEOF
15279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15280   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15281   ac_status=$?
15282   grep -v '^ *+' conftest.er1 >conftest.err
15283   rm -f conftest.er1
15284   cat conftest.err >&5
15285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286   (exit $ac_status); } >/dev/null; then
15287   if test -s conftest.err; then
15288     ac_cpp_err=$ac_c_preproc_warn_flag
15289   else
15290     ac_cpp_err=
15291   fi
15292 else
15293   ac_cpp_err=yes
15294 fi
15295 if test -z "$ac_cpp_err"; then
15296   ac_header_preproc=yes
15297 else
15298   echo "$as_me: failed program was:" >&5
15299 sed 's/^/| /' conftest.$ac_ext >&5
15300
15301   ac_header_preproc=no
15302 fi
15303 rm -f conftest.err conftest.$ac_ext
15304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15305 echo "${ECHO_T}$ac_header_preproc" >&6
15306
15307 # So?  What about this header?
15308 case $ac_header_compiler:$ac_header_preproc in
15309   yes:no )
15310     { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15311 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15312     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15313 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15314     ac_header_preproc=yes
15315     ;;
15316   no:yes )
15317     { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15318 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15319     { echo "$as_me:$LINENO: WARNING: locale.h:     check for missing prerequisite headers?" >&5
15320 echo "$as_me: WARNING: locale.h:     check for missing prerequisite headers?" >&2;}
15321     { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15322 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15323     { echo "$as_me:$LINENO: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&5
15324 echo "$as_me: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15325     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15326 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15327     { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15328 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15329     (
15330       cat <<\_ASBOX
15331 ## ------------------------------------ ##
15332 ## Report this to bug-coreutils@gnu.org ##
15333 ## ------------------------------------ ##
15334 _ASBOX
15335     ) |
15336       sed "s/^/$as_me: WARNING:     /" >&2
15337     ;;
15338 esac
15339 echo "$as_me:$LINENO: checking for locale.h" >&5
15340 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15341 if test "${ac_cv_header_locale_h+set}" = set; then
15342   echo $ECHO_N "(cached) $ECHO_C" >&6
15343 else
15344   ac_cv_header_locale_h=$ac_header_preproc
15345 fi
15346 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15347 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15348
15349 fi
15350
15351
15352
15353 for ac_func in setlocale
15354 do
15355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15356 echo "$as_me:$LINENO: checking for $ac_func" >&5
15357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15358 if eval "test \"\${$as_ac_var+set}\" = set"; then
15359   echo $ECHO_N "(cached) $ECHO_C" >&6
15360 else
15361   cat >conftest.$ac_ext <<_ACEOF
15362 /* confdefs.h.  */
15363 _ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h.  */
15367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15368    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15369 #define $ac_func innocuous_$ac_func
15370
15371 /* System header to define __stub macros and hopefully few prototypes,
15372     which can conflict with char $ac_func (); below.
15373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15374     <limits.h> exists even on freestanding compilers.  */
15375
15376 #ifdef __STDC__
15377 # include <limits.h>
15378 #else
15379 # include <assert.h>
15380 #endif
15381
15382 #undef $ac_func
15383
15384 /* Override any gcc2 internal prototype to avoid an error.  */
15385 #ifdef __cplusplus
15386 extern "C"
15387 {
15388 #endif
15389 /* We use char because int might match the return type of a gcc2
15390    builtin and then its argument prototype would still apply.  */
15391 char $ac_func ();
15392 /* The GNU C library defines this for functions which it implements
15393     to always fail with ENOSYS.  Some functions are actually named
15394     something starting with __ and the normal name is an alias.  */
15395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15396 choke me
15397 #else
15398 char (*f) () = $ac_func;
15399 #endif
15400 #ifdef __cplusplus
15401 }
15402 #endif
15403
15404 int
15405 main ()
15406 {
15407 return f != $ac_func;
15408   ;
15409   return 0;
15410 }
15411 _ACEOF
15412 rm -f conftest.$ac_objext conftest$ac_exeext
15413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15414   (eval $ac_link) 2>&5
15415   ac_status=$?
15416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417   (exit $ac_status); } &&
15418          { ac_try='test -s conftest$ac_exeext'
15419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420   (eval $ac_try) 2>&5
15421   ac_status=$?
15422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423   (exit $ac_status); }; }; then
15424   eval "$as_ac_var=yes"
15425 else
15426   echo "$as_me: failed program was:" >&5
15427 sed 's/^/| /' conftest.$ac_ext >&5
15428
15429 eval "$as_ac_var=no"
15430 fi
15431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15432 fi
15433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15435 if test `eval echo '${'$as_ac_var'}'` = yes; then
15436   cat >>confdefs.h <<_ACEOF
15437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15438 _ACEOF
15439
15440 fi
15441 done
15442
15443
15444 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15445 # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
15446 # Irix 4.0.5F has the header but not the library.
15447 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15448   ac_have_func=yes
15449
15450 cat >>confdefs.h <<\_ACEOF
15451 #define SVR4 1
15452 _ACEOF
15453
15454 fi
15455
15456 if test $ac_have_func = no; then
15457   if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15458   echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15459 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15460 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15461   echo $ECHO_N "(cached) $ECHO_C" >&6
15462 fi
15463 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15464 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15465 else
15466   # Is the header compilable?
15467 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15468 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15469 cat >conftest.$ac_ext <<_ACEOF
15470 /* confdefs.h.  */
15471 _ACEOF
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h.  */
15475 $ac_includes_default
15476 #include <inq_stats/cpustats.h>
15477 _ACEOF
15478 rm -f conftest.$ac_objext
15479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15480   (eval $ac_compile) 2>&5
15481   ac_status=$?
15482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483   (exit $ac_status); } &&
15484          { ac_try='test -s conftest.$ac_objext'
15485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15486   (eval $ac_try) 2>&5
15487   ac_status=$?
15488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489   (exit $ac_status); }; }; then
15490   ac_header_compiler=yes
15491 else
15492   echo "$as_me: failed program was:" >&5
15493 sed 's/^/| /' conftest.$ac_ext >&5
15494
15495 ac_header_compiler=no
15496 fi
15497 rm -f conftest.$ac_objext conftest.$ac_ext
15498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15499 echo "${ECHO_T}$ac_header_compiler" >&6
15500
15501 # Is the header present?
15502 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15503 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15504 cat >conftest.$ac_ext <<_ACEOF
15505 /* confdefs.h.  */
15506 _ACEOF
15507 cat confdefs.h >>conftest.$ac_ext
15508 cat >>conftest.$ac_ext <<_ACEOF
15509 /* end confdefs.h.  */
15510 #include <inq_stats/cpustats.h>
15511 _ACEOF
15512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15513   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15514   ac_status=$?
15515   grep -v '^ *+' conftest.er1 >conftest.err
15516   rm -f conftest.er1
15517   cat conftest.err >&5
15518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519   (exit $ac_status); } >/dev/null; then
15520   if test -s conftest.err; then
15521     ac_cpp_err=$ac_c_preproc_warn_flag
15522   else
15523     ac_cpp_err=
15524   fi
15525 else
15526   ac_cpp_err=yes
15527 fi
15528 if test -z "$ac_cpp_err"; then
15529   ac_header_preproc=yes
15530 else
15531   echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15533
15534   ac_header_preproc=no
15535 fi
15536 rm -f conftest.err conftest.$ac_ext
15537 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15538 echo "${ECHO_T}$ac_header_preproc" >&6
15539
15540 # So?  What about this header?
15541 case $ac_header_compiler:$ac_header_preproc in
15542   yes:no )
15543     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15544 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15545     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15546 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15547     ac_header_preproc=yes
15548     ;;
15549   no:yes )
15550     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15551 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15552     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&5
15553 echo "$as_me: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&2;}
15554     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15555 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15556     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
15557 echo "$as_me: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15558     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15559 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15560     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15561 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15562     (
15563       cat <<\_ASBOX
15564 ## ------------------------------------ ##
15565 ## Report this to bug-coreutils@gnu.org ##
15566 ## ------------------------------------ ##
15567 _ASBOX
15568     ) |
15569       sed "s/^/$as_me: WARNING:     /" >&2
15570     ;;
15571 esac
15572 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15573 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15574 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15575   echo $ECHO_N "(cached) $ECHO_C" >&6
15576 else
15577   ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
15578 fi
15579 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15580 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15581
15582 fi
15583 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15584   ac_have_func=yes
15585
15586 cat >>confdefs.h <<\_ACEOF
15587 #define UMAX 1
15588 _ACEOF
15589
15590
15591 cat >>confdefs.h <<\_ACEOF
15592 #define UMAX4_3 1
15593 _ACEOF
15594
15595 fi
15596
15597
15598 fi
15599
15600 if test $ac_have_func = no; then
15601   if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15602   echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15603 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15604 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15605   echo $ECHO_N "(cached) $ECHO_C" >&6
15606 fi
15607 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15608 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15609 else
15610   # Is the header compilable?
15611 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15612 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15613 cat >conftest.$ac_ext <<_ACEOF
15614 /* confdefs.h.  */
15615 _ACEOF
15616 cat confdefs.h >>conftest.$ac_ext
15617 cat >>conftest.$ac_ext <<_ACEOF
15618 /* end confdefs.h.  */
15619 $ac_includes_default
15620 #include <sys/cpustats.h>
15621 _ACEOF
15622 rm -f conftest.$ac_objext
15623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15624   (eval $ac_compile) 2>&5
15625   ac_status=$?
15626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627   (exit $ac_status); } &&
15628          { ac_try='test -s conftest.$ac_objext'
15629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630   (eval $ac_try) 2>&5
15631   ac_status=$?
15632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633   (exit $ac_status); }; }; then
15634   ac_header_compiler=yes
15635 else
15636   echo "$as_me: failed program was:" >&5
15637 sed 's/^/| /' conftest.$ac_ext >&5
15638
15639 ac_header_compiler=no
15640 fi
15641 rm -f conftest.$ac_objext conftest.$ac_ext
15642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15643 echo "${ECHO_T}$ac_header_compiler" >&6
15644
15645 # Is the header present?
15646 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15647 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15648 cat >conftest.$ac_ext <<_ACEOF
15649 /* confdefs.h.  */
15650 _ACEOF
15651 cat confdefs.h >>conftest.$ac_ext
15652 cat >>conftest.$ac_ext <<_ACEOF
15653 /* end confdefs.h.  */
15654 #include <sys/cpustats.h>
15655 _ACEOF
15656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15657   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15658   ac_status=$?
15659   grep -v '^ *+' conftest.er1 >conftest.err
15660   rm -f conftest.er1
15661   cat conftest.err >&5
15662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663   (exit $ac_status); } >/dev/null; then
15664   if test -s conftest.err; then
15665     ac_cpp_err=$ac_c_preproc_warn_flag
15666   else
15667     ac_cpp_err=
15668   fi
15669 else
15670   ac_cpp_err=yes
15671 fi
15672 if test -z "$ac_cpp_err"; then
15673   ac_header_preproc=yes
15674 else
15675   echo "$as_me: failed program was:" >&5
15676 sed 's/^/| /' conftest.$ac_ext >&5
15677
15678   ac_header_preproc=no
15679 fi
15680 rm -f conftest.err conftest.$ac_ext
15681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15682 echo "${ECHO_T}$ac_header_preproc" >&6
15683
15684 # So?  What about this header?
15685 case $ac_header_compiler:$ac_header_preproc in
15686   yes:no )
15687     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15688 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15689     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
15690 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
15691     ac_header_preproc=yes
15692     ;;
15693   no:yes )
15694     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
15695 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
15696     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&5
15697 echo "$as_me: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&2;}
15698     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15699 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
15700     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
15701 echo "$as_me: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15702     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
15703 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
15704     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
15705 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
15706     (
15707       cat <<\_ASBOX
15708 ## ------------------------------------ ##
15709 ## Report this to bug-coreutils@gnu.org ##
15710 ## ------------------------------------ ##
15711 _ASBOX
15712     ) |
15713       sed "s/^/$as_me: WARNING:     /" >&2
15714     ;;
15715 esac
15716 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15717 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15718 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15719   echo $ECHO_N "(cached) $ECHO_C" >&6
15720 else
15721   ac_cv_header_sys_cpustats_h=$ac_header_preproc
15722 fi
15723 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15724 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15725
15726 fi
15727 if test $ac_cv_header_sys_cpustats_h = yes; then
15728   ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
15729 #define UMAX 1
15730 _ACEOF
15731
15732 fi
15733
15734
15735 fi
15736
15737 if test $ac_have_func = no; then
15738
15739 for ac_header in mach/mach.h
15740 do
15741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15743   echo "$as_me:$LINENO: checking for $ac_header" >&5
15744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15746   echo $ECHO_N "(cached) $ECHO_C" >&6
15747 fi
15748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15750 else
15751   # Is the header compilable?
15752 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15754 cat >conftest.$ac_ext <<_ACEOF
15755 /* confdefs.h.  */
15756 _ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h.  */
15760 $ac_includes_default
15761 #include <$ac_header>
15762 _ACEOF
15763 rm -f conftest.$ac_objext
15764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15765   (eval $ac_compile) 2>&5
15766   ac_status=$?
15767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768   (exit $ac_status); } &&
15769          { ac_try='test -s conftest.$ac_objext'
15770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15771   (eval $ac_try) 2>&5
15772   ac_status=$?
15773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774   (exit $ac_status); }; }; then
15775   ac_header_compiler=yes
15776 else
15777   echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15779
15780 ac_header_compiler=no
15781 fi
15782 rm -f conftest.$ac_objext conftest.$ac_ext
15783 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15784 echo "${ECHO_T}$ac_header_compiler" >&6
15785
15786 # Is the header present?
15787 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15788 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15789 cat >conftest.$ac_ext <<_ACEOF
15790 /* confdefs.h.  */
15791 _ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h.  */
15795 #include <$ac_header>
15796 _ACEOF
15797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15798   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15799   ac_status=$?
15800   grep -v '^ *+' conftest.er1 >conftest.err
15801   rm -f conftest.er1
15802   cat conftest.err >&5
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); } >/dev/null; then
15805   if test -s conftest.err; then
15806     ac_cpp_err=$ac_c_preproc_warn_flag
15807   else
15808     ac_cpp_err=
15809   fi
15810 else
15811   ac_cpp_err=yes
15812 fi
15813 if test -z "$ac_cpp_err"; then
15814   ac_header_preproc=yes
15815 else
15816   echo "$as_me: failed program was:" >&5
15817 sed 's/^/| /' conftest.$ac_ext >&5
15818
15819   ac_header_preproc=no
15820 fi
15821 rm -f conftest.err conftest.$ac_ext
15822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15823 echo "${ECHO_T}$ac_header_preproc" >&6
15824
15825 # So?  What about this header?
15826 case $ac_header_compiler:$ac_header_preproc in
15827   yes:no )
15828     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15832     ac_header_preproc=yes
15833     ;;
15834   no:yes )
15835     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15837     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15838 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15839     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15841     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15842 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15845     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15847     (
15848       cat <<\_ASBOX
15849 ## ------------------------------------ ##
15850 ## Report this to bug-coreutils@gnu.org ##
15851 ## ------------------------------------ ##
15852 _ASBOX
15853     ) |
15854       sed "s/^/$as_me: WARNING:     /" >&2
15855     ;;
15856 esac
15857 echo "$as_me:$LINENO: checking for $ac_header" >&5
15858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15860   echo $ECHO_N "(cached) $ECHO_C" >&6
15861 else
15862   eval "$as_ac_Header=\$ac_header_preproc"
15863 fi
15864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15866
15867 fi
15868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15869   cat >>confdefs.h <<_ACEOF
15870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15871 _ACEOF
15872
15873 fi
15874
15875 done
15876
15877 fi
15878
15879
15880 for ac_header in nlist.h
15881 do
15882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15884   echo "$as_me:$LINENO: checking for $ac_header" >&5
15885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15887   echo $ECHO_N "(cached) $ECHO_C" >&6
15888 fi
15889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15891 else
15892   # Is the header compilable?
15893 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15895 cat >conftest.$ac_ext <<_ACEOF
15896 /* confdefs.h.  */
15897 _ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h.  */
15901 $ac_includes_default
15902 #include <$ac_header>
15903 _ACEOF
15904 rm -f conftest.$ac_objext
15905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15906   (eval $ac_compile) 2>&5
15907   ac_status=$?
15908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909   (exit $ac_status); } &&
15910          { ac_try='test -s conftest.$ac_objext'
15911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15912   (eval $ac_try) 2>&5
15913   ac_status=$?
15914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915   (exit $ac_status); }; }; then
15916   ac_header_compiler=yes
15917 else
15918   echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15920
15921 ac_header_compiler=no
15922 fi
15923 rm -f conftest.$ac_objext conftest.$ac_ext
15924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15925 echo "${ECHO_T}$ac_header_compiler" >&6
15926
15927 # Is the header present?
15928 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15930 cat >conftest.$ac_ext <<_ACEOF
15931 /* confdefs.h.  */
15932 _ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h.  */
15936 #include <$ac_header>
15937 _ACEOF
15938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15939   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15940   ac_status=$?
15941   grep -v '^ *+' conftest.er1 >conftest.err
15942   rm -f conftest.er1
15943   cat conftest.err >&5
15944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945   (exit $ac_status); } >/dev/null; then
15946   if test -s conftest.err; then
15947     ac_cpp_err=$ac_c_preproc_warn_flag
15948   else
15949     ac_cpp_err=
15950   fi
15951 else
15952   ac_cpp_err=yes
15953 fi
15954 if test -z "$ac_cpp_err"; then
15955   ac_header_preproc=yes
15956 else
15957   echo "$as_me: failed program was:" >&5
15958 sed 's/^/| /' conftest.$ac_ext >&5
15959
15960   ac_header_preproc=no
15961 fi
15962 rm -f conftest.err conftest.$ac_ext
15963 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15964 echo "${ECHO_T}$ac_header_preproc" >&6
15965
15966 # So?  What about this header?
15967 case $ac_header_compiler:$ac_header_preproc in
15968   yes:no )
15969     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15971     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15973     ac_header_preproc=yes
15974     ;;
15975   no:yes )
15976     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15978     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15979 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15980     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15981 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15982     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15983 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15984     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15986     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15987 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15988     (
15989       cat <<\_ASBOX
15990 ## ------------------------------------ ##
15991 ## Report this to bug-coreutils@gnu.org ##
15992 ## ------------------------------------ ##
15993 _ASBOX
15994     ) |
15995       sed "s/^/$as_me: WARNING:     /" >&2
15996     ;;
15997 esac
15998 echo "$as_me:$LINENO: checking for $ac_header" >&5
15999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16001   echo $ECHO_N "(cached) $ECHO_C" >&6
16002 else
16003   eval "$as_ac_Header=\$ac_header_preproc"
16004 fi
16005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16007
16008 fi
16009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16010   cat >>confdefs.h <<_ACEOF
16011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16012 _ACEOF
16013  echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16014 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16015 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16016   echo $ECHO_N "(cached) $ECHO_C" >&6
16017 else
16018   cat >conftest.$ac_ext <<_ACEOF
16019 /* confdefs.h.  */
16020 _ACEOF
16021 cat confdefs.h >>conftest.$ac_ext
16022 cat >>conftest.$ac_ext <<_ACEOF
16023 /* end confdefs.h.  */
16024 #include <nlist.h>
16025
16026 int
16027 main ()
16028 {
16029 static struct nlist ac_aggr;
16030 if (ac_aggr.n_un.n_name)
16031 return 0;
16032   ;
16033   return 0;
16034 }
16035 _ACEOF
16036 rm -f conftest.$ac_objext
16037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16038   (eval $ac_compile) 2>&5
16039   ac_status=$?
16040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041   (exit $ac_status); } &&
16042          { ac_try='test -s conftest.$ac_objext'
16043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044   (eval $ac_try) 2>&5
16045   ac_status=$?
16046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047   (exit $ac_status); }; }; then
16048   ac_cv_member_struct_nlist_n_un_n_name=yes
16049 else
16050   echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16052
16053 cat >conftest.$ac_ext <<_ACEOF
16054 /* confdefs.h.  */
16055 _ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h.  */
16059 #include <nlist.h>
16060
16061 int
16062 main ()
16063 {
16064 static struct nlist ac_aggr;
16065 if (sizeof ac_aggr.n_un.n_name)
16066 return 0;
16067   ;
16068   return 0;
16069 }
16070 _ACEOF
16071 rm -f conftest.$ac_objext
16072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16073   (eval $ac_compile) 2>&5
16074   ac_status=$?
16075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076   (exit $ac_status); } &&
16077          { ac_try='test -s conftest.$ac_objext'
16078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079   (eval $ac_try) 2>&5
16080   ac_status=$?
16081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082   (exit $ac_status); }; }; then
16083   ac_cv_member_struct_nlist_n_un_n_name=yes
16084 else
16085   echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16087
16088 ac_cv_member_struct_nlist_n_un_n_name=no
16089 fi
16090 rm -f conftest.$ac_objext conftest.$ac_ext
16091 fi
16092 rm -f conftest.$ac_objext conftest.$ac_ext
16093 fi
16094 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16095 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16096 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16097
16098 cat >>confdefs.h <<_ACEOF
16099 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16100 _ACEOF
16101
16102
16103 cat >>confdefs.h <<\_ACEOF
16104 #define NLIST_NAME_UNION 1
16105 _ACEOF
16106
16107 fi
16108
16109
16110 fi
16111
16112 done
16113
16114 fi
16115 done
16116
16117
16118 # Some definitions of getloadavg require that the program be installed setgid.
16119 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16120 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16121 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16122   echo $ECHO_N "(cached) $ECHO_C" >&6
16123 else
16124   cat >conftest.$ac_ext <<_ACEOF
16125 /* confdefs.h.  */
16126 _ACEOF
16127 cat confdefs.h >>conftest.$ac_ext
16128 cat >>conftest.$ac_ext <<_ACEOF
16129 /* end confdefs.h.  */
16130 #include "$ac_lib_dir_getloadavg/getloadavg.c"
16131 #ifdef LDAV_PRIVILEGED
16132 Yowza Am I SETGID yet
16133 #endif
16134 _ACEOF
16135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16136   $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16137   ac_cv_func_getloadavg_setgid=yes
16138 else
16139   ac_cv_func_getloadavg_setgid=no
16140 fi
16141 rm -f conftest*
16142
16143 fi
16144 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16145 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16146 if test $ac_cv_func_getloadavg_setgid = yes; then
16147   NEED_SETGID=true
16148
16149 cat >>confdefs.h <<\_ACEOF
16150 #define GETLOADAVG_PRIVILEGED 1
16151 _ACEOF
16152
16153 else
16154   NEED_SETGID=false
16155 fi
16156
16157 if test $ac_cv_func_getloadavg_setgid = yes; then
16158   echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16159 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16160 if test "${ac_cv_group_kmem+set}" = set; then
16161   echo $ECHO_N "(cached) $ECHO_C" >&6
16162 else
16163    # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
16164   ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16165   # If we got an error (system does not support symlinks), try without -L.
16166   test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16167   ac_cv_group_kmem=`echo $ac_ls_output \
16168     | sed -ne 's/[       ][      ]*/ /g;
16169                s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
16170                / /s/.* //;p;'`
16171
16172 fi
16173 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16174 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16175   KMEM_GROUP=$ac_cv_group_kmem
16176 fi
16177 if test "x$ac_save_LIBS" = x; then
16178   GETLOADAVG_LIBS=$LIBS
16179 else
16180   GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16181 fi
16182 LIBS=$ac_save_LIBS
16183
16184
16185     if test $ac_cv_func_getloadavg = no; then
16186
16187
16188   :
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198   fi
16199
16200
16201
16202 for ac_func in getpass
16203 do
16204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16205 echo "$as_me:$LINENO: checking for $ac_func" >&5
16206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16207 if eval "test \"\${$as_ac_var+set}\" = set"; then
16208   echo $ECHO_N "(cached) $ECHO_C" >&6
16209 else
16210   cat >conftest.$ac_ext <<_ACEOF
16211 /* confdefs.h.  */
16212 _ACEOF
16213 cat confdefs.h >>conftest.$ac_ext
16214 cat >>conftest.$ac_ext <<_ACEOF
16215 /* end confdefs.h.  */
16216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16218 #define $ac_func innocuous_$ac_func
16219
16220 /* System header to define __stub macros and hopefully few prototypes,
16221     which can conflict with char $ac_func (); below.
16222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16223     <limits.h> exists even on freestanding compilers.  */
16224
16225 #ifdef __STDC__
16226 # include <limits.h>
16227 #else
16228 # include <assert.h>
16229 #endif
16230
16231 #undef $ac_func
16232
16233 /* Override any gcc2 internal prototype to avoid an error.  */
16234 #ifdef __cplusplus
16235 extern "C"
16236 {
16237 #endif
16238 /* We use char because int might match the return type of a gcc2
16239    builtin and then its argument prototype would still apply.  */
16240 char $ac_func ();
16241 /* The GNU C library defines this for functions which it implements
16242     to always fail with ENOSYS.  Some functions are actually named
16243     something starting with __ and the normal name is an alias.  */
16244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16245 choke me
16246 #else
16247 char (*f) () = $ac_func;
16248 #endif
16249 #ifdef __cplusplus
16250 }
16251 #endif
16252
16253 int
16254 main ()
16255 {
16256 return f != $ac_func;
16257   ;
16258   return 0;
16259 }
16260 _ACEOF
16261 rm -f conftest.$ac_objext conftest$ac_exeext
16262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16263   (eval $ac_link) 2>&5
16264   ac_status=$?
16265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266   (exit $ac_status); } &&
16267          { ac_try='test -s conftest$ac_exeext'
16268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16269   (eval $ac_try) 2>&5
16270   ac_status=$?
16271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272   (exit $ac_status); }; }; then
16273   eval "$as_ac_var=yes"
16274 else
16275   echo "$as_me: failed program was:" >&5
16276 sed 's/^/| /' conftest.$ac_ext >&5
16277
16278 eval "$as_ac_var=no"
16279 fi
16280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16281 fi
16282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16284 if test `eval echo '${'$as_ac_var'}'` = yes; then
16285   cat >>confdefs.h <<_ACEOF
16286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16287 _ACEOF
16288
16289 else
16290   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16291 fi
16292 done
16293
16294
16295   if test $ac_cv_func_getpass = no; then
16296
16297   :
16298
16299   fi
16300
16301
16302
16303 for ac_func in getusershell
16304 do
16305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16306 echo "$as_me:$LINENO: checking for $ac_func" >&5
16307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16308 if eval "test \"\${$as_ac_var+set}\" = set"; then
16309   echo $ECHO_N "(cached) $ECHO_C" >&6
16310 else
16311   cat >conftest.$ac_ext <<_ACEOF
16312 /* confdefs.h.  */
16313 _ACEOF
16314 cat confdefs.h >>conftest.$ac_ext
16315 cat >>conftest.$ac_ext <<_ACEOF
16316 /* end confdefs.h.  */
16317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16318    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16319 #define $ac_func innocuous_$ac_func
16320
16321 /* System header to define __stub macros and hopefully few prototypes,
16322     which can conflict with char $ac_func (); below.
16323     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16324     <limits.h> exists even on freestanding compilers.  */
16325
16326 #ifdef __STDC__
16327 # include <limits.h>
16328 #else
16329 # include <assert.h>
16330 #endif
16331
16332 #undef $ac_func
16333
16334 /* Override any gcc2 internal prototype to avoid an error.  */
16335 #ifdef __cplusplus
16336 extern "C"
16337 {
16338 #endif
16339 /* We use char because int might match the return type of a gcc2
16340    builtin and then its argument prototype would still apply.  */
16341 char $ac_func ();
16342 /* The GNU C library defines this for functions which it implements
16343     to always fail with ENOSYS.  Some functions are actually named
16344     something starting with __ and the normal name is an alias.  */
16345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16346 choke me
16347 #else
16348 char (*f) () = $ac_func;
16349 #endif
16350 #ifdef __cplusplus
16351 }
16352 #endif
16353
16354 int
16355 main ()
16356 {
16357 return f != $ac_func;
16358   ;
16359   return 0;
16360 }
16361 _ACEOF
16362 rm -f conftest.$ac_objext conftest$ac_exeext
16363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16364   (eval $ac_link) 2>&5
16365   ac_status=$?
16366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367   (exit $ac_status); } &&
16368          { ac_try='test -s conftest$ac_exeext'
16369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16370   (eval $ac_try) 2>&5
16371   ac_status=$?
16372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373   (exit $ac_status); }; }; then
16374   eval "$as_ac_var=yes"
16375 else
16376   echo "$as_me: failed program was:" >&5
16377 sed 's/^/| /' conftest.$ac_ext >&5
16378
16379 eval "$as_ac_var=no"
16380 fi
16381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16382 fi
16383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16385 if test `eval echo '${'$as_ac_var'}'` = yes; then
16386   cat >>confdefs.h <<_ACEOF
16387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16388 _ACEOF
16389
16390 else
16391   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16392 fi
16393 done
16394
16395
16396   if test $ac_cv_func_getusershell = no; then
16397
16398
16399
16400   :
16401
16402
16403
16404
16405
16406
16407   :
16408
16409
16410
16411
16412
16413
16414   fi
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424 for ac_func in memchr
16425 do
16426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16427 echo "$as_me:$LINENO: checking for $ac_func" >&5
16428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16429 if eval "test \"\${$as_ac_var+set}\" = set"; then
16430   echo $ECHO_N "(cached) $ECHO_C" >&6
16431 else
16432   cat >conftest.$ac_ext <<_ACEOF
16433 /* confdefs.h.  */
16434 _ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h.  */
16438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16439    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16440 #define $ac_func innocuous_$ac_func
16441
16442 /* System header to define __stub macros and hopefully few prototypes,
16443     which can conflict with char $ac_func (); below.
16444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16445     <limits.h> exists even on freestanding compilers.  */
16446
16447 #ifdef __STDC__
16448 # include <limits.h>
16449 #else
16450 # include <assert.h>
16451 #endif
16452
16453 #undef $ac_func
16454
16455 /* Override any gcc2 internal prototype to avoid an error.  */
16456 #ifdef __cplusplus
16457 extern "C"
16458 {
16459 #endif
16460 /* We use char because int might match the return type of a gcc2
16461    builtin and then its argument prototype would still apply.  */
16462 char $ac_func ();
16463 /* The GNU C library defines this for functions which it implements
16464     to always fail with ENOSYS.  Some functions are actually named
16465     something starting with __ and the normal name is an alias.  */
16466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16467 choke me
16468 #else
16469 char (*f) () = $ac_func;
16470 #endif
16471 #ifdef __cplusplus
16472 }
16473 #endif
16474
16475 int
16476 main ()
16477 {
16478 return f != $ac_func;
16479   ;
16480   return 0;
16481 }
16482 _ACEOF
16483 rm -f conftest.$ac_objext conftest$ac_exeext
16484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16485   (eval $ac_link) 2>&5
16486   ac_status=$?
16487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488   (exit $ac_status); } &&
16489          { ac_try='test -s conftest$ac_exeext'
16490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491   (eval $ac_try) 2>&5
16492   ac_status=$?
16493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494   (exit $ac_status); }; }; then
16495   eval "$as_ac_var=yes"
16496 else
16497   echo "$as_me: failed program was:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16499
16500 eval "$as_ac_var=no"
16501 fi
16502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16503 fi
16504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16506 if test `eval echo '${'$as_ac_var'}'` = yes; then
16507   cat >>confdefs.h <<_ACEOF
16508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16509 _ACEOF
16510
16511 else
16512   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16513 fi
16514 done
16515
16516
16517   if test $ac_cv_func_memchr = no; then
16518
16519
16520   :
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530 for ac_header in bp-sym.h
16531 do
16532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16534   echo "$as_me:$LINENO: checking for $ac_header" >&5
16535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16537   echo $ECHO_N "(cached) $ECHO_C" >&6
16538 fi
16539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16541 else
16542   # Is the header compilable?
16543 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16545 cat >conftest.$ac_ext <<_ACEOF
16546 /* confdefs.h.  */
16547 _ACEOF
16548 cat confdefs.h >>conftest.$ac_ext
16549 cat >>conftest.$ac_ext <<_ACEOF
16550 /* end confdefs.h.  */
16551 $ac_includes_default
16552 #include <$ac_header>
16553 _ACEOF
16554 rm -f conftest.$ac_objext
16555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16556   (eval $ac_compile) 2>&5
16557   ac_status=$?
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); } &&
16560          { ac_try='test -s conftest.$ac_objext'
16561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562   (eval $ac_try) 2>&5
16563   ac_status=$?
16564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565   (exit $ac_status); }; }; then
16566   ac_header_compiler=yes
16567 else
16568   echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16570
16571 ac_header_compiler=no
16572 fi
16573 rm -f conftest.$ac_objext conftest.$ac_ext
16574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16575 echo "${ECHO_T}$ac_header_compiler" >&6
16576
16577 # Is the header present?
16578 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16580 cat >conftest.$ac_ext <<_ACEOF
16581 /* confdefs.h.  */
16582 _ACEOF
16583 cat confdefs.h >>conftest.$ac_ext
16584 cat >>conftest.$ac_ext <<_ACEOF
16585 /* end confdefs.h.  */
16586 #include <$ac_header>
16587 _ACEOF
16588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16589   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16590   ac_status=$?
16591   grep -v '^ *+' conftest.er1 >conftest.err
16592   rm -f conftest.er1
16593   cat conftest.err >&5
16594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595   (exit $ac_status); } >/dev/null; then
16596   if test -s conftest.err; then
16597     ac_cpp_err=$ac_c_preproc_warn_flag
16598   else
16599     ac_cpp_err=
16600   fi
16601 else
16602   ac_cpp_err=yes
16603 fi
16604 if test -z "$ac_cpp_err"; then
16605   ac_header_preproc=yes
16606 else
16607   echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16609
16610   ac_header_preproc=no
16611 fi
16612 rm -f conftest.err conftest.$ac_ext
16613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16614 echo "${ECHO_T}$ac_header_preproc" >&6
16615
16616 # So?  What about this header?
16617 case $ac_header_compiler:$ac_header_preproc in
16618   yes:no )
16619     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16623     ac_header_preproc=yes
16624     ;;
16625   no:yes )
16626     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16628     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16629 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16630     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16632     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16633 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16634     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16636     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16638     (
16639       cat <<\_ASBOX
16640 ## ------------------------------------ ##
16641 ## Report this to bug-coreutils@gnu.org ##
16642 ## ------------------------------------ ##
16643 _ASBOX
16644     ) |
16645       sed "s/^/$as_me: WARNING:     /" >&2
16646     ;;
16647 esac
16648 echo "$as_me:$LINENO: checking for $ac_header" >&5
16649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16651   echo $ECHO_N "(cached) $ECHO_C" >&6
16652 else
16653   eval "$as_ac_Header=\$ac_header_preproc"
16654 fi
16655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16657
16658 fi
16659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16660   cat >>confdefs.h <<_ACEOF
16661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16662 _ACEOF
16663
16664 fi
16665
16666 done
16667
16668
16669   fi
16670
16671
16672
16673 for ac_func in memcpy
16674 do
16675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16676 echo "$as_me:$LINENO: checking for $ac_func" >&5
16677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16678 if eval "test \"\${$as_ac_var+set}\" = set"; then
16679   echo $ECHO_N "(cached) $ECHO_C" >&6
16680 else
16681   cat >conftest.$ac_ext <<_ACEOF
16682 /* confdefs.h.  */
16683 _ACEOF
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h.  */
16687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16689 #define $ac_func innocuous_$ac_func
16690
16691 /* System header to define __stub macros and hopefully few prototypes,
16692     which can conflict with char $ac_func (); below.
16693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16694     <limits.h> exists even on freestanding compilers.  */
16695
16696 #ifdef __STDC__
16697 # include <limits.h>
16698 #else
16699 # include <assert.h>
16700 #endif
16701
16702 #undef $ac_func
16703
16704 /* Override any gcc2 internal prototype to avoid an error.  */
16705 #ifdef __cplusplus
16706 extern "C"
16707 {
16708 #endif
16709 /* We use char because int might match the return type of a gcc2
16710    builtin and then its argument prototype would still apply.  */
16711 char $ac_func ();
16712 /* The GNU C library defines this for functions which it implements
16713     to always fail with ENOSYS.  Some functions are actually named
16714     something starting with __ and the normal name is an alias.  */
16715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16716 choke me
16717 #else
16718 char (*f) () = $ac_func;
16719 #endif
16720 #ifdef __cplusplus
16721 }
16722 #endif
16723
16724 int
16725 main ()
16726 {
16727 return f != $ac_func;
16728   ;
16729   return 0;
16730 }
16731 _ACEOF
16732 rm -f conftest.$ac_objext conftest$ac_exeext
16733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16734   (eval $ac_link) 2>&5
16735   ac_status=$?
16736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737   (exit $ac_status); } &&
16738          { ac_try='test -s conftest$ac_exeext'
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   eval "$as_ac_var=yes"
16745 else
16746   echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16748
16749 eval "$as_ac_var=no"
16750 fi
16751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16752 fi
16753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16755 if test `eval echo '${'$as_ac_var'}'` = yes; then
16756   cat >>confdefs.h <<_ACEOF
16757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16758 _ACEOF
16759
16760 else
16761   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16762 fi
16763 done
16764
16765
16766   if test $ac_cv_func_memcpy = no; then
16767
16768   :
16769
16770   fi
16771
16772
16773
16774 for ac_func in memmove
16775 do
16776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16777 echo "$as_me:$LINENO: checking for $ac_func" >&5
16778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16779 if eval "test \"\${$as_ac_var+set}\" = set"; then
16780   echo $ECHO_N "(cached) $ECHO_C" >&6
16781 else
16782   cat >conftest.$ac_ext <<_ACEOF
16783 /* confdefs.h.  */
16784 _ACEOF
16785 cat confdefs.h >>conftest.$ac_ext
16786 cat >>conftest.$ac_ext <<_ACEOF
16787 /* end confdefs.h.  */
16788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16789    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16790 #define $ac_func innocuous_$ac_func
16791
16792 /* System header to define __stub macros and hopefully few prototypes,
16793     which can conflict with char $ac_func (); below.
16794     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16795     <limits.h> exists even on freestanding compilers.  */
16796
16797 #ifdef __STDC__
16798 # include <limits.h>
16799 #else
16800 # include <assert.h>
16801 #endif
16802
16803 #undef $ac_func
16804
16805 /* Override any gcc2 internal prototype to avoid an error.  */
16806 #ifdef __cplusplus
16807 extern "C"
16808 {
16809 #endif
16810 /* We use char because int might match the return type of a gcc2
16811    builtin and then its argument prototype would still apply.  */
16812 char $ac_func ();
16813 /* The GNU C library defines this for functions which it implements
16814     to always fail with ENOSYS.  Some functions are actually named
16815     something starting with __ and the normal name is an alias.  */
16816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16817 choke me
16818 #else
16819 char (*f) () = $ac_func;
16820 #endif
16821 #ifdef __cplusplus
16822 }
16823 #endif
16824
16825 int
16826 main ()
16827 {
16828 return f != $ac_func;
16829   ;
16830   return 0;
16831 }
16832 _ACEOF
16833 rm -f conftest.$ac_objext conftest$ac_exeext
16834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16835   (eval $ac_link) 2>&5
16836   ac_status=$?
16837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838   (exit $ac_status); } &&
16839          { ac_try='test -s conftest$ac_exeext'
16840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16841   (eval $ac_try) 2>&5
16842   ac_status=$?
16843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844   (exit $ac_status); }; }; then
16845   eval "$as_ac_var=yes"
16846 else
16847   echo "$as_me: failed program was:" >&5
16848 sed 's/^/| /' conftest.$ac_ext >&5
16849
16850 eval "$as_ac_var=no"
16851 fi
16852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16853 fi
16854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16856 if test `eval echo '${'$as_ac_var'}'` = yes; then
16857   cat >>confdefs.h <<_ACEOF
16858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16859 _ACEOF
16860
16861 else
16862   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16863 fi
16864 done
16865
16866
16867   if test $ac_cv_func_memmove = no; then
16868
16869   :
16870
16871   fi
16872
16873
16874
16875
16876
16877 for ac_func in memrchr
16878 do
16879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16880 echo "$as_me:$LINENO: checking for $ac_func" >&5
16881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16882 if eval "test \"\${$as_ac_var+set}\" = set"; then
16883   echo $ECHO_N "(cached) $ECHO_C" >&6
16884 else
16885   cat >conftest.$ac_ext <<_ACEOF
16886 /* confdefs.h.  */
16887 _ACEOF
16888 cat confdefs.h >>conftest.$ac_ext
16889 cat >>conftest.$ac_ext <<_ACEOF
16890 /* end confdefs.h.  */
16891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16892    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16893 #define $ac_func innocuous_$ac_func
16894
16895 /* System header to define __stub macros and hopefully few prototypes,
16896     which can conflict with char $ac_func (); below.
16897     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16898     <limits.h> exists even on freestanding compilers.  */
16899
16900 #ifdef __STDC__
16901 # include <limits.h>
16902 #else
16903 # include <assert.h>
16904 #endif
16905
16906 #undef $ac_func
16907
16908 /* Override any gcc2 internal prototype to avoid an error.  */
16909 #ifdef __cplusplus
16910 extern "C"
16911 {
16912 #endif
16913 /* We use char because int might match the return type of a gcc2
16914    builtin and then its argument prototype would still apply.  */
16915 char $ac_func ();
16916 /* The GNU C library defines this for functions which it implements
16917     to always fail with ENOSYS.  Some functions are actually named
16918     something starting with __ and the normal name is an alias.  */
16919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16920 choke me
16921 #else
16922 char (*f) () = $ac_func;
16923 #endif
16924 #ifdef __cplusplus
16925 }
16926 #endif
16927
16928 int
16929 main ()
16930 {
16931 return f != $ac_func;
16932   ;
16933   return 0;
16934 }
16935 _ACEOF
16936 rm -f conftest.$ac_objext conftest$ac_exeext
16937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16938   (eval $ac_link) 2>&5
16939   ac_status=$?
16940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941   (exit $ac_status); } &&
16942          { ac_try='test -s conftest$ac_exeext'
16943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944   (eval $ac_try) 2>&5
16945   ac_status=$?
16946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947   (exit $ac_status); }; }; then
16948   eval "$as_ac_var=yes"
16949 else
16950   echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16952
16953 eval "$as_ac_var=no"
16954 fi
16955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16956 fi
16957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16958 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16959 if test `eval echo '${'$as_ac_var'}'` = yes; then
16960   cat >>confdefs.h <<_ACEOF
16961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16962 _ACEOF
16963
16964 else
16965   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16966 fi
16967 done
16968
16969
16970   if test $ac_cv_func_memrchr = no; then
16971
16972
16973   :
16974
16975
16976
16977
16978
16979
16980   fi
16981
16982
16983
16984 for ac_func in memset
16985 do
16986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16987 echo "$as_me:$LINENO: checking for $ac_func" >&5
16988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16989 if eval "test \"\${$as_ac_var+set}\" = set"; then
16990   echo $ECHO_N "(cached) $ECHO_C" >&6
16991 else
16992   cat >conftest.$ac_ext <<_ACEOF
16993 /* confdefs.h.  */
16994 _ACEOF
16995 cat confdefs.h >>conftest.$ac_ext
16996 cat >>conftest.$ac_ext <<_ACEOF
16997 /* end confdefs.h.  */
16998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16999    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17000 #define $ac_func innocuous_$ac_func
17001
17002 /* System header to define __stub macros and hopefully few prototypes,
17003     which can conflict with char $ac_func (); below.
17004     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17005     <limits.h> exists even on freestanding compilers.  */
17006
17007 #ifdef __STDC__
17008 # include <limits.h>
17009 #else
17010 # include <assert.h>
17011 #endif
17012
17013 #undef $ac_func
17014
17015 /* Override any gcc2 internal prototype to avoid an error.  */
17016 #ifdef __cplusplus
17017 extern "C"
17018 {
17019 #endif
17020 /* We use char because int might match the return type of a gcc2
17021    builtin and then its argument prototype would still apply.  */
17022 char $ac_func ();
17023 /* The GNU C library defines this for functions which it implements
17024     to always fail with ENOSYS.  Some functions are actually named
17025     something starting with __ and the normal name is an alias.  */
17026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17027 choke me
17028 #else
17029 char (*f) () = $ac_func;
17030 #endif
17031 #ifdef __cplusplus
17032 }
17033 #endif
17034
17035 int
17036 main ()
17037 {
17038 return f != $ac_func;
17039   ;
17040   return 0;
17041 }
17042 _ACEOF
17043 rm -f conftest.$ac_objext conftest$ac_exeext
17044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17045   (eval $ac_link) 2>&5
17046   ac_status=$?
17047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048   (exit $ac_status); } &&
17049          { ac_try='test -s conftest$ac_exeext'
17050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051   (eval $ac_try) 2>&5
17052   ac_status=$?
17053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054   (exit $ac_status); }; }; then
17055   eval "$as_ac_var=yes"
17056 else
17057   echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17059
17060 eval "$as_ac_var=no"
17061 fi
17062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17063 fi
17064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17065 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17066 if test `eval echo '${'$as_ac_var'}'` = yes; then
17067   cat >>confdefs.h <<_ACEOF
17068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17069 _ACEOF
17070
17071 else
17072   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17073 fi
17074 done
17075
17076
17077   if test $ac_cv_func_memset = no; then
17078
17079   :
17080
17081   fi
17082
17083
17084
17085
17086 for ac_header in stdlib.h sys/time.h unistd.h
17087 do
17088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17090   echo "$as_me:$LINENO: checking for $ac_header" >&5
17091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17093   echo $ECHO_N "(cached) $ECHO_C" >&6
17094 fi
17095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17097 else
17098   # Is the header compilable?
17099 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17101 cat >conftest.$ac_ext <<_ACEOF
17102 /* confdefs.h.  */
17103 _ACEOF
17104 cat confdefs.h >>conftest.$ac_ext
17105 cat >>conftest.$ac_ext <<_ACEOF
17106 /* end confdefs.h.  */
17107 $ac_includes_default
17108 #include <$ac_header>
17109 _ACEOF
17110 rm -f conftest.$ac_objext
17111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17112   (eval $ac_compile) 2>&5
17113   ac_status=$?
17114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115   (exit $ac_status); } &&
17116          { ac_try='test -s conftest.$ac_objext'
17117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118   (eval $ac_try) 2>&5
17119   ac_status=$?
17120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121   (exit $ac_status); }; }; then
17122   ac_header_compiler=yes
17123 else
17124   echo "$as_me: failed program was:" >&5
17125 sed 's/^/| /' conftest.$ac_ext >&5
17126
17127 ac_header_compiler=no
17128 fi
17129 rm -f conftest.$ac_objext conftest.$ac_ext
17130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17131 echo "${ECHO_T}$ac_header_compiler" >&6
17132
17133 # Is the header present?
17134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17136 cat >conftest.$ac_ext <<_ACEOF
17137 /* confdefs.h.  */
17138 _ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h.  */
17142 #include <$ac_header>
17143 _ACEOF
17144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17145   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17146   ac_status=$?
17147   grep -v '^ *+' conftest.er1 >conftest.err
17148   rm -f conftest.er1
17149   cat conftest.err >&5
17150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151   (exit $ac_status); } >/dev/null; then
17152   if test -s conftest.err; then
17153     ac_cpp_err=$ac_c_preproc_warn_flag
17154   else
17155     ac_cpp_err=
17156   fi
17157 else
17158   ac_cpp_err=yes
17159 fi
17160 if test -z "$ac_cpp_err"; then
17161   ac_header_preproc=yes
17162 else
17163   echo "$as_me: failed program was:" >&5
17164 sed 's/^/| /' conftest.$ac_ext >&5
17165
17166   ac_header_preproc=no
17167 fi
17168 rm -f conftest.err conftest.$ac_ext
17169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17170 echo "${ECHO_T}$ac_header_preproc" >&6
17171
17172 # So?  What about this header?
17173 case $ac_header_compiler:$ac_header_preproc in
17174   yes:no )
17175     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17179     ac_header_preproc=yes
17180     ;;
17181   no:yes )
17182     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17184     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17185 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17186     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17188     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17189 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17192     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17194     (
17195       cat <<\_ASBOX
17196 ## ------------------------------------ ##
17197 ## Report this to bug-coreutils@gnu.org ##
17198 ## ------------------------------------ ##
17199 _ASBOX
17200     ) |
17201       sed "s/^/$as_me: WARNING:     /" >&2
17202     ;;
17203 esac
17204 echo "$as_me:$LINENO: checking for $ac_header" >&5
17205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17207   echo $ECHO_N "(cached) $ECHO_C" >&6
17208 else
17209   eval "$as_ac_Header=\$ac_header_preproc"
17210 fi
17211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17213
17214 fi
17215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17216   cat >>confdefs.h <<_ACEOF
17217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17218 _ACEOF
17219
17220 fi
17221
17222 done
17223
17224
17225 for ac_func in alarm
17226 do
17227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17228 echo "$as_me:$LINENO: checking for $ac_func" >&5
17229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17230 if eval "test \"\${$as_ac_var+set}\" = set"; then
17231   echo $ECHO_N "(cached) $ECHO_C" >&6
17232 else
17233   cat >conftest.$ac_ext <<_ACEOF
17234 /* confdefs.h.  */
17235 _ACEOF
17236 cat confdefs.h >>conftest.$ac_ext
17237 cat >>conftest.$ac_ext <<_ACEOF
17238 /* end confdefs.h.  */
17239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17240    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17241 #define $ac_func innocuous_$ac_func
17242
17243 /* System header to define __stub macros and hopefully few prototypes,
17244     which can conflict with char $ac_func (); below.
17245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17246     <limits.h> exists even on freestanding compilers.  */
17247
17248 #ifdef __STDC__
17249 # include <limits.h>
17250 #else
17251 # include <assert.h>
17252 #endif
17253
17254 #undef $ac_func
17255
17256 /* Override any gcc2 internal prototype to avoid an error.  */
17257 #ifdef __cplusplus
17258 extern "C"
17259 {
17260 #endif
17261 /* We use char because int might match the return type of a gcc2
17262    builtin and then its argument prototype would still apply.  */
17263 char $ac_func ();
17264 /* The GNU C library defines this for functions which it implements
17265     to always fail with ENOSYS.  Some functions are actually named
17266     something starting with __ and the normal name is an alias.  */
17267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17268 choke me
17269 #else
17270 char (*f) () = $ac_func;
17271 #endif
17272 #ifdef __cplusplus
17273 }
17274 #endif
17275
17276 int
17277 main ()
17278 {
17279 return f != $ac_func;
17280   ;
17281   return 0;
17282 }
17283 _ACEOF
17284 rm -f conftest.$ac_objext conftest$ac_exeext
17285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17286   (eval $ac_link) 2>&5
17287   ac_status=$?
17288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289   (exit $ac_status); } &&
17290          { ac_try='test -s conftest$ac_exeext'
17291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17292   (eval $ac_try) 2>&5
17293   ac_status=$?
17294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295   (exit $ac_status); }; }; then
17296   eval "$as_ac_var=yes"
17297 else
17298   echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.$ac_ext >&5
17300
17301 eval "$as_ac_var=no"
17302 fi
17303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17304 fi
17305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17307 if test `eval echo '${'$as_ac_var'}'` = yes; then
17308   cat >>confdefs.h <<_ACEOF
17309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17310 _ACEOF
17311
17312 fi
17313 done
17314
17315 echo "$as_me:$LINENO: checking for working mktime" >&5
17316 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
17317 if test "${ac_cv_func_working_mktime+set}" = set; then
17318   echo $ECHO_N "(cached) $ECHO_C" >&6
17319 else
17320   if test "$cross_compiling" = yes; then
17321   ac_cv_func_working_mktime=no
17322 else
17323   cat >conftest.$ac_ext <<_ACEOF
17324 /* confdefs.h.  */
17325 _ACEOF
17326 cat confdefs.h >>conftest.$ac_ext
17327 cat >>conftest.$ac_ext <<_ACEOF
17328 /* end confdefs.h.  */
17329 /* Test program from Paul Eggert and Tony Leneis.  */
17330 #if TIME_WITH_SYS_TIME
17331 # include <sys/time.h>
17332 # include <time.h>
17333 #else
17334 # if HAVE_SYS_TIME_H
17335 #  include <sys/time.h>
17336 # else
17337 #  include <time.h>
17338 # endif
17339 #endif
17340
17341 #if HAVE_STDLIB_H
17342 # include <stdlib.h>
17343 #endif
17344
17345 #if HAVE_UNISTD_H
17346 # include <unistd.h>
17347 #endif
17348
17349 #if !HAVE_ALARM
17350 # define alarm(X) /* empty */
17351 #endif
17352
17353 /* Work around redefinition to rpl_putenv by other config tests.  */
17354 #undef putenv
17355
17356 static time_t time_t_max;
17357 static time_t time_t_min;
17358
17359 /* Values we'll use to set the TZ environment variable.  */
17360 static char *tz_strings[] = {
17361   (char *) 0, "TZ=GMT0", "TZ=JST-9",
17362   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17363 };
17364 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17365
17366 /* Fail if mktime fails to convert a date in the spring-forward gap.
17367    Based on a problem report from Andreas Jaeger.  */
17368 static void
17369 spring_forward_gap ()
17370 {
17371   /* glibc (up to about 1998-10-07) failed this test. */
17372   struct tm tm;
17373
17374   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17375      instead of "TZ=America/Vancouver" in order to detect the bug even
17376      on systems that don't support the Olson extension, or don't have the
17377      full zoneinfo tables installed.  */
17378   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17379
17380   tm.tm_year = 98;
17381   tm.tm_mon = 3;
17382   tm.tm_mday = 5;
17383   tm.tm_hour = 2;
17384   tm.tm_min = 0;
17385   tm.tm_sec = 0;
17386   tm.tm_isdst = -1;
17387   if (mktime (&tm) == (time_t)-1)
17388     exit (1);
17389 }
17390
17391 static void
17392 mktime_test1 (now)
17393      time_t now;
17394 {
17395   struct tm *lt;
17396   if ((lt = localtime (&now)) && mktime (lt) != now)
17397     exit (1);
17398 }
17399
17400 static void
17401 mktime_test (now)
17402      time_t now;
17403 {
17404   mktime_test1 (now);
17405   mktime_test1 ((time_t) (time_t_max - now));
17406   mktime_test1 ((time_t) (time_t_min + now));
17407 }
17408
17409 static void
17410 irix_6_4_bug ()
17411 {
17412   /* Based on code from Ariel Faigon.  */
17413   struct tm tm;
17414   tm.tm_year = 96;
17415   tm.tm_mon = 3;
17416   tm.tm_mday = 0;
17417   tm.tm_hour = 0;
17418   tm.tm_min = 0;
17419   tm.tm_sec = 0;
17420   tm.tm_isdst = -1;
17421   mktime (&tm);
17422   if (tm.tm_mon != 2 || tm.tm_mday != 31)
17423     exit (1);
17424 }
17425
17426 static void
17427 bigtime_test (j)
17428      int j;
17429 {
17430   struct tm tm;
17431   time_t now;
17432   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17433   now = mktime (&tm);
17434   if (now != (time_t) -1)
17435     {
17436       struct tm *lt = localtime (&now);
17437       if (! (lt
17438              && lt->tm_year == tm.tm_year
17439              && lt->tm_mon == tm.tm_mon
17440              && lt->tm_mday == tm.tm_mday
17441              && lt->tm_hour == tm.tm_hour
17442              && lt->tm_min == tm.tm_min
17443              && lt->tm_sec == tm.tm_sec
17444              && lt->tm_yday == tm.tm_yday
17445              && lt->tm_wday == tm.tm_wday
17446              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17447                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17448         exit (1);
17449     }
17450 }
17451
17452 int
17453 main ()
17454 {
17455   time_t t, delta;
17456   int i, j;
17457
17458   /* This test makes some buggy mktime implementations loop.
17459      Give up after 60 seconds; a mktime slower than that
17460      isn't worth using anyway.  */
17461   alarm (60);
17462
17463   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
17464     continue;
17465   time_t_max--;
17466   if ((time_t) -1 < 0)
17467     for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
17468       continue;
17469   delta = time_t_max / 997; /* a suitable prime number */
17470   for (i = 0; i < N_STRINGS; i++)
17471     {
17472       if (tz_strings[i])
17473         putenv (tz_strings[i]);
17474
17475       for (t = 0; t <= time_t_max - delta; t += delta)
17476         mktime_test (t);
17477       mktime_test ((time_t) 1);
17478       mktime_test ((time_t) (60 * 60));
17479       mktime_test ((time_t) (60 * 60 * 24));
17480
17481       for (j = 1; 0 < j; j *= 2)
17482         bigtime_test (j);
17483       bigtime_test (j - 1);
17484     }
17485   irix_6_4_bug ();
17486   spring_forward_gap ();
17487   exit (0);
17488 }
17489 _ACEOF
17490 rm -f conftest$ac_exeext
17491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17492   (eval $ac_link) 2>&5
17493   ac_status=$?
17494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17497   (eval $ac_try) 2>&5
17498   ac_status=$?
17499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); }; }; then
17501   ac_cv_func_working_mktime=yes
17502 else
17503   echo "$as_me: program exited with status $ac_status" >&5
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17506
17507 ( exit $ac_status )
17508 ac_cv_func_working_mktime=no
17509 fi
17510 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17511 fi
17512 fi
17513 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17514 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
17515 if test $ac_cv_func_working_mktime = no; then
17516   LIBOBJS="$LIBOBJS mktime.$ac_objext"
17517 fi
17518
17519
17520
17521   if test $ac_cv_func_working_mktime = no; then
17522
17523 cat >>confdefs.h <<\_ACEOF
17524 #define mktime rpl_mktime
17525 _ACEOF
17526
17527
17528
17529
17530   :
17531
17532
17533
17534
17535
17536
17537   fi
17538
17539
17540
17541 for ac_func in readlink
17542 do
17543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17544 echo "$as_me:$LINENO: checking for $ac_func" >&5
17545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17546 if eval "test \"\${$as_ac_var+set}\" = set"; then
17547   echo $ECHO_N "(cached) $ECHO_C" >&6
17548 else
17549   cat >conftest.$ac_ext <<_ACEOF
17550 /* confdefs.h.  */
17551 _ACEOF
17552 cat confdefs.h >>conftest.$ac_ext
17553 cat >>conftest.$ac_ext <<_ACEOF
17554 /* end confdefs.h.  */
17555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17557 #define $ac_func innocuous_$ac_func
17558
17559 /* System header to define __stub macros and hopefully few prototypes,
17560     which can conflict with char $ac_func (); below.
17561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17562     <limits.h> exists even on freestanding compilers.  */
17563
17564 #ifdef __STDC__
17565 # include <limits.h>
17566 #else
17567 # include <assert.h>
17568 #endif
17569
17570 #undef $ac_func
17571
17572 /* Override any gcc2 internal prototype to avoid an error.  */
17573 #ifdef __cplusplus
17574 extern "C"
17575 {
17576 #endif
17577 /* We use char because int might match the return type of a gcc2
17578    builtin and then its argument prototype would still apply.  */
17579 char $ac_func ();
17580 /* The GNU C library defines this for functions which it implements
17581     to always fail with ENOSYS.  Some functions are actually named
17582     something starting with __ and the normal name is an alias.  */
17583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17584 choke me
17585 #else
17586 char (*f) () = $ac_func;
17587 #endif
17588 #ifdef __cplusplus
17589 }
17590 #endif
17591
17592 int
17593 main ()
17594 {
17595 return f != $ac_func;
17596   ;
17597   return 0;
17598 }
17599 _ACEOF
17600 rm -f conftest.$ac_objext conftest$ac_exeext
17601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17602   (eval $ac_link) 2>&5
17603   ac_status=$?
17604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605   (exit $ac_status); } &&
17606          { ac_try='test -s conftest$ac_exeext'
17607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608   (eval $ac_try) 2>&5
17609   ac_status=$?
17610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611   (exit $ac_status); }; }; then
17612   eval "$as_ac_var=yes"
17613 else
17614   echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17616
17617 eval "$as_ac_var=no"
17618 fi
17619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17620 fi
17621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17623 if test `eval echo '${'$as_ac_var'}'` = yes; then
17624   cat >>confdefs.h <<_ACEOF
17625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17626 _ACEOF
17627
17628 fi
17629 done
17630
17631   if test $ac_cv_func_readlink = no; then
17632     LIBOBJS="$LIBOBJS readlink.$ac_objext"
17633
17634   :
17635
17636   fi
17637
17638
17639
17640 for ac_func in rmdir
17641 do
17642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17643 echo "$as_me:$LINENO: checking for $ac_func" >&5
17644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17645 if eval "test \"\${$as_ac_var+set}\" = set"; then
17646   echo $ECHO_N "(cached) $ECHO_C" >&6
17647 else
17648   cat >conftest.$ac_ext <<_ACEOF
17649 /* confdefs.h.  */
17650 _ACEOF
17651 cat confdefs.h >>conftest.$ac_ext
17652 cat >>conftest.$ac_ext <<_ACEOF
17653 /* end confdefs.h.  */
17654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17655    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17656 #define $ac_func innocuous_$ac_func
17657
17658 /* System header to define __stub macros and hopefully few prototypes,
17659     which can conflict with char $ac_func (); below.
17660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17661     <limits.h> exists even on freestanding compilers.  */
17662
17663 #ifdef __STDC__
17664 # include <limits.h>
17665 #else
17666 # include <assert.h>
17667 #endif
17668
17669 #undef $ac_func
17670
17671 /* Override any gcc2 internal prototype to avoid an error.  */
17672 #ifdef __cplusplus
17673 extern "C"
17674 {
17675 #endif
17676 /* We use char because int might match the return type of a gcc2
17677    builtin and then its argument prototype would still apply.  */
17678 char $ac_func ();
17679 /* The GNU C library defines this for functions which it implements
17680     to always fail with ENOSYS.  Some functions are actually named
17681     something starting with __ and the normal name is an alias.  */
17682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17683 choke me
17684 #else
17685 char (*f) () = $ac_func;
17686 #endif
17687 #ifdef __cplusplus
17688 }
17689 #endif
17690
17691 int
17692 main ()
17693 {
17694 return f != $ac_func;
17695   ;
17696   return 0;
17697 }
17698 _ACEOF
17699 rm -f conftest.$ac_objext conftest$ac_exeext
17700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17701   (eval $ac_link) 2>&5
17702   ac_status=$?
17703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704   (exit $ac_status); } &&
17705          { ac_try='test -s conftest$ac_exeext'
17706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707   (eval $ac_try) 2>&5
17708   ac_status=$?
17709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710   (exit $ac_status); }; }; then
17711   eval "$as_ac_var=yes"
17712 else
17713   echo "$as_me: failed program was:" >&5
17714 sed 's/^/| /' conftest.$ac_ext >&5
17715
17716 eval "$as_ac_var=no"
17717 fi
17718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17719 fi
17720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17722 if test `eval echo '${'$as_ac_var'}'` = yes; then
17723   cat >>confdefs.h <<_ACEOF
17724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17725 _ACEOF
17726
17727 else
17728   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17729 fi
17730 done
17731
17732
17733   if test $ac_cv_func_rmdir = no; then
17734
17735
17736   :
17737
17738   fi
17739
17740
17741
17742 for ac_func in rpmatch
17743 do
17744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17745 echo "$as_me:$LINENO: checking for $ac_func" >&5
17746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17747 if eval "test \"\${$as_ac_var+set}\" = set"; then
17748   echo $ECHO_N "(cached) $ECHO_C" >&6
17749 else
17750   cat >conftest.$ac_ext <<_ACEOF
17751 /* confdefs.h.  */
17752 _ACEOF
17753 cat confdefs.h >>conftest.$ac_ext
17754 cat >>conftest.$ac_ext <<_ACEOF
17755 /* end confdefs.h.  */
17756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17757    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17758 #define $ac_func innocuous_$ac_func
17759
17760 /* System header to define __stub macros and hopefully few prototypes,
17761     which can conflict with char $ac_func (); below.
17762     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17763     <limits.h> exists even on freestanding compilers.  */
17764
17765 #ifdef __STDC__
17766 # include <limits.h>
17767 #else
17768 # include <assert.h>
17769 #endif
17770
17771 #undef $ac_func
17772
17773 /* Override any gcc2 internal prototype to avoid an error.  */
17774 #ifdef __cplusplus
17775 extern "C"
17776 {
17777 #endif
17778 /* We use char because int might match the return type of a gcc2
17779    builtin and then its argument prototype would still apply.  */
17780 char $ac_func ();
17781 /* The GNU C library defines this for functions which it implements
17782     to always fail with ENOSYS.  Some functions are actually named
17783     something starting with __ and the normal name is an alias.  */
17784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17785 choke me
17786 #else
17787 char (*f) () = $ac_func;
17788 #endif
17789 #ifdef __cplusplus
17790 }
17791 #endif
17792
17793 int
17794 main ()
17795 {
17796 return f != $ac_func;
17797   ;
17798   return 0;
17799 }
17800 _ACEOF
17801 rm -f conftest.$ac_objext conftest$ac_exeext
17802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17803   (eval $ac_link) 2>&5
17804   ac_status=$?
17805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806   (exit $ac_status); } &&
17807          { ac_try='test -s conftest$ac_exeext'
17808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809   (eval $ac_try) 2>&5
17810   ac_status=$?
17811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812   (exit $ac_status); }; }; then
17813   eval "$as_ac_var=yes"
17814 else
17815   echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17817
17818 eval "$as_ac_var=no"
17819 fi
17820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17821 fi
17822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17824 if test `eval echo '${'$as_ac_var'}'` = yes; then
17825   cat >>confdefs.h <<_ACEOF
17826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17827 _ACEOF
17828
17829 else
17830   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17831 fi
17832 done
17833
17834
17835   if test $ac_cv_func_rpmatch = no; then
17836
17837
17838   :
17839
17840   fi
17841
17842
17843
17844 for ac_func in sig2str
17845 do
17846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17847 echo "$as_me:$LINENO: checking for $ac_func" >&5
17848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17849 if eval "test \"\${$as_ac_var+set}\" = set"; then
17850   echo $ECHO_N "(cached) $ECHO_C" >&6
17851 else
17852   cat >conftest.$ac_ext <<_ACEOF
17853 /* confdefs.h.  */
17854 _ACEOF
17855 cat confdefs.h >>conftest.$ac_ext
17856 cat >>conftest.$ac_ext <<_ACEOF
17857 /* end confdefs.h.  */
17858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17860 #define $ac_func innocuous_$ac_func
17861
17862 /* System header to define __stub macros and hopefully few prototypes,
17863     which can conflict with char $ac_func (); below.
17864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17865     <limits.h> exists even on freestanding compilers.  */
17866
17867 #ifdef __STDC__
17868 # include <limits.h>
17869 #else
17870 # include <assert.h>
17871 #endif
17872
17873 #undef $ac_func
17874
17875 /* Override any gcc2 internal prototype to avoid an error.  */
17876 #ifdef __cplusplus
17877 extern "C"
17878 {
17879 #endif
17880 /* We use char because int might match the return type of a gcc2
17881    builtin and then its argument prototype would still apply.  */
17882 char $ac_func ();
17883 /* The GNU C library defines this for functions which it implements
17884     to always fail with ENOSYS.  Some functions are actually named
17885     something starting with __ and the normal name is an alias.  */
17886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17887 choke me
17888 #else
17889 char (*f) () = $ac_func;
17890 #endif
17891 #ifdef __cplusplus
17892 }
17893 #endif
17894
17895 int
17896 main ()
17897 {
17898 return f != $ac_func;
17899   ;
17900   return 0;
17901 }
17902 _ACEOF
17903 rm -f conftest.$ac_objext conftest$ac_exeext
17904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17905   (eval $ac_link) 2>&5
17906   ac_status=$?
17907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908   (exit $ac_status); } &&
17909          { ac_try='test -s conftest$ac_exeext'
17910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911   (eval $ac_try) 2>&5
17912   ac_status=$?
17913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914   (exit $ac_status); }; }; then
17915   eval "$as_ac_var=yes"
17916 else
17917   echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17919
17920 eval "$as_ac_var=no"
17921 fi
17922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17923 fi
17924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17926 if test `eval echo '${'$as_ac_var'}'` = yes; then
17927   cat >>confdefs.h <<_ACEOF
17928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17929 _ACEOF
17930
17931 else
17932   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17933 fi
17934 done
17935
17936
17937   if test $ac_cv_func_sig2str = no; then
17938
17939   :
17940
17941   fi
17942
17943
17944
17945
17946
17947 for ac_func in stpcpy
17948 do
17949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17950 echo "$as_me:$LINENO: checking for $ac_func" >&5
17951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17952 if eval "test \"\${$as_ac_var+set}\" = set"; then
17953   echo $ECHO_N "(cached) $ECHO_C" >&6
17954 else
17955   cat >conftest.$ac_ext <<_ACEOF
17956 /* confdefs.h.  */
17957 _ACEOF
17958 cat confdefs.h >>conftest.$ac_ext
17959 cat >>conftest.$ac_ext <<_ACEOF
17960 /* end confdefs.h.  */
17961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17963 #define $ac_func innocuous_$ac_func
17964
17965 /* System header to define __stub macros and hopefully few prototypes,
17966     which can conflict with char $ac_func (); below.
17967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17968     <limits.h> exists even on freestanding compilers.  */
17969
17970 #ifdef __STDC__
17971 # include <limits.h>
17972 #else
17973 # include <assert.h>
17974 #endif
17975
17976 #undef $ac_func
17977
17978 /* Override any gcc2 internal prototype to avoid an error.  */
17979 #ifdef __cplusplus
17980 extern "C"
17981 {
17982 #endif
17983 /* We use char because int might match the return type of a gcc2
17984    builtin and then its argument prototype would still apply.  */
17985 char $ac_func ();
17986 /* The GNU C library defines this for functions which it implements
17987     to always fail with ENOSYS.  Some functions are actually named
17988     something starting with __ and the normal name is an alias.  */
17989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17990 choke me
17991 #else
17992 char (*f) () = $ac_func;
17993 #endif
17994 #ifdef __cplusplus
17995 }
17996 #endif
17997
17998 int
17999 main ()
18000 {
18001 return f != $ac_func;
18002   ;
18003   return 0;
18004 }
18005 _ACEOF
18006 rm -f conftest.$ac_objext conftest$ac_exeext
18007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18008   (eval $ac_link) 2>&5
18009   ac_status=$?
18010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011   (exit $ac_status); } &&
18012          { ac_try='test -s conftest$ac_exeext'
18013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18014   (eval $ac_try) 2>&5
18015   ac_status=$?
18016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017   (exit $ac_status); }; }; then
18018   eval "$as_ac_var=yes"
18019 else
18020   echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18022
18023 eval "$as_ac_var=no"
18024 fi
18025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18026 fi
18027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18029 if test `eval echo '${'$as_ac_var'}'` = yes; then
18030   cat >>confdefs.h <<_ACEOF
18031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18032 _ACEOF
18033
18034 else
18035   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18036 fi
18037 done
18038
18039
18040   if test $ac_cv_func_stpcpy = no; then
18041
18042   :
18043
18044   fi
18045
18046
18047
18048 for ac_func in strcspn
18049 do
18050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18051 echo "$as_me:$LINENO: checking for $ac_func" >&5
18052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18053 if eval "test \"\${$as_ac_var+set}\" = set"; then
18054   echo $ECHO_N "(cached) $ECHO_C" >&6
18055 else
18056   cat >conftest.$ac_ext <<_ACEOF
18057 /* confdefs.h.  */
18058 _ACEOF
18059 cat confdefs.h >>conftest.$ac_ext
18060 cat >>conftest.$ac_ext <<_ACEOF
18061 /* end confdefs.h.  */
18062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18064 #define $ac_func innocuous_$ac_func
18065
18066 /* System header to define __stub macros and hopefully few prototypes,
18067     which can conflict with char $ac_func (); below.
18068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18069     <limits.h> exists even on freestanding compilers.  */
18070
18071 #ifdef __STDC__
18072 # include <limits.h>
18073 #else
18074 # include <assert.h>
18075 #endif
18076
18077 #undef $ac_func
18078
18079 /* Override any gcc2 internal prototype to avoid an error.  */
18080 #ifdef __cplusplus
18081 extern "C"
18082 {
18083 #endif
18084 /* We use char because int might match the return type of a gcc2
18085    builtin and then its argument prototype would still apply.  */
18086 char $ac_func ();
18087 /* The GNU C library defines this for functions which it implements
18088     to always fail with ENOSYS.  Some functions are actually named
18089     something starting with __ and the normal name is an alias.  */
18090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18091 choke me
18092 #else
18093 char (*f) () = $ac_func;
18094 #endif
18095 #ifdef __cplusplus
18096 }
18097 #endif
18098
18099 int
18100 main ()
18101 {
18102 return f != $ac_func;
18103   ;
18104   return 0;
18105 }
18106 _ACEOF
18107 rm -f conftest.$ac_objext conftest$ac_exeext
18108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18109   (eval $ac_link) 2>&5
18110   ac_status=$?
18111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); } &&
18113          { ac_try='test -s conftest$ac_exeext'
18114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115   (eval $ac_try) 2>&5
18116   ac_status=$?
18117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118   (exit $ac_status); }; }; then
18119   eval "$as_ac_var=yes"
18120 else
18121   echo "$as_me: failed program was:" >&5
18122 sed 's/^/| /' conftest.$ac_ext >&5
18123
18124 eval "$as_ac_var=no"
18125 fi
18126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18127 fi
18128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18130 if test `eval echo '${'$as_ac_var'}'` = yes; then
18131   cat >>confdefs.h <<_ACEOF
18132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18133 _ACEOF
18134
18135 else
18136   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18137 fi
18138 done
18139
18140
18141   if test $ac_cv_func_strcspn = no; then
18142
18143
18144   :
18145
18146
18147
18148
18149
18150
18151   fi
18152
18153
18154
18155 for ac_func in strdup
18156 do
18157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18158 echo "$as_me:$LINENO: checking for $ac_func" >&5
18159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18160 if eval "test \"\${$as_ac_var+set}\" = set"; then
18161   echo $ECHO_N "(cached) $ECHO_C" >&6
18162 else
18163   cat >conftest.$ac_ext <<_ACEOF
18164 /* confdefs.h.  */
18165 _ACEOF
18166 cat confdefs.h >>conftest.$ac_ext
18167 cat >>conftest.$ac_ext <<_ACEOF
18168 /* end confdefs.h.  */
18169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18170    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18171 #define $ac_func innocuous_$ac_func
18172
18173 /* System header to define __stub macros and hopefully few prototypes,
18174     which can conflict with char $ac_func (); below.
18175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18176     <limits.h> exists even on freestanding compilers.  */
18177
18178 #ifdef __STDC__
18179 # include <limits.h>
18180 #else
18181 # include <assert.h>
18182 #endif
18183
18184 #undef $ac_func
18185
18186 /* Override any gcc2 internal prototype to avoid an error.  */
18187 #ifdef __cplusplus
18188 extern "C"
18189 {
18190 #endif
18191 /* We use char because int might match the return type of a gcc2
18192    builtin and then its argument prototype would still apply.  */
18193 char $ac_func ();
18194 /* The GNU C library defines this for functions which it implements
18195     to always fail with ENOSYS.  Some functions are actually named
18196     something starting with __ and the normal name is an alias.  */
18197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18198 choke me
18199 #else
18200 char (*f) () = $ac_func;
18201 #endif
18202 #ifdef __cplusplus
18203 }
18204 #endif
18205
18206 int
18207 main ()
18208 {
18209 return f != $ac_func;
18210   ;
18211   return 0;
18212 }
18213 _ACEOF
18214 rm -f conftest.$ac_objext conftest$ac_exeext
18215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18216   (eval $ac_link) 2>&5
18217   ac_status=$?
18218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219   (exit $ac_status); } &&
18220          { ac_try='test -s conftest$ac_exeext'
18221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18222   (eval $ac_try) 2>&5
18223   ac_status=$?
18224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225   (exit $ac_status); }; }; then
18226   eval "$as_ac_var=yes"
18227 else
18228   echo "$as_me: failed program was:" >&5
18229 sed 's/^/| /' conftest.$ac_ext >&5
18230
18231 eval "$as_ac_var=no"
18232 fi
18233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18234 fi
18235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18237 if test `eval echo '${'$as_ac_var'}'` = yes; then
18238   cat >>confdefs.h <<_ACEOF
18239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18240 _ACEOF
18241
18242 else
18243   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18244 fi
18245 done
18246
18247
18248   if test $ac_cv_func_strdup = no; then
18249
18250
18251   :
18252
18253   fi
18254
18255
18256
18257
18258
18259 for ac_func in strndup
18260 do
18261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18262 echo "$as_me:$LINENO: checking for $ac_func" >&5
18263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18264 if eval "test \"\${$as_ac_var+set}\" = set"; then
18265   echo $ECHO_N "(cached) $ECHO_C" >&6
18266 else
18267   cat >conftest.$ac_ext <<_ACEOF
18268 /* confdefs.h.  */
18269 _ACEOF
18270 cat confdefs.h >>conftest.$ac_ext
18271 cat >>conftest.$ac_ext <<_ACEOF
18272 /* end confdefs.h.  */
18273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18274    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18275 #define $ac_func innocuous_$ac_func
18276
18277 /* System header to define __stub macros and hopefully few prototypes,
18278     which can conflict with char $ac_func (); below.
18279     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18280     <limits.h> exists even on freestanding compilers.  */
18281
18282 #ifdef __STDC__
18283 # include <limits.h>
18284 #else
18285 # include <assert.h>
18286 #endif
18287
18288 #undef $ac_func
18289
18290 /* Override any gcc2 internal prototype to avoid an error.  */
18291 #ifdef __cplusplus
18292 extern "C"
18293 {
18294 #endif
18295 /* We use char because int might match the return type of a gcc2
18296    builtin and then its argument prototype would still apply.  */
18297 char $ac_func ();
18298 /* The GNU C library defines this for functions which it implements
18299     to always fail with ENOSYS.  Some functions are actually named
18300     something starting with __ and the normal name is an alias.  */
18301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18302 choke me
18303 #else
18304 char (*f) () = $ac_func;
18305 #endif
18306 #ifdef __cplusplus
18307 }
18308 #endif
18309
18310 int
18311 main ()
18312 {
18313 return f != $ac_func;
18314   ;
18315   return 0;
18316 }
18317 _ACEOF
18318 rm -f conftest.$ac_objext conftest$ac_exeext
18319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18320   (eval $ac_link) 2>&5
18321   ac_status=$?
18322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323   (exit $ac_status); } &&
18324          { ac_try='test -s conftest$ac_exeext'
18325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326   (eval $ac_try) 2>&5
18327   ac_status=$?
18328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329   (exit $ac_status); }; }; then
18330   eval "$as_ac_var=yes"
18331 else
18332   echo "$as_me: failed program was:" >&5
18333 sed 's/^/| /' conftest.$ac_ext >&5
18334
18335 eval "$as_ac_var=no"
18336 fi
18337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18338 fi
18339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18341 if test `eval echo '${'$as_ac_var'}'` = yes; then
18342   cat >>confdefs.h <<_ACEOF
18343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18344 _ACEOF
18345
18346 else
18347   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18348 fi
18349 done
18350
18351
18352   if test $ac_cv_func_strndup = no; then
18353
18354
18355   echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
18356 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
18357 if test "${ac_cv_have_decl_strnlen+set}" = set; then
18358   echo $ECHO_N "(cached) $ECHO_C" >&6
18359 else
18360   cat >conftest.$ac_ext <<_ACEOF
18361 /* confdefs.h.  */
18362 _ACEOF
18363 cat confdefs.h >>conftest.$ac_ext
18364 cat >>conftest.$ac_ext <<_ACEOF
18365 /* end confdefs.h.  */
18366 $ac_includes_default
18367 int
18368 main ()
18369 {
18370 #ifndef strnlen
18371   char *p = (char *) strnlen;
18372 #endif
18373
18374   ;
18375   return 0;
18376 }
18377 _ACEOF
18378 rm -f conftest.$ac_objext
18379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18380   (eval $ac_compile) 2>&5
18381   ac_status=$?
18382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383   (exit $ac_status); } &&
18384          { ac_try='test -s conftest.$ac_objext'
18385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386   (eval $ac_try) 2>&5
18387   ac_status=$?
18388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389   (exit $ac_status); }; }; then
18390   ac_cv_have_decl_strnlen=yes
18391 else
18392   echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18394
18395 ac_cv_have_decl_strnlen=no
18396 fi
18397 rm -f conftest.$ac_objext conftest.$ac_ext
18398 fi
18399 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
18400 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
18401 if test $ac_cv_have_decl_strnlen = yes; then
18402
18403 cat >>confdefs.h <<_ACEOF
18404 #define HAVE_DECL_STRNLEN 1
18405 _ACEOF
18406
18407
18408 else
18409   cat >>confdefs.h <<_ACEOF
18410 #define HAVE_DECL_STRNLEN 0
18411 _ACEOF
18412
18413
18414 fi
18415
18416
18417
18418   fi
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429   echo "$as_me:$LINENO: checking for working strnlen" >&5
18430 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
18431 if test "${ac_cv_func_strnlen_working+set}" = set; then
18432   echo $ECHO_N "(cached) $ECHO_C" >&6
18433 else
18434   if test "$cross_compiling" = yes; then
18435   ac_cv_func_strnlen_working=no
18436 else
18437   cat >conftest.$ac_ext <<_ACEOF
18438 /* confdefs.h.  */
18439 _ACEOF
18440 cat confdefs.h >>conftest.$ac_ext
18441 cat >>conftest.$ac_ext <<_ACEOF
18442 /* end confdefs.h.  */
18443 $ac_includes_default
18444 int
18445 main ()
18446 {
18447
18448 #define S "foobar"
18449 #define S_LEN (sizeof S - 1)
18450
18451   /* At least one implementation is buggy: that of AIX 4.3 would
18452      give strnlen (S, 1) == 3.  */
18453
18454   int i;
18455   for (i = 0; i < S_LEN + 1; ++i)
18456     {
18457       int expected = i <= S_LEN ? i : S_LEN;
18458       if (strnlen (S, i) != expected)
18459         exit (1);
18460     }
18461   exit (0);
18462
18463   ;
18464   return 0;
18465 }
18466 _ACEOF
18467 rm -f conftest$ac_exeext
18468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18469   (eval $ac_link) 2>&5
18470   ac_status=$?
18471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474   (eval $ac_try) 2>&5
18475   ac_status=$?
18476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477   (exit $ac_status); }; }; then
18478   ac_cv_func_strnlen_working=yes
18479 else
18480   echo "$as_me: program exited with status $ac_status" >&5
18481 echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18483
18484 ( exit $ac_status )
18485 ac_cv_func_strnlen_working=no
18486 fi
18487 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18488 fi
18489 fi
18490 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
18491 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
18492 test $ac_cv_func_strnlen_working = no && LIBOBJS="$LIBOBJS strnlen.$ac_objext"
18493
18494   if test $ac_cv_func_strnlen_working = no; then
18495     # This is necessary because automake-1.6.1 doens't understand
18496     # that the above use of AC_FUNC_STRNLEN means we may have to use
18497     # lib/strnlen.c.
18498     #AC_LIBOBJ(strnlen)
18499
18500 cat >>confdefs.h <<\_ACEOF
18501 #define strnlen rpl_strnlen
18502 _ACEOF
18503
18504
18505
18506
18507   :
18508
18509
18510
18511
18512
18513
18514
18515
18516   echo "$as_me:$LINENO: checking whether memchr is declared" >&5
18517 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
18518 if test "${ac_cv_have_decl_memchr+set}" = set; then
18519   echo $ECHO_N "(cached) $ECHO_C" >&6
18520 else
18521   cat >conftest.$ac_ext <<_ACEOF
18522 /* confdefs.h.  */
18523 _ACEOF
18524 cat confdefs.h >>conftest.$ac_ext
18525 cat >>conftest.$ac_ext <<_ACEOF
18526 /* end confdefs.h.  */
18527 $ac_includes_default
18528 int
18529 main ()
18530 {
18531 #ifndef memchr
18532   char *p = (char *) memchr;
18533 #endif
18534
18535   ;
18536   return 0;
18537 }
18538 _ACEOF
18539 rm -f conftest.$ac_objext
18540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18541   (eval $ac_compile) 2>&5
18542   ac_status=$?
18543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544   (exit $ac_status); } &&
18545          { ac_try='test -s conftest.$ac_objext'
18546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18547   (eval $ac_try) 2>&5
18548   ac_status=$?
18549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550   (exit $ac_status); }; }; then
18551   ac_cv_have_decl_memchr=yes
18552 else
18553   echo "$as_me: failed program was:" >&5
18554 sed 's/^/| /' conftest.$ac_ext >&5
18555
18556 ac_cv_have_decl_memchr=no
18557 fi
18558 rm -f conftest.$ac_objext conftest.$ac_ext
18559 fi
18560 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
18561 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
18562 if test $ac_cv_have_decl_memchr = yes; then
18563
18564 cat >>confdefs.h <<_ACEOF
18565 #define HAVE_DECL_MEMCHR 1
18566 _ACEOF
18567
18568
18569 else
18570   cat >>confdefs.h <<_ACEOF
18571 #define HAVE_DECL_MEMCHR 0
18572 _ACEOF
18573
18574
18575 fi
18576
18577
18578
18579   fi
18580
18581
18582
18583 for ac_func in strpbrk
18584 do
18585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18586 echo "$as_me:$LINENO: checking for $ac_func" >&5
18587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18588 if eval "test \"\${$as_ac_var+set}\" = set"; then
18589   echo $ECHO_N "(cached) $ECHO_C" >&6
18590 else
18591   cat >conftest.$ac_ext <<_ACEOF
18592 /* confdefs.h.  */
18593 _ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h.  */
18597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18598    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18599 #define $ac_func innocuous_$ac_func
18600
18601 /* System header to define __stub macros and hopefully few prototypes,
18602     which can conflict with char $ac_func (); below.
18603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18604     <limits.h> exists even on freestanding compilers.  */
18605
18606 #ifdef __STDC__
18607 # include <limits.h>
18608 #else
18609 # include <assert.h>
18610 #endif
18611
18612 #undef $ac_func
18613
18614 /* Override any gcc2 internal prototype to avoid an error.  */
18615 #ifdef __cplusplus
18616 extern "C"
18617 {
18618 #endif
18619 /* We use char because int might match the return type of a gcc2
18620    builtin and then its argument prototype would still apply.  */
18621 char $ac_func ();
18622 /* The GNU C library defines this for functions which it implements
18623     to always fail with ENOSYS.  Some functions are actually named
18624     something starting with __ and the normal name is an alias.  */
18625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18626 choke me
18627 #else
18628 char (*f) () = $ac_func;
18629 #endif
18630 #ifdef __cplusplus
18631 }
18632 #endif
18633
18634 int
18635 main ()
18636 {
18637 return f != $ac_func;
18638   ;
18639   return 0;
18640 }
18641 _ACEOF
18642 rm -f conftest.$ac_objext conftest$ac_exeext
18643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18644   (eval $ac_link) 2>&5
18645   ac_status=$?
18646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647   (exit $ac_status); } &&
18648          { ac_try='test -s conftest$ac_exeext'
18649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18650   (eval $ac_try) 2>&5
18651   ac_status=$?
18652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653   (exit $ac_status); }; }; then
18654   eval "$as_ac_var=yes"
18655 else
18656   echo "$as_me: failed program was:" >&5
18657 sed 's/^/| /' conftest.$ac_ext >&5
18658
18659 eval "$as_ac_var=no"
18660 fi
18661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18662 fi
18663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18665 if test `eval echo '${'$as_ac_var'}'` = yes; then
18666   cat >>confdefs.h <<_ACEOF
18667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18668 _ACEOF
18669
18670 else
18671   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18672 fi
18673 done
18674
18675
18676   if test $ac_cv_func_strpbrk = no; then
18677
18678
18679   :
18680
18681
18682
18683
18684
18685
18686   fi
18687
18688
18689
18690 for ac_func in strstr
18691 do
18692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18693 echo "$as_me:$LINENO: checking for $ac_func" >&5
18694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18695 if eval "test \"\${$as_ac_var+set}\" = set"; then
18696   echo $ECHO_N "(cached) $ECHO_C" >&6
18697 else
18698   cat >conftest.$ac_ext <<_ACEOF
18699 /* confdefs.h.  */
18700 _ACEOF
18701 cat confdefs.h >>conftest.$ac_ext
18702 cat >>conftest.$ac_ext <<_ACEOF
18703 /* end confdefs.h.  */
18704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18706 #define $ac_func innocuous_$ac_func
18707
18708 /* System header to define __stub macros and hopefully few prototypes,
18709     which can conflict with char $ac_func (); below.
18710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18711     <limits.h> exists even on freestanding compilers.  */
18712
18713 #ifdef __STDC__
18714 # include <limits.h>
18715 #else
18716 # include <assert.h>
18717 #endif
18718
18719 #undef $ac_func
18720
18721 /* Override any gcc2 internal prototype to avoid an error.  */
18722 #ifdef __cplusplus
18723 extern "C"
18724 {
18725 #endif
18726 /* We use char because int might match the return type of a gcc2
18727    builtin and then its argument prototype would still apply.  */
18728 char $ac_func ();
18729 /* The GNU C library defines this for functions which it implements
18730     to always fail with ENOSYS.  Some functions are actually named
18731     something starting with __ and the normal name is an alias.  */
18732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18733 choke me
18734 #else
18735 char (*f) () = $ac_func;
18736 #endif
18737 #ifdef __cplusplus
18738 }
18739 #endif
18740
18741 int
18742 main ()
18743 {
18744 return f != $ac_func;
18745   ;
18746   return 0;
18747 }
18748 _ACEOF
18749 rm -f conftest.$ac_objext conftest$ac_exeext
18750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18751   (eval $ac_link) 2>&5
18752   ac_status=$?
18753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754   (exit $ac_status); } &&
18755          { ac_try='test -s conftest$ac_exeext'
18756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757   (eval $ac_try) 2>&5
18758   ac_status=$?
18759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760   (exit $ac_status); }; }; then
18761   eval "$as_ac_var=yes"
18762 else
18763   echo "$as_me: failed program was:" >&5
18764 sed 's/^/| /' conftest.$ac_ext >&5
18765
18766 eval "$as_ac_var=no"
18767 fi
18768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18769 fi
18770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18772 if test `eval echo '${'$as_ac_var'}'` = yes; then
18773   cat >>confdefs.h <<_ACEOF
18774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18775 _ACEOF
18776
18777 else
18778   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18779 fi
18780 done
18781
18782
18783   if test $ac_cv_func_strstr = no; then
18784
18785
18786   :
18787
18788
18789
18790
18791
18792
18793   fi
18794
18795 echo "$as_me:$LINENO: checking for working strtod" >&5
18796 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
18797 if test "${ac_cv_func_strtod+set}" = set; then
18798   echo $ECHO_N "(cached) $ECHO_C" >&6
18799 else
18800   if test "$cross_compiling" = yes; then
18801   ac_cv_func_strtod=no
18802 else
18803   cat >conftest.$ac_ext <<_ACEOF
18804 /* confdefs.h.  */
18805 _ACEOF
18806 cat confdefs.h >>conftest.$ac_ext
18807 cat >>conftest.$ac_ext <<_ACEOF
18808 /* end confdefs.h.  */
18809
18810 double strtod ();
18811 int
18812 main()
18813 {
18814   {
18815     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
18816     char *string = " +69";
18817     char *term;
18818     double value;
18819     value = strtod (string, &term);
18820     if (value != 69 || term != (string + 4))
18821       exit (1);
18822   }
18823
18824   {
18825     /* Under Solaris 2.4, strtod returns the wrong value for the
18826        terminating character under some conditions.  */
18827     char *string = "NaN";
18828     char *term;
18829     strtod (string, &term);
18830     if (term != string && *(term - 1) == 0)
18831       exit (1);
18832   }
18833   exit (0);
18834 }
18835
18836 _ACEOF
18837 rm -f conftest$ac_exeext
18838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18839   (eval $ac_link) 2>&5
18840   ac_status=$?
18841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18844   (eval $ac_try) 2>&5
18845   ac_status=$?
18846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847   (exit $ac_status); }; }; then
18848   ac_cv_func_strtod=yes
18849 else
18850   echo "$as_me: program exited with status $ac_status" >&5
18851 echo "$as_me: failed program was:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18853
18854 ( exit $ac_status )
18855 ac_cv_func_strtod=no
18856 fi
18857 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18858 fi
18859 fi
18860 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
18861 echo "${ECHO_T}$ac_cv_func_strtod" >&6
18862 if test $ac_cv_func_strtod = no; then
18863   LIBOBJS="$LIBOBJS strtod.$ac_objext"
18864 echo "$as_me:$LINENO: checking for pow" >&5
18865 echo $ECHO_N "checking for pow... $ECHO_C" >&6
18866 if test "${ac_cv_func_pow+set}" = set; then
18867   echo $ECHO_N "(cached) $ECHO_C" >&6
18868 else
18869   cat >conftest.$ac_ext <<_ACEOF
18870 /* confdefs.h.  */
18871 _ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h.  */
18875 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
18876    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18877 #define pow innocuous_pow
18878
18879 /* System header to define __stub macros and hopefully few prototypes,
18880     which can conflict with char pow (); below.
18881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18882     <limits.h> exists even on freestanding compilers.  */
18883
18884 #ifdef __STDC__
18885 # include <limits.h>
18886 #else
18887 # include <assert.h>
18888 #endif
18889
18890 #undef pow
18891
18892 /* Override any gcc2 internal prototype to avoid an error.  */
18893 #ifdef __cplusplus
18894 extern "C"
18895 {
18896 #endif
18897 /* We use char because int might match the return type of a gcc2
18898    builtin and then its argument prototype would still apply.  */
18899 char pow ();
18900 /* The GNU C library defines this for functions which it implements
18901     to always fail with ENOSYS.  Some functions are actually named
18902     something starting with __ and the normal name is an alias.  */
18903 #if defined (__stub_pow) || defined (__stub___pow)
18904 choke me
18905 #else
18906 char (*f) () = pow;
18907 #endif
18908 #ifdef __cplusplus
18909 }
18910 #endif
18911
18912 int
18913 main ()
18914 {
18915 return f != pow;
18916   ;
18917   return 0;
18918 }
18919 _ACEOF
18920 rm -f conftest.$ac_objext conftest$ac_exeext
18921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18922   (eval $ac_link) 2>&5
18923   ac_status=$?
18924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925   (exit $ac_status); } &&
18926          { ac_try='test -s conftest$ac_exeext'
18927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18928   (eval $ac_try) 2>&5
18929   ac_status=$?
18930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931   (exit $ac_status); }; }; then
18932   ac_cv_func_pow=yes
18933 else
18934   echo "$as_me: failed program was:" >&5
18935 sed 's/^/| /' conftest.$ac_ext >&5
18936
18937 ac_cv_func_pow=no
18938 fi
18939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18940 fi
18941 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
18942 echo "${ECHO_T}$ac_cv_func_pow" >&6
18943
18944 if test $ac_cv_func_pow = no; then
18945   echo "$as_me:$LINENO: checking for pow in -lm" >&5
18946 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
18947 if test "${ac_cv_lib_m_pow+set}" = set; then
18948   echo $ECHO_N "(cached) $ECHO_C" >&6
18949 else
18950   ac_check_lib_save_LIBS=$LIBS
18951 LIBS="-lm  $LIBS"
18952 cat >conftest.$ac_ext <<_ACEOF
18953 /* confdefs.h.  */
18954 _ACEOF
18955 cat confdefs.h >>conftest.$ac_ext
18956 cat >>conftest.$ac_ext <<_ACEOF
18957 /* end confdefs.h.  */
18958
18959 /* Override any gcc2 internal prototype to avoid an error.  */
18960 #ifdef __cplusplus
18961 extern "C"
18962 #endif
18963 /* We use char because int might match the return type of a gcc2
18964    builtin and then its argument prototype would still apply.  */
18965 char pow ();
18966 int
18967 main ()
18968 {
18969 pow ();
18970   ;
18971   return 0;
18972 }
18973 _ACEOF
18974 rm -f conftest.$ac_objext conftest$ac_exeext
18975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18976   (eval $ac_link) 2>&5
18977   ac_status=$?
18978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979   (exit $ac_status); } &&
18980          { ac_try='test -s conftest$ac_exeext'
18981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18982   (eval $ac_try) 2>&5
18983   ac_status=$?
18984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985   (exit $ac_status); }; }; then
18986   ac_cv_lib_m_pow=yes
18987 else
18988   echo "$as_me: failed program was:" >&5
18989 sed 's/^/| /' conftest.$ac_ext >&5
18990
18991 ac_cv_lib_m_pow=no
18992 fi
18993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18994 LIBS=$ac_check_lib_save_LIBS
18995 fi
18996 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
18997 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
18998 if test $ac_cv_lib_m_pow = yes; then
18999   POW_LIB=-lm
19000 else
19001   { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
19002 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
19003 fi
19004
19005 fi
19006
19007 fi
19008
19009
19010
19011   if test $ac_cv_func_strtod = no; then
19012
19013 cat >>confdefs.h <<\_ACEOF
19014 #define strtod rpl_strtod
19015 _ACEOF
19016
19017
19018
19019
19020 for ac_header in float.h
19021 do
19022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19024   echo "$as_me:$LINENO: checking for $ac_header" >&5
19025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19027   echo $ECHO_N "(cached) $ECHO_C" >&6
19028 fi
19029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19031 else
19032   # Is the header compilable?
19033 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19035 cat >conftest.$ac_ext <<_ACEOF
19036 /* confdefs.h.  */
19037 _ACEOF
19038 cat confdefs.h >>conftest.$ac_ext
19039 cat >>conftest.$ac_ext <<_ACEOF
19040 /* end confdefs.h.  */
19041 $ac_includes_default
19042 #include <$ac_header>
19043 _ACEOF
19044 rm -f conftest.$ac_objext
19045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19046   (eval $ac_compile) 2>&5
19047   ac_status=$?
19048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049   (exit $ac_status); } &&
19050          { ac_try='test -s conftest.$ac_objext'
19051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19052   (eval $ac_try) 2>&5
19053   ac_status=$?
19054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055   (exit $ac_status); }; }; then
19056   ac_header_compiler=yes
19057 else
19058   echo "$as_me: failed program was:" >&5
19059 sed 's/^/| /' conftest.$ac_ext >&5
19060
19061 ac_header_compiler=no
19062 fi
19063 rm -f conftest.$ac_objext conftest.$ac_ext
19064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19065 echo "${ECHO_T}$ac_header_compiler" >&6
19066
19067 # Is the header present?
19068 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19070 cat >conftest.$ac_ext <<_ACEOF
19071 /* confdefs.h.  */
19072 _ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h.  */
19076 #include <$ac_header>
19077 _ACEOF
19078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19079   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19080   ac_status=$?
19081   grep -v '^ *+' conftest.er1 >conftest.err
19082   rm -f conftest.er1
19083   cat conftest.err >&5
19084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085   (exit $ac_status); } >/dev/null; then
19086   if test -s conftest.err; then
19087     ac_cpp_err=$ac_c_preproc_warn_flag
19088   else
19089     ac_cpp_err=
19090   fi
19091 else
19092   ac_cpp_err=yes
19093 fi
19094 if test -z "$ac_cpp_err"; then
19095   ac_header_preproc=yes
19096 else
19097   echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19099
19100   ac_header_preproc=no
19101 fi
19102 rm -f conftest.err conftest.$ac_ext
19103 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19104 echo "${ECHO_T}$ac_header_preproc" >&6
19105
19106 # So?  What about this header?
19107 case $ac_header_compiler:$ac_header_preproc in
19108   yes:no )
19109     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19111     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19113     ac_header_preproc=yes
19114     ;;
19115   no:yes )
19116     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19118     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19119 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19120     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19122     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19123 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19124     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19126     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19128     (
19129       cat <<\_ASBOX
19130 ## ------------------------------------ ##
19131 ## Report this to bug-coreutils@gnu.org ##
19132 ## ------------------------------------ ##
19133 _ASBOX
19134     ) |
19135       sed "s/^/$as_me: WARNING:     /" >&2
19136     ;;
19137 esac
19138 echo "$as_me:$LINENO: checking for $ac_header" >&5
19139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19141   echo $ECHO_N "(cached) $ECHO_C" >&6
19142 else
19143   eval "$as_ac_Header=\$ac_header_preproc"
19144 fi
19145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19147
19148 fi
19149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19150   cat >>confdefs.h <<_ACEOF
19151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19152 _ACEOF
19153
19154 fi
19155
19156 done
19157
19158
19159   :
19160
19161
19162
19163
19164
19165
19166   fi
19167
19168
19169   echo "$as_me:$LINENO: checking for long long" >&5
19170 echo $ECHO_N "checking for long long... $ECHO_C" >&6
19171 if test "${ac_cv_type_long_long+set}" = set; then
19172   echo $ECHO_N "(cached) $ECHO_C" >&6
19173 else
19174
19175 cat >conftest.$ac_ext <<_ACEOF
19176 /* confdefs.h.  */
19177 _ACEOF
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h.  */
19181 long long ll = 1LL; int i = 63;
19182 int
19183 main ()
19184 {
19185 long long llmax = (long long) -1;
19186      return ll << i | ll >> i | llmax / ll | llmax % ll;
19187   ;
19188   return 0;
19189 }
19190 _ACEOF
19191 rm -f conftest.$ac_objext conftest$ac_exeext
19192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19193   (eval $ac_link) 2>&5
19194   ac_status=$?
19195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196   (exit $ac_status); } &&
19197          { ac_try='test -s conftest$ac_exeext'
19198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199   (eval $ac_try) 2>&5
19200   ac_status=$?
19201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202   (exit $ac_status); }; }; then
19203   ac_cv_type_long_long=yes
19204 else
19205   echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19207
19208 ac_cv_type_long_long=no
19209 fi
19210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19211 fi
19212 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19213 echo "${ECHO_T}$ac_cv_type_long_long" >&6
19214   if test $ac_cv_type_long_long = yes; then
19215
19216 cat >>confdefs.h <<\_ACEOF
19217 #define HAVE_LONG_LONG 1
19218 _ACEOF
19219
19220   fi
19221
19222
19223       echo "$as_me:$LINENO: checking whether strtol is declared" >&5
19224 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
19225 if test "${ac_cv_have_decl_strtol+set}" = set; then
19226   echo $ECHO_N "(cached) $ECHO_C" >&6
19227 else
19228   cat >conftest.$ac_ext <<_ACEOF
19229 /* confdefs.h.  */
19230 _ACEOF
19231 cat confdefs.h >>conftest.$ac_ext
19232 cat >>conftest.$ac_ext <<_ACEOF
19233 /* end confdefs.h.  */
19234 $ac_includes_default
19235 int
19236 main ()
19237 {
19238 #ifndef strtol
19239   char *p = (char *) strtol;
19240 #endif
19241
19242   ;
19243   return 0;
19244 }
19245 _ACEOF
19246 rm -f conftest.$ac_objext
19247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19248   (eval $ac_compile) 2>&5
19249   ac_status=$?
19250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251   (exit $ac_status); } &&
19252          { ac_try='test -s conftest.$ac_objext'
19253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19254   (eval $ac_try) 2>&5
19255   ac_status=$?
19256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257   (exit $ac_status); }; }; then
19258   ac_cv_have_decl_strtol=yes
19259 else
19260   echo "$as_me: failed program was:" >&5
19261 sed 's/^/| /' conftest.$ac_ext >&5
19262
19263 ac_cv_have_decl_strtol=no
19264 fi
19265 rm -f conftest.$ac_objext conftest.$ac_ext
19266 fi
19267 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
19268 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
19269 if test $ac_cv_have_decl_strtol = yes; then
19270
19271 cat >>confdefs.h <<_ACEOF
19272 #define HAVE_DECL_STRTOL 1
19273 _ACEOF
19274
19275
19276 else
19277   cat >>confdefs.h <<_ACEOF
19278 #define HAVE_DECL_STRTOL 0
19279 _ACEOF
19280
19281
19282 fi
19283
19284
19285
19286
19287
19288
19289
19290   echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
19291 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6
19292 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
19293   echo $ECHO_N "(cached) $ECHO_C" >&6
19294 else
19295   cat >conftest.$ac_ext <<_ACEOF
19296 /* confdefs.h.  */
19297 _ACEOF
19298 cat confdefs.h >>conftest.$ac_ext
19299 cat >>conftest.$ac_ext <<_ACEOF
19300 /* end confdefs.h.  */
19301 #include <inttypes.h>
19302 #ifdef strtoimax
19303  inttypes_h_defines_strtoimax
19304 #endif
19305 _ACEOF
19306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19307   $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
19308   jm_cv_func_strtoimax_macro=yes
19309 else
19310   jm_cv_func_strtoimax_macro=no
19311 fi
19312 rm -f conftest*
19313
19314 fi
19315 echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
19316 echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6
19317
19318   if test "$jm_cv_func_strtoimax_macro" != yes; then
19319
19320 for ac_func in strtoimax
19321 do
19322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19323 echo "$as_me:$LINENO: checking for $ac_func" >&5
19324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19325 if eval "test \"\${$as_ac_var+set}\" = set"; then
19326   echo $ECHO_N "(cached) $ECHO_C" >&6
19327 else
19328   cat >conftest.$ac_ext <<_ACEOF
19329 /* confdefs.h.  */
19330 _ACEOF
19331 cat confdefs.h >>conftest.$ac_ext
19332 cat >>conftest.$ac_ext <<_ACEOF
19333 /* end confdefs.h.  */
19334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19336 #define $ac_func innocuous_$ac_func
19337
19338 /* System header to define __stub macros and hopefully few prototypes,
19339     which can conflict with char $ac_func (); below.
19340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19341     <limits.h> exists even on freestanding compilers.  */
19342
19343 #ifdef __STDC__
19344 # include <limits.h>
19345 #else
19346 # include <assert.h>
19347 #endif
19348
19349 #undef $ac_func
19350
19351 /* Override any gcc2 internal prototype to avoid an error.  */
19352 #ifdef __cplusplus
19353 extern "C"
19354 {
19355 #endif
19356 /* We use char because int might match the return type of a gcc2
19357    builtin and then its argument prototype would still apply.  */
19358 char $ac_func ();
19359 /* The GNU C library defines this for functions which it implements
19360     to always fail with ENOSYS.  Some functions are actually named
19361     something starting with __ and the normal name is an alias.  */
19362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19363 choke me
19364 #else
19365 char (*f) () = $ac_func;
19366 #endif
19367 #ifdef __cplusplus
19368 }
19369 #endif
19370
19371 int
19372 main ()
19373 {
19374 return f != $ac_func;
19375   ;
19376   return 0;
19377 }
19378 _ACEOF
19379 rm -f conftest.$ac_objext conftest$ac_exeext
19380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19381   (eval $ac_link) 2>&5
19382   ac_status=$?
19383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384   (exit $ac_status); } &&
19385          { ac_try='test -s conftest$ac_exeext'
19386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387   (eval $ac_try) 2>&5
19388   ac_status=$?
19389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390   (exit $ac_status); }; }; then
19391   eval "$as_ac_var=yes"
19392 else
19393   echo "$as_me: failed program was:" >&5
19394 sed 's/^/| /' conftest.$ac_ext >&5
19395
19396 eval "$as_ac_var=no"
19397 fi
19398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19399 fi
19400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19402 if test `eval echo '${'$as_ac_var'}'` = yes; then
19403   cat >>confdefs.h <<_ACEOF
19404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19405 _ACEOF
19406
19407 else
19408   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19409 fi
19410 done
19411
19412
19413     if test $ac_cv_func_strtoimax = no; then
19414
19415
19416
19417
19418   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
19419
19420     test $ac_cv_type_long_long = yes \
19421       && ac_type='long long' \
19422       || ac_type='long'
19423
19424 cat >>confdefs.h <<_ACEOF
19425 #define intmax_t $ac_type
19426 _ACEOF
19427
19428   else
19429
19430 cat >>confdefs.h <<\_ACEOF
19431 #define HAVE_INTMAX_T 1
19432 _ACEOF
19433
19434   fi
19435
19436
19437   :
19438
19439
19440
19441
19442
19443
19444   :
19445
19446
19447
19448
19449
19450   echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
19451 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6
19452 if test "${ac_cv_have_decl_strtoll+set}" = set; then
19453   echo $ECHO_N "(cached) $ECHO_C" >&6
19454 else
19455   cat >conftest.$ac_ext <<_ACEOF
19456 /* confdefs.h.  */
19457 _ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h.  */
19461 $ac_includes_default
19462 int
19463 main ()
19464 {
19465 #ifndef strtoll
19466   char *p = (char *) strtoll;
19467 #endif
19468
19469   ;
19470   return 0;
19471 }
19472 _ACEOF
19473 rm -f conftest.$ac_objext
19474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19475   (eval $ac_compile) 2>&5
19476   ac_status=$?
19477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478   (exit $ac_status); } &&
19479          { ac_try='test -s conftest.$ac_objext'
19480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481   (eval $ac_try) 2>&5
19482   ac_status=$?
19483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484   (exit $ac_status); }; }; then
19485   ac_cv_have_decl_strtoll=yes
19486 else
19487   echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.$ac_ext >&5
19489
19490 ac_cv_have_decl_strtoll=no
19491 fi
19492 rm -f conftest.$ac_objext conftest.$ac_ext
19493 fi
19494 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
19495 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6
19496 if test $ac_cv_have_decl_strtoll = yes; then
19497
19498 cat >>confdefs.h <<_ACEOF
19499 #define HAVE_DECL_STRTOLL 1
19500 _ACEOF
19501
19502
19503 else
19504   cat >>confdefs.h <<_ACEOF
19505 #define HAVE_DECL_STRTOLL 0
19506 _ACEOF
19507
19508
19509 fi
19510
19511
19512
19513
19514     fi
19515   fi
19516
19517
19518
19519   if test "$ac_cv_type_long_long" = yes; then
19520
19521 for ac_func in strtoll
19522 do
19523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19524 echo "$as_me:$LINENO: checking for $ac_func" >&5
19525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19526 if eval "test \"\${$as_ac_var+set}\" = set"; then
19527   echo $ECHO_N "(cached) $ECHO_C" >&6
19528 else
19529   cat >conftest.$ac_ext <<_ACEOF
19530 /* confdefs.h.  */
19531 _ACEOF
19532 cat confdefs.h >>conftest.$ac_ext
19533 cat >>conftest.$ac_ext <<_ACEOF
19534 /* end confdefs.h.  */
19535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19536    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19537 #define $ac_func innocuous_$ac_func
19538
19539 /* System header to define __stub macros and hopefully few prototypes,
19540     which can conflict with char $ac_func (); below.
19541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19542     <limits.h> exists even on freestanding compilers.  */
19543
19544 #ifdef __STDC__
19545 # include <limits.h>
19546 #else
19547 # include <assert.h>
19548 #endif
19549
19550 #undef $ac_func
19551
19552 /* Override any gcc2 internal prototype to avoid an error.  */
19553 #ifdef __cplusplus
19554 extern "C"
19555 {
19556 #endif
19557 /* We use char because int might match the return type of a gcc2
19558    builtin and then its argument prototype would still apply.  */
19559 char $ac_func ();
19560 /* The GNU C library defines this for functions which it implements
19561     to always fail with ENOSYS.  Some functions are actually named
19562     something starting with __ and the normal name is an alias.  */
19563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19564 choke me
19565 #else
19566 char (*f) () = $ac_func;
19567 #endif
19568 #ifdef __cplusplus
19569 }
19570 #endif
19571
19572 int
19573 main ()
19574 {
19575 return f != $ac_func;
19576   ;
19577   return 0;
19578 }
19579 _ACEOF
19580 rm -f conftest.$ac_objext conftest$ac_exeext
19581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19582   (eval $ac_link) 2>&5
19583   ac_status=$?
19584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585   (exit $ac_status); } &&
19586          { ac_try='test -s conftest$ac_exeext'
19587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588   (eval $ac_try) 2>&5
19589   ac_status=$?
19590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591   (exit $ac_status); }; }; then
19592   eval "$as_ac_var=yes"
19593 else
19594   echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19596
19597 eval "$as_ac_var=no"
19598 fi
19599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19600 fi
19601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19603 if test `eval echo '${'$as_ac_var'}'` = yes; then
19604   cat >>confdefs.h <<_ACEOF
19605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19606 _ACEOF
19607
19608 else
19609   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19610 fi
19611 done
19612
19613
19614     if test $ac_cv_func_strtoll = no; then
19615
19616   :
19617
19618     fi
19619   fi
19620
19621
19622
19623 for ac_func in strtol
19624 do
19625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19626 echo "$as_me:$LINENO: checking for $ac_func" >&5
19627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19628 if eval "test \"\${$as_ac_var+set}\" = set"; then
19629   echo $ECHO_N "(cached) $ECHO_C" >&6
19630 else
19631   cat >conftest.$ac_ext <<_ACEOF
19632 /* confdefs.h.  */
19633 _ACEOF
19634 cat confdefs.h >>conftest.$ac_ext
19635 cat >>conftest.$ac_ext <<_ACEOF
19636 /* end confdefs.h.  */
19637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19638    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19639 #define $ac_func innocuous_$ac_func
19640
19641 /* System header to define __stub macros and hopefully few prototypes,
19642     which can conflict with char $ac_func (); below.
19643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19644     <limits.h> exists even on freestanding compilers.  */
19645
19646 #ifdef __STDC__
19647 # include <limits.h>
19648 #else
19649 # include <assert.h>
19650 #endif
19651
19652 #undef $ac_func
19653
19654 /* Override any gcc2 internal prototype to avoid an error.  */
19655 #ifdef __cplusplus
19656 extern "C"
19657 {
19658 #endif
19659 /* We use char because int might match the return type of a gcc2
19660    builtin and then its argument prototype would still apply.  */
19661 char $ac_func ();
19662 /* The GNU C library defines this for functions which it implements
19663     to always fail with ENOSYS.  Some functions are actually named
19664     something starting with __ and the normal name is an alias.  */
19665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19666 choke me
19667 #else
19668 char (*f) () = $ac_func;
19669 #endif
19670 #ifdef __cplusplus
19671 }
19672 #endif
19673
19674 int
19675 main ()
19676 {
19677 return f != $ac_func;
19678   ;
19679   return 0;
19680 }
19681 _ACEOF
19682 rm -f conftest.$ac_objext conftest$ac_exeext
19683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19684   (eval $ac_link) 2>&5
19685   ac_status=$?
19686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687   (exit $ac_status); } &&
19688          { ac_try='test -s conftest$ac_exeext'
19689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19690   (eval $ac_try) 2>&5
19691   ac_status=$?
19692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693   (exit $ac_status); }; }; then
19694   eval "$as_ac_var=yes"
19695 else
19696   echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19698
19699 eval "$as_ac_var=no"
19700 fi
19701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19702 fi
19703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19705 if test `eval echo '${'$as_ac_var'}'` = yes; then
19706   cat >>confdefs.h <<_ACEOF
19707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19708 _ACEOF
19709
19710 else
19711   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19712 fi
19713 done
19714
19715
19716   if test $ac_cv_func_strtol = no; then
19717
19718
19719
19720   :
19721
19722
19723
19724
19725
19726
19727   :
19728
19729
19730
19731
19732
19733
19734   fi
19735
19736
19737
19738   if test "$ac_cv_type_unsigned_long_long" = yes; then
19739
19740 for ac_func in strtoull
19741 do
19742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19743 echo "$as_me:$LINENO: checking for $ac_func" >&5
19744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19745 if eval "test \"\${$as_ac_var+set}\" = set"; then
19746   echo $ECHO_N "(cached) $ECHO_C" >&6
19747 else
19748   cat >conftest.$ac_ext <<_ACEOF
19749 /* confdefs.h.  */
19750 _ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h.  */
19754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19756 #define $ac_func innocuous_$ac_func
19757
19758 /* System header to define __stub macros and hopefully few prototypes,
19759     which can conflict with char $ac_func (); below.
19760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19761     <limits.h> exists even on freestanding compilers.  */
19762
19763 #ifdef __STDC__
19764 # include <limits.h>
19765 #else
19766 # include <assert.h>
19767 #endif
19768
19769 #undef $ac_func
19770
19771 /* Override any gcc2 internal prototype to avoid an error.  */
19772 #ifdef __cplusplus
19773 extern "C"
19774 {
19775 #endif
19776 /* We use char because int might match the return type of a gcc2
19777    builtin and then its argument prototype would still apply.  */
19778 char $ac_func ();
19779 /* The GNU C library defines this for functions which it implements
19780     to always fail with ENOSYS.  Some functions are actually named
19781     something starting with __ and the normal name is an alias.  */
19782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19783 choke me
19784 #else
19785 char (*f) () = $ac_func;
19786 #endif
19787 #ifdef __cplusplus
19788 }
19789 #endif
19790
19791 int
19792 main ()
19793 {
19794 return f != $ac_func;
19795   ;
19796   return 0;
19797 }
19798 _ACEOF
19799 rm -f conftest.$ac_objext conftest$ac_exeext
19800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19801   (eval $ac_link) 2>&5
19802   ac_status=$?
19803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804   (exit $ac_status); } &&
19805          { ac_try='test -s conftest$ac_exeext'
19806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807   (eval $ac_try) 2>&5
19808   ac_status=$?
19809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810   (exit $ac_status); }; }; then
19811   eval "$as_ac_var=yes"
19812 else
19813   echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19815
19816 eval "$as_ac_var=no"
19817 fi
19818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19819 fi
19820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19821 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19822 if test `eval echo '${'$as_ac_var'}'` = yes; then
19823   cat >>confdefs.h <<_ACEOF
19824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19825 _ACEOF
19826
19827 else
19828   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19829 fi
19830 done
19831
19832
19833     if test $ac_cv_func_strtoull = no; then
19834
19835   :
19836
19837     fi
19838   fi
19839
19840
19841
19842 for ac_func in strtoul
19843 do
19844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19845 echo "$as_me:$LINENO: checking for $ac_func" >&5
19846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19847 if eval "test \"\${$as_ac_var+set}\" = set"; then
19848   echo $ECHO_N "(cached) $ECHO_C" >&6
19849 else
19850   cat >conftest.$ac_ext <<_ACEOF
19851 /* confdefs.h.  */
19852 _ACEOF
19853 cat confdefs.h >>conftest.$ac_ext
19854 cat >>conftest.$ac_ext <<_ACEOF
19855 /* end confdefs.h.  */
19856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19858 #define $ac_func innocuous_$ac_func
19859
19860 /* System header to define __stub macros and hopefully few prototypes,
19861     which can conflict with char $ac_func (); below.
19862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19863     <limits.h> exists even on freestanding compilers.  */
19864
19865 #ifdef __STDC__
19866 # include <limits.h>
19867 #else
19868 # include <assert.h>
19869 #endif
19870
19871 #undef $ac_func
19872
19873 /* Override any gcc2 internal prototype to avoid an error.  */
19874 #ifdef __cplusplus
19875 extern "C"
19876 {
19877 #endif
19878 /* We use char because int might match the return type of a gcc2
19879    builtin and then its argument prototype would still apply.  */
19880 char $ac_func ();
19881 /* The GNU C library defines this for functions which it implements
19882     to always fail with ENOSYS.  Some functions are actually named
19883     something starting with __ and the normal name is an alias.  */
19884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19885 choke me
19886 #else
19887 char (*f) () = $ac_func;
19888 #endif
19889 #ifdef __cplusplus
19890 }
19891 #endif
19892
19893 int
19894 main ()
19895 {
19896 return f != $ac_func;
19897   ;
19898   return 0;
19899 }
19900 _ACEOF
19901 rm -f conftest.$ac_objext conftest$ac_exeext
19902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19903   (eval $ac_link) 2>&5
19904   ac_status=$?
19905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906   (exit $ac_status); } &&
19907          { ac_try='test -s conftest$ac_exeext'
19908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19909   (eval $ac_try) 2>&5
19910   ac_status=$?
19911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912   (exit $ac_status); }; }; then
19913   eval "$as_ac_var=yes"
19914 else
19915   echo "$as_me: failed program was:" >&5
19916 sed 's/^/| /' conftest.$ac_ext >&5
19917
19918 eval "$as_ac_var=no"
19919 fi
19920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19921 fi
19922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19924 if test `eval echo '${'$as_ac_var'}'` = yes; then
19925   cat >>confdefs.h <<_ACEOF
19926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19927 _ACEOF
19928
19929 else
19930   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19931 fi
19932 done
19933
19934
19935   if test $ac_cv_func_strtoul = no; then
19936
19937
19938
19939
19940   :
19941
19942
19943
19944
19945
19946
19947   :
19948
19949
19950
19951
19952
19953
19954
19955   fi
19956
19957
19958       echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
19959 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
19960 if test "${ac_cv_have_decl_strtoul+set}" = set; then
19961   echo $ECHO_N "(cached) $ECHO_C" >&6
19962 else
19963   cat >conftest.$ac_ext <<_ACEOF
19964 /* confdefs.h.  */
19965 _ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h.  */
19969 $ac_includes_default
19970 int
19971 main ()
19972 {
19973 #ifndef strtoul
19974   char *p = (char *) strtoul;
19975 #endif
19976
19977   ;
19978   return 0;
19979 }
19980 _ACEOF
19981 rm -f conftest.$ac_objext
19982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19983   (eval $ac_compile) 2>&5
19984   ac_status=$?
19985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986   (exit $ac_status); } &&
19987          { ac_try='test -s conftest.$ac_objext'
19988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19989   (eval $ac_try) 2>&5
19990   ac_status=$?
19991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992   (exit $ac_status); }; }; then
19993   ac_cv_have_decl_strtoul=yes
19994 else
19995   echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19997
19998 ac_cv_have_decl_strtoul=no
19999 fi
20000 rm -f conftest.$ac_objext conftest.$ac_ext
20001 fi
20002 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
20003 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
20004 if test $ac_cv_have_decl_strtoul = yes; then
20005
20006 cat >>confdefs.h <<_ACEOF
20007 #define HAVE_DECL_STRTOUL 1
20008 _ACEOF
20009
20010
20011 else
20012   cat >>confdefs.h <<_ACEOF
20013 #define HAVE_DECL_STRTOUL 0
20014 _ACEOF
20015
20016
20017 fi
20018
20019
20020
20021
20022
20023
20024
20025   echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
20026 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6
20027 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
20028   echo $ECHO_N "(cached) $ECHO_C" >&6
20029 else
20030   cat >conftest.$ac_ext <<_ACEOF
20031 /* confdefs.h.  */
20032 _ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h.  */
20036 #include <inttypes.h>
20037 #ifdef strtoumax
20038  inttypes_h_defines_strtoumax
20039 #endif
20040 _ACEOF
20041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20042   $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
20043   jm_cv_func_strtoumax_macro=yes
20044 else
20045   jm_cv_func_strtoumax_macro=no
20046 fi
20047 rm -f conftest*
20048
20049 fi
20050 echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
20051 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6
20052
20053   if test "$jm_cv_func_strtoumax_macro" != yes; then
20054
20055 for ac_func in strtoumax
20056 do
20057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20058 echo "$as_me:$LINENO: checking for $ac_func" >&5
20059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20060 if eval "test \"\${$as_ac_var+set}\" = set"; then
20061   echo $ECHO_N "(cached) $ECHO_C" >&6
20062 else
20063   cat >conftest.$ac_ext <<_ACEOF
20064 /* confdefs.h.  */
20065 _ACEOF
20066 cat confdefs.h >>conftest.$ac_ext
20067 cat >>conftest.$ac_ext <<_ACEOF
20068 /* end confdefs.h.  */
20069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20070    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20071 #define $ac_func innocuous_$ac_func
20072
20073 /* System header to define __stub macros and hopefully few prototypes,
20074     which can conflict with char $ac_func (); below.
20075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20076     <limits.h> exists even on freestanding compilers.  */
20077
20078 #ifdef __STDC__
20079 # include <limits.h>
20080 #else
20081 # include <assert.h>
20082 #endif
20083
20084 #undef $ac_func
20085
20086 /* Override any gcc2 internal prototype to avoid an error.  */
20087 #ifdef __cplusplus
20088 extern "C"
20089 {
20090 #endif
20091 /* We use char because int might match the return type of a gcc2
20092    builtin and then its argument prototype would still apply.  */
20093 char $ac_func ();
20094 /* The GNU C library defines this for functions which it implements
20095     to always fail with ENOSYS.  Some functions are actually named
20096     something starting with __ and the normal name is an alias.  */
20097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20098 choke me
20099 #else
20100 char (*f) () = $ac_func;
20101 #endif
20102 #ifdef __cplusplus
20103 }
20104 #endif
20105
20106 int
20107 main ()
20108 {
20109 return f != $ac_func;
20110   ;
20111   return 0;
20112 }
20113 _ACEOF
20114 rm -f conftest.$ac_objext conftest$ac_exeext
20115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20116   (eval $ac_link) 2>&5
20117   ac_status=$?
20118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119   (exit $ac_status); } &&
20120          { ac_try='test -s conftest$ac_exeext'
20121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122   (eval $ac_try) 2>&5
20123   ac_status=$?
20124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125   (exit $ac_status); }; }; then
20126   eval "$as_ac_var=yes"
20127 else
20128   echo "$as_me: failed program was:" >&5
20129 sed 's/^/| /' conftest.$ac_ext >&5
20130
20131 eval "$as_ac_var=no"
20132 fi
20133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20134 fi
20135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20137 if test `eval echo '${'$as_ac_var'}'` = yes; then
20138   cat >>confdefs.h <<_ACEOF
20139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20140 _ACEOF
20141
20142 else
20143   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20144 fi
20145 done
20146
20147
20148     if test $ac_cv_func_strtoumax = no; then
20149
20150
20151
20152
20153   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
20154
20155     test $ac_cv_type_unsigned_long_long = yes \
20156       && ac_type='unsigned long long' \
20157       || ac_type='unsigned long'
20158
20159 cat >>confdefs.h <<_ACEOF
20160 #define uintmax_t $ac_type
20161 _ACEOF
20162
20163   else
20164
20165 cat >>confdefs.h <<\_ACEOF
20166 #define HAVE_UINTMAX_T 1
20167 _ACEOF
20168
20169   fi
20170
20171
20172   :
20173
20174
20175
20176
20177
20178
20179   :
20180
20181
20182
20183
20184
20185   echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
20186 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
20187 if test "${ac_cv_have_decl_strtoull+set}" = set; then
20188   echo $ECHO_N "(cached) $ECHO_C" >&6
20189 else
20190   cat >conftest.$ac_ext <<_ACEOF
20191 /* confdefs.h.  */
20192 _ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h.  */
20196 $ac_includes_default
20197 int
20198 main ()
20199 {
20200 #ifndef strtoull
20201   char *p = (char *) strtoull;
20202 #endif
20203
20204   ;
20205   return 0;
20206 }
20207 _ACEOF
20208 rm -f conftest.$ac_objext
20209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20210   (eval $ac_compile) 2>&5
20211   ac_status=$?
20212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213   (exit $ac_status); } &&
20214          { ac_try='test -s conftest.$ac_objext'
20215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20216   (eval $ac_try) 2>&5
20217   ac_status=$?
20218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219   (exit $ac_status); }; }; then
20220   ac_cv_have_decl_strtoull=yes
20221 else
20222   echo "$as_me: failed program was:" >&5
20223 sed 's/^/| /' conftest.$ac_ext >&5
20224
20225 ac_cv_have_decl_strtoull=no
20226 fi
20227 rm -f conftest.$ac_objext conftest.$ac_ext
20228 fi
20229 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
20230 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
20231 if test $ac_cv_have_decl_strtoull = yes; then
20232
20233 cat >>confdefs.h <<_ACEOF
20234 #define HAVE_DECL_STRTOULL 1
20235 _ACEOF
20236
20237
20238 else
20239   cat >>confdefs.h <<_ACEOF
20240 #define HAVE_DECL_STRTOULL 0
20241 _ACEOF
20242
20243
20244 fi
20245
20246
20247
20248
20249     fi
20250   fi
20251
20252
20253
20254
20255
20256 for ac_func in strverscmp
20257 do
20258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20259 echo "$as_me:$LINENO: checking for $ac_func" >&5
20260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20261 if eval "test \"\${$as_ac_var+set}\" = set"; then
20262   echo $ECHO_N "(cached) $ECHO_C" >&6
20263 else
20264   cat >conftest.$ac_ext <<_ACEOF
20265 /* confdefs.h.  */
20266 _ACEOF
20267 cat confdefs.h >>conftest.$ac_ext
20268 cat >>conftest.$ac_ext <<_ACEOF
20269 /* end confdefs.h.  */
20270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20271    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20272 #define $ac_func innocuous_$ac_func
20273
20274 /* System header to define __stub macros and hopefully few prototypes,
20275     which can conflict with char $ac_func (); below.
20276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20277     <limits.h> exists even on freestanding compilers.  */
20278
20279 #ifdef __STDC__
20280 # include <limits.h>
20281 #else
20282 # include <assert.h>
20283 #endif
20284
20285 #undef $ac_func
20286
20287 /* Override any gcc2 internal prototype to avoid an error.  */
20288 #ifdef __cplusplus
20289 extern "C"
20290 {
20291 #endif
20292 /* We use char because int might match the return type of a gcc2
20293    builtin and then its argument prototype would still apply.  */
20294 char $ac_func ();
20295 /* The GNU C library defines this for functions which it implements
20296     to always fail with ENOSYS.  Some functions are actually named
20297     something starting with __ and the normal name is an alias.  */
20298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20299 choke me
20300 #else
20301 char (*f) () = $ac_func;
20302 #endif
20303 #ifdef __cplusplus
20304 }
20305 #endif
20306
20307 int
20308 main ()
20309 {
20310 return f != $ac_func;
20311   ;
20312   return 0;
20313 }
20314 _ACEOF
20315 rm -f conftest.$ac_objext conftest$ac_exeext
20316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20317   (eval $ac_link) 2>&5
20318   ac_status=$?
20319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320   (exit $ac_status); } &&
20321          { ac_try='test -s conftest$ac_exeext'
20322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20323   (eval $ac_try) 2>&5
20324   ac_status=$?
20325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326   (exit $ac_status); }; }; then
20327   eval "$as_ac_var=yes"
20328 else
20329   echo "$as_me: failed program was:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20331
20332 eval "$as_ac_var=no"
20333 fi
20334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20335 fi
20336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20338 if test `eval echo '${'$as_ac_var'}'` = yes; then
20339   cat >>confdefs.h <<_ACEOF
20340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20341 _ACEOF
20342
20343 else
20344   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20345 fi
20346 done
20347
20348
20349   if test $ac_cv_func_strverscmp = no; then
20350
20351   :
20352
20353   fi
20354
20355
20356   echo "$as_me:$LINENO: checking for signed" >&5
20357 echo $ECHO_N "checking for signed... $ECHO_C" >&6
20358 if test "${bh_cv_c_signed+set}" = set; then
20359   echo $ECHO_N "(cached) $ECHO_C" >&6
20360 else
20361
20362 cat >conftest.$ac_ext <<_ACEOF
20363 /* confdefs.h.  */
20364 _ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h.  */
20368
20369 int
20370 main ()
20371 {
20372 signed char x;
20373   ;
20374   return 0;
20375 }
20376 _ACEOF
20377 rm -f conftest.$ac_objext
20378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20379   (eval $ac_compile) 2>&5
20380   ac_status=$?
20381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382   (exit $ac_status); } &&
20383          { ac_try='test -s conftest.$ac_objext'
20384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385   (eval $ac_try) 2>&5
20386   ac_status=$?
20387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388   (exit $ac_status); }; }; then
20389   bh_cv_c_signed=yes
20390 else
20391   echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20393
20394 bh_cv_c_signed=no
20395 fi
20396 rm -f conftest.$ac_objext conftest.$ac_ext
20397 fi
20398 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
20399 echo "${ECHO_T}$bh_cv_c_signed" >&6
20400   if test $bh_cv_c_signed = no; then
20401
20402 cat >>confdefs.h <<\_ACEOF
20403 #define signed
20404 _ACEOF
20405
20406   fi
20407
20408
20409   echo "$as_me:$LINENO: checking for long double" >&5
20410 echo $ECHO_N "checking for long double... $ECHO_C" >&6
20411 if test "${gt_cv_c_long_double+set}" = set; then
20412   echo $ECHO_N "(cached) $ECHO_C" >&6
20413 else
20414   if test "$GCC" = yes; then
20415        gt_cv_c_long_double=yes
20416      else
20417
20418 cat >conftest.$ac_ext <<_ACEOF
20419 /* confdefs.h.  */
20420 _ACEOF
20421 cat confdefs.h >>conftest.$ac_ext
20422 cat >>conftest.$ac_ext <<_ACEOF
20423 /* end confdefs.h.  */
20424
20425          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
20426          long double foo = 0.0;
20427          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
20428          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
20429
20430 int
20431 main ()
20432 {
20433
20434   ;
20435   return 0;
20436 }
20437 _ACEOF
20438 rm -f conftest.$ac_objext
20439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20440   (eval $ac_compile) 2>&5
20441   ac_status=$?
20442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443   (exit $ac_status); } &&
20444          { ac_try='test -s conftest.$ac_objext'
20445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446   (eval $ac_try) 2>&5
20447   ac_status=$?
20448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449   (exit $ac_status); }; }; then
20450   gt_cv_c_long_double=yes
20451 else
20452   echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20454
20455 gt_cv_c_long_double=no
20456 fi
20457 rm -f conftest.$ac_objext conftest.$ac_ext
20458      fi
20459 fi
20460 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
20461 echo "${ECHO_T}$gt_cv_c_long_double" >&6
20462   if test $gt_cv_c_long_double = yes; then
20463
20464 cat >>confdefs.h <<\_ACEOF
20465 #define HAVE_LONG_DOUBLE 1
20466 _ACEOF
20467
20468   fi
20469
20470
20471   echo "$as_me:$LINENO: checking for wchar_t" >&5
20472 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20473 if test "${gt_cv_c_wchar_t+set}" = set; then
20474   echo $ECHO_N "(cached) $ECHO_C" >&6
20475 else
20476
20477 cat >conftest.$ac_ext <<_ACEOF
20478 /* confdefs.h.  */
20479 _ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h.  */
20483 #include <stddef.h>
20484        wchar_t foo = (wchar_t)'\0';
20485 int
20486 main ()
20487 {
20488
20489   ;
20490   return 0;
20491 }
20492 _ACEOF
20493 rm -f conftest.$ac_objext
20494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20495   (eval $ac_compile) 2>&5
20496   ac_status=$?
20497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498   (exit $ac_status); } &&
20499          { ac_try='test -s conftest.$ac_objext'
20500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20501   (eval $ac_try) 2>&5
20502   ac_status=$?
20503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504   (exit $ac_status); }; }; then
20505   gt_cv_c_wchar_t=yes
20506 else
20507   echo "$as_me: failed program was:" >&5
20508 sed 's/^/| /' conftest.$ac_ext >&5
20509
20510 gt_cv_c_wchar_t=no
20511 fi
20512 rm -f conftest.$ac_objext conftest.$ac_ext
20513 fi
20514 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
20515 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
20516   if test $gt_cv_c_wchar_t = yes; then
20517
20518 cat >>confdefs.h <<\_ACEOF
20519 #define HAVE_WCHAR_T 1
20520 _ACEOF
20521
20522   fi
20523
20524
20525   echo "$as_me:$LINENO: checking for wint_t" >&5
20526 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
20527 if test "${gt_cv_c_wint_t+set}" = set; then
20528   echo $ECHO_N "(cached) $ECHO_C" >&6
20529 else
20530
20531 cat >conftest.$ac_ext <<_ACEOF
20532 /* confdefs.h.  */
20533 _ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h.  */
20537 #include <wchar.h>
20538        wint_t foo = (wchar_t)'\0';
20539 int
20540 main ()
20541 {
20542
20543   ;
20544   return 0;
20545 }
20546 _ACEOF
20547 rm -f conftest.$ac_objext
20548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20549   (eval $ac_compile) 2>&5
20550   ac_status=$?
20551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552   (exit $ac_status); } &&
20553          { ac_try='test -s conftest.$ac_objext'
20554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20555   (eval $ac_try) 2>&5
20556   ac_status=$?
20557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558   (exit $ac_status); }; }; then
20559   gt_cv_c_wint_t=yes
20560 else
20561   echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20563
20564 gt_cv_c_wint_t=no
20565 fi
20566 rm -f conftest.$ac_objext conftest.$ac_ext
20567 fi
20568 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
20569 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
20570   if test $gt_cv_c_wint_t = yes; then
20571
20572 cat >>confdefs.h <<\_ACEOF
20573 #define HAVE_WINT_T 1
20574 _ACEOF
20575
20576   fi
20577
20578
20579
20580
20581   echo "$as_me:$LINENO: checking for intmax_t" >&5
20582 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
20583 if test "${gt_cv_c_intmax_t+set}" = set; then
20584   echo $ECHO_N "(cached) $ECHO_C" >&6
20585 else
20586
20587 cat >conftest.$ac_ext <<_ACEOF
20588 /* confdefs.h.  */
20589 _ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h.  */
20593
20594 #include <stddef.h>
20595 #include <stdlib.h>
20596 #if HAVE_STDINT_H_WITH_UINTMAX
20597 #include <stdint.h>
20598 #endif
20599 #if HAVE_INTTYPES_H_WITH_UINTMAX
20600 #include <inttypes.h>
20601 #endif
20602
20603 int
20604 main ()
20605 {
20606 intmax_t x = -1;
20607   ;
20608   return 0;
20609 }
20610 _ACEOF
20611 rm -f conftest.$ac_objext
20612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20613   (eval $ac_compile) 2>&5
20614   ac_status=$?
20615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616   (exit $ac_status); } &&
20617          { ac_try='test -s conftest.$ac_objext'
20618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619   (eval $ac_try) 2>&5
20620   ac_status=$?
20621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622   (exit $ac_status); }; }; then
20623   gt_cv_c_intmax_t=yes
20624 else
20625   echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20627
20628 gt_cv_c_intmax_t=no
20629 fi
20630 rm -f conftest.$ac_objext conftest.$ac_ext
20631 fi
20632 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
20633 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
20634   if test $gt_cv_c_intmax_t = yes; then
20635
20636 cat >>confdefs.h <<\_ACEOF
20637 #define HAVE_INTMAX_T 1
20638 _ACEOF
20639
20640   else
20641
20642     test $ac_cv_type_long_long = yes \
20643       && ac_type='long long' \
20644       || ac_type='long'
20645
20646 cat >>confdefs.h <<_ACEOF
20647 #define intmax_t $ac_type
20648 _ACEOF
20649
20650   fi
20651
20652
20653
20654 for ac_func in vasnprintf
20655 do
20656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20657 echo "$as_me:$LINENO: checking for $ac_func" >&5
20658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20659 if eval "test \"\${$as_ac_var+set}\" = set"; then
20660   echo $ECHO_N "(cached) $ECHO_C" >&6
20661 else
20662   cat >conftest.$ac_ext <<_ACEOF
20663 /* confdefs.h.  */
20664 _ACEOF
20665 cat confdefs.h >>conftest.$ac_ext
20666 cat >>conftest.$ac_ext <<_ACEOF
20667 /* end confdefs.h.  */
20668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20670 #define $ac_func innocuous_$ac_func
20671
20672 /* System header to define __stub macros and hopefully few prototypes,
20673     which can conflict with char $ac_func (); below.
20674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20675     <limits.h> exists even on freestanding compilers.  */
20676
20677 #ifdef __STDC__
20678 # include <limits.h>
20679 #else
20680 # include <assert.h>
20681 #endif
20682
20683 #undef $ac_func
20684
20685 /* Override any gcc2 internal prototype to avoid an error.  */
20686 #ifdef __cplusplus
20687 extern "C"
20688 {
20689 #endif
20690 /* We use char because int might match the return type of a gcc2
20691    builtin and then its argument prototype would still apply.  */
20692 char $ac_func ();
20693 /* The GNU C library defines this for functions which it implements
20694     to always fail with ENOSYS.  Some functions are actually named
20695     something starting with __ and the normal name is an alias.  */
20696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20697 choke me
20698 #else
20699 char (*f) () = $ac_func;
20700 #endif
20701 #ifdef __cplusplus
20702 }
20703 #endif
20704
20705 int
20706 main ()
20707 {
20708 return f != $ac_func;
20709   ;
20710   return 0;
20711 }
20712 _ACEOF
20713 rm -f conftest.$ac_objext conftest$ac_exeext
20714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20715   (eval $ac_link) 2>&5
20716   ac_status=$?
20717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718   (exit $ac_status); } &&
20719          { ac_try='test -s conftest$ac_exeext'
20720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721   (eval $ac_try) 2>&5
20722   ac_status=$?
20723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724   (exit $ac_status); }; }; then
20725   eval "$as_ac_var=yes"
20726 else
20727   echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20729
20730 eval "$as_ac_var=no"
20731 fi
20732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20733 fi
20734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20736 if test `eval echo '${'$as_ac_var'}'` = yes; then
20737   cat >>confdefs.h <<_ACEOF
20738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20739 _ACEOF
20740
20741 else
20742   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20743 fi
20744 done
20745
20746
20747   if test $ac_cv_func_vasnprintf = no; then
20748     LIBOBJS="$LIBOBJS printf-args.$ac_objext"
20749     LIBOBJS="$LIBOBJS printf-parse.$ac_objext"
20750     LIBOBJS="$LIBOBJS asnprintf.$ac_objext"
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
20765 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
20766 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
20767   echo $ECHO_N "(cached) $ECHO_C" >&6
20768 else
20769   cat >conftest.$ac_ext <<_ACEOF
20770 /* confdefs.h.  */
20771 _ACEOF
20772 cat confdefs.h >>conftest.$ac_ext
20773 cat >>conftest.$ac_ext <<_ACEOF
20774 /* end confdefs.h.  */
20775 $ac_includes_default
20776 int
20777 main ()
20778 {
20779 if ((ptrdiff_t *) 0)
20780   return 0;
20781 if (sizeof (ptrdiff_t))
20782   return 0;
20783   ;
20784   return 0;
20785 }
20786 _ACEOF
20787 rm -f conftest.$ac_objext
20788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20789   (eval $ac_compile) 2>&5
20790   ac_status=$?
20791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792   (exit $ac_status); } &&
20793          { ac_try='test -s conftest.$ac_objext'
20794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20795   (eval $ac_try) 2>&5
20796   ac_status=$?
20797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798   (exit $ac_status); }; }; then
20799   ac_cv_type_ptrdiff_t=yes
20800 else
20801   echo "$as_me: failed program was:" >&5
20802 sed 's/^/| /' conftest.$ac_ext >&5
20803
20804 ac_cv_type_ptrdiff_t=no
20805 fi
20806 rm -f conftest.$ac_objext conftest.$ac_ext
20807 fi
20808 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
20809 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
20810 if test $ac_cv_type_ptrdiff_t = yes; then
20811
20812 cat >>confdefs.h <<_ACEOF
20813 #define HAVE_PTRDIFF_T 1
20814 _ACEOF
20815
20816
20817 fi
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829 for ac_func in snprintf wcslen
20830 do
20831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20832 echo "$as_me:$LINENO: checking for $ac_func" >&5
20833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20834 if eval "test \"\${$as_ac_var+set}\" = set"; then
20835   echo $ECHO_N "(cached) $ECHO_C" >&6
20836 else
20837   cat >conftest.$ac_ext <<_ACEOF
20838 /* confdefs.h.  */
20839 _ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h.  */
20843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20845 #define $ac_func innocuous_$ac_func
20846
20847 /* System header to define __stub macros and hopefully few prototypes,
20848     which can conflict with char $ac_func (); below.
20849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20850     <limits.h> exists even on freestanding compilers.  */
20851
20852 #ifdef __STDC__
20853 # include <limits.h>
20854 #else
20855 # include <assert.h>
20856 #endif
20857
20858 #undef $ac_func
20859
20860 /* Override any gcc2 internal prototype to avoid an error.  */
20861 #ifdef __cplusplus
20862 extern "C"
20863 {
20864 #endif
20865 /* We use char because int might match the return type of a gcc2
20866    builtin and then its argument prototype would still apply.  */
20867 char $ac_func ();
20868 /* The GNU C library defines this for functions which it implements
20869     to always fail with ENOSYS.  Some functions are actually named
20870     something starting with __ and the normal name is an alias.  */
20871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20872 choke me
20873 #else
20874 char (*f) () = $ac_func;
20875 #endif
20876 #ifdef __cplusplus
20877 }
20878 #endif
20879
20880 int
20881 main ()
20882 {
20883 return f != $ac_func;
20884   ;
20885   return 0;
20886 }
20887 _ACEOF
20888 rm -f conftest.$ac_objext conftest$ac_exeext
20889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20890   (eval $ac_link) 2>&5
20891   ac_status=$?
20892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893   (exit $ac_status); } &&
20894          { ac_try='test -s conftest$ac_exeext'
20895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896   (eval $ac_try) 2>&5
20897   ac_status=$?
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); }; }; then
20900   eval "$as_ac_var=yes"
20901 else
20902   echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20904
20905 eval "$as_ac_var=no"
20906 fi
20907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20908 fi
20909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20911 if test `eval echo '${'$as_ac_var'}'` = yes; then
20912   cat >>confdefs.h <<_ACEOF
20913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20914 _ACEOF
20915
20916 fi
20917 done
20918
20919
20920
20921
20922   fi
20923
20924
20925
20926 for ac_func in vasprintf
20927 do
20928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20929 echo "$as_me:$LINENO: checking for $ac_func" >&5
20930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20931 if eval "test \"\${$as_ac_var+set}\" = set"; then
20932   echo $ECHO_N "(cached) $ECHO_C" >&6
20933 else
20934   cat >conftest.$ac_ext <<_ACEOF
20935 /* confdefs.h.  */
20936 _ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h.  */
20940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20942 #define $ac_func innocuous_$ac_func
20943
20944 /* System header to define __stub macros and hopefully few prototypes,
20945     which can conflict with char $ac_func (); below.
20946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20947     <limits.h> exists even on freestanding compilers.  */
20948
20949 #ifdef __STDC__
20950 # include <limits.h>
20951 #else
20952 # include <assert.h>
20953 #endif
20954
20955 #undef $ac_func
20956
20957 /* Override any gcc2 internal prototype to avoid an error.  */
20958 #ifdef __cplusplus
20959 extern "C"
20960 {
20961 #endif
20962 /* We use char because int might match the return type of a gcc2
20963    builtin and then its argument prototype would still apply.  */
20964 char $ac_func ();
20965 /* The GNU C library defines this for functions which it implements
20966     to always fail with ENOSYS.  Some functions are actually named
20967     something starting with __ and the normal name is an alias.  */
20968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20969 choke me
20970 #else
20971 char (*f) () = $ac_func;
20972 #endif
20973 #ifdef __cplusplus
20974 }
20975 #endif
20976
20977 int
20978 main ()
20979 {
20980 return f != $ac_func;
20981   ;
20982   return 0;
20983 }
20984 _ACEOF
20985 rm -f conftest.$ac_objext conftest$ac_exeext
20986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20987   (eval $ac_link) 2>&5
20988   ac_status=$?
20989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990   (exit $ac_status); } &&
20991          { ac_try='test -s conftest$ac_exeext'
20992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20993   (eval $ac_try) 2>&5
20994   ac_status=$?
20995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996   (exit $ac_status); }; }; then
20997   eval "$as_ac_var=yes"
20998 else
20999   echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21001
21002 eval "$as_ac_var=no"
21003 fi
21004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21005 fi
21006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21007 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21008 if test `eval echo '${'$as_ac_var'}'` = yes; then
21009   cat >>confdefs.h <<_ACEOF
21010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21011 _ACEOF
21012
21013 else
21014   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21015 fi
21016 done
21017
21018
21019   if test $ac_cv_func_vasprintf = no; then
21020     LIBOBJS="$LIBOBJS asprintf.$ac_objext"
21021
21022
21023
21024
21025   fi
21026
21027
21028   # getdate.y works with bison only.
21029   : ${YACC='bison -y'}
21030
21031
21032 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21033 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21034 if test "${ac_cv_struct_tm+set}" = set; then
21035   echo $ECHO_N "(cached) $ECHO_C" >&6
21036 else
21037   cat >conftest.$ac_ext <<_ACEOF
21038 /* confdefs.h.  */
21039 _ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h.  */
21043 #include <sys/types.h>
21044 #include <time.h>
21045
21046 int
21047 main ()
21048 {
21049 struct tm *tp; tp->tm_sec;
21050   ;
21051   return 0;
21052 }
21053 _ACEOF
21054 rm -f conftest.$ac_objext
21055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21056   (eval $ac_compile) 2>&5
21057   ac_status=$?
21058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059   (exit $ac_status); } &&
21060          { ac_try='test -s conftest.$ac_objext'
21061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062   (eval $ac_try) 2>&5
21063   ac_status=$?
21064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065   (exit $ac_status); }; }; then
21066   ac_cv_struct_tm=time.h
21067 else
21068   echo "$as_me: failed program was:" >&5
21069 sed 's/^/| /' conftest.$ac_ext >&5
21070
21071 ac_cv_struct_tm=sys/time.h
21072 fi
21073 rm -f conftest.$ac_objext conftest.$ac_ext
21074 fi
21075 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21076 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21077 if test $ac_cv_struct_tm = sys/time.h; then
21078
21079 cat >>confdefs.h <<\_ACEOF
21080 #define TM_IN_SYS_TIME 1
21081 _ACEOF
21082
21083 fi
21084
21085
21086  echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
21087 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
21088 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
21089   echo $ECHO_N "(cached) $ECHO_C" >&6
21090 else
21091   cat >conftest.$ac_ext <<_ACEOF
21092 /* confdefs.h.  */
21093 _ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h.  */
21097 #include <time.h>
21098
21099 int
21100 main ()
21101 {
21102 static struct tm ac_aggr;
21103 if (ac_aggr.tm_gmtoff)
21104 return 0;
21105   ;
21106   return 0;
21107 }
21108 _ACEOF
21109 rm -f conftest.$ac_objext
21110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21111   (eval $ac_compile) 2>&5
21112   ac_status=$?
21113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114   (exit $ac_status); } &&
21115          { ac_try='test -s conftest.$ac_objext'
21116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117   (eval $ac_try) 2>&5
21118   ac_status=$?
21119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120   (exit $ac_status); }; }; then
21121   ac_cv_member_struct_tm_tm_gmtoff=yes
21122 else
21123   echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21125
21126 cat >conftest.$ac_ext <<_ACEOF
21127 /* confdefs.h.  */
21128 _ACEOF
21129 cat confdefs.h >>conftest.$ac_ext
21130 cat >>conftest.$ac_ext <<_ACEOF
21131 /* end confdefs.h.  */
21132 #include <time.h>
21133
21134 int
21135 main ()
21136 {
21137 static struct tm ac_aggr;
21138 if (sizeof ac_aggr.tm_gmtoff)
21139 return 0;
21140   ;
21141   return 0;
21142 }
21143 _ACEOF
21144 rm -f conftest.$ac_objext
21145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21146   (eval $ac_compile) 2>&5
21147   ac_status=$?
21148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149   (exit $ac_status); } &&
21150          { ac_try='test -s conftest.$ac_objext'
21151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21152   (eval $ac_try) 2>&5
21153   ac_status=$?
21154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155   (exit $ac_status); }; }; then
21156   ac_cv_member_struct_tm_tm_gmtoff=yes
21157 else
21158   echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21160
21161 ac_cv_member_struct_tm_tm_gmtoff=no
21162 fi
21163 rm -f conftest.$ac_objext conftest.$ac_ext
21164 fi
21165 rm -f conftest.$ac_objext conftest.$ac_ext
21166 fi
21167 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
21168 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
21169 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
21170
21171 cat >>confdefs.h <<\_ACEOF
21172 #define HAVE_TM_GMTOFF 1
21173 _ACEOF
21174
21175 fi
21176
21177
21178
21179     echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21180 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21181 if test "${ac_cv_header_time+set}" = set; then
21182   echo $ECHO_N "(cached) $ECHO_C" >&6
21183 else
21184   cat >conftest.$ac_ext <<_ACEOF
21185 /* confdefs.h.  */
21186 _ACEOF
21187 cat confdefs.h >>conftest.$ac_ext
21188 cat >>conftest.$ac_ext <<_ACEOF
21189 /* end confdefs.h.  */
21190 #include <sys/types.h>
21191 #include <sys/time.h>
21192 #include <time.h>
21193
21194 int
21195 main ()
21196 {
21197 if ((struct tm *) 0)
21198 return 0;
21199   ;
21200   return 0;
21201 }
21202 _ACEOF
21203 rm -f conftest.$ac_objext
21204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21205   (eval $ac_compile) 2>&5
21206   ac_status=$?
21207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208   (exit $ac_status); } &&
21209          { ac_try='test -s conftest.$ac_objext'
21210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211   (eval $ac_try) 2>&5
21212   ac_status=$?
21213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214   (exit $ac_status); }; }; then
21215   ac_cv_header_time=yes
21216 else
21217   echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21219
21220 ac_cv_header_time=no
21221 fi
21222 rm -f conftest.$ac_objext conftest.$ac_ext
21223 fi
21224 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21225 echo "${ECHO_T}$ac_cv_header_time" >&6
21226 if test $ac_cv_header_time = yes; then
21227
21228 cat >>confdefs.h <<\_ACEOF
21229 #define TIME_WITH_SYS_TIME 1
21230 _ACEOF
21231
21232 fi
21233
21234
21235   :
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246   :
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256   :
21257
21258
21259
21260
21261
21262   echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21263 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21264 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21265   echo $ECHO_N "(cached) $ECHO_C" >&6
21266 else
21267   cat >conftest.$ac_ext <<_ACEOF
21268 /* confdefs.h.  */
21269 _ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h.  */
21273 #include <sys/types.h>
21274 #include <$ac_cv_struct_tm>
21275
21276
21277 int
21278 main ()
21279 {
21280 static struct tm ac_aggr;
21281 if (ac_aggr.tm_zone)
21282 return 0;
21283   ;
21284   return 0;
21285 }
21286 _ACEOF
21287 rm -f conftest.$ac_objext
21288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21289   (eval $ac_compile) 2>&5
21290   ac_status=$?
21291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292   (exit $ac_status); } &&
21293          { ac_try='test -s conftest.$ac_objext'
21294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21295   (eval $ac_try) 2>&5
21296   ac_status=$?
21297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298   (exit $ac_status); }; }; then
21299   ac_cv_member_struct_tm_tm_zone=yes
21300 else
21301   echo "$as_me: failed program was:" >&5
21302 sed 's/^/| /' conftest.$ac_ext >&5
21303
21304 cat >conftest.$ac_ext <<_ACEOF
21305 /* confdefs.h.  */
21306 _ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h.  */
21310 #include <sys/types.h>
21311 #include <$ac_cv_struct_tm>
21312
21313
21314 int
21315 main ()
21316 {
21317 static struct tm ac_aggr;
21318 if (sizeof ac_aggr.tm_zone)
21319 return 0;
21320   ;
21321   return 0;
21322 }
21323 _ACEOF
21324 rm -f conftest.$ac_objext
21325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21326   (eval $ac_compile) 2>&5
21327   ac_status=$?
21328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329   (exit $ac_status); } &&
21330          { ac_try='test -s conftest.$ac_objext'
21331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21332   (eval $ac_try) 2>&5
21333   ac_status=$?
21334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335   (exit $ac_status); }; }; then
21336   ac_cv_member_struct_tm_tm_zone=yes
21337 else
21338   echo "$as_me: failed program was:" >&5
21339 sed 's/^/| /' conftest.$ac_ext >&5
21340
21341 ac_cv_member_struct_tm_tm_zone=no
21342 fi
21343 rm -f conftest.$ac_objext conftest.$ac_ext
21344 fi
21345 rm -f conftest.$ac_objext conftest.$ac_ext
21346 fi
21347 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21348 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21349 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21350
21351 cat >>confdefs.h <<_ACEOF
21352 #define HAVE_STRUCT_TM_TM_ZONE 1
21353 _ACEOF
21354
21355
21356 fi
21357
21358 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21359
21360 cat >>confdefs.h <<\_ACEOF
21361 #define HAVE_TM_ZONE 1
21362 _ACEOF
21363
21364 else
21365   echo "$as_me:$LINENO: checking for tzname" >&5
21366 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21367 if test "${ac_cv_var_tzname+set}" = set; then
21368   echo $ECHO_N "(cached) $ECHO_C" >&6
21369 else
21370   cat >conftest.$ac_ext <<_ACEOF
21371 /* confdefs.h.  */
21372 _ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h.  */
21376 #include <time.h>
21377 #ifndef tzname /* For SGI.  */
21378 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
21379 #endif
21380
21381 int
21382 main ()
21383 {
21384 atoi(*tzname);
21385   ;
21386   return 0;
21387 }
21388 _ACEOF
21389 rm -f conftest.$ac_objext conftest$ac_exeext
21390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21391   (eval $ac_link) 2>&5
21392   ac_status=$?
21393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394   (exit $ac_status); } &&
21395          { ac_try='test -s conftest$ac_exeext'
21396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21397   (eval $ac_try) 2>&5
21398   ac_status=$?
21399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400   (exit $ac_status); }; }; then
21401   ac_cv_var_tzname=yes
21402 else
21403   echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21405
21406 ac_cv_var_tzname=no
21407 fi
21408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21409 fi
21410 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21411 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21412   if test $ac_cv_var_tzname = yes; then
21413
21414 cat >>confdefs.h <<\_ACEOF
21415 #define HAVE_TZNAME 1
21416 _ACEOF
21417
21418   fi
21419 fi
21420
21421
21422
21423
21424   LIBOBJS="$LIBOBJS getndelim2.$ac_objext"
21425
21426
21427
21428
21429
21430
21431
21432   :
21433
21434
21435
21436
21437
21438
21439
21440
21441   :
21442
21443
21444
21445
21446
21447
21448 for ac_header in OS.h
21449 do
21450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21452   echo "$as_me:$LINENO: checking for $ac_header" >&5
21453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21455   echo $ECHO_N "(cached) $ECHO_C" >&6
21456 fi
21457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21459 else
21460   # Is the header compilable?
21461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21463 cat >conftest.$ac_ext <<_ACEOF
21464 /* confdefs.h.  */
21465 _ACEOF
21466 cat confdefs.h >>conftest.$ac_ext
21467 cat >>conftest.$ac_ext <<_ACEOF
21468 /* end confdefs.h.  */
21469 $ac_includes_default
21470 #include <$ac_header>
21471 _ACEOF
21472 rm -f conftest.$ac_objext
21473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21474   (eval $ac_compile) 2>&5
21475   ac_status=$?
21476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477   (exit $ac_status); } &&
21478          { ac_try='test -s conftest.$ac_objext'
21479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21480   (eval $ac_try) 2>&5
21481   ac_status=$?
21482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483   (exit $ac_status); }; }; then
21484   ac_header_compiler=yes
21485 else
21486   echo "$as_me: failed program was:" >&5
21487 sed 's/^/| /' conftest.$ac_ext >&5
21488
21489 ac_header_compiler=no
21490 fi
21491 rm -f conftest.$ac_objext conftest.$ac_ext
21492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21493 echo "${ECHO_T}$ac_header_compiler" >&6
21494
21495 # Is the header present?
21496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21498 cat >conftest.$ac_ext <<_ACEOF
21499 /* confdefs.h.  */
21500 _ACEOF
21501 cat confdefs.h >>conftest.$ac_ext
21502 cat >>conftest.$ac_ext <<_ACEOF
21503 /* end confdefs.h.  */
21504 #include <$ac_header>
21505 _ACEOF
21506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21507   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21508   ac_status=$?
21509   grep -v '^ *+' conftest.er1 >conftest.err
21510   rm -f conftest.er1
21511   cat conftest.err >&5
21512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513   (exit $ac_status); } >/dev/null; then
21514   if test -s conftest.err; then
21515     ac_cpp_err=$ac_c_preproc_warn_flag
21516   else
21517     ac_cpp_err=
21518   fi
21519 else
21520   ac_cpp_err=yes
21521 fi
21522 if test -z "$ac_cpp_err"; then
21523   ac_header_preproc=yes
21524 else
21525   echo "$as_me: failed program was:" >&5
21526 sed 's/^/| /' conftest.$ac_ext >&5
21527
21528   ac_header_preproc=no
21529 fi
21530 rm -f conftest.err conftest.$ac_ext
21531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21532 echo "${ECHO_T}$ac_header_preproc" >&6
21533
21534 # So?  What about this header?
21535 case $ac_header_compiler:$ac_header_preproc in
21536   yes:no )
21537     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21539     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21541     ac_header_preproc=yes
21542     ;;
21543   no:yes )
21544     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21546     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21547 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21548     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21550     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21551 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21552     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21554     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21556     (
21557       cat <<\_ASBOX
21558 ## ------------------------------------ ##
21559 ## Report this to bug-coreutils@gnu.org ##
21560 ## ------------------------------------ ##
21561 _ASBOX
21562     ) |
21563       sed "s/^/$as_me: WARNING:     /" >&2
21564     ;;
21565 esac
21566 echo "$as_me:$LINENO: checking for $ac_header" >&5
21567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21569   echo $ECHO_N "(cached) $ECHO_C" >&6
21570 else
21571   eval "$as_ac_Header=\$ac_header_preproc"
21572 fi
21573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21575
21576 fi
21577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21578   cat >>confdefs.h <<_ACEOF
21579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21580 _ACEOF
21581
21582 fi
21583
21584 done
21585
21586
21587 for ac_func in getpagesize
21588 do
21589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21590 echo "$as_me:$LINENO: checking for $ac_func" >&5
21591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21592 if eval "test \"\${$as_ac_var+set}\" = set"; then
21593   echo $ECHO_N "(cached) $ECHO_C" >&6
21594 else
21595   cat >conftest.$ac_ext <<_ACEOF
21596 /* confdefs.h.  */
21597 _ACEOF
21598 cat confdefs.h >>conftest.$ac_ext
21599 cat >>conftest.$ac_ext <<_ACEOF
21600 /* end confdefs.h.  */
21601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21602    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21603 #define $ac_func innocuous_$ac_func
21604
21605 /* System header to define __stub macros and hopefully few prototypes,
21606     which can conflict with char $ac_func (); below.
21607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21608     <limits.h> exists even on freestanding compilers.  */
21609
21610 #ifdef __STDC__
21611 # include <limits.h>
21612 #else
21613 # include <assert.h>
21614 #endif
21615
21616 #undef $ac_func
21617
21618 /* Override any gcc2 internal prototype to avoid an error.  */
21619 #ifdef __cplusplus
21620 extern "C"
21621 {
21622 #endif
21623 /* We use char because int might match the return type of a gcc2
21624    builtin and then its argument prototype would still apply.  */
21625 char $ac_func ();
21626 /* The GNU C library defines this for functions which it implements
21627     to always fail with ENOSYS.  Some functions are actually named
21628     something starting with __ and the normal name is an alias.  */
21629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21630 choke me
21631 #else
21632 char (*f) () = $ac_func;
21633 #endif
21634 #ifdef __cplusplus
21635 }
21636 #endif
21637
21638 int
21639 main ()
21640 {
21641 return f != $ac_func;
21642   ;
21643   return 0;
21644 }
21645 _ACEOF
21646 rm -f conftest.$ac_objext conftest$ac_exeext
21647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21648   (eval $ac_link) 2>&5
21649   ac_status=$?
21650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651   (exit $ac_status); } &&
21652          { ac_try='test -s conftest$ac_exeext'
21653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654   (eval $ac_try) 2>&5
21655   ac_status=$?
21656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657   (exit $ac_status); }; }; then
21658   eval "$as_ac_var=yes"
21659 else
21660   echo "$as_me: failed program was:" >&5
21661 sed 's/^/| /' conftest.$ac_ext >&5
21662
21663 eval "$as_ac_var=no"
21664 fi
21665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21666 fi
21667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21669 if test `eval echo '${'$as_ac_var'}'` = yes; then
21670   cat >>confdefs.h <<_ACEOF
21671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21672 _ACEOF
21673
21674 fi
21675 done
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686   :
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699   :
21700
21701
21702
21703
21704
21705
21706
21707
21708
21709   :
21710
21711
21712
21713
21714
21715
21716   :
21717
21718
21719
21720
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737   :
21738
21739
21740
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750   :
21751
21752
21753
21754
21755
21756
21757   :
21758
21759
21760
21761
21762
21763
21764
21765
21766
21767
21768
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778
21779
21780
21781
21782
21783
21784
21785
21786
21787
21788
21789
21790   :
21791
21792
21793
21794
21795
21796
21797
21798
21799
21800   :
21801
21802
21803
21804
21805
21806
21807
21808
21809
21810
21811
21812
21813
21814 for ac_func in iswcntrl wcwidth
21815 do
21816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21817 echo "$as_me:$LINENO: checking for $ac_func" >&5
21818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21819 if eval "test \"\${$as_ac_var+set}\" = set"; then
21820   echo $ECHO_N "(cached) $ECHO_C" >&6
21821 else
21822   cat >conftest.$ac_ext <<_ACEOF
21823 /* confdefs.h.  */
21824 _ACEOF
21825 cat confdefs.h >>conftest.$ac_ext
21826 cat >>conftest.$ac_ext <<_ACEOF
21827 /* end confdefs.h.  */
21828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21830 #define $ac_func innocuous_$ac_func
21831
21832 /* System header to define __stub macros and hopefully few prototypes,
21833     which can conflict with char $ac_func (); below.
21834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21835     <limits.h> exists even on freestanding compilers.  */
21836
21837 #ifdef __STDC__
21838 # include <limits.h>
21839 #else
21840 # include <assert.h>
21841 #endif
21842
21843 #undef $ac_func
21844
21845 /* Override any gcc2 internal prototype to avoid an error.  */
21846 #ifdef __cplusplus
21847 extern "C"
21848 {
21849 #endif
21850 /* We use char because int might match the return type of a gcc2
21851    builtin and then its argument prototype would still apply.  */
21852 char $ac_func ();
21853 /* The GNU C library defines this for functions which it implements
21854     to always fail with ENOSYS.  Some functions are actually named
21855     something starting with __ and the normal name is an alias.  */
21856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21857 choke me
21858 #else
21859 char (*f) () = $ac_func;
21860 #endif
21861 #ifdef __cplusplus
21862 }
21863 #endif
21864
21865 int
21866 main ()
21867 {
21868 return f != $ac_func;
21869   ;
21870   return 0;
21871 }
21872 _ACEOF
21873 rm -f conftest.$ac_objext conftest$ac_exeext
21874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21875   (eval $ac_link) 2>&5
21876   ac_status=$?
21877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878   (exit $ac_status); } &&
21879          { ac_try='test -s conftest$ac_exeext'
21880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881   (eval $ac_try) 2>&5
21882   ac_status=$?
21883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884   (exit $ac_status); }; }; then
21885   eval "$as_ac_var=yes"
21886 else
21887   echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21889
21890 eval "$as_ac_var=no"
21891 fi
21892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21893 fi
21894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21896 if test `eval echo '${'$as_ac_var'}'` = yes; then
21897   cat >>confdefs.h <<_ACEOF
21898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21899 _ACEOF
21900
21901 fi
21902 done
21903
21904
21905   echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
21906 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
21907 if test "${jm_cv_func_mbrtowc+set}" = set; then
21908   echo $ECHO_N "(cached) $ECHO_C" >&6
21909 else
21910
21911 cat >conftest.$ac_ext <<_ACEOF
21912 /* confdefs.h.  */
21913 _ACEOF
21914 cat confdefs.h >>conftest.$ac_ext
21915 cat >>conftest.$ac_ext <<_ACEOF
21916 /* end confdefs.h.  */
21917 #include <wchar.h>
21918 int
21919 main ()
21920 {
21921 mbstate_t state; return ! (sizeof state && mbrtowc);
21922   ;
21923   return 0;
21924 }
21925 _ACEOF
21926 rm -f conftest.$ac_objext conftest$ac_exeext
21927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21928   (eval $ac_link) 2>&5
21929   ac_status=$?
21930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931   (exit $ac_status); } &&
21932          { ac_try='test -s conftest$ac_exeext'
21933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934   (eval $ac_try) 2>&5
21935   ac_status=$?
21936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937   (exit $ac_status); }; }; then
21938   jm_cv_func_mbrtowc=yes
21939 else
21940   echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21942
21943 jm_cv_func_mbrtowc=no
21944 fi
21945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21946 fi
21947 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
21948 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
21949   if test $jm_cv_func_mbrtowc = yes; then
21950
21951 cat >>confdefs.h <<\_ACEOF
21952 #define HAVE_MBRTOWC 1
21953 _ACEOF
21954
21955   fi
21956
21957
21958   echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
21959 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
21960 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
21961   echo $ECHO_N "(cached) $ECHO_C" >&6
21962 else
21963
21964 cat >conftest.$ac_ext <<_ACEOF
21965 /* confdefs.h.  */
21966 _ACEOF
21967 cat confdefs.h >>conftest.$ac_ext
21968 cat >>conftest.$ac_ext <<_ACEOF
21969 /* end confdefs.h.  */
21970
21971 /* AIX 3.2.5 declares wcwidth in <string.h>. */
21972 #if HAVE_STRING_H
21973 # include <string.h>
21974 #endif
21975 #if HAVE_WCHAR_H
21976 # include <wchar.h>
21977 #endif
21978
21979 int
21980 main ()
21981 {
21982
21983 #ifndef wcwidth
21984   char *p = (char *) wcwidth;
21985 #endif
21986
21987   ;
21988   return 0;
21989 }
21990 _ACEOF
21991 rm -f conftest.$ac_objext
21992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21993   (eval $ac_compile) 2>&5
21994   ac_status=$?
21995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996   (exit $ac_status); } &&
21997          { ac_try='test -s conftest.$ac_objext'
21998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21999   (eval $ac_try) 2>&5
22000   ac_status=$?
22001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002   (exit $ac_status); }; }; then
22003   ac_cv_have_decl_wcwidth=yes
22004 else
22005   echo "$as_me: failed program was:" >&5
22006 sed 's/^/| /' conftest.$ac_ext >&5
22007
22008 ac_cv_have_decl_wcwidth=no
22009 fi
22010 rm -f conftest.$ac_objext conftest.$ac_ext
22011 fi
22012 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
22013 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
22014   if test $ac_cv_have_decl_wcwidth = yes; then
22015     ac_val=1
22016   else
22017     ac_val=0
22018   fi
22019
22020 cat >>confdefs.h <<_ACEOF
22021 #define HAVE_DECL_WCWIDTH $ac_val
22022 _ACEOF
22023
22024
22025   echo "$as_me:$LINENO: checking for mbstate_t" >&5
22026 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22027 if test "${ac_cv_type_mbstate_t+set}" = set; then
22028   echo $ECHO_N "(cached) $ECHO_C" >&6
22029 else
22030   cat >conftest.$ac_ext <<_ACEOF
22031 /* confdefs.h.  */
22032 _ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h.  */
22036 $ac_includes_default
22037 #           include <wchar.h>
22038 int
22039 main ()
22040 {
22041 mbstate_t x; return sizeof x;
22042   ;
22043   return 0;
22044 }
22045 _ACEOF
22046 rm -f conftest.$ac_objext
22047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22048   (eval $ac_compile) 2>&5
22049   ac_status=$?
22050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051   (exit $ac_status); } &&
22052          { ac_try='test -s conftest.$ac_objext'
22053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054   (eval $ac_try) 2>&5
22055   ac_status=$?
22056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057   (exit $ac_status); }; }; then
22058   ac_cv_type_mbstate_t=yes
22059 else
22060   echo "$as_me: failed program was:" >&5
22061 sed 's/^/| /' conftest.$ac_ext >&5
22062
22063 ac_cv_type_mbstate_t=no
22064 fi
22065 rm -f conftest.$ac_objext conftest.$ac_ext
22066 fi
22067 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22068 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22069    if test $ac_cv_type_mbstate_t = yes; then
22070
22071 cat >>confdefs.h <<\_ACEOF
22072 #define HAVE_MBSTATE_T 1
22073 _ACEOF
22074
22075    else
22076
22077 cat >>confdefs.h <<\_ACEOF
22078 #define mbstate_t int
22079 _ACEOF
22080
22081    fi
22082
22083 echo "$as_me:$LINENO: checking for working memcmp" >&5
22084 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
22085 if test "${ac_cv_func_memcmp_working+set}" = set; then
22086   echo $ECHO_N "(cached) $ECHO_C" >&6
22087 else
22088   if test "$cross_compiling" = yes; then
22089   ac_cv_func_memcmp_working=no
22090 else
22091   cat >conftest.$ac_ext <<_ACEOF
22092 /* confdefs.h.  */
22093 _ACEOF
22094 cat confdefs.h >>conftest.$ac_ext
22095 cat >>conftest.$ac_ext <<_ACEOF
22096 /* end confdefs.h.  */
22097 $ac_includes_default
22098 int
22099 main ()
22100 {
22101
22102   /* Some versions of memcmp are not 8-bit clean.  */
22103   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22104   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22105     exit (1);
22106
22107   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22108      or more and with at least one buffer not starting on a 4-byte boundary.
22109      William Lewis provided this test program.   */
22110   {
22111     char foo[21];
22112     char bar[21];
22113     int i;
22114     for (i = 0; i < 4; i++)
22115       {
22116         char *a = foo + i;
22117         char *b = bar + i;
22118         strcpy (a, "--------01111111");
22119         strcpy (b, "--------10000000");
22120         if (memcmp (a, b, 16) >= 0)
22121           exit (1);
22122       }
22123     exit (0);
22124   }
22125
22126   ;
22127   return 0;
22128 }
22129 _ACEOF
22130 rm -f conftest$ac_exeext
22131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22132   (eval $ac_link) 2>&5
22133   ac_status=$?
22134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22137   (eval $ac_try) 2>&5
22138   ac_status=$?
22139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140   (exit $ac_status); }; }; then
22141   ac_cv_func_memcmp_working=yes
22142 else
22143   echo "$as_me: program exited with status $ac_status" >&5
22144 echo "$as_me: failed program was:" >&5
22145 sed 's/^/| /' conftest.$ac_ext >&5
22146
22147 ( exit $ac_status )
22148 ac_cv_func_memcmp_working=no
22149 fi
22150 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22151 fi
22152 fi
22153 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22154 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
22155 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22156
22157
22158
22159
22160   :
22161
22162
22163
22164
22165
22166   echo "$as_me:$LINENO: checking for working strcoll" >&5
22167 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
22168 if test "${ac_cv_func_strcoll_works+set}" = set; then
22169   echo $ECHO_N "(cached) $ECHO_C" >&6
22170 else
22171   if test "$cross_compiling" = yes; then
22172   ac_cv_func_strcoll_works=no
22173 else
22174   cat >conftest.$ac_ext <<_ACEOF
22175 /* confdefs.h.  */
22176 _ACEOF
22177 cat confdefs.h >>conftest.$ac_ext
22178 cat >>conftest.$ac_ext <<_ACEOF
22179 /* end confdefs.h.  */
22180 $ac_includes_default
22181 int
22182 main ()
22183 {
22184 exit (strcoll ("abc", "def") >= 0 ||
22185          strcoll ("ABC", "DEF") >= 0 ||
22186          strcoll ("123", "456") >= 0)
22187   ;
22188   return 0;
22189 }
22190 _ACEOF
22191 rm -f conftest$ac_exeext
22192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22193   (eval $ac_link) 2>&5
22194   ac_status=$?
22195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198   (eval $ac_try) 2>&5
22199   ac_status=$?
22200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201   (exit $ac_status); }; }; then
22202   ac_cv_func_strcoll_works=yes
22203 else
22204   echo "$as_me: program exited with status $ac_status" >&5
22205 echo "$as_me: failed program was:" >&5
22206 sed 's/^/| /' conftest.$ac_ext >&5
22207
22208 ( exit $ac_status )
22209 ac_cv_func_strcoll_works=no
22210 fi
22211 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22212 fi
22213 fi
22214 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
22215 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
22216 if test $ac_cv_func_strcoll_works = yes; then
22217
22218 cat >>confdefs.h <<\_ACEOF
22219 #define HAVE_STRCOLL 1
22220 _ACEOF
22221
22222 fi
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233 for ac_func in listmntent getmntinfo
22234 do
22235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22236 echo "$as_me:$LINENO: checking for $ac_func" >&5
22237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22238 if eval "test \"\${$as_ac_var+set}\" = set"; then
22239   echo $ECHO_N "(cached) $ECHO_C" >&6
22240 else
22241   cat >conftest.$ac_ext <<_ACEOF
22242 /* confdefs.h.  */
22243 _ACEOF
22244 cat confdefs.h >>conftest.$ac_ext
22245 cat >>conftest.$ac_ext <<_ACEOF
22246 /* end confdefs.h.  */
22247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22248    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22249 #define $ac_func innocuous_$ac_func
22250
22251 /* System header to define __stub macros and hopefully few prototypes,
22252     which can conflict with char $ac_func (); below.
22253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22254     <limits.h> exists even on freestanding compilers.  */
22255
22256 #ifdef __STDC__
22257 # include <limits.h>
22258 #else
22259 # include <assert.h>
22260 #endif
22261
22262 #undef $ac_func
22263
22264 /* Override any gcc2 internal prototype to avoid an error.  */
22265 #ifdef __cplusplus
22266 extern "C"
22267 {
22268 #endif
22269 /* We use char because int might match the return type of a gcc2
22270    builtin and then its argument prototype would still apply.  */
22271 char $ac_func ();
22272 /* The GNU C library defines this for functions which it implements
22273     to always fail with ENOSYS.  Some functions are actually named
22274     something starting with __ and the normal name is an alias.  */
22275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22276 choke me
22277 #else
22278 char (*f) () = $ac_func;
22279 #endif
22280 #ifdef __cplusplus
22281 }
22282 #endif
22283
22284 int
22285 main ()
22286 {
22287 return f != $ac_func;
22288   ;
22289   return 0;
22290 }
22291 _ACEOF
22292 rm -f conftest.$ac_objext conftest$ac_exeext
22293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22294   (eval $ac_link) 2>&5
22295   ac_status=$?
22296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297   (exit $ac_status); } &&
22298          { ac_try='test -s conftest$ac_exeext'
22299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22300   (eval $ac_try) 2>&5
22301   ac_status=$?
22302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303   (exit $ac_status); }; }; then
22304   eval "$as_ac_var=yes"
22305 else
22306   echo "$as_me: failed program was:" >&5
22307 sed 's/^/| /' conftest.$ac_ext >&5
22308
22309 eval "$as_ac_var=no"
22310 fi
22311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22312 fi
22313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22314 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22315 if test `eval echo '${'$as_ac_var'}'` = yes; then
22316   cat >>confdefs.h <<_ACEOF
22317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22318 _ACEOF
22319
22320 fi
22321 done
22322
22323
22324   :
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334 for ac_header in mntent.h sys/ucred.h sys/mount.h sys/fs_types.h
22335 do
22336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22338   echo "$as_me:$LINENO: checking for $ac_header" >&5
22339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22341   echo $ECHO_N "(cached) $ECHO_C" >&6
22342 fi
22343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22345 else
22346   # Is the header compilable?
22347 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22349 cat >conftest.$ac_ext <<_ACEOF
22350 /* confdefs.h.  */
22351 _ACEOF
22352 cat confdefs.h >>conftest.$ac_ext
22353 cat >>conftest.$ac_ext <<_ACEOF
22354 /* end confdefs.h.  */
22355 $ac_includes_default
22356 #include <$ac_header>
22357 _ACEOF
22358 rm -f conftest.$ac_objext
22359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22360   (eval $ac_compile) 2>&5
22361   ac_status=$?
22362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363   (exit $ac_status); } &&
22364          { ac_try='test -s conftest.$ac_objext'
22365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22366   (eval $ac_try) 2>&5
22367   ac_status=$?
22368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369   (exit $ac_status); }; }; then
22370   ac_header_compiler=yes
22371 else
22372   echo "$as_me: failed program was:" >&5
22373 sed 's/^/| /' conftest.$ac_ext >&5
22374
22375 ac_header_compiler=no
22376 fi
22377 rm -f conftest.$ac_objext conftest.$ac_ext
22378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22379 echo "${ECHO_T}$ac_header_compiler" >&6
22380
22381 # Is the header present?
22382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22384 cat >conftest.$ac_ext <<_ACEOF
22385 /* confdefs.h.  */
22386 _ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h.  */
22390 #include <$ac_header>
22391 _ACEOF
22392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22393   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22394   ac_status=$?
22395   grep -v '^ *+' conftest.er1 >conftest.err
22396   rm -f conftest.er1
22397   cat conftest.err >&5
22398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399   (exit $ac_status); } >/dev/null; then
22400   if test -s conftest.err; then
22401     ac_cpp_err=$ac_c_preproc_warn_flag
22402   else
22403     ac_cpp_err=
22404   fi
22405 else
22406   ac_cpp_err=yes
22407 fi
22408 if test -z "$ac_cpp_err"; then
22409   ac_header_preproc=yes
22410 else
22411   echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.$ac_ext >&5
22413
22414   ac_header_preproc=no
22415 fi
22416 rm -f conftest.err conftest.$ac_ext
22417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22418 echo "${ECHO_T}$ac_header_preproc" >&6
22419
22420 # So?  What about this header?
22421 case $ac_header_compiler:$ac_header_preproc in
22422   yes:no )
22423     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22425     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22427     ac_header_preproc=yes
22428     ;;
22429   no:yes )
22430     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22432     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22433 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22434     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22436     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22437 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22440     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22442     (
22443       cat <<\_ASBOX
22444 ## ------------------------------------ ##
22445 ## Report this to bug-coreutils@gnu.org ##
22446 ## ------------------------------------ ##
22447 _ASBOX
22448     ) |
22449       sed "s/^/$as_me: WARNING:     /" >&2
22450     ;;
22451 esac
22452 echo "$as_me:$LINENO: checking for $ac_header" >&5
22453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22455   echo $ECHO_N "(cached) $ECHO_C" >&6
22456 else
22457   eval "$as_ac_Header=\$ac_header_preproc"
22458 fi
22459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22461
22462 fi
22463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22464   cat >>confdefs.h <<_ACEOF
22465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22466 _ACEOF
22467
22468 fi
22469
22470 done
22471
22472     getfsstat_includes="\
22473 $ac_includes_default
22474 #if HAVE_SYS_PARAM_H
22475 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
22476 #endif
22477 #if HAVE_SYS_UCRED_H
22478 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
22479 #endif
22480 #if HAVE_SYS_MOUNT_H
22481 # include <sys/mount.h>
22482 #endif
22483 #if HAVE_SYS_FS_TYPES_H
22484 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
22485 #endif
22486 "
22487 echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
22488 echo $ECHO_N "checking for struct fsstat.f_fstypename... $ECHO_C" >&6
22489 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
22490   echo $ECHO_N "(cached) $ECHO_C" >&6
22491 else
22492   cat >conftest.$ac_ext <<_ACEOF
22493 /* confdefs.h.  */
22494 _ACEOF
22495 cat confdefs.h >>conftest.$ac_ext
22496 cat >>conftest.$ac_ext <<_ACEOF
22497 /* end confdefs.h.  */
22498 $getfsstat_includes
22499
22500 int
22501 main ()
22502 {
22503 static struct fsstat ac_aggr;
22504 if (ac_aggr.f_fstypename)
22505 return 0;
22506   ;
22507   return 0;
22508 }
22509 _ACEOF
22510 rm -f conftest.$ac_objext
22511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22512   (eval $ac_compile) 2>&5
22513   ac_status=$?
22514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515   (exit $ac_status); } &&
22516          { ac_try='test -s conftest.$ac_objext'
22517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22518   (eval $ac_try) 2>&5
22519   ac_status=$?
22520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521   (exit $ac_status); }; }; then
22522   ac_cv_member_struct_fsstat_f_fstypename=yes
22523 else
22524   echo "$as_me: failed program was:" >&5
22525 sed 's/^/| /' conftest.$ac_ext >&5
22526
22527 cat >conftest.$ac_ext <<_ACEOF
22528 /* confdefs.h.  */
22529 _ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h.  */
22533 $getfsstat_includes
22534
22535 int
22536 main ()
22537 {
22538 static struct fsstat ac_aggr;
22539 if (sizeof ac_aggr.f_fstypename)
22540 return 0;
22541   ;
22542   return 0;
22543 }
22544 _ACEOF
22545 rm -f conftest.$ac_objext
22546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22547   (eval $ac_compile) 2>&5
22548   ac_status=$?
22549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550   (exit $ac_status); } &&
22551          { ac_try='test -s conftest.$ac_objext'
22552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22553   (eval $ac_try) 2>&5
22554   ac_status=$?
22555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556   (exit $ac_status); }; }; then
22557   ac_cv_member_struct_fsstat_f_fstypename=yes
22558 else
22559   echo "$as_me: failed program was:" >&5
22560 sed 's/^/| /' conftest.$ac_ext >&5
22561
22562 ac_cv_member_struct_fsstat_f_fstypename=no
22563 fi
22564 rm -f conftest.$ac_objext conftest.$ac_ext
22565 fi
22566 rm -f conftest.$ac_objext conftest.$ac_ext
22567 fi
22568 echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
22569 echo "${ECHO_T}$ac_cv_member_struct_fsstat_f_fstypename" >&6
22570 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
22571
22572 cat >>confdefs.h <<_ACEOF
22573 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
22574 _ACEOF
22575
22576
22577 fi
22578
22579
22580 # Determine how to get the list of mounted filesystems.
22581 ac_list_mounted_fs=
22582
22583 # If the getmntent function is available but not in the standard library,
22584 # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
22585 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
22586 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
22587 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
22588 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
22589   echo $ECHO_N "(cached) $ECHO_C" >&6
22590 else
22591   ac_check_lib_save_LIBS=$LIBS
22592 LIBS="-lsun  $LIBS"
22593 cat >conftest.$ac_ext <<_ACEOF
22594 /* confdefs.h.  */
22595 _ACEOF
22596 cat confdefs.h >>conftest.$ac_ext
22597 cat >>conftest.$ac_ext <<_ACEOF
22598 /* end confdefs.h.  */
22599
22600 /* Override any gcc2 internal prototype to avoid an error.  */
22601 #ifdef __cplusplus
22602 extern "C"
22603 #endif
22604 /* We use char because int might match the return type of a gcc2
22605    builtin and then its argument prototype would still apply.  */
22606 char getmntent ();
22607 int
22608 main ()
22609 {
22610 getmntent ();
22611   ;
22612   return 0;
22613 }
22614 _ACEOF
22615 rm -f conftest.$ac_objext conftest$ac_exeext
22616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22617   (eval $ac_link) 2>&5
22618   ac_status=$?
22619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620   (exit $ac_status); } &&
22621          { ac_try='test -s conftest$ac_exeext'
22622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22623   (eval $ac_try) 2>&5
22624   ac_status=$?
22625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626   (exit $ac_status); }; }; then
22627   ac_cv_lib_sun_getmntent=yes
22628 else
22629   echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22631
22632 ac_cv_lib_sun_getmntent=no
22633 fi
22634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22635 LIBS=$ac_check_lib_save_LIBS
22636 fi
22637 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
22638 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
22639 if test $ac_cv_lib_sun_getmntent = yes; then
22640   LIBS="-lsun $LIBS"
22641 else
22642   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
22643 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
22644 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
22645   echo $ECHO_N "(cached) $ECHO_C" >&6
22646 else
22647   ac_check_lib_save_LIBS=$LIBS
22648 LIBS="-lseq  $LIBS"
22649 cat >conftest.$ac_ext <<_ACEOF
22650 /* confdefs.h.  */
22651 _ACEOF
22652 cat confdefs.h >>conftest.$ac_ext
22653 cat >>conftest.$ac_ext <<_ACEOF
22654 /* end confdefs.h.  */
22655
22656 /* Override any gcc2 internal prototype to avoid an error.  */
22657 #ifdef __cplusplus
22658 extern "C"
22659 #endif
22660 /* We use char because int might match the return type of a gcc2
22661    builtin and then its argument prototype would still apply.  */
22662 char getmntent ();
22663 int
22664 main ()
22665 {
22666 getmntent ();
22667   ;
22668   return 0;
22669 }
22670 _ACEOF
22671 rm -f conftest.$ac_objext conftest$ac_exeext
22672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22673   (eval $ac_link) 2>&5
22674   ac_status=$?
22675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676   (exit $ac_status); } &&
22677          { ac_try='test -s conftest$ac_exeext'
22678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22679   (eval $ac_try) 2>&5
22680   ac_status=$?
22681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682   (exit $ac_status); }; }; then
22683   ac_cv_lib_seq_getmntent=yes
22684 else
22685   echo "$as_me: failed program was:" >&5
22686 sed 's/^/| /' conftest.$ac_ext >&5
22687
22688 ac_cv_lib_seq_getmntent=no
22689 fi
22690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22691 LIBS=$ac_check_lib_save_LIBS
22692 fi
22693 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
22694 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
22695 if test $ac_cv_lib_seq_getmntent = yes; then
22696   LIBS="-lseq $LIBS"
22697 else
22698   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
22699 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
22700 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
22701   echo $ECHO_N "(cached) $ECHO_C" >&6
22702 else
22703   ac_check_lib_save_LIBS=$LIBS
22704 LIBS="-lgen  $LIBS"
22705 cat >conftest.$ac_ext <<_ACEOF
22706 /* confdefs.h.  */
22707 _ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h.  */
22711
22712 /* Override any gcc2 internal prototype to avoid an error.  */
22713 #ifdef __cplusplus
22714 extern "C"
22715 #endif
22716 /* We use char because int might match the return type of a gcc2
22717    builtin and then its argument prototype would still apply.  */
22718 char getmntent ();
22719 int
22720 main ()
22721 {
22722 getmntent ();
22723   ;
22724   return 0;
22725 }
22726 _ACEOF
22727 rm -f conftest.$ac_objext conftest$ac_exeext
22728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22729   (eval $ac_link) 2>&5
22730   ac_status=$?
22731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732   (exit $ac_status); } &&
22733          { ac_try='test -s conftest$ac_exeext'
22734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22735   (eval $ac_try) 2>&5
22736   ac_status=$?
22737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738   (exit $ac_status); }; }; then
22739   ac_cv_lib_gen_getmntent=yes
22740 else
22741   echo "$as_me: failed program was:" >&5
22742 sed 's/^/| /' conftest.$ac_ext >&5
22743
22744 ac_cv_lib_gen_getmntent=no
22745 fi
22746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22747 LIBS=$ac_check_lib_save_LIBS
22748 fi
22749 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
22750 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
22751 if test $ac_cv_lib_gen_getmntent = yes; then
22752   LIBS="-lgen $LIBS"
22753 fi
22754
22755 fi
22756
22757 fi
22758
22759
22760 for ac_func in getmntent
22761 do
22762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22763 echo "$as_me:$LINENO: checking for $ac_func" >&5
22764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22765 if eval "test \"\${$as_ac_var+set}\" = set"; then
22766   echo $ECHO_N "(cached) $ECHO_C" >&6
22767 else
22768   cat >conftest.$ac_ext <<_ACEOF
22769 /* confdefs.h.  */
22770 _ACEOF
22771 cat confdefs.h >>conftest.$ac_ext
22772 cat >>conftest.$ac_ext <<_ACEOF
22773 /* end confdefs.h.  */
22774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22775    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22776 #define $ac_func innocuous_$ac_func
22777
22778 /* System header to define __stub macros and hopefully few prototypes,
22779     which can conflict with char $ac_func (); below.
22780     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22781     <limits.h> exists even on freestanding compilers.  */
22782
22783 #ifdef __STDC__
22784 # include <limits.h>
22785 #else
22786 # include <assert.h>
22787 #endif
22788
22789 #undef $ac_func
22790
22791 /* Override any gcc2 internal prototype to avoid an error.  */
22792 #ifdef __cplusplus
22793 extern "C"
22794 {
22795 #endif
22796 /* We use char because int might match the return type of a gcc2
22797    builtin and then its argument prototype would still apply.  */
22798 char $ac_func ();
22799 /* The GNU C library defines this for functions which it implements
22800     to always fail with ENOSYS.  Some functions are actually named
22801     something starting with __ and the normal name is an alias.  */
22802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22803 choke me
22804 #else
22805 char (*f) () = $ac_func;
22806 #endif
22807 #ifdef __cplusplus
22808 }
22809 #endif
22810
22811 int
22812 main ()
22813 {
22814 return f != $ac_func;
22815   ;
22816   return 0;
22817 }
22818 _ACEOF
22819 rm -f conftest.$ac_objext conftest$ac_exeext
22820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22821   (eval $ac_link) 2>&5
22822   ac_status=$?
22823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824   (exit $ac_status); } &&
22825          { ac_try='test -s conftest$ac_exeext'
22826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22827   (eval $ac_try) 2>&5
22828   ac_status=$?
22829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830   (exit $ac_status); }; }; then
22831   eval "$as_ac_var=yes"
22832 else
22833   echo "$as_me: failed program was:" >&5
22834 sed 's/^/| /' conftest.$ac_ext >&5
22835
22836 eval "$as_ac_var=no"
22837 fi
22838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22839 fi
22840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22842 if test `eval echo '${'$as_ac_var'}'` = yes; then
22843   cat >>confdefs.h <<_ACEOF
22844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22845 _ACEOF
22846
22847 fi
22848 done
22849
22850
22851
22852 # This test must precede the ones for getmntent because Unicos-9 is
22853 # reported to have the getmntent function, but its support is incompatible
22854 # with other getmntent implementations.
22855
22856 # NOTE: Normally, I wouldn't use a check for system type as I've done for
22857 # `CRAY' below since that goes against the whole autoconf philosophy.  But
22858 # I think there is too great a chance that some non-Cray system has a
22859 # function named listmntent to risk the false positive.
22860
22861 if test -z "$ac_list_mounted_fs"; then
22862   # Cray UNICOS 9
22863   echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
22864 echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6
22865   if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
22866   echo $ECHO_N "(cached) $ECHO_C" >&6
22867 else
22868   fu_cv_sys_mounted_cray_listmntent=no
22869       cat >conftest.$ac_ext <<_ACEOF
22870 /* confdefs.h.  */
22871 _ACEOF
22872 cat confdefs.h >>conftest.$ac_ext
22873 cat >>conftest.$ac_ext <<_ACEOF
22874 /* end confdefs.h.  */
22875 #ifdef _CRAY
22876 yes
22877 #endif
22878
22879 _ACEOF
22880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22881   $EGREP "yes" >/dev/null 2>&1; then
22882   test $ac_cv_func_listmntent = yes \
22883             && fu_cv_sys_mounted_cray_listmntent=yes
22884
22885 fi
22886 rm -f conftest*
22887
22888
22889
22890 fi
22891
22892   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
22893 echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6
22894   if test $fu_cv_sys_mounted_cray_listmntent = yes; then
22895     ac_list_mounted_fs=found
22896
22897 cat >>confdefs.h <<\_ACEOF
22898 #define MOUNTED_LISTMNTENT 1
22899 _ACEOF
22900
22901   fi
22902 fi
22903
22904 if test -z "$ac_list_mounted_fs"; then
22905   # AIX.
22906   echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
22907 echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6
22908   if test "${fu_cv_sys_mounted_vmount+set}" = set; then
22909   echo $ECHO_N "(cached) $ECHO_C" >&6
22910 else
22911
22912 cat >conftest.$ac_ext <<_ACEOF
22913 /* confdefs.h.  */
22914 _ACEOF
22915 cat confdefs.h >>conftest.$ac_ext
22916 cat >>conftest.$ac_ext <<_ACEOF
22917 /* end confdefs.h.  */
22918 #include <fshelp.h>
22919 _ACEOF
22920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22921   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22922   ac_status=$?
22923   grep -v '^ *+' conftest.er1 >conftest.err
22924   rm -f conftest.er1
22925   cat conftest.err >&5
22926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927   (exit $ac_status); } >/dev/null; then
22928   if test -s conftest.err; then
22929     ac_cpp_err=$ac_c_preproc_warn_flag
22930   else
22931     ac_cpp_err=
22932   fi
22933 else
22934   ac_cpp_err=yes
22935 fi
22936 if test -z "$ac_cpp_err"; then
22937   fu_cv_sys_mounted_vmount=yes
22938 else
22939   echo "$as_me: failed program was:" >&5
22940 sed 's/^/| /' conftest.$ac_ext >&5
22941
22942   fu_cv_sys_mounted_vmount=no
22943 fi
22944 rm -f conftest.err conftest.$ac_ext
22945 fi
22946
22947   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
22948 echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6
22949   if test $fu_cv_sys_mounted_vmount = yes; then
22950     ac_list_mounted_fs=found
22951
22952 cat >>confdefs.h <<\_ACEOF
22953 #define MOUNTED_VMOUNT 1
22954 _ACEOF
22955
22956   fi
22957 fi
22958
22959 if test $ac_cv_func_getmntent = yes; then
22960
22961   # This system has the getmntent function.
22962   # Determine whether it's the one-argument variant or the two-argument one.
22963
22964   if test -z "$ac_list_mounted_fs"; then
22965     # 4.3BSD, SunOS, HP-UX, Dynix, Irix
22966     echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
22967 echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6
22968     if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
22969   echo $ECHO_N "(cached) $ECHO_C" >&6
22970 else
22971
22972 cat >conftest.$ac_ext <<_ACEOF
22973 /* confdefs.h.  */
22974 _ACEOF
22975 cat confdefs.h >>conftest.$ac_ext
22976 cat >>conftest.$ac_ext <<_ACEOF
22977 /* end confdefs.h.  */
22978
22979 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
22980 #include <stdio.h>
22981
22982 #include <mntent.h>
22983 #if !defined MOUNTED
22984 # if defined _PATH_MOUNTED      /* GNU libc  */
22985 #  define MOUNTED _PATH_MOUNTED
22986 # endif
22987 # if defined MNT_MNTTAB /* HP-UX.  */
22988 #  define MOUNTED MNT_MNTTAB
22989 # endif
22990 # if defined MNTTABNAME /* Dynix.  */
22991 #  define MOUNTED MNTTABNAME
22992 # endif
22993 #endif
22994
22995 int
22996 main ()
22997 {
22998  struct mntent *mnt = 0; char *table = MOUNTED;
22999   ;
23000   return 0;
23001 }
23002 _ACEOF
23003 rm -f conftest.$ac_objext
23004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23005   (eval $ac_compile) 2>&5
23006   ac_status=$?
23007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008   (exit $ac_status); } &&
23009          { ac_try='test -s conftest.$ac_objext'
23010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23011   (eval $ac_try) 2>&5
23012   ac_status=$?
23013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014   (exit $ac_status); }; }; then
23015   fu_cv_sys_mounted_getmntent1=yes
23016 else
23017   echo "$as_me: failed program was:" >&5
23018 sed 's/^/| /' conftest.$ac_ext >&5
23019
23020 fu_cv_sys_mounted_getmntent1=no
23021 fi
23022 rm -f conftest.$ac_objext conftest.$ac_ext
23023 fi
23024
23025     echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
23026 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6
23027     if test $fu_cv_sys_mounted_getmntent1 = yes; then
23028       ac_list_mounted_fs=found
23029
23030 cat >>confdefs.h <<\_ACEOF
23031 #define MOUNTED_GETMNTENT1 1
23032 _ACEOF
23033
23034     fi
23035   fi
23036
23037   if test -z "$ac_list_mounted_fs"; then
23038     # SVR4
23039     echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
23040 echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6
23041     if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
23042   echo $ECHO_N "(cached) $ECHO_C" >&6
23043 else
23044   cat >conftest.$ac_ext <<_ACEOF
23045 /* confdefs.h.  */
23046 _ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h.  */
23050 #include <sys/mnttab.h>
23051
23052 _ACEOF
23053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23054   $EGREP "getmntent" >/dev/null 2>&1; then
23055   fu_cv_sys_mounted_getmntent2=yes
23056 else
23057   fu_cv_sys_mounted_getmntent2=no
23058 fi
23059 rm -f conftest*
23060
23061 fi
23062
23063     echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
23064 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6
23065     if test $fu_cv_sys_mounted_getmntent2 = yes; then
23066       ac_list_mounted_fs=found
23067
23068 cat >>confdefs.h <<\_ACEOF
23069 #define MOUNTED_GETMNTENT2 1
23070 _ACEOF
23071
23072     fi
23073   fi
23074
23075 fi
23076
23077 if test -z "$ac_list_mounted_fs"; then
23078   # DEC Alpha running OSF/1, and Apple Darwin 1.3.
23079   # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
23080
23081   echo "$as_me:$LINENO: checking for getfsstat function" >&5
23082 echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6
23083   if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
23084   echo $ECHO_N "(cached) $ECHO_C" >&6
23085 else
23086
23087 cat >conftest.$ac_ext <<_ACEOF
23088 /* confdefs.h.  */
23089 _ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h.  */
23093
23094 #include <sys/types.h>
23095 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
23096 # define FS_TYPE(Ent) ((Ent).f_fstypename)
23097 #else
23098 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
23099 #endif
23100 $getfsstat_includes
23101
23102 int
23103 main ()
23104 {
23105 struct statfs *stats;
23106    int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
23107    char *t = FS_TYPE (*stats);
23108   ;
23109   return 0;
23110 }
23111 _ACEOF
23112 rm -f conftest.$ac_objext conftest$ac_exeext
23113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23114   (eval $ac_link) 2>&5
23115   ac_status=$?
23116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117   (exit $ac_status); } &&
23118          { ac_try='test -s conftest$ac_exeext'
23119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23120   (eval $ac_try) 2>&5
23121   ac_status=$?
23122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123   (exit $ac_status); }; }; then
23124   fu_cv_sys_mounted_getfsstat=yes
23125 else
23126   echo "$as_me: failed program was:" >&5
23127 sed 's/^/| /' conftest.$ac_ext >&5
23128
23129 fu_cv_sys_mounted_getfsstat=no
23130 fi
23131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23132 fi
23133
23134   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
23135 echo "${ECHO_T}$fu_cv_sys_mounted_getfsstat" >&6
23136   if test $fu_cv_sys_mounted_getfsstat = yes; then
23137     ac_list_mounted_fs=found
23138
23139 cat >>confdefs.h <<\_ACEOF
23140 #define MOUNTED_GETFSSTAT 1
23141 _ACEOF
23142
23143   fi
23144 fi
23145
23146 if test -z "$ac_list_mounted_fs"; then
23147   # SVR3
23148   echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
23149 echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6
23150   if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
23151   echo $ECHO_N "(cached) $ECHO_C" >&6
23152 else
23153
23154 cat >conftest.$ac_ext <<_ACEOF
23155 /* confdefs.h.  */
23156 _ACEOF
23157 cat confdefs.h >>conftest.$ac_ext
23158 cat >>conftest.$ac_ext <<_ACEOF
23159 /* end confdefs.h.  */
23160
23161 #include <sys/statfs.h>
23162 #include <sys/fstyp.h>
23163 #include <mnttab.h>
23164 _ACEOF
23165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23166   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23167   ac_status=$?
23168   grep -v '^ *+' conftest.er1 >conftest.err
23169   rm -f conftest.er1
23170   cat conftest.err >&5
23171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172   (exit $ac_status); } >/dev/null; then
23173   if test -s conftest.err; then
23174     ac_cpp_err=$ac_c_preproc_warn_flag
23175   else
23176     ac_cpp_err=
23177   fi
23178 else
23179   ac_cpp_err=yes
23180 fi
23181 if test -z "$ac_cpp_err"; then
23182   fu_cv_sys_mounted_fread_fstyp=yes
23183 else
23184   echo "$as_me: failed program was:" >&5
23185 sed 's/^/| /' conftest.$ac_ext >&5
23186
23187   fu_cv_sys_mounted_fread_fstyp=no
23188 fi
23189 rm -f conftest.err conftest.$ac_ext
23190 fi
23191
23192   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
23193 echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6
23194   if test $fu_cv_sys_mounted_fread_fstyp = yes; then
23195     ac_list_mounted_fs=found
23196
23197 cat >>confdefs.h <<\_ACEOF
23198 #define MOUNTED_FREAD_FSTYP 1
23199 _ACEOF
23200
23201   fi
23202 fi
23203
23204 if test -z "$ac_list_mounted_fs"; then
23205   # 4.4BSD and DEC OSF/1.
23206   echo "$as_me:$LINENO: checking for getmntinfo function" >&5
23207 echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6
23208   if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
23209   echo $ECHO_N "(cached) $ECHO_C" >&6
23210 else
23211
23212       test "$ac_cv_func_getmntinfo" = yes \
23213           && fu_cv_sys_mounted_getmntinfo=yes \
23214           || fu_cv_sys_mounted_getmntinfo=no
23215
23216 fi
23217
23218   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
23219 echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6
23220   if test $fu_cv_sys_mounted_getmntinfo = yes; then
23221     ac_list_mounted_fs=found
23222
23223 cat >>confdefs.h <<\_ACEOF
23224 #define MOUNTED_GETMNTINFO 1
23225 _ACEOF
23226
23227   fi
23228 fi
23229
23230 if test -z "$ac_list_mounted_fs"; then
23231   # Ultrix
23232   echo "$as_me:$LINENO: checking for getmnt function" >&5
23233 echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6
23234   if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
23235   echo $ECHO_N "(cached) $ECHO_C" >&6
23236 else
23237
23238 cat >conftest.$ac_ext <<_ACEOF
23239 /* confdefs.h.  */
23240 _ACEOF
23241 cat confdefs.h >>conftest.$ac_ext
23242 cat >>conftest.$ac_ext <<_ACEOF
23243 /* end confdefs.h.  */
23244
23245 #include <sys/fs_types.h>
23246 #include <sys/mount.h>
23247 _ACEOF
23248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23249   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23250   ac_status=$?
23251   grep -v '^ *+' conftest.er1 >conftest.err
23252   rm -f conftest.er1
23253   cat conftest.err >&5
23254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255   (exit $ac_status); } >/dev/null; then
23256   if test -s conftest.err; then
23257     ac_cpp_err=$ac_c_preproc_warn_flag
23258   else
23259     ac_cpp_err=
23260   fi
23261 else
23262   ac_cpp_err=yes
23263 fi
23264 if test -z "$ac_cpp_err"; then
23265   fu_cv_sys_mounted_getmnt=yes
23266 else
23267   echo "$as_me: failed program was:" >&5
23268 sed 's/^/| /' conftest.$ac_ext >&5
23269
23270   fu_cv_sys_mounted_getmnt=no
23271 fi
23272 rm -f conftest.err conftest.$ac_ext
23273 fi
23274
23275   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
23276 echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6
23277   if test $fu_cv_sys_mounted_getmnt = yes; then
23278     ac_list_mounted_fs=found
23279
23280 cat >>confdefs.h <<\_ACEOF
23281 #define MOUNTED_GETMNT 1
23282 _ACEOF
23283
23284   fi
23285 fi
23286
23287 if test -z "$ac_list_mounted_fs"; then
23288   # BeOS
23289
23290
23291 for ac_func in next_dev fs_stat_dev
23292 do
23293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23294 echo "$as_me:$LINENO: checking for $ac_func" >&5
23295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23296 if eval "test \"\${$as_ac_var+set}\" = set"; then
23297   echo $ECHO_N "(cached) $ECHO_C" >&6
23298 else
23299   cat >conftest.$ac_ext <<_ACEOF
23300 /* confdefs.h.  */
23301 _ACEOF
23302 cat confdefs.h >>conftest.$ac_ext
23303 cat >>conftest.$ac_ext <<_ACEOF
23304 /* end confdefs.h.  */
23305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23306    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23307 #define $ac_func innocuous_$ac_func
23308
23309 /* System header to define __stub macros and hopefully few prototypes,
23310     which can conflict with char $ac_func (); below.
23311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23312     <limits.h> exists even on freestanding compilers.  */
23313
23314 #ifdef __STDC__
23315 # include <limits.h>
23316 #else
23317 # include <assert.h>
23318 #endif
23319
23320 #undef $ac_func
23321
23322 /* Override any gcc2 internal prototype to avoid an error.  */
23323 #ifdef __cplusplus
23324 extern "C"
23325 {
23326 #endif
23327 /* We use char because int might match the return type of a gcc2
23328    builtin and then its argument prototype would still apply.  */
23329 char $ac_func ();
23330 /* The GNU C library defines this for functions which it implements
23331     to always fail with ENOSYS.  Some functions are actually named
23332     something starting with __ and the normal name is an alias.  */
23333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23334 choke me
23335 #else
23336 char (*f) () = $ac_func;
23337 #endif
23338 #ifdef __cplusplus
23339 }
23340 #endif
23341
23342 int
23343 main ()
23344 {
23345 return f != $ac_func;
23346   ;
23347   return 0;
23348 }
23349 _ACEOF
23350 rm -f conftest.$ac_objext conftest$ac_exeext
23351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23352   (eval $ac_link) 2>&5
23353   ac_status=$?
23354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355   (exit $ac_status); } &&
23356          { ac_try='test -s conftest$ac_exeext'
23357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23358   (eval $ac_try) 2>&5
23359   ac_status=$?
23360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361   (exit $ac_status); }; }; then
23362   eval "$as_ac_var=yes"
23363 else
23364   echo "$as_me: failed program was:" >&5
23365 sed 's/^/| /' conftest.$ac_ext >&5
23366
23367 eval "$as_ac_var=no"
23368 fi
23369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23370 fi
23371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23372 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23373 if test `eval echo '${'$as_ac_var'}'` = yes; then
23374   cat >>confdefs.h <<_ACEOF
23375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23376 _ACEOF
23377
23378 fi
23379 done
23380
23381
23382 for ac_header in fs_info.h
23383 do
23384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23386   echo "$as_me:$LINENO: checking for $ac_header" >&5
23387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23389   echo $ECHO_N "(cached) $ECHO_C" >&6
23390 fi
23391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23393 else
23394   # Is the header compilable?
23395 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23397 cat >conftest.$ac_ext <<_ACEOF
23398 /* confdefs.h.  */
23399 _ACEOF
23400 cat confdefs.h >>conftest.$ac_ext
23401 cat >>conftest.$ac_ext <<_ACEOF
23402 /* end confdefs.h.  */
23403 $ac_includes_default
23404 #include <$ac_header>
23405 _ACEOF
23406 rm -f conftest.$ac_objext
23407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23408   (eval $ac_compile) 2>&5
23409   ac_status=$?
23410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411   (exit $ac_status); } &&
23412          { ac_try='test -s conftest.$ac_objext'
23413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23414   (eval $ac_try) 2>&5
23415   ac_status=$?
23416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417   (exit $ac_status); }; }; then
23418   ac_header_compiler=yes
23419 else
23420   echo "$as_me: failed program was:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23422
23423 ac_header_compiler=no
23424 fi
23425 rm -f conftest.$ac_objext conftest.$ac_ext
23426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23427 echo "${ECHO_T}$ac_header_compiler" >&6
23428
23429 # Is the header present?
23430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23432 cat >conftest.$ac_ext <<_ACEOF
23433 /* confdefs.h.  */
23434 _ACEOF
23435 cat confdefs.h >>conftest.$ac_ext
23436 cat >>conftest.$ac_ext <<_ACEOF
23437 /* end confdefs.h.  */
23438 #include <$ac_header>
23439 _ACEOF
23440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23441   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23442   ac_status=$?
23443   grep -v '^ *+' conftest.er1 >conftest.err
23444   rm -f conftest.er1
23445   cat conftest.err >&5
23446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447   (exit $ac_status); } >/dev/null; then
23448   if test -s conftest.err; then
23449     ac_cpp_err=$ac_c_preproc_warn_flag
23450   else
23451     ac_cpp_err=
23452   fi
23453 else
23454   ac_cpp_err=yes
23455 fi
23456 if test -z "$ac_cpp_err"; then
23457   ac_header_preproc=yes
23458 else
23459   echo "$as_me: failed program was:" >&5
23460 sed 's/^/| /' conftest.$ac_ext >&5
23461
23462   ac_header_preproc=no
23463 fi
23464 rm -f conftest.err conftest.$ac_ext
23465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23466 echo "${ECHO_T}$ac_header_preproc" >&6
23467
23468 # So?  What about this header?
23469 case $ac_header_compiler:$ac_header_preproc in
23470   yes:no )
23471     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23475     ac_header_preproc=yes
23476     ;;
23477   no:yes )
23478     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23480     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23481 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23482     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23484     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23485 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23486     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23488     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23490     (
23491       cat <<\_ASBOX
23492 ## ------------------------------------ ##
23493 ## Report this to bug-coreutils@gnu.org ##
23494 ## ------------------------------------ ##
23495 _ASBOX
23496     ) |
23497       sed "s/^/$as_me: WARNING:     /" >&2
23498     ;;
23499 esac
23500 echo "$as_me:$LINENO: checking for $ac_header" >&5
23501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23503   echo $ECHO_N "(cached) $ECHO_C" >&6
23504 else
23505   eval "$as_ac_Header=\$ac_header_preproc"
23506 fi
23507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23509
23510 fi
23511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23512   cat >>confdefs.h <<_ACEOF
23513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23514 _ACEOF
23515
23516 fi
23517
23518 done
23519
23520   echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
23521 echo $ECHO_N "checking for BEOS mounted file system support functions... $ECHO_C" >&6
23522   if test $ac_cv_header_fs_info_h = yes \
23523       && test $ac_cv_func_next_dev = yes \
23524         && test $ac_cv_func_fs_stat_dev = yes; then
23525     fu_result=yes
23526   else
23527     fu_result=no
23528   fi
23529   echo "$as_me:$LINENO: result: $fu_result" >&5
23530 echo "${ECHO_T}$fu_result" >&6
23531   if test $fu_result = yes; then
23532     ac_list_mounted_fs=found
23533
23534 cat >>confdefs.h <<\_ACEOF
23535 #define MOUNTED_FS_STAT_DEV 1
23536 _ACEOF
23537
23538   fi
23539 fi
23540
23541 if test -z "$ac_list_mounted_fs"; then
23542   # SVR2
23543   echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
23544 echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6
23545   if test "${fu_cv_sys_mounted_fread+set}" = set; then
23546   echo $ECHO_N "(cached) $ECHO_C" >&6
23547 else
23548
23549 cat >conftest.$ac_ext <<_ACEOF
23550 /* confdefs.h.  */
23551 _ACEOF
23552 cat confdefs.h >>conftest.$ac_ext
23553 cat >>conftest.$ac_ext <<_ACEOF
23554 /* end confdefs.h.  */
23555 #include <mnttab.h>
23556 _ACEOF
23557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23558   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23559   ac_status=$?
23560   grep -v '^ *+' conftest.er1 >conftest.err
23561   rm -f conftest.er1
23562   cat conftest.err >&5
23563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564   (exit $ac_status); } >/dev/null; then
23565   if test -s conftest.err; then
23566     ac_cpp_err=$ac_c_preproc_warn_flag
23567   else
23568     ac_cpp_err=
23569   fi
23570 else
23571   ac_cpp_err=yes
23572 fi
23573 if test -z "$ac_cpp_err"; then
23574   fu_cv_sys_mounted_fread=yes
23575 else
23576   echo "$as_me: failed program was:" >&5
23577 sed 's/^/| /' conftest.$ac_ext >&5
23578
23579   fu_cv_sys_mounted_fread=no
23580 fi
23581 rm -f conftest.err conftest.$ac_ext
23582 fi
23583
23584   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
23585 echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6
23586   if test $fu_cv_sys_mounted_fread = yes; then
23587     ac_list_mounted_fs=found
23588
23589 cat >>confdefs.h <<\_ACEOF
23590 #define MOUNTED_FREAD 1
23591 _ACEOF
23592
23593   fi
23594 fi
23595
23596 if test -z "$ac_list_mounted_fs"; then
23597   { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted filesystems" >&5
23598 echo "$as_me: error: could not determine how to read list of mounted filesystems" >&2;}
23599    { (exit 1); exit 1; }; }
23600   # FIXME -- no need to abort building the whole package
23601   # Can't build mountlist.c or anything that needs its functions
23602 fi
23603
23604 if test $ac_list_mounted_fs = found; then
23605   gl_cv_list_mounted_fs=yes
23606 else
23607   gl_cv_list_mounted_fs=no
23608 fi
23609
23610
23611
23612   if test $gl_cv_list_mounted_fs = yes; then
23613     LIBOBJS="$LIBOBJS mountlist.$ac_objext"
23614
23615
23616
23617   :
23618
23619
23620
23621
23622
23623
23624
23625
23626
23627
23628
23629
23630 for ac_header in sys/mntent.h
23631 do
23632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23634   echo "$as_me:$LINENO: checking for $ac_header" >&5
23635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23637   echo $ECHO_N "(cached) $ECHO_C" >&6
23638 fi
23639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23641 else
23642   # Is the header compilable?
23643 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23645 cat >conftest.$ac_ext <<_ACEOF
23646 /* confdefs.h.  */
23647 _ACEOF
23648 cat confdefs.h >>conftest.$ac_ext
23649 cat >>conftest.$ac_ext <<_ACEOF
23650 /* end confdefs.h.  */
23651 $ac_includes_default
23652 #include <$ac_header>
23653 _ACEOF
23654 rm -f conftest.$ac_objext
23655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23656   (eval $ac_compile) 2>&5
23657   ac_status=$?
23658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659   (exit $ac_status); } &&
23660          { ac_try='test -s conftest.$ac_objext'
23661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23662   (eval $ac_try) 2>&5
23663   ac_status=$?
23664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665   (exit $ac_status); }; }; then
23666   ac_header_compiler=yes
23667 else
23668   echo "$as_me: failed program was:" >&5
23669 sed 's/^/| /' conftest.$ac_ext >&5
23670
23671 ac_header_compiler=no
23672 fi
23673 rm -f conftest.$ac_objext conftest.$ac_ext
23674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23675 echo "${ECHO_T}$ac_header_compiler" >&6
23676
23677 # Is the header present?
23678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23680 cat >conftest.$ac_ext <<_ACEOF
23681 /* confdefs.h.  */
23682 _ACEOF
23683 cat confdefs.h >>conftest.$ac_ext
23684 cat >>conftest.$ac_ext <<_ACEOF
23685 /* end confdefs.h.  */
23686 #include <$ac_header>
23687 _ACEOF
23688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23689   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23690   ac_status=$?
23691   grep -v '^ *+' conftest.er1 >conftest.err
23692   rm -f conftest.er1
23693   cat conftest.err >&5
23694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695   (exit $ac_status); } >/dev/null; then
23696   if test -s conftest.err; then
23697     ac_cpp_err=$ac_c_preproc_warn_flag
23698   else
23699     ac_cpp_err=
23700   fi
23701 else
23702   ac_cpp_err=yes
23703 fi
23704 if test -z "$ac_cpp_err"; then
23705   ac_header_preproc=yes
23706 else
23707   echo "$as_me: failed program was:" >&5
23708 sed 's/^/| /' conftest.$ac_ext >&5
23709
23710   ac_header_preproc=no
23711 fi
23712 rm -f conftest.err conftest.$ac_ext
23713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23714 echo "${ECHO_T}$ac_header_preproc" >&6
23715
23716 # So?  What about this header?
23717 case $ac_header_compiler:$ac_header_preproc in
23718   yes:no )
23719     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23721     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23723     ac_header_preproc=yes
23724     ;;
23725   no:yes )
23726     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23728     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23729 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23730     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23732     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23733 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23734     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23736     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23738     (
23739       cat <<\_ASBOX
23740 ## ------------------------------------ ##
23741 ## Report this to bug-coreutils@gnu.org ##
23742 ## ------------------------------------ ##
23743 _ASBOX
23744     ) |
23745       sed "s/^/$as_me: WARNING:     /" >&2
23746     ;;
23747 esac
23748 echo "$as_me:$LINENO: checking for $ac_header" >&5
23749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23751   echo $ECHO_N "(cached) $ECHO_C" >&6
23752 else
23753   eval "$as_ac_Header=\$ac_header_preproc"
23754 fi
23755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23757
23758 fi
23759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23760   cat >>confdefs.h <<_ACEOF
23761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23762 _ACEOF
23763
23764 fi
23765
23766 done
23767
23768
23769     echo "$as_me:$LINENO: checking for f_fstypename in struct statfs" >&5
23770 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6
23771 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
23772   echo $ECHO_N "(cached) $ECHO_C" >&6
23773 else
23774
23775
23776 cat >conftest.$ac_ext <<_ACEOF
23777 /* confdefs.h.  */
23778 _ACEOF
23779 cat confdefs.h >>conftest.$ac_ext
23780 cat >>conftest.$ac_ext <<_ACEOF
23781 /* end confdefs.h.  */
23782
23783 #include <sys/param.h>
23784 #include <sys/types.h>
23785 #include <sys/mount.h>
23786
23787 int
23788 main ()
23789 {
23790 struct statfs s; int i = sizeof s.f_fstypename;
23791   ;
23792   return 0;
23793 }
23794 _ACEOF
23795 rm -f conftest.$ac_objext
23796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23797   (eval $ac_compile) 2>&5
23798   ac_status=$?
23799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800   (exit $ac_status); } &&
23801          { ac_try='test -s conftest.$ac_objext'
23802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23803   (eval $ac_try) 2>&5
23804   ac_status=$?
23805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806   (exit $ac_status); }; }; then
23807   fu_cv_sys_f_fstypename_in_statfs=yes
23808 else
23809   echo "$as_me: failed program was:" >&5
23810 sed 's/^/| /' conftest.$ac_ext >&5
23811
23812 fu_cv_sys_f_fstypename_in_statfs=no
23813
23814 fi
23815 rm -f conftest.$ac_objext conftest.$ac_ext
23816
23817
23818 fi
23819 echo "$as_me:$LINENO: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
23820 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6
23821
23822     if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
23823
23824 cat >>confdefs.h <<\_ACEOF
23825 #define HAVE_F_FSTYPENAME_IN_STATFS 1
23826 _ACEOF
23827
23828     fi
23829
23830
23831
23832   fi
23833
23834
23835
23836
23837
23838
23839
23840
23841
23842   :
23843
23844
23845
23846
23847
23848
23849
23850
23851
23852   echo "$as_me:$LINENO: checking for obstacks" >&5
23853 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
23854 if test "${ac_cv_func_obstack+set}" = set; then
23855   echo $ECHO_N "(cached) $ECHO_C" >&6
23856 else
23857   cat >conftest.$ac_ext <<_ACEOF
23858 /* confdefs.h.  */
23859 _ACEOF
23860 cat confdefs.h >>conftest.$ac_ext
23861 cat >>conftest.$ac_ext <<_ACEOF
23862 /* end confdefs.h.  */
23863 #include "obstack.h"
23864 int
23865 main ()
23866 {
23867 struct obstack *mem; obstack_free(mem,(char *) 0)
23868   ;
23869   return 0;
23870 }
23871 _ACEOF
23872 rm -f conftest.$ac_objext conftest$ac_exeext
23873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23874   (eval $ac_link) 2>&5
23875   ac_status=$?
23876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877   (exit $ac_status); } &&
23878          { ac_try='test -s conftest$ac_exeext'
23879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23880   (eval $ac_try) 2>&5
23881   ac_status=$?
23882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883   (exit $ac_status); }; }; then
23884   ac_cv_func_obstack=yes
23885 else
23886   echo "$as_me: failed program was:" >&5
23887 sed 's/^/| /' conftest.$ac_ext >&5
23888
23889 ac_cv_func_obstack=no
23890 fi
23891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23892 fi
23893 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
23894 echo "${ECHO_T}$ac_cv_func_obstack" >&6
23895 if test $ac_cv_func_obstack = yes; then
23896
23897 cat >>confdefs.h <<\_ACEOF
23898 #define HAVE_OBSTACK 1
23899 _ACEOF
23900
23901 else
23902   LIBOBJS="$LIBOBJS obstack.$ac_objext"
23903 fi
23904
23905     if test $ac_cv_func_obstack = no; then
23906
23907
23908   :
23909
23910
23911
23912
23913
23914
23915   fi
23916
23917
23918
23919   :
23920
23921
23922
23923
23924
23925
23926
23927
23928
23929
23930
23931
23932
23933
23934
23935
23936
23937
23938
23939   :
23940
23941
23942
23943
23944
23945
23946
23947
23948
23949
23950
23951
23952
23953
23954
23955
23956
23957
23958   :
23959
23960
23961
23962
23963
23964
23965   :
23966
23967
23968
23969
23970
23971
23972 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
23973 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
23974 if test "${gl_cv_var__system_configuration+set}" = set; then
23975   echo $ECHO_N "(cached) $ECHO_C" >&6
23976 else
23977   cat >conftest.$ac_ext <<_ACEOF
23978 /* confdefs.h.  */
23979 _ACEOF
23980 cat confdefs.h >>conftest.$ac_ext
23981 cat >>conftest.$ac_ext <<_ACEOF
23982 /* end confdefs.h.  */
23983 #include <sys/systemcfg.h>
23984
23985 int
23986 main ()
23987 {
23988 double x = _system_configuration.physmem;
23989   ;
23990   return 0;
23991 }
23992 _ACEOF
23993 rm -f conftest.$ac_objext conftest$ac_exeext
23994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23995   (eval $ac_link) 2>&5
23996   ac_status=$?
23997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998   (exit $ac_status); } &&
23999          { ac_try='test -s conftest$ac_exeext'
24000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24001   (eval $ac_try) 2>&5
24002   ac_status=$?
24003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004   (exit $ac_status); }; }; then
24005   gl_cv_var__system_configuration=yes
24006 else
24007   echo "$as_me: failed program was:" >&5
24008 sed 's/^/| /' conftest.$ac_ext >&5
24009
24010 gl_cv_var__system_configuration=no
24011 fi
24012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24013 fi
24014 echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
24015 echo "${ECHO_T}$gl_cv_var__system_configuration" >&6
24016
24017     if test $gl_cv_var__system_configuration = yes; then
24018
24019 cat >>confdefs.h <<\_ACEOF
24020 #define HAVE__SYSTEM_CONFIGURATION 1
24021 _ACEOF
24022
24023     fi
24024
24025
24026
24027   # Prerequisites of lib/physmem.c.
24028
24029   :
24030
24031
24032
24033
24034
24035
24036
24037
24038
24039
24040
24041
24042
24043 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
24044     machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \
24045     sys/systemcfg.h
24046 do
24047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24048 echo "$as_me:$LINENO: checking for $ac_header" >&5
24049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24051   echo $ECHO_N "(cached) $ECHO_C" >&6
24052 else
24053   cat >conftest.$ac_ext <<_ACEOF
24054 /* confdefs.h.  */
24055 _ACEOF
24056 cat confdefs.h >>conftest.$ac_ext
24057 cat >>conftest.$ac_ext <<_ACEOF
24058 /* end confdefs.h.  */
24059 $ac_includes_default
24060
24061 #include <$ac_header>
24062 _ACEOF
24063 rm -f conftest.$ac_objext
24064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24065   (eval $ac_compile) 2>&5
24066   ac_status=$?
24067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24068   (exit $ac_status); } &&
24069          { ac_try='test -s conftest.$ac_objext'
24070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24071   (eval $ac_try) 2>&5
24072   ac_status=$?
24073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074   (exit $ac_status); }; }; then
24075   eval "$as_ac_Header=yes"
24076 else
24077   echo "$as_me: failed program was:" >&5
24078 sed 's/^/| /' conftest.$ac_ext >&5
24079
24080 eval "$as_ac_Header=no"
24081 fi
24082 rm -f conftest.$ac_objext conftest.$ac_ext
24083 fi
24084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24087   cat >>confdefs.h <<_ACEOF
24088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24089 _ACEOF
24090
24091 fi
24092
24093 done
24094
24095
24096
24097
24098
24099
24100
24101
24102 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
24103 do
24104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24105 echo "$as_me:$LINENO: checking for $ac_func" >&5
24106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24107 if eval "test \"\${$as_ac_var+set}\" = set"; then
24108   echo $ECHO_N "(cached) $ECHO_C" >&6
24109 else
24110   cat >conftest.$ac_ext <<_ACEOF
24111 /* confdefs.h.  */
24112 _ACEOF
24113 cat confdefs.h >>conftest.$ac_ext
24114 cat >>conftest.$ac_ext <<_ACEOF
24115 /* end confdefs.h.  */
24116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24117    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24118 #define $ac_func innocuous_$ac_func
24119
24120 /* System header to define __stub macros and hopefully few prototypes,
24121     which can conflict with char $ac_func (); below.
24122     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24123     <limits.h> exists even on freestanding compilers.  */
24124
24125 #ifdef __STDC__
24126 # include <limits.h>
24127 #else
24128 # include <assert.h>
24129 #endif
24130
24131 #undef $ac_func
24132
24133 /* Override any gcc2 internal prototype to avoid an error.  */
24134 #ifdef __cplusplus
24135 extern "C"
24136 {
24137 #endif
24138 /* We use char because int might match the return type of a gcc2
24139    builtin and then its argument prototype would still apply.  */
24140 char $ac_func ();
24141 /* The GNU C library defines this for functions which it implements
24142     to always fail with ENOSYS.  Some functions are actually named
24143     something starting with __ and the normal name is an alias.  */
24144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24145 choke me
24146 #else
24147 char (*f) () = $ac_func;
24148 #endif
24149 #ifdef __cplusplus
24150 }
24151 #endif
24152
24153 int
24154 main ()
24155 {
24156 return f != $ac_func;
24157   ;
24158   return 0;
24159 }
24160 _ACEOF
24161 rm -f conftest.$ac_objext conftest$ac_exeext
24162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24163   (eval $ac_link) 2>&5
24164   ac_status=$?
24165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166   (exit $ac_status); } &&
24167          { ac_try='test -s conftest$ac_exeext'
24168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24169   (eval $ac_try) 2>&5
24170   ac_status=$?
24171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172   (exit $ac_status); }; }; then
24173   eval "$as_ac_var=yes"
24174 else
24175   echo "$as_me: failed program was:" >&5
24176 sed 's/^/| /' conftest.$ac_ext >&5
24177
24178 eval "$as_ac_var=no"
24179 fi
24180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24181 fi
24182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24184 if test `eval echo '${'$as_ac_var'}'` = yes; then
24185   cat >>confdefs.h <<_ACEOF
24186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24187 _ACEOF
24188
24189 fi
24190 done
24191
24192
24193
24194
24195     echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24196 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
24197 if test "${ac_cv_struct_tm+set}" = set; then
24198   echo $ECHO_N "(cached) $ECHO_C" >&6
24199 else
24200   cat >conftest.$ac_ext <<_ACEOF
24201 /* confdefs.h.  */
24202 _ACEOF
24203 cat confdefs.h >>conftest.$ac_ext
24204 cat >>conftest.$ac_ext <<_ACEOF
24205 /* end confdefs.h.  */
24206 #include <sys/types.h>
24207 #include <time.h>
24208
24209 int
24210 main ()
24211 {
24212 struct tm *tp; tp->tm_sec;
24213   ;
24214   return 0;
24215 }
24216 _ACEOF
24217 rm -f conftest.$ac_objext
24218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24219   (eval $ac_compile) 2>&5
24220   ac_status=$?
24221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222   (exit $ac_status); } &&
24223          { ac_try='test -s conftest.$ac_objext'
24224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24225   (eval $ac_try) 2>&5
24226   ac_status=$?
24227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228   (exit $ac_status); }; }; then
24229   ac_cv_struct_tm=time.h
24230 else
24231   echo "$as_me: failed program was:" >&5
24232 sed 's/^/| /' conftest.$ac_ext >&5
24233
24234 ac_cv_struct_tm=sys/time.h
24235 fi
24236 rm -f conftest.$ac_objext conftest.$ac_ext
24237 fi
24238 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24239 echo "${ECHO_T}$ac_cv_struct_tm" >&6
24240 if test $ac_cv_struct_tm = sys/time.h; then
24241
24242 cat >>confdefs.h <<\_ACEOF
24243 #define TM_IN_SYS_TIME 1
24244 _ACEOF
24245
24246 fi
24247
24248
24249   :
24250
24251
24252
24253
24254
24255
24256
24257
24258
24259
24260
24261   :
24262
24263
24264
24265
24266
24267
24268   :
24269
24270
24271
24272
24273
24274
24275
24276
24277   :
24278
24279
24280
24281
24282
24283
24284
24285
24286
24287   :
24288
24289
24290
24291
24292
24293
24294
24295
24296   echo "$as_me:$LINENO: checking for mbstate_t" >&5
24297 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
24298 if test "${ac_cv_type_mbstate_t+set}" = set; then
24299   echo $ECHO_N "(cached) $ECHO_C" >&6
24300 else
24301   cat >conftest.$ac_ext <<_ACEOF
24302 /* confdefs.h.  */
24303 _ACEOF
24304 cat confdefs.h >>conftest.$ac_ext
24305 cat >>conftest.$ac_ext <<_ACEOF
24306 /* end confdefs.h.  */
24307 $ac_includes_default
24308 #           include <wchar.h>
24309 int
24310 main ()
24311 {
24312 mbstate_t x; return sizeof x;
24313   ;
24314   return 0;
24315 }
24316 _ACEOF
24317 rm -f conftest.$ac_objext
24318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24319   (eval $ac_compile) 2>&5
24320   ac_status=$?
24321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322   (exit $ac_status); } &&
24323          { ac_try='test -s conftest.$ac_objext'
24324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24325   (eval $ac_try) 2>&5
24326   ac_status=$?
24327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328   (exit $ac_status); }; }; then
24329   ac_cv_type_mbstate_t=yes
24330 else
24331   echo "$as_me: failed program was:" >&5
24332 sed 's/^/| /' conftest.$ac_ext >&5
24333
24334 ac_cv_type_mbstate_t=no
24335 fi
24336 rm -f conftest.$ac_objext conftest.$ac_ext
24337 fi
24338 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
24339 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
24340    if test $ac_cv_type_mbstate_t = yes; then
24341
24342 cat >>confdefs.h <<\_ACEOF
24343 #define HAVE_MBSTATE_T 1
24344 _ACEOF
24345
24346    else
24347
24348 cat >>confdefs.h <<\_ACEOF
24349 #define mbstate_t int
24350 _ACEOF
24351
24352    fi
24353
24354   echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
24355 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
24356 if test "${jm_cv_func_mbrtowc+set}" = set; then
24357   echo $ECHO_N "(cached) $ECHO_C" >&6
24358 else
24359
24360 cat >conftest.$ac_ext <<_ACEOF
24361 /* confdefs.h.  */
24362 _ACEOF
24363 cat confdefs.h >>conftest.$ac_ext
24364 cat >>conftest.$ac_ext <<_ACEOF
24365 /* end confdefs.h.  */
24366 #include <wchar.h>
24367 int
24368 main ()
24369 {
24370 mbstate_t state; return ! (sizeof state && mbrtowc);
24371   ;
24372   return 0;
24373 }
24374 _ACEOF
24375 rm -f conftest.$ac_objext conftest$ac_exeext
24376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24377   (eval $ac_link) 2>&5
24378   ac_status=$?
24379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380   (exit $ac_status); } &&
24381          { ac_try='test -s conftest$ac_exeext'
24382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24383   (eval $ac_try) 2>&5
24384   ac_status=$?
24385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386   (exit $ac_status); }; }; then
24387   jm_cv_func_mbrtowc=yes
24388 else
24389   echo "$as_me: failed program was:" >&5
24390 sed 's/^/| /' conftest.$ac_ext >&5
24391
24392 jm_cv_func_mbrtowc=no
24393 fi
24394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24395 fi
24396 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
24397 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
24398   if test $jm_cv_func_mbrtowc = yes; then
24399
24400 cat >>confdefs.h <<\_ACEOF
24401 #define HAVE_MBRTOWC 1
24402 _ACEOF
24403
24404   fi
24405
24406
24407
24408
24409
24410
24411   :
24412
24413
24414
24415
24416
24417
24418
24419 for ac_header in utmp.h utmpx.h
24420 do
24421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24423   echo "$as_me:$LINENO: checking for $ac_header" >&5
24424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24426   echo $ECHO_N "(cached) $ECHO_C" >&6
24427 fi
24428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24430 else
24431   # Is the header compilable?
24432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24434 cat >conftest.$ac_ext <<_ACEOF
24435 /* confdefs.h.  */
24436 _ACEOF
24437 cat confdefs.h >>conftest.$ac_ext
24438 cat >>conftest.$ac_ext <<_ACEOF
24439 /* end confdefs.h.  */
24440 $ac_includes_default
24441 #include <$ac_header>
24442 _ACEOF
24443 rm -f conftest.$ac_objext
24444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24445   (eval $ac_compile) 2>&5
24446   ac_status=$?
24447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448   (exit $ac_status); } &&
24449          { ac_try='test -s conftest.$ac_objext'
24450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24451   (eval $ac_try) 2>&5
24452   ac_status=$?
24453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454   (exit $ac_status); }; }; then
24455   ac_header_compiler=yes
24456 else
24457   echo "$as_me: failed program was:" >&5
24458 sed 's/^/| /' conftest.$ac_ext >&5
24459
24460 ac_header_compiler=no
24461 fi
24462 rm -f conftest.$ac_objext conftest.$ac_ext
24463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24464 echo "${ECHO_T}$ac_header_compiler" >&6
24465
24466 # Is the header present?
24467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24469 cat >conftest.$ac_ext <<_ACEOF
24470 /* confdefs.h.  */
24471 _ACEOF
24472 cat confdefs.h >>conftest.$ac_ext
24473 cat >>conftest.$ac_ext <<_ACEOF
24474 /* end confdefs.h.  */
24475 #include <$ac_header>
24476 _ACEOF
24477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24478   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24479   ac_status=$?
24480   grep -v '^ *+' conftest.er1 >conftest.err
24481   rm -f conftest.er1
24482   cat conftest.err >&5
24483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484   (exit $ac_status); } >/dev/null; then
24485   if test -s conftest.err; then
24486     ac_cpp_err=$ac_c_preproc_warn_flag
24487   else
24488     ac_cpp_err=
24489   fi
24490 else
24491   ac_cpp_err=yes
24492 fi
24493 if test -z "$ac_cpp_err"; then
24494   ac_header_preproc=yes
24495 else
24496   echo "$as_me: failed program was:" >&5
24497 sed 's/^/| /' conftest.$ac_ext >&5
24498
24499   ac_header_preproc=no
24500 fi
24501 rm -f conftest.err conftest.$ac_ext
24502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24503 echo "${ECHO_T}$ac_header_preproc" >&6
24504
24505 # So?  What about this header?
24506 case $ac_header_compiler:$ac_header_preproc in
24507   yes:no )
24508     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24512     ac_header_preproc=yes
24513     ;;
24514   no:yes )
24515     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24517     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24518 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24519     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24521     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24522 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24525     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24527     (
24528       cat <<\_ASBOX
24529 ## ------------------------------------ ##
24530 ## Report this to bug-coreutils@gnu.org ##
24531 ## ------------------------------------ ##
24532 _ASBOX
24533     ) |
24534       sed "s/^/$as_me: WARNING:     /" >&2
24535     ;;
24536 esac
24537 echo "$as_me:$LINENO: checking for $ac_header" >&5
24538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24540   echo $ECHO_N "(cached) $ECHO_C" >&6
24541 else
24542   eval "$as_ac_Header=\$ac_header_preproc"
24543 fi
24544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24546
24547 fi
24548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24549   cat >>confdefs.h <<_ACEOF
24550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24551 _ACEOF
24552
24553 fi
24554
24555 done
24556
24557
24558
24559 for ac_func in utmpname utmpxname
24560 do
24561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24562 echo "$as_me:$LINENO: checking for $ac_func" >&5
24563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24564 if eval "test \"\${$as_ac_var+set}\" = set"; then
24565   echo $ECHO_N "(cached) $ECHO_C" >&6
24566 else
24567   cat >conftest.$ac_ext <<_ACEOF
24568 /* confdefs.h.  */
24569 _ACEOF
24570 cat confdefs.h >>conftest.$ac_ext
24571 cat >>conftest.$ac_ext <<_ACEOF
24572 /* end confdefs.h.  */
24573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24574    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24575 #define $ac_func innocuous_$ac_func
24576
24577 /* System header to define __stub macros and hopefully few prototypes,
24578     which can conflict with char $ac_func (); below.
24579     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24580     <limits.h> exists even on freestanding compilers.  */
24581
24582 #ifdef __STDC__
24583 # include <limits.h>
24584 #else
24585 # include <assert.h>
24586 #endif
24587
24588 #undef $ac_func
24589
24590 /* Override any gcc2 internal prototype to avoid an error.  */
24591 #ifdef __cplusplus
24592 extern "C"
24593 {
24594 #endif
24595 /* We use char because int might match the return type of a gcc2
24596    builtin and then its argument prototype would still apply.  */
24597 char $ac_func ();
24598 /* The GNU C library defines this for functions which it implements
24599     to always fail with ENOSYS.  Some functions are actually named
24600     something starting with __ and the normal name is an alias.  */
24601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24602 choke me
24603 #else
24604 char (*f) () = $ac_func;
24605 #endif
24606 #ifdef __cplusplus
24607 }
24608 #endif
24609
24610 int
24611 main ()
24612 {
24613 return f != $ac_func;
24614   ;
24615   return 0;
24616 }
24617 _ACEOF
24618 rm -f conftest.$ac_objext conftest$ac_exeext
24619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24620   (eval $ac_link) 2>&5
24621   ac_status=$?
24622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24623   (exit $ac_status); } &&
24624          { ac_try='test -s conftest$ac_exeext'
24625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24626   (eval $ac_try) 2>&5
24627   ac_status=$?
24628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629   (exit $ac_status); }; }; then
24630   eval "$as_ac_var=yes"
24631 else
24632   echo "$as_me: failed program was:" >&5
24633 sed 's/^/| /' conftest.$ac_ext >&5
24634
24635 eval "$as_ac_var=no"
24636 fi
24637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24638 fi
24639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24641 if test `eval echo '${'$as_ac_var'}'` = yes; then
24642   cat >>confdefs.h <<_ACEOF
24643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24644 _ACEOF
24645
24646 fi
24647 done
24648
24649   echo "$as_me:$LINENO: checking whether getutent is declared" >&5
24650 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
24651 if test "${ac_cv_have_decl_getutent+set}" = set; then
24652   echo $ECHO_N "(cached) $ECHO_C" >&6
24653 else
24654   cat >conftest.$ac_ext <<_ACEOF
24655 /* confdefs.h.  */
24656 _ACEOF
24657 cat confdefs.h >>conftest.$ac_ext
24658 cat >>conftest.$ac_ext <<_ACEOF
24659 /* end confdefs.h.  */
24660
24661 #ifdef HAVE_UTMP_H
24662 # include <utmp.h>
24663 #endif
24664
24665
24666 int
24667 main ()
24668 {
24669 #ifndef getutent
24670   char *p = (char *) getutent;
24671 #endif
24672
24673   ;
24674   return 0;
24675 }
24676 _ACEOF
24677 rm -f conftest.$ac_objext
24678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24679   (eval $ac_compile) 2>&5
24680   ac_status=$?
24681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682   (exit $ac_status); } &&
24683          { ac_try='test -s conftest.$ac_objext'
24684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24685   (eval $ac_try) 2>&5
24686   ac_status=$?
24687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688   (exit $ac_status); }; }; then
24689   ac_cv_have_decl_getutent=yes
24690 else
24691   echo "$as_me: failed program was:" >&5
24692 sed 's/^/| /' conftest.$ac_ext >&5
24693
24694 ac_cv_have_decl_getutent=no
24695 fi
24696 rm -f conftest.$ac_objext conftest.$ac_ext
24697 fi
24698 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
24699 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
24700 if test $ac_cv_have_decl_getutent = yes; then
24701
24702 cat >>confdefs.h <<_ACEOF
24703 #define HAVE_DECL_GETUTENT 1
24704 _ACEOF
24705
24706
24707 else
24708   cat >>confdefs.h <<_ACEOF
24709 #define HAVE_DECL_GETUTENT 0
24710 _ACEOF
24711
24712
24713 fi
24714
24715
24716   if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
24717     utmp_includes="\
24718 $ac_includes_default
24719 #ifdef HAVE_UTMPX_H
24720 # include <utmpx.h>
24721 #endif
24722 #ifdef HAVE_UTMP_H
24723 # include <utmp.h>
24724 #endif
24725 "
24726     echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
24727 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6
24728 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
24729   echo $ECHO_N "(cached) $ECHO_C" >&6
24730 else
24731   cat >conftest.$ac_ext <<_ACEOF
24732 /* confdefs.h.  */
24733 _ACEOF
24734 cat confdefs.h >>conftest.$ac_ext
24735 cat >>conftest.$ac_ext <<_ACEOF
24736 /* end confdefs.h.  */
24737 $utmp_includes
24738
24739 int
24740 main ()
24741 {
24742 static struct utmpx ac_aggr;
24743 if (ac_aggr.ut_user)
24744 return 0;
24745   ;
24746   return 0;
24747 }
24748 _ACEOF
24749 rm -f conftest.$ac_objext
24750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24751   (eval $ac_compile) 2>&5
24752   ac_status=$?
24753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754   (exit $ac_status); } &&
24755          { ac_try='test -s conftest.$ac_objext'
24756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24757   (eval $ac_try) 2>&5
24758   ac_status=$?
24759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760   (exit $ac_status); }; }; then
24761   ac_cv_member_struct_utmpx_ut_user=yes
24762 else
24763   echo "$as_me: failed program was:" >&5
24764 sed 's/^/| /' conftest.$ac_ext >&5
24765
24766 cat >conftest.$ac_ext <<_ACEOF
24767 /* confdefs.h.  */
24768 _ACEOF
24769 cat confdefs.h >>conftest.$ac_ext
24770 cat >>conftest.$ac_ext <<_ACEOF
24771 /* end confdefs.h.  */
24772 $utmp_includes
24773
24774 int
24775 main ()
24776 {
24777 static struct utmpx ac_aggr;
24778 if (sizeof ac_aggr.ut_user)
24779 return 0;
24780   ;
24781   return 0;
24782 }
24783 _ACEOF
24784 rm -f conftest.$ac_objext
24785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24786   (eval $ac_compile) 2>&5
24787   ac_status=$?
24788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789   (exit $ac_status); } &&
24790          { ac_try='test -s conftest.$ac_objext'
24791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24792   (eval $ac_try) 2>&5
24793   ac_status=$?
24794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795   (exit $ac_status); }; }; then
24796   ac_cv_member_struct_utmpx_ut_user=yes
24797 else
24798   echo "$as_me: failed program was:" >&5
24799 sed 's/^/| /' conftest.$ac_ext >&5
24800
24801 ac_cv_member_struct_utmpx_ut_user=no
24802 fi
24803 rm -f conftest.$ac_objext conftest.$ac_ext
24804 fi
24805 rm -f conftest.$ac_objext conftest.$ac_ext
24806 fi
24807 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
24808 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6
24809 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
24810
24811 cat >>confdefs.h <<_ACEOF
24812 #define HAVE_STRUCT_UTMPX_UT_USER 1
24813 _ACEOF
24814
24815
24816 fi
24817
24818     echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
24819 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6
24820 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
24821   echo $ECHO_N "(cached) $ECHO_C" >&6
24822 else
24823   cat >conftest.$ac_ext <<_ACEOF
24824 /* confdefs.h.  */
24825 _ACEOF
24826 cat confdefs.h >>conftest.$ac_ext
24827 cat >>conftest.$ac_ext <<_ACEOF
24828 /* end confdefs.h.  */
24829 $utmp_includes
24830
24831 int
24832 main ()
24833 {
24834 static struct utmp ac_aggr;
24835 if (ac_aggr.ut_user)
24836 return 0;
24837   ;
24838   return 0;
24839 }
24840 _ACEOF
24841 rm -f conftest.$ac_objext
24842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24843   (eval $ac_compile) 2>&5
24844   ac_status=$?
24845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846   (exit $ac_status); } &&
24847          { ac_try='test -s conftest.$ac_objext'
24848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24849   (eval $ac_try) 2>&5
24850   ac_status=$?
24851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24852   (exit $ac_status); }; }; then
24853   ac_cv_member_struct_utmp_ut_user=yes
24854 else
24855   echo "$as_me: failed program was:" >&5
24856 sed 's/^/| /' conftest.$ac_ext >&5
24857
24858 cat >conftest.$ac_ext <<_ACEOF
24859 /* confdefs.h.  */
24860 _ACEOF
24861 cat confdefs.h >>conftest.$ac_ext
24862 cat >>conftest.$ac_ext <<_ACEOF
24863 /* end confdefs.h.  */
24864 $utmp_includes
24865
24866 int
24867 main ()
24868 {
24869 static struct utmp ac_aggr;
24870 if (sizeof ac_aggr.ut_user)
24871 return 0;
24872   ;
24873   return 0;
24874 }
24875 _ACEOF
24876 rm -f conftest.$ac_objext
24877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24878   (eval $ac_compile) 2>&5
24879   ac_status=$?
24880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881   (exit $ac_status); } &&
24882          { ac_try='test -s conftest.$ac_objext'
24883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24884   (eval $ac_try) 2>&5
24885   ac_status=$?
24886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887   (exit $ac_status); }; }; then
24888   ac_cv_member_struct_utmp_ut_user=yes
24889 else
24890   echo "$as_me: failed program was:" >&5
24891 sed 's/^/| /' conftest.$ac_ext >&5
24892
24893 ac_cv_member_struct_utmp_ut_user=no
24894 fi
24895 rm -f conftest.$ac_objext conftest.$ac_ext
24896 fi
24897 rm -f conftest.$ac_objext conftest.$ac_ext
24898 fi
24899 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
24900 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6
24901 if test $ac_cv_member_struct_utmp_ut_user = yes; then
24902
24903 cat >>confdefs.h <<_ACEOF
24904 #define HAVE_STRUCT_UTMP_UT_USER 1
24905 _ACEOF
24906
24907
24908 fi
24909
24910     echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
24911 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6
24912 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
24913   echo $ECHO_N "(cached) $ECHO_C" >&6
24914 else
24915   cat >conftest.$ac_ext <<_ACEOF
24916 /* confdefs.h.  */
24917 _ACEOF
24918 cat confdefs.h >>conftest.$ac_ext
24919 cat >>conftest.$ac_ext <<_ACEOF
24920 /* end confdefs.h.  */
24921 $utmp_includes
24922
24923 int
24924 main ()
24925 {
24926 static struct utmpx ac_aggr;
24927 if (ac_aggr.ut_name)
24928 return 0;
24929   ;
24930   return 0;
24931 }
24932 _ACEOF
24933 rm -f conftest.$ac_objext
24934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24935   (eval $ac_compile) 2>&5
24936   ac_status=$?
24937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938   (exit $ac_status); } &&
24939          { ac_try='test -s conftest.$ac_objext'
24940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24941   (eval $ac_try) 2>&5
24942   ac_status=$?
24943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944   (exit $ac_status); }; }; then
24945   ac_cv_member_struct_utmpx_ut_name=yes
24946 else
24947   echo "$as_me: failed program was:" >&5
24948 sed 's/^/| /' conftest.$ac_ext >&5
24949
24950 cat >conftest.$ac_ext <<_ACEOF
24951 /* confdefs.h.  */
24952 _ACEOF
24953 cat confdefs.h >>conftest.$ac_ext
24954 cat >>conftest.$ac_ext <<_ACEOF
24955 /* end confdefs.h.  */
24956 $utmp_includes
24957
24958 int
24959 main ()
24960 {
24961 static struct utmpx ac_aggr;
24962 if (sizeof ac_aggr.ut_name)
24963 return 0;
24964   ;
24965   return 0;
24966 }
24967 _ACEOF
24968 rm -f conftest.$ac_objext
24969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24970   (eval $ac_compile) 2>&5
24971   ac_status=$?
24972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973   (exit $ac_status); } &&
24974          { ac_try='test -s conftest.$ac_objext'
24975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24976   (eval $ac_try) 2>&5
24977   ac_status=$?
24978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979   (exit $ac_status); }; }; then
24980   ac_cv_member_struct_utmpx_ut_name=yes
24981 else
24982   echo "$as_me: failed program was:" >&5
24983 sed 's/^/| /' conftest.$ac_ext >&5
24984
24985 ac_cv_member_struct_utmpx_ut_name=no
24986 fi
24987 rm -f conftest.$ac_objext conftest.$ac_ext
24988 fi
24989 rm -f conftest.$ac_objext conftest.$ac_ext
24990 fi
24991 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
24992 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6
24993 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
24994
24995 cat >>confdefs.h <<_ACEOF
24996 #define HAVE_STRUCT_UTMPX_UT_NAME 1
24997 _ACEOF
24998
24999
25000 fi
25001
25002     echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
25003 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6
25004 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
25005   echo $ECHO_N "(cached) $ECHO_C" >&6
25006 else
25007   cat >conftest.$ac_ext <<_ACEOF
25008 /* confdefs.h.  */
25009 _ACEOF
25010 cat confdefs.h >>conftest.$ac_ext
25011 cat >>conftest.$ac_ext <<_ACEOF
25012 /* end confdefs.h.  */
25013 $utmp_includes
25014
25015 int
25016 main ()
25017 {
25018 static struct utmp ac_aggr;
25019 if (ac_aggr.ut_name)
25020 return 0;
25021   ;
25022   return 0;
25023 }
25024 _ACEOF
25025 rm -f conftest.$ac_objext
25026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25027   (eval $ac_compile) 2>&5
25028   ac_status=$?
25029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030   (exit $ac_status); } &&
25031          { ac_try='test -s conftest.$ac_objext'
25032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25033   (eval $ac_try) 2>&5
25034   ac_status=$?
25035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036   (exit $ac_status); }; }; then
25037   ac_cv_member_struct_utmp_ut_name=yes
25038 else
25039   echo "$as_me: failed program was:" >&5
25040 sed 's/^/| /' conftest.$ac_ext >&5
25041
25042 cat >conftest.$ac_ext <<_ACEOF
25043 /* confdefs.h.  */
25044 _ACEOF
25045 cat confdefs.h >>conftest.$ac_ext
25046 cat >>conftest.$ac_ext <<_ACEOF
25047 /* end confdefs.h.  */
25048 $utmp_includes
25049
25050 int
25051 main ()
25052 {
25053 static struct utmp ac_aggr;
25054 if (sizeof ac_aggr.ut_name)
25055 return 0;
25056   ;
25057   return 0;
25058 }
25059 _ACEOF
25060 rm -f conftest.$ac_objext
25061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25062   (eval $ac_compile) 2>&5
25063   ac_status=$?
25064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065   (exit $ac_status); } &&
25066          { ac_try='test -s conftest.$ac_objext'
25067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25068   (eval $ac_try) 2>&5
25069   ac_status=$?
25070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071   (exit $ac_status); }; }; then
25072   ac_cv_member_struct_utmp_ut_name=yes
25073 else
25074   echo "$as_me: failed program was:" >&5
25075 sed 's/^/| /' conftest.$ac_ext >&5
25076
25077 ac_cv_member_struct_utmp_ut_name=no
25078 fi
25079 rm -f conftest.$ac_objext conftest.$ac_ext
25080 fi
25081 rm -f conftest.$ac_objext conftest.$ac_ext
25082 fi
25083 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
25084 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6
25085 if test $ac_cv_member_struct_utmp_ut_name = yes; then
25086
25087 cat >>confdefs.h <<_ACEOF
25088 #define HAVE_STRUCT_UTMP_UT_NAME 1
25089 _ACEOF
25090
25091
25092 fi
25093
25094     echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
25095 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6
25096 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
25097   echo $ECHO_N "(cached) $ECHO_C" >&6
25098 else
25099   cat >conftest.$ac_ext <<_ACEOF
25100 /* confdefs.h.  */
25101 _ACEOF
25102 cat confdefs.h >>conftest.$ac_ext
25103 cat >>conftest.$ac_ext <<_ACEOF
25104 /* end confdefs.h.  */
25105 $utmp_includes
25106
25107 int
25108 main ()
25109 {
25110 static struct utmpx ac_aggr;
25111 if (ac_aggr.ut_type)
25112 return 0;
25113   ;
25114   return 0;
25115 }
25116 _ACEOF
25117 rm -f conftest.$ac_objext
25118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25119   (eval $ac_compile) 2>&5
25120   ac_status=$?
25121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122   (exit $ac_status); } &&
25123          { ac_try='test -s conftest.$ac_objext'
25124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25125   (eval $ac_try) 2>&5
25126   ac_status=$?
25127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128   (exit $ac_status); }; }; then
25129   ac_cv_member_struct_utmpx_ut_type=yes
25130 else
25131   echo "$as_me: failed program was:" >&5
25132 sed 's/^/| /' conftest.$ac_ext >&5
25133
25134 cat >conftest.$ac_ext <<_ACEOF
25135 /* confdefs.h.  */
25136 _ACEOF
25137 cat confdefs.h >>conftest.$ac_ext
25138 cat >>conftest.$ac_ext <<_ACEOF
25139 /* end confdefs.h.  */
25140 $utmp_includes
25141
25142 int
25143 main ()
25144 {
25145 static struct utmpx ac_aggr;
25146 if (sizeof ac_aggr.ut_type)
25147 return 0;
25148   ;
25149   return 0;
25150 }
25151 _ACEOF
25152 rm -f conftest.$ac_objext
25153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25154   (eval $ac_compile) 2>&5
25155   ac_status=$?
25156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157   (exit $ac_status); } &&
25158          { ac_try='test -s conftest.$ac_objext'
25159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25160   (eval $ac_try) 2>&5
25161   ac_status=$?
25162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163   (exit $ac_status); }; }; then
25164   ac_cv_member_struct_utmpx_ut_type=yes
25165 else
25166   echo "$as_me: failed program was:" >&5
25167 sed 's/^/| /' conftest.$ac_ext >&5
25168
25169 ac_cv_member_struct_utmpx_ut_type=no
25170 fi
25171 rm -f conftest.$ac_objext conftest.$ac_ext
25172 fi
25173 rm -f conftest.$ac_objext conftest.$ac_ext
25174 fi
25175 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
25176 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6
25177 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
25178
25179 cat >>confdefs.h <<_ACEOF
25180 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
25181 _ACEOF
25182
25183
25184 fi
25185
25186     echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
25187 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6
25188 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
25189   echo $ECHO_N "(cached) $ECHO_C" >&6
25190 else
25191   cat >conftest.$ac_ext <<_ACEOF
25192 /* confdefs.h.  */
25193 _ACEOF
25194 cat confdefs.h >>conftest.$ac_ext
25195 cat >>conftest.$ac_ext <<_ACEOF
25196 /* end confdefs.h.  */
25197 $utmp_includes
25198
25199 int
25200 main ()
25201 {
25202 static struct utmp ac_aggr;
25203 if (ac_aggr.ut_type)
25204 return 0;
25205   ;
25206   return 0;
25207 }
25208 _ACEOF
25209 rm -f conftest.$ac_objext
25210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25211   (eval $ac_compile) 2>&5
25212   ac_status=$?
25213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214   (exit $ac_status); } &&
25215          { ac_try='test -s conftest.$ac_objext'
25216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25217   (eval $ac_try) 2>&5
25218   ac_status=$?
25219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220   (exit $ac_status); }; }; then
25221   ac_cv_member_struct_utmp_ut_type=yes
25222 else
25223   echo "$as_me: failed program was:" >&5
25224 sed 's/^/| /' conftest.$ac_ext >&5
25225
25226 cat >conftest.$ac_ext <<_ACEOF
25227 /* confdefs.h.  */
25228 _ACEOF
25229 cat confdefs.h >>conftest.$ac_ext
25230 cat >>conftest.$ac_ext <<_ACEOF
25231 /* end confdefs.h.  */
25232 $utmp_includes
25233
25234 int
25235 main ()
25236 {
25237 static struct utmp ac_aggr;
25238 if (sizeof ac_aggr.ut_type)
25239 return 0;
25240   ;
25241   return 0;
25242 }
25243 _ACEOF
25244 rm -f conftest.$ac_objext
25245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25246   (eval $ac_compile) 2>&5
25247   ac_status=$?
25248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249   (exit $ac_status); } &&
25250          { ac_try='test -s conftest.$ac_objext'
25251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25252   (eval $ac_try) 2>&5
25253   ac_status=$?
25254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255   (exit $ac_status); }; }; then
25256   ac_cv_member_struct_utmp_ut_type=yes
25257 else
25258   echo "$as_me: failed program was:" >&5
25259 sed 's/^/| /' conftest.$ac_ext >&5
25260
25261 ac_cv_member_struct_utmp_ut_type=no
25262 fi
25263 rm -f conftest.$ac_objext conftest.$ac_ext
25264 fi
25265 rm -f conftest.$ac_objext conftest.$ac_ext
25266 fi
25267 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
25268 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6
25269 if test $ac_cv_member_struct_utmp_ut_type = yes; then
25270
25271 cat >>confdefs.h <<_ACEOF
25272 #define HAVE_STRUCT_UTMP_UT_TYPE 1
25273 _ACEOF
25274
25275
25276 fi
25277
25278     echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
25279 echo $ECHO_N "checking for struct utmpx.ut_pid... $ECHO_C" >&6
25280 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
25281   echo $ECHO_N "(cached) $ECHO_C" >&6
25282 else
25283   cat >conftest.$ac_ext <<_ACEOF
25284 /* confdefs.h.  */
25285 _ACEOF
25286 cat confdefs.h >>conftest.$ac_ext
25287 cat >>conftest.$ac_ext <<_ACEOF
25288 /* end confdefs.h.  */
25289 $utmp_includes
25290
25291 int
25292 main ()
25293 {
25294 static struct utmpx ac_aggr;
25295 if (ac_aggr.ut_pid)
25296 return 0;
25297   ;
25298   return 0;
25299 }
25300 _ACEOF
25301 rm -f conftest.$ac_objext
25302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25303   (eval $ac_compile) 2>&5
25304   ac_status=$?
25305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25306   (exit $ac_status); } &&
25307          { ac_try='test -s conftest.$ac_objext'
25308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25309   (eval $ac_try) 2>&5
25310   ac_status=$?
25311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312   (exit $ac_status); }; }; then
25313   ac_cv_member_struct_utmpx_ut_pid=yes
25314 else
25315   echo "$as_me: failed program was:" >&5
25316 sed 's/^/| /' conftest.$ac_ext >&5
25317
25318 cat >conftest.$ac_ext <<_ACEOF
25319 /* confdefs.h.  */
25320 _ACEOF
25321 cat confdefs.h >>conftest.$ac_ext
25322 cat >>conftest.$ac_ext <<_ACEOF
25323 /* end confdefs.h.  */
25324 $utmp_includes
25325
25326 int
25327 main ()
25328 {
25329 static struct utmpx ac_aggr;
25330 if (sizeof ac_aggr.ut_pid)
25331 return 0;
25332   ;
25333   return 0;
25334 }
25335 _ACEOF
25336 rm -f conftest.$ac_objext
25337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25338   (eval $ac_compile) 2>&5
25339   ac_status=$?
25340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341   (exit $ac_status); } &&
25342          { ac_try='test -s conftest.$ac_objext'
25343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25344   (eval $ac_try) 2>&5
25345   ac_status=$?
25346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347   (exit $ac_status); }; }; then
25348   ac_cv_member_struct_utmpx_ut_pid=yes
25349 else
25350   echo "$as_me: failed program was:" >&5
25351 sed 's/^/| /' conftest.$ac_ext >&5
25352
25353 ac_cv_member_struct_utmpx_ut_pid=no
25354 fi
25355 rm -f conftest.$ac_objext conftest.$ac_ext
25356 fi
25357 rm -f conftest.$ac_objext conftest.$ac_ext
25358 fi
25359 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
25360 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_pid" >&6
25361 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
25362
25363 cat >>confdefs.h <<_ACEOF
25364 #define HAVE_STRUCT_UTMPX_UT_PID 1
25365 _ACEOF
25366
25367
25368 fi
25369
25370     echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
25371 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6
25372 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
25373   echo $ECHO_N "(cached) $ECHO_C" >&6
25374 else
25375   cat >conftest.$ac_ext <<_ACEOF
25376 /* confdefs.h.  */
25377 _ACEOF
25378 cat confdefs.h >>conftest.$ac_ext
25379 cat >>conftest.$ac_ext <<_ACEOF
25380 /* end confdefs.h.  */
25381 $utmp_includes
25382
25383 int
25384 main ()
25385 {
25386 static struct utmp ac_aggr;
25387 if (ac_aggr.ut_pid)
25388 return 0;
25389   ;
25390   return 0;
25391 }
25392 _ACEOF
25393 rm -f conftest.$ac_objext
25394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25395   (eval $ac_compile) 2>&5
25396   ac_status=$?
25397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398   (exit $ac_status); } &&
25399          { ac_try='test -s conftest.$ac_objext'
25400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25401   (eval $ac_try) 2>&5
25402   ac_status=$?
25403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404   (exit $ac_status); }; }; then
25405   ac_cv_member_struct_utmp_ut_pid=yes
25406 else
25407   echo "$as_me: failed program was:" >&5
25408 sed 's/^/| /' conftest.$ac_ext >&5
25409
25410 cat >conftest.$ac_ext <<_ACEOF
25411 /* confdefs.h.  */
25412 _ACEOF
25413 cat confdefs.h >>conftest.$ac_ext
25414 cat >>conftest.$ac_ext <<_ACEOF
25415 /* end confdefs.h.  */
25416 $utmp_includes
25417
25418 int
25419 main ()
25420 {
25421 static struct utmp ac_aggr;
25422 if (sizeof ac_aggr.ut_pid)
25423 return 0;
25424   ;
25425   return 0;
25426 }
25427 _ACEOF
25428 rm -f conftest.$ac_objext
25429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25430   (eval $ac_compile) 2>&5
25431   ac_status=$?
25432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433   (exit $ac_status); } &&
25434          { ac_try='test -s conftest.$ac_objext'
25435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25436   (eval $ac_try) 2>&5
25437   ac_status=$?
25438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439   (exit $ac_status); }; }; then
25440   ac_cv_member_struct_utmp_ut_pid=yes
25441 else
25442   echo "$as_me: failed program was:" >&5
25443 sed 's/^/| /' conftest.$ac_ext >&5
25444
25445 ac_cv_member_struct_utmp_ut_pid=no
25446 fi
25447 rm -f conftest.$ac_objext conftest.$ac_ext
25448 fi
25449 rm -f conftest.$ac_objext conftest.$ac_ext
25450 fi
25451 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
25452 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6
25453 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
25454
25455 cat >>confdefs.h <<_ACEOF
25456 #define HAVE_STRUCT_UTMP_UT_PID 1
25457 _ACEOF
25458
25459
25460 fi
25461
25462     echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
25463 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6
25464 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
25465   echo $ECHO_N "(cached) $ECHO_C" >&6
25466 else
25467   cat >conftest.$ac_ext <<_ACEOF
25468 /* confdefs.h.  */
25469 _ACEOF
25470 cat confdefs.h >>conftest.$ac_ext
25471 cat >>conftest.$ac_ext <<_ACEOF
25472 /* end confdefs.h.  */
25473 $utmp_includes
25474
25475 int
25476 main ()
25477 {
25478 static struct utmpx ac_aggr;
25479 if (ac_aggr.ut_id)
25480 return 0;
25481   ;
25482   return 0;
25483 }
25484 _ACEOF
25485 rm -f conftest.$ac_objext
25486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25487   (eval $ac_compile) 2>&5
25488   ac_status=$?
25489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490   (exit $ac_status); } &&
25491          { ac_try='test -s conftest.$ac_objext'
25492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25493   (eval $ac_try) 2>&5
25494   ac_status=$?
25495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496   (exit $ac_status); }; }; then
25497   ac_cv_member_struct_utmpx_ut_id=yes
25498 else
25499   echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25501
25502 cat >conftest.$ac_ext <<_ACEOF
25503 /* confdefs.h.  */
25504 _ACEOF
25505 cat confdefs.h >>conftest.$ac_ext
25506 cat >>conftest.$ac_ext <<_ACEOF
25507 /* end confdefs.h.  */
25508 $utmp_includes
25509
25510 int
25511 main ()
25512 {
25513 static struct utmpx ac_aggr;
25514 if (sizeof ac_aggr.ut_id)
25515 return 0;
25516   ;
25517   return 0;
25518 }
25519 _ACEOF
25520 rm -f conftest.$ac_objext
25521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25522   (eval $ac_compile) 2>&5
25523   ac_status=$?
25524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525   (exit $ac_status); } &&
25526          { ac_try='test -s conftest.$ac_objext'
25527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25528   (eval $ac_try) 2>&5
25529   ac_status=$?
25530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531   (exit $ac_status); }; }; then
25532   ac_cv_member_struct_utmpx_ut_id=yes
25533 else
25534   echo "$as_me: failed program was:" >&5
25535 sed 's/^/| /' conftest.$ac_ext >&5
25536
25537 ac_cv_member_struct_utmpx_ut_id=no
25538 fi
25539 rm -f conftest.$ac_objext conftest.$ac_ext
25540 fi
25541 rm -f conftest.$ac_objext conftest.$ac_ext
25542 fi
25543 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
25544 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6
25545 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
25546
25547 cat >>confdefs.h <<_ACEOF
25548 #define HAVE_STRUCT_UTMPX_UT_ID 1
25549 _ACEOF
25550
25551
25552 fi
25553
25554     echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
25555 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6
25556 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
25557   echo $ECHO_N "(cached) $ECHO_C" >&6
25558 else
25559   cat >conftest.$ac_ext <<_ACEOF
25560 /* confdefs.h.  */
25561 _ACEOF
25562 cat confdefs.h >>conftest.$ac_ext
25563 cat >>conftest.$ac_ext <<_ACEOF
25564 /* end confdefs.h.  */
25565 $utmp_includes
25566
25567 int
25568 main ()
25569 {
25570 static struct utmp ac_aggr;
25571 if (ac_aggr.ut_id)
25572 return 0;
25573   ;
25574   return 0;
25575 }
25576 _ACEOF
25577 rm -f conftest.$ac_objext
25578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25579   (eval $ac_compile) 2>&5
25580   ac_status=$?
25581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582   (exit $ac_status); } &&
25583          { ac_try='test -s conftest.$ac_objext'
25584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25585   (eval $ac_try) 2>&5
25586   ac_status=$?
25587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588   (exit $ac_status); }; }; then
25589   ac_cv_member_struct_utmp_ut_id=yes
25590 else
25591   echo "$as_me: failed program was:" >&5
25592 sed 's/^/| /' conftest.$ac_ext >&5
25593
25594 cat >conftest.$ac_ext <<_ACEOF
25595 /* confdefs.h.  */
25596 _ACEOF
25597 cat confdefs.h >>conftest.$ac_ext
25598 cat >>conftest.$ac_ext <<_ACEOF
25599 /* end confdefs.h.  */
25600 $utmp_includes
25601
25602 int
25603 main ()
25604 {
25605 static struct utmp ac_aggr;
25606 if (sizeof ac_aggr.ut_id)
25607 return 0;
25608   ;
25609   return 0;
25610 }
25611 _ACEOF
25612 rm -f conftest.$ac_objext
25613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25614   (eval $ac_compile) 2>&5
25615   ac_status=$?
25616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617   (exit $ac_status); } &&
25618          { ac_try='test -s conftest.$ac_objext'
25619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25620   (eval $ac_try) 2>&5
25621   ac_status=$?
25622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623   (exit $ac_status); }; }; then
25624   ac_cv_member_struct_utmp_ut_id=yes
25625 else
25626   echo "$as_me: failed program was:" >&5
25627 sed 's/^/| /' conftest.$ac_ext >&5
25628
25629 ac_cv_member_struct_utmp_ut_id=no
25630 fi
25631 rm -f conftest.$ac_objext conftest.$ac_ext
25632 fi
25633 rm -f conftest.$ac_objext conftest.$ac_ext
25634 fi
25635 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
25636 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6
25637 if test $ac_cv_member_struct_utmp_ut_id = yes; then
25638
25639 cat >>confdefs.h <<_ACEOF
25640 #define HAVE_STRUCT_UTMP_UT_ID 1
25641 _ACEOF
25642
25643
25644 fi
25645
25646     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit" >&5
25647 echo $ECHO_N "checking for struct utmpx.ut_exit... $ECHO_C" >&6
25648 if test "${ac_cv_member_struct_utmpx_ut_exit+set}" = set; then
25649   echo $ECHO_N "(cached) $ECHO_C" >&6
25650 else
25651   cat >conftest.$ac_ext <<_ACEOF
25652 /* confdefs.h.  */
25653 _ACEOF
25654 cat confdefs.h >>conftest.$ac_ext
25655 cat >>conftest.$ac_ext <<_ACEOF
25656 /* end confdefs.h.  */
25657 $utmp_includes
25658
25659 int
25660 main ()
25661 {
25662 static struct utmpx ac_aggr;
25663 if (ac_aggr.ut_exit)
25664 return 0;
25665   ;
25666   return 0;
25667 }
25668 _ACEOF
25669 rm -f conftest.$ac_objext
25670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25671   (eval $ac_compile) 2>&5
25672   ac_status=$?
25673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674   (exit $ac_status); } &&
25675          { ac_try='test -s conftest.$ac_objext'
25676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25677   (eval $ac_try) 2>&5
25678   ac_status=$?
25679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680   (exit $ac_status); }; }; then
25681   ac_cv_member_struct_utmpx_ut_exit=yes
25682 else
25683   echo "$as_me: failed program was:" >&5
25684 sed 's/^/| /' conftest.$ac_ext >&5
25685
25686 cat >conftest.$ac_ext <<_ACEOF
25687 /* confdefs.h.  */
25688 _ACEOF
25689 cat confdefs.h >>conftest.$ac_ext
25690 cat >>conftest.$ac_ext <<_ACEOF
25691 /* end confdefs.h.  */
25692 $utmp_includes
25693
25694 int
25695 main ()
25696 {
25697 static struct utmpx ac_aggr;
25698 if (sizeof ac_aggr.ut_exit)
25699 return 0;
25700   ;
25701   return 0;
25702 }
25703 _ACEOF
25704 rm -f conftest.$ac_objext
25705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25706   (eval $ac_compile) 2>&5
25707   ac_status=$?
25708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709   (exit $ac_status); } &&
25710          { ac_try='test -s conftest.$ac_objext'
25711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25712   (eval $ac_try) 2>&5
25713   ac_status=$?
25714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715   (exit $ac_status); }; }; then
25716   ac_cv_member_struct_utmpx_ut_exit=yes
25717 else
25718   echo "$as_me: failed program was:" >&5
25719 sed 's/^/| /' conftest.$ac_ext >&5
25720
25721 ac_cv_member_struct_utmpx_ut_exit=no
25722 fi
25723 rm -f conftest.$ac_objext conftest.$ac_ext
25724 fi
25725 rm -f conftest.$ac_objext conftest.$ac_ext
25726 fi
25727 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit" >&5
25728 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit" >&6
25729 if test $ac_cv_member_struct_utmpx_ut_exit = yes; then
25730
25731 cat >>confdefs.h <<_ACEOF
25732 #define HAVE_STRUCT_UTMPX_UT_EXIT 1
25733 _ACEOF
25734
25735
25736 fi
25737
25738     echo "$as_me:$LINENO: checking for struct utmp.ut_exit" >&5
25739 echo $ECHO_N "checking for struct utmp.ut_exit... $ECHO_C" >&6
25740 if test "${ac_cv_member_struct_utmp_ut_exit+set}" = set; then
25741   echo $ECHO_N "(cached) $ECHO_C" >&6
25742 else
25743   cat >conftest.$ac_ext <<_ACEOF
25744 /* confdefs.h.  */
25745 _ACEOF
25746 cat confdefs.h >>conftest.$ac_ext
25747 cat >>conftest.$ac_ext <<_ACEOF
25748 /* end confdefs.h.  */
25749 $utmp_includes
25750
25751 int
25752 main ()
25753 {
25754 static struct utmp ac_aggr;
25755 if (ac_aggr.ut_exit)
25756 return 0;
25757   ;
25758   return 0;
25759 }
25760 _ACEOF
25761 rm -f conftest.$ac_objext
25762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25763   (eval $ac_compile) 2>&5
25764   ac_status=$?
25765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766   (exit $ac_status); } &&
25767          { ac_try='test -s conftest.$ac_objext'
25768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25769   (eval $ac_try) 2>&5
25770   ac_status=$?
25771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25772   (exit $ac_status); }; }; then
25773   ac_cv_member_struct_utmp_ut_exit=yes
25774 else
25775   echo "$as_me: failed program was:" >&5
25776 sed 's/^/| /' conftest.$ac_ext >&5
25777
25778 cat >conftest.$ac_ext <<_ACEOF
25779 /* confdefs.h.  */
25780 _ACEOF
25781 cat confdefs.h >>conftest.$ac_ext
25782 cat >>conftest.$ac_ext <<_ACEOF
25783 /* end confdefs.h.  */
25784 $utmp_includes
25785
25786 int
25787 main ()
25788 {
25789 static struct utmp ac_aggr;
25790 if (sizeof ac_aggr.ut_exit)
25791 return 0;
25792   ;
25793   return 0;
25794 }
25795 _ACEOF
25796 rm -f conftest.$ac_objext
25797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25798   (eval $ac_compile) 2>&5
25799   ac_status=$?
25800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801   (exit $ac_status); } &&
25802          { ac_try='test -s conftest.$ac_objext'
25803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25804   (eval $ac_try) 2>&5
25805   ac_status=$?
25806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25807   (exit $ac_status); }; }; then
25808   ac_cv_member_struct_utmp_ut_exit=yes
25809 else
25810   echo "$as_me: failed program was:" >&5
25811 sed 's/^/| /' conftest.$ac_ext >&5
25812
25813 ac_cv_member_struct_utmp_ut_exit=no
25814 fi
25815 rm -f conftest.$ac_objext conftest.$ac_ext
25816 fi
25817 rm -f conftest.$ac_objext conftest.$ac_ext
25818 fi
25819 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit" >&5
25820 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit" >&6
25821 if test $ac_cv_member_struct_utmp_ut_exit = yes; then
25822
25823 cat >>confdefs.h <<_ACEOF
25824 #define HAVE_STRUCT_UTMP_UT_EXIT 1
25825 _ACEOF
25826
25827
25828 fi
25829
25830
25831     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
25832 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_exit... $ECHO_C" >&6
25833 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
25834   echo $ECHO_N "(cached) $ECHO_C" >&6
25835 else
25836   cat >conftest.$ac_ext <<_ACEOF
25837 /* confdefs.h.  */
25838 _ACEOF
25839 cat confdefs.h >>conftest.$ac_ext
25840 cat >>conftest.$ac_ext <<_ACEOF
25841 /* end confdefs.h.  */
25842 $utmp_includes
25843
25844 int
25845 main ()
25846 {
25847 static struct utmpx ac_aggr;
25848 if (ac_aggr.ut_exit.ut_exit)
25849 return 0;
25850   ;
25851   return 0;
25852 }
25853 _ACEOF
25854 rm -f conftest.$ac_objext
25855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25856   (eval $ac_compile) 2>&5
25857   ac_status=$?
25858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25859   (exit $ac_status); } &&
25860          { ac_try='test -s conftest.$ac_objext'
25861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25862   (eval $ac_try) 2>&5
25863   ac_status=$?
25864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865   (exit $ac_status); }; }; then
25866   ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
25867 else
25868   echo "$as_me: failed program was:" >&5
25869 sed 's/^/| /' conftest.$ac_ext >&5
25870
25871 cat >conftest.$ac_ext <<_ACEOF
25872 /* confdefs.h.  */
25873 _ACEOF
25874 cat confdefs.h >>conftest.$ac_ext
25875 cat >>conftest.$ac_ext <<_ACEOF
25876 /* end confdefs.h.  */
25877 $utmp_includes
25878
25879 int
25880 main ()
25881 {
25882 static struct utmpx ac_aggr;
25883 if (sizeof ac_aggr.ut_exit.ut_exit)
25884 return 0;
25885   ;
25886   return 0;
25887 }
25888 _ACEOF
25889 rm -f conftest.$ac_objext
25890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25891   (eval $ac_compile) 2>&5
25892   ac_status=$?
25893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894   (exit $ac_status); } &&
25895          { ac_try='test -s conftest.$ac_objext'
25896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25897   (eval $ac_try) 2>&5
25898   ac_status=$?
25899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25900   (exit $ac_status); }; }; then
25901   ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
25902 else
25903   echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25905
25906 ac_cv_member_struct_utmpx_ut_exit_ut_exit=no
25907 fi
25908 rm -f conftest.$ac_objext conftest.$ac_ext
25909 fi
25910 rm -f conftest.$ac_objext conftest.$ac_ext
25911 fi
25912 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
25913 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6
25914 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
25915
25916 cat >>confdefs.h <<_ACEOF
25917 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
25918 _ACEOF
25919
25920
25921 fi
25922
25923     echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
25924 echo $ECHO_N "checking for struct utmp.ut_exit.ut_exit... $ECHO_C" >&6
25925 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
25926   echo $ECHO_N "(cached) $ECHO_C" >&6
25927 else
25928   cat >conftest.$ac_ext <<_ACEOF
25929 /* confdefs.h.  */
25930 _ACEOF
25931 cat confdefs.h >>conftest.$ac_ext
25932 cat >>conftest.$ac_ext <<_ACEOF
25933 /* end confdefs.h.  */
25934 $utmp_includes
25935
25936 int
25937 main ()
25938 {
25939 static struct utmp ac_aggr;
25940 if (ac_aggr.ut_exit.ut_exit)
25941 return 0;
25942   ;
25943   return 0;
25944 }
25945 _ACEOF
25946 rm -f conftest.$ac_objext
25947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25948   (eval $ac_compile) 2>&5
25949   ac_status=$?
25950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951   (exit $ac_status); } &&
25952          { ac_try='test -s conftest.$ac_objext'
25953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25954   (eval $ac_try) 2>&5
25955   ac_status=$?
25956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957   (exit $ac_status); }; }; then
25958   ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
25959 else
25960   echo "$as_me: failed program was:" >&5
25961 sed 's/^/| /' conftest.$ac_ext >&5
25962
25963 cat >conftest.$ac_ext <<_ACEOF
25964 /* confdefs.h.  */
25965 _ACEOF
25966 cat confdefs.h >>conftest.$ac_ext
25967 cat >>conftest.$ac_ext <<_ACEOF
25968 /* end confdefs.h.  */
25969 $utmp_includes
25970
25971 int
25972 main ()
25973 {
25974 static struct utmp ac_aggr;
25975 if (sizeof ac_aggr.ut_exit.ut_exit)
25976 return 0;
25977   ;
25978   return 0;
25979 }
25980 _ACEOF
25981 rm -f conftest.$ac_objext
25982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25983   (eval $ac_compile) 2>&5
25984   ac_status=$?
25985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986   (exit $ac_status); } &&
25987          { ac_try='test -s conftest.$ac_objext'
25988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25989   (eval $ac_try) 2>&5
25990   ac_status=$?
25991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992   (exit $ac_status); }; }; then
25993   ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
25994 else
25995   echo "$as_me: failed program was:" >&5
25996 sed 's/^/| /' conftest.$ac_ext >&5
25997
25998 ac_cv_member_struct_utmp_ut_exit_ut_exit=no
25999 fi
26000 rm -f conftest.$ac_objext conftest.$ac_ext
26001 fi
26002 rm -f conftest.$ac_objext conftest.$ac_ext
26003 fi
26004 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
26005 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6
26006 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
26007
26008 cat >>confdefs.h <<_ACEOF
26009 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
26010 _ACEOF
26011
26012
26013 fi
26014
26015     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
26016 echo $ECHO_N "checking for struct utmpx.ut_exit.e_exit... $ECHO_C" >&6
26017 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
26018   echo $ECHO_N "(cached) $ECHO_C" >&6
26019 else
26020   cat >conftest.$ac_ext <<_ACEOF
26021 /* confdefs.h.  */
26022 _ACEOF
26023 cat confdefs.h >>conftest.$ac_ext
26024 cat >>conftest.$ac_ext <<_ACEOF
26025 /* end confdefs.h.  */
26026 $utmp_includes
26027
26028 int
26029 main ()
26030 {
26031 static struct utmpx ac_aggr;
26032 if (ac_aggr.ut_exit.e_exit)
26033 return 0;
26034   ;
26035   return 0;
26036 }
26037 _ACEOF
26038 rm -f conftest.$ac_objext
26039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26040   (eval $ac_compile) 2>&5
26041   ac_status=$?
26042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043   (exit $ac_status); } &&
26044          { ac_try='test -s conftest.$ac_objext'
26045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26046   (eval $ac_try) 2>&5
26047   ac_status=$?
26048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049   (exit $ac_status); }; }; then
26050   ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
26051 else
26052   echo "$as_me: failed program was:" >&5
26053 sed 's/^/| /' conftest.$ac_ext >&5
26054
26055 cat >conftest.$ac_ext <<_ACEOF
26056 /* confdefs.h.  */
26057 _ACEOF
26058 cat confdefs.h >>conftest.$ac_ext
26059 cat >>conftest.$ac_ext <<_ACEOF
26060 /* end confdefs.h.  */
26061 $utmp_includes
26062
26063 int
26064 main ()
26065 {
26066 static struct utmpx ac_aggr;
26067 if (sizeof ac_aggr.ut_exit.e_exit)
26068 return 0;
26069   ;
26070   return 0;
26071 }
26072 _ACEOF
26073 rm -f conftest.$ac_objext
26074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26075   (eval $ac_compile) 2>&5
26076   ac_status=$?
26077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078   (exit $ac_status); } &&
26079          { ac_try='test -s conftest.$ac_objext'
26080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26081   (eval $ac_try) 2>&5
26082   ac_status=$?
26083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26084   (exit $ac_status); }; }; then
26085   ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
26086 else
26087   echo "$as_me: failed program was:" >&5
26088 sed 's/^/| /' conftest.$ac_ext >&5
26089
26090 ac_cv_member_struct_utmpx_ut_exit_e_exit=no
26091 fi
26092 rm -f conftest.$ac_objext conftest.$ac_ext
26093 fi
26094 rm -f conftest.$ac_objext conftest.$ac_ext
26095 fi
26096 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
26097 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6
26098 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
26099
26100 cat >>confdefs.h <<_ACEOF
26101 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
26102 _ACEOF
26103
26104
26105 fi
26106
26107     echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
26108 echo $ECHO_N "checking for struct utmp.ut_exit.e_exit... $ECHO_C" >&6
26109 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
26110   echo $ECHO_N "(cached) $ECHO_C" >&6
26111 else
26112   cat >conftest.$ac_ext <<_ACEOF
26113 /* confdefs.h.  */
26114 _ACEOF
26115 cat confdefs.h >>conftest.$ac_ext
26116 cat >>conftest.$ac_ext <<_ACEOF
26117 /* end confdefs.h.  */
26118 $utmp_includes
26119
26120 int
26121 main ()
26122 {
26123 static struct utmp ac_aggr;
26124 if (ac_aggr.ut_exit.e_exit)
26125 return 0;
26126   ;
26127   return 0;
26128 }
26129 _ACEOF
26130 rm -f conftest.$ac_objext
26131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26132   (eval $ac_compile) 2>&5
26133   ac_status=$?
26134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26135   (exit $ac_status); } &&
26136          { ac_try='test -s conftest.$ac_objext'
26137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26138   (eval $ac_try) 2>&5
26139   ac_status=$?
26140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26141   (exit $ac_status); }; }; then
26142   ac_cv_member_struct_utmp_ut_exit_e_exit=yes
26143 else
26144   echo "$as_me: failed program was:" >&5
26145 sed 's/^/| /' conftest.$ac_ext >&5
26146
26147 cat >conftest.$ac_ext <<_ACEOF
26148 /* confdefs.h.  */
26149 _ACEOF
26150 cat confdefs.h >>conftest.$ac_ext
26151 cat >>conftest.$ac_ext <<_ACEOF
26152 /* end confdefs.h.  */
26153 $utmp_includes
26154
26155 int
26156 main ()
26157 {
26158 static struct utmp ac_aggr;
26159 if (sizeof ac_aggr.ut_exit.e_exit)
26160 return 0;
26161   ;
26162   return 0;
26163 }
26164 _ACEOF
26165 rm -f conftest.$ac_objext
26166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26167   (eval $ac_compile) 2>&5
26168   ac_status=$?
26169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170   (exit $ac_status); } &&
26171          { ac_try='test -s conftest.$ac_objext'
26172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26173   (eval $ac_try) 2>&5
26174   ac_status=$?
26175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176   (exit $ac_status); }; }; then
26177   ac_cv_member_struct_utmp_ut_exit_e_exit=yes
26178 else
26179   echo "$as_me: failed program was:" >&5
26180 sed 's/^/| /' conftest.$ac_ext >&5
26181
26182 ac_cv_member_struct_utmp_ut_exit_e_exit=no
26183 fi
26184 rm -f conftest.$ac_objext conftest.$ac_ext
26185 fi
26186 rm -f conftest.$ac_objext conftest.$ac_ext
26187 fi
26188 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
26189 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6
26190 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
26191
26192 cat >>confdefs.h <<_ACEOF
26193 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
26194 _ACEOF
26195
26196
26197 fi
26198
26199
26200     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
26201 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_termination... $ECHO_C" >&6
26202 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
26203   echo $ECHO_N "(cached) $ECHO_C" >&6
26204 else
26205   cat >conftest.$ac_ext <<_ACEOF
26206 /* confdefs.h.  */
26207 _ACEOF
26208 cat confdefs.h >>conftest.$ac_ext
26209 cat >>conftest.$ac_ext <<_ACEOF
26210 /* end confdefs.h.  */
26211 $utmp_includes
26212
26213 int
26214 main ()
26215 {
26216 static struct utmpx ac_aggr;
26217 if (ac_aggr.ut_exit.ut_termination)
26218 return 0;
26219   ;
26220   return 0;
26221 }
26222 _ACEOF
26223 rm -f conftest.$ac_objext
26224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26225   (eval $ac_compile) 2>&5
26226   ac_status=$?
26227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228   (exit $ac_status); } &&
26229          { ac_try='test -s conftest.$ac_objext'
26230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26231   (eval $ac_try) 2>&5
26232   ac_status=$?
26233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26234   (exit $ac_status); }; }; then
26235   ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
26236 else
26237   echo "$as_me: failed program was:" >&5
26238 sed 's/^/| /' conftest.$ac_ext >&5
26239
26240 cat >conftest.$ac_ext <<_ACEOF
26241 /* confdefs.h.  */
26242 _ACEOF
26243 cat confdefs.h >>conftest.$ac_ext
26244 cat >>conftest.$ac_ext <<_ACEOF
26245 /* end confdefs.h.  */
26246 $utmp_includes
26247
26248 int
26249 main ()
26250 {
26251 static struct utmpx ac_aggr;
26252 if (sizeof ac_aggr.ut_exit.ut_termination)
26253 return 0;
26254   ;
26255   return 0;
26256 }
26257 _ACEOF
26258 rm -f conftest.$ac_objext
26259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26260   (eval $ac_compile) 2>&5
26261   ac_status=$?
26262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263   (exit $ac_status); } &&
26264          { ac_try='test -s conftest.$ac_objext'
26265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26266   (eval $ac_try) 2>&5
26267   ac_status=$?
26268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269   (exit $ac_status); }; }; then
26270   ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
26271 else
26272   echo "$as_me: failed program was:" >&5
26273 sed 's/^/| /' conftest.$ac_ext >&5
26274
26275 ac_cv_member_struct_utmpx_ut_exit_ut_termination=no
26276 fi
26277 rm -f conftest.$ac_objext conftest.$ac_ext
26278 fi
26279 rm -f conftest.$ac_objext conftest.$ac_ext
26280 fi
26281 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
26282 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6
26283 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
26284
26285 cat >>confdefs.h <<_ACEOF
26286 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
26287 _ACEOF
26288
26289
26290 fi
26291
26292     echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
26293 echo $ECHO_N "checking for struct utmp.ut_exit.ut_termination... $ECHO_C" >&6
26294 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
26295   echo $ECHO_N "(cached) $ECHO_C" >&6
26296 else
26297   cat >conftest.$ac_ext <<_ACEOF
26298 /* confdefs.h.  */
26299 _ACEOF
26300 cat confdefs.h >>conftest.$ac_ext
26301 cat >>conftest.$ac_ext <<_ACEOF
26302 /* end confdefs.h.  */
26303 $utmp_includes
26304
26305 int
26306 main ()
26307 {
26308 static struct utmp ac_aggr;
26309 if (ac_aggr.ut_exit.ut_termination)
26310 return 0;
26311   ;
26312   return 0;
26313 }
26314 _ACEOF
26315 rm -f conftest.$ac_objext
26316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26317   (eval $ac_compile) 2>&5
26318   ac_status=$?
26319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320   (exit $ac_status); } &&
26321          { ac_try='test -s conftest.$ac_objext'
26322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26323   (eval $ac_try) 2>&5
26324   ac_status=$?
26325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326   (exit $ac_status); }; }; then
26327   ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
26328 else
26329   echo "$as_me: failed program was:" >&5
26330 sed 's/^/| /' conftest.$ac_ext >&5
26331
26332 cat >conftest.$ac_ext <<_ACEOF
26333 /* confdefs.h.  */
26334 _ACEOF
26335 cat confdefs.h >>conftest.$ac_ext
26336 cat >>conftest.$ac_ext <<_ACEOF
26337 /* end confdefs.h.  */
26338 $utmp_includes
26339
26340 int
26341 main ()
26342 {
26343 static struct utmp ac_aggr;
26344 if (sizeof ac_aggr.ut_exit.ut_termination)
26345 return 0;
26346   ;
26347   return 0;
26348 }
26349 _ACEOF
26350 rm -f conftest.$ac_objext
26351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26352   (eval $ac_compile) 2>&5
26353   ac_status=$?
26354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355   (exit $ac_status); } &&
26356          { ac_try='test -s conftest.$ac_objext'
26357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26358   (eval $ac_try) 2>&5
26359   ac_status=$?
26360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361   (exit $ac_status); }; }; then
26362   ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
26363 else
26364   echo "$as_me: failed program was:" >&5
26365 sed 's/^/| /' conftest.$ac_ext >&5
26366
26367 ac_cv_member_struct_utmp_ut_exit_ut_termination=no
26368 fi
26369 rm -f conftest.$ac_objext conftest.$ac_ext
26370 fi
26371 rm -f conftest.$ac_objext conftest.$ac_ext
26372 fi
26373 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
26374 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6
26375 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
26376
26377 cat >>confdefs.h <<_ACEOF
26378 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
26379 _ACEOF
26380
26381
26382 fi
26383
26384     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
26385 echo $ECHO_N "checking for struct utmpx.ut_exit.e_termination... $ECHO_C" >&6
26386 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
26387   echo $ECHO_N "(cached) $ECHO_C" >&6
26388 else
26389   cat >conftest.$ac_ext <<_ACEOF
26390 /* confdefs.h.  */
26391 _ACEOF
26392 cat confdefs.h >>conftest.$ac_ext
26393 cat >>conftest.$ac_ext <<_ACEOF
26394 /* end confdefs.h.  */
26395 $utmp_includes
26396
26397 int
26398 main ()
26399 {
26400 static struct utmpx ac_aggr;
26401 if (ac_aggr.ut_exit.e_termination)
26402 return 0;
26403   ;
26404   return 0;
26405 }
26406 _ACEOF
26407 rm -f conftest.$ac_objext
26408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26409   (eval $ac_compile) 2>&5
26410   ac_status=$?
26411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26412   (exit $ac_status); } &&
26413          { ac_try='test -s conftest.$ac_objext'
26414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26415   (eval $ac_try) 2>&5
26416   ac_status=$?
26417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418   (exit $ac_status); }; }; then
26419   ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
26420 else
26421   echo "$as_me: failed program was:" >&5
26422 sed 's/^/| /' conftest.$ac_ext >&5
26423
26424 cat >conftest.$ac_ext <<_ACEOF
26425 /* confdefs.h.  */
26426 _ACEOF
26427 cat confdefs.h >>conftest.$ac_ext
26428 cat >>conftest.$ac_ext <<_ACEOF
26429 /* end confdefs.h.  */
26430 $utmp_includes
26431
26432 int
26433 main ()
26434 {
26435 static struct utmpx ac_aggr;
26436 if (sizeof ac_aggr.ut_exit.e_termination)
26437 return 0;
26438   ;
26439   return 0;
26440 }
26441 _ACEOF
26442 rm -f conftest.$ac_objext
26443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26444   (eval $ac_compile) 2>&5
26445   ac_status=$?
26446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447   (exit $ac_status); } &&
26448          { ac_try='test -s conftest.$ac_objext'
26449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26450   (eval $ac_try) 2>&5
26451   ac_status=$?
26452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453   (exit $ac_status); }; }; then
26454   ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
26455 else
26456   echo "$as_me: failed program was:" >&5
26457 sed 's/^/| /' conftest.$ac_ext >&5
26458
26459 ac_cv_member_struct_utmpx_ut_exit_e_termination=no
26460 fi
26461 rm -f conftest.$ac_objext conftest.$ac_ext
26462 fi
26463 rm -f conftest.$ac_objext conftest.$ac_ext
26464 fi
26465 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
26466 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6
26467 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
26468
26469 cat >>confdefs.h <<_ACEOF
26470 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
26471 _ACEOF
26472
26473
26474 fi
26475
26476     echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
26477 echo $ECHO_N "checking for struct utmp.ut_exit.e_termination... $ECHO_C" >&6
26478 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
26479   echo $ECHO_N "(cached) $ECHO_C" >&6
26480 else
26481   cat >conftest.$ac_ext <<_ACEOF
26482 /* confdefs.h.  */
26483 _ACEOF
26484 cat confdefs.h >>conftest.$ac_ext
26485 cat >>conftest.$ac_ext <<_ACEOF
26486 /* end confdefs.h.  */
26487 $utmp_includes
26488
26489 int
26490 main ()
26491 {
26492 static struct utmp ac_aggr;
26493 if (ac_aggr.ut_exit.e_termination)
26494 return 0;
26495   ;
26496   return 0;
26497 }
26498 _ACEOF
26499 rm -f conftest.$ac_objext
26500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26501   (eval $ac_compile) 2>&5
26502   ac_status=$?
26503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504   (exit $ac_status); } &&
26505          { ac_try='test -s conftest.$ac_objext'
26506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26507   (eval $ac_try) 2>&5
26508   ac_status=$?
26509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510   (exit $ac_status); }; }; then
26511   ac_cv_member_struct_utmp_ut_exit_e_termination=yes
26512 else
26513   echo "$as_me: failed program was:" >&5
26514 sed 's/^/| /' conftest.$ac_ext >&5
26515
26516 cat >conftest.$ac_ext <<_ACEOF
26517 /* confdefs.h.  */
26518 _ACEOF
26519 cat confdefs.h >>conftest.$ac_ext
26520 cat >>conftest.$ac_ext <<_ACEOF
26521 /* end confdefs.h.  */
26522 $utmp_includes
26523
26524 int
26525 main ()
26526 {
26527 static struct utmp ac_aggr;
26528 if (sizeof ac_aggr.ut_exit.e_termination)
26529 return 0;
26530   ;
26531   return 0;
26532 }
26533 _ACEOF
26534 rm -f conftest.$ac_objext
26535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26536   (eval $ac_compile) 2>&5
26537   ac_status=$?
26538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539   (exit $ac_status); } &&
26540          { ac_try='test -s conftest.$ac_objext'
26541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26542   (eval $ac_try) 2>&5
26543   ac_status=$?
26544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545   (exit $ac_status); }; }; then
26546   ac_cv_member_struct_utmp_ut_exit_e_termination=yes
26547 else
26548   echo "$as_me: failed program was:" >&5
26549 sed 's/^/| /' conftest.$ac_ext >&5
26550
26551 ac_cv_member_struct_utmp_ut_exit_e_termination=no
26552 fi
26553 rm -f conftest.$ac_objext conftest.$ac_ext
26554 fi
26555 rm -f conftest.$ac_objext conftest.$ac_ext
26556 fi
26557 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
26558 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6
26559 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
26560
26561 cat >>confdefs.h <<_ACEOF
26562 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
26563 _ACEOF
26564
26565
26566 fi
26567
26568
26569     LIBOBJS="$LIBOBJS readutmp.$ac_objext"
26570
26571
26572
26573   :
26574
26575
26576
26577
26578
26579
26580   fi
26581
26582 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
26583 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
26584 if test "${gl_cv_c_restrict+set}" = set; then
26585   echo $ECHO_N "(cached) $ECHO_C" >&6
26586 else
26587   gl_cv_c_restrict=no
26588    # Try the official restrict keyword, then gcc's __restrict, and
26589    # the less common variants.
26590    for ac_kw in restrict __restrict __restrict__ _Restrict; do
26591      cat >conftest.$ac_ext <<_ACEOF
26592 /* confdefs.h.  */
26593 _ACEOF
26594 cat confdefs.h >>conftest.$ac_ext
26595 cat >>conftest.$ac_ext <<_ACEOF
26596 /* end confdefs.h.  */
26597 float * $ac_kw x;
26598 _ACEOF
26599 rm -f conftest.$ac_objext
26600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26601   (eval $ac_compile) 2>&5
26602   ac_status=$?
26603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26604   (exit $ac_status); } &&
26605          { ac_try='test -s conftest.$ac_objext'
26606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26607   (eval $ac_try) 2>&5
26608   ac_status=$?
26609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26610   (exit $ac_status); }; }; then
26611   gl_cv_c_restrict=$ac_kw; break
26612 else
26613   echo "$as_me: failed program was:" >&5
26614 sed 's/^/| /' conftest.$ac_ext >&5
26615
26616 fi
26617 rm -f conftest.$ac_objext conftest.$ac_ext
26618    done
26619
26620 fi
26621 echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5
26622 echo "${ECHO_T}$gl_cv_c_restrict" >&6
26623  case $gl_cv_c_restrict in
26624    restrict) ;;
26625    no)
26626 cat >>confdefs.h <<\_ACEOF
26627 #define restrict
26628 _ACEOF
26629  ;;
26630    *)  cat >>confdefs.h <<_ACEOF
26631 #define restrict $gl_cv_c_restrict
26632 _ACEOF
26633  ;;
26634  esac
26635
26636
26637
26638
26639     # Assume we'll default to using the included regex.c.
26640     ac_use_included_regex=yes
26641
26642     # However, if the system regex support is good enough that it passes the
26643     # the following run test, then default to *not* using the included regex.c.
26644     # If cross compiling, assume the test would fail and use the included
26645     # regex.c.  The first failing regular expression is from `Spencer ere
26646     # test #75' in grep-2.3.
26647     echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
26648 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
26649 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
26650   echo $ECHO_N "(cached) $ECHO_C" >&6
26651 else
26652
26653 if test "$cross_compiling" = yes; then
26654                jm_cv_func_working_re_compile_pattern=no
26655 else
26656   cat >conftest.$ac_ext <<_ACEOF
26657 /* confdefs.h.  */
26658 _ACEOF
26659 cat confdefs.h >>conftest.$ac_ext
26660 cat >>conftest.$ac_ext <<_ACEOF
26661 /* end confdefs.h.  */
26662 #include <stdio.h>
26663 #include <string.h>
26664 #include <regex.h>
26665           int
26666           main ()
26667           {
26668             static struct re_pattern_buffer regex;
26669             const char *s;
26670             struct re_registers regs;
26671             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
26672             memset (&regex, 0, sizeof (regex));
26673             s = re_compile_pattern ("a[[:]:]]b\n", 9, &regex);
26674             /* This should fail with _Invalid character class name_ error.  */
26675             if (!s)
26676               exit (1);
26677
26678             /* This should succeed, but doesn't for e.g. glibc-2.1.3.  */
26679             memset (&regex, 0, sizeof (regex));
26680             s = re_compile_pattern ("{1", 2, &regex);
26681
26682             if (s)
26683               exit (1);
26684
26685             /* The following example is derived from a problem report
26686                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
26687             memset (&regex, 0, sizeof (regex));
26688             s = re_compile_pattern ("[an\371]*n", 7, &regex);
26689             if (s)
26690               exit (1);
26691
26692             /* This should match, but doesn't for e.g. glibc-2.2.1.  */
26693             if (re_match (&regex, "an", 2, 0, &regs) != 2)
26694               exit (1);
26695
26696             memset (&regex, 0, sizeof (regex));
26697             s = re_compile_pattern ("x", 1, &regex);
26698             if (s)
26699               exit (1);
26700
26701             /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
26702                work with a negative RANGE argument.  */
26703             if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
26704               exit (1);
26705
26706             exit (0);
26707           }
26708
26709 _ACEOF
26710 rm -f conftest$ac_exeext
26711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26712   (eval $ac_link) 2>&5
26713   ac_status=$?
26714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26717   (eval $ac_try) 2>&5
26718   ac_status=$?
26719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26720   (exit $ac_status); }; }; then
26721   jm_cv_func_working_re_compile_pattern=yes
26722 else
26723   echo "$as_me: program exited with status $ac_status" >&5
26724 echo "$as_me: failed program was:" >&5
26725 sed 's/^/| /' conftest.$ac_ext >&5
26726
26727 ( exit $ac_status )
26728 jm_cv_func_working_re_compile_pattern=no
26729 fi
26730 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26731 fi
26732 fi
26733 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
26734 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
26735     if test $jm_cv_func_working_re_compile_pattern = yes; then
26736       ac_use_included_regex=no
26737     fi
26738
26739     test -n "lib/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
26740 echo "$as_me: error: missing argument" >&2;}
26741    { (exit 1); exit 1; }; }
26742
26743
26744
26745 # Check whether --with-included-regex or --without-included-regex was given.
26746 if test "${with_included_regex+set}" = set; then
26747   withval="$with_included_regex"
26748   jm_with_regex=$withval
26749 else
26750   jm_with_regex=$ac_use_included_regex
26751 fi;
26752         if test "$jm_with_regex" = yes; then
26753           LIBOBJS="$LIBOBJS regex.$ac_objext"
26754
26755
26756
26757
26758
26759
26760
26761
26762   :
26763
26764
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778   :
26779
26780
26781
26782
26783
26784
26785
26786
26787
26788 for ac_func in btowc
26789 do
26790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26791 echo "$as_me:$LINENO: checking for $ac_func" >&5
26792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26793 if eval "test \"\${$as_ac_var+set}\" = set"; then
26794   echo $ECHO_N "(cached) $ECHO_C" >&6
26795 else
26796   cat >conftest.$ac_ext <<_ACEOF
26797 /* confdefs.h.  */
26798 _ACEOF
26799 cat confdefs.h >>conftest.$ac_ext
26800 cat >>conftest.$ac_ext <<_ACEOF
26801 /* end confdefs.h.  */
26802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26803    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26804 #define $ac_func innocuous_$ac_func
26805
26806 /* System header to define __stub macros and hopefully few prototypes,
26807     which can conflict with char $ac_func (); below.
26808     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26809     <limits.h> exists even on freestanding compilers.  */
26810
26811 #ifdef __STDC__
26812 # include <limits.h>
26813 #else
26814 # include <assert.h>
26815 #endif
26816
26817 #undef $ac_func
26818
26819 /* Override any gcc2 internal prototype to avoid an error.  */
26820 #ifdef __cplusplus
26821 extern "C"
26822 {
26823 #endif
26824 /* We use char because int might match the return type of a gcc2
26825    builtin and then its argument prototype would still apply.  */
26826 char $ac_func ();
26827 /* The GNU C library defines this for functions which it implements
26828     to always fail with ENOSYS.  Some functions are actually named
26829     something starting with __ and the normal name is an alias.  */
26830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26831 choke me
26832 #else
26833 char (*f) () = $ac_func;
26834 #endif
26835 #ifdef __cplusplus
26836 }
26837 #endif
26838
26839 int
26840 main ()
26841 {
26842 return f != $ac_func;
26843   ;
26844   return 0;
26845 }
26846 _ACEOF
26847 rm -f conftest.$ac_objext conftest$ac_exeext
26848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26849   (eval $ac_link) 2>&5
26850   ac_status=$?
26851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852   (exit $ac_status); } &&
26853          { ac_try='test -s conftest$ac_exeext'
26854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26855   (eval $ac_try) 2>&5
26856   ac_status=$?
26857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858   (exit $ac_status); }; }; then
26859   eval "$as_ac_var=yes"
26860 else
26861   echo "$as_me: failed program was:" >&5
26862 sed 's/^/| /' conftest.$ac_ext >&5
26863
26864 eval "$as_ac_var=no"
26865 fi
26866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26867 fi
26868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26870 if test `eval echo '${'$as_ac_var'}'` = yes; then
26871   cat >>confdefs.h <<_ACEOF
26872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26873 _ACEOF
26874
26875 fi
26876 done
26877
26878
26879         fi
26880
26881
26882
26883
26884
26885
26886
26887
26888   :
26889
26890
26891
26892
26893
26894
26895
26896
26897
26898
26899
26900
26901   :
26902
26903
26904
26905
26906
26907
26908
26909
26910
26911
26912   :
26913
26914
26915
26916
26917
26918
26919 for ac_func in pathconf
26920 do
26921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26922 echo "$as_me:$LINENO: checking for $ac_func" >&5
26923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26924 if eval "test \"\${$as_ac_var+set}\" = set"; then
26925   echo $ECHO_N "(cached) $ECHO_C" >&6
26926 else
26927   cat >conftest.$ac_ext <<_ACEOF
26928 /* confdefs.h.  */
26929 _ACEOF
26930 cat confdefs.h >>conftest.$ac_ext
26931 cat >>conftest.$ac_ext <<_ACEOF
26932 /* end confdefs.h.  */
26933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26935 #define $ac_func innocuous_$ac_func
26936
26937 /* System header to define __stub macros and hopefully few prototypes,
26938     which can conflict with char $ac_func (); below.
26939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26940     <limits.h> exists even on freestanding compilers.  */
26941
26942 #ifdef __STDC__
26943 # include <limits.h>
26944 #else
26945 # include <assert.h>
26946 #endif
26947
26948 #undef $ac_func
26949
26950 /* Override any gcc2 internal prototype to avoid an error.  */
26951 #ifdef __cplusplus
26952 extern "C"
26953 {
26954 #endif
26955 /* We use char because int might match the return type of a gcc2
26956    builtin and then its argument prototype would still apply.  */
26957 char $ac_func ();
26958 /* The GNU C library defines this for functions which it implements
26959     to always fail with ENOSYS.  Some functions are actually named
26960     something starting with __ and the normal name is an alias.  */
26961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26962 choke me
26963 #else
26964 char (*f) () = $ac_func;
26965 #endif
26966 #ifdef __cplusplus
26967 }
26968 #endif
26969
26970 int
26971 main ()
26972 {
26973 return f != $ac_func;
26974   ;
26975   return 0;
26976 }
26977 _ACEOF
26978 rm -f conftest.$ac_objext conftest$ac_exeext
26979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26980   (eval $ac_link) 2>&5
26981   ac_status=$?
26982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983   (exit $ac_status); } &&
26984          { ac_try='test -s conftest$ac_exeext'
26985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26986   (eval $ac_try) 2>&5
26987   ac_status=$?
26988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989   (exit $ac_status); }; }; then
26990   eval "$as_ac_var=yes"
26991 else
26992   echo "$as_me: failed program was:" >&5
26993 sed 's/^/| /' conftest.$ac_ext >&5
26994
26995 eval "$as_ac_var=no"
26996 fi
26997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26998 fi
26999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27001 if test `eval echo '${'$as_ac_var'}'` = yes; then
27002   cat >>confdefs.h <<_ACEOF
27003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27004 _ACEOF
27005
27006 fi
27007 done
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018   :
27019
27020
27021
27022
27023
27024
27025
27026
27027
27028 for ac_func in fchdir
27029 do
27030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27031 echo "$as_me:$LINENO: checking for $ac_func" >&5
27032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27033 if eval "test \"\${$as_ac_var+set}\" = set"; then
27034   echo $ECHO_N "(cached) $ECHO_C" >&6
27035 else
27036   cat >conftest.$ac_ext <<_ACEOF
27037 /* confdefs.h.  */
27038 _ACEOF
27039 cat confdefs.h >>conftest.$ac_ext
27040 cat >>conftest.$ac_ext <<_ACEOF
27041 /* end confdefs.h.  */
27042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27044 #define $ac_func innocuous_$ac_func
27045
27046 /* System header to define __stub macros and hopefully few prototypes,
27047     which can conflict with char $ac_func (); below.
27048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27049     <limits.h> exists even on freestanding compilers.  */
27050
27051 #ifdef __STDC__
27052 # include <limits.h>
27053 #else
27054 # include <assert.h>
27055 #endif
27056
27057 #undef $ac_func
27058
27059 /* Override any gcc2 internal prototype to avoid an error.  */
27060 #ifdef __cplusplus
27061 extern "C"
27062 {
27063 #endif
27064 /* We use char because int might match the return type of a gcc2
27065    builtin and then its argument prototype would still apply.  */
27066 char $ac_func ();
27067 /* The GNU C library defines this for functions which it implements
27068     to always fail with ENOSYS.  Some functions are actually named
27069     something starting with __ and the normal name is an alias.  */
27070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27071 choke me
27072 #else
27073 char (*f) () = $ac_func;
27074 #endif
27075 #ifdef __cplusplus
27076 }
27077 #endif
27078
27079 int
27080 main ()
27081 {
27082 return f != $ac_func;
27083   ;
27084   return 0;
27085 }
27086 _ACEOF
27087 rm -f conftest.$ac_objext conftest$ac_exeext
27088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27089   (eval $ac_link) 2>&5
27090   ac_status=$?
27091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092   (exit $ac_status); } &&
27093          { ac_try='test -s conftest$ac_exeext'
27094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27095   (eval $ac_try) 2>&5
27096   ac_status=$?
27097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27098   (exit $ac_status); }; }; then
27099   eval "$as_ac_var=yes"
27100 else
27101   echo "$as_me: failed program was:" >&5
27102 sed 's/^/| /' conftest.$ac_ext >&5
27103
27104 eval "$as_ac_var=no"
27105 fi
27106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27107 fi
27108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27109 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27110 if test `eval echo '${'$as_ac_var'}'` = yes; then
27111   cat >>confdefs.h <<_ACEOF
27112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27113 _ACEOF
27114
27115 fi
27116 done
27117
27118
27119
27120   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
27121   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
27122
27123   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
27124   # programs in the package would end up linked with that potentially-shared
27125   # library, inducing unnecessary run-time overhead.
27126   fetish_saved_libs=$LIBS
27127
27128   echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
27129 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
27130 if test "${ac_cv_search_clock_gettime+set}" = set; then
27131   echo $ECHO_N "(cached) $ECHO_C" >&6
27132 else
27133
27134     ac_func_search_save_LIBS=$LIBS
27135     ac_cv_search_clock_gettime=no
27136     cat >conftest.$ac_ext <<_ACEOF
27137 /* confdefs.h.  */
27138 _ACEOF
27139 cat confdefs.h >>conftest.$ac_ext
27140 cat >>conftest.$ac_ext <<_ACEOF
27141 /* end confdefs.h.  */
27142
27143 /* Override any gcc2 internal prototype to avoid an error.  */
27144 #ifdef __cplusplus
27145 extern "C"
27146 #endif
27147 /* We use char because int might match the return type of a gcc2
27148    builtin and then its argument prototype would still apply.  */
27149 char clock_gettime ();
27150 int
27151 main ()
27152 {
27153 clock_gettime ();
27154   ;
27155   return 0;
27156 }
27157 _ACEOF
27158 rm -f conftest.$ac_objext conftest$ac_exeext
27159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27160   (eval $ac_link) 2>&5
27161   ac_status=$?
27162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27163   (exit $ac_status); } &&
27164          { ac_try='test -s conftest$ac_exeext'
27165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27166   (eval $ac_try) 2>&5
27167   ac_status=$?
27168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169   (exit $ac_status); }; }; then
27170   ac_cv_search_clock_gettime='none required'
27171 else
27172   echo "$as_me: failed program was:" >&5
27173 sed 's/^/| /' conftest.$ac_ext >&5
27174
27175 fi
27176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27177     if test "$ac_cv_search_clock_gettime" = no; then
27178       for ac_lib in rt posix4; do
27179         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27180         cat >conftest.$ac_ext <<_ACEOF
27181 /* confdefs.h.  */
27182 _ACEOF
27183 cat confdefs.h >>conftest.$ac_ext
27184 cat >>conftest.$ac_ext <<_ACEOF
27185 /* end confdefs.h.  */
27186
27187 /* Override any gcc2 internal prototype to avoid an error.  */
27188 #ifdef __cplusplus
27189 extern "C"
27190 #endif
27191 /* We use char because int might match the return type of a gcc2
27192    builtin and then its argument prototype would still apply.  */
27193 char clock_gettime ();
27194 int
27195 main ()
27196 {
27197 clock_gettime ();
27198   ;
27199   return 0;
27200 }
27201 _ACEOF
27202 rm -f conftest.$ac_objext conftest$ac_exeext
27203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27204   (eval $ac_link) 2>&5
27205   ac_status=$?
27206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27207   (exit $ac_status); } &&
27208          { ac_try='test -s conftest$ac_exeext'
27209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27210   (eval $ac_try) 2>&5
27211   ac_status=$?
27212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213   (exit $ac_status); }; }; then
27214   ac_cv_search_clock_gettime="-l$ac_lib"; break
27215 else
27216   echo "$as_me: failed program was:" >&5
27217 sed 's/^/| /' conftest.$ac_ext >&5
27218
27219 fi
27220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27221       done
27222     fi
27223     LIBS=$ac_func_search_save_LIBS
27224
27225 fi
27226 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
27227 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
27228
27229   if test "$ac_cv_search_clock_gettime" = no; then :
27230
27231   else
27232     if test "$ac_cv_search_clock_gettime" = 'none required'; then :
27233
27234     else
27235       LIBS="$ac_cv_search_clock_gettime $LIBS"
27236       LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
27237     fi
27238   fi
27239
27240
27241
27242
27243 for ac_func in clock_gettime clock_settime
27244 do
27245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27246 echo "$as_me:$LINENO: checking for $ac_func" >&5
27247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27248 if eval "test \"\${$as_ac_var+set}\" = set"; then
27249   echo $ECHO_N "(cached) $ECHO_C" >&6
27250 else
27251   cat >conftest.$ac_ext <<_ACEOF
27252 /* confdefs.h.  */
27253 _ACEOF
27254 cat confdefs.h >>conftest.$ac_ext
27255 cat >>conftest.$ac_ext <<_ACEOF
27256 /* end confdefs.h.  */
27257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27259 #define $ac_func innocuous_$ac_func
27260
27261 /* System header to define __stub macros and hopefully few prototypes,
27262     which can conflict with char $ac_func (); below.
27263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27264     <limits.h> exists even on freestanding compilers.  */
27265
27266 #ifdef __STDC__
27267 # include <limits.h>
27268 #else
27269 # include <assert.h>
27270 #endif
27271
27272 #undef $ac_func
27273
27274 /* Override any gcc2 internal prototype to avoid an error.  */
27275 #ifdef __cplusplus
27276 extern "C"
27277 {
27278 #endif
27279 /* We use char because int might match the return type of a gcc2
27280    builtin and then its argument prototype would still apply.  */
27281 char $ac_func ();
27282 /* The GNU C library defines this for functions which it implements
27283     to always fail with ENOSYS.  Some functions are actually named
27284     something starting with __ and the normal name is an alias.  */
27285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27286 choke me
27287 #else
27288 char (*f) () = $ac_func;
27289 #endif
27290 #ifdef __cplusplus
27291 }
27292 #endif
27293
27294 int
27295 main ()
27296 {
27297 return f != $ac_func;
27298   ;
27299   return 0;
27300 }
27301 _ACEOF
27302 rm -f conftest.$ac_objext conftest$ac_exeext
27303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27304   (eval $ac_link) 2>&5
27305   ac_status=$?
27306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307   (exit $ac_status); } &&
27308          { ac_try='test -s conftest$ac_exeext'
27309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27310   (eval $ac_try) 2>&5
27311   ac_status=$?
27312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313   (exit $ac_status); }; }; then
27314   eval "$as_ac_var=yes"
27315 else
27316   echo "$as_me: failed program was:" >&5
27317 sed 's/^/| /' conftest.$ac_ext >&5
27318
27319 eval "$as_ac_var=no"
27320 fi
27321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27322 fi
27323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27325 if test `eval echo '${'$as_ac_var'}'` = yes; then
27326   cat >>confdefs.h <<_ACEOF
27327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27328 _ACEOF
27329
27330 fi
27331 done
27332
27333   LIBS=$fetish_saved_libs
27334
27335
27336     # Need clock_settime.
27337
27338
27339
27340
27341
27342
27343
27344
27345
27346
27347
27348   :
27349
27350
27351
27352
27353
27354
27355
27356
27357   :
27358
27359
27360
27361
27362
27363
27364
27365
27366
27367 for ac_func in strcasecmp
27368 do
27369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27370 echo "$as_me:$LINENO: checking for $ac_func" >&5
27371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27372 if eval "test \"\${$as_ac_var+set}\" = set"; then
27373   echo $ECHO_N "(cached) $ECHO_C" >&6
27374 else
27375   cat >conftest.$ac_ext <<_ACEOF
27376 /* confdefs.h.  */
27377 _ACEOF
27378 cat confdefs.h >>conftest.$ac_ext
27379 cat >>conftest.$ac_ext <<_ACEOF
27380 /* end confdefs.h.  */
27381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27383 #define $ac_func innocuous_$ac_func
27384
27385 /* System header to define __stub macros and hopefully few prototypes,
27386     which can conflict with char $ac_func (); below.
27387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27388     <limits.h> exists even on freestanding compilers.  */
27389
27390 #ifdef __STDC__
27391 # include <limits.h>
27392 #else
27393 # include <assert.h>
27394 #endif
27395
27396 #undef $ac_func
27397
27398 /* Override any gcc2 internal prototype to avoid an error.  */
27399 #ifdef __cplusplus
27400 extern "C"
27401 {
27402 #endif
27403 /* We use char because int might match the return type of a gcc2
27404    builtin and then its argument prototype would still apply.  */
27405 char $ac_func ();
27406 /* The GNU C library defines this for functions which it implements
27407     to always fail with ENOSYS.  Some functions are actually named
27408     something starting with __ and the normal name is an alias.  */
27409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27410 choke me
27411 #else
27412 char (*f) () = $ac_func;
27413 #endif
27414 #ifdef __cplusplus
27415 }
27416 #endif
27417
27418 int
27419 main ()
27420 {
27421 return f != $ac_func;
27422   ;
27423   return 0;
27424 }
27425 _ACEOF
27426 rm -f conftest.$ac_objext conftest$ac_exeext
27427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27428   (eval $ac_link) 2>&5
27429   ac_status=$?
27430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431   (exit $ac_status); } &&
27432          { ac_try='test -s conftest$ac_exeext'
27433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27434   (eval $ac_try) 2>&5
27435   ac_status=$?
27436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27437   (exit $ac_status); }; }; then
27438   eval "$as_ac_var=yes"
27439 else
27440   echo "$as_me: failed program was:" >&5
27441 sed 's/^/| /' conftest.$ac_ext >&5
27442
27443 eval "$as_ac_var=no"
27444 fi
27445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27446 fi
27447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27449 if test `eval echo '${'$as_ac_var'}'` = yes; then
27450   cat >>confdefs.h <<_ACEOF
27451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27452 _ACEOF
27453
27454 else
27455   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27456 fi
27457 done
27458
27459
27460   if test $ac_cv_func_strcasecmp = no; then
27461
27462   :
27463
27464   fi
27465
27466
27467
27468 for ac_func in strncasecmp
27469 do
27470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27471 echo "$as_me:$LINENO: checking for $ac_func" >&5
27472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27473 if eval "test \"\${$as_ac_var+set}\" = set"; then
27474   echo $ECHO_N "(cached) $ECHO_C" >&6
27475 else
27476   cat >conftest.$ac_ext <<_ACEOF
27477 /* confdefs.h.  */
27478 _ACEOF
27479 cat confdefs.h >>conftest.$ac_ext
27480 cat >>conftest.$ac_ext <<_ACEOF
27481 /* end confdefs.h.  */
27482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27484 #define $ac_func innocuous_$ac_func
27485
27486 /* System header to define __stub macros and hopefully few prototypes,
27487     which can conflict with char $ac_func (); below.
27488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27489     <limits.h> exists even on freestanding compilers.  */
27490
27491 #ifdef __STDC__
27492 # include <limits.h>
27493 #else
27494 # include <assert.h>
27495 #endif
27496
27497 #undef $ac_func
27498
27499 /* Override any gcc2 internal prototype to avoid an error.  */
27500 #ifdef __cplusplus
27501 extern "C"
27502 {
27503 #endif
27504 /* We use char because int might match the return type of a gcc2
27505    builtin and then its argument prototype would still apply.  */
27506 char $ac_func ();
27507 /* The GNU C library defines this for functions which it implements
27508     to always fail with ENOSYS.  Some functions are actually named
27509     something starting with __ and the normal name is an alias.  */
27510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27511 choke me
27512 #else
27513 char (*f) () = $ac_func;
27514 #endif
27515 #ifdef __cplusplus
27516 }
27517 #endif
27518
27519 int
27520 main ()
27521 {
27522 return f != $ac_func;
27523   ;
27524   return 0;
27525 }
27526 _ACEOF
27527 rm -f conftest.$ac_objext conftest$ac_exeext
27528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27529   (eval $ac_link) 2>&5
27530   ac_status=$?
27531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27532   (exit $ac_status); } &&
27533          { ac_try='test -s conftest$ac_exeext'
27534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27535   (eval $ac_try) 2>&5
27536   ac_status=$?
27537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27538   (exit $ac_status); }; }; then
27539   eval "$as_ac_var=yes"
27540 else
27541   echo "$as_me: failed program was:" >&5
27542 sed 's/^/| /' conftest.$ac_ext >&5
27543
27544 eval "$as_ac_var=no"
27545 fi
27546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27547 fi
27548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27549 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27550 if test `eval echo '${'$as_ac_var'}'` = yes; then
27551   cat >>confdefs.h <<_ACEOF
27552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27553 _ACEOF
27554
27555 else
27556   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27557 fi
27558 done
27559
27560
27561   if test $ac_cv_func_strncasecmp = no; then
27562
27563   :
27564
27565   fi
27566
27567
27568
27569
27570
27571   :
27572
27573
27574
27575
27576
27577
27578
27579
27580
27581
27582   :
27583
27584
27585
27586
27587
27588   echo "$as_me:$LINENO: checking for struct timespec" >&5
27589 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
27590 if test "${fu_cv_sys_struct_timespec+set}" = set; then
27591   echo $ECHO_N "(cached) $ECHO_C" >&6
27592 else
27593
27594 cat >conftest.$ac_ext <<_ACEOF
27595 /* confdefs.h.  */
27596 _ACEOF
27597 cat confdefs.h >>conftest.$ac_ext
27598 cat >>conftest.$ac_ext <<_ACEOF
27599 /* end confdefs.h.  */
27600
27601 #      if TIME_WITH_SYS_TIME
27602 #       include <sys/time.h>
27603 #       include <time.h>
27604 #      else
27605 #       if HAVE_SYS_TIME_H
27606 #        include <sys/time.h>
27607 #       else
27608 #        include <time.h>
27609 #       endif
27610 #      endif
27611
27612 int
27613 main ()
27614 {
27615 static struct timespec x; x.tv_sec = x.tv_nsec;
27616   ;
27617   return 0;
27618 }
27619 _ACEOF
27620 rm -f conftest.$ac_objext
27621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27622   (eval $ac_compile) 2>&5
27623   ac_status=$?
27624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625   (exit $ac_status); } &&
27626          { ac_try='test -s conftest.$ac_objext'
27627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27628   (eval $ac_try) 2>&5
27629   ac_status=$?
27630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631   (exit $ac_status); }; }; then
27632   fu_cv_sys_struct_timespec=yes
27633 else
27634   echo "$as_me: failed program was:" >&5
27635 sed 's/^/| /' conftest.$ac_ext >&5
27636
27637 fu_cv_sys_struct_timespec=no
27638 fi
27639 rm -f conftest.$ac_objext conftest.$ac_ext
27640
27641 fi
27642 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
27643 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
27644
27645   if test $fu_cv_sys_struct_timespec = yes; then
27646
27647 cat >>confdefs.h <<\_ACEOF
27648 #define HAVE_STRUCT_TIMESPEC 1
27649 _ACEOF
27650
27651   fi
27652
27653   echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
27654 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
27655 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
27656   echo $ECHO_N "(cached) $ECHO_C" >&6
27657 else
27658   ac_save_CPPFLAGS="$CPPFLAGS"
27659     ac_cv_struct_st_mtim_nsec=no
27660     # tv_nsec -- the usual case
27661     # _tv_nsec -- Solaris 2.6, if
27662     #   (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
27663     #    && !defined __EXTENSIONS__)
27664     # st__tim.tv_nsec -- UnixWare 2.1.2
27665     for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
27666       CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
27667
27668 cat >conftest.$ac_ext <<_ACEOF
27669 /* confdefs.h.  */
27670 _ACEOF
27671 cat confdefs.h >>conftest.$ac_ext
27672 cat >>conftest.$ac_ext <<_ACEOF
27673 /* end confdefs.h.  */
27674 #include <sys/types.h>
27675 #include <sys/stat.h>
27676 int
27677 main ()
27678 {
27679 struct stat s; s.st_mtim.ST_MTIM_NSEC;
27680   ;
27681   return 0;
27682 }
27683 _ACEOF
27684 rm -f conftest.$ac_objext
27685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27686   (eval $ac_compile) 2>&5
27687   ac_status=$?
27688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689   (exit $ac_status); } &&
27690          { ac_try='test -s conftest.$ac_objext'
27691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27692   (eval $ac_try) 2>&5
27693   ac_status=$?
27694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695   (exit $ac_status); }; }; then
27696   ac_cv_struct_st_mtim_nsec=$ac_val; break
27697 else
27698   echo "$as_me: failed program was:" >&5
27699 sed 's/^/| /' conftest.$ac_ext >&5
27700
27701 fi
27702 rm -f conftest.$ac_objext conftest.$ac_ext
27703     done
27704     CPPFLAGS="$ac_save_CPPFLAGS"
27705 fi
27706 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
27707 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
27708
27709   if test $ac_cv_struct_st_mtim_nsec != no; then
27710
27711 cat >>confdefs.h <<_ACEOF
27712 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
27713 _ACEOF
27714
27715   fi
27716
27717
27718
27719
27720
27721   echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
27722 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
27723 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
27724   echo $ECHO_N "(cached) $ECHO_C" >&6
27725 else
27726   cat >conftest.$ac_ext <<_ACEOF
27727 /* confdefs.h.  */
27728 _ACEOF
27729 cat confdefs.h >>conftest.$ac_ext
27730 cat >>conftest.$ac_ext <<_ACEOF
27731 /* end confdefs.h.  */
27732 #include <time.h>
27733
27734 int
27735 main ()
27736 {
27737 #ifndef nanosleep
27738   char *p = (char *) nanosleep;
27739 #endif
27740
27741   ;
27742   return 0;
27743 }
27744 _ACEOF
27745 rm -f conftest.$ac_objext
27746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27747   (eval $ac_compile) 2>&5
27748   ac_status=$?
27749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750   (exit $ac_status); } &&
27751          { ac_try='test -s conftest.$ac_objext'
27752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27753   (eval $ac_try) 2>&5
27754   ac_status=$?
27755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27756   (exit $ac_status); }; }; then
27757   ac_cv_have_decl_nanosleep=yes
27758 else
27759   echo "$as_me: failed program was:" >&5
27760 sed 's/^/| /' conftest.$ac_ext >&5
27761
27762 ac_cv_have_decl_nanosleep=no
27763 fi
27764 rm -f conftest.$ac_objext conftest.$ac_ext
27765 fi
27766 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
27767 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
27768 if test $ac_cv_have_decl_nanosleep = yes; then
27769
27770 cat >>confdefs.h <<_ACEOF
27771 #define HAVE_DECL_NANOSLEEP 1
27772 _ACEOF
27773
27774
27775 else
27776   cat >>confdefs.h <<_ACEOF
27777 #define HAVE_DECL_NANOSLEEP 0
27778 _ACEOF
27779
27780
27781 fi
27782
27783
27784
27785
27786
27787   :
27788
27789
27790
27791
27792
27793
27794
27795
27796
27797   :
27798
27799
27800
27801
27802
27803
27804
27805
27806
27807
27808
27809
27810
27811
27812   :
27813
27814
27815
27816
27817
27818
27819
27820
27821
27822
27823
27824
27825
27826   echo "$as_me:$LINENO: checking determine whether the utimes function works" >&5
27827 echo $ECHO_N "checking determine whether the utimes function works... $ECHO_C" >&6
27828 if test "${gl_cv_func_working_utimes+set}" = set; then
27829   echo $ECHO_N "(cached) $ECHO_C" >&6
27830 else
27831
27832   if test "$cross_compiling" = yes; then
27833   gl_cv_func_working_utimes=no
27834 else
27835   cat >conftest.$ac_ext <<_ACEOF
27836 /* confdefs.h.  */
27837 _ACEOF
27838 cat confdefs.h >>conftest.$ac_ext
27839 cat >>conftest.$ac_ext <<_ACEOF
27840 /* end confdefs.h.  */
27841
27842 #include <sys/types.h>
27843 #include <sys/stat.h>
27844 #include <sys/time.h>
27845 #include <unistd.h>
27846 #include <stdlib.h>
27847 #include <stdio.h>
27848 #include <utime.h>
27849
27850 int
27851 main ()
27852 {
27853   static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
27854   struct stat sbuf;
27855   char const *file = "conftest.utimes";
27856   FILE *f;
27857
27858   exit ( ! ((f = fopen (file, "w"))
27859             && fclose (f) == 0
27860             && utimes (file, timeval) == 0
27861             && lstat (file, &sbuf) == 0
27862             && sbuf.st_atime == timeval[0].tv_sec
27863             && sbuf.st_mtime == timeval[1].tv_sec) );
27864 }
27865
27866 _ACEOF
27867 rm -f conftest$ac_exeext
27868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27869   (eval $ac_link) 2>&5
27870   ac_status=$?
27871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27874   (eval $ac_try) 2>&5
27875   ac_status=$?
27876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877   (exit $ac_status); }; }; then
27878   gl_cv_func_working_utimes=yes
27879 else
27880   echo "$as_me: program exited with status $ac_status" >&5
27881 echo "$as_me: failed program was:" >&5
27882 sed 's/^/| /' conftest.$ac_ext >&5
27883
27884 ( exit $ac_status )
27885 gl_cv_func_working_utimes=no
27886 fi
27887 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27888 fi
27889 fi
27890 echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
27891 echo "${ECHO_T}$gl_cv_func_working_utimes" >&6
27892
27893   if test $gl_cv_func_working_utimes = yes; then
27894
27895 cat >>confdefs.h <<\_ACEOF
27896 #define HAVE_WORKING_UTIMES 1
27897 _ACEOF
27898
27899   fi
27900
27901
27902
27903
27904
27905
27906
27907
27908 for ac_header in stdlib.h
27909 do
27910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27912   echo "$as_me:$LINENO: checking for $ac_header" >&5
27913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27915   echo $ECHO_N "(cached) $ECHO_C" >&6
27916 fi
27917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27919 else
27920   # Is the header compilable?
27921 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27923 cat >conftest.$ac_ext <<_ACEOF
27924 /* confdefs.h.  */
27925 _ACEOF
27926 cat confdefs.h >>conftest.$ac_ext
27927 cat >>conftest.$ac_ext <<_ACEOF
27928 /* end confdefs.h.  */
27929 $ac_includes_default
27930 #include <$ac_header>
27931 _ACEOF
27932 rm -f conftest.$ac_objext
27933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27934   (eval $ac_compile) 2>&5
27935   ac_status=$?
27936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937   (exit $ac_status); } &&
27938          { ac_try='test -s conftest.$ac_objext'
27939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27940   (eval $ac_try) 2>&5
27941   ac_status=$?
27942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27943   (exit $ac_status); }; }; then
27944   ac_header_compiler=yes
27945 else
27946   echo "$as_me: failed program was:" >&5
27947 sed 's/^/| /' conftest.$ac_ext >&5
27948
27949 ac_header_compiler=no
27950 fi
27951 rm -f conftest.$ac_objext conftest.$ac_ext
27952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27953 echo "${ECHO_T}$ac_header_compiler" >&6
27954
27955 # Is the header present?
27956 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27958 cat >conftest.$ac_ext <<_ACEOF
27959 /* confdefs.h.  */
27960 _ACEOF
27961 cat confdefs.h >>conftest.$ac_ext
27962 cat >>conftest.$ac_ext <<_ACEOF
27963 /* end confdefs.h.  */
27964 #include <$ac_header>
27965 _ACEOF
27966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27967   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27968   ac_status=$?
27969   grep -v '^ *+' conftest.er1 >conftest.err
27970   rm -f conftest.er1
27971   cat conftest.err >&5
27972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973   (exit $ac_status); } >/dev/null; then
27974   if test -s conftest.err; then
27975     ac_cpp_err=$ac_c_preproc_warn_flag
27976   else
27977     ac_cpp_err=
27978   fi
27979 else
27980   ac_cpp_err=yes
27981 fi
27982 if test -z "$ac_cpp_err"; then
27983   ac_header_preproc=yes
27984 else
27985   echo "$as_me: failed program was:" >&5
27986 sed 's/^/| /' conftest.$ac_ext >&5
27987
27988   ac_header_preproc=no
27989 fi
27990 rm -f conftest.err conftest.$ac_ext
27991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27992 echo "${ECHO_T}$ac_header_preproc" >&6
27993
27994 # So?  What about this header?
27995 case $ac_header_compiler:$ac_header_preproc in
27996   yes:no )
27997     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28001     ac_header_preproc=yes
28002     ;;
28003   no:yes )
28004     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28006     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28007 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28008     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28010     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28011 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28012     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28014     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28016     (
28017       cat <<\_ASBOX
28018 ## ------------------------------------ ##
28019 ## Report this to bug-coreutils@gnu.org ##
28020 ## ------------------------------------ ##
28021 _ASBOX
28022     ) |
28023       sed "s/^/$as_me: WARNING:     /" >&2
28024     ;;
28025 esac
28026 echo "$as_me:$LINENO: checking for $ac_header" >&5
28027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28029   echo $ECHO_N "(cached) $ECHO_C" >&6
28030 else
28031   eval "$as_ac_Header=\$ac_header_preproc"
28032 fi
28033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28035
28036 fi
28037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28038   cat >>confdefs.h <<_ACEOF
28039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28040 _ACEOF
28041
28042 fi
28043
28044 done
28045
28046 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
28047 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
28048 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
28049   echo $ECHO_N "(cached) $ECHO_C" >&6
28050 else
28051   if test "$cross_compiling" = yes; then
28052   ac_cv_func_malloc_0_nonnull=no
28053 else
28054   cat >conftest.$ac_ext <<_ACEOF
28055 /* confdefs.h.  */
28056 _ACEOF
28057 cat confdefs.h >>conftest.$ac_ext
28058 cat >>conftest.$ac_ext <<_ACEOF
28059 /* end confdefs.h.  */
28060 #if STDC_HEADERS || HAVE_STDLIB_H
28061 # include <stdlib.h>
28062 #else
28063 char *malloc ();
28064 #endif
28065
28066 int
28067 main ()
28068 {
28069 exit (malloc (0) ? 0 : 1);
28070   ;
28071   return 0;
28072 }
28073 _ACEOF
28074 rm -f conftest$ac_exeext
28075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28076   (eval $ac_link) 2>&5
28077   ac_status=$?
28078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28081   (eval $ac_try) 2>&5
28082   ac_status=$?
28083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084   (exit $ac_status); }; }; then
28085   ac_cv_func_malloc_0_nonnull=yes
28086 else
28087   echo "$as_me: program exited with status $ac_status" >&5
28088 echo "$as_me: failed program was:" >&5
28089 sed 's/^/| /' conftest.$ac_ext >&5
28090
28091 ( exit $ac_status )
28092 ac_cv_func_malloc_0_nonnull=no
28093 fi
28094 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28095 fi
28096 fi
28097 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
28098 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
28099 if test $ac_cv_func_malloc_0_nonnull = yes; then
28100
28101 cat >>confdefs.h <<\_ACEOF
28102 #define HAVE_MALLOC 1
28103 _ACEOF
28104
28105 else
28106   cat >>confdefs.h <<\_ACEOF
28107 #define HAVE_MALLOC 0
28108 _ACEOF
28109
28110    LIBOBJS="$LIBOBJS malloc.$ac_objext"
28111
28112 cat >>confdefs.h <<\_ACEOF
28113 #define malloc rpl_malloc
28114 _ACEOF
28115
28116 fi
28117
28118
28119
28120
28121
28122     if test X"$ac_cv_func_malloc_0_nonnull" = Xno || test X"$ac_cv_func_malloc_works" = Xno; then
28123
28124   :
28125
28126   fi
28127
28128
28129 for ac_header in stdlib.h
28130 do
28131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28133   echo "$as_me:$LINENO: checking for $ac_header" >&5
28134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28136   echo $ECHO_N "(cached) $ECHO_C" >&6
28137 fi
28138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28140 else
28141   # Is the header compilable?
28142 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28144 cat >conftest.$ac_ext <<_ACEOF
28145 /* confdefs.h.  */
28146 _ACEOF
28147 cat confdefs.h >>conftest.$ac_ext
28148 cat >>conftest.$ac_ext <<_ACEOF
28149 /* end confdefs.h.  */
28150 $ac_includes_default
28151 #include <$ac_header>
28152 _ACEOF
28153 rm -f conftest.$ac_objext
28154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28155   (eval $ac_compile) 2>&5
28156   ac_status=$?
28157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28158   (exit $ac_status); } &&
28159          { ac_try='test -s conftest.$ac_objext'
28160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28161   (eval $ac_try) 2>&5
28162   ac_status=$?
28163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164   (exit $ac_status); }; }; then
28165   ac_header_compiler=yes
28166 else
28167   echo "$as_me: failed program was:" >&5
28168 sed 's/^/| /' conftest.$ac_ext >&5
28169
28170 ac_header_compiler=no
28171 fi
28172 rm -f conftest.$ac_objext conftest.$ac_ext
28173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28174 echo "${ECHO_T}$ac_header_compiler" >&6
28175
28176 # Is the header present?
28177 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28179 cat >conftest.$ac_ext <<_ACEOF
28180 /* confdefs.h.  */
28181 _ACEOF
28182 cat confdefs.h >>conftest.$ac_ext
28183 cat >>conftest.$ac_ext <<_ACEOF
28184 /* end confdefs.h.  */
28185 #include <$ac_header>
28186 _ACEOF
28187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28188   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28189   ac_status=$?
28190   grep -v '^ *+' conftest.er1 >conftest.err
28191   rm -f conftest.er1
28192   cat conftest.err >&5
28193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194   (exit $ac_status); } >/dev/null; then
28195   if test -s conftest.err; then
28196     ac_cpp_err=$ac_c_preproc_warn_flag
28197   else
28198     ac_cpp_err=
28199   fi
28200 else
28201   ac_cpp_err=yes
28202 fi
28203 if test -z "$ac_cpp_err"; then
28204   ac_header_preproc=yes
28205 else
28206   echo "$as_me: failed program was:" >&5
28207 sed 's/^/| /' conftest.$ac_ext >&5
28208
28209   ac_header_preproc=no
28210 fi
28211 rm -f conftest.err conftest.$ac_ext
28212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28213 echo "${ECHO_T}$ac_header_preproc" >&6
28214
28215 # So?  What about this header?
28216 case $ac_header_compiler:$ac_header_preproc in
28217   yes:no )
28218     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28222     ac_header_preproc=yes
28223     ;;
28224   no:yes )
28225     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28227     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28228 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28229     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28231     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28232 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28233     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28235     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28237     (
28238       cat <<\_ASBOX
28239 ## ------------------------------------ ##
28240 ## Report this to bug-coreutils@gnu.org ##
28241 ## ------------------------------------ ##
28242 _ASBOX
28243     ) |
28244       sed "s/^/$as_me: WARNING:     /" >&2
28245     ;;
28246 esac
28247 echo "$as_me:$LINENO: checking for $ac_header" >&5
28248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28250   echo $ECHO_N "(cached) $ECHO_C" >&6
28251 else
28252   eval "$as_ac_Header=\$ac_header_preproc"
28253 fi
28254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28256
28257 fi
28258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28259   cat >>confdefs.h <<_ACEOF
28260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28261 _ACEOF
28262
28263 fi
28264
28265 done
28266
28267 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
28268 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
28269 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
28270   echo $ECHO_N "(cached) $ECHO_C" >&6
28271 else
28272   if test "$cross_compiling" = yes; then
28273   ac_cv_func_realloc_0_nonnull=no
28274 else
28275   cat >conftest.$ac_ext <<_ACEOF
28276 /* confdefs.h.  */
28277 _ACEOF
28278 cat confdefs.h >>conftest.$ac_ext
28279 cat >>conftest.$ac_ext <<_ACEOF
28280 /* end confdefs.h.  */
28281 #if STDC_HEADERS || HAVE_STDLIB_H
28282 # include <stdlib.h>
28283 #else
28284 char *realloc ();
28285 #endif
28286
28287 int
28288 main ()
28289 {
28290 exit (realloc (0, 0) ? 0 : 1);
28291   ;
28292   return 0;
28293 }
28294 _ACEOF
28295 rm -f conftest$ac_exeext
28296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28297   (eval $ac_link) 2>&5
28298   ac_status=$?
28299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28300   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28302   (eval $ac_try) 2>&5
28303   ac_status=$?
28304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305   (exit $ac_status); }; }; then
28306   ac_cv_func_realloc_0_nonnull=yes
28307 else
28308   echo "$as_me: program exited with status $ac_status" >&5
28309 echo "$as_me: failed program was:" >&5
28310 sed 's/^/| /' conftest.$ac_ext >&5
28311
28312 ( exit $ac_status )
28313 ac_cv_func_realloc_0_nonnull=no
28314 fi
28315 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28316 fi
28317 fi
28318 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
28319 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
28320 if test $ac_cv_func_realloc_0_nonnull = yes; then
28321
28322 cat >>confdefs.h <<\_ACEOF
28323 #define HAVE_REALLOC 1
28324 _ACEOF
28325
28326 else
28327   cat >>confdefs.h <<\_ACEOF
28328 #define HAVE_REALLOC 0
28329 _ACEOF
28330
28331    LIBOBJS="$LIBOBJS realloc.$ac_objext"
28332
28333 cat >>confdefs.h <<\_ACEOF
28334 #define realloc rpl_realloc
28335 _ACEOF
28336
28337 fi
28338
28339
28340
28341
28342
28343     if test X"$ac_cv_func_realloc_0_nonnull" = Xno || test X"$ac_cv_func_realloc_works" = Xno; then
28344
28345   :
28346
28347   fi
28348
28349
28350
28351
28352
28353
28354
28355
28356
28357
28358   :
28359
28360
28361
28362
28363
28364
28365
28366
28367
28368   :
28369
28370
28371
28372
28373
28374
28375
28376
28377
28378 for ac_func in getcwd
28379 do
28380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28381 echo "$as_me:$LINENO: checking for $ac_func" >&5
28382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28383 if eval "test \"\${$as_ac_var+set}\" = set"; then
28384   echo $ECHO_N "(cached) $ECHO_C" >&6
28385 else
28386   cat >conftest.$ac_ext <<_ACEOF
28387 /* confdefs.h.  */
28388 _ACEOF
28389 cat confdefs.h >>conftest.$ac_ext
28390 cat >>conftest.$ac_ext <<_ACEOF
28391 /* end confdefs.h.  */
28392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28394 #define $ac_func innocuous_$ac_func
28395
28396 /* System header to define __stub macros and hopefully few prototypes,
28397     which can conflict with char $ac_func (); below.
28398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28399     <limits.h> exists even on freestanding compilers.  */
28400
28401 #ifdef __STDC__
28402 # include <limits.h>
28403 #else
28404 # include <assert.h>
28405 #endif
28406
28407 #undef $ac_func
28408
28409 /* Override any gcc2 internal prototype to avoid an error.  */
28410 #ifdef __cplusplus
28411 extern "C"
28412 {
28413 #endif
28414 /* We use char because int might match the return type of a gcc2
28415    builtin and then its argument prototype would still apply.  */
28416 char $ac_func ();
28417 /* The GNU C library defines this for functions which it implements
28418     to always fail with ENOSYS.  Some functions are actually named
28419     something starting with __ and the normal name is an alias.  */
28420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28421 choke me
28422 #else
28423 char (*f) () = $ac_func;
28424 #endif
28425 #ifdef __cplusplus
28426 }
28427 #endif
28428
28429 int
28430 main ()
28431 {
28432 return f != $ac_func;
28433   ;
28434   return 0;
28435 }
28436 _ACEOF
28437 rm -f conftest.$ac_objext conftest$ac_exeext
28438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28439   (eval $ac_link) 2>&5
28440   ac_status=$?
28441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28442   (exit $ac_status); } &&
28443          { ac_try='test -s conftest$ac_exeext'
28444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28445   (eval $ac_try) 2>&5
28446   ac_status=$?
28447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448   (exit $ac_status); }; }; then
28449   eval "$as_ac_var=yes"
28450 else
28451   echo "$as_me: failed program was:" >&5
28452 sed 's/^/| /' conftest.$ac_ext >&5
28453
28454 eval "$as_ac_var=no"
28455 fi
28456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28457 fi
28458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28459 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28460 if test `eval echo '${'$as_ac_var'}'` = yes; then
28461   cat >>confdefs.h <<_ACEOF
28462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28463 _ACEOF
28464
28465 fi
28466 done
28467
28468
28469
28470   :
28471
28472
28473
28474
28475
28476
28477
28478
28479    echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
28480 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6
28481 if test "${ac_cv_func_getcwd_null+set}" = set; then
28482   echo $ECHO_N "(cached) $ECHO_C" >&6
28483 else
28484
28485 if test "$cross_compiling" = yes; then
28486   ac_cv_func_getcwd_null=no
28487 else
28488   cat >conftest.$ac_ext <<_ACEOF
28489 /* confdefs.h.  */
28490 _ACEOF
28491 cat confdefs.h >>conftest.$ac_ext
28492 cat >>conftest.$ac_ext <<_ACEOF
28493 /* end confdefs.h.  */
28494
28495 #        ifdef HAVE_STDLIB_H
28496 #         include <stdlib.h>
28497 #        endif
28498 #        ifdef HAVE_UNISTD_H
28499 #         include <unistd.h>
28500 #        endif
28501 #        ifndef getcwd
28502          char *getcwd ();
28503 #        endif
28504          int
28505          main ()
28506          {
28507            if (chdir ("/") != 0)
28508              exit (1);
28509            else
28510              {
28511                char *f = getcwd (NULL, 0);
28512                exit (! (f && f[0] == '/' && !f[1]));
28513              }
28514          }
28515 _ACEOF
28516 rm -f conftest$ac_exeext
28517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28518   (eval $ac_link) 2>&5
28519   ac_status=$?
28520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28523   (eval $ac_try) 2>&5
28524   ac_status=$?
28525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526   (exit $ac_status); }; }; then
28527   ac_cv_func_getcwd_null=yes
28528 else
28529   echo "$as_me: program exited with status $ac_status" >&5
28530 echo "$as_me: failed program was:" >&5
28531 sed 's/^/| /' conftest.$ac_ext >&5
28532
28533 ( exit $ac_status )
28534 ac_cv_func_getcwd_null=no
28535 fi
28536 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28537 fi
28538 fi
28539 echo "$as_me:$LINENO: result: $ac_cv_func_getcwd_null" >&5
28540 echo "${ECHO_T}$ac_cv_func_getcwd_null" >&6
28541    if test $ac_cv_func_getcwd_null = yes; then
28542
28543 cat >>confdefs.h <<\_ACEOF
28544 #define HAVE_GETCWD_NULL 1
28545 _ACEOF
28546
28547    fi
28548
28549
28550
28551
28552   :
28553
28554
28555
28556
28557
28558
28559
28560
28561
28562
28563
28564
28565
28566
28567
28568
28569
28570
28571
28572
28573   :
28574
28575
28576
28577
28578
28579
28580   :
28581
28582
28583
28584
28585
28586
28587   :
28588
28589
28590
28591
28592
28593
28594
28595
28596   echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
28597 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
28598 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
28599   echo $ECHO_N "(cached) $ECHO_C" >&6
28600 else
28601   cat >conftest.$ac_ext <<_ACEOF
28602 /* confdefs.h.  */
28603 _ACEOF
28604 cat confdefs.h >>conftest.$ac_ext
28605 cat >>conftest.$ac_ext <<_ACEOF
28606 /* end confdefs.h.  */
28607 $ac_includes_default
28608 int
28609 main ()
28610 {
28611 #ifndef strtoimax
28612   char *p = (char *) strtoimax;
28613 #endif
28614
28615   ;
28616   return 0;
28617 }
28618 _ACEOF
28619 rm -f conftest.$ac_objext
28620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28621   (eval $ac_compile) 2>&5
28622   ac_status=$?
28623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624   (exit $ac_status); } &&
28625          { ac_try='test -s conftest.$ac_objext'
28626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28627   (eval $ac_try) 2>&5
28628   ac_status=$?
28629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630   (exit $ac_status); }; }; then
28631   ac_cv_have_decl_strtoimax=yes
28632 else
28633   echo "$as_me: failed program was:" >&5
28634 sed 's/^/| /' conftest.$ac_ext >&5
28635
28636 ac_cv_have_decl_strtoimax=no
28637 fi
28638 rm -f conftest.$ac_objext conftest.$ac_ext
28639 fi
28640 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
28641 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
28642 if test $ac_cv_have_decl_strtoimax = yes; then
28643
28644 cat >>confdefs.h <<_ACEOF
28645 #define HAVE_DECL_STRTOIMAX 1
28646 _ACEOF
28647
28648
28649 else
28650   cat >>confdefs.h <<_ACEOF
28651 #define HAVE_DECL_STRTOIMAX 0
28652 _ACEOF
28653
28654
28655 fi
28656 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
28657 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
28658 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
28659   echo $ECHO_N "(cached) $ECHO_C" >&6
28660 else
28661   cat >conftest.$ac_ext <<_ACEOF
28662 /* confdefs.h.  */
28663 _ACEOF
28664 cat confdefs.h >>conftest.$ac_ext
28665 cat >>conftest.$ac_ext <<_ACEOF
28666 /* end confdefs.h.  */
28667 $ac_includes_default
28668 int
28669 main ()
28670 {
28671 #ifndef strtoumax
28672   char *p = (char *) strtoumax;
28673 #endif
28674
28675   ;
28676   return 0;
28677 }
28678 _ACEOF
28679 rm -f conftest.$ac_objext
28680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28681   (eval $ac_compile) 2>&5
28682   ac_status=$?
28683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684   (exit $ac_status); } &&
28685          { ac_try='test -s conftest.$ac_objext'
28686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28687   (eval $ac_try) 2>&5
28688   ac_status=$?
28689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28690   (exit $ac_status); }; }; then
28691   ac_cv_have_decl_strtoumax=yes
28692 else
28693   echo "$as_me: failed program was:" >&5
28694 sed 's/^/| /' conftest.$ac_ext >&5
28695
28696 ac_cv_have_decl_strtoumax=no
28697 fi
28698 rm -f conftest.$ac_objext conftest.$ac_ext
28699 fi
28700 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
28701 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
28702 if test $ac_cv_have_decl_strtoumax = yes; then
28703
28704 cat >>confdefs.h <<_ACEOF
28705 #define HAVE_DECL_STRTOUMAX 1
28706 _ACEOF
28707
28708
28709 else
28710   cat >>confdefs.h <<_ACEOF
28711 #define HAVE_DECL_STRTOUMAX 0
28712 _ACEOF
28713
28714
28715 fi
28716
28717
28718
28719
28720
28721
28722
28723
28724
28725
28726
28727
28728   :
28729
28730
28731
28732
28733
28734
28735
28736       echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
28737 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
28738 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
28739   echo $ECHO_N "(cached) $ECHO_C" >&6
28740 else
28741   cat >conftest.$ac_ext <<_ACEOF
28742 /* confdefs.h.  */
28743 _ACEOF
28744 cat confdefs.h >>conftest.$ac_ext
28745 cat >>conftest.$ac_ext <<_ACEOF
28746 /* end confdefs.h.  */
28747 $ac_includes_default
28748 int
28749 main ()
28750 {
28751 #ifndef clearerr_unlocked
28752   char *p = (char *) clearerr_unlocked;
28753 #endif
28754
28755   ;
28756   return 0;
28757 }
28758 _ACEOF
28759 rm -f conftest.$ac_objext
28760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28761   (eval $ac_compile) 2>&5
28762   ac_status=$?
28763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764   (exit $ac_status); } &&
28765          { ac_try='test -s conftest.$ac_objext'
28766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28767   (eval $ac_try) 2>&5
28768   ac_status=$?
28769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770   (exit $ac_status); }; }; then
28771   ac_cv_have_decl_clearerr_unlocked=yes
28772 else
28773   echo "$as_me: failed program was:" >&5
28774 sed 's/^/| /' conftest.$ac_ext >&5
28775
28776 ac_cv_have_decl_clearerr_unlocked=no
28777 fi
28778 rm -f conftest.$ac_objext conftest.$ac_ext
28779 fi
28780 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
28781 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
28782 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
28783
28784 cat >>confdefs.h <<_ACEOF
28785 #define HAVE_DECL_CLEARERR_UNLOCKED 1
28786 _ACEOF
28787
28788
28789 else
28790   cat >>confdefs.h <<_ACEOF
28791 #define HAVE_DECL_CLEARERR_UNLOCKED 0
28792 _ACEOF
28793
28794
28795 fi
28796
28797
28798
28799
28800       echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
28801 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
28802 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
28803   echo $ECHO_N "(cached) $ECHO_C" >&6
28804 else
28805   cat >conftest.$ac_ext <<_ACEOF
28806 /* confdefs.h.  */
28807 _ACEOF
28808 cat confdefs.h >>conftest.$ac_ext
28809 cat >>conftest.$ac_ext <<_ACEOF
28810 /* end confdefs.h.  */
28811 $ac_includes_default
28812 int
28813 main ()
28814 {
28815 #ifndef feof_unlocked
28816   char *p = (char *) feof_unlocked;
28817 #endif
28818
28819   ;
28820   return 0;
28821 }
28822 _ACEOF
28823 rm -f conftest.$ac_objext
28824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28825   (eval $ac_compile) 2>&5
28826   ac_status=$?
28827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828   (exit $ac_status); } &&
28829          { ac_try='test -s conftest.$ac_objext'
28830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28831   (eval $ac_try) 2>&5
28832   ac_status=$?
28833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834   (exit $ac_status); }; }; then
28835   ac_cv_have_decl_feof_unlocked=yes
28836 else
28837   echo "$as_me: failed program was:" >&5
28838 sed 's/^/| /' conftest.$ac_ext >&5
28839
28840 ac_cv_have_decl_feof_unlocked=no
28841 fi
28842 rm -f conftest.$ac_objext conftest.$ac_ext
28843 fi
28844 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
28845 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
28846 if test $ac_cv_have_decl_feof_unlocked = yes; then
28847
28848 cat >>confdefs.h <<_ACEOF
28849 #define HAVE_DECL_FEOF_UNLOCKED 1
28850 _ACEOF
28851
28852
28853 else
28854   cat >>confdefs.h <<_ACEOF
28855 #define HAVE_DECL_FEOF_UNLOCKED 0
28856 _ACEOF
28857
28858
28859 fi
28860
28861
28862
28863
28864       echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
28865 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
28866 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
28867   echo $ECHO_N "(cached) $ECHO_C" >&6
28868 else
28869   cat >conftest.$ac_ext <<_ACEOF
28870 /* confdefs.h.  */
28871 _ACEOF
28872 cat confdefs.h >>conftest.$ac_ext
28873 cat >>conftest.$ac_ext <<_ACEOF
28874 /* end confdefs.h.  */
28875 $ac_includes_default
28876 int
28877 main ()
28878 {
28879 #ifndef ferror_unlocked
28880   char *p = (char *) ferror_unlocked;
28881 #endif
28882
28883   ;
28884   return 0;
28885 }
28886 _ACEOF
28887 rm -f conftest.$ac_objext
28888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28889   (eval $ac_compile) 2>&5
28890   ac_status=$?
28891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892   (exit $ac_status); } &&
28893          { ac_try='test -s conftest.$ac_objext'
28894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28895   (eval $ac_try) 2>&5
28896   ac_status=$?
28897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898   (exit $ac_status); }; }; then
28899   ac_cv_have_decl_ferror_unlocked=yes
28900 else
28901   echo "$as_me: failed program was:" >&5
28902 sed 's/^/| /' conftest.$ac_ext >&5
28903
28904 ac_cv_have_decl_ferror_unlocked=no
28905 fi
28906 rm -f conftest.$ac_objext conftest.$ac_ext
28907 fi
28908 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
28909 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
28910 if test $ac_cv_have_decl_ferror_unlocked = yes; then
28911
28912 cat >>confdefs.h <<_ACEOF
28913 #define HAVE_DECL_FERROR_UNLOCKED 1
28914 _ACEOF
28915
28916
28917 else
28918   cat >>confdefs.h <<_ACEOF
28919 #define HAVE_DECL_FERROR_UNLOCKED 0
28920 _ACEOF
28921
28922
28923 fi
28924
28925
28926
28927
28928       echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
28929 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
28930 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
28931   echo $ECHO_N "(cached) $ECHO_C" >&6
28932 else
28933   cat >conftest.$ac_ext <<_ACEOF
28934 /* confdefs.h.  */
28935 _ACEOF
28936 cat confdefs.h >>conftest.$ac_ext
28937 cat >>conftest.$ac_ext <<_ACEOF
28938 /* end confdefs.h.  */
28939 $ac_includes_default
28940 int
28941 main ()
28942 {
28943 #ifndef fflush_unlocked
28944   char *p = (char *) fflush_unlocked;
28945 #endif
28946
28947   ;
28948   return 0;
28949 }
28950 _ACEOF
28951 rm -f conftest.$ac_objext
28952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28953   (eval $ac_compile) 2>&5
28954   ac_status=$?
28955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956   (exit $ac_status); } &&
28957          { ac_try='test -s conftest.$ac_objext'
28958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28959   (eval $ac_try) 2>&5
28960   ac_status=$?
28961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962   (exit $ac_status); }; }; then
28963   ac_cv_have_decl_fflush_unlocked=yes
28964 else
28965   echo "$as_me: failed program was:" >&5
28966 sed 's/^/| /' conftest.$ac_ext >&5
28967
28968 ac_cv_have_decl_fflush_unlocked=no
28969 fi
28970 rm -f conftest.$ac_objext conftest.$ac_ext
28971 fi
28972 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
28973 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
28974 if test $ac_cv_have_decl_fflush_unlocked = yes; then
28975
28976 cat >>confdefs.h <<_ACEOF
28977 #define HAVE_DECL_FFLUSH_UNLOCKED 1
28978 _ACEOF
28979
28980
28981 else
28982   cat >>confdefs.h <<_ACEOF
28983 #define HAVE_DECL_FFLUSH_UNLOCKED 0
28984 _ACEOF
28985
28986
28987 fi
28988
28989
28990
28991
28992       echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
28993 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
28994 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
28995   echo $ECHO_N "(cached) $ECHO_C" >&6
28996 else
28997   cat >conftest.$ac_ext <<_ACEOF
28998 /* confdefs.h.  */
28999 _ACEOF
29000 cat confdefs.h >>conftest.$ac_ext
29001 cat >>conftest.$ac_ext <<_ACEOF
29002 /* end confdefs.h.  */
29003 $ac_includes_default
29004 int
29005 main ()
29006 {
29007 #ifndef fgets_unlocked
29008   char *p = (char *) fgets_unlocked;
29009 #endif
29010
29011   ;
29012   return 0;
29013 }
29014 _ACEOF
29015 rm -f conftest.$ac_objext
29016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29017   (eval $ac_compile) 2>&5
29018   ac_status=$?
29019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29020   (exit $ac_status); } &&
29021          { ac_try='test -s conftest.$ac_objext'
29022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29023   (eval $ac_try) 2>&5
29024   ac_status=$?
29025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026   (exit $ac_status); }; }; then
29027   ac_cv_have_decl_fgets_unlocked=yes
29028 else
29029   echo "$as_me: failed program was:" >&5
29030 sed 's/^/| /' conftest.$ac_ext >&5
29031
29032 ac_cv_have_decl_fgets_unlocked=no
29033 fi
29034 rm -f conftest.$ac_objext conftest.$ac_ext
29035 fi
29036 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
29037 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
29038 if test $ac_cv_have_decl_fgets_unlocked = yes; then
29039
29040 cat >>confdefs.h <<_ACEOF
29041 #define HAVE_DECL_FGETS_UNLOCKED 1
29042 _ACEOF
29043
29044
29045 else
29046   cat >>confdefs.h <<_ACEOF
29047 #define HAVE_DECL_FGETS_UNLOCKED 0
29048 _ACEOF
29049
29050
29051 fi
29052
29053
29054
29055
29056       echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
29057 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
29058 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
29059   echo $ECHO_N "(cached) $ECHO_C" >&6
29060 else
29061   cat >conftest.$ac_ext <<_ACEOF
29062 /* confdefs.h.  */
29063 _ACEOF
29064 cat confdefs.h >>conftest.$ac_ext
29065 cat >>conftest.$ac_ext <<_ACEOF
29066 /* end confdefs.h.  */
29067 $ac_includes_default
29068 int
29069 main ()
29070 {
29071 #ifndef fputc_unlocked
29072   char *p = (char *) fputc_unlocked;
29073 #endif
29074
29075   ;
29076   return 0;
29077 }
29078 _ACEOF
29079 rm -f conftest.$ac_objext
29080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29081   (eval $ac_compile) 2>&5
29082   ac_status=$?
29083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084   (exit $ac_status); } &&
29085          { ac_try='test -s conftest.$ac_objext'
29086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29087   (eval $ac_try) 2>&5
29088   ac_status=$?
29089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090   (exit $ac_status); }; }; then
29091   ac_cv_have_decl_fputc_unlocked=yes
29092 else
29093   echo "$as_me: failed program was:" >&5
29094 sed 's/^/| /' conftest.$ac_ext >&5
29095
29096 ac_cv_have_decl_fputc_unlocked=no
29097 fi
29098 rm -f conftest.$ac_objext conftest.$ac_ext
29099 fi
29100 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
29101 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
29102 if test $ac_cv_have_decl_fputc_unlocked = yes; then
29103
29104 cat >>confdefs.h <<_ACEOF
29105 #define HAVE_DECL_FPUTC_UNLOCKED 1
29106 _ACEOF
29107
29108
29109 else
29110   cat >>confdefs.h <<_ACEOF
29111 #define HAVE_DECL_FPUTC_UNLOCKED 0
29112 _ACEOF
29113
29114
29115 fi
29116
29117
29118
29119
29120       echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
29121 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
29122 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
29123   echo $ECHO_N "(cached) $ECHO_C" >&6
29124 else
29125   cat >conftest.$ac_ext <<_ACEOF
29126 /* confdefs.h.  */
29127 _ACEOF
29128 cat confdefs.h >>conftest.$ac_ext
29129 cat >>conftest.$ac_ext <<_ACEOF
29130 /* end confdefs.h.  */
29131 $ac_includes_default
29132 int
29133 main ()
29134 {
29135 #ifndef fputs_unlocked
29136   char *p = (char *) fputs_unlocked;
29137 #endif
29138
29139   ;
29140   return 0;
29141 }
29142 _ACEOF
29143 rm -f conftest.$ac_objext
29144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29145   (eval $ac_compile) 2>&5
29146   ac_status=$?
29147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148   (exit $ac_status); } &&
29149          { ac_try='test -s conftest.$ac_objext'
29150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29151   (eval $ac_try) 2>&5
29152   ac_status=$?
29153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154   (exit $ac_status); }; }; then
29155   ac_cv_have_decl_fputs_unlocked=yes
29156 else
29157   echo "$as_me: failed program was:" >&5
29158 sed 's/^/| /' conftest.$ac_ext >&5
29159
29160 ac_cv_have_decl_fputs_unlocked=no
29161 fi
29162 rm -f conftest.$ac_objext conftest.$ac_ext
29163 fi
29164 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
29165 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
29166 if test $ac_cv_have_decl_fputs_unlocked = yes; then
29167
29168 cat >>confdefs.h <<_ACEOF
29169 #define HAVE_DECL_FPUTS_UNLOCKED 1
29170 _ACEOF
29171
29172
29173 else
29174   cat >>confdefs.h <<_ACEOF
29175 #define HAVE_DECL_FPUTS_UNLOCKED 0
29176 _ACEOF
29177
29178
29179 fi
29180
29181
29182
29183
29184       echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
29185 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
29186 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
29187   echo $ECHO_N "(cached) $ECHO_C" >&6
29188 else
29189   cat >conftest.$ac_ext <<_ACEOF
29190 /* confdefs.h.  */
29191 _ACEOF
29192 cat confdefs.h >>conftest.$ac_ext
29193 cat >>conftest.$ac_ext <<_ACEOF
29194 /* end confdefs.h.  */
29195 $ac_includes_default
29196 int
29197 main ()
29198 {
29199 #ifndef fread_unlocked
29200   char *p = (char *) fread_unlocked;
29201 #endif
29202
29203   ;
29204   return 0;
29205 }
29206 _ACEOF
29207 rm -f conftest.$ac_objext
29208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29209   (eval $ac_compile) 2>&5
29210   ac_status=$?
29211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29212   (exit $ac_status); } &&
29213          { ac_try='test -s conftest.$ac_objext'
29214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29215   (eval $ac_try) 2>&5
29216   ac_status=$?
29217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218   (exit $ac_status); }; }; then
29219   ac_cv_have_decl_fread_unlocked=yes
29220 else
29221   echo "$as_me: failed program was:" >&5
29222 sed 's/^/| /' conftest.$ac_ext >&5
29223
29224 ac_cv_have_decl_fread_unlocked=no
29225 fi
29226 rm -f conftest.$ac_objext conftest.$ac_ext
29227 fi
29228 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
29229 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
29230 if test $ac_cv_have_decl_fread_unlocked = yes; then
29231
29232 cat >>confdefs.h <<_ACEOF
29233 #define HAVE_DECL_FREAD_UNLOCKED 1
29234 _ACEOF
29235
29236
29237 else
29238   cat >>confdefs.h <<_ACEOF
29239 #define HAVE_DECL_FREAD_UNLOCKED 0
29240 _ACEOF
29241
29242
29243 fi
29244
29245
29246
29247
29248       echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
29249 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
29250 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
29251   echo $ECHO_N "(cached) $ECHO_C" >&6
29252 else
29253   cat >conftest.$ac_ext <<_ACEOF
29254 /* confdefs.h.  */
29255 _ACEOF
29256 cat confdefs.h >>conftest.$ac_ext
29257 cat >>conftest.$ac_ext <<_ACEOF
29258 /* end confdefs.h.  */
29259 $ac_includes_default
29260 int
29261 main ()
29262 {
29263 #ifndef fwrite_unlocked
29264   char *p = (char *) fwrite_unlocked;
29265 #endif
29266
29267   ;
29268   return 0;
29269 }
29270 _ACEOF
29271 rm -f conftest.$ac_objext
29272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29273   (eval $ac_compile) 2>&5
29274   ac_status=$?
29275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276   (exit $ac_status); } &&
29277          { ac_try='test -s conftest.$ac_objext'
29278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29279   (eval $ac_try) 2>&5
29280   ac_status=$?
29281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282   (exit $ac_status); }; }; then
29283   ac_cv_have_decl_fwrite_unlocked=yes
29284 else
29285   echo "$as_me: failed program was:" >&5
29286 sed 's/^/| /' conftest.$ac_ext >&5
29287
29288 ac_cv_have_decl_fwrite_unlocked=no
29289 fi
29290 rm -f conftest.$ac_objext conftest.$ac_ext
29291 fi
29292 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
29293 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
29294 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
29295
29296 cat >>confdefs.h <<_ACEOF
29297 #define HAVE_DECL_FWRITE_UNLOCKED 1
29298 _ACEOF
29299
29300
29301 else
29302   cat >>confdefs.h <<_ACEOF
29303 #define HAVE_DECL_FWRITE_UNLOCKED 0
29304 _ACEOF
29305
29306
29307 fi
29308
29309
29310
29311
29312       echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
29313 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
29314 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
29315   echo $ECHO_N "(cached) $ECHO_C" >&6
29316 else
29317   cat >conftest.$ac_ext <<_ACEOF
29318 /* confdefs.h.  */
29319 _ACEOF
29320 cat confdefs.h >>conftest.$ac_ext
29321 cat >>conftest.$ac_ext <<_ACEOF
29322 /* end confdefs.h.  */
29323 $ac_includes_default
29324 int
29325 main ()
29326 {
29327 #ifndef getc_unlocked
29328   char *p = (char *) getc_unlocked;
29329 #endif
29330
29331   ;
29332   return 0;
29333 }
29334 _ACEOF
29335 rm -f conftest.$ac_objext
29336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29337   (eval $ac_compile) 2>&5
29338   ac_status=$?
29339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340   (exit $ac_status); } &&
29341          { ac_try='test -s conftest.$ac_objext'
29342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29343   (eval $ac_try) 2>&5
29344   ac_status=$?
29345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29346   (exit $ac_status); }; }; then
29347   ac_cv_have_decl_getc_unlocked=yes
29348 else
29349   echo "$as_me: failed program was:" >&5
29350 sed 's/^/| /' conftest.$ac_ext >&5
29351
29352 ac_cv_have_decl_getc_unlocked=no
29353 fi
29354 rm -f conftest.$ac_objext conftest.$ac_ext
29355 fi
29356 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
29357 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
29358 if test $ac_cv_have_decl_getc_unlocked = yes; then
29359
29360 cat >>confdefs.h <<_ACEOF
29361 #define HAVE_DECL_GETC_UNLOCKED 1
29362 _ACEOF
29363
29364
29365 else
29366   cat >>confdefs.h <<_ACEOF
29367 #define HAVE_DECL_GETC_UNLOCKED 0
29368 _ACEOF
29369
29370
29371 fi
29372
29373
29374
29375
29376       echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
29377 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
29378 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
29379   echo $ECHO_N "(cached) $ECHO_C" >&6
29380 else
29381   cat >conftest.$ac_ext <<_ACEOF
29382 /* confdefs.h.  */
29383 _ACEOF
29384 cat confdefs.h >>conftest.$ac_ext
29385 cat >>conftest.$ac_ext <<_ACEOF
29386 /* end confdefs.h.  */
29387 $ac_includes_default
29388 int
29389 main ()
29390 {
29391 #ifndef getchar_unlocked
29392   char *p = (char *) getchar_unlocked;
29393 #endif
29394
29395   ;
29396   return 0;
29397 }
29398 _ACEOF
29399 rm -f conftest.$ac_objext
29400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29401   (eval $ac_compile) 2>&5
29402   ac_status=$?
29403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404   (exit $ac_status); } &&
29405          { ac_try='test -s conftest.$ac_objext'
29406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29407   (eval $ac_try) 2>&5
29408   ac_status=$?
29409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29410   (exit $ac_status); }; }; then
29411   ac_cv_have_decl_getchar_unlocked=yes
29412 else
29413   echo "$as_me: failed program was:" >&5
29414 sed 's/^/| /' conftest.$ac_ext >&5
29415
29416 ac_cv_have_decl_getchar_unlocked=no
29417 fi
29418 rm -f conftest.$ac_objext conftest.$ac_ext
29419 fi
29420 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
29421 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
29422 if test $ac_cv_have_decl_getchar_unlocked = yes; then
29423
29424 cat >>confdefs.h <<_ACEOF
29425 #define HAVE_DECL_GETCHAR_UNLOCKED 1
29426 _ACEOF
29427
29428
29429 else
29430   cat >>confdefs.h <<_ACEOF
29431 #define HAVE_DECL_GETCHAR_UNLOCKED 0
29432 _ACEOF
29433
29434
29435 fi
29436
29437
29438
29439
29440       echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
29441 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
29442 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
29443   echo $ECHO_N "(cached) $ECHO_C" >&6
29444 else
29445   cat >conftest.$ac_ext <<_ACEOF
29446 /* confdefs.h.  */
29447 _ACEOF
29448 cat confdefs.h >>conftest.$ac_ext
29449 cat >>conftest.$ac_ext <<_ACEOF
29450 /* end confdefs.h.  */
29451 $ac_includes_default
29452 int
29453 main ()
29454 {
29455 #ifndef putc_unlocked
29456   char *p = (char *) putc_unlocked;
29457 #endif
29458
29459   ;
29460   return 0;
29461 }
29462 _ACEOF
29463 rm -f conftest.$ac_objext
29464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29465   (eval $ac_compile) 2>&5
29466   ac_status=$?
29467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468   (exit $ac_status); } &&
29469          { ac_try='test -s conftest.$ac_objext'
29470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29471   (eval $ac_try) 2>&5
29472   ac_status=$?
29473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474   (exit $ac_status); }; }; then
29475   ac_cv_have_decl_putc_unlocked=yes
29476 else
29477   echo "$as_me: failed program was:" >&5
29478 sed 's/^/| /' conftest.$ac_ext >&5
29479
29480 ac_cv_have_decl_putc_unlocked=no
29481 fi
29482 rm -f conftest.$ac_objext conftest.$ac_ext
29483 fi
29484 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
29485 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
29486 if test $ac_cv_have_decl_putc_unlocked = yes; then
29487
29488 cat >>confdefs.h <<_ACEOF
29489 #define HAVE_DECL_PUTC_UNLOCKED 1
29490 _ACEOF
29491
29492
29493 else
29494   cat >>confdefs.h <<_ACEOF
29495 #define HAVE_DECL_PUTC_UNLOCKED 0
29496 _ACEOF
29497
29498
29499 fi
29500
29501
29502
29503
29504       echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
29505 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
29506 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
29507   echo $ECHO_N "(cached) $ECHO_C" >&6
29508 else
29509   cat >conftest.$ac_ext <<_ACEOF
29510 /* confdefs.h.  */
29511 _ACEOF
29512 cat confdefs.h >>conftest.$ac_ext
29513 cat >>conftest.$ac_ext <<_ACEOF
29514 /* end confdefs.h.  */
29515 $ac_includes_default
29516 int
29517 main ()
29518 {
29519 #ifndef putchar_unlocked
29520   char *p = (char *) putchar_unlocked;
29521 #endif
29522
29523   ;
29524   return 0;
29525 }
29526 _ACEOF
29527 rm -f conftest.$ac_objext
29528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29529   (eval $ac_compile) 2>&5
29530   ac_status=$?
29531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29532   (exit $ac_status); } &&
29533          { ac_try='test -s conftest.$ac_objext'
29534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29535   (eval $ac_try) 2>&5
29536   ac_status=$?
29537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538   (exit $ac_status); }; }; then
29539   ac_cv_have_decl_putchar_unlocked=yes
29540 else
29541   echo "$as_me: failed program was:" >&5
29542 sed 's/^/| /' conftest.$ac_ext >&5
29543
29544 ac_cv_have_decl_putchar_unlocked=no
29545 fi
29546 rm -f conftest.$ac_objext conftest.$ac_ext
29547 fi
29548 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
29549 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
29550 if test $ac_cv_have_decl_putchar_unlocked = yes; then
29551
29552 cat >>confdefs.h <<_ACEOF
29553 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
29554 _ACEOF
29555
29556
29557 else
29558   cat >>confdefs.h <<_ACEOF
29559 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
29560 _ACEOF
29561
29562
29563 fi
29564
29565
29566
29567
29568
29569
29570
29571   :
29572
29573
29574
29575
29576
29577
29578
29579
29580
29581
29582
29583
29584
29585
29586
29587
29588
29589
29590
29591
29592
29593
29594
29595
29596
29597
29598
29599
29600
29601
29602
29603
29604
29605
29606
29607
29608
29609
29610
29611
29612
29613
29614
29615
29616   echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
29617 echo $ECHO_N "checking whether tzset clobbers localtime buffer... $ECHO_C" >&6
29618 if test "${gl_cv_func_tzset_clobber+set}" = set; then
29619   echo $ECHO_N "(cached) $ECHO_C" >&6
29620 else
29621
29622   if test "$cross_compiling" = yes; then
29623   gl_cv_func_tzset_clobber=yes
29624 else
29625   cat >conftest.$ac_ext <<_ACEOF
29626 /* confdefs.h.  */
29627 _ACEOF
29628 cat confdefs.h >>conftest.$ac_ext
29629 cat >>conftest.$ac_ext <<_ACEOF
29630 /* end confdefs.h.  */
29631
29632 #if TIME_WITH_SYS_TIME
29633 # include <sys/time.h>
29634 # include <time.h>
29635 #else
29636 # if HAVE_SYS_TIME_H
29637 #  include <sys/time.h>
29638 # else
29639 #  include <time.h>
29640 # endif
29641 #endif
29642 #include <stdlib.h>
29643
29644 int
29645 main ()
29646 {
29647   time_t t1 = 853958121;
29648   struct tm *p, s;
29649   putenv ("TZ=GMT0");
29650   p = localtime (&t1);
29651   s = *p;
29652   putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
29653   tzset ();
29654   exit (p->tm_year != s.tm_year
29655         || p->tm_mon != s.tm_mon
29656         || p->tm_mday != s.tm_mday
29657         || p->tm_hour != s.tm_hour
29658         || p->tm_min != s.tm_min
29659         || p->tm_sec != s.tm_sec);
29660 }
29661
29662 _ACEOF
29663 rm -f conftest$ac_exeext
29664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29665   (eval $ac_link) 2>&5
29666   ac_status=$?
29667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29670   (eval $ac_try) 2>&5
29671   ac_status=$?
29672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673   (exit $ac_status); }; }; then
29674   gl_cv_func_tzset_clobber=no
29675 else
29676   echo "$as_me: program exited with status $ac_status" >&5
29677 echo "$as_me: failed program was:" >&5
29678 sed 's/^/| /' conftest.$ac_ext >&5
29679
29680 ( exit $ac_status )
29681 gl_cv_func_tzset_clobber=yes
29682 fi
29683 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29684 fi
29685 fi
29686 echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
29687 echo "${ECHO_T}$gl_cv_func_tzset_clobber" >&6
29688
29689
29690 cat >>confdefs.h <<\_ACEOF
29691 #define HAVE_RUN_TZSET_TEST 1
29692 _ACEOF
29693
29694
29695   if test $gl_cv_func_tzset_clobber = yes; then
29696
29697   LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
29698
29699 cat >>confdefs.h <<\_ACEOF
29700 #define gmtime rpl_gmtime
29701 _ACEOF
29702
29703
29704 cat >>confdefs.h <<\_ACEOF
29705 #define localtime rpl_localtime
29706 _ACEOF
29707
29708
29709
29710
29711 cat >>confdefs.h <<\_ACEOF
29712 #define tzset rpl_tzset
29713 _ACEOF
29714
29715
29716 cat >>confdefs.h <<\_ACEOF
29717 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
29718 _ACEOF
29719
29720   fi
29721
29722
29723
29724
29725 for ac_func in strftime
29726 do
29727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29728 echo "$as_me:$LINENO: checking for $ac_func" >&5
29729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29730 if eval "test \"\${$as_ac_var+set}\" = set"; then
29731   echo $ECHO_N "(cached) $ECHO_C" >&6
29732 else
29733   cat >conftest.$ac_ext <<_ACEOF
29734 /* confdefs.h.  */
29735 _ACEOF
29736 cat confdefs.h >>conftest.$ac_ext
29737 cat >>conftest.$ac_ext <<_ACEOF
29738 /* end confdefs.h.  */
29739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29741 #define $ac_func innocuous_$ac_func
29742
29743 /* System header to define __stub macros and hopefully few prototypes,
29744     which can conflict with char $ac_func (); below.
29745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29746     <limits.h> exists even on freestanding compilers.  */
29747
29748 #ifdef __STDC__
29749 # include <limits.h>
29750 #else
29751 # include <assert.h>
29752 #endif
29753
29754 #undef $ac_func
29755
29756 /* Override any gcc2 internal prototype to avoid an error.  */
29757 #ifdef __cplusplus
29758 extern "C"
29759 {
29760 #endif
29761 /* We use char because int might match the return type of a gcc2
29762    builtin and then its argument prototype would still apply.  */
29763 char $ac_func ();
29764 /* The GNU C library defines this for functions which it implements
29765     to always fail with ENOSYS.  Some functions are actually named
29766     something starting with __ and the normal name is an alias.  */
29767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29768 choke me
29769 #else
29770 char (*f) () = $ac_func;
29771 #endif
29772 #ifdef __cplusplus
29773 }
29774 #endif
29775
29776 int
29777 main ()
29778 {
29779 return f != $ac_func;
29780   ;
29781   return 0;
29782 }
29783 _ACEOF
29784 rm -f conftest.$ac_objext conftest$ac_exeext
29785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29786   (eval $ac_link) 2>&5
29787   ac_status=$?
29788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789   (exit $ac_status); } &&
29790          { ac_try='test -s conftest$ac_exeext'
29791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29792   (eval $ac_try) 2>&5
29793   ac_status=$?
29794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795   (exit $ac_status); }; }; then
29796   eval "$as_ac_var=yes"
29797 else
29798   echo "$as_me: failed program was:" >&5
29799 sed 's/^/| /' conftest.$ac_ext >&5
29800
29801 eval "$as_ac_var=no"
29802 fi
29803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29804 fi
29805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29807 if test `eval echo '${'$as_ac_var'}'` = yes; then
29808   cat >>confdefs.h <<_ACEOF
29809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29810 _ACEOF
29811
29812 else
29813   # strftime is in -lintl on SCO UNIX.
29814 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
29815 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
29816 if test "${ac_cv_lib_intl_strftime+set}" = set; then
29817   echo $ECHO_N "(cached) $ECHO_C" >&6
29818 else
29819   ac_check_lib_save_LIBS=$LIBS
29820 LIBS="-lintl  $LIBS"
29821 cat >conftest.$ac_ext <<_ACEOF
29822 /* confdefs.h.  */
29823 _ACEOF
29824 cat confdefs.h >>conftest.$ac_ext
29825 cat >>conftest.$ac_ext <<_ACEOF
29826 /* end confdefs.h.  */
29827
29828 /* Override any gcc2 internal prototype to avoid an error.  */
29829 #ifdef __cplusplus
29830 extern "C"
29831 #endif
29832 /* We use char because int might match the return type of a gcc2
29833    builtin and then its argument prototype would still apply.  */
29834 char strftime ();
29835 int
29836 main ()
29837 {
29838 strftime ();
29839   ;
29840   return 0;
29841 }
29842 _ACEOF
29843 rm -f conftest.$ac_objext conftest$ac_exeext
29844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29845   (eval $ac_link) 2>&5
29846   ac_status=$?
29847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29848   (exit $ac_status); } &&
29849          { ac_try='test -s conftest$ac_exeext'
29850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29851   (eval $ac_try) 2>&5
29852   ac_status=$?
29853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854   (exit $ac_status); }; }; then
29855   ac_cv_lib_intl_strftime=yes
29856 else
29857   echo "$as_me: failed program was:" >&5
29858 sed 's/^/| /' conftest.$ac_ext >&5
29859
29860 ac_cv_lib_intl_strftime=no
29861 fi
29862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29863 LIBS=$ac_check_lib_save_LIBS
29864 fi
29865 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
29866 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
29867 if test $ac_cv_lib_intl_strftime = yes; then
29868   cat >>confdefs.h <<\_ACEOF
29869 #define HAVE_STRFTIME 1
29870 _ACEOF
29871
29872 LIBS="-lintl $LIBS"
29873 fi
29874
29875 fi
29876 done
29877
29878
29879
29880   :
29881
29882
29883
29884
29885
29886
29887   :
29888
29889
29890
29891
29892
29893
29894
29895
29896
29897
29898 for ac_func in tzset memset
29899 do
29900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29901 echo "$as_me:$LINENO: checking for $ac_func" >&5
29902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29903 if eval "test \"\${$as_ac_var+set}\" = set"; then
29904   echo $ECHO_N "(cached) $ECHO_C" >&6
29905 else
29906   cat >conftest.$ac_ext <<_ACEOF
29907 /* confdefs.h.  */
29908 _ACEOF
29909 cat confdefs.h >>conftest.$ac_ext
29910 cat >>conftest.$ac_ext <<_ACEOF
29911 /* end confdefs.h.  */
29912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29914 #define $ac_func innocuous_$ac_func
29915
29916 /* System header to define __stub macros and hopefully few prototypes,
29917     which can conflict with char $ac_func (); below.
29918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29919     <limits.h> exists even on freestanding compilers.  */
29920
29921 #ifdef __STDC__
29922 # include <limits.h>
29923 #else
29924 # include <assert.h>
29925 #endif
29926
29927 #undef $ac_func
29928
29929 /* Override any gcc2 internal prototype to avoid an error.  */
29930 #ifdef __cplusplus
29931 extern "C"
29932 {
29933 #endif
29934 /* We use char because int might match the return type of a gcc2
29935    builtin and then its argument prototype would still apply.  */
29936 char $ac_func ();
29937 /* The GNU C library defines this for functions which it implements
29938     to always fail with ENOSYS.  Some functions are actually named
29939     something starting with __ and the normal name is an alias.  */
29940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29941 choke me
29942 #else
29943 char (*f) () = $ac_func;
29944 #endif
29945 #ifdef __cplusplus
29946 }
29947 #endif
29948
29949 int
29950 main ()
29951 {
29952 return f != $ac_func;
29953   ;
29954   return 0;
29955 }
29956 _ACEOF
29957 rm -f conftest.$ac_objext conftest$ac_exeext
29958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29959   (eval $ac_link) 2>&5
29960   ac_status=$?
29961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962   (exit $ac_status); } &&
29963          { ac_try='test -s conftest$ac_exeext'
29964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29965   (eval $ac_try) 2>&5
29966   ac_status=$?
29967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29968   (exit $ac_status); }; }; then
29969   eval "$as_ac_var=yes"
29970 else
29971   echo "$as_me: failed program was:" >&5
29972 sed 's/^/| /' conftest.$ac_ext >&5
29973
29974 eval "$as_ac_var=no"
29975 fi
29976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29977 fi
29978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29980 if test `eval echo '${'$as_ac_var'}'` = yes; then
29981   cat >>confdefs.h <<_ACEOF
29982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29983 _ACEOF
29984
29985 fi
29986 done
29987
29988
29989  # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
29990  echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
29991 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
29992 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
29993   echo $ECHO_N "(cached) $ECHO_C" >&6
29994 else
29995   cat >conftest.$ac_ext <<_ACEOF
29996 /* confdefs.h.  */
29997 _ACEOF
29998 cat confdefs.h >>conftest.$ac_ext
29999 cat >>conftest.$ac_ext <<_ACEOF
30000 /* end confdefs.h.  */
30001 #include <sys/types.h>
30002 #include <$ac_cv_struct_tm>
30003
30004
30005 int
30006 main ()
30007 {
30008 static struct tm ac_aggr;
30009 if (ac_aggr.tm_zone)
30010 return 0;
30011   ;
30012   return 0;
30013 }
30014 _ACEOF
30015 rm -f conftest.$ac_objext
30016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30017   (eval $ac_compile) 2>&5
30018   ac_status=$?
30019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30020   (exit $ac_status); } &&
30021          { ac_try='test -s conftest.$ac_objext'
30022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30023   (eval $ac_try) 2>&5
30024   ac_status=$?
30025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30026   (exit $ac_status); }; }; then
30027   ac_cv_member_struct_tm_tm_zone=yes
30028 else
30029   echo "$as_me: failed program was:" >&5
30030 sed 's/^/| /' conftest.$ac_ext >&5
30031
30032 cat >conftest.$ac_ext <<_ACEOF
30033 /* confdefs.h.  */
30034 _ACEOF
30035 cat confdefs.h >>conftest.$ac_ext
30036 cat >>conftest.$ac_ext <<_ACEOF
30037 /* end confdefs.h.  */
30038 #include <sys/types.h>
30039 #include <$ac_cv_struct_tm>
30040
30041
30042 int
30043 main ()
30044 {
30045 static struct tm ac_aggr;
30046 if (sizeof ac_aggr.tm_zone)
30047 return 0;
30048   ;
30049   return 0;
30050 }
30051 _ACEOF
30052 rm -f conftest.$ac_objext
30053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30054   (eval $ac_compile) 2>&5
30055   ac_status=$?
30056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30057   (exit $ac_status); } &&
30058          { ac_try='test -s conftest.$ac_objext'
30059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30060   (eval $ac_try) 2>&5
30061   ac_status=$?
30062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063   (exit $ac_status); }; }; then
30064   ac_cv_member_struct_tm_tm_zone=yes
30065 else
30066   echo "$as_me: failed program was:" >&5
30067 sed 's/^/| /' conftest.$ac_ext >&5
30068
30069 ac_cv_member_struct_tm_tm_zone=no
30070 fi
30071 rm -f conftest.$ac_objext conftest.$ac_ext
30072 fi
30073 rm -f conftest.$ac_objext conftest.$ac_ext
30074 fi
30075 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
30076 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
30077 if test $ac_cv_member_struct_tm_tm_zone = yes; then
30078
30079 cat >>confdefs.h <<_ACEOF
30080 #define HAVE_STRUCT_TM_TM_ZONE 1
30081 _ACEOF
30082
30083
30084 fi
30085
30086 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
30087
30088 cat >>confdefs.h <<\_ACEOF
30089 #define HAVE_TM_ZONE 1
30090 _ACEOF
30091
30092 else
30093   echo "$as_me:$LINENO: checking for tzname" >&5
30094 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
30095 if test "${ac_cv_var_tzname+set}" = set; then
30096   echo $ECHO_N "(cached) $ECHO_C" >&6
30097 else
30098   cat >conftest.$ac_ext <<_ACEOF
30099 /* confdefs.h.  */
30100 _ACEOF
30101 cat confdefs.h >>conftest.$ac_ext
30102 cat >>conftest.$ac_ext <<_ACEOF
30103 /* end confdefs.h.  */
30104 #include <time.h>
30105 #ifndef tzname /* For SGI.  */
30106 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
30107 #endif
30108
30109 int
30110 main ()
30111 {
30112 atoi(*tzname);
30113   ;
30114   return 0;
30115 }
30116 _ACEOF
30117 rm -f conftest.$ac_objext conftest$ac_exeext
30118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30119   (eval $ac_link) 2>&5
30120   ac_status=$?
30121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122   (exit $ac_status); } &&
30123          { ac_try='test -s conftest$ac_exeext'
30124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30125   (eval $ac_try) 2>&5
30126   ac_status=$?
30127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128   (exit $ac_status); }; }; then
30129   ac_cv_var_tzname=yes
30130 else
30131   echo "$as_me: failed program was:" >&5
30132 sed 's/^/| /' conftest.$ac_ext >&5
30133
30134 ac_cv_var_tzname=no
30135 fi
30136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30137 fi
30138 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
30139 echo "${ECHO_T}$ac_cv_var_tzname" >&6
30140   if test $ac_cv_var_tzname = yes; then
30141
30142 cat >>confdefs.h <<\_ACEOF
30143 #define HAVE_TZNAME 1
30144 _ACEOF
30145
30146   fi
30147 fi
30148
30149
30150
30151
30152 for ac_func in mblen mbrlen
30153 do
30154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30155 echo "$as_me:$LINENO: checking for $ac_func" >&5
30156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30157 if eval "test \"\${$as_ac_var+set}\" = set"; then
30158   echo $ECHO_N "(cached) $ECHO_C" >&6
30159 else
30160   cat >conftest.$ac_ext <<_ACEOF
30161 /* confdefs.h.  */
30162 _ACEOF
30163 cat confdefs.h >>conftest.$ac_ext
30164 cat >>conftest.$ac_ext <<_ACEOF
30165 /* end confdefs.h.  */
30166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30167    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30168 #define $ac_func innocuous_$ac_func
30169
30170 /* System header to define __stub macros and hopefully few prototypes,
30171     which can conflict with char $ac_func (); below.
30172     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30173     <limits.h> exists even on freestanding compilers.  */
30174
30175 #ifdef __STDC__
30176 # include <limits.h>
30177 #else
30178 # include <assert.h>
30179 #endif
30180
30181 #undef $ac_func
30182
30183 /* Override any gcc2 internal prototype to avoid an error.  */
30184 #ifdef __cplusplus
30185 extern "C"
30186 {
30187 #endif
30188 /* We use char because int might match the return type of a gcc2
30189    builtin and then its argument prototype would still apply.  */
30190 char $ac_func ();
30191 /* The GNU C library defines this for functions which it implements
30192     to always fail with ENOSYS.  Some functions are actually named
30193     something starting with __ and the normal name is an alias.  */
30194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30195 choke me
30196 #else
30197 char (*f) () = $ac_func;
30198 #endif
30199 #ifdef __cplusplus
30200 }
30201 #endif
30202
30203 int
30204 main ()
30205 {
30206 return f != $ac_func;
30207   ;
30208   return 0;
30209 }
30210 _ACEOF
30211 rm -f conftest.$ac_objext conftest$ac_exeext
30212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30213   (eval $ac_link) 2>&5
30214   ac_status=$?
30215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216   (exit $ac_status); } &&
30217          { ac_try='test -s conftest$ac_exeext'
30218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30219   (eval $ac_try) 2>&5
30220   ac_status=$?
30221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222   (exit $ac_status); }; }; then
30223   eval "$as_ac_var=yes"
30224 else
30225   echo "$as_me: failed program was:" >&5
30226 sed 's/^/| /' conftest.$ac_ext >&5
30227
30228 eval "$as_ac_var=no"
30229 fi
30230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30231 fi
30232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30233 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30234 if test `eval echo '${'$as_ac_var'}'` = yes; then
30235   cat >>confdefs.h <<_ACEOF
30236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30237 _ACEOF
30238
30239 fi
30240 done
30241
30242  echo "$as_me:$LINENO: checking for mbstate_t" >&5
30243 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
30244 if test "${ac_cv_type_mbstate_t+set}" = set; then
30245   echo $ECHO_N "(cached) $ECHO_C" >&6
30246 else
30247   cat >conftest.$ac_ext <<_ACEOF
30248 /* confdefs.h.  */
30249 _ACEOF
30250 cat confdefs.h >>conftest.$ac_ext
30251 cat >>conftest.$ac_ext <<_ACEOF
30252 /* end confdefs.h.  */
30253 $ac_includes_default
30254 #           include <wchar.h>
30255 int
30256 main ()
30257 {
30258 mbstate_t x; return sizeof x;
30259   ;
30260   return 0;
30261 }
30262 _ACEOF
30263 rm -f conftest.$ac_objext
30264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30265   (eval $ac_compile) 2>&5
30266   ac_status=$?
30267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268   (exit $ac_status); } &&
30269          { ac_try='test -s conftest.$ac_objext'
30270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30271   (eval $ac_try) 2>&5
30272   ac_status=$?
30273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274   (exit $ac_status); }; }; then
30275   ac_cv_type_mbstate_t=yes
30276 else
30277   echo "$as_me: failed program was:" >&5
30278 sed 's/^/| /' conftest.$ac_ext >&5
30279
30280 ac_cv_type_mbstate_t=no
30281 fi
30282 rm -f conftest.$ac_objext conftest.$ac_ext
30283 fi
30284 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
30285 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
30286    if test $ac_cv_type_mbstate_t = yes; then
30287
30288 cat >>confdefs.h <<\_ACEOF
30289 #define HAVE_MBSTATE_T 1
30290 _ACEOF
30291
30292    else
30293
30294 cat >>confdefs.h <<\_ACEOF
30295 #define mbstate_t int
30296 _ACEOF
30297
30298    fi
30299
30300
30301
30302
30303
30304
30305   :
30306
30307
30308
30309
30310
30311
30312 cat >>confdefs.h <<\_ACEOF
30313 #define my_strftime nstrftime
30314 _ACEOF
30315
30316
30317 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
30318 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
30319 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
30320   echo $ECHO_N "(cached) $ECHO_C" >&6
30321 else
30322   rm -f conftest.sym conftest.file
30323 echo >conftest.file
30324 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
30325   if test "$cross_compiling" = yes; then
30326   ac_cv_func_lstat_dereferences_slashed_symlink=no
30327 else
30328   cat >conftest.$ac_ext <<_ACEOF
30329 /* confdefs.h.  */
30330 _ACEOF
30331 cat confdefs.h >>conftest.$ac_ext
30332 cat >>conftest.$ac_ext <<_ACEOF
30333 /* end confdefs.h.  */
30334 $ac_includes_default
30335 int
30336 main ()
30337 {
30338 struct stat sbuf;
30339      /* Linux will dereference the symlink and fail.
30340         That is better in the sense that it means we will not
30341         have to compile and use the lstat wrapper.  */
30342      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
30343   ;
30344   return 0;
30345 }
30346 _ACEOF
30347 rm -f conftest$ac_exeext
30348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30349   (eval $ac_link) 2>&5
30350   ac_status=$?
30351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30352   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30354   (eval $ac_try) 2>&5
30355   ac_status=$?
30356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357   (exit $ac_status); }; }; then
30358   ac_cv_func_lstat_dereferences_slashed_symlink=yes
30359 else
30360   echo "$as_me: program exited with status $ac_status" >&5
30361 echo "$as_me: failed program was:" >&5
30362 sed 's/^/| /' conftest.$ac_ext >&5
30363
30364 ( exit $ac_status )
30365 ac_cv_func_lstat_dereferences_slashed_symlink=no
30366 fi
30367 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30368 fi
30369 else
30370   # If the `ln -s' command failed, then we probably don't even
30371   # have an lstat function.
30372   ac_cv_func_lstat_dereferences_slashed_symlink=no
30373 fi
30374 rm -f conftest.sym conftest.file
30375
30376 fi
30377 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
30378 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
30379
30380 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
30381
30382 cat >>confdefs.h <<_ACEOF
30383 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
30384 _ACEOF
30385
30386
30387 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
30388   LIBOBJS="$LIBOBJS lstat.$ac_objext"
30389 fi
30390
30391
30392   echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
30393 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
30394 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
30395   echo $ECHO_N "(cached) $ECHO_C" >&6
30396 else
30397   if test "$cross_compiling" = yes; then
30398   ac_cv_func_lstat_empty_string_bug=yes
30399 else
30400   cat >conftest.$ac_ext <<_ACEOF
30401 /* confdefs.h.  */
30402 _ACEOF
30403 cat confdefs.h >>conftest.$ac_ext
30404 cat >>conftest.$ac_ext <<_ACEOF
30405 /* end confdefs.h.  */
30406 $ac_includes_default
30407 int
30408 main ()
30409 {
30410 struct stat sbuf;
30411   exit (lstat ("", &sbuf) ? 1 : 0);
30412   ;
30413   return 0;
30414 }
30415 _ACEOF
30416 rm -f conftest$ac_exeext
30417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30418   (eval $ac_link) 2>&5
30419   ac_status=$?
30420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30421   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30423   (eval $ac_try) 2>&5
30424   ac_status=$?
30425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30426   (exit $ac_status); }; }; then
30427   ac_cv_func_lstat_empty_string_bug=yes
30428 else
30429   echo "$as_me: program exited with status $ac_status" >&5
30430 echo "$as_me: failed program was:" >&5
30431 sed 's/^/| /' conftest.$ac_ext >&5
30432
30433 ( exit $ac_status )
30434 ac_cv_func_lstat_empty_string_bug=no
30435 fi
30436 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30437 fi
30438 fi
30439 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
30440 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
30441 if test $ac_cv_func_lstat_empty_string_bug = yes; then
30442   LIBOBJS="$LIBOBJS lstat.$ac_objext"
30443
30444 cat >>confdefs.h <<_ACEOF
30445 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
30446 _ACEOF
30447
30448 fi
30449
30450     if test $ac_cv_func_lstat_empty_string_bug = yes; then
30451
30452
30453
30454   :
30455
30456
30457
30458
30459
30460
30461   :
30462
30463
30464
30465
30466
30467
30468   fi
30469
30470
30471
30472   if test $ac_cv_func_memcmp_working = no; then
30473
30474 cat >>confdefs.h <<\_ACEOF
30475 #define memcmp rpl_memcmp
30476 _ACEOF
30477
30478
30479
30480   :
30481
30482
30483
30484
30485
30486
30487   fi
30488
30489
30490  nanosleep_save_libs=$LIBS
30491
30492  # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
30493  # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
30494
30495   echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
30496 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
30497 if test "${ac_cv_search_nanosleep+set}" = set; then
30498   echo $ECHO_N "(cached) $ECHO_C" >&6
30499 else
30500
30501     ac_func_search_save_LIBS=$LIBS
30502     ac_cv_search_nanosleep=no
30503     cat >conftest.$ac_ext <<_ACEOF
30504 /* confdefs.h.  */
30505 _ACEOF
30506 cat confdefs.h >>conftest.$ac_ext
30507 cat >>conftest.$ac_ext <<_ACEOF
30508 /* end confdefs.h.  */
30509
30510 /* Override any gcc2 internal prototype to avoid an error.  */
30511 #ifdef __cplusplus
30512 extern "C"
30513 #endif
30514 /* We use char because int might match the return type of a gcc2
30515    builtin and then its argument prototype would still apply.  */
30516 char nanosleep ();
30517 int
30518 main ()
30519 {
30520 nanosleep ();
30521   ;
30522   return 0;
30523 }
30524 _ACEOF
30525 rm -f conftest.$ac_objext conftest$ac_exeext
30526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30527   (eval $ac_link) 2>&5
30528   ac_status=$?
30529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530   (exit $ac_status); } &&
30531          { ac_try='test -s conftest$ac_exeext'
30532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30533   (eval $ac_try) 2>&5
30534   ac_status=$?
30535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30536   (exit $ac_status); }; }; then
30537   ac_cv_search_nanosleep='none required'
30538 else
30539   echo "$as_me: failed program was:" >&5
30540 sed 's/^/| /' conftest.$ac_ext >&5
30541
30542 fi
30543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30544     if test "$ac_cv_search_nanosleep" = no; then
30545       for ac_lib in rt posix4; do
30546         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30547         cat >conftest.$ac_ext <<_ACEOF
30548 /* confdefs.h.  */
30549 _ACEOF
30550 cat confdefs.h >>conftest.$ac_ext
30551 cat >>conftest.$ac_ext <<_ACEOF
30552 /* end confdefs.h.  */
30553
30554 /* Override any gcc2 internal prototype to avoid an error.  */
30555 #ifdef __cplusplus
30556 extern "C"
30557 #endif
30558 /* We use char because int might match the return type of a gcc2
30559    builtin and then its argument prototype would still apply.  */
30560 char nanosleep ();
30561 int
30562 main ()
30563 {
30564 nanosleep ();
30565   ;
30566   return 0;
30567 }
30568 _ACEOF
30569 rm -f conftest.$ac_objext conftest$ac_exeext
30570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30571   (eval $ac_link) 2>&5
30572   ac_status=$?
30573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30574   (exit $ac_status); } &&
30575          { ac_try='test -s conftest$ac_exeext'
30576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30577   (eval $ac_try) 2>&5
30578   ac_status=$?
30579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580   (exit $ac_status); }; }; then
30581   ac_cv_search_nanosleep="-l$ac_lib"; break
30582 else
30583   echo "$as_me: failed program was:" >&5
30584 sed 's/^/| /' conftest.$ac_ext >&5
30585
30586 fi
30587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30588       done
30589     fi
30590     LIBS=$ac_func_search_save_LIBS
30591
30592 fi
30593 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
30594 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
30595
30596   if test "$ac_cv_search_nanosleep" = no; then :
30597
30598   else
30599     if test "$ac_cv_search_nanosleep" = 'none required'; then :
30600
30601     else
30602       LIBS="$ac_cv_search_nanosleep $LIBS"
30603       LIB_NANOSLEEP=$ac_cv_search_nanosleep
30604     fi
30605   fi
30606
30607
30608
30609  echo "$as_me:$LINENO: checking whether nanosleep works" >&5
30610 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6
30611 if test "${jm_cv_func_nanosleep_works+set}" = set; then
30612   echo $ECHO_N "(cached) $ECHO_C" >&6
30613 else
30614
30615
30616
30617   :
30618
30619
30620
30621
30622
30623
30624 if test "$cross_compiling" = yes; then
30625          jm_cv_func_nanosleep_works=no
30626 else
30627   cat >conftest.$ac_ext <<_ACEOF
30628 /* confdefs.h.  */
30629 _ACEOF
30630 cat confdefs.h >>conftest.$ac_ext
30631 cat >>conftest.$ac_ext <<_ACEOF
30632 /* end confdefs.h.  */
30633
30634 #   if TIME_WITH_SYS_TIME
30635 #    include <sys/time.h>
30636 #    include <time.h>
30637 #   else
30638 #    if HAVE_SYS_TIME_H
30639 #     include <sys/time.h>
30640 #    else
30641 #     include <time.h>
30642 #    endif
30643 #   endif
30644
30645     int
30646     main ()
30647     {
30648       struct timespec ts_sleep, ts_remaining;
30649       ts_sleep.tv_sec = 0;
30650       ts_sleep.tv_nsec = 1;
30651       exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
30652     }
30653
30654 _ACEOF
30655 rm -f conftest$ac_exeext
30656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30657   (eval $ac_link) 2>&5
30658   ac_status=$?
30659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30662   (eval $ac_try) 2>&5
30663   ac_status=$?
30664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665   (exit $ac_status); }; }; then
30666   jm_cv_func_nanosleep_works=yes
30667 else
30668   echo "$as_me: program exited with status $ac_status" >&5
30669 echo "$as_me: failed program was:" >&5
30670 sed 's/^/| /' conftest.$ac_ext >&5
30671
30672 ( exit $ac_status )
30673 jm_cv_func_nanosleep_works=no
30674 fi
30675 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30676 fi
30677
30678 fi
30679 echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
30680 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6
30681   if test $jm_cv_func_nanosleep_works = no; then
30682     LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
30683
30684 cat >>confdefs.h <<\_ACEOF
30685 #define nanosleep rpl_nanosleep
30686 _ACEOF
30687
30688
30689
30690   :
30691
30692
30693
30694
30695
30696
30697   fi
30698
30699  LIBS=$nanosleep_save_libs
30700
30701 echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
30702 echo $ECHO_N "checking for SVID conformant putenv... $ECHO_C" >&6
30703 if test "${jm_cv_func_svid_putenv+set}" = set; then
30704   echo $ECHO_N "(cached) $ECHO_C" >&6
30705 else
30706
30707 if test "$cross_compiling" = yes; then
30708              jm_cv_func_svid_putenv=no
30709 else
30710   cat >conftest.$ac_ext <<_ACEOF
30711 /* confdefs.h.  */
30712 _ACEOF
30713 cat confdefs.h >>conftest.$ac_ext
30714 cat >>conftest.$ac_ext <<_ACEOF
30715 /* end confdefs.h.  */
30716
30717     int
30718     main ()
30719     {
30720       /* Put it in env.  */
30721       if (putenv ("CONFTEST_putenv=val"))
30722         exit (1);
30723
30724       /* Try to remove it.  */
30725       if (putenv ("CONFTEST_putenv"))
30726         exit (1);
30727
30728       /* Make sure it was deleted.  */
30729       if (getenv ("CONFTEST_putenv") != 0)
30730         exit (1);
30731
30732       exit (0);
30733     }
30734
30735 _ACEOF
30736 rm -f conftest$ac_exeext
30737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30738   (eval $ac_link) 2>&5
30739   ac_status=$?
30740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30741   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30743   (eval $ac_try) 2>&5
30744   ac_status=$?
30745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746   (exit $ac_status); }; }; then
30747   jm_cv_func_svid_putenv=yes
30748 else
30749   echo "$as_me: program exited with status $ac_status" >&5
30750 echo "$as_me: failed program was:" >&5
30751 sed 's/^/| /' conftest.$ac_ext >&5
30752
30753 ( exit $ac_status )
30754 jm_cv_func_svid_putenv=no
30755 fi
30756 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30757 fi
30758
30759 fi
30760 echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
30761 echo "${ECHO_T}$jm_cv_func_svid_putenv" >&6
30762   if test $jm_cv_func_svid_putenv = no; then
30763     LIBOBJS="$LIBOBJS putenv.$ac_objext"
30764
30765 cat >>confdefs.h <<\_ACEOF
30766 #define putenv rpl_putenv
30767 _ACEOF
30768
30769
30770
30771   :
30772
30773
30774
30775
30776
30777
30778
30779
30780
30781   :
30782
30783
30784
30785
30786
30787
30788 for ac_func in strchr
30789 do
30790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30791 echo "$as_me:$LINENO: checking for $ac_func" >&5
30792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30793 if eval "test \"\${$as_ac_var+set}\" = set"; then
30794   echo $ECHO_N "(cached) $ECHO_C" >&6
30795 else
30796   cat >conftest.$ac_ext <<_ACEOF
30797 /* confdefs.h.  */
30798 _ACEOF
30799 cat confdefs.h >>conftest.$ac_ext
30800 cat >>conftest.$ac_ext <<_ACEOF
30801 /* end confdefs.h.  */
30802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30803    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30804 #define $ac_func innocuous_$ac_func
30805
30806 /* System header to define __stub macros and hopefully few prototypes,
30807     which can conflict with char $ac_func (); below.
30808     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30809     <limits.h> exists even on freestanding compilers.  */
30810
30811 #ifdef __STDC__
30812 # include <limits.h>
30813 #else
30814 # include <assert.h>
30815 #endif
30816
30817 #undef $ac_func
30818
30819 /* Override any gcc2 internal prototype to avoid an error.  */
30820 #ifdef __cplusplus
30821 extern "C"
30822 {
30823 #endif
30824 /* We use char because int might match the return type of a gcc2
30825    builtin and then its argument prototype would still apply.  */
30826 char $ac_func ();
30827 /* The GNU C library defines this for functions which it implements
30828     to always fail with ENOSYS.  Some functions are actually named
30829     something starting with __ and the normal name is an alias.  */
30830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30831 choke me
30832 #else
30833 char (*f) () = $ac_func;
30834 #endif
30835 #ifdef __cplusplus
30836 }
30837 #endif
30838
30839 int
30840 main ()
30841 {
30842 return f != $ac_func;
30843   ;
30844   return 0;
30845 }
30846 _ACEOF
30847 rm -f conftest.$ac_objext conftest$ac_exeext
30848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30849   (eval $ac_link) 2>&5
30850   ac_status=$?
30851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30852   (exit $ac_status); } &&
30853          { ac_try='test -s conftest$ac_exeext'
30854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30855   (eval $ac_try) 2>&5
30856   ac_status=$?
30857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30858   (exit $ac_status); }; }; then
30859   eval "$as_ac_var=yes"
30860 else
30861   echo "$as_me: failed program was:" >&5
30862 sed 's/^/| /' conftest.$ac_ext >&5
30863
30864 eval "$as_ac_var=no"
30865 fi
30866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30867 fi
30868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30870 if test `eval echo '${'$as_ac_var'}'` = yes; then
30871   cat >>confdefs.h <<_ACEOF
30872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30873 _ACEOF
30874
30875 fi
30876 done
30877
30878
30879   fi
30880
30881
30882   echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
30883 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
30884 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
30885   echo $ECHO_N "(cached) $ECHO_C" >&6
30886 else
30887   if test "$cross_compiling" = yes; then
30888   ac_cv_func_stat_empty_string_bug=yes
30889 else
30890   cat >conftest.$ac_ext <<_ACEOF
30891 /* confdefs.h.  */
30892 _ACEOF
30893 cat confdefs.h >>conftest.$ac_ext
30894 cat >>conftest.$ac_ext <<_ACEOF
30895 /* end confdefs.h.  */
30896 $ac_includes_default
30897 int
30898 main ()
30899 {
30900 struct stat sbuf;
30901   exit (stat ("", &sbuf) ? 1 : 0);
30902   ;
30903   return 0;
30904 }
30905 _ACEOF
30906 rm -f conftest$ac_exeext
30907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30908   (eval $ac_link) 2>&5
30909   ac_status=$?
30910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30913   (eval $ac_try) 2>&5
30914   ac_status=$?
30915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916   (exit $ac_status); }; }; then
30917   ac_cv_func_stat_empty_string_bug=yes
30918 else
30919   echo "$as_me: program exited with status $ac_status" >&5
30920 echo "$as_me: failed program was:" >&5
30921 sed 's/^/| /' conftest.$ac_ext >&5
30922
30923 ( exit $ac_status )
30924 ac_cv_func_stat_empty_string_bug=no
30925 fi
30926 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30927 fi
30928 fi
30929 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
30930 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
30931 if test $ac_cv_func_stat_empty_string_bug = yes; then
30932   LIBOBJS="$LIBOBJS stat.$ac_objext"
30933
30934 cat >>confdefs.h <<_ACEOF
30935 #define HAVE_STAT_EMPTY_STRING_BUG 1
30936 _ACEOF
30937
30938 fi
30939
30940     if test $ac_cv_func_stat_empty_string_bug = yes; then
30941
30942   :
30943
30944   fi
30945
30946 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
30947 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
30948 if test "${ac_cv_func_utime_null+set}" = set; then
30949   echo $ECHO_N "(cached) $ECHO_C" >&6
30950 else
30951   rm -f conftest.data; >conftest.data
30952 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
30953 if test "$cross_compiling" = yes; then
30954   ac_cv_func_utime_null=no
30955 else
30956   cat >conftest.$ac_ext <<_ACEOF
30957 /* confdefs.h.  */
30958 _ACEOF
30959 cat confdefs.h >>conftest.$ac_ext
30960 cat >>conftest.$ac_ext <<_ACEOF
30961 /* end confdefs.h.  */
30962 $ac_includes_default
30963 int
30964 main ()
30965 {
30966 struct stat s, t;
30967   exit (!(stat ("conftest.data", &s) == 0
30968           && utime ("conftest.data", (long *)0) == 0
30969           && stat ("conftest.data", &t) == 0
30970           && t.st_mtime >= s.st_mtime
30971           && t.st_mtime - s.st_mtime < 120));
30972   ;
30973   return 0;
30974 }
30975 _ACEOF
30976 rm -f conftest$ac_exeext
30977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30978   (eval $ac_link) 2>&5
30979   ac_status=$?
30980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30981   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30983   (eval $ac_try) 2>&5
30984   ac_status=$?
30985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986   (exit $ac_status); }; }; then
30987   ac_cv_func_utime_null=yes
30988 else
30989   echo "$as_me: program exited with status $ac_status" >&5
30990 echo "$as_me: failed program was:" >&5
30991 sed 's/^/| /' conftest.$ac_ext >&5
30992
30993 ( exit $ac_status )
30994 ac_cv_func_utime_null=no
30995 fi
30996 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30997 fi
30998 rm -f core core.* *.core
30999 fi
31000 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
31001 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
31002 if test $ac_cv_func_utime_null = yes; then
31003
31004 cat >>confdefs.h <<\_ACEOF
31005 #define HAVE_UTIME_NULL 1
31006 _ACEOF
31007
31008 fi
31009 rm -f conftest.data
31010
31011
31012
31013   if test $ac_cv_func_utime_null = no; then
31014     LIBOBJS="$LIBOBJS utime.$ac_objext"
31015
31016 cat >>confdefs.h <<\_ACEOF
31017 #define utime rpl_utime
31018 _ACEOF
31019
31020
31021
31022   :
31023
31024
31025
31026
31027
31028
31029   echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
31030 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6
31031 if test "${ac_cv_func_utimes_null+set}" = set; then
31032   echo $ECHO_N "(cached) $ECHO_C" >&6
31033 else
31034   rm -f conftest.data; > conftest.data
31035
31036 if test "$cross_compiling" = yes; then
31037   ac_cv_func_utimes_null=no
31038 else
31039   cat >conftest.$ac_ext <<_ACEOF
31040 /* confdefs.h.  */
31041 _ACEOF
31042 cat confdefs.h >>conftest.$ac_ext
31043 cat >>conftest.$ac_ext <<_ACEOF
31044 /* end confdefs.h.  */
31045
31046 /* In case stat has been defined to rpl_stat, undef it here.  */
31047 #undef stat
31048 #include <sys/types.h>
31049 #include <sys/stat.h>
31050 main() {
31051 struct stat s, t;
31052 exit(!(stat ("conftest.data", &s) == 0
31053        && utimes("conftest.data", (long *)0) == 0
31054        && stat("conftest.data", &t) == 0
31055        && t.st_mtime >= s.st_mtime
31056        && t.st_mtime - s.st_mtime < 120));
31057 }
31058 _ACEOF
31059 rm -f conftest$ac_exeext
31060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31061   (eval $ac_link) 2>&5
31062   ac_status=$?
31063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31064   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31066   (eval $ac_try) 2>&5
31067   ac_status=$?
31068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069   (exit $ac_status); }; }; then
31070   ac_cv_func_utimes_null=yes
31071 else
31072   echo "$as_me: program exited with status $ac_status" >&5
31073 echo "$as_me: failed program was:" >&5
31074 sed 's/^/| /' conftest.$ac_ext >&5
31075
31076 ( exit $ac_status )
31077 ac_cv_func_utimes_null=no
31078 fi
31079 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31080 fi
31081 rm -f core core.* *.core
31082 fi
31083 echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
31084 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6
31085
31086     if test $ac_cv_func_utimes_null = yes; then
31087
31088 cat >>confdefs.h <<\_ACEOF
31089 #define HAVE_UTIMES_NULL 1
31090 _ACEOF
31091
31092     fi
31093
31094
31095
31096   fi
31097
31098
31099
31100
31101 for ac_func in pathconf
31102 do
31103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31104 echo "$as_me:$LINENO: checking for $ac_func" >&5
31105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31106 if eval "test \"\${$as_ac_var+set}\" = set"; then
31107   echo $ECHO_N "(cached) $ECHO_C" >&6
31108 else
31109   cat >conftest.$ac_ext <<_ACEOF
31110 /* confdefs.h.  */
31111 _ACEOF
31112 cat confdefs.h >>conftest.$ac_ext
31113 cat >>conftest.$ac_ext <<_ACEOF
31114 /* end confdefs.h.  */
31115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31117 #define $ac_func innocuous_$ac_func
31118
31119 /* System header to define __stub macros and hopefully few prototypes,
31120     which can conflict with char $ac_func (); below.
31121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31122     <limits.h> exists even on freestanding compilers.  */
31123
31124 #ifdef __STDC__
31125 # include <limits.h>
31126 #else
31127 # include <assert.h>
31128 #endif
31129
31130 #undef $ac_func
31131
31132 /* Override any gcc2 internal prototype to avoid an error.  */
31133 #ifdef __cplusplus
31134 extern "C"
31135 {
31136 #endif
31137 /* We use char because int might match the return type of a gcc2
31138    builtin and then its argument prototype would still apply.  */
31139 char $ac_func ();
31140 /* The GNU C library defines this for functions which it implements
31141     to always fail with ENOSYS.  Some functions are actually named
31142     something starting with __ and the normal name is an alias.  */
31143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31144 choke me
31145 #else
31146 char (*f) () = $ac_func;
31147 #endif
31148 #ifdef __cplusplus
31149 }
31150 #endif
31151
31152 int
31153 main ()
31154 {
31155 return f != $ac_func;
31156   ;
31157   return 0;
31158 }
31159 _ACEOF
31160 rm -f conftest.$ac_objext conftest$ac_exeext
31161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31162   (eval $ac_link) 2>&5
31163   ac_status=$?
31164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31165   (exit $ac_status); } &&
31166          { ac_try='test -s conftest$ac_exeext'
31167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31168   (eval $ac_try) 2>&5
31169   ac_status=$?
31170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31171   (exit $ac_status); }; }; then
31172   eval "$as_ac_var=yes"
31173 else
31174   echo "$as_me: failed program was:" >&5
31175 sed 's/^/| /' conftest.$ac_ext >&5
31176
31177 eval "$as_ac_var=no"
31178 fi
31179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31180 fi
31181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31183 if test `eval echo '${'$as_ac_var'}'` = yes; then
31184   cat >>confdefs.h <<_ACEOF
31185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31186 _ACEOF
31187
31188 fi
31189 done
31190
31191
31192
31193
31194 for ac_header in limits.h string.h unistd.h
31195 do
31196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31198   echo "$as_me:$LINENO: checking for $ac_header" >&5
31199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31201   echo $ECHO_N "(cached) $ECHO_C" >&6
31202 fi
31203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31205 else
31206   # Is the header compilable?
31207 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31209 cat >conftest.$ac_ext <<_ACEOF
31210 /* confdefs.h.  */
31211 _ACEOF
31212 cat confdefs.h >>conftest.$ac_ext
31213 cat >>conftest.$ac_ext <<_ACEOF
31214 /* end confdefs.h.  */
31215 $ac_includes_default
31216 #include <$ac_header>
31217 _ACEOF
31218 rm -f conftest.$ac_objext
31219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31220   (eval $ac_compile) 2>&5
31221   ac_status=$?
31222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31223   (exit $ac_status); } &&
31224          { ac_try='test -s conftest.$ac_objext'
31225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31226   (eval $ac_try) 2>&5
31227   ac_status=$?
31228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229   (exit $ac_status); }; }; then
31230   ac_header_compiler=yes
31231 else
31232   echo "$as_me: failed program was:" >&5
31233 sed 's/^/| /' conftest.$ac_ext >&5
31234
31235 ac_header_compiler=no
31236 fi
31237 rm -f conftest.$ac_objext conftest.$ac_ext
31238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31239 echo "${ECHO_T}$ac_header_compiler" >&6
31240
31241 # Is the header present?
31242 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31244 cat >conftest.$ac_ext <<_ACEOF
31245 /* confdefs.h.  */
31246 _ACEOF
31247 cat confdefs.h >>conftest.$ac_ext
31248 cat >>conftest.$ac_ext <<_ACEOF
31249 /* end confdefs.h.  */
31250 #include <$ac_header>
31251 _ACEOF
31252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31253   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31254   ac_status=$?
31255   grep -v '^ *+' conftest.er1 >conftest.err
31256   rm -f conftest.er1
31257   cat conftest.err >&5
31258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259   (exit $ac_status); } >/dev/null; then
31260   if test -s conftest.err; then
31261     ac_cpp_err=$ac_c_preproc_warn_flag
31262   else
31263     ac_cpp_err=
31264   fi
31265 else
31266   ac_cpp_err=yes
31267 fi
31268 if test -z "$ac_cpp_err"; then
31269   ac_header_preproc=yes
31270 else
31271   echo "$as_me: failed program was:" >&5
31272 sed 's/^/| /' conftest.$ac_ext >&5
31273
31274   ac_header_preproc=no
31275 fi
31276 rm -f conftest.err conftest.$ac_ext
31277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31278 echo "${ECHO_T}$ac_header_preproc" >&6
31279
31280 # So?  What about this header?
31281 case $ac_header_compiler:$ac_header_preproc in
31282   yes:no )
31283     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31284 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31285     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31286 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31287     ac_header_preproc=yes
31288     ;;
31289   no:yes )
31290     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31291 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31292     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31293 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31294     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31295 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31296     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31297 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31298     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31300     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31301 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31302     (
31303       cat <<\_ASBOX
31304 ## ------------------------------------ ##
31305 ## Report this to bug-coreutils@gnu.org ##
31306 ## ------------------------------------ ##
31307 _ASBOX
31308     ) |
31309       sed "s/^/$as_me: WARNING:     /" >&2
31310     ;;
31311 esac
31312 echo "$as_me:$LINENO: checking for $ac_header" >&5
31313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31315   echo $ECHO_N "(cached) $ECHO_C" >&6
31316 else
31317   eval "$as_ac_Header=\$ac_header_preproc"
31318 fi
31319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31321
31322 fi
31323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31324   cat >>confdefs.h <<_ACEOF
31325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31326 _ACEOF
31327
31328 fi
31329
31330 done
31331
31332
31333
31334
31335
31336
31337
31338 for ac_header in sys/sysmacros.h sys/statvfs.h sys/vfs.h inttypes.h
31339 do
31340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31342   echo "$as_me:$LINENO: checking for $ac_header" >&5
31343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31345   echo $ECHO_N "(cached) $ECHO_C" >&6
31346 fi
31347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31349 else
31350   # Is the header compilable?
31351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31353 cat >conftest.$ac_ext <<_ACEOF
31354 /* confdefs.h.  */
31355 _ACEOF
31356 cat confdefs.h >>conftest.$ac_ext
31357 cat >>conftest.$ac_ext <<_ACEOF
31358 /* end confdefs.h.  */
31359 $ac_includes_default
31360 #include <$ac_header>
31361 _ACEOF
31362 rm -f conftest.$ac_objext
31363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31364   (eval $ac_compile) 2>&5
31365   ac_status=$?
31366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367   (exit $ac_status); } &&
31368          { ac_try='test -s conftest.$ac_objext'
31369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31370   (eval $ac_try) 2>&5
31371   ac_status=$?
31372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373   (exit $ac_status); }; }; then
31374   ac_header_compiler=yes
31375 else
31376   echo "$as_me: failed program was:" >&5
31377 sed 's/^/| /' conftest.$ac_ext >&5
31378
31379 ac_header_compiler=no
31380 fi
31381 rm -f conftest.$ac_objext conftest.$ac_ext
31382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31383 echo "${ECHO_T}$ac_header_compiler" >&6
31384
31385 # Is the header present?
31386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31388 cat >conftest.$ac_ext <<_ACEOF
31389 /* confdefs.h.  */
31390 _ACEOF
31391 cat confdefs.h >>conftest.$ac_ext
31392 cat >>conftest.$ac_ext <<_ACEOF
31393 /* end confdefs.h.  */
31394 #include <$ac_header>
31395 _ACEOF
31396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31397   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31398   ac_status=$?
31399   grep -v '^ *+' conftest.er1 >conftest.err
31400   rm -f conftest.er1
31401   cat conftest.err >&5
31402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31403   (exit $ac_status); } >/dev/null; then
31404   if test -s conftest.err; then
31405     ac_cpp_err=$ac_c_preproc_warn_flag
31406   else
31407     ac_cpp_err=
31408   fi
31409 else
31410   ac_cpp_err=yes
31411 fi
31412 if test -z "$ac_cpp_err"; then
31413   ac_header_preproc=yes
31414 else
31415   echo "$as_me: failed program was:" >&5
31416 sed 's/^/| /' conftest.$ac_ext >&5
31417
31418   ac_header_preproc=no
31419 fi
31420 rm -f conftest.err conftest.$ac_ext
31421 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31422 echo "${ECHO_T}$ac_header_preproc" >&6
31423
31424 # So?  What about this header?
31425 case $ac_header_compiler:$ac_header_preproc in
31426   yes:no )
31427     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31430 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31431     ac_header_preproc=yes
31432     ;;
31433   no:yes )
31434     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31435 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31436     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31437 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31438     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31439 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31440     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31441 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31442     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31443 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31444     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31445 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31446     (
31447       cat <<\_ASBOX
31448 ## ------------------------------------ ##
31449 ## Report this to bug-coreutils@gnu.org ##
31450 ## ------------------------------------ ##
31451 _ASBOX
31452     ) |
31453       sed "s/^/$as_me: WARNING:     /" >&2
31454     ;;
31455 esac
31456 echo "$as_me:$LINENO: checking for $ac_header" >&5
31457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31459   echo $ECHO_N "(cached) $ECHO_C" >&6
31460 else
31461   eval "$as_ac_Header=\$ac_header_preproc"
31462 fi
31463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31465
31466 fi
31467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31468   cat >>confdefs.h <<_ACEOF
31469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31470 _ACEOF
31471
31472 fi
31473
31474 done
31475
31476
31477
31478 for ac_header in sys/param.h sys/mount.h
31479 do
31480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31482   echo "$as_me:$LINENO: checking for $ac_header" >&5
31483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31485   echo $ECHO_N "(cached) $ECHO_C" >&6
31486 fi
31487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31489 else
31490   # Is the header compilable?
31491 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31492 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31493 cat >conftest.$ac_ext <<_ACEOF
31494 /* confdefs.h.  */
31495 _ACEOF
31496 cat confdefs.h >>conftest.$ac_ext
31497 cat >>conftest.$ac_ext <<_ACEOF
31498 /* end confdefs.h.  */
31499 $ac_includes_default
31500 #include <$ac_header>
31501 _ACEOF
31502 rm -f conftest.$ac_objext
31503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31504   (eval $ac_compile) 2>&5
31505   ac_status=$?
31506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507   (exit $ac_status); } &&
31508          { ac_try='test -s conftest.$ac_objext'
31509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31510   (eval $ac_try) 2>&5
31511   ac_status=$?
31512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31513   (exit $ac_status); }; }; then
31514   ac_header_compiler=yes
31515 else
31516   echo "$as_me: failed program was:" >&5
31517 sed 's/^/| /' conftest.$ac_ext >&5
31518
31519 ac_header_compiler=no
31520 fi
31521 rm -f conftest.$ac_objext conftest.$ac_ext
31522 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31523 echo "${ECHO_T}$ac_header_compiler" >&6
31524
31525 # Is the header present?
31526 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31528 cat >conftest.$ac_ext <<_ACEOF
31529 /* confdefs.h.  */
31530 _ACEOF
31531 cat confdefs.h >>conftest.$ac_ext
31532 cat >>conftest.$ac_ext <<_ACEOF
31533 /* end confdefs.h.  */
31534 #include <$ac_header>
31535 _ACEOF
31536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31537   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31538   ac_status=$?
31539   grep -v '^ *+' conftest.er1 >conftest.err
31540   rm -f conftest.er1
31541   cat conftest.err >&5
31542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543   (exit $ac_status); } >/dev/null; then
31544   if test -s conftest.err; then
31545     ac_cpp_err=$ac_c_preproc_warn_flag
31546   else
31547     ac_cpp_err=
31548   fi
31549 else
31550   ac_cpp_err=yes
31551 fi
31552 if test -z "$ac_cpp_err"; then
31553   ac_header_preproc=yes
31554 else
31555   echo "$as_me: failed program was:" >&5
31556 sed 's/^/| /' conftest.$ac_ext >&5
31557
31558   ac_header_preproc=no
31559 fi
31560 rm -f conftest.err conftest.$ac_ext
31561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31562 echo "${ECHO_T}$ac_header_preproc" >&6
31563
31564 # So?  What about this header?
31565 case $ac_header_compiler:$ac_header_preproc in
31566   yes:no )
31567     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31569     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31571     ac_header_preproc=yes
31572     ;;
31573   no:yes )
31574     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31576     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31577 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31578     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31580     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31581 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31582     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31584     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31586     (
31587       cat <<\_ASBOX
31588 ## ------------------------------------ ##
31589 ## Report this to bug-coreutils@gnu.org ##
31590 ## ------------------------------------ ##
31591 _ASBOX
31592     ) |
31593       sed "s/^/$as_me: WARNING:     /" >&2
31594     ;;
31595 esac
31596 echo "$as_me:$LINENO: checking for $ac_header" >&5
31597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31599   echo $ECHO_N "(cached) $ECHO_C" >&6
31600 else
31601   eval "$as_ac_Header=\$ac_header_preproc"
31602 fi
31603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31605
31606 fi
31607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31608   cat >>confdefs.h <<_ACEOF
31609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31610 _ACEOF
31611
31612 fi
31613
31614 done
31615
31616
31617 for ac_func in statvfs
31618 do
31619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31620 echo "$as_me:$LINENO: checking for $ac_func" >&5
31621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31622 if eval "test \"\${$as_ac_var+set}\" = set"; then
31623   echo $ECHO_N "(cached) $ECHO_C" >&6
31624 else
31625   cat >conftest.$ac_ext <<_ACEOF
31626 /* confdefs.h.  */
31627 _ACEOF
31628 cat confdefs.h >>conftest.$ac_ext
31629 cat >>conftest.$ac_ext <<_ACEOF
31630 /* end confdefs.h.  */
31631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31633 #define $ac_func innocuous_$ac_func
31634
31635 /* System header to define __stub macros and hopefully few prototypes,
31636     which can conflict with char $ac_func (); below.
31637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31638     <limits.h> exists even on freestanding compilers.  */
31639
31640 #ifdef __STDC__
31641 # include <limits.h>
31642 #else
31643 # include <assert.h>
31644 #endif
31645
31646 #undef $ac_func
31647
31648 /* Override any gcc2 internal prototype to avoid an error.  */
31649 #ifdef __cplusplus
31650 extern "C"
31651 {
31652 #endif
31653 /* We use char because int might match the return type of a gcc2
31654    builtin and then its argument prototype would still apply.  */
31655 char $ac_func ();
31656 /* The GNU C library defines this for functions which it implements
31657     to always fail with ENOSYS.  Some functions are actually named
31658     something starting with __ and the normal name is an alias.  */
31659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31660 choke me
31661 #else
31662 char (*f) () = $ac_func;
31663 #endif
31664 #ifdef __cplusplus
31665 }
31666 #endif
31667
31668 int
31669 main ()
31670 {
31671 return f != $ac_func;
31672   ;
31673   return 0;
31674 }
31675 _ACEOF
31676 rm -f conftest.$ac_objext conftest$ac_exeext
31677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31678   (eval $ac_link) 2>&5
31679   ac_status=$?
31680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31681   (exit $ac_status); } &&
31682          { ac_try='test -s conftest$ac_exeext'
31683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31684   (eval $ac_try) 2>&5
31685   ac_status=$?
31686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31687   (exit $ac_status); }; }; then
31688   eval "$as_ac_var=yes"
31689 else
31690   echo "$as_me: failed program was:" >&5
31691 sed 's/^/| /' conftest.$ac_ext >&5
31692
31693 eval "$as_ac_var=no"
31694 fi
31695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31696 fi
31697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31699 if test `eval echo '${'$as_ac_var'}'` = yes; then
31700   cat >>confdefs.h <<_ACEOF
31701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31702 _ACEOF
31703
31704 fi
31705 done
31706
31707
31708   # For `struct statfs' on Ultrix 4.4.
31709
31710
31711
31712 for ac_header in netinet/in.h nfs/nfs_clnt.h nfs/vfs.h
31713 do
31714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31715 echo "$as_me:$LINENO: checking for $ac_header" >&5
31716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31718   echo $ECHO_N "(cached) $ECHO_C" >&6
31719 else
31720   cat >conftest.$ac_ext <<_ACEOF
31721 /* confdefs.h.  */
31722 _ACEOF
31723 cat confdefs.h >>conftest.$ac_ext
31724 cat >>conftest.$ac_ext <<_ACEOF
31725 /* end confdefs.h.  */
31726 $ac_includes_default
31727
31728 #include <$ac_header>
31729 _ACEOF
31730 rm -f conftest.$ac_objext
31731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31732   (eval $ac_compile) 2>&5
31733   ac_status=$?
31734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735   (exit $ac_status); } &&
31736          { ac_try='test -s conftest.$ac_objext'
31737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31738   (eval $ac_try) 2>&5
31739   ac_status=$?
31740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741   (exit $ac_status); }; }; then
31742   eval "$as_ac_Header=yes"
31743 else
31744   echo "$as_me: failed program was:" >&5
31745 sed 's/^/| /' conftest.$ac_ext >&5
31746
31747 eval "$as_ac_Header=no"
31748 fi
31749 rm -f conftest.$ac_objext conftest.$ac_ext
31750 fi
31751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31754   cat >>confdefs.h <<_ACEOF
31755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31756 _ACEOF
31757
31758 fi
31759
31760 done
31761
31762
31763
31764
31765   statxfs_includes="\
31766 $ac_includes_default
31767 #if HAVE_SYS_STATVFS_H
31768 # include <sys/statvfs.h>
31769 #endif
31770 #if HAVE_SYS_VFS_H
31771 # include <sys/vfs.h>
31772 #endif
31773 #if !HAVE_SYS_STATVFS_H && !HAVE_SYS_VFS_H
31774 # if HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H
31775 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
31776 #  include <sys/param.h>
31777 #  include <sys/mount.h>
31778 # elif HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
31779 /* Ultrix 4.4 needs these for the declaration of struct statfs.  */
31780 #  include <netinet/in.h>
31781 #  include <nfs/nfs_clnt.h>
31782 #  include <nfs/vfs.h>
31783 # endif
31784 #endif
31785 "
31786   echo "$as_me:$LINENO: checking for struct statfs.f_basetype" >&5
31787 echo $ECHO_N "checking for struct statfs.f_basetype... $ECHO_C" >&6
31788 if test "${ac_cv_member_struct_statfs_f_basetype+set}" = set; then
31789   echo $ECHO_N "(cached) $ECHO_C" >&6
31790 else
31791   cat >conftest.$ac_ext <<_ACEOF
31792 /* confdefs.h.  */
31793 _ACEOF
31794 cat confdefs.h >>conftest.$ac_ext
31795 cat >>conftest.$ac_ext <<_ACEOF
31796 /* end confdefs.h.  */
31797 $statxfs_includes
31798
31799 int
31800 main ()
31801 {
31802 static struct statfs ac_aggr;
31803 if (ac_aggr.f_basetype)
31804 return 0;
31805   ;
31806   return 0;
31807 }
31808 _ACEOF
31809 rm -f conftest.$ac_objext
31810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31811   (eval $ac_compile) 2>&5
31812   ac_status=$?
31813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31814   (exit $ac_status); } &&
31815          { ac_try='test -s conftest.$ac_objext'
31816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31817   (eval $ac_try) 2>&5
31818   ac_status=$?
31819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820   (exit $ac_status); }; }; then
31821   ac_cv_member_struct_statfs_f_basetype=yes
31822 else
31823   echo "$as_me: failed program was:" >&5
31824 sed 's/^/| /' conftest.$ac_ext >&5
31825
31826 cat >conftest.$ac_ext <<_ACEOF
31827 /* confdefs.h.  */
31828 _ACEOF
31829 cat confdefs.h >>conftest.$ac_ext
31830 cat >>conftest.$ac_ext <<_ACEOF
31831 /* end confdefs.h.  */
31832 $statxfs_includes
31833
31834 int
31835 main ()
31836 {
31837 static struct statfs ac_aggr;
31838 if (sizeof ac_aggr.f_basetype)
31839 return 0;
31840   ;
31841   return 0;
31842 }
31843 _ACEOF
31844 rm -f conftest.$ac_objext
31845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31846   (eval $ac_compile) 2>&5
31847   ac_status=$?
31848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31849   (exit $ac_status); } &&
31850          { ac_try='test -s conftest.$ac_objext'
31851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31852   (eval $ac_try) 2>&5
31853   ac_status=$?
31854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31855   (exit $ac_status); }; }; then
31856   ac_cv_member_struct_statfs_f_basetype=yes
31857 else
31858   echo "$as_me: failed program was:" >&5
31859 sed 's/^/| /' conftest.$ac_ext >&5
31860
31861 ac_cv_member_struct_statfs_f_basetype=no
31862 fi
31863 rm -f conftest.$ac_objext conftest.$ac_ext
31864 fi
31865 rm -f conftest.$ac_objext conftest.$ac_ext
31866 fi
31867 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_basetype" >&5
31868 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_basetype" >&6
31869 if test $ac_cv_member_struct_statfs_f_basetype = yes; then
31870
31871 cat >>confdefs.h <<_ACEOF
31872 #define HAVE_STRUCT_STATFS_F_BASETYPE 1
31873 _ACEOF
31874
31875
31876 fi
31877
31878   echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
31879 echo $ECHO_N "checking for struct statvfs.f_basetype... $ECHO_C" >&6
31880 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
31881   echo $ECHO_N "(cached) $ECHO_C" >&6
31882 else
31883   cat >conftest.$ac_ext <<_ACEOF
31884 /* confdefs.h.  */
31885 _ACEOF
31886 cat confdefs.h >>conftest.$ac_ext
31887 cat >>conftest.$ac_ext <<_ACEOF
31888 /* end confdefs.h.  */
31889 $statxfs_includes
31890
31891 int
31892 main ()
31893 {
31894 static struct statvfs ac_aggr;
31895 if (ac_aggr.f_basetype)
31896 return 0;
31897   ;
31898   return 0;
31899 }
31900 _ACEOF
31901 rm -f conftest.$ac_objext
31902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31903   (eval $ac_compile) 2>&5
31904   ac_status=$?
31905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906   (exit $ac_status); } &&
31907          { ac_try='test -s conftest.$ac_objext'
31908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31909   (eval $ac_try) 2>&5
31910   ac_status=$?
31911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912   (exit $ac_status); }; }; then
31913   ac_cv_member_struct_statvfs_f_basetype=yes
31914 else
31915   echo "$as_me: failed program was:" >&5
31916 sed 's/^/| /' conftest.$ac_ext >&5
31917
31918 cat >conftest.$ac_ext <<_ACEOF
31919 /* confdefs.h.  */
31920 _ACEOF
31921 cat confdefs.h >>conftest.$ac_ext
31922 cat >>conftest.$ac_ext <<_ACEOF
31923 /* end confdefs.h.  */
31924 $statxfs_includes
31925
31926 int
31927 main ()
31928 {
31929 static struct statvfs ac_aggr;
31930 if (sizeof ac_aggr.f_basetype)
31931 return 0;
31932   ;
31933   return 0;
31934 }
31935 _ACEOF
31936 rm -f conftest.$ac_objext
31937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31938   (eval $ac_compile) 2>&5
31939   ac_status=$?
31940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941   (exit $ac_status); } &&
31942          { ac_try='test -s conftest.$ac_objext'
31943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31944   (eval $ac_try) 2>&5
31945   ac_status=$?
31946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31947   (exit $ac_status); }; }; then
31948   ac_cv_member_struct_statvfs_f_basetype=yes
31949 else
31950   echo "$as_me: failed program was:" >&5
31951 sed 's/^/| /' conftest.$ac_ext >&5
31952
31953 ac_cv_member_struct_statvfs_f_basetype=no
31954 fi
31955 rm -f conftest.$ac_objext conftest.$ac_ext
31956 fi
31957 rm -f conftest.$ac_objext conftest.$ac_ext
31958 fi
31959 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
31960 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_basetype" >&6
31961 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
31962
31963 cat >>confdefs.h <<_ACEOF
31964 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
31965 _ACEOF
31966
31967
31968 fi
31969
31970   echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
31971 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6
31972 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
31973   echo $ECHO_N "(cached) $ECHO_C" >&6
31974 else
31975   cat >conftest.$ac_ext <<_ACEOF
31976 /* confdefs.h.  */
31977 _ACEOF
31978 cat confdefs.h >>conftest.$ac_ext
31979 cat >>conftest.$ac_ext <<_ACEOF
31980 /* end confdefs.h.  */
31981 $statxfs_includes
31982
31983 int
31984 main ()
31985 {
31986 static struct statfs ac_aggr;
31987 if (ac_aggr.f_fstypename)
31988 return 0;
31989   ;
31990   return 0;
31991 }
31992 _ACEOF
31993 rm -f conftest.$ac_objext
31994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31995   (eval $ac_compile) 2>&5
31996   ac_status=$?
31997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31998   (exit $ac_status); } &&
31999          { ac_try='test -s conftest.$ac_objext'
32000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32001   (eval $ac_try) 2>&5
32002   ac_status=$?
32003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004   (exit $ac_status); }; }; then
32005   ac_cv_member_struct_statfs_f_fstypename=yes
32006 else
32007   echo "$as_me: failed program was:" >&5
32008 sed 's/^/| /' conftest.$ac_ext >&5
32009
32010 cat >conftest.$ac_ext <<_ACEOF
32011 /* confdefs.h.  */
32012 _ACEOF
32013 cat confdefs.h >>conftest.$ac_ext
32014 cat >>conftest.$ac_ext <<_ACEOF
32015 /* end confdefs.h.  */
32016 $statxfs_includes
32017
32018 int
32019 main ()
32020 {
32021 static struct statfs ac_aggr;
32022 if (sizeof ac_aggr.f_fstypename)
32023 return 0;
32024   ;
32025   return 0;
32026 }
32027 _ACEOF
32028 rm -f conftest.$ac_objext
32029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32030   (eval $ac_compile) 2>&5
32031   ac_status=$?
32032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32033   (exit $ac_status); } &&
32034          { ac_try='test -s conftest.$ac_objext'
32035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32036   (eval $ac_try) 2>&5
32037   ac_status=$?
32038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32039   (exit $ac_status); }; }; then
32040   ac_cv_member_struct_statfs_f_fstypename=yes
32041 else
32042   echo "$as_me: failed program was:" >&5
32043 sed 's/^/| /' conftest.$ac_ext >&5
32044
32045 ac_cv_member_struct_statfs_f_fstypename=no
32046 fi
32047 rm -f conftest.$ac_objext conftest.$ac_ext
32048 fi
32049 rm -f conftest.$ac_objext conftest.$ac_ext
32050 fi
32051 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
32052 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6
32053 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
32054
32055 cat >>confdefs.h <<_ACEOF
32056 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
32057 _ACEOF
32058
32059
32060 fi
32061
32062   echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
32063 echo $ECHO_N "checking for struct statfs.f_type... $ECHO_C" >&6
32064 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
32065   echo $ECHO_N "(cached) $ECHO_C" >&6
32066 else
32067   cat >conftest.$ac_ext <<_ACEOF
32068 /* confdefs.h.  */
32069 _ACEOF
32070 cat confdefs.h >>conftest.$ac_ext
32071 cat >>conftest.$ac_ext <<_ACEOF
32072 /* end confdefs.h.  */
32073 $statxfs_includes
32074
32075 int
32076 main ()
32077 {
32078 static struct statfs ac_aggr;
32079 if (ac_aggr.f_type)
32080 return 0;
32081   ;
32082   return 0;
32083 }
32084 _ACEOF
32085 rm -f conftest.$ac_objext
32086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32087   (eval $ac_compile) 2>&5
32088   ac_status=$?
32089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32090   (exit $ac_status); } &&
32091          { ac_try='test -s conftest.$ac_objext'
32092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32093   (eval $ac_try) 2>&5
32094   ac_status=$?
32095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32096   (exit $ac_status); }; }; then
32097   ac_cv_member_struct_statfs_f_type=yes
32098 else
32099   echo "$as_me: failed program was:" >&5
32100 sed 's/^/| /' conftest.$ac_ext >&5
32101
32102 cat >conftest.$ac_ext <<_ACEOF
32103 /* confdefs.h.  */
32104 _ACEOF
32105 cat confdefs.h >>conftest.$ac_ext
32106 cat >>conftest.$ac_ext <<_ACEOF
32107 /* end confdefs.h.  */
32108 $statxfs_includes
32109
32110 int
32111 main ()
32112 {
32113 static struct statfs ac_aggr;
32114 if (sizeof ac_aggr.f_type)
32115 return 0;
32116   ;
32117   return 0;
32118 }
32119 _ACEOF
32120 rm -f conftest.$ac_objext
32121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32122   (eval $ac_compile) 2>&5
32123   ac_status=$?
32124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32125   (exit $ac_status); } &&
32126          { ac_try='test -s conftest.$ac_objext'
32127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32128   (eval $ac_try) 2>&5
32129   ac_status=$?
32130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131   (exit $ac_status); }; }; then
32132   ac_cv_member_struct_statfs_f_type=yes
32133 else
32134   echo "$as_me: failed program was:" >&5
32135 sed 's/^/| /' conftest.$ac_ext >&5
32136
32137 ac_cv_member_struct_statfs_f_type=no
32138 fi
32139 rm -f conftest.$ac_objext conftest.$ac_ext
32140 fi
32141 rm -f conftest.$ac_objext conftest.$ac_ext
32142 fi
32143 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
32144 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_type" >&6
32145 if test $ac_cv_member_struct_statfs_f_type = yes; then
32146
32147 cat >>confdefs.h <<_ACEOF
32148 #define HAVE_STRUCT_STATFS_F_TYPE 1
32149 _ACEOF
32150
32151
32152 fi
32153
32154   echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
32155 echo $ECHO_N "checking for struct statvfs.f_type... $ECHO_C" >&6
32156 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
32157   echo $ECHO_N "(cached) $ECHO_C" >&6
32158 else
32159   cat >conftest.$ac_ext <<_ACEOF
32160 /* confdefs.h.  */
32161 _ACEOF
32162 cat confdefs.h >>conftest.$ac_ext
32163 cat >>conftest.$ac_ext <<_ACEOF
32164 /* end confdefs.h.  */
32165 $statxfs_includes
32166
32167 int
32168 main ()
32169 {
32170 static struct statvfs ac_aggr;
32171 if (ac_aggr.f_type)
32172 return 0;
32173   ;
32174   return 0;
32175 }
32176 _ACEOF
32177 rm -f conftest.$ac_objext
32178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32179   (eval $ac_compile) 2>&5
32180   ac_status=$?
32181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32182   (exit $ac_status); } &&
32183          { ac_try='test -s conftest.$ac_objext'
32184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32185   (eval $ac_try) 2>&5
32186   ac_status=$?
32187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32188   (exit $ac_status); }; }; then
32189   ac_cv_member_struct_statvfs_f_type=yes
32190 else
32191   echo "$as_me: failed program was:" >&5
32192 sed 's/^/| /' conftest.$ac_ext >&5
32193
32194 cat >conftest.$ac_ext <<_ACEOF
32195 /* confdefs.h.  */
32196 _ACEOF
32197 cat confdefs.h >>conftest.$ac_ext
32198 cat >>conftest.$ac_ext <<_ACEOF
32199 /* end confdefs.h.  */
32200 $statxfs_includes
32201
32202 int
32203 main ()
32204 {
32205 static struct statvfs ac_aggr;
32206 if (sizeof ac_aggr.f_type)
32207 return 0;
32208   ;
32209   return 0;
32210 }
32211 _ACEOF
32212 rm -f conftest.$ac_objext
32213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32214   (eval $ac_compile) 2>&5
32215   ac_status=$?
32216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217   (exit $ac_status); } &&
32218          { ac_try='test -s conftest.$ac_objext'
32219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32220   (eval $ac_try) 2>&5
32221   ac_status=$?
32222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32223   (exit $ac_status); }; }; then
32224   ac_cv_member_struct_statvfs_f_type=yes
32225 else
32226   echo "$as_me: failed program was:" >&5
32227 sed 's/^/| /' conftest.$ac_ext >&5
32228
32229 ac_cv_member_struct_statvfs_f_type=no
32230 fi
32231 rm -f conftest.$ac_objext conftest.$ac_ext
32232 fi
32233 rm -f conftest.$ac_objext conftest.$ac_ext
32234 fi
32235 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
32236 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_type" >&6
32237 if test $ac_cv_member_struct_statvfs_f_type = yes; then
32238
32239 cat >>confdefs.h <<_ACEOF
32240 #define HAVE_STRUCT_STATVFS_F_TYPE 1
32241 _ACEOF
32242
32243
32244 fi
32245
32246   echo "$as_me:$LINENO: checking for struct statfs.f_fsid.__val" >&5
32247 echo $ECHO_N "checking for struct statfs.f_fsid.__val... $ECHO_C" >&6
32248 if test "${ac_cv_member_struct_statfs_f_fsid___val+set}" = set; then
32249   echo $ECHO_N "(cached) $ECHO_C" >&6
32250 else
32251   cat >conftest.$ac_ext <<_ACEOF
32252 /* confdefs.h.  */
32253 _ACEOF
32254 cat confdefs.h >>conftest.$ac_ext
32255 cat >>conftest.$ac_ext <<_ACEOF
32256 /* end confdefs.h.  */
32257 $statxfs_includes
32258
32259 int
32260 main ()
32261 {
32262 static struct statfs ac_aggr;
32263 if (ac_aggr.f_fsid.__val)
32264 return 0;
32265   ;
32266   return 0;
32267 }
32268 _ACEOF
32269 rm -f conftest.$ac_objext
32270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32271   (eval $ac_compile) 2>&5
32272   ac_status=$?
32273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274   (exit $ac_status); } &&
32275          { ac_try='test -s conftest.$ac_objext'
32276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32277   (eval $ac_try) 2>&5
32278   ac_status=$?
32279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32280   (exit $ac_status); }; }; then
32281   ac_cv_member_struct_statfs_f_fsid___val=yes
32282 else
32283   echo "$as_me: failed program was:" >&5
32284 sed 's/^/| /' conftest.$ac_ext >&5
32285
32286 cat >conftest.$ac_ext <<_ACEOF
32287 /* confdefs.h.  */
32288 _ACEOF
32289 cat confdefs.h >>conftest.$ac_ext
32290 cat >>conftest.$ac_ext <<_ACEOF
32291 /* end confdefs.h.  */
32292 $statxfs_includes
32293
32294 int
32295 main ()
32296 {
32297 static struct statfs ac_aggr;
32298 if (sizeof ac_aggr.f_fsid.__val)
32299 return 0;
32300   ;
32301   return 0;
32302 }
32303 _ACEOF
32304 rm -f conftest.$ac_objext
32305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32306   (eval $ac_compile) 2>&5
32307   ac_status=$?
32308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309   (exit $ac_status); } &&
32310          { ac_try='test -s conftest.$ac_objext'
32311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32312   (eval $ac_try) 2>&5
32313   ac_status=$?
32314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315   (exit $ac_status); }; }; then
32316   ac_cv_member_struct_statfs_f_fsid___val=yes
32317 else
32318   echo "$as_me: failed program was:" >&5
32319 sed 's/^/| /' conftest.$ac_ext >&5
32320
32321 ac_cv_member_struct_statfs_f_fsid___val=no
32322 fi
32323 rm -f conftest.$ac_objext conftest.$ac_ext
32324 fi
32325 rm -f conftest.$ac_objext conftest.$ac_ext
32326 fi
32327 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsid___val" >&5
32328 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fsid___val" >&6
32329 if test $ac_cv_member_struct_statfs_f_fsid___val = yes; then
32330
32331 cat >>confdefs.h <<_ACEOF
32332 #define HAVE_STRUCT_STATFS_F_FSID___VAL 1
32333 _ACEOF
32334
32335
32336 fi
32337
32338   echo "$as_me:$LINENO: checking for struct statvfs.f_fsid.__val" >&5
32339 echo $ECHO_N "checking for struct statvfs.f_fsid.__val... $ECHO_C" >&6
32340 if test "${ac_cv_member_struct_statvfs_f_fsid___val+set}" = set; then
32341   echo $ECHO_N "(cached) $ECHO_C" >&6
32342 else
32343   cat >conftest.$ac_ext <<_ACEOF
32344 /* confdefs.h.  */
32345 _ACEOF
32346 cat confdefs.h >>conftest.$ac_ext
32347 cat >>conftest.$ac_ext <<_ACEOF
32348 /* end confdefs.h.  */
32349 $statxfs_includes
32350
32351 int
32352 main ()
32353 {
32354 static struct statvfs ac_aggr;
32355 if (ac_aggr.f_fsid.__val)
32356 return 0;
32357   ;
32358   return 0;
32359 }
32360 _ACEOF
32361 rm -f conftest.$ac_objext
32362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32363   (eval $ac_compile) 2>&5
32364   ac_status=$?
32365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366   (exit $ac_status); } &&
32367          { ac_try='test -s conftest.$ac_objext'
32368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32369   (eval $ac_try) 2>&5
32370   ac_status=$?
32371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32372   (exit $ac_status); }; }; then
32373   ac_cv_member_struct_statvfs_f_fsid___val=yes
32374 else
32375   echo "$as_me: failed program was:" >&5
32376 sed 's/^/| /' conftest.$ac_ext >&5
32377
32378 cat >conftest.$ac_ext <<_ACEOF
32379 /* confdefs.h.  */
32380 _ACEOF
32381 cat confdefs.h >>conftest.$ac_ext
32382 cat >>conftest.$ac_ext <<_ACEOF
32383 /* end confdefs.h.  */
32384 $statxfs_includes
32385
32386 int
32387 main ()
32388 {
32389 static struct statvfs ac_aggr;
32390 if (sizeof ac_aggr.f_fsid.__val)
32391 return 0;
32392   ;
32393   return 0;
32394 }
32395 _ACEOF
32396 rm -f conftest.$ac_objext
32397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32398   (eval $ac_compile) 2>&5
32399   ac_status=$?
32400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401   (exit $ac_status); } &&
32402          { ac_try='test -s conftest.$ac_objext'
32403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32404   (eval $ac_try) 2>&5
32405   ac_status=$?
32406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407   (exit $ac_status); }; }; then
32408   ac_cv_member_struct_statvfs_f_fsid___val=yes
32409 else
32410   echo "$as_me: failed program was:" >&5
32411 sed 's/^/| /' conftest.$ac_ext >&5
32412
32413 ac_cv_member_struct_statvfs_f_fsid___val=no
32414 fi
32415 rm -f conftest.$ac_objext conftest.$ac_ext
32416 fi
32417 rm -f conftest.$ac_objext conftest.$ac_ext
32418 fi
32419 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fsid___val" >&5
32420 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fsid___val" >&6
32421 if test $ac_cv_member_struct_statvfs_f_fsid___val = yes; then
32422
32423 cat >>confdefs.h <<_ACEOF
32424 #define HAVE_STRUCT_STATVFS_F_FSID___VAL 1
32425 _ACEOF
32426
32427
32428 fi
32429
32430   echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
32431 echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6
32432 if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
32433   echo $ECHO_N "(cached) $ECHO_C" >&6
32434 else
32435   cat >conftest.$ac_ext <<_ACEOF
32436 /* confdefs.h.  */
32437 _ACEOF
32438 cat confdefs.h >>conftest.$ac_ext
32439 cat >>conftest.$ac_ext <<_ACEOF
32440 /* end confdefs.h.  */
32441 $statxfs_includes
32442
32443 int
32444 main ()
32445 {
32446 static struct statfs ac_aggr;
32447 if (ac_aggr.f_namemax)
32448 return 0;
32449   ;
32450   return 0;
32451 }
32452 _ACEOF
32453 rm -f conftest.$ac_objext
32454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32455   (eval $ac_compile) 2>&5
32456   ac_status=$?
32457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458   (exit $ac_status); } &&
32459          { ac_try='test -s conftest.$ac_objext'
32460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32461   (eval $ac_try) 2>&5
32462   ac_status=$?
32463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464   (exit $ac_status); }; }; then
32465   ac_cv_member_struct_statfs_f_namemax=yes
32466 else
32467   echo "$as_me: failed program was:" >&5
32468 sed 's/^/| /' conftest.$ac_ext >&5
32469
32470 cat >conftest.$ac_ext <<_ACEOF
32471 /* confdefs.h.  */
32472 _ACEOF
32473 cat confdefs.h >>conftest.$ac_ext
32474 cat >>conftest.$ac_ext <<_ACEOF
32475 /* end confdefs.h.  */
32476 $statxfs_includes
32477
32478 int
32479 main ()
32480 {
32481 static struct statfs ac_aggr;
32482 if (sizeof ac_aggr.f_namemax)
32483 return 0;
32484   ;
32485   return 0;
32486 }
32487 _ACEOF
32488 rm -f conftest.$ac_objext
32489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32490   (eval $ac_compile) 2>&5
32491   ac_status=$?
32492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32493   (exit $ac_status); } &&
32494          { ac_try='test -s conftest.$ac_objext'
32495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32496   (eval $ac_try) 2>&5
32497   ac_status=$?
32498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499   (exit $ac_status); }; }; then
32500   ac_cv_member_struct_statfs_f_namemax=yes
32501 else
32502   echo "$as_me: failed program was:" >&5
32503 sed 's/^/| /' conftest.$ac_ext >&5
32504
32505 ac_cv_member_struct_statfs_f_namemax=no
32506 fi
32507 rm -f conftest.$ac_objext conftest.$ac_ext
32508 fi
32509 rm -f conftest.$ac_objext conftest.$ac_ext
32510 fi
32511 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
32512 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6
32513 if test $ac_cv_member_struct_statfs_f_namemax = yes; then
32514
32515 cat >>confdefs.h <<_ACEOF
32516 #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
32517 _ACEOF
32518
32519
32520 fi
32521
32522   echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
32523 echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6
32524 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
32525   echo $ECHO_N "(cached) $ECHO_C" >&6
32526 else
32527   cat >conftest.$ac_ext <<_ACEOF
32528 /* confdefs.h.  */
32529 _ACEOF
32530 cat confdefs.h >>conftest.$ac_ext
32531 cat >>conftest.$ac_ext <<_ACEOF
32532 /* end confdefs.h.  */
32533 $statxfs_includes
32534
32535 int
32536 main ()
32537 {
32538 static struct statvfs ac_aggr;
32539 if (ac_aggr.f_namemax)
32540 return 0;
32541   ;
32542   return 0;
32543 }
32544 _ACEOF
32545 rm -f conftest.$ac_objext
32546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32547   (eval $ac_compile) 2>&5
32548   ac_status=$?
32549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32550   (exit $ac_status); } &&
32551          { ac_try='test -s conftest.$ac_objext'
32552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32553   (eval $ac_try) 2>&5
32554   ac_status=$?
32555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32556   (exit $ac_status); }; }; then
32557   ac_cv_member_struct_statvfs_f_namemax=yes
32558 else
32559   echo "$as_me: failed program was:" >&5
32560 sed 's/^/| /' conftest.$ac_ext >&5
32561
32562 cat >conftest.$ac_ext <<_ACEOF
32563 /* confdefs.h.  */
32564 _ACEOF
32565 cat confdefs.h >>conftest.$ac_ext
32566 cat >>conftest.$ac_ext <<_ACEOF
32567 /* end confdefs.h.  */
32568 $statxfs_includes
32569
32570 int
32571 main ()
32572 {
32573 static struct statvfs ac_aggr;
32574 if (sizeof ac_aggr.f_namemax)
32575 return 0;
32576   ;
32577   return 0;
32578 }
32579 _ACEOF
32580 rm -f conftest.$ac_objext
32581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32582   (eval $ac_compile) 2>&5
32583   ac_status=$?
32584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32585   (exit $ac_status); } &&
32586          { ac_try='test -s conftest.$ac_objext'
32587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32588   (eval $ac_try) 2>&5
32589   ac_status=$?
32590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32591   (exit $ac_status); }; }; then
32592   ac_cv_member_struct_statvfs_f_namemax=yes
32593 else
32594   echo "$as_me: failed program was:" >&5
32595 sed 's/^/| /' conftest.$ac_ext >&5
32596
32597 ac_cv_member_struct_statvfs_f_namemax=no
32598 fi
32599 rm -f conftest.$ac_objext conftest.$ac_ext
32600 fi
32601 rm -f conftest.$ac_objext conftest.$ac_ext
32602 fi
32603 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
32604 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6
32605 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
32606
32607 cat >>confdefs.h <<_ACEOF
32608 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
32609 _ACEOF
32610
32611
32612 fi
32613
32614   echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
32615 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
32616 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
32617   echo $ECHO_N "(cached) $ECHO_C" >&6
32618 else
32619   cat >conftest.$ac_ext <<_ACEOF
32620 /* confdefs.h.  */
32621 _ACEOF
32622 cat confdefs.h >>conftest.$ac_ext
32623 cat >>conftest.$ac_ext <<_ACEOF
32624 /* end confdefs.h.  */
32625 $statxfs_includes
32626
32627 int
32628 main ()
32629 {
32630 static struct statfs ac_aggr;
32631 if (ac_aggr.f_namelen)
32632 return 0;
32633   ;
32634   return 0;
32635 }
32636 _ACEOF
32637 rm -f conftest.$ac_objext
32638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32639   (eval $ac_compile) 2>&5
32640   ac_status=$?
32641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642   (exit $ac_status); } &&
32643          { ac_try='test -s conftest.$ac_objext'
32644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32645   (eval $ac_try) 2>&5
32646   ac_status=$?
32647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648   (exit $ac_status); }; }; then
32649   ac_cv_member_struct_statfs_f_namelen=yes
32650 else
32651   echo "$as_me: failed program was:" >&5
32652 sed 's/^/| /' conftest.$ac_ext >&5
32653
32654 cat >conftest.$ac_ext <<_ACEOF
32655 /* confdefs.h.  */
32656 _ACEOF
32657 cat confdefs.h >>conftest.$ac_ext
32658 cat >>conftest.$ac_ext <<_ACEOF
32659 /* end confdefs.h.  */
32660 $statxfs_includes
32661
32662 int
32663 main ()
32664 {
32665 static struct statfs ac_aggr;
32666 if (sizeof ac_aggr.f_namelen)
32667 return 0;
32668   ;
32669   return 0;
32670 }
32671 _ACEOF
32672 rm -f conftest.$ac_objext
32673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32674   (eval $ac_compile) 2>&5
32675   ac_status=$?
32676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677   (exit $ac_status); } &&
32678          { ac_try='test -s conftest.$ac_objext'
32679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32680   (eval $ac_try) 2>&5
32681   ac_status=$?
32682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32683   (exit $ac_status); }; }; then
32684   ac_cv_member_struct_statfs_f_namelen=yes
32685 else
32686   echo "$as_me: failed program was:" >&5
32687 sed 's/^/| /' conftest.$ac_ext >&5
32688
32689 ac_cv_member_struct_statfs_f_namelen=no
32690 fi
32691 rm -f conftest.$ac_objext conftest.$ac_ext
32692 fi
32693 rm -f conftest.$ac_objext conftest.$ac_ext
32694 fi
32695 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
32696 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
32697 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
32698
32699 cat >>confdefs.h <<_ACEOF
32700 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
32701 _ACEOF
32702
32703
32704 fi
32705
32706   echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
32707 echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6
32708 if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
32709   echo $ECHO_N "(cached) $ECHO_C" >&6
32710 else
32711   cat >conftest.$ac_ext <<_ACEOF
32712 /* confdefs.h.  */
32713 _ACEOF
32714 cat confdefs.h >>conftest.$ac_ext
32715 cat >>conftest.$ac_ext <<_ACEOF
32716 /* end confdefs.h.  */
32717 $statxfs_includes
32718
32719 int
32720 main ()
32721 {
32722 static struct statvfs ac_aggr;
32723 if (ac_aggr.f_namelen)
32724 return 0;
32725   ;
32726   return 0;
32727 }
32728 _ACEOF
32729 rm -f conftest.$ac_objext
32730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32731   (eval $ac_compile) 2>&5
32732   ac_status=$?
32733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32734   (exit $ac_status); } &&
32735          { ac_try='test -s conftest.$ac_objext'
32736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32737   (eval $ac_try) 2>&5
32738   ac_status=$?
32739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32740   (exit $ac_status); }; }; then
32741   ac_cv_member_struct_statvfs_f_namelen=yes
32742 else
32743   echo "$as_me: failed program was:" >&5
32744 sed 's/^/| /' conftest.$ac_ext >&5
32745
32746 cat >conftest.$ac_ext <<_ACEOF
32747 /* confdefs.h.  */
32748 _ACEOF
32749 cat confdefs.h >>conftest.$ac_ext
32750 cat >>conftest.$ac_ext <<_ACEOF
32751 /* end confdefs.h.  */
32752 $statxfs_includes
32753
32754 int
32755 main ()
32756 {
32757 static struct statvfs ac_aggr;
32758 if (sizeof ac_aggr.f_namelen)
32759 return 0;
32760   ;
32761   return 0;
32762 }
32763 _ACEOF
32764 rm -f conftest.$ac_objext
32765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32766   (eval $ac_compile) 2>&5
32767   ac_status=$?
32768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32769   (exit $ac_status); } &&
32770          { ac_try='test -s conftest.$ac_objext'
32771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32772   (eval $ac_try) 2>&5
32773   ac_status=$?
32774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775   (exit $ac_status); }; }; then
32776   ac_cv_member_struct_statvfs_f_namelen=yes
32777 else
32778   echo "$as_me: failed program was:" >&5
32779 sed 's/^/| /' conftest.$ac_ext >&5
32780
32781 ac_cv_member_struct_statvfs_f_namelen=no
32782 fi
32783 rm -f conftest.$ac_objext conftest.$ac_ext
32784 fi
32785 rm -f conftest.$ac_objext conftest.$ac_ext
32786 fi
32787 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
32788 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6
32789 if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
32790
32791 cat >>confdefs.h <<_ACEOF
32792 #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
32793 _ACEOF
32794
32795
32796 fi
32797
32798
32799
32800
32801
32802
32803
32804
32805
32806
32807
32808  echo "$as_me:$LINENO: checking whether rename is broken" >&5
32809 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6
32810 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
32811   echo $ECHO_N "(cached) $ECHO_C" >&6
32812 else
32813
32814     rm -rf conftest.d1 conftest.d2
32815     mkdir conftest.d1 ||
32816       { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
32817 echo "$as_me: error: cannot create temporary directory" >&2;}
32818    { (exit 1); exit 1; }; }
32819
32820 if test "$cross_compiling" = yes; then
32821         vb_cv_func_rename_trailing_slash_bug=yes
32822 else
32823   cat >conftest.$ac_ext <<_ACEOF
32824 /* confdefs.h.  */
32825 _ACEOF
32826 cat confdefs.h >>conftest.$ac_ext
32827 cat >>conftest.$ac_ext <<_ACEOF
32828 /* end confdefs.h.  */
32829
32830 #       include <stdio.h>
32831         int
32832         main ()
32833         {
32834           exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
32835         }
32836
32837 _ACEOF
32838 rm -f conftest$ac_exeext
32839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32840   (eval $ac_link) 2>&5
32841   ac_status=$?
32842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32843   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32845   (eval $ac_try) 2>&5
32846   ac_status=$?
32847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32848   (exit $ac_status); }; }; then
32849   vb_cv_func_rename_trailing_slash_bug=no
32850 else
32851   echo "$as_me: program exited with status $ac_status" >&5
32852 echo "$as_me: failed program was:" >&5
32853 sed 's/^/| /' conftest.$ac_ext >&5
32854
32855 ( exit $ac_status )
32856 vb_cv_func_rename_trailing_slash_bug=yes
32857 fi
32858 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32859 fi
32860
32861       rm -rf conftest.d1 conftest.d2
32862
32863 fi
32864 echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
32865 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6
32866   if test $vb_cv_func_rename_trailing_slash_bug = yes; then
32867     LIBOBJS="$LIBOBJS rename.$ac_objext"
32868
32869 cat >>confdefs.h <<\_ACEOF
32870 #define rename rpl_rename
32871 _ACEOF
32872
32873
32874 cat >>confdefs.h <<\_ACEOF
32875 #define RENAME_TRAILING_SLASH_BUG 1
32876 _ACEOF
32877
32878
32879
32880   :
32881
32882
32883
32884
32885
32886
32887
32888
32889
32890   :
32891
32892
32893
32894
32895
32896
32897   fi
32898
32899
32900   # We don't yet use c-stack.c.
32901   # AC_REQUIRE([gl_C_STACK])
32902
32903
32904
32905
32906
32907
32908
32909
32910
32911
32912
32913
32914
32915
32916
32917
32918
32919
32920
32921
32922
32923
32924
32925
32926
32927
32928
32929
32930
32931
32932
32933
32934
32935
32936
32937
32938
32939
32940
32941
32942
32943
32944
32945
32946
32947
32948
32949
32950
32951
32952
32953
32954
32955
32956
32957
32958
32959
32960
32961
32962
32963
32964
32965
32966
32967
32968
32969
32970
32971
32972
32973
32974
32975
32976
32977
32978
32979
32980
32981
32982
32983
32984
32985
32986
32987
32988
32989
32990
32991
32992
32993
32994
32995
32996
32997
32998
32999
33000
33001
33002
33003
33004
33005
33006
33007
33008
33009
33010
33011
33012
33013
33014
33015
33016
33017
33018
33019
33020 ac_header_dirent=no
33021 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
33022   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
33023 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
33024 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
33025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33026   echo $ECHO_N "(cached) $ECHO_C" >&6
33027 else
33028   cat >conftest.$ac_ext <<_ACEOF
33029 /* confdefs.h.  */
33030 _ACEOF
33031 cat confdefs.h >>conftest.$ac_ext
33032 cat >>conftest.$ac_ext <<_ACEOF
33033 /* end confdefs.h.  */
33034 #include <sys/types.h>
33035 #include <$ac_hdr>
33036
33037 int
33038 main ()
33039 {
33040 if ((DIR *) 0)
33041 return 0;
33042   ;
33043   return 0;
33044 }
33045 _ACEOF
33046 rm -f conftest.$ac_objext
33047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33048   (eval $ac_compile) 2>&5
33049   ac_status=$?
33050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33051   (exit $ac_status); } &&
33052          { ac_try='test -s conftest.$ac_objext'
33053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33054   (eval $ac_try) 2>&5
33055   ac_status=$?
33056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057   (exit $ac_status); }; }; then
33058   eval "$as_ac_Header=yes"
33059 else
33060   echo "$as_me: failed program was:" >&5
33061 sed 's/^/| /' conftest.$ac_ext >&5
33062
33063 eval "$as_ac_Header=no"
33064 fi
33065 rm -f conftest.$ac_objext conftest.$ac_ext
33066 fi
33067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33070   cat >>confdefs.h <<_ACEOF
33071 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
33072 _ACEOF
33073
33074 ac_header_dirent=$ac_hdr; break
33075 fi
33076
33077 done
33078 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
33079 if test $ac_header_dirent = dirent.h; then
33080
33081   echo "$as_me:$LINENO: checking for library containing opendir" >&5
33082 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
33083 if test "${ac_cv_search_opendir+set}" = set; then
33084   echo $ECHO_N "(cached) $ECHO_C" >&6
33085 else
33086
33087     ac_func_search_save_LIBS=$LIBS
33088     ac_cv_search_opendir=no
33089     cat >conftest.$ac_ext <<_ACEOF
33090 /* confdefs.h.  */
33091 _ACEOF
33092 cat confdefs.h >>conftest.$ac_ext
33093 cat >>conftest.$ac_ext <<_ACEOF
33094 /* end confdefs.h.  */
33095
33096 /* Override any gcc2 internal prototype to avoid an error.  */
33097 #ifdef __cplusplus
33098 extern "C"
33099 #endif
33100 /* We use char because int might match the return type of a gcc2
33101    builtin and then its argument prototype would still apply.  */
33102 char opendir ();
33103 int
33104 main ()
33105 {
33106 opendir ();
33107   ;
33108   return 0;
33109 }
33110 _ACEOF
33111 rm -f conftest.$ac_objext conftest$ac_exeext
33112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33113   (eval $ac_link) 2>&5
33114   ac_status=$?
33115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33116   (exit $ac_status); } &&
33117          { ac_try='test -s conftest$ac_exeext'
33118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33119   (eval $ac_try) 2>&5
33120   ac_status=$?
33121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122   (exit $ac_status); }; }; then
33123   ac_cv_search_opendir='none required'
33124 else
33125   echo "$as_me: failed program was:" >&5
33126 sed 's/^/| /' conftest.$ac_ext >&5
33127
33128 fi
33129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33130     if test "$ac_cv_search_opendir" = no; then
33131       for ac_lib in dir; do
33132         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33133         cat >conftest.$ac_ext <<_ACEOF
33134 /* confdefs.h.  */
33135 _ACEOF
33136 cat confdefs.h >>conftest.$ac_ext
33137 cat >>conftest.$ac_ext <<_ACEOF
33138 /* end confdefs.h.  */
33139
33140 /* Override any gcc2 internal prototype to avoid an error.  */
33141 #ifdef __cplusplus
33142 extern "C"
33143 #endif
33144 /* We use char because int might match the return type of a gcc2
33145    builtin and then its argument prototype would still apply.  */
33146 char opendir ();
33147 int
33148 main ()
33149 {
33150 opendir ();
33151   ;
33152   return 0;
33153 }
33154 _ACEOF
33155 rm -f conftest.$ac_objext conftest$ac_exeext
33156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33157   (eval $ac_link) 2>&5
33158   ac_status=$?
33159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33160   (exit $ac_status); } &&
33161          { ac_try='test -s conftest$ac_exeext'
33162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33163   (eval $ac_try) 2>&5
33164   ac_status=$?
33165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166   (exit $ac_status); }; }; then
33167   ac_cv_search_opendir="-l$ac_lib"; break
33168 else
33169   echo "$as_me: failed program was:" >&5
33170 sed 's/^/| /' conftest.$ac_ext >&5
33171
33172 fi
33173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33174       done
33175     fi
33176     LIBS=$ac_func_search_save_LIBS
33177
33178 fi
33179 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
33180 echo "${ECHO_T}$ac_cv_search_opendir" >&6
33181
33182   if test "$ac_cv_search_opendir" = no; then :
33183
33184   else
33185     if test "$ac_cv_search_opendir" = 'none required'; then :
33186
33187     else
33188       LIBS="$ac_cv_search_opendir $LIBS"
33189
33190     fi
33191   fi
33192
33193 else
33194
33195   echo "$as_me:$LINENO: checking for library containing opendir" >&5
33196 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
33197 if test "${ac_cv_search_opendir+set}" = set; then
33198   echo $ECHO_N "(cached) $ECHO_C" >&6
33199 else
33200
33201     ac_func_search_save_LIBS=$LIBS
33202     ac_cv_search_opendir=no
33203     cat >conftest.$ac_ext <<_ACEOF
33204 /* confdefs.h.  */
33205 _ACEOF
33206 cat confdefs.h >>conftest.$ac_ext
33207 cat >>conftest.$ac_ext <<_ACEOF
33208 /* end confdefs.h.  */
33209
33210 /* Override any gcc2 internal prototype to avoid an error.  */
33211 #ifdef __cplusplus
33212 extern "C"
33213 #endif
33214 /* We use char because int might match the return type of a gcc2
33215    builtin and then its argument prototype would still apply.  */
33216 char opendir ();
33217 int
33218 main ()
33219 {
33220 opendir ();
33221   ;
33222   return 0;
33223 }
33224 _ACEOF
33225 rm -f conftest.$ac_objext conftest$ac_exeext
33226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33227   (eval $ac_link) 2>&5
33228   ac_status=$?
33229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33230   (exit $ac_status); } &&
33231          { ac_try='test -s conftest$ac_exeext'
33232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33233   (eval $ac_try) 2>&5
33234   ac_status=$?
33235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33236   (exit $ac_status); }; }; then
33237   ac_cv_search_opendir='none required'
33238 else
33239   echo "$as_me: failed program was:" >&5
33240 sed 's/^/| /' conftest.$ac_ext >&5
33241
33242 fi
33243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33244     if test "$ac_cv_search_opendir" = no; then
33245       for ac_lib in x; do
33246         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33247         cat >conftest.$ac_ext <<_ACEOF
33248 /* confdefs.h.  */
33249 _ACEOF
33250 cat confdefs.h >>conftest.$ac_ext
33251 cat >>conftest.$ac_ext <<_ACEOF
33252 /* end confdefs.h.  */
33253
33254 /* Override any gcc2 internal prototype to avoid an error.  */
33255 #ifdef __cplusplus
33256 extern "C"
33257 #endif
33258 /* We use char because int might match the return type of a gcc2
33259    builtin and then its argument prototype would still apply.  */
33260 char opendir ();
33261 int
33262 main ()
33263 {
33264 opendir ();
33265   ;
33266   return 0;
33267 }
33268 _ACEOF
33269 rm -f conftest.$ac_objext conftest$ac_exeext
33270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33271   (eval $ac_link) 2>&5
33272   ac_status=$?
33273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274   (exit $ac_status); } &&
33275          { ac_try='test -s conftest$ac_exeext'
33276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33277   (eval $ac_try) 2>&5
33278   ac_status=$?
33279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280   (exit $ac_status); }; }; then
33281   ac_cv_search_opendir="-l$ac_lib"; break
33282 else
33283   echo "$as_me: failed program was:" >&5
33284 sed 's/^/| /' conftest.$ac_ext >&5
33285
33286 fi
33287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33288       done
33289     fi
33290     LIBS=$ac_func_search_save_LIBS
33291
33292 fi
33293 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
33294 echo "${ECHO_T}$ac_cv_search_opendir" >&6
33295
33296   if test "$ac_cv_search_opendir" = no; then :
33297
33298   else
33299     if test "$ac_cv_search_opendir" = 'none required'; then :
33300
33301     else
33302       LIBS="$ac_cv_search_opendir $LIBS"
33303
33304     fi
33305   fi
33306
33307 fi
33308
33309   dirfd_headers='
33310 #if HAVE_DIRENT_H
33311 # include <dirent.h>
33312 #else /* not HAVE_DIRENT_H */
33313 # define dirent direct
33314 # if HAVE_SYS_NDIR_H
33315 #  include <sys/ndir.h>
33316 # endif /* HAVE_SYS_NDIR_H */
33317 # if HAVE_SYS_DIR_H
33318 #  include <sys/dir.h>
33319 # endif /* HAVE_SYS_DIR_H */
33320 # if HAVE_NDIR_H
33321 #  include <ndir.h>
33322 # endif /* HAVE_NDIR_H */
33323 #endif /* HAVE_DIRENT_H */
33324 '
33325
33326 for ac_func in dirfd
33327 do
33328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33329 echo "$as_me:$LINENO: checking for $ac_func" >&5
33330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33331 if eval "test \"\${$as_ac_var+set}\" = set"; then
33332   echo $ECHO_N "(cached) $ECHO_C" >&6
33333 else
33334   cat >conftest.$ac_ext <<_ACEOF
33335 /* confdefs.h.  */
33336 _ACEOF
33337 cat confdefs.h >>conftest.$ac_ext
33338 cat >>conftest.$ac_ext <<_ACEOF
33339 /* end confdefs.h.  */
33340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33341    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33342 #define $ac_func innocuous_$ac_func
33343
33344 /* System header to define __stub macros and hopefully few prototypes,
33345     which can conflict with char $ac_func (); below.
33346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33347     <limits.h> exists even on freestanding compilers.  */
33348
33349 #ifdef __STDC__
33350 # include <limits.h>
33351 #else
33352 # include <assert.h>
33353 #endif
33354
33355 #undef $ac_func
33356
33357 /* Override any gcc2 internal prototype to avoid an error.  */
33358 #ifdef __cplusplus
33359 extern "C"
33360 {
33361 #endif
33362 /* We use char because int might match the return type of a gcc2
33363    builtin and then its argument prototype would still apply.  */
33364 char $ac_func ();
33365 /* The GNU C library defines this for functions which it implements
33366     to always fail with ENOSYS.  Some functions are actually named
33367     something starting with __ and the normal name is an alias.  */
33368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33369 choke me
33370 #else
33371 char (*f) () = $ac_func;
33372 #endif
33373 #ifdef __cplusplus
33374 }
33375 #endif
33376
33377 int
33378 main ()
33379 {
33380 return f != $ac_func;
33381   ;
33382   return 0;
33383 }
33384 _ACEOF
33385 rm -f conftest.$ac_objext conftest$ac_exeext
33386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33387   (eval $ac_link) 2>&5
33388   ac_status=$?
33389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33390   (exit $ac_status); } &&
33391          { ac_try='test -s conftest$ac_exeext'
33392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33393   (eval $ac_try) 2>&5
33394   ac_status=$?
33395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396   (exit $ac_status); }; }; then
33397   eval "$as_ac_var=yes"
33398 else
33399   echo "$as_me: failed program was:" >&5
33400 sed 's/^/| /' conftest.$ac_ext >&5
33401
33402 eval "$as_ac_var=no"
33403 fi
33404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33405 fi
33406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33408 if test `eval echo '${'$as_ac_var'}'` = yes; then
33409   cat >>confdefs.h <<_ACEOF
33410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33411 _ACEOF
33412
33413 fi
33414 done
33415
33416   echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
33417 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6
33418 if test "${ac_cv_have_decl_dirfd+set}" = set; then
33419   echo $ECHO_N "(cached) $ECHO_C" >&6
33420 else
33421   cat >conftest.$ac_ext <<_ACEOF
33422 /* confdefs.h.  */
33423 _ACEOF
33424 cat confdefs.h >>conftest.$ac_ext
33425 cat >>conftest.$ac_ext <<_ACEOF
33426 /* end confdefs.h.  */
33427 $dirfd_headers
33428
33429 int
33430 main ()
33431 {
33432 #ifndef dirfd
33433   char *p = (char *) dirfd;
33434 #endif
33435
33436   ;
33437   return 0;
33438 }
33439 _ACEOF
33440 rm -f conftest.$ac_objext
33441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33442   (eval $ac_compile) 2>&5
33443   ac_status=$?
33444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33445   (exit $ac_status); } &&
33446          { ac_try='test -s conftest.$ac_objext'
33447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33448   (eval $ac_try) 2>&5
33449   ac_status=$?
33450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33451   (exit $ac_status); }; }; then
33452   ac_cv_have_decl_dirfd=yes
33453 else
33454   echo "$as_me: failed program was:" >&5
33455 sed 's/^/| /' conftest.$ac_ext >&5
33456
33457 ac_cv_have_decl_dirfd=no
33458 fi
33459 rm -f conftest.$ac_objext conftest.$ac_ext
33460 fi
33461 echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
33462 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6
33463 if test $ac_cv_have_decl_dirfd = yes; then
33464
33465 cat >>confdefs.h <<_ACEOF
33466 #define HAVE_DECL_DIRFD 1
33467 _ACEOF
33468
33469
33470 else
33471   cat >>confdefs.h <<_ACEOF
33472 #define HAVE_DECL_DIRFD 0
33473 _ACEOF
33474
33475
33476 fi
33477
33478
33479
33480   echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
33481 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6
33482 if test "${jm_cv_func_dirfd_macro+set}" = set; then
33483   echo $ECHO_N "(cached) $ECHO_C" >&6
33484 else
33485   cat >conftest.$ac_ext <<_ACEOF
33486 /* confdefs.h.  */
33487 _ACEOF
33488 cat confdefs.h >>conftest.$ac_ext
33489 cat >>conftest.$ac_ext <<_ACEOF
33490 /* end confdefs.h.  */
33491 $dirfd_headers
33492 #ifdef dirfd
33493  dirent_header_defines_dirfd
33494 #endif
33495 _ACEOF
33496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33497   $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
33498   jm_cv_func_dirfd_macro=yes
33499 else
33500   jm_cv_func_dirfd_macro=no
33501 fi
33502 rm -f conftest*
33503
33504 fi
33505 echo "$as_me:$LINENO: result: $jm_cv_func_dirfd_macro" >&5
33506 echo "${ECHO_T}$jm_cv_func_dirfd_macro" >&6
33507
33508   # Use the replacement only if we have no function, macro,
33509   # or declaration with that name.
33510   if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
33511       = no,no,no; then
33512
33513 for ac_func in dirfd
33514 do
33515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33516 echo "$as_me:$LINENO: checking for $ac_func" >&5
33517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33518 if eval "test \"\${$as_ac_var+set}\" = set"; then
33519   echo $ECHO_N "(cached) $ECHO_C" >&6
33520 else
33521   cat >conftest.$ac_ext <<_ACEOF
33522 /* confdefs.h.  */
33523 _ACEOF
33524 cat confdefs.h >>conftest.$ac_ext
33525 cat >>conftest.$ac_ext <<_ACEOF
33526 /* end confdefs.h.  */
33527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33529 #define $ac_func innocuous_$ac_func
33530
33531 /* System header to define __stub macros and hopefully few prototypes,
33532     which can conflict with char $ac_func (); below.
33533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33534     <limits.h> exists even on freestanding compilers.  */
33535
33536 #ifdef __STDC__
33537 # include <limits.h>
33538 #else
33539 # include <assert.h>
33540 #endif
33541
33542 #undef $ac_func
33543
33544 /* Override any gcc2 internal prototype to avoid an error.  */
33545 #ifdef __cplusplus
33546 extern "C"
33547 {
33548 #endif
33549 /* We use char because int might match the return type of a gcc2
33550    builtin and then its argument prototype would still apply.  */
33551 char $ac_func ();
33552 /* The GNU C library defines this for functions which it implements
33553     to always fail with ENOSYS.  Some functions are actually named
33554     something starting with __ and the normal name is an alias.  */
33555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33556 choke me
33557 #else
33558 char (*f) () = $ac_func;
33559 #endif
33560 #ifdef __cplusplus
33561 }
33562 #endif
33563
33564 int
33565 main ()
33566 {
33567 return f != $ac_func;
33568   ;
33569   return 0;
33570 }
33571 _ACEOF
33572 rm -f conftest.$ac_objext conftest$ac_exeext
33573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33574   (eval $ac_link) 2>&5
33575   ac_status=$?
33576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33577   (exit $ac_status); } &&
33578          { ac_try='test -s conftest$ac_exeext'
33579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33580   (eval $ac_try) 2>&5
33581   ac_status=$?
33582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33583   (exit $ac_status); }; }; then
33584   eval "$as_ac_var=yes"
33585 else
33586   echo "$as_me: failed program was:" >&5
33587 sed 's/^/| /' conftest.$ac_ext >&5
33588
33589 eval "$as_ac_var=no"
33590 fi
33591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33592 fi
33593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33595 if test `eval echo '${'$as_ac_var'}'` = yes; then
33596   cat >>confdefs.h <<_ACEOF
33597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33598 _ACEOF
33599
33600 else
33601   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
33602 fi
33603 done
33604
33605
33606     echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
33607 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6
33608 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
33609   echo $ECHO_N "(cached) $ECHO_C" >&6
33610 else
33611
33612         dirfd_save_CFLAGS=$CFLAGS
33613         for ac_expr in d_fd dd_fd; do
33614
33615           CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
33616
33617 cat >conftest.$ac_ext <<_ACEOF
33618 /* confdefs.h.  */
33619 _ACEOF
33620 cat confdefs.h >>conftest.$ac_ext
33621 cat >>conftest.$ac_ext <<_ACEOF
33622 /* end confdefs.h.  */
33623 $dirfd_headers
33624
33625 int
33626 main ()
33627 {
33628 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
33629   ;
33630   return 0;
33631 }
33632 _ACEOF
33633 rm -f conftest.$ac_objext
33634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33635   (eval $ac_compile) 2>&5
33636   ac_status=$?
33637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33638   (exit $ac_status); } &&
33639          { ac_try='test -s conftest.$ac_objext'
33640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33641   (eval $ac_try) 2>&5
33642   ac_status=$?
33643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33644   (exit $ac_status); }; }; then
33645   dir_fd_found=yes
33646
33647 else
33648   echo "$as_me: failed program was:" >&5
33649 sed 's/^/| /' conftest.$ac_ext >&5
33650
33651 fi
33652 rm -f conftest.$ac_objext conftest.$ac_ext
33653           CFLAGS=$dirfd_save_CFLAGS
33654           test "$dir_fd_found" = yes && break
33655         done
33656         test "$dir_fd_found" = yes || ac_expr=no_such_member
33657
33658         gl_cv_sys_dir_fd_member_name=$ac_expr
33659
33660
33661 fi
33662 echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
33663 echo "${ECHO_T}$gl_cv_sys_dir_fd_member_name" >&6
33664     if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
33665
33666 cat >>confdefs.h <<_ACEOF
33667 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
33668 _ACEOF
33669
33670     fi
33671
33672
33673   fi
33674
33675
33676
33677 for ac_header in sys/acl.h
33678 do
33679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33681   echo "$as_me:$LINENO: checking for $ac_header" >&5
33682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33684   echo $ECHO_N "(cached) $ECHO_C" >&6
33685 fi
33686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33688 else
33689   # Is the header compilable?
33690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33692 cat >conftest.$ac_ext <<_ACEOF
33693 /* confdefs.h.  */
33694 _ACEOF
33695 cat confdefs.h >>conftest.$ac_ext
33696 cat >>conftest.$ac_ext <<_ACEOF
33697 /* end confdefs.h.  */
33698 $ac_includes_default
33699 #include <$ac_header>
33700 _ACEOF
33701 rm -f conftest.$ac_objext
33702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33703   (eval $ac_compile) 2>&5
33704   ac_status=$?
33705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33706   (exit $ac_status); } &&
33707          { ac_try='test -s conftest.$ac_objext'
33708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33709   (eval $ac_try) 2>&5
33710   ac_status=$?
33711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33712   (exit $ac_status); }; }; then
33713   ac_header_compiler=yes
33714 else
33715   echo "$as_me: failed program was:" >&5
33716 sed 's/^/| /' conftest.$ac_ext >&5
33717
33718 ac_header_compiler=no
33719 fi
33720 rm -f conftest.$ac_objext conftest.$ac_ext
33721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33722 echo "${ECHO_T}$ac_header_compiler" >&6
33723
33724 # Is the header present?
33725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33727 cat >conftest.$ac_ext <<_ACEOF
33728 /* confdefs.h.  */
33729 _ACEOF
33730 cat confdefs.h >>conftest.$ac_ext
33731 cat >>conftest.$ac_ext <<_ACEOF
33732 /* end confdefs.h.  */
33733 #include <$ac_header>
33734 _ACEOF
33735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33736   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33737   ac_status=$?
33738   grep -v '^ *+' conftest.er1 >conftest.err
33739   rm -f conftest.er1
33740   cat conftest.err >&5
33741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33742   (exit $ac_status); } >/dev/null; then
33743   if test -s conftest.err; then
33744     ac_cpp_err=$ac_c_preproc_warn_flag
33745   else
33746     ac_cpp_err=
33747   fi
33748 else
33749   ac_cpp_err=yes
33750 fi
33751 if test -z "$ac_cpp_err"; then
33752   ac_header_preproc=yes
33753 else
33754   echo "$as_me: failed program was:" >&5
33755 sed 's/^/| /' conftest.$ac_ext >&5
33756
33757   ac_header_preproc=no
33758 fi
33759 rm -f conftest.err conftest.$ac_ext
33760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33761 echo "${ECHO_T}$ac_header_preproc" >&6
33762
33763 # So?  What about this header?
33764 case $ac_header_compiler:$ac_header_preproc in
33765   yes:no )
33766     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33768     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33770     ac_header_preproc=yes
33771     ;;
33772   no:yes )
33773     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33775     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33776 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33777     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33779     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33780 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33783     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33785     (
33786       cat <<\_ASBOX
33787 ## ------------------------------------ ##
33788 ## Report this to bug-coreutils@gnu.org ##
33789 ## ------------------------------------ ##
33790 _ASBOX
33791     ) |
33792       sed "s/^/$as_me: WARNING:     /" >&2
33793     ;;
33794 esac
33795 echo "$as_me:$LINENO: checking for $ac_header" >&5
33796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33798   echo $ECHO_N "(cached) $ECHO_C" >&6
33799 else
33800   eval "$as_ac_Header=\$ac_header_preproc"
33801 fi
33802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33804
33805 fi
33806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33807   cat >>confdefs.h <<_ACEOF
33808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33809 _ACEOF
33810
33811 fi
33812
33813 done
33814
33815
33816 for ac_func in acl
33817 do
33818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33819 echo "$as_me:$LINENO: checking for $ac_func" >&5
33820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33821 if eval "test \"\${$as_ac_var+set}\" = set"; then
33822   echo $ECHO_N "(cached) $ECHO_C" >&6
33823 else
33824   cat >conftest.$ac_ext <<_ACEOF
33825 /* confdefs.h.  */
33826 _ACEOF
33827 cat confdefs.h >>conftest.$ac_ext
33828 cat >>conftest.$ac_ext <<_ACEOF
33829 /* end confdefs.h.  */
33830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33832 #define $ac_func innocuous_$ac_func
33833
33834 /* System header to define __stub macros and hopefully few prototypes,
33835     which can conflict with char $ac_func (); below.
33836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33837     <limits.h> exists even on freestanding compilers.  */
33838
33839 #ifdef __STDC__
33840 # include <limits.h>
33841 #else
33842 # include <assert.h>
33843 #endif
33844
33845 #undef $ac_func
33846
33847 /* Override any gcc2 internal prototype to avoid an error.  */
33848 #ifdef __cplusplus
33849 extern "C"
33850 {
33851 #endif
33852 /* We use char because int might match the return type of a gcc2
33853    builtin and then its argument prototype would still apply.  */
33854 char $ac_func ();
33855 /* The GNU C library defines this for functions which it implements
33856     to always fail with ENOSYS.  Some functions are actually named
33857     something starting with __ and the normal name is an alias.  */
33858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33859 choke me
33860 #else
33861 char (*f) () = $ac_func;
33862 #endif
33863 #ifdef __cplusplus
33864 }
33865 #endif
33866
33867 int
33868 main ()
33869 {
33870 return f != $ac_func;
33871   ;
33872   return 0;
33873 }
33874 _ACEOF
33875 rm -f conftest.$ac_objext conftest$ac_exeext
33876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33877   (eval $ac_link) 2>&5
33878   ac_status=$?
33879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33880   (exit $ac_status); } &&
33881          { ac_try='test -s conftest$ac_exeext'
33882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33883   (eval $ac_try) 2>&5
33884   ac_status=$?
33885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33886   (exit $ac_status); }; }; then
33887   eval "$as_ac_var=yes"
33888 else
33889   echo "$as_me: failed program was:" >&5
33890 sed 's/^/| /' conftest.$ac_ext >&5
33891
33892 eval "$as_ac_var=no"
33893 fi
33894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33895 fi
33896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33898 if test `eval echo '${'$as_ac_var'}'` = yes; then
33899   cat >>confdefs.h <<_ACEOF
33900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33901 _ACEOF
33902
33903 fi
33904 done
33905
33906
33907
33908   # prerequisites
33909
33910
33911
33912
33913 for ac_header in sys/param.h
33914 do
33915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33917   echo "$as_me:$LINENO: checking for $ac_header" >&5
33918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33920   echo $ECHO_N "(cached) $ECHO_C" >&6
33921 fi
33922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33924 else
33925   # Is the header compilable?
33926 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33928 cat >conftest.$ac_ext <<_ACEOF
33929 /* confdefs.h.  */
33930 _ACEOF
33931 cat confdefs.h >>conftest.$ac_ext
33932 cat >>conftest.$ac_ext <<_ACEOF
33933 /* end confdefs.h.  */
33934 $ac_includes_default
33935 #include <$ac_header>
33936 _ACEOF
33937 rm -f conftest.$ac_objext
33938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33939   (eval $ac_compile) 2>&5
33940   ac_status=$?
33941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33942   (exit $ac_status); } &&
33943          { ac_try='test -s conftest.$ac_objext'
33944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33945   (eval $ac_try) 2>&5
33946   ac_status=$?
33947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948   (exit $ac_status); }; }; then
33949   ac_header_compiler=yes
33950 else
33951   echo "$as_me: failed program was:" >&5
33952 sed 's/^/| /' conftest.$ac_ext >&5
33953
33954 ac_header_compiler=no
33955 fi
33956 rm -f conftest.$ac_objext conftest.$ac_ext
33957 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33958 echo "${ECHO_T}$ac_header_compiler" >&6
33959
33960 # Is the header present?
33961 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33963 cat >conftest.$ac_ext <<_ACEOF
33964 /* confdefs.h.  */
33965 _ACEOF
33966 cat confdefs.h >>conftest.$ac_ext
33967 cat >>conftest.$ac_ext <<_ACEOF
33968 /* end confdefs.h.  */
33969 #include <$ac_header>
33970 _ACEOF
33971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33972   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33973   ac_status=$?
33974   grep -v '^ *+' conftest.er1 >conftest.err
33975   rm -f conftest.er1
33976   cat conftest.err >&5
33977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33978   (exit $ac_status); } >/dev/null; then
33979   if test -s conftest.err; then
33980     ac_cpp_err=$ac_c_preproc_warn_flag
33981   else
33982     ac_cpp_err=
33983   fi
33984 else
33985   ac_cpp_err=yes
33986 fi
33987 if test -z "$ac_cpp_err"; then
33988   ac_header_preproc=yes
33989 else
33990   echo "$as_me: failed program was:" >&5
33991 sed 's/^/| /' conftest.$ac_ext >&5
33992
33993   ac_header_preproc=no
33994 fi
33995 rm -f conftest.err conftest.$ac_ext
33996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33997 echo "${ECHO_T}$ac_header_preproc" >&6
33998
33999 # So?  What about this header?
34000 case $ac_header_compiler:$ac_header_preproc in
34001   yes:no )
34002     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34006     ac_header_preproc=yes
34007     ;;
34008   no:yes )
34009     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34011     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34012 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34013     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34015     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34016 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34017     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34019     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34021     (
34022       cat <<\_ASBOX
34023 ## ------------------------------------ ##
34024 ## Report this to bug-coreutils@gnu.org ##
34025 ## ------------------------------------ ##
34026 _ASBOX
34027     ) |
34028       sed "s/^/$as_me: WARNING:     /" >&2
34029     ;;
34030 esac
34031 echo "$as_me:$LINENO: checking for $ac_header" >&5
34032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34034   echo $ECHO_N "(cached) $ECHO_C" >&6
34035 else
34036   eval "$as_ac_Header=\$ac_header_preproc"
34037 fi
34038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34040
34041 fi
34042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34043   cat >>confdefs.h <<_ACEOF
34044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34045 _ACEOF
34046
34047 fi
34048
34049 done
34050
34051   echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
34052 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
34053 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
34054   echo $ECHO_N "(cached) $ECHO_C" >&6
34055 else
34056   cat >conftest.$ac_ext <<_ACEOF
34057 /* confdefs.h.  */
34058 _ACEOF
34059 cat confdefs.h >>conftest.$ac_ext
34060 cat >>conftest.$ac_ext <<_ACEOF
34061 /* end confdefs.h.  */
34062 $ac_includes_default
34063 int
34064 main ()
34065 {
34066 #ifndef stpcpy
34067   char *p = (char *) stpcpy;
34068 #endif
34069
34070   ;
34071   return 0;
34072 }
34073 _ACEOF
34074 rm -f conftest.$ac_objext
34075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34076   (eval $ac_compile) 2>&5
34077   ac_status=$?
34078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34079   (exit $ac_status); } &&
34080          { ac_try='test -s conftest.$ac_objext'
34081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34082   (eval $ac_try) 2>&5
34083   ac_status=$?
34084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34085   (exit $ac_status); }; }; then
34086   ac_cv_have_decl_stpcpy=yes
34087 else
34088   echo "$as_me: failed program was:" >&5
34089 sed 's/^/| /' conftest.$ac_ext >&5
34090
34091 ac_cv_have_decl_stpcpy=no
34092 fi
34093 rm -f conftest.$ac_objext conftest.$ac_ext
34094 fi
34095 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
34096 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
34097 if test $ac_cv_have_decl_stpcpy = yes; then
34098
34099 cat >>confdefs.h <<_ACEOF
34100 #define HAVE_DECL_STPCPY 1
34101 _ACEOF
34102
34103
34104 else
34105   cat >>confdefs.h <<_ACEOF
34106 #define HAVE_DECL_STPCPY 0
34107 _ACEOF
34108
34109
34110 fi
34111
34112
34113
34114   # In the event that we have to use the replacement ftw.c,
34115   # see if we'll also need the replacement tsearch.c.
34116   echo "$as_me:$LINENO: checking for tdestroy" >&5
34117 echo $ECHO_N "checking for tdestroy... $ECHO_C" >&6
34118 if test "${ac_cv_func_tdestroy+set}" = set; then
34119   echo $ECHO_N "(cached) $ECHO_C" >&6
34120 else
34121   cat >conftest.$ac_ext <<_ACEOF
34122 /* confdefs.h.  */
34123 _ACEOF
34124 cat confdefs.h >>conftest.$ac_ext
34125 cat >>conftest.$ac_ext <<_ACEOF
34126 /* end confdefs.h.  */
34127 /* Define tdestroy to an innocuous variant, in case <limits.h> declares tdestroy.
34128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34129 #define tdestroy innocuous_tdestroy
34130
34131 /* System header to define __stub macros and hopefully few prototypes,
34132     which can conflict with char tdestroy (); below.
34133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34134     <limits.h> exists even on freestanding compilers.  */
34135
34136 #ifdef __STDC__
34137 # include <limits.h>
34138 #else
34139 # include <assert.h>
34140 #endif
34141
34142 #undef tdestroy
34143
34144 /* Override any gcc2 internal prototype to avoid an error.  */
34145 #ifdef __cplusplus
34146 extern "C"
34147 {
34148 #endif
34149 /* We use char because int might match the return type of a gcc2
34150    builtin and then its argument prototype would still apply.  */
34151 char tdestroy ();
34152 /* The GNU C library defines this for functions which it implements
34153     to always fail with ENOSYS.  Some functions are actually named
34154     something starting with __ and the normal name is an alias.  */
34155 #if defined (__stub_tdestroy) || defined (__stub___tdestroy)
34156 choke me
34157 #else
34158 char (*f) () = tdestroy;
34159 #endif
34160 #ifdef __cplusplus
34161 }
34162 #endif
34163
34164 int
34165 main ()
34166 {
34167 return f != tdestroy;
34168   ;
34169   return 0;
34170 }
34171 _ACEOF
34172 rm -f conftest.$ac_objext conftest$ac_exeext
34173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34174   (eval $ac_link) 2>&5
34175   ac_status=$?
34176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34177   (exit $ac_status); } &&
34178          { ac_try='test -s conftest$ac_exeext'
34179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34180   (eval $ac_try) 2>&5
34181   ac_status=$?
34182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34183   (exit $ac_status); }; }; then
34184   ac_cv_func_tdestroy=yes
34185 else
34186   echo "$as_me: failed program was:" >&5
34187 sed 's/^/| /' conftest.$ac_ext >&5
34188
34189 ac_cv_func_tdestroy=no
34190 fi
34191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34192 fi
34193 echo "$as_me:$LINENO: result: $ac_cv_func_tdestroy" >&5
34194 echo "${ECHO_T}$ac_cv_func_tdestroy" >&6
34195 if test $ac_cv_func_tdestroy = yes; then
34196   :
34197 else
34198   need_tdestroy=1
34199 fi
34200
34201
34202   echo "$as_me:$LINENO: checking for ftw/FTW_CHDIR that informs callback of failed chdir" >&5
34203 echo $ECHO_N "checking for ftw/FTW_CHDIR that informs callback of failed chdir... $ECHO_C" >&6
34204 if test "${ac_cv_func_ftw_working+set}" = set; then
34205   echo $ECHO_N "(cached) $ECHO_C" >&6
34206 else
34207
34208   # The following test would fail prior to glibc-2.3.2, because `depth'
34209   # would be 2 rather than 4.  Of course, now that we require FTW_DCH
34210   # and FTW_DCHP, this test fails even with GNU libc's fixed ftw.
34211   mkdir -p conftest.dir/a/b/c
34212   if test "$cross_compiling" = yes; then
34213   ac_cv_func_ftw_working=no
34214 else
34215   cat >conftest.$ac_ext <<_ACEOF
34216 /* confdefs.h.  */
34217 _ACEOF
34218 cat confdefs.h >>conftest.$ac_ext
34219 cat >>conftest.$ac_ext <<_ACEOF
34220 /* end confdefs.h.  */
34221
34222 #include <string.h>
34223 #include <stdlib.h>
34224 #include <ftw.h>
34225
34226 static char *_f[] = { "conftest.dir", "conftest.dir/a",
34227                       "conftest.dir/a/b", "conftest.dir/a/b/c" };
34228 static char **p = _f;
34229 static int depth;
34230
34231 static int
34232 cb (const char *file, const struct stat *sb, int file_type, struct FTW *info)
34233 {
34234   if (strcmp (file, *p++) != 0)
34235     exit (1);
34236   ++depth;
34237   return 0;
34238 }
34239
34240 int
34241 main ()
34242 {
34243   /* Require these symbols, too.  */
34244   int d1 = FTW_DCH;
34245   int d2 = FTW_DCHP;
34246
34247   int err = nftw ("conftest.dir", cb, 30, FTW_PHYS | FTW_MOUNT | FTW_CHDIR);
34248   exit ((err == 0 && depth == 4) ? 0 : 1);
34249 }
34250
34251 _ACEOF
34252 rm -f conftest$ac_exeext
34253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34254   (eval $ac_link) 2>&5
34255   ac_status=$?
34256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34257   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34259   (eval $ac_try) 2>&5
34260   ac_status=$?
34261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34262   (exit $ac_status); }; }; then
34263   ac_cv_func_ftw_working=yes
34264 else
34265   echo "$as_me: program exited with status $ac_status" >&5
34266 echo "$as_me: failed program was:" >&5
34267 sed 's/^/| /' conftest.$ac_ext >&5
34268
34269 ( exit $ac_status )
34270 ac_cv_func_ftw_working=no
34271 fi
34272 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34273 fi
34274 fi
34275 echo "$as_me:$LINENO: result: $ac_cv_func_ftw_working" >&5
34276 echo "${ECHO_T}$ac_cv_func_ftw_working" >&6
34277   rm -rf conftest.dir
34278   if test $ac_cv_func_ftw_working = no; then
34279     LIBOBJS="$LIBOBJS ftw.$ac_objext"
34280               ac_config_links="$ac_config_links $ac_config_libobj_dir/ftw.h:$ac_config_libobj_dir/ftw_.h"
34281
34282     # Add tsearch.o IFF we have to use the replacement ftw.c.
34283     if test -n "$need_tdestroy"; then
34284       LIBOBJS="$LIBOBJS tsearch.$ac_objext"
34285       # Link search.h to search_.h if we use the replacement tsearch.c.
34286                 ac_config_links="$ac_config_links $ac_config_libobj_dir/search.h:$ac_config_libobj_dir/search_.h"
34287
34288     fi
34289   fi
34290
34291
34292
34293
34294 for ac_func in lchown
34295 do
34296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34297 echo "$as_me:$LINENO: checking for $ac_func" >&5
34298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34299 if eval "test \"\${$as_ac_var+set}\" = set"; then
34300   echo $ECHO_N "(cached) $ECHO_C" >&6
34301 else
34302   cat >conftest.$ac_ext <<_ACEOF
34303 /* confdefs.h.  */
34304 _ACEOF
34305 cat confdefs.h >>conftest.$ac_ext
34306 cat >>conftest.$ac_ext <<_ACEOF
34307 /* end confdefs.h.  */
34308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34309    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34310 #define $ac_func innocuous_$ac_func
34311
34312 /* System header to define __stub macros and hopefully few prototypes,
34313     which can conflict with char $ac_func (); below.
34314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34315     <limits.h> exists even on freestanding compilers.  */
34316
34317 #ifdef __STDC__
34318 # include <limits.h>
34319 #else
34320 # include <assert.h>
34321 #endif
34322
34323 #undef $ac_func
34324
34325 /* Override any gcc2 internal prototype to avoid an error.  */
34326 #ifdef __cplusplus
34327 extern "C"
34328 {
34329 #endif
34330 /* We use char because int might match the return type of a gcc2
34331    builtin and then its argument prototype would still apply.  */
34332 char $ac_func ();
34333 /* The GNU C library defines this for functions which it implements
34334     to always fail with ENOSYS.  Some functions are actually named
34335     something starting with __ and the normal name is an alias.  */
34336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34337 choke me
34338 #else
34339 char (*f) () = $ac_func;
34340 #endif
34341 #ifdef __cplusplus
34342 }
34343 #endif
34344
34345 int
34346 main ()
34347 {
34348 return f != $ac_func;
34349   ;
34350   return 0;
34351 }
34352 _ACEOF
34353 rm -f conftest.$ac_objext conftest$ac_exeext
34354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34355   (eval $ac_link) 2>&5
34356   ac_status=$?
34357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34358   (exit $ac_status); } &&
34359          { ac_try='test -s conftest$ac_exeext'
34360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34361   (eval $ac_try) 2>&5
34362   ac_status=$?
34363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34364   (exit $ac_status); }; }; then
34365   eval "$as_ac_var=yes"
34366 else
34367   echo "$as_me: failed program was:" >&5
34368 sed 's/^/| /' conftest.$ac_ext >&5
34369
34370 eval "$as_ac_var=no"
34371 fi
34372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34373 fi
34374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34375 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34376 if test `eval echo '${'$as_ac_var'}'` = yes; then
34377   cat >>confdefs.h <<_ACEOF
34378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34379 _ACEOF
34380
34381 else
34382   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
34383 fi
34384 done
34385
34386
34387   if test $ac_cv_func_lchown = no; then
34388
34389
34390   :
34391
34392   fi
34393
34394   echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
34395 echo $ECHO_N "checking for rmdir-not-empty errno value... $ECHO_C" >&6
34396 if test "${fetish_cv_func_rmdir_errno_not_empty+set}" = set; then
34397   echo $ECHO_N "(cached) $ECHO_C" >&6
34398 else
34399
34400       # Arrange for deletion of the temporary directory this test creates.
34401       ac_clean_files="$ac_clean_files confdir2"
34402       mkdir confdir2; : > confdir2/file
34403
34404 if test "$cross_compiling" = yes; then
34405   fetish_cv_func_rmdir_errno_not_empty=ENOTEMPTY
34406
34407 else
34408   cat >conftest.$ac_ext <<_ACEOF
34409 /* confdefs.h.  */
34410 _ACEOF
34411 cat confdefs.h >>conftest.$ac_ext
34412 cat >>conftest.$ac_ext <<_ACEOF
34413 /* end confdefs.h.  */
34414
34415 #include <stdio.h>
34416 #include <errno.h>
34417 #ifndef errno
34418 extern int errno;
34419 #endif
34420         int main ()
34421         {
34422           FILE *s;
34423           int val;
34424           rmdir ("confdir2");
34425           val = errno;
34426           s = fopen ("confdir2/errno", "w");
34427           fprintf (s, "%d\n", val);
34428           exit (0);
34429         }
34430
34431 _ACEOF
34432 rm -f conftest$ac_exeext
34433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34434   (eval $ac_link) 2>&5
34435   ac_status=$?
34436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34439   (eval $ac_try) 2>&5
34440   ac_status=$?
34441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34442   (exit $ac_status); }; }; then
34443   fetish_cv_func_rmdir_errno_not_empty=`cat confdir2/errno`
34444 else
34445   echo "$as_me: program exited with status $ac_status" >&5
34446 echo "$as_me: failed program was:" >&5
34447 sed 's/^/| /' conftest.$ac_ext >&5
34448
34449 ( exit $ac_status )
34450 fetish_cv_func_rmdir_errno_not_empty='configure error in rmdir-errno.m4'
34451 fi
34452 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34453 fi
34454
34455
34456 fi
34457 echo "$as_me:$LINENO: result: $fetish_cv_func_rmdir_errno_not_empty" >&5
34458 echo "${ECHO_T}$fetish_cv_func_rmdir_errno_not_empty" >&6
34459
34460
34461 cat >>confdefs.h <<_ACEOF
34462 #define RMDIR_ERRNO_NOT_EMPTY $fetish_cv_func_rmdir_errno_not_empty
34463 _ACEOF
34464
34465
34466
34467 for ac_header in unistd.h
34468 do
34469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34471   echo "$as_me:$LINENO: checking for $ac_header" >&5
34472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34474   echo $ECHO_N "(cached) $ECHO_C" >&6
34475 fi
34476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34478 else
34479   # Is the header compilable?
34480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34482 cat >conftest.$ac_ext <<_ACEOF
34483 /* confdefs.h.  */
34484 _ACEOF
34485 cat confdefs.h >>conftest.$ac_ext
34486 cat >>conftest.$ac_ext <<_ACEOF
34487 /* end confdefs.h.  */
34488 $ac_includes_default
34489 #include <$ac_header>
34490 _ACEOF
34491 rm -f conftest.$ac_objext
34492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34493   (eval $ac_compile) 2>&5
34494   ac_status=$?
34495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34496   (exit $ac_status); } &&
34497          { ac_try='test -s conftest.$ac_objext'
34498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34499   (eval $ac_try) 2>&5
34500   ac_status=$?
34501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34502   (exit $ac_status); }; }; then
34503   ac_header_compiler=yes
34504 else
34505   echo "$as_me: failed program was:" >&5
34506 sed 's/^/| /' conftest.$ac_ext >&5
34507
34508 ac_header_compiler=no
34509 fi
34510 rm -f conftest.$ac_objext conftest.$ac_ext
34511 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34512 echo "${ECHO_T}$ac_header_compiler" >&6
34513
34514 # Is the header present?
34515 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34517 cat >conftest.$ac_ext <<_ACEOF
34518 /* confdefs.h.  */
34519 _ACEOF
34520 cat confdefs.h >>conftest.$ac_ext
34521 cat >>conftest.$ac_ext <<_ACEOF
34522 /* end confdefs.h.  */
34523 #include <$ac_header>
34524 _ACEOF
34525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34526   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34527   ac_status=$?
34528   grep -v '^ *+' conftest.er1 >conftest.err
34529   rm -f conftest.er1
34530   cat conftest.err >&5
34531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34532   (exit $ac_status); } >/dev/null; then
34533   if test -s conftest.err; then
34534     ac_cpp_err=$ac_c_preproc_warn_flag
34535   else
34536     ac_cpp_err=
34537   fi
34538 else
34539   ac_cpp_err=yes
34540 fi
34541 if test -z "$ac_cpp_err"; then
34542   ac_header_preproc=yes
34543 else
34544   echo "$as_me: failed program was:" >&5
34545 sed 's/^/| /' conftest.$ac_ext >&5
34546
34547   ac_header_preproc=no
34548 fi
34549 rm -f conftest.err conftest.$ac_ext
34550 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34551 echo "${ECHO_T}$ac_header_preproc" >&6
34552
34553 # So?  What about this header?
34554 case $ac_header_compiler:$ac_header_preproc in
34555   yes:no )
34556     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34560     ac_header_preproc=yes
34561     ;;
34562   no:yes )
34563     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34565     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34566 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34567     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34569     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34570 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34573     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34575     (
34576       cat <<\_ASBOX
34577 ## ------------------------------------ ##
34578 ## Report this to bug-coreutils@gnu.org ##
34579 ## ------------------------------------ ##
34580 _ASBOX
34581     ) |
34582       sed "s/^/$as_me: WARNING:     /" >&2
34583     ;;
34584 esac
34585 echo "$as_me:$LINENO: checking for $ac_header" >&5
34586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34588   echo $ECHO_N "(cached) $ECHO_C" >&6
34589 else
34590   eval "$as_ac_Header=\$ac_header_preproc"
34591 fi
34592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34594
34595 fi
34596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34597   cat >>confdefs.h <<_ACEOF
34598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34599 _ACEOF
34600
34601 fi
34602
34603 done
34604
34605 echo "$as_me:$LINENO: checking for working chown" >&5
34606 echo $ECHO_N "checking for working chown... $ECHO_C" >&6
34607 if test "${ac_cv_func_chown_works+set}" = set; then
34608   echo $ECHO_N "(cached) $ECHO_C" >&6
34609 else
34610   if test "$cross_compiling" = yes; then
34611   ac_cv_func_chown_works=no
34612 else
34613   cat >conftest.$ac_ext <<_ACEOF
34614 /* confdefs.h.  */
34615 _ACEOF
34616 cat confdefs.h >>conftest.$ac_ext
34617 cat >>conftest.$ac_ext <<_ACEOF
34618 /* end confdefs.h.  */
34619 $ac_includes_default
34620 #include <fcntl.h>
34621
34622 int
34623 main ()
34624 {
34625   char *f = "conftest.chown";
34626   struct stat before, after;
34627
34628   if (creat (f, 0600) < 0)
34629     exit (1);
34630   if (stat (f, &before) < 0)
34631     exit (1);
34632   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
34633     exit (1);
34634   if (stat (f, &after) < 0)
34635     exit (1);
34636   exit ((before.st_uid == after.st_uid
34637          && before.st_gid == after.st_gid) ? 0 : 1);
34638
34639   ;
34640   return 0;
34641 }
34642 _ACEOF
34643 rm -f conftest$ac_exeext
34644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34645   (eval $ac_link) 2>&5
34646   ac_status=$?
34647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34648   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34650   (eval $ac_try) 2>&5
34651   ac_status=$?
34652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34653   (exit $ac_status); }; }; then
34654   ac_cv_func_chown_works=yes
34655 else
34656   echo "$as_me: program exited with status $ac_status" >&5
34657 echo "$as_me: failed program was:" >&5
34658 sed 's/^/| /' conftest.$ac_ext >&5
34659
34660 ( exit $ac_status )
34661 ac_cv_func_chown_works=no
34662 fi
34663 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34664 fi
34665 rm -f conftest.chown
34666
34667 fi
34668 echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
34669 echo "${ECHO_T}$ac_cv_func_chown_works" >&6
34670 if test $ac_cv_func_chown_works = yes; then
34671
34672 cat >>confdefs.h <<\_ACEOF
34673 #define HAVE_CHOWN 1
34674 _ACEOF
34675
34676 fi
34677
34678
34679
34680   if test $ac_cv_func_chown_works = no; then
34681     LIBOBJS="$LIBOBJS chown.$ac_objext"
34682
34683 cat >>confdefs.h <<\_ACEOF
34684 #define chown rpl_chown
34685 _ACEOF
34686
34687
34688
34689   :
34690
34691
34692
34693
34694
34695
34696   fi
34697
34698
34699
34700
34701       echo "$as_me:$LINENO: checking for group_member" >&5
34702 echo $ECHO_N "checking for group_member... $ECHO_C" >&6
34703 if test "${ac_cv_func_group_member+set}" = set; then
34704   echo $ECHO_N "(cached) $ECHO_C" >&6
34705 else
34706   cat >conftest.$ac_ext <<_ACEOF
34707 /* confdefs.h.  */
34708 _ACEOF
34709 cat confdefs.h >>conftest.$ac_ext
34710 cat >>conftest.$ac_ext <<_ACEOF
34711 /* end confdefs.h.  */
34712 /* Define group_member to an innocuous variant, in case <limits.h> declares group_member.
34713    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34714 #define group_member innocuous_group_member
34715
34716 /* System header to define __stub macros and hopefully few prototypes,
34717     which can conflict with char group_member (); below.
34718     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34719     <limits.h> exists even on freestanding compilers.  */
34720
34721 #ifdef __STDC__
34722 # include <limits.h>
34723 #else
34724 # include <assert.h>
34725 #endif
34726
34727 #undef group_member
34728
34729 /* Override any gcc2 internal prototype to avoid an error.  */
34730 #ifdef __cplusplus
34731 extern "C"
34732 {
34733 #endif
34734 /* We use char because int might match the return type of a gcc2
34735    builtin and then its argument prototype would still apply.  */
34736 char group_member ();
34737 /* The GNU C library defines this for functions which it implements
34738     to always fail with ENOSYS.  Some functions are actually named
34739     something starting with __ and the normal name is an alias.  */
34740 #if defined (__stub_group_member) || defined (__stub___group_member)
34741 choke me
34742 #else
34743 char (*f) () = group_member;
34744 #endif
34745 #ifdef __cplusplus
34746 }
34747 #endif
34748
34749 int
34750 main ()
34751 {
34752 return f != group_member;
34753   ;
34754   return 0;
34755 }
34756 _ACEOF
34757 rm -f conftest.$ac_objext conftest$ac_exeext
34758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34759   (eval $ac_link) 2>&5
34760   ac_status=$?
34761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34762   (exit $ac_status); } &&
34763          { ac_try='test -s conftest$ac_exeext'
34764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34765   (eval $ac_try) 2>&5
34766   ac_status=$?
34767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34768   (exit $ac_status); }; }; then
34769   ac_cv_func_group_member=yes
34770 else
34771   echo "$as_me: failed program was:" >&5
34772 sed 's/^/| /' conftest.$ac_ext >&5
34773
34774 ac_cv_func_group_member=no
34775 fi
34776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34777 fi
34778 echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
34779 echo "${ECHO_T}$ac_cv_func_group_member" >&6
34780 if test $ac_cv_func_group_member = yes; then
34781   :
34782 else
34783
34784     LIBOBJS="$LIBOBJS group-member.$ac_objext"
34785
34786
34787
34788   :
34789
34790
34791
34792
34793
34794
34795
34796
34797 fi
34798
34799
34800
34801     echo "$as_me:$LINENO: checking for AFS" >&5
34802 echo $ECHO_N "checking for AFS... $ECHO_C" >&6
34803     if test -d /afs; then
34804
34805 cat >>confdefs.h <<\_ACEOF
34806 #define AFS 1
34807 _ACEOF
34808
34809       ac_result=yes
34810     else
34811       ac_result=no
34812     fi
34813     echo "$as_me:$LINENO: result: $ac_result" >&5
34814 echo "${ECHO_T}$ac_result" >&6
34815
34816   echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
34817 echo $ECHO_N "checking whether link(2) dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
34818 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
34819   echo $ECHO_N "(cached) $ECHO_C" >&6
34820 else
34821
34822             test -z "$ac_cv_header_unistd_h" \
34823       &&
34824 for ac_header in unistd.h
34825 do
34826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34828   echo "$as_me:$LINENO: checking for $ac_header" >&5
34829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34831   echo $ECHO_N "(cached) $ECHO_C" >&6
34832 fi
34833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34835 else
34836   # Is the header compilable?
34837 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34839 cat >conftest.$ac_ext <<_ACEOF
34840 /* confdefs.h.  */
34841 _ACEOF
34842 cat confdefs.h >>conftest.$ac_ext
34843 cat >>conftest.$ac_ext <<_ACEOF
34844 /* end confdefs.h.  */
34845 $ac_includes_default
34846 #include <$ac_header>
34847 _ACEOF
34848 rm -f conftest.$ac_objext
34849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34850   (eval $ac_compile) 2>&5
34851   ac_status=$?
34852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34853   (exit $ac_status); } &&
34854          { ac_try='test -s conftest.$ac_objext'
34855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34856   (eval $ac_try) 2>&5
34857   ac_status=$?
34858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34859   (exit $ac_status); }; }; then
34860   ac_header_compiler=yes
34861 else
34862   echo "$as_me: failed program was:" >&5
34863 sed 's/^/| /' conftest.$ac_ext >&5
34864
34865 ac_header_compiler=no
34866 fi
34867 rm -f conftest.$ac_objext conftest.$ac_ext
34868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34869 echo "${ECHO_T}$ac_header_compiler" >&6
34870
34871 # Is the header present?
34872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34874 cat >conftest.$ac_ext <<_ACEOF
34875 /* confdefs.h.  */
34876 _ACEOF
34877 cat confdefs.h >>conftest.$ac_ext
34878 cat >>conftest.$ac_ext <<_ACEOF
34879 /* end confdefs.h.  */
34880 #include <$ac_header>
34881 _ACEOF
34882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34883   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34884   ac_status=$?
34885   grep -v '^ *+' conftest.er1 >conftest.err
34886   rm -f conftest.er1
34887   cat conftest.err >&5
34888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34889   (exit $ac_status); } >/dev/null; then
34890   if test -s conftest.err; then
34891     ac_cpp_err=$ac_c_preproc_warn_flag
34892   else
34893     ac_cpp_err=
34894   fi
34895 else
34896   ac_cpp_err=yes
34897 fi
34898 if test -z "$ac_cpp_err"; then
34899   ac_header_preproc=yes
34900 else
34901   echo "$as_me: failed program was:" >&5
34902 sed 's/^/| /' conftest.$ac_ext >&5
34903
34904   ac_header_preproc=no
34905 fi
34906 rm -f conftest.err conftest.$ac_ext
34907 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34908 echo "${ECHO_T}$ac_header_preproc" >&6
34909
34910 # So?  What about this header?
34911 case $ac_header_compiler:$ac_header_preproc in
34912   yes:no )
34913     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34915     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34917     ac_header_preproc=yes
34918     ;;
34919   no:yes )
34920     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34922     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34923 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34924     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34926     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34927 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34928     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34930     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34932     (
34933       cat <<\_ASBOX
34934 ## ------------------------------------ ##
34935 ## Report this to bug-coreutils@gnu.org ##
34936 ## ------------------------------------ ##
34937 _ASBOX
34938     ) |
34939       sed "s/^/$as_me: WARNING:     /" >&2
34940     ;;
34941 esac
34942 echo "$as_me:$LINENO: checking for $ac_header" >&5
34943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34945   echo $ECHO_N "(cached) $ECHO_C" >&6
34946 else
34947   eval "$as_ac_Header=\$ac_header_preproc"
34948 fi
34949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34951
34952 fi
34953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34954   cat >>confdefs.h <<_ACEOF
34955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34956 _ACEOF
34957
34958 fi
34959
34960 done
34961
34962
34963     # Create a regular file.
34964     echo > conftest.file
34965
34966 if test "$cross_compiling" = yes; then
34967   jm_ac_cv_func_link_follows_symlink=yes
34968 else
34969   cat >conftest.$ac_ext <<_ACEOF
34970 /* confdefs.h.  */
34971 _ACEOF
34972 cat confdefs.h >>conftest.$ac_ext
34973 cat >>conftest.$ac_ext <<_ACEOF
34974 /* end confdefs.h.  */
34975
34976 #       include <sys/types.h>
34977 #       include <sys/stat.h>
34978 #       ifdef HAVE_UNISTD_H
34979 #        include <unistd.h>
34980 #       endif
34981
34982 #       define SAME_INODE(Stat_buf_1, Stat_buf_2) \
34983           ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
34984            && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
34985
34986         int
34987         main ()
34988         {
34989           const char *file = "conftest.file";
34990           const char *sym = "conftest.sym";
34991           const char *hard = "conftest.hard";
34992           struct stat sb_file, sb_hard;
34993
34994           /* Create a symlink to the regular file. */
34995           if (symlink (file, sym))
34996             abort ();
34997
34998           /* Create a hard link to that symlink.  */
34999           if (link (sym, hard))
35000             abort ();
35001
35002           if (lstat (hard, &sb_hard))
35003             abort ();
35004           if (lstat (file, &sb_file))
35005             abort ();
35006
35007           /* If the dev/inode of hard and file are the same, then
35008              the link call followed the symlink.  */
35009           return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
35010         }
35011
35012 _ACEOF
35013 rm -f conftest$ac_exeext
35014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35015   (eval $ac_link) 2>&5
35016   ac_status=$?
35017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35018   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35020   (eval $ac_try) 2>&5
35021   ac_status=$?
35022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35023   (exit $ac_status); }; }; then
35024   jm_ac_cv_func_link_follows_symlink=yes
35025 else
35026   echo "$as_me: program exited with status $ac_status" >&5
35027 echo "$as_me: failed program was:" >&5
35028 sed 's/^/| /' conftest.$ac_ext >&5
35029
35030 ( exit $ac_status )
35031 jm_ac_cv_func_link_follows_symlink=no
35032 fi
35033 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35034 fi
35035
35036 fi
35037 echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
35038 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6
35039   if test $jm_ac_cv_func_link_follows_symlink = yes; then
35040
35041 cat >>confdefs.h <<\_ACEOF
35042 #define LINK_FOLLOWS_SYMLINKS 1
35043 _ACEOF
35044
35045   fi
35046
35047
35048
35049 for ac_header in stdio_ext.h
35050 do
35051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35053   echo "$as_me:$LINENO: checking for $ac_header" >&5
35054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35056   echo $ECHO_N "(cached) $ECHO_C" >&6
35057 fi
35058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35060 else
35061   # Is the header compilable?
35062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35064 cat >conftest.$ac_ext <<_ACEOF
35065 /* confdefs.h.  */
35066 _ACEOF
35067 cat confdefs.h >>conftest.$ac_ext
35068 cat >>conftest.$ac_ext <<_ACEOF
35069 /* end confdefs.h.  */
35070 $ac_includes_default
35071 #include <$ac_header>
35072 _ACEOF
35073 rm -f conftest.$ac_objext
35074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35075   (eval $ac_compile) 2>&5
35076   ac_status=$?
35077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35078   (exit $ac_status); } &&
35079          { ac_try='test -s conftest.$ac_objext'
35080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35081   (eval $ac_try) 2>&5
35082   ac_status=$?
35083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35084   (exit $ac_status); }; }; then
35085   ac_header_compiler=yes
35086 else
35087   echo "$as_me: failed program was:" >&5
35088 sed 's/^/| /' conftest.$ac_ext >&5
35089
35090 ac_header_compiler=no
35091 fi
35092 rm -f conftest.$ac_objext conftest.$ac_ext
35093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35094 echo "${ECHO_T}$ac_header_compiler" >&6
35095
35096 # Is the header present?
35097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35099 cat >conftest.$ac_ext <<_ACEOF
35100 /* confdefs.h.  */
35101 _ACEOF
35102 cat confdefs.h >>conftest.$ac_ext
35103 cat >>conftest.$ac_ext <<_ACEOF
35104 /* end confdefs.h.  */
35105 #include <$ac_header>
35106 _ACEOF
35107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35108   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35109   ac_status=$?
35110   grep -v '^ *+' conftest.er1 >conftest.err
35111   rm -f conftest.er1
35112   cat conftest.err >&5
35113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35114   (exit $ac_status); } >/dev/null; then
35115   if test -s conftest.err; then
35116     ac_cpp_err=$ac_c_preproc_warn_flag
35117   else
35118     ac_cpp_err=
35119   fi
35120 else
35121   ac_cpp_err=yes
35122 fi
35123 if test -z "$ac_cpp_err"; then
35124   ac_header_preproc=yes
35125 else
35126   echo "$as_me: failed program was:" >&5
35127 sed 's/^/| /' conftest.$ac_ext >&5
35128
35129   ac_header_preproc=no
35130 fi
35131 rm -f conftest.err conftest.$ac_ext
35132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35133 echo "${ECHO_T}$ac_header_preproc" >&6
35134
35135 # So?  What about this header?
35136 case $ac_header_compiler:$ac_header_preproc in
35137   yes:no )
35138     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35142     ac_header_preproc=yes
35143     ;;
35144   no:yes )
35145     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35147     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35148 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35149     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35151     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35152 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35153     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35155     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35157     (
35158       cat <<\_ASBOX
35159 ## ------------------------------------ ##
35160 ## Report this to bug-coreutils@gnu.org ##
35161 ## ------------------------------------ ##
35162 _ASBOX
35163     ) |
35164       sed "s/^/$as_me: WARNING:     /" >&2
35165     ;;
35166 esac
35167 echo "$as_me:$LINENO: checking for $ac_header" >&5
35168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35170   echo $ECHO_N "(cached) $ECHO_C" >&6
35171 else
35172   eval "$as_ac_Header=\$ac_header_preproc"
35173 fi
35174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35176
35177 fi
35178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35179   cat >>confdefs.h <<_ACEOF
35180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35181 _ACEOF
35182
35183 fi
35184
35185 done
35186
35187
35188 for ac_func in __fpending
35189 do
35190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35191 echo "$as_me:$LINENO: checking for $ac_func" >&5
35192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35193 if eval "test \"\${$as_ac_var+set}\" = set"; then
35194   echo $ECHO_N "(cached) $ECHO_C" >&6
35195 else
35196   cat >conftest.$ac_ext <<_ACEOF
35197 /* confdefs.h.  */
35198 _ACEOF
35199 cat confdefs.h >>conftest.$ac_ext
35200 cat >>conftest.$ac_ext <<_ACEOF
35201 /* end confdefs.h.  */
35202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35204 #define $ac_func innocuous_$ac_func
35205
35206 /* System header to define __stub macros and hopefully few prototypes,
35207     which can conflict with char $ac_func (); below.
35208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35209     <limits.h> exists even on freestanding compilers.  */
35210
35211 #ifdef __STDC__
35212 # include <limits.h>
35213 #else
35214 # include <assert.h>
35215 #endif
35216
35217 #undef $ac_func
35218
35219 /* Override any gcc2 internal prototype to avoid an error.  */
35220 #ifdef __cplusplus
35221 extern "C"
35222 {
35223 #endif
35224 /* We use char because int might match the return type of a gcc2
35225    builtin and then its argument prototype would still apply.  */
35226 char $ac_func ();
35227 /* The GNU C library defines this for functions which it implements
35228     to always fail with ENOSYS.  Some functions are actually named
35229     something starting with __ and the normal name is an alias.  */
35230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35231 choke me
35232 #else
35233 char (*f) () = $ac_func;
35234 #endif
35235 #ifdef __cplusplus
35236 }
35237 #endif
35238
35239 int
35240 main ()
35241 {
35242 return f != $ac_func;
35243   ;
35244   return 0;
35245 }
35246 _ACEOF
35247 rm -f conftest.$ac_objext conftest$ac_exeext
35248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35249   (eval $ac_link) 2>&5
35250   ac_status=$?
35251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35252   (exit $ac_status); } &&
35253          { ac_try='test -s conftest$ac_exeext'
35254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35255   (eval $ac_try) 2>&5
35256   ac_status=$?
35257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35258   (exit $ac_status); }; }; then
35259   eval "$as_ac_var=yes"
35260 else
35261   echo "$as_me: failed program was:" >&5
35262 sed 's/^/| /' conftest.$ac_ext >&5
35263
35264 eval "$as_ac_var=no"
35265 fi
35266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35267 fi
35268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35270 if test `eval echo '${'$as_ac_var'}'` = yes; then
35271   cat >>confdefs.h <<_ACEOF
35272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35273 _ACEOF
35274
35275 else
35276   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
35277 fi
35278 done
35279
35280
35281   fp_headers='
35282 #     if HAVE_STDIO_EXT_H
35283 #      include <stdio_ext.h>
35284 #     endif
35285 '
35286   echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
35287 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6
35288 if test "${ac_cv_have_decl___fpending+set}" = set; then
35289   echo $ECHO_N "(cached) $ECHO_C" >&6
35290 else
35291   cat >conftest.$ac_ext <<_ACEOF
35292 /* confdefs.h.  */
35293 _ACEOF
35294 cat confdefs.h >>conftest.$ac_ext
35295 cat >>conftest.$ac_ext <<_ACEOF
35296 /* end confdefs.h.  */
35297 $fp_headers
35298
35299 int
35300 main ()
35301 {
35302 #ifndef __fpending
35303   char *p = (char *) __fpending;
35304 #endif
35305
35306   ;
35307   return 0;
35308 }
35309 _ACEOF
35310 rm -f conftest.$ac_objext
35311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35312   (eval $ac_compile) 2>&5
35313   ac_status=$?
35314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315   (exit $ac_status); } &&
35316          { ac_try='test -s conftest.$ac_objext'
35317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35318   (eval $ac_try) 2>&5
35319   ac_status=$?
35320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35321   (exit $ac_status); }; }; then
35322   ac_cv_have_decl___fpending=yes
35323 else
35324   echo "$as_me: failed program was:" >&5
35325 sed 's/^/| /' conftest.$ac_ext >&5
35326
35327 ac_cv_have_decl___fpending=no
35328 fi
35329 rm -f conftest.$ac_objext conftest.$ac_ext
35330 fi
35331 echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
35332 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6
35333 if test $ac_cv_have_decl___fpending = yes; then
35334
35335 cat >>confdefs.h <<_ACEOF
35336 #define HAVE_DECL___FPENDING 1
35337 _ACEOF
35338
35339
35340 else
35341   cat >>confdefs.h <<_ACEOF
35342 #define HAVE_DECL___FPENDING 0
35343 _ACEOF
35344
35345
35346 fi
35347
35348
35349   if test $ac_cv_func___fpending = no; then
35350     echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
35351 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6
35352 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
35353   echo $ECHO_N "(cached) $ECHO_C" >&6
35354 else
35355
35356         for ac_expr in                                          \
35357                                                                 \
35358             '# glibc2'                                          \
35359             'fp->_IO_write_ptr - fp->_IO_write_base'            \
35360                                                                 \
35361             '# traditional Unix'                                \
35362             'fp->_ptr - fp->_base'                              \
35363                                                                 \
35364             '# BSD'                                             \
35365             'fp->_p - fp->_bf._base'                            \
35366                                                                 \
35367             '# SCO, Unixware'                                   \
35368             'fp->__ptr - fp->__base'                            \
35369                                                                 \
35370             '# old glibc?'                                      \
35371             'fp->__bufp - fp->__buffer'                         \
35372                                                                 \
35373             '# old glibc iostream?'                             \
35374             'fp->_pptr - fp->_pbase'                            \
35375                                                                 \
35376             '# VMS'                                             \
35377             '(*fp)->_ptr - (*fp)->_base'                        \
35378                                                                 \
35379             '# e.g., DGUX R4.11; the info is not available'     \
35380             1                                                   \
35381             ; do
35382
35383           # Skip each embedded comment.
35384           case "$ac_expr" in '#'*) continue;; esac
35385
35386
35387 cat >conftest.$ac_ext <<_ACEOF
35388 /* confdefs.h.  */
35389 _ACEOF
35390 cat confdefs.h >>conftest.$ac_ext
35391 cat >>conftest.$ac_ext <<_ACEOF
35392 /* end confdefs.h.  */
35393 #include <stdio.h>
35394
35395 int
35396 main ()
35397 {
35398 FILE *fp = stdin; (void) ($ac_expr);
35399   ;
35400   return 0;
35401 }
35402 _ACEOF
35403 rm -f conftest.$ac_objext
35404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35405   (eval $ac_compile) 2>&5
35406   ac_status=$?
35407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408   (exit $ac_status); } &&
35409          { ac_try='test -s conftest.$ac_objext'
35410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35411   (eval $ac_try) 2>&5
35412   ac_status=$?
35413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35414   (exit $ac_status); }; }; then
35415   fp_done=yes
35416
35417 else
35418   echo "$as_me: failed program was:" >&5
35419 sed 's/^/| /' conftest.$ac_ext >&5
35420
35421 fi
35422 rm -f conftest.$ac_objext conftest.$ac_ext
35423           test "$fp_done" = yes && break
35424         done
35425
35426         ac_cv_sys_pending_output_n_bytes=$ac_expr
35427
35428
35429 fi
35430 echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
35431 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6
35432
35433 cat >>confdefs.h <<_ACEOF
35434 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
35435 _ACEOF
35436
35437   fi
35438
35439
35440
35441   gt_cv_header_inttypes_h=$ac_cv_header_inttypes_h
35442
35443
35444
35445   if test $gt_cv_header_inttypes_h = yes; then
35446     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
35447 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
35448 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
35449   echo $ECHO_N "(cached) $ECHO_C" >&6
35450 else
35451
35452
35453 cat >conftest.$ac_ext <<_ACEOF
35454 /* confdefs.h.  */
35455 _ACEOF
35456 cat confdefs.h >>conftest.$ac_ext
35457 cat >>conftest.$ac_ext <<_ACEOF
35458 /* end confdefs.h.  */
35459 #include <inttypes.h>
35460 #ifdef PRId32
35461 char *p = PRId32;
35462 #endif
35463
35464 int
35465 main ()
35466 {
35467
35468   ;
35469   return 0;
35470 }
35471 _ACEOF
35472 rm -f conftest.$ac_objext
35473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35474   (eval $ac_compile) 2>&5
35475   ac_status=$?
35476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35477   (exit $ac_status); } &&
35478          { ac_try='test -s conftest.$ac_objext'
35479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35480   (eval $ac_try) 2>&5
35481   ac_status=$?
35482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35483   (exit $ac_status); }; }; then
35484   gt_cv_inttypes_pri_broken=no
35485 else
35486   echo "$as_me: failed program was:" >&5
35487 sed 's/^/| /' conftest.$ac_ext >&5
35488
35489 gt_cv_inttypes_pri_broken=yes
35490 fi
35491 rm -f conftest.$ac_objext conftest.$ac_ext
35492
35493 fi
35494 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
35495 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
35496   fi
35497   if test "$gt_cv_inttypes_pri_broken" = yes; then
35498
35499 cat >>confdefs.h <<_ACEOF
35500 #define PRI_MACROS_BROKEN 1
35501 _ACEOF
35502
35503   fi
35504
35505
35506
35507   if test $ac_cv_func_getgroups_works = no; then
35508     LIBOBJS="$LIBOBJS getgroups.$ac_objext"
35509
35510 cat >>confdefs.h <<\_ACEOF
35511 #define getgroups rpl_getgroups
35512 _ACEOF
35513
35514
35515
35516
35517   fi
35518   test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
35519
35520 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
35521 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
35522 if test "${ac_cv_sys_largefile_source+set}" = set; then
35523   echo $ECHO_N "(cached) $ECHO_C" >&6
35524 else
35525   while :; do
35526   ac_cv_sys_largefile_source=no
35527   cat >conftest.$ac_ext <<_ACEOF
35528 /* confdefs.h.  */
35529 _ACEOF
35530 cat confdefs.h >>conftest.$ac_ext
35531 cat >>conftest.$ac_ext <<_ACEOF
35532 /* end confdefs.h.  */
35533 #include <stdio.h>
35534 int
35535 main ()
35536 {
35537 return !fseeko;
35538   ;
35539   return 0;
35540 }
35541 _ACEOF
35542 rm -f conftest.$ac_objext
35543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35544   (eval $ac_compile) 2>&5
35545   ac_status=$?
35546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35547   (exit $ac_status); } &&
35548          { ac_try='test -s conftest.$ac_objext'
35549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35550   (eval $ac_try) 2>&5
35551   ac_status=$?
35552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35553   (exit $ac_status); }; }; then
35554   break
35555 else
35556   echo "$as_me: failed program was:" >&5
35557 sed 's/^/| /' conftest.$ac_ext >&5
35558
35559 fi
35560 rm -f conftest.$ac_objext conftest.$ac_ext
35561   cat >conftest.$ac_ext <<_ACEOF
35562 /* confdefs.h.  */
35563 _ACEOF
35564 cat confdefs.h >>conftest.$ac_ext
35565 cat >>conftest.$ac_ext <<_ACEOF
35566 /* end confdefs.h.  */
35567 #define _LARGEFILE_SOURCE 1
35568 #include <stdio.h>
35569 int
35570 main ()
35571 {
35572 return !fseeko;
35573   ;
35574   return 0;
35575 }
35576 _ACEOF
35577 rm -f conftest.$ac_objext
35578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35579   (eval $ac_compile) 2>&5
35580   ac_status=$?
35581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35582   (exit $ac_status); } &&
35583          { ac_try='test -s conftest.$ac_objext'
35584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35585   (eval $ac_try) 2>&5
35586   ac_status=$?
35587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35588   (exit $ac_status); }; }; then
35589   ac_cv_sys_largefile_source=1; break
35590 else
35591   echo "$as_me: failed program was:" >&5
35592 sed 's/^/| /' conftest.$ac_ext >&5
35593
35594 fi
35595 rm -f conftest.$ac_objext conftest.$ac_ext
35596   break
35597 done
35598 fi
35599 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
35600 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
35601 if test "$ac_cv_sys_largefile_source" != no; then
35602
35603 cat >>confdefs.h <<_ACEOF
35604 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
35605 _ACEOF
35606
35607 fi
35608 rm -f conftest*
35609
35610 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
35611 # in glibc 2.1.3, but that breaks too many other things.
35612 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
35613 echo "$as_me:$LINENO: checking for fseeko" >&5
35614 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
35615 if test "${ac_cv_func_fseeko+set}" = set; then
35616   echo $ECHO_N "(cached) $ECHO_C" >&6
35617 else
35618   cat >conftest.$ac_ext <<_ACEOF
35619 /* confdefs.h.  */
35620 _ACEOF
35621 cat confdefs.h >>conftest.$ac_ext
35622 cat >>conftest.$ac_ext <<_ACEOF
35623 /* end confdefs.h.  */
35624 #include <stdio.h>
35625 int
35626 main ()
35627 {
35628 return fseeko && fseeko (stdin, 0, 0);
35629   ;
35630   return 0;
35631 }
35632 _ACEOF
35633 rm -f conftest.$ac_objext conftest$ac_exeext
35634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35635   (eval $ac_link) 2>&5
35636   ac_status=$?
35637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35638   (exit $ac_status); } &&
35639          { ac_try='test -s conftest$ac_exeext'
35640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35641   (eval $ac_try) 2>&5
35642   ac_status=$?
35643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35644   (exit $ac_status); }; }; then
35645   ac_cv_func_fseeko=yes
35646 else
35647   echo "$as_me: failed program was:" >&5
35648 sed 's/^/| /' conftest.$ac_ext >&5
35649
35650 ac_cv_func_fseeko=no
35651 fi
35652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35653 fi
35654 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
35655 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
35656 if test $ac_cv_func_fseeko = yes; then
35657
35658 cat >>confdefs.h <<\_ACEOF
35659 #define HAVE_FSEEKO 1
35660 _ACEOF
35661
35662 fi
35663
35664
35665   echo "$as_me:$LINENO: checking for /proc/uptime" >&5
35666 echo $ECHO_N "checking for /proc/uptime... $ECHO_C" >&6
35667 if test "${jm_cv_have_proc_uptime+set}" = set; then
35668   echo $ECHO_N "(cached) $ECHO_C" >&6
35669 else
35670   jm_cv_have_proc_uptime=no
35671     test -f /proc/uptime \
35672       && test "$cross_compiling" = no \
35673       && cat < /proc/uptime >/dev/null 2>/dev/null \
35674       && jm_cv_have_proc_uptime=yes
35675 fi
35676 echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
35677 echo "${ECHO_T}$jm_cv_have_proc_uptime" >&6
35678   if test $jm_cv_have_proc_uptime = yes; then
35679
35680 cat >>confdefs.h <<\_ACEOF
35681 #define HAVE_PROC_UPTIME 1
35682 _ACEOF
35683
35684   fi
35685
35686
35687
35688 for ac_func in ftruncate
35689 do
35690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35691 echo "$as_me:$LINENO: checking for $ac_func" >&5
35692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35693 if eval "test \"\${$as_ac_var+set}\" = set"; then
35694   echo $ECHO_N "(cached) $ECHO_C" >&6
35695 else
35696   cat >conftest.$ac_ext <<_ACEOF
35697 /* confdefs.h.  */
35698 _ACEOF
35699 cat confdefs.h >>conftest.$ac_ext
35700 cat >>conftest.$ac_ext <<_ACEOF
35701 /* end confdefs.h.  */
35702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35704 #define $ac_func innocuous_$ac_func
35705
35706 /* System header to define __stub macros and hopefully few prototypes,
35707     which can conflict with char $ac_func (); below.
35708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35709     <limits.h> exists even on freestanding compilers.  */
35710
35711 #ifdef __STDC__
35712 # include <limits.h>
35713 #else
35714 # include <assert.h>
35715 #endif
35716
35717 #undef $ac_func
35718
35719 /* Override any gcc2 internal prototype to avoid an error.  */
35720 #ifdef __cplusplus
35721 extern "C"
35722 {
35723 #endif
35724 /* We use char because int might match the return type of a gcc2
35725    builtin and then its argument prototype would still apply.  */
35726 char $ac_func ();
35727 /* The GNU C library defines this for functions which it implements
35728     to always fail with ENOSYS.  Some functions are actually named
35729     something starting with __ and the normal name is an alias.  */
35730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35731 choke me
35732 #else
35733 char (*f) () = $ac_func;
35734 #endif
35735 #ifdef __cplusplus
35736 }
35737 #endif
35738
35739 int
35740 main ()
35741 {
35742 return f != $ac_func;
35743   ;
35744   return 0;
35745 }
35746 _ACEOF
35747 rm -f conftest.$ac_objext conftest$ac_exeext
35748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35749   (eval $ac_link) 2>&5
35750   ac_status=$?
35751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35752   (exit $ac_status); } &&
35753          { ac_try='test -s conftest$ac_exeext'
35754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35755   (eval $ac_try) 2>&5
35756   ac_status=$?
35757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35758   (exit $ac_status); }; }; then
35759   eval "$as_ac_var=yes"
35760 else
35761   echo "$as_me: failed program was:" >&5
35762 sed 's/^/| /' conftest.$ac_ext >&5
35763
35764 eval "$as_ac_var=no"
35765 fi
35766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35767 fi
35768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35770 if test `eval echo '${'$as_ac_var'}'` = yes; then
35771   cat >>confdefs.h <<_ACEOF
35772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35773 _ACEOF
35774
35775 else
35776   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
35777 fi
35778 done
35779
35780
35781   if test $ac_cv_func_ftruncate = no; then
35782
35783
35784   :
35785
35786
35787
35788
35789
35790
35791 for ac_func in chsize
35792 do
35793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35794 echo "$as_me:$LINENO: checking for $ac_func" >&5
35795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35796 if eval "test \"\${$as_ac_var+set}\" = set"; then
35797   echo $ECHO_N "(cached) $ECHO_C" >&6
35798 else
35799   cat >conftest.$ac_ext <<_ACEOF
35800 /* confdefs.h.  */
35801 _ACEOF
35802 cat confdefs.h >>conftest.$ac_ext
35803 cat >>conftest.$ac_ext <<_ACEOF
35804 /* end confdefs.h.  */
35805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35807 #define $ac_func innocuous_$ac_func
35808
35809 /* System header to define __stub macros and hopefully few prototypes,
35810     which can conflict with char $ac_func (); below.
35811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35812     <limits.h> exists even on freestanding compilers.  */
35813
35814 #ifdef __STDC__
35815 # include <limits.h>
35816 #else
35817 # include <assert.h>
35818 #endif
35819
35820 #undef $ac_func
35821
35822 /* Override any gcc2 internal prototype to avoid an error.  */
35823 #ifdef __cplusplus
35824 extern "C"
35825 {
35826 #endif
35827 /* We use char because int might match the return type of a gcc2
35828    builtin and then its argument prototype would still apply.  */
35829 char $ac_func ();
35830 /* The GNU C library defines this for functions which it implements
35831     to always fail with ENOSYS.  Some functions are actually named
35832     something starting with __ and the normal name is an alias.  */
35833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35834 choke me
35835 #else
35836 char (*f) () = $ac_func;
35837 #endif
35838 #ifdef __cplusplus
35839 }
35840 #endif
35841
35842 int
35843 main ()
35844 {
35845 return f != $ac_func;
35846   ;
35847   return 0;
35848 }
35849 _ACEOF
35850 rm -f conftest.$ac_objext conftest$ac_exeext
35851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35852   (eval $ac_link) 2>&5
35853   ac_status=$?
35854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35855   (exit $ac_status); } &&
35856          { ac_try='test -s conftest$ac_exeext'
35857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35858   (eval $ac_try) 2>&5
35859   ac_status=$?
35860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35861   (exit $ac_status); }; }; then
35862   eval "$as_ac_var=yes"
35863 else
35864   echo "$as_me: failed program was:" >&5
35865 sed 's/^/| /' conftest.$ac_ext >&5
35866
35867 eval "$as_ac_var=no"
35868 fi
35869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35870 fi
35871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35873 if test `eval echo '${'$as_ac_var'}'` = yes; then
35874   cat >>confdefs.h <<_ACEOF
35875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35876 _ACEOF
35877
35878 fi
35879 done
35880
35881
35882   fi
35883
35884 echo "$as_me:$LINENO: checking for function prototypes" >&5
35885 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
35886 if test "$ac_cv_prog_cc_stdc" != no; then
35887   echo "$as_me:$LINENO: result: yes" >&5
35888 echo "${ECHO_T}yes" >&6
35889
35890 cat >>confdefs.h <<\_ACEOF
35891 #define PROTOTYPES 1
35892 _ACEOF
35893
35894
35895 cat >>confdefs.h <<\_ACEOF
35896 #define __PROTOTYPES 1
35897 _ACEOF
35898
35899 else
35900   echo "$as_me:$LINENO: result: no" >&5
35901 echo "${ECHO_T}no" >&6
35902 fi
35903
35904
35905   echo "$as_me:$LINENO: checking determine how many files may be open simultaneously" >&5
35906 echo $ECHO_N "checking determine how many files may be open simultaneously... $ECHO_C" >&6
35907 if test "${utils_cv_sys_open_max+set}" = set; then
35908   echo $ECHO_N "(cached) $ECHO_C" >&6
35909 else
35910
35911   if test "$cross_compiling" = yes; then
35912   utils_cv_sys_open_max='cross compiling run-test in open-max.m4'
35913 else
35914   cat >conftest.$ac_ext <<_ACEOF
35915 /* confdefs.h.  */
35916 _ACEOF
35917 cat confdefs.h >>conftest.$ac_ext
35918 cat >>conftest.$ac_ext <<_ACEOF
35919 /* end confdefs.h.  */
35920
35921 #include <stdio.h>
35922 #include <stdlib.h>
35923 #include <unistd.h>
35924     int
35925     main ()
35926     {
35927       FILE *result = fopen ("conftest.omax", "w");
35928       int i = 1;
35929       /* Impose an arbitrary limit, in case some system has no
35930          effective limit on the number of simultaneously open files.  */
35931       while (i < 30000)
35932         {
35933           FILE *s = fopen ("conftest.op", "w");
35934           if (!s)
35935             break;
35936           ++i;
35937         }
35938       fprintf (result, "%d\n", i);
35939       exit (fclose (result) == EOF);
35940     }
35941
35942 _ACEOF
35943 rm -f conftest$ac_exeext
35944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35945   (eval $ac_link) 2>&5
35946   ac_status=$?
35947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35948   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35950   (eval $ac_try) 2>&5
35951   ac_status=$?
35952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35953   (exit $ac_status); }; }; then
35954   utils_cv_sys_open_max=`cat conftest.omax`
35955 else
35956   echo "$as_me: program exited with status $ac_status" >&5
35957 echo "$as_me: failed program was:" >&5
35958 sed 's/^/| /' conftest.$ac_ext >&5
35959
35960 ( exit $ac_status )
35961 utils_cv_sys_open_max='internal error in open-max.m4'
35962 fi
35963 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35964 fi
35965 fi
35966 echo "$as_me:$LINENO: result: $utils_cv_sys_open_max" >&5
35967 echo "${ECHO_T}$utils_cv_sys_open_max" >&6
35968
35969
35970 cat >>confdefs.h <<_ACEOF
35971 #define UTILS_OPEN_MAX $utils_cv_sys_open_max
35972 _ACEOF
35973
35974
35975
35976   echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
35977 echo $ECHO_N "checking whether getcwd is declared... $ECHO_C" >&6
35978 if test "${ac_cv_have_decl_getcwd+set}" = set; then
35979   echo $ECHO_N "(cached) $ECHO_C" >&6
35980 else
35981   cat >conftest.$ac_ext <<_ACEOF
35982 /* confdefs.h.  */
35983 _ACEOF
35984 cat confdefs.h >>conftest.$ac_ext
35985 cat >>conftest.$ac_ext <<_ACEOF
35986 /* end confdefs.h.  */
35987 $ac_includes_default
35988 int
35989 main ()
35990 {
35991 #ifndef getcwd
35992   char *p = (char *) getcwd;
35993 #endif
35994
35995   ;
35996   return 0;
35997 }
35998 _ACEOF
35999 rm -f conftest.$ac_objext
36000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36001   (eval $ac_compile) 2>&5
36002   ac_status=$?
36003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36004   (exit $ac_status); } &&
36005          { ac_try='test -s conftest.$ac_objext'
36006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36007   (eval $ac_try) 2>&5
36008   ac_status=$?
36009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36010   (exit $ac_status); }; }; then
36011   ac_cv_have_decl_getcwd=yes
36012 else
36013   echo "$as_me: failed program was:" >&5
36014 sed 's/^/| /' conftest.$ac_ext >&5
36015
36016 ac_cv_have_decl_getcwd=no
36017 fi
36018 rm -f conftest.$ac_objext conftest.$ac_ext
36019 fi
36020 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
36021 echo "${ECHO_T}$ac_cv_have_decl_getcwd" >&6
36022 if test $ac_cv_have_decl_getcwd = yes; then
36023
36024 cat >>confdefs.h <<_ACEOF
36025 #define HAVE_DECL_GETCWD 1
36026 _ACEOF
36027
36028
36029 else
36030   cat >>confdefs.h <<_ACEOF
36031 #define HAVE_DECL_GETCWD 0
36032 _ACEOF
36033
36034
36035 fi
36036
36037
36038   echo "$as_me:$LINENO: checking whether getcwd properly handles paths longer than PATH_MAX" >&5
36039 echo $ECHO_N "checking whether getcwd properly handles paths longer than PATH_MAX... $ECHO_C" >&6
36040 if test "${gl_cv_func_getcwd_vs_path_max+set}" = set; then
36041   echo $ECHO_N "(cached) $ECHO_C" >&6
36042 else
36043
36044   # Arrange for deletion of the temporary directory this test creates.
36045   ac_clean_files="$ac_clean_files confdir3"
36046   if test "$cross_compiling" = yes; then
36047   gl_cv_func_getcwd_vs_path_max=no
36048 else
36049   cat >conftest.$ac_ext <<_ACEOF
36050 /* confdefs.h.  */
36051 _ACEOF
36052 cat confdefs.h >>conftest.$ac_ext
36053 cat >>conftest.$ac_ext <<_ACEOF
36054 /* end confdefs.h.  */
36055
36056 #include <stdlib.h>
36057 #include <unistd.h>
36058 #include <string.h>
36059 #include <limits.h>
36060 #include <sys/stat.h>
36061 #include <sys/types.h>
36062
36063 /* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
36064 #undef mkdir
36065
36066 #ifndef CHAR_BIT
36067 # define CHAR_BIT 8
36068 #endif
36069
36070 /* The extra casts work around common compiler bugs.  */
36071 #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
36072 /* The outer cast is needed to work around a bug in Cray C 5.0.3.0.
36073    It is necessary at least when t == time_t.  */
36074 #define TYPE_MINIMUM(t) ((t) (TYPE_SIGNED (t) \
36075                               ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) : (t) 0))
36076 #define TYPE_MAXIMUM(t) ((t) (~ (t) 0 - TYPE_MINIMUM (t)))
36077
36078 #ifndef INT_MAX
36079 # define INT_MAX TYPE_MAXIMUM (int)
36080 #endif
36081
36082 /* The length of this name must be 8.  */
36083 #define DIR_NAME "confdir3"
36084
36085 int
36086 main ()
36087 {
36088 #ifndef PATH_MAX
36089   /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
36090      at least not on a local file system.  And if we were to start worrying
36091      about remote file systems, we'd have to enable the wrapper function
36092      all of the time, just to be safe.  That's not worth the cost.  */
36093   exit (0);
36094 #elif INT_MAX - 9 <= PATH_MAX
36095   /* The '9', above, comes from strlen (DIR_NAME) + 1.  */
36096   /* FIXME: Assuming there's a system for which this is true,
36097      this should be done in a compile test.  */
36098   exit (0);
36099 #else
36100   char buf[PATH_MAX + 20];
36101   char *cwd = getcwd (buf, PATH_MAX);
36102   size_t cwd_len;
36103   int fail = 0;
36104   size_t n_chdirs = 0;
36105
36106   if (cwd == NULL)
36107     exit (1);
36108
36109   cwd_len = strlen (cwd);
36110
36111   while (1)
36112     {
36113       char *c;
36114       size_t len;
36115
36116       cwd_len += 1 + strlen (DIR_NAME);
36117       /* If mkdir or chdir fails, be pessimistic and consider that
36118          as a failure, too.  */
36119       if (mkdir (DIR_NAME, 0700) < 0 || chdir (DIR_NAME) < 0)
36120         {
36121           fail = 1;
36122           break;
36123         }
36124       if ((c = getcwd (buf, PATH_MAX)) == NULL)
36125         {
36126           /* This allows any failure to indicate there is no bug.
36127              FIXME: check errno?  */
36128           break;
36129         }
36130       if ((len = strlen (c)) != cwd_len)
36131         {
36132           fail = 1;
36133           break;
36134         }
36135       ++n_chdirs;
36136       if (PATH_MAX < len)
36137         break;
36138     }
36139
36140   /* Leaving behind such a deep directory is not polite.
36141      So clean up here, right away, even though the driving
36142      shell script would also clean up.  */
36143   {
36144     size_t i;
36145
36146     /* Unlink first, in case the chdir failed.  */
36147     unlink (DIR_NAME);
36148     for (i = 0; i <= n_chdirs; i++)
36149       {
36150         if (chdir ("..") < 0)
36151           break;
36152         rmdir (DIR_NAME);
36153       }
36154   }
36155
36156   exit (fail);
36157 #endif
36158 }
36159
36160 _ACEOF
36161 rm -f conftest$ac_exeext
36162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36163   (eval $ac_link) 2>&5
36164   ac_status=$?
36165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36166   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36168   (eval $ac_try) 2>&5
36169   ac_status=$?
36170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36171   (exit $ac_status); }; }; then
36172   gl_cv_func_getcwd_vs_path_max=yes
36173 else
36174   echo "$as_me: program exited with status $ac_status" >&5
36175 echo "$as_me: failed program was:" >&5
36176 sed 's/^/| /' conftest.$ac_ext >&5
36177
36178 ( exit $ac_status )
36179 gl_cv_func_getcwd_vs_path_max=no
36180 fi
36181 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36182 fi
36183 fi
36184 echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_vs_path_max" >&5
36185 echo "${ECHO_T}$gl_cv_func_getcwd_vs_path_max" >&6
36186
36187   if test $gl_cv_func_getcwd_vs_path_max = yes; then
36188     LIBOBJS="$LIBOBJS getcwd.$ac_objext"
36189
36190 cat >>confdefs.h <<\_ACEOF
36191 #define getcwd rpl_getcwd
36192 _ACEOF
36193
36194   fi
36195
36196
36197
36198   :
36199
36200
36201
36202
36203
36204 echo "$as_me:$LINENO: checking for working readdir" >&5
36205 echo $ECHO_N "checking for working readdir... $ECHO_C" >&6
36206 if test "${gl_cv_func_working_readdir+set}" = set; then
36207   echo $ECHO_N "(cached) $ECHO_C" >&6
36208 else
36209     # Arrange for deletion of the temporary directory this test creates, in
36210   # case the test itself fails to delete everything -- as happens on Sunos.
36211   ac_clean_files="$ac_clean_files conf-dir"
36212
36213
36214 if test "$cross_compiling" = yes; then
36215   gl_cv_func_working_readdir=no
36216 else
36217   cat >conftest.$ac_ext <<_ACEOF
36218 /* confdefs.h.  */
36219 _ACEOF
36220 cat confdefs.h >>conftest.$ac_ext
36221 cat >>conftest.$ac_ext <<_ACEOF
36222 /* end confdefs.h.  */
36223 #   include <stdio.h>
36224 #   include <sys/types.h>
36225 #   if HAVE_STRING_H
36226 #    include <string.h>
36227 #   endif
36228
36229 #   ifdef HAVE_DIRENT_H
36230 #    include <dirent.h>
36231 #    define NLENGTH(direct) (strlen((direct)->d_name))
36232 #   else /* not HAVE_DIRENT_H */
36233 #    define dirent direct
36234 #    define NLENGTH(direct) ((direct)->d_namlen)
36235 #    ifdef HAVE_SYS_NDIR_H
36236 #     include <sys/ndir.h>
36237 #    endif /* HAVE_SYS_NDIR_H */
36238 #    ifdef HAVE_SYS_DIR_H
36239 #     include <sys/dir.h>
36240 #    endif /* HAVE_SYS_DIR_H */
36241 #    ifdef HAVE_NDIR_H
36242 #     include <ndir.h>
36243 #    endif /* HAVE_NDIR_H */
36244 #   endif /* HAVE_DIRENT_H */
36245
36246 #   define DOT_OR_DOTDOT(Basename) \
36247      (Basename[0] == '.' && (Basename[1] == '\0' \
36248                              || (Basename[1] == '.' && Basename[2] == '\0')))
36249
36250 /* Don't try to use replacement mkdir; it wouldn't resolve at link time.  */
36251 #   undef mkdir
36252
36253     static void
36254     create_N_file_dir (const char *dir, size_t n_files)
36255     {
36256       unsigned int i;
36257
36258       if (mkdir (dir, 0700))
36259         abort ();
36260       if (chdir (dir))
36261         abort ();
36262
36263       for (i = 0; i < n_files; i++)
36264         {
36265           char file_name[4];
36266           FILE *out;
36267
36268           sprintf (file_name, "%03d", i);
36269           out = fopen (file_name, "w");
36270           if (!out)
36271             abort ();
36272           if (fclose (out) == EOF)
36273             abort ();
36274         }
36275
36276       if (chdir (".."))
36277         abort ();
36278     }
36279
36280     static void
36281     remove_dir (const char *dir)
36282     {
36283       DIR *dirp;
36284
36285       if (chdir (dir))
36286         abort ();
36287
36288       dirp = opendir (".");
36289       if (dirp == NULL)
36290         abort ();
36291
36292       while (1)
36293         {
36294           struct dirent *dp = readdir (dirp);
36295           if (dp == NULL)
36296             break;
36297
36298           if (DOT_OR_DOTDOT (dp->d_name))
36299             continue;
36300
36301           if (unlink (dp->d_name))
36302             abort ();
36303         }
36304       closedir (dirp);
36305
36306       if (chdir (".."))
36307         abort ();
36308
36309       if (rmdir (dir))
36310         exit (1);
36311     }
36312
36313     int
36314     main ()
36315     {
36316       const char *dir = "conf-dir";
36317       create_N_file_dir (dir, 500);
36318       remove_dir (dir);
36319       exit (0);
36320     }
36321 _ACEOF
36322 rm -f conftest$ac_exeext
36323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36324   (eval $ac_link) 2>&5
36325   ac_status=$?
36326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36327   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36329   (eval $ac_try) 2>&5
36330   ac_status=$?
36331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36332   (exit $ac_status); }; }; then
36333   gl_cv_func_working_readdir=yes
36334 else
36335   echo "$as_me: program exited with status $ac_status" >&5
36336 echo "$as_me: failed program was:" >&5
36337 sed 's/^/| /' conftest.$ac_ext >&5
36338
36339 ( exit $ac_status )
36340 gl_cv_func_working_readdir=no
36341 fi
36342 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36343 fi
36344 fi
36345 echo "$as_me:$LINENO: result: $gl_cv_func_working_readdir" >&5
36346 echo "${ECHO_T}$gl_cv_func_working_readdir" >&6
36347
36348   if test $gl_cv_func_working_readdir = yes; then
36349
36350 cat >>confdefs.h <<\_ACEOF
36351 #define HAVE_WORKING_READDIR 1
36352 _ACEOF
36353
36354   fi
36355
36356
36357       if test "X$prefix" = "XNONE"; then
36358     acl_final_prefix="$ac_default_prefix"
36359   else
36360     acl_final_prefix="$prefix"
36361   fi
36362   if test "X$exec_prefix" = "XNONE"; then
36363     acl_final_exec_prefix='${prefix}'
36364   else
36365     acl_final_exec_prefix="$exec_prefix"
36366   fi
36367   acl_save_prefix="$prefix"
36368   prefix="$acl_final_prefix"
36369   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
36370   prefix="$acl_save_prefix"
36371
36372
36373 # Check whether --with-gnu-ld or --without-gnu-ld was given.
36374 if test "${with_gnu_ld+set}" = set; then
36375   withval="$with_gnu_ld"
36376   test "$withval" = no || with_gnu_ld=yes
36377 else
36378   with_gnu_ld=no
36379 fi;
36380 # Prepare PATH_SEPARATOR.
36381 # The user is always right.
36382 if test "${PATH_SEPARATOR+set}" != set; then
36383   echo "#! /bin/sh" >conf$$.sh
36384   echo  "exit 0"   >>conf$$.sh
36385   chmod +x conf$$.sh
36386   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
36387     PATH_SEPARATOR=';'
36388   else
36389     PATH_SEPARATOR=:
36390   fi
36391   rm -f conf$$.sh
36392 fi
36393 ac_prog=ld
36394 if test "$GCC" = yes; then
36395   # Check if gcc -print-prog-name=ld gives a path.
36396   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
36397 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
36398   case $host in
36399   *-*-mingw*)
36400     # gcc leaves a trailing carriage return which upsets mingw
36401     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
36402   *)
36403     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
36404   esac
36405   case $ac_prog in
36406     # Accept absolute paths.
36407     [\\/]* | [A-Za-z]:[\\/]*)
36408       re_direlt='/[^/][^/]*/\.\./'
36409       # Canonicalize the path of ld
36410       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
36411       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
36412         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
36413       done
36414       test -z "$LD" && LD="$ac_prog"
36415       ;;
36416   "")
36417     # If it fails, then pretend we aren't using GCC.
36418     ac_prog=ld
36419     ;;
36420   *)
36421     # If it is relative, then search for the first ld in PATH.
36422     with_gnu_ld=unknown
36423     ;;
36424   esac
36425 elif test "$with_gnu_ld" = yes; then
36426   echo "$as_me:$LINENO: checking for GNU ld" >&5
36427 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
36428 else
36429   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
36430 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
36431 fi
36432 if test "${acl_cv_path_LD+set}" = set; then
36433   echo $ECHO_N "(cached) $ECHO_C" >&6
36434 else
36435   if test -z "$LD"; then
36436   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
36437   for ac_dir in $PATH; do
36438     test -z "$ac_dir" && ac_dir=.
36439     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
36440       acl_cv_path_LD="$ac_dir/$ac_prog"
36441       # Check to see if the program is GNU ld.  I'd rather use --version,
36442       # but apparently some GNU ld's only accept -v.
36443       # Break only if it was the GNU/non-GNU ld that we prefer.
36444       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
36445         test "$with_gnu_ld" != no && break
36446       else
36447         test "$with_gnu_ld" != yes && break
36448       fi
36449     fi
36450   done
36451   IFS="$ac_save_ifs"
36452 else
36453   acl_cv_path_LD="$LD" # Let the user override the test with a path.
36454 fi
36455 fi
36456
36457 LD="$acl_cv_path_LD"
36458 if test -n "$LD"; then
36459   echo "$as_me:$LINENO: result: $LD" >&5
36460 echo "${ECHO_T}$LD" >&6
36461 else
36462   echo "$as_me:$LINENO: result: no" >&5
36463 echo "${ECHO_T}no" >&6
36464 fi
36465 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
36466 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
36467    { (exit 1); exit 1; }; }
36468 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
36469 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
36470 if test "${acl_cv_prog_gnu_ld+set}" = set; then
36471   echo $ECHO_N "(cached) $ECHO_C" >&6
36472 else
36473   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
36474 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
36475   acl_cv_prog_gnu_ld=yes
36476 else
36477   acl_cv_prog_gnu_ld=no
36478 fi
36479 fi
36480 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
36481 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
36482 with_gnu_ld=$acl_cv_prog_gnu_ld
36483
36484
36485
36486                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
36487 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
36488 if test "${acl_cv_rpath+set}" = set; then
36489   echo $ECHO_N "(cached) $ECHO_C" >&6
36490 else
36491
36492     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
36493     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
36494     . ./conftest.sh
36495     rm -f ./conftest.sh
36496     acl_cv_rpath=done
36497
36498 fi
36499 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
36500 echo "${ECHO_T}$acl_cv_rpath" >&6
36501   wl="$acl_cv_wl"
36502   libext="$acl_cv_libext"
36503   shlibext="$acl_cv_shlibext"
36504   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
36505   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
36506   hardcode_direct="$acl_cv_hardcode_direct"
36507   hardcode_minus_L="$acl_cv_hardcode_minus_L"
36508     # Check whether --enable-rpath or --disable-rpath was given.
36509 if test "${enable_rpath+set}" = set; then
36510   enableval="$enable_rpath"
36511   :
36512 else
36513   enable_rpath=yes
36514 fi;
36515
36516
36517
36518
36519
36520
36521
36522     use_additional=yes
36523
36524   acl_save_prefix="$prefix"
36525   prefix="$acl_final_prefix"
36526   acl_save_exec_prefix="$exec_prefix"
36527   exec_prefix="$acl_final_exec_prefix"
36528
36529     eval additional_includedir=\"$includedir\"
36530     eval additional_libdir=\"$libdir\"
36531
36532   exec_prefix="$acl_save_exec_prefix"
36533   prefix="$acl_save_prefix"
36534
36535
36536 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
36537 if test "${with_libiconv_prefix+set}" = set; then
36538   withval="$with_libiconv_prefix"
36539
36540     if test "X$withval" = "Xno"; then
36541       use_additional=no
36542     else
36543       if test "X$withval" = "X"; then
36544
36545   acl_save_prefix="$prefix"
36546   prefix="$acl_final_prefix"
36547   acl_save_exec_prefix="$exec_prefix"
36548   exec_prefix="$acl_final_exec_prefix"
36549
36550           eval additional_includedir=\"$includedir\"
36551           eval additional_libdir=\"$libdir\"
36552
36553   exec_prefix="$acl_save_exec_prefix"
36554   prefix="$acl_save_prefix"
36555
36556       else
36557         additional_includedir="$withval/include"
36558         additional_libdir="$withval/lib"
36559       fi
36560     fi
36561
36562 fi;
36563       LIBICONV=
36564   LTLIBICONV=
36565   INCICONV=
36566   rpathdirs=
36567   ltrpathdirs=
36568   names_already_handled=
36569   names_next_round='iconv '
36570   while test -n "$names_next_round"; do
36571     names_this_round="$names_next_round"
36572     names_next_round=
36573     for name in $names_this_round; do
36574       already_handled=
36575       for n in $names_already_handled; do
36576         if test "$n" = "$name"; then
36577           already_handled=yes
36578           break
36579         fi
36580       done
36581       if test -z "$already_handled"; then
36582         names_already_handled="$names_already_handled $name"
36583                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
36584         eval value=\"\$HAVE_LIB$uppername\"
36585         if test -n "$value"; then
36586           if test "$value" = yes; then
36587             eval value=\"\$LIB$uppername\"
36588             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
36589             eval value=\"\$LTLIB$uppername\"
36590             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
36591           else
36592                                     :
36593           fi
36594         else
36595                               found_dir=
36596           found_la=
36597           found_so=
36598           found_a=
36599           if test $use_additional = yes; then
36600             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
36601               found_dir="$additional_libdir"
36602               found_so="$additional_libdir/lib$name.$shlibext"
36603               if test -f "$additional_libdir/lib$name.la"; then
36604                 found_la="$additional_libdir/lib$name.la"
36605               fi
36606             else
36607               if test -f "$additional_libdir/lib$name.$libext"; then
36608                 found_dir="$additional_libdir"
36609                 found_a="$additional_libdir/lib$name.$libext"
36610                 if test -f "$additional_libdir/lib$name.la"; then
36611                   found_la="$additional_libdir/lib$name.la"
36612                 fi
36613               fi
36614             fi
36615           fi
36616           if test "X$found_dir" = "X"; then
36617             for x in $LDFLAGS $LTLIBICONV; do
36618
36619   acl_save_prefix="$prefix"
36620   prefix="$acl_final_prefix"
36621   acl_save_exec_prefix="$exec_prefix"
36622   exec_prefix="$acl_final_exec_prefix"
36623   eval x=\"$x\"
36624   exec_prefix="$acl_save_exec_prefix"
36625   prefix="$acl_save_prefix"
36626
36627               case "$x" in
36628                 -L*)
36629                   dir=`echo "X$x" | sed -e 's/^X-L//'`
36630                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
36631                     found_dir="$dir"
36632                     found_so="$dir/lib$name.$shlibext"
36633                     if test -f "$dir/lib$name.la"; then
36634                       found_la="$dir/lib$name.la"
36635                     fi
36636                   else
36637                     if test -f "$dir/lib$name.$libext"; then
36638                       found_dir="$dir"
36639                       found_a="$dir/lib$name.$libext"
36640                       if test -f "$dir/lib$name.la"; then
36641                         found_la="$dir/lib$name.la"
36642                       fi
36643                     fi
36644                   fi
36645                   ;;
36646               esac
36647               if test "X$found_dir" != "X"; then
36648                 break
36649               fi
36650             done
36651           fi
36652           if test "X$found_dir" != "X"; then
36653                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
36654             if test "X$found_so" != "X"; then
36655                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
36656                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
36657               else
36658                                                                                 haveit=
36659                 for x in $ltrpathdirs; do
36660                   if test "X$x" = "X$found_dir"; then
36661                     haveit=yes
36662                     break
36663                   fi
36664                 done
36665                 if test -z "$haveit"; then
36666                   ltrpathdirs="$ltrpathdirs $found_dir"
36667                 fi
36668                                 if test "$hardcode_direct" = yes; then
36669                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
36670                 else
36671                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
36672                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
36673                                                             haveit=
36674                     for x in $rpathdirs; do
36675                       if test "X$x" = "X$found_dir"; then
36676                         haveit=yes
36677                         break
36678                       fi
36679                     done
36680                     if test -z "$haveit"; then
36681                       rpathdirs="$rpathdirs $found_dir"
36682                     fi
36683                   else
36684                                                                                 haveit=
36685                     for x in $LDFLAGS $LIBICONV; do
36686
36687   acl_save_prefix="$prefix"
36688   prefix="$acl_final_prefix"
36689   acl_save_exec_prefix="$exec_prefix"
36690   exec_prefix="$acl_final_exec_prefix"
36691   eval x=\"$x\"
36692   exec_prefix="$acl_save_exec_prefix"
36693   prefix="$acl_save_prefix"
36694
36695                       if test "X$x" = "X-L$found_dir"; then
36696                         haveit=yes
36697                         break
36698                       fi
36699                     done
36700                     if test -z "$haveit"; then
36701                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
36702                     fi
36703                     if test "$hardcode_minus_L" != no; then
36704                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
36705                     else
36706                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
36707                     fi
36708                   fi
36709                 fi
36710               fi
36711             else
36712               if test "X$found_a" != "X"; then
36713                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
36714               else
36715                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
36716               fi
36717             fi
36718                         additional_includedir=
36719             case "$found_dir" in
36720               */lib | */lib/)
36721                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
36722                 additional_includedir="$basedir/include"
36723                 ;;
36724             esac
36725             if test "X$additional_includedir" != "X"; then
36726                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
36727                 haveit=
36728                 if test "X$additional_includedir" = "X/usr/local/include"; then
36729                   if test -n "$GCC"; then
36730                     case $host_os in
36731                       linux*) haveit=yes;;
36732                     esac
36733                   fi
36734                 fi
36735                 if test -z "$haveit"; then
36736                   for x in $CPPFLAGS $INCICONV; do
36737
36738   acl_save_prefix="$prefix"
36739   prefix="$acl_final_prefix"
36740   acl_save_exec_prefix="$exec_prefix"
36741   exec_prefix="$acl_final_exec_prefix"
36742   eval x=\"$x\"
36743   exec_prefix="$acl_save_exec_prefix"
36744   prefix="$acl_save_prefix"
36745
36746                     if test "X$x" = "X-I$additional_includedir"; then
36747                       haveit=yes
36748                       break
36749                     fi
36750                   done
36751                   if test -z "$haveit"; then
36752                     if test -d "$additional_includedir"; then
36753                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
36754                     fi
36755                   fi
36756                 fi
36757               fi
36758             fi
36759                         if test -n "$found_la"; then
36760                                                         save_libdir="$libdir"
36761               case "$found_la" in
36762                 */* | *\\*) . "$found_la" ;;
36763                 *) . "./$found_la" ;;
36764               esac
36765               libdir="$save_libdir"
36766                             for dep in $dependency_libs; do
36767                 case "$dep" in
36768                   -L*)
36769                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
36770                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
36771                       haveit=
36772                       if test "X$additional_libdir" = "X/usr/local/lib"; then
36773                         if test -n "$GCC"; then
36774                           case $host_os in
36775                             linux*) haveit=yes;;
36776                           esac
36777                         fi
36778                       fi
36779                       if test -z "$haveit"; then
36780                         haveit=
36781                         for x in $LDFLAGS $LIBICONV; do
36782
36783   acl_save_prefix="$prefix"
36784   prefix="$acl_final_prefix"
36785   acl_save_exec_prefix="$exec_prefix"
36786   exec_prefix="$acl_final_exec_prefix"
36787   eval x=\"$x\"
36788   exec_prefix="$acl_save_exec_prefix"
36789   prefix="$acl_save_prefix"
36790
36791                           if test "X$x" = "X-L$additional_libdir"; then
36792                             haveit=yes
36793                             break
36794                           fi
36795                         done
36796                         if test -z "$haveit"; then
36797                           if test -d "$additional_libdir"; then
36798                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
36799                           fi
36800                         fi
36801                         haveit=
36802                         for x in $LDFLAGS $LTLIBICONV; do
36803
36804   acl_save_prefix="$prefix"
36805   prefix="$acl_final_prefix"
36806   acl_save_exec_prefix="$exec_prefix"
36807   exec_prefix="$acl_final_exec_prefix"
36808   eval x=\"$x\"
36809   exec_prefix="$acl_save_exec_prefix"
36810   prefix="$acl_save_prefix"
36811
36812                           if test "X$x" = "X-L$additional_libdir"; then
36813                             haveit=yes
36814                             break
36815                           fi
36816                         done
36817                         if test -z "$haveit"; then
36818                           if test -d "$additional_libdir"; then
36819                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
36820                           fi
36821                         fi
36822                       fi
36823                     fi
36824                     ;;
36825                   -R*)
36826                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
36827                     if test "$enable_rpath" != no; then
36828                                                                   haveit=
36829                       for x in $rpathdirs; do
36830                         if test "X$x" = "X$dir"; then
36831                           haveit=yes
36832                           break
36833                         fi
36834                       done
36835                       if test -z "$haveit"; then
36836                         rpathdirs="$rpathdirs $dir"
36837                       fi
36838                                                                   haveit=
36839                       for x in $ltrpathdirs; do
36840                         if test "X$x" = "X$dir"; then
36841                           haveit=yes
36842                           break
36843                         fi
36844                       done
36845                       if test -z "$haveit"; then
36846                         ltrpathdirs="$ltrpathdirs $dir"
36847                       fi
36848                     fi
36849                     ;;
36850                   -l*)
36851                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
36852                     ;;
36853                   *.la)
36854                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
36855                     ;;
36856                   *)
36857                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
36858                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
36859                     ;;
36860                 esac
36861               done
36862             fi
36863           else
36864                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
36865             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
36866           fi
36867         fi
36868       fi
36869     done
36870   done
36871   if test "X$rpathdirs" != "X"; then
36872     if test -n "$hardcode_libdir_separator"; then
36873                         alldirs=
36874       for found_dir in $rpathdirs; do
36875         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
36876       done
36877             acl_save_libdir="$libdir"
36878       libdir="$alldirs"
36879       eval flag=\"$hardcode_libdir_flag_spec\"
36880       libdir="$acl_save_libdir"
36881       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
36882     else
36883             for found_dir in $rpathdirs; do
36884         acl_save_libdir="$libdir"
36885         libdir="$found_dir"
36886         eval flag=\"$hardcode_libdir_flag_spec\"
36887         libdir="$acl_save_libdir"
36888         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
36889       done
36890     fi
36891   fi
36892   if test "X$ltrpathdirs" != "X"; then
36893             for found_dir in $ltrpathdirs; do
36894       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
36895     done
36896   fi
36897
36898
36899
36900
36901
36902
36903
36904 for ac_header in string.h sys/param.h stddef.h
36905 do
36906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36908   echo "$as_me:$LINENO: checking for $ac_header" >&5
36909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36911   echo $ECHO_N "(cached) $ECHO_C" >&6
36912 fi
36913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36915 else
36916   # Is the header compilable?
36917 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36919 cat >conftest.$ac_ext <<_ACEOF
36920 /* confdefs.h.  */
36921 _ACEOF
36922 cat confdefs.h >>conftest.$ac_ext
36923 cat >>conftest.$ac_ext <<_ACEOF
36924 /* end confdefs.h.  */
36925 $ac_includes_default
36926 #include <$ac_header>
36927 _ACEOF
36928 rm -f conftest.$ac_objext
36929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36930   (eval $ac_compile) 2>&5
36931   ac_status=$?
36932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36933   (exit $ac_status); } &&
36934          { ac_try='test -s conftest.$ac_objext'
36935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36936   (eval $ac_try) 2>&5
36937   ac_status=$?
36938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36939   (exit $ac_status); }; }; then
36940   ac_header_compiler=yes
36941 else
36942   echo "$as_me: failed program was:" >&5
36943 sed 's/^/| /' conftest.$ac_ext >&5
36944
36945 ac_header_compiler=no
36946 fi
36947 rm -f conftest.$ac_objext conftest.$ac_ext
36948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36949 echo "${ECHO_T}$ac_header_compiler" >&6
36950
36951 # Is the header present?
36952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36954 cat >conftest.$ac_ext <<_ACEOF
36955 /* confdefs.h.  */
36956 _ACEOF
36957 cat confdefs.h >>conftest.$ac_ext
36958 cat >>conftest.$ac_ext <<_ACEOF
36959 /* end confdefs.h.  */
36960 #include <$ac_header>
36961 _ACEOF
36962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36963   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36964   ac_status=$?
36965   grep -v '^ *+' conftest.er1 >conftest.err
36966   rm -f conftest.er1
36967   cat conftest.err >&5
36968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36969   (exit $ac_status); } >/dev/null; then
36970   if test -s conftest.err; then
36971     ac_cpp_err=$ac_c_preproc_warn_flag
36972   else
36973     ac_cpp_err=
36974   fi
36975 else
36976   ac_cpp_err=yes
36977 fi
36978 if test -z "$ac_cpp_err"; then
36979   ac_header_preproc=yes
36980 else
36981   echo "$as_me: failed program was:" >&5
36982 sed 's/^/| /' conftest.$ac_ext >&5
36983
36984   ac_header_preproc=no
36985 fi
36986 rm -f conftest.err conftest.$ac_ext
36987 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36988 echo "${ECHO_T}$ac_header_preproc" >&6
36989
36990 # So?  What about this header?
36991 case $ac_header_compiler:$ac_header_preproc in
36992   yes:no )
36993     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36995     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36997     ac_header_preproc=yes
36998     ;;
36999   no:yes )
37000     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37002     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37003 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37004     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37006     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37007 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37008     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37010     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37012     (
37013       cat <<\_ASBOX
37014 ## ------------------------------------ ##
37015 ## Report this to bug-coreutils@gnu.org ##
37016 ## ------------------------------------ ##
37017 _ASBOX
37018     ) |
37019       sed "s/^/$as_me: WARNING:     /" >&2
37020     ;;
37021 esac
37022 echo "$as_me:$LINENO: checking for $ac_header" >&5
37023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37025   echo $ECHO_N "(cached) $ECHO_C" >&6
37026 else
37027   eval "$as_ac_Header=\$ac_header_preproc"
37028 fi
37029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37031
37032 fi
37033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37034   cat >>confdefs.h <<_ACEOF
37035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37036 _ACEOF
37037
37038 fi
37039
37040 done
37041
37042
37043 for ac_func in resolvepath
37044 do
37045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37046 echo "$as_me:$LINENO: checking for $ac_func" >&5
37047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37048 if eval "test \"\${$as_ac_var+set}\" = set"; then
37049   echo $ECHO_N "(cached) $ECHO_C" >&6
37050 else
37051   cat >conftest.$ac_ext <<_ACEOF
37052 /* confdefs.h.  */
37053 _ACEOF
37054 cat confdefs.h >>conftest.$ac_ext
37055 cat >>conftest.$ac_ext <<_ACEOF
37056 /* end confdefs.h.  */
37057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37059 #define $ac_func innocuous_$ac_func
37060
37061 /* System header to define __stub macros and hopefully few prototypes,
37062     which can conflict with char $ac_func (); below.
37063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37064     <limits.h> exists even on freestanding compilers.  */
37065
37066 #ifdef __STDC__
37067 # include <limits.h>
37068 #else
37069 # include <assert.h>
37070 #endif
37071
37072 #undef $ac_func
37073
37074 /* Override any gcc2 internal prototype to avoid an error.  */
37075 #ifdef __cplusplus
37076 extern "C"
37077 {
37078 #endif
37079 /* We use char because int might match the return type of a gcc2
37080    builtin and then its argument prototype would still apply.  */
37081 char $ac_func ();
37082 /* The GNU C library defines this for functions which it implements
37083     to always fail with ENOSYS.  Some functions are actually named
37084     something starting with __ and the normal name is an alias.  */
37085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37086 choke me
37087 #else
37088 char (*f) () = $ac_func;
37089 #endif
37090 #ifdef __cplusplus
37091 }
37092 #endif
37093
37094 int
37095 main ()
37096 {
37097 return f != $ac_func;
37098   ;
37099   return 0;
37100 }
37101 _ACEOF
37102 rm -f conftest.$ac_objext conftest$ac_exeext
37103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37104   (eval $ac_link) 2>&5
37105   ac_status=$?
37106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37107   (exit $ac_status); } &&
37108          { ac_try='test -s conftest$ac_exeext'
37109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37110   (eval $ac_try) 2>&5
37111   ac_status=$?
37112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37113   (exit $ac_status); }; }; then
37114   eval "$as_ac_var=yes"
37115 else
37116   echo "$as_me: failed program was:" >&5
37117 sed 's/^/| /' conftest.$ac_ext >&5
37118
37119 eval "$as_ac_var=no"
37120 fi
37121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37122 fi
37123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37125 if test `eval echo '${'$as_ac_var'}'` = yes; then
37126   cat >>confdefs.h <<_ACEOF
37127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37128 _ACEOF
37129
37130 fi
37131 done
37132
37133
37134
37135     # This would simply be AC_REPLACE_FUNC([canonicalize_file_name])
37136     # if the function name weren't so long.  Besides, I would rather
37137     # not have underscores in file names.
37138     echo "$as_me:$LINENO: checking for canonicalize_file_name" >&5
37139 echo $ECHO_N "checking for canonicalize_file_name... $ECHO_C" >&6
37140 if test "${ac_cv_func_canonicalize_file_name+set}" = set; then
37141   echo $ECHO_N "(cached) $ECHO_C" >&6
37142 else
37143   cat >conftest.$ac_ext <<_ACEOF
37144 /* confdefs.h.  */
37145 _ACEOF
37146 cat confdefs.h >>conftest.$ac_ext
37147 cat >>conftest.$ac_ext <<_ACEOF
37148 /* end confdefs.h.  */
37149 /* Define canonicalize_file_name to an innocuous variant, in case <limits.h> declares canonicalize_file_name.
37150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37151 #define canonicalize_file_name innocuous_canonicalize_file_name
37152
37153 /* System header to define __stub macros and hopefully few prototypes,
37154     which can conflict with char canonicalize_file_name (); below.
37155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37156     <limits.h> exists even on freestanding compilers.  */
37157
37158 #ifdef __STDC__
37159 # include <limits.h>
37160 #else
37161 # include <assert.h>
37162 #endif
37163
37164 #undef canonicalize_file_name
37165
37166 /* Override any gcc2 internal prototype to avoid an error.  */
37167 #ifdef __cplusplus
37168 extern "C"
37169 {
37170 #endif
37171 /* We use char because int might match the return type of a gcc2
37172    builtin and then its argument prototype would still apply.  */
37173 char canonicalize_file_name ();
37174 /* The GNU C library defines this for functions which it implements
37175     to always fail with ENOSYS.  Some functions are actually named
37176     something starting with __ and the normal name is an alias.  */
37177 #if defined (__stub_canonicalize_file_name) || defined (__stub___canonicalize_file_name)
37178 choke me
37179 #else
37180 char (*f) () = canonicalize_file_name;
37181 #endif
37182 #ifdef __cplusplus
37183 }
37184 #endif
37185
37186 int
37187 main ()
37188 {
37189 return f != canonicalize_file_name;
37190   ;
37191   return 0;
37192 }
37193 _ACEOF
37194 rm -f conftest.$ac_objext conftest$ac_exeext
37195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37196   (eval $ac_link) 2>&5
37197   ac_status=$?
37198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37199   (exit $ac_status); } &&
37200          { ac_try='test -s conftest$ac_exeext'
37201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37202   (eval $ac_try) 2>&5
37203   ac_status=$?
37204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37205   (exit $ac_status); }; }; then
37206   ac_cv_func_canonicalize_file_name=yes
37207 else
37208   echo "$as_me: failed program was:" >&5
37209 sed 's/^/| /' conftest.$ac_ext >&5
37210
37211 ac_cv_func_canonicalize_file_name=no
37212 fi
37213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37214 fi
37215 echo "$as_me:$LINENO: result: $ac_cv_func_canonicalize_file_name" >&5
37216 echo "${ECHO_T}$ac_cv_func_canonicalize_file_name" >&6
37217 if test $ac_cv_func_canonicalize_file_name = yes; then
37218   :
37219 else
37220   LIBOBJS="$LIBOBJS canonicalize.$ac_objext"
37221 fi
37222
37223
37224
37225
37226
37227   GNU_PACKAGE="GNU $PACKAGE"
37228
37229 cat >>confdefs.h <<_ACEOF
37230 #define GNU_PACKAGE "$GNU_PACKAGE"
37231 _ACEOF
37232
37233
37234
37235
37236 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
37237
37238
37239
37240
37241
37242
37243
37244
37245
37246
37247
37248
37249
37250
37251
37252
37253
37254
37255
37256
37257   echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
37258 echo $ECHO_N "checking for struct stat.st_author... $ECHO_C" >&6
37259 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
37260   echo $ECHO_N "(cached) $ECHO_C" >&6
37261 else
37262   cat >conftest.$ac_ext <<_ACEOF
37263 /* confdefs.h.  */
37264 _ACEOF
37265 cat confdefs.h >>conftest.$ac_ext
37266 cat >>conftest.$ac_ext <<_ACEOF
37267 /* end confdefs.h.  */
37268 $ac_includes_default
37269 #include <sys/stat.h>
37270
37271
37272 int
37273 main ()
37274 {
37275 static struct stat ac_aggr;
37276 if (ac_aggr.st_author)
37277 return 0;
37278   ;
37279   return 0;
37280 }
37281 _ACEOF
37282 rm -f conftest.$ac_objext
37283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37284   (eval $ac_compile) 2>&5
37285   ac_status=$?
37286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37287   (exit $ac_status); } &&
37288          { ac_try='test -s conftest.$ac_objext'
37289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37290   (eval $ac_try) 2>&5
37291   ac_status=$?
37292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37293   (exit $ac_status); }; }; then
37294   ac_cv_member_struct_stat_st_author=yes
37295 else
37296   echo "$as_me: failed program was:" >&5
37297 sed 's/^/| /' conftest.$ac_ext >&5
37298
37299 cat >conftest.$ac_ext <<_ACEOF
37300 /* confdefs.h.  */
37301 _ACEOF
37302 cat confdefs.h >>conftest.$ac_ext
37303 cat >>conftest.$ac_ext <<_ACEOF
37304 /* end confdefs.h.  */
37305 $ac_includes_default
37306 #include <sys/stat.h>
37307
37308
37309 int
37310 main ()
37311 {
37312 static struct stat ac_aggr;
37313 if (sizeof ac_aggr.st_author)
37314 return 0;
37315   ;
37316   return 0;
37317 }
37318 _ACEOF
37319 rm -f conftest.$ac_objext
37320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37321   (eval $ac_compile) 2>&5
37322   ac_status=$?
37323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37324   (exit $ac_status); } &&
37325          { ac_try='test -s conftest.$ac_objext'
37326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37327   (eval $ac_try) 2>&5
37328   ac_status=$?
37329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37330   (exit $ac_status); }; }; then
37331   ac_cv_member_struct_stat_st_author=yes
37332 else
37333   echo "$as_me: failed program was:" >&5
37334 sed 's/^/| /' conftest.$ac_ext >&5
37335
37336 ac_cv_member_struct_stat_st_author=no
37337 fi
37338 rm -f conftest.$ac_objext conftest.$ac_ext
37339 fi
37340 rm -f conftest.$ac_objext conftest.$ac_ext
37341 fi
37342 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
37343 echo "${ECHO_T}$ac_cv_member_struct_stat_st_author" >&6
37344 if test $ac_cv_member_struct_stat_st_author = yes; then
37345
37346 cat >>confdefs.h <<_ACEOF
37347 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
37348 _ACEOF
37349
37350
37351 fi
37352 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
37353 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
37354 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
37355   echo $ECHO_N "(cached) $ECHO_C" >&6
37356 else
37357   cat >conftest.$ac_ext <<_ACEOF
37358 /* confdefs.h.  */
37359 _ACEOF
37360 cat confdefs.h >>conftest.$ac_ext
37361 cat >>conftest.$ac_ext <<_ACEOF
37362 /* end confdefs.h.  */
37363 $ac_includes_default
37364 #include <sys/stat.h>
37365
37366
37367 int
37368 main ()
37369 {
37370 static struct stat ac_aggr;
37371 if (ac_aggr.st_blksize)
37372 return 0;
37373   ;
37374   return 0;
37375 }
37376 _ACEOF
37377 rm -f conftest.$ac_objext
37378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37379   (eval $ac_compile) 2>&5
37380   ac_status=$?
37381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37382   (exit $ac_status); } &&
37383          { ac_try='test -s conftest.$ac_objext'
37384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37385   (eval $ac_try) 2>&5
37386   ac_status=$?
37387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37388   (exit $ac_status); }; }; then
37389   ac_cv_member_struct_stat_st_blksize=yes
37390 else
37391   echo "$as_me: failed program was:" >&5
37392 sed 's/^/| /' conftest.$ac_ext >&5
37393
37394 cat >conftest.$ac_ext <<_ACEOF
37395 /* confdefs.h.  */
37396 _ACEOF
37397 cat confdefs.h >>conftest.$ac_ext
37398 cat >>conftest.$ac_ext <<_ACEOF
37399 /* end confdefs.h.  */
37400 $ac_includes_default
37401 #include <sys/stat.h>
37402
37403
37404 int
37405 main ()
37406 {
37407 static struct stat ac_aggr;
37408 if (sizeof ac_aggr.st_blksize)
37409 return 0;
37410   ;
37411   return 0;
37412 }
37413 _ACEOF
37414 rm -f conftest.$ac_objext
37415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37416   (eval $ac_compile) 2>&5
37417   ac_status=$?
37418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37419   (exit $ac_status); } &&
37420          { ac_try='test -s conftest.$ac_objext'
37421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37422   (eval $ac_try) 2>&5
37423   ac_status=$?
37424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37425   (exit $ac_status); }; }; then
37426   ac_cv_member_struct_stat_st_blksize=yes
37427 else
37428   echo "$as_me: failed program was:" >&5
37429 sed 's/^/| /' conftest.$ac_ext >&5
37430
37431 ac_cv_member_struct_stat_st_blksize=no
37432 fi
37433 rm -f conftest.$ac_objext conftest.$ac_ext
37434 fi
37435 rm -f conftest.$ac_objext conftest.$ac_ext
37436 fi
37437 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
37438 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
37439 if test $ac_cv_member_struct_stat_st_blksize = yes; then
37440
37441 cat >>confdefs.h <<_ACEOF
37442 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
37443 _ACEOF
37444
37445
37446 fi
37447
37448
37449
37450
37451
37452
37453
37454
37455
37456
37457
37458
37459
37460
37461   echo "$as_me:$LINENO: checking for ino_t" >&5
37462 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
37463 if test "${ac_cv_type_ino_t+set}" = set; then
37464   echo $ECHO_N "(cached) $ECHO_C" >&6
37465 else
37466   cat >conftest.$ac_ext <<_ACEOF
37467 /* confdefs.h.  */
37468 _ACEOF
37469 cat confdefs.h >>conftest.$ac_ext
37470 cat >>conftest.$ac_ext <<_ACEOF
37471 /* end confdefs.h.  */
37472 $ac_includes_default
37473 int
37474 main ()
37475 {
37476 if ((ino_t *) 0)
37477   return 0;
37478 if (sizeof (ino_t))
37479   return 0;
37480   ;
37481   return 0;
37482 }
37483 _ACEOF
37484 rm -f conftest.$ac_objext
37485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37486   (eval $ac_compile) 2>&5
37487   ac_status=$?
37488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37489   (exit $ac_status); } &&
37490          { ac_try='test -s conftest.$ac_objext'
37491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37492   (eval $ac_try) 2>&5
37493   ac_status=$?
37494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37495   (exit $ac_status); }; }; then
37496   ac_cv_type_ino_t=yes
37497 else
37498   echo "$as_me: failed program was:" >&5
37499 sed 's/^/| /' conftest.$ac_ext >&5
37500
37501 ac_cv_type_ino_t=no
37502 fi
37503 rm -f conftest.$ac_objext conftest.$ac_ext
37504 fi
37505 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
37506 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
37507 if test $ac_cv_type_ino_t = yes; then
37508   :
37509 else
37510
37511 cat >>confdefs.h <<_ACEOF
37512 #define ino_t unsigned long
37513 _ACEOF
37514
37515 fi
37516
37517
37518
37519   echo "$as_me:$LINENO: checking for ssize_t" >&5
37520 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
37521 if test "${gt_cv_ssize_t+set}" = set; then
37522   echo $ECHO_N "(cached) $ECHO_C" >&6
37523 else
37524
37525 cat >conftest.$ac_ext <<_ACEOF
37526 /* confdefs.h.  */
37527 _ACEOF
37528 cat confdefs.h >>conftest.$ac_ext
37529 cat >>conftest.$ac_ext <<_ACEOF
37530 /* end confdefs.h.  */
37531 #include <sys/types.h>
37532 int
37533 main ()
37534 {
37535 int x = sizeof (ssize_t *) + sizeof (ssize_t);
37536   ;
37537   return 0;
37538 }
37539 _ACEOF
37540 rm -f conftest.$ac_objext
37541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37542   (eval $ac_compile) 2>&5
37543   ac_status=$?
37544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37545   (exit $ac_status); } &&
37546          { ac_try='test -s conftest.$ac_objext'
37547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37548   (eval $ac_try) 2>&5
37549   ac_status=$?
37550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37551   (exit $ac_status); }; }; then
37552   gt_cv_ssize_t=yes
37553 else
37554   echo "$as_me: failed program was:" >&5
37555 sed 's/^/| /' conftest.$ac_ext >&5
37556
37557 gt_cv_ssize_t=no
37558 fi
37559 rm -f conftest.$ac_objext conftest.$ac_ext
37560 fi
37561 echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
37562 echo "${ECHO_T}$gt_cv_ssize_t" >&6
37563   if test $gt_cv_ssize_t = no; then
37564
37565 cat >>confdefs.h <<\_ACEOF
37566 #define ssize_t int
37567 _ACEOF
37568
37569   fi
37570
37571
37572       echo "$as_me:$LINENO: checking for major_t" >&5
37573 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
37574 if test "${ac_cv_type_major_t+set}" = set; then
37575   echo $ECHO_N "(cached) $ECHO_C" >&6
37576 else
37577   cat >conftest.$ac_ext <<_ACEOF
37578 /* confdefs.h.  */
37579 _ACEOF
37580 cat confdefs.h >>conftest.$ac_ext
37581 cat >>conftest.$ac_ext <<_ACEOF
37582 /* end confdefs.h.  */
37583 $ac_includes_default
37584 int
37585 main ()
37586 {
37587 if ((major_t *) 0)
37588   return 0;
37589 if (sizeof (major_t))
37590   return 0;
37591   ;
37592   return 0;
37593 }
37594 _ACEOF
37595 rm -f conftest.$ac_objext
37596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37597   (eval $ac_compile) 2>&5
37598   ac_status=$?
37599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37600   (exit $ac_status); } &&
37601          { ac_try='test -s conftest.$ac_objext'
37602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37603   (eval $ac_try) 2>&5
37604   ac_status=$?
37605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37606   (exit $ac_status); }; }; then
37607   ac_cv_type_major_t=yes
37608 else
37609   echo "$as_me: failed program was:" >&5
37610 sed 's/^/| /' conftest.$ac_ext >&5
37611
37612 ac_cv_type_major_t=no
37613 fi
37614 rm -f conftest.$ac_objext conftest.$ac_ext
37615 fi
37616 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
37617 echo "${ECHO_T}$ac_cv_type_major_t" >&6
37618 if test $ac_cv_type_major_t = yes; then
37619   :
37620 else
37621
37622 cat >>confdefs.h <<_ACEOF
37623 #define major_t unsigned int
37624 _ACEOF
37625
37626 fi
37627
37628   echo "$as_me:$LINENO: checking for minor_t" >&5
37629 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
37630 if test "${ac_cv_type_minor_t+set}" = set; then
37631   echo $ECHO_N "(cached) $ECHO_C" >&6
37632 else
37633   cat >conftest.$ac_ext <<_ACEOF
37634 /* confdefs.h.  */
37635 _ACEOF
37636 cat confdefs.h >>conftest.$ac_ext
37637 cat >>conftest.$ac_ext <<_ACEOF
37638 /* end confdefs.h.  */
37639 $ac_includes_default
37640 int
37641 main ()
37642 {
37643 if ((minor_t *) 0)
37644   return 0;
37645 if (sizeof (minor_t))
37646   return 0;
37647   ;
37648   return 0;
37649 }
37650 _ACEOF
37651 rm -f conftest.$ac_objext
37652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37653   (eval $ac_compile) 2>&5
37654   ac_status=$?
37655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37656   (exit $ac_status); } &&
37657          { ac_try='test -s conftest.$ac_objext'
37658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37659   (eval $ac_try) 2>&5
37660   ac_status=$?
37661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37662   (exit $ac_status); }; }; then
37663   ac_cv_type_minor_t=yes
37664 else
37665   echo "$as_me: failed program was:" >&5
37666 sed 's/^/| /' conftest.$ac_ext >&5
37667
37668 ac_cv_type_minor_t=no
37669 fi
37670 rm -f conftest.$ac_objext conftest.$ac_ext
37671 fi
37672 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
37673 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
37674 if test $ac_cv_type_minor_t = yes; then
37675   :
37676 else
37677
37678 cat >>confdefs.h <<_ACEOF
37679 #define minor_t unsigned int
37680 _ACEOF
37681
37682 fi
37683
37684
37685
37686
37687
37688
37689
37690
37691
37692
37693
37694
37695
37696
37697
37698
37699
37700
37701
37702
37703
37704
37705
37706
37707
37708
37709
37710
37711
37712
37713
37714
37715   # This is for od and stat, and any other program that
37716   # uses the PRI.MAX macros from inttypes.h.
37717
37718
37719
37720
37721
37722
37723
37724
37725   ac_have_func=no # yes means we've found a way to get the load average.
37726
37727
37728   :
37729
37730
37731
37732
37733
37734
37735
37736
37737
37738
37739
37740
37741 for ac_header in mach/mach.h
37742 do
37743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37745   echo "$as_me:$LINENO: checking for $ac_header" >&5
37746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37748   echo $ECHO_N "(cached) $ECHO_C" >&6
37749 fi
37750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37752 else
37753   # Is the header compilable?
37754 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37756 cat >conftest.$ac_ext <<_ACEOF
37757 /* confdefs.h.  */
37758 _ACEOF
37759 cat confdefs.h >>conftest.$ac_ext
37760 cat >>conftest.$ac_ext <<_ACEOF
37761 /* end confdefs.h.  */
37762 $ac_includes_default
37763 #include <$ac_header>
37764 _ACEOF
37765 rm -f conftest.$ac_objext
37766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37767   (eval $ac_compile) 2>&5
37768   ac_status=$?
37769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37770   (exit $ac_status); } &&
37771          { ac_try='test -s conftest.$ac_objext'
37772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37773   (eval $ac_try) 2>&5
37774   ac_status=$?
37775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37776   (exit $ac_status); }; }; then
37777   ac_header_compiler=yes
37778 else
37779   echo "$as_me: failed program was:" >&5
37780 sed 's/^/| /' conftest.$ac_ext >&5
37781
37782 ac_header_compiler=no
37783 fi
37784 rm -f conftest.$ac_objext conftest.$ac_ext
37785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37786 echo "${ECHO_T}$ac_header_compiler" >&6
37787
37788 # Is the header present?
37789 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37791 cat >conftest.$ac_ext <<_ACEOF
37792 /* confdefs.h.  */
37793 _ACEOF
37794 cat confdefs.h >>conftest.$ac_ext
37795 cat >>conftest.$ac_ext <<_ACEOF
37796 /* end confdefs.h.  */
37797 #include <$ac_header>
37798 _ACEOF
37799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37800   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37801   ac_status=$?
37802   grep -v '^ *+' conftest.er1 >conftest.err
37803   rm -f conftest.er1
37804   cat conftest.err >&5
37805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37806   (exit $ac_status); } >/dev/null; then
37807   if test -s conftest.err; then
37808     ac_cpp_err=$ac_c_preproc_warn_flag
37809   else
37810     ac_cpp_err=
37811   fi
37812 else
37813   ac_cpp_err=yes
37814 fi
37815 if test -z "$ac_cpp_err"; then
37816   ac_header_preproc=yes
37817 else
37818   echo "$as_me: failed program was:" >&5
37819 sed 's/^/| /' conftest.$ac_ext >&5
37820
37821   ac_header_preproc=no
37822 fi
37823 rm -f conftest.err conftest.$ac_ext
37824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37825 echo "${ECHO_T}$ac_header_preproc" >&6
37826
37827 # So?  What about this header?
37828 case $ac_header_compiler:$ac_header_preproc in
37829   yes:no )
37830     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37832     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37834     ac_header_preproc=yes
37835     ;;
37836   no:yes )
37837     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37839     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37840 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37841     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37843     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37844 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37847     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37849     (
37850       cat <<\_ASBOX
37851 ## ------------------------------------ ##
37852 ## Report this to bug-coreutils@gnu.org ##
37853 ## ------------------------------------ ##
37854 _ASBOX
37855     ) |
37856       sed "s/^/$as_me: WARNING:     /" >&2
37857     ;;
37858 esac
37859 echo "$as_me:$LINENO: checking for $ac_header" >&5
37860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37862   echo $ECHO_N "(cached) $ECHO_C" >&6
37863 else
37864   eval "$as_ac_Header=\$ac_header_preproc"
37865 fi
37866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37868
37869 fi
37870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37871   cat >>confdefs.h <<_ACEOF
37872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37873 _ACEOF
37874
37875 fi
37876
37877 done
37878
37879
37880 for ac_func in setlocale
37881 do
37882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37883 echo "$as_me:$LINENO: checking for $ac_func" >&5
37884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37885 if eval "test \"\${$as_ac_var+set}\" = set"; then
37886   echo $ECHO_N "(cached) $ECHO_C" >&6
37887 else
37888   cat >conftest.$ac_ext <<_ACEOF
37889 /* confdefs.h.  */
37890 _ACEOF
37891 cat confdefs.h >>conftest.$ac_ext
37892 cat >>conftest.$ac_ext <<_ACEOF
37893 /* end confdefs.h.  */
37894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37896 #define $ac_func innocuous_$ac_func
37897
37898 /* System header to define __stub macros and hopefully few prototypes,
37899     which can conflict with char $ac_func (); below.
37900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37901     <limits.h> exists even on freestanding compilers.  */
37902
37903 #ifdef __STDC__
37904 # include <limits.h>
37905 #else
37906 # include <assert.h>
37907 #endif
37908
37909 #undef $ac_func
37910
37911 /* Override any gcc2 internal prototype to avoid an error.  */
37912 #ifdef __cplusplus
37913 extern "C"
37914 {
37915 #endif
37916 /* We use char because int might match the return type of a gcc2
37917    builtin and then its argument prototype would still apply.  */
37918 char $ac_func ();
37919 /* The GNU C library defines this for functions which it implements
37920     to always fail with ENOSYS.  Some functions are actually named
37921     something starting with __ and the normal name is an alias.  */
37922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37923 choke me
37924 #else
37925 char (*f) () = $ac_func;
37926 #endif
37927 #ifdef __cplusplus
37928 }
37929 #endif
37930
37931 int
37932 main ()
37933 {
37934 return f != $ac_func;
37935   ;
37936   return 0;
37937 }
37938 _ACEOF
37939 rm -f conftest.$ac_objext conftest$ac_exeext
37940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37941   (eval $ac_link) 2>&5
37942   ac_status=$?
37943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37944   (exit $ac_status); } &&
37945          { ac_try='test -s conftest$ac_exeext'
37946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37947   (eval $ac_try) 2>&5
37948   ac_status=$?
37949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37950   (exit $ac_status); }; }; then
37951   eval "$as_ac_var=yes"
37952 else
37953   echo "$as_me: failed program was:" >&5
37954 sed 's/^/| /' conftest.$ac_ext >&5
37955
37956 eval "$as_ac_var=no"
37957 fi
37958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37959 fi
37960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37962 if test `eval echo '${'$as_ac_var'}'` = yes; then
37963   cat >>confdefs.h <<_ACEOF
37964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37965 _ACEOF
37966
37967 fi
37968 done
37969
37970
37971 # By default, expect to find getloadavg.c in $srcdir/.
37972 ac_lib_dir_getloadavg=$srcdir
37973 # But if there's an argument, DIR, expect to find getloadavg.c in $srcdir/DIR.
37974 ac_lib_dir_getloadavg=$srcdir/lib
37975 # Make sure getloadavg.c is where it belongs, at ./configure-time.
37976 test -f $ac_lib_dir_getloadavg/getloadavg.c \
37977   || { { echo "$as_me:$LINENO: error: getloadavg.c is not in $ac_lib_dir_getloadavg" >&5
37978 echo "$as_me: error: getloadavg.c is not in $ac_lib_dir_getloadavg" >&2;}
37979    { (exit 1); exit 1; }; }
37980 # FIXME: Add an autoconf-time test, too?
37981
37982 ac_save_LIBS=$LIBS
37983
37984 # Check for getloadavg, but be sure not to touch the cache variable.
37985 (echo "$as_me:$LINENO: checking for getloadavg" >&5
37986 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
37987 if test "${ac_cv_func_getloadavg+set}" = set; then
37988   echo $ECHO_N "(cached) $ECHO_C" >&6
37989 else
37990   cat >conftest.$ac_ext <<_ACEOF
37991 /* confdefs.h.  */
37992 _ACEOF
37993 cat confdefs.h >>conftest.$ac_ext
37994 cat >>conftest.$ac_ext <<_ACEOF
37995 /* end confdefs.h.  */
37996 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
37997    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37998 #define getloadavg innocuous_getloadavg
37999
38000 /* System header to define __stub macros and hopefully few prototypes,
38001     which can conflict with char getloadavg (); below.
38002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38003     <limits.h> exists even on freestanding compilers.  */
38004
38005 #ifdef __STDC__
38006 # include <limits.h>
38007 #else
38008 # include <assert.h>
38009 #endif
38010
38011 #undef getloadavg
38012
38013 /* Override any gcc2 internal prototype to avoid an error.  */
38014 #ifdef __cplusplus
38015 extern "C"
38016 {
38017 #endif
38018 /* We use char because int might match the return type of a gcc2
38019    builtin and then its argument prototype would still apply.  */
38020 char getloadavg ();
38021 /* The GNU C library defines this for functions which it implements
38022     to always fail with ENOSYS.  Some functions are actually named
38023     something starting with __ and the normal name is an alias.  */
38024 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
38025 choke me
38026 #else
38027 char (*f) () = getloadavg;
38028 #endif
38029 #ifdef __cplusplus
38030 }
38031 #endif
38032
38033 int
38034 main ()
38035 {
38036 return f != getloadavg;
38037   ;
38038   return 0;
38039 }
38040 _ACEOF
38041 rm -f conftest.$ac_objext conftest$ac_exeext
38042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38043   (eval $ac_link) 2>&5
38044   ac_status=$?
38045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38046   (exit $ac_status); } &&
38047          { ac_try='test -s conftest$ac_exeext'
38048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38049   (eval $ac_try) 2>&5
38050   ac_status=$?
38051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38052   (exit $ac_status); }; }; then
38053   ac_cv_func_getloadavg=yes
38054 else
38055   echo "$as_me: failed program was:" >&5
38056 sed 's/^/| /' conftest.$ac_ext >&5
38057
38058 ac_cv_func_getloadavg=no
38059 fi
38060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38061 fi
38062 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
38063 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
38064 if test $ac_cv_func_getloadavg = yes; then
38065   exit 0
38066 else
38067   exit 1
38068 fi
38069 ) && ac_have_func=yes
38070
38071 # On HPUX9, an unprivileged user can get load averages through this function.
38072
38073 for ac_func in pstat_getdynamic
38074 do
38075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38076 echo "$as_me:$LINENO: checking for $ac_func" >&5
38077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38078 if eval "test \"\${$as_ac_var+set}\" = set"; then
38079   echo $ECHO_N "(cached) $ECHO_C" >&6
38080 else
38081   cat >conftest.$ac_ext <<_ACEOF
38082 /* confdefs.h.  */
38083 _ACEOF
38084 cat confdefs.h >>conftest.$ac_ext
38085 cat >>conftest.$ac_ext <<_ACEOF
38086 /* end confdefs.h.  */
38087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38089 #define $ac_func innocuous_$ac_func
38090
38091 /* System header to define __stub macros and hopefully few prototypes,
38092     which can conflict with char $ac_func (); below.
38093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38094     <limits.h> exists even on freestanding compilers.  */
38095
38096 #ifdef __STDC__
38097 # include <limits.h>
38098 #else
38099 # include <assert.h>
38100 #endif
38101
38102 #undef $ac_func
38103
38104 /* Override any gcc2 internal prototype to avoid an error.  */
38105 #ifdef __cplusplus
38106 extern "C"
38107 {
38108 #endif
38109 /* We use char because int might match the return type of a gcc2
38110    builtin and then its argument prototype would still apply.  */
38111 char $ac_func ();
38112 /* The GNU C library defines this for functions which it implements
38113     to always fail with ENOSYS.  Some functions are actually named
38114     something starting with __ and the normal name is an alias.  */
38115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38116 choke me
38117 #else
38118 char (*f) () = $ac_func;
38119 #endif
38120 #ifdef __cplusplus
38121 }
38122 #endif
38123
38124 int
38125 main ()
38126 {
38127 return f != $ac_func;
38128   ;
38129   return 0;
38130 }
38131 _ACEOF
38132 rm -f conftest.$ac_objext conftest$ac_exeext
38133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38134   (eval $ac_link) 2>&5
38135   ac_status=$?
38136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38137   (exit $ac_status); } &&
38138          { ac_try='test -s conftest$ac_exeext'
38139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38140   (eval $ac_try) 2>&5
38141   ac_status=$?
38142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38143   (exit $ac_status); }; }; then
38144   eval "$as_ac_var=yes"
38145 else
38146   echo "$as_me: failed program was:" >&5
38147 sed 's/^/| /' conftest.$ac_ext >&5
38148
38149 eval "$as_ac_var=no"
38150 fi
38151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38152 fi
38153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38155 if test `eval echo '${'$as_ac_var'}'` = yes; then
38156   cat >>confdefs.h <<_ACEOF
38157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38158 _ACEOF
38159
38160 fi
38161 done
38162
38163
38164 # Solaris has libkstat which does not require root.
38165
38166 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
38167 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
38168 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
38169   echo $ECHO_N "(cached) $ECHO_C" >&6
38170 else
38171   ac_check_lib_save_LIBS=$LIBS
38172 LIBS="-lkstat  $LIBS"
38173 cat >conftest.$ac_ext <<_ACEOF
38174 /* confdefs.h.  */
38175 _ACEOF
38176 cat confdefs.h >>conftest.$ac_ext
38177 cat >>conftest.$ac_ext <<_ACEOF
38178 /* end confdefs.h.  */
38179
38180 /* Override any gcc2 internal prototype to avoid an error.  */
38181 #ifdef __cplusplus
38182 extern "C"
38183 #endif
38184 /* We use char because int might match the return type of a gcc2
38185    builtin and then its argument prototype would still apply.  */
38186 char kstat_open ();
38187 int
38188 main ()
38189 {
38190 kstat_open ();
38191   ;
38192   return 0;
38193 }
38194 _ACEOF
38195 rm -f conftest.$ac_objext conftest$ac_exeext
38196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38197   (eval $ac_link) 2>&5
38198   ac_status=$?
38199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38200   (exit $ac_status); } &&
38201          { ac_try='test -s conftest$ac_exeext'
38202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38203   (eval $ac_try) 2>&5
38204   ac_status=$?
38205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38206   (exit $ac_status); }; }; then
38207   ac_cv_lib_kstat_kstat_open=yes
38208 else
38209   echo "$as_me: failed program was:" >&5
38210 sed 's/^/| /' conftest.$ac_ext >&5
38211
38212 ac_cv_lib_kstat_kstat_open=no
38213 fi
38214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38215 LIBS=$ac_check_lib_save_LIBS
38216 fi
38217 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
38218 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
38219 if test $ac_cv_lib_kstat_kstat_open = yes; then
38220   cat >>confdefs.h <<_ACEOF
38221 #define HAVE_LIBKSTAT 1
38222 _ACEOF
38223
38224   LIBS="-lkstat $LIBS"
38225
38226 fi
38227
38228 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
38229
38230 # Some systems with -lutil have (and need) -lkvm as well, some do not.
38231 # On Solaris, -lkvm requires nlist from -lelf, so check that first
38232 # to get the right answer into the cache.
38233 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
38234 if test $ac_have_func = no; then
38235   echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
38236 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
38237 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
38238   echo $ECHO_N "(cached) $ECHO_C" >&6
38239 else
38240   ac_check_lib_save_LIBS=$LIBS
38241 LIBS="-lelf  $LIBS"
38242 cat >conftest.$ac_ext <<_ACEOF
38243 /* confdefs.h.  */
38244 _ACEOF
38245 cat confdefs.h >>conftest.$ac_ext
38246 cat >>conftest.$ac_ext <<_ACEOF
38247 /* end confdefs.h.  */
38248
38249 /* Override any gcc2 internal prototype to avoid an error.  */
38250 #ifdef __cplusplus
38251 extern "C"
38252 #endif
38253 /* We use char because int might match the return type of a gcc2
38254    builtin and then its argument prototype would still apply.  */
38255 char elf_begin ();
38256 int
38257 main ()
38258 {
38259 elf_begin ();
38260   ;
38261   return 0;
38262 }
38263 _ACEOF
38264 rm -f conftest.$ac_objext conftest$ac_exeext
38265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38266   (eval $ac_link) 2>&5
38267   ac_status=$?
38268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38269   (exit $ac_status); } &&
38270          { ac_try='test -s conftest$ac_exeext'
38271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38272   (eval $ac_try) 2>&5
38273   ac_status=$?
38274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38275   (exit $ac_status); }; }; then
38276   ac_cv_lib_elf_elf_begin=yes
38277 else
38278   echo "$as_me: failed program was:" >&5
38279 sed 's/^/| /' conftest.$ac_ext >&5
38280
38281 ac_cv_lib_elf_elf_begin=no
38282 fi
38283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38284 LIBS=$ac_check_lib_save_LIBS
38285 fi
38286 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
38287 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
38288 if test $ac_cv_lib_elf_elf_begin = yes; then
38289   LIBS="-lelf $LIBS"
38290 fi
38291
38292 fi
38293 if test $ac_have_func = no; then
38294   echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
38295 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
38296 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
38297   echo $ECHO_N "(cached) $ECHO_C" >&6
38298 else
38299   ac_check_lib_save_LIBS=$LIBS
38300 LIBS="-lkvm  $LIBS"
38301 cat >conftest.$ac_ext <<_ACEOF
38302 /* confdefs.h.  */
38303 _ACEOF
38304 cat confdefs.h >>conftest.$ac_ext
38305 cat >>conftest.$ac_ext <<_ACEOF
38306 /* end confdefs.h.  */
38307
38308 /* Override any gcc2 internal prototype to avoid an error.  */
38309 #ifdef __cplusplus
38310 extern "C"
38311 #endif
38312 /* We use char because int might match the return type of a gcc2
38313    builtin and then its argument prototype would still apply.  */
38314 char kvm_open ();
38315 int
38316 main ()
38317 {
38318 kvm_open ();
38319   ;
38320   return 0;
38321 }
38322 _ACEOF
38323 rm -f conftest.$ac_objext conftest$ac_exeext
38324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38325   (eval $ac_link) 2>&5
38326   ac_status=$?
38327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38328   (exit $ac_status); } &&
38329          { ac_try='test -s conftest$ac_exeext'
38330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38331   (eval $ac_try) 2>&5
38332   ac_status=$?
38333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38334   (exit $ac_status); }; }; then
38335   ac_cv_lib_kvm_kvm_open=yes
38336 else
38337   echo "$as_me: failed program was:" >&5
38338 sed 's/^/| /' conftest.$ac_ext >&5
38339
38340 ac_cv_lib_kvm_kvm_open=no
38341 fi
38342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38343 LIBS=$ac_check_lib_save_LIBS
38344 fi
38345 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
38346 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
38347 if test $ac_cv_lib_kvm_kvm_open = yes; then
38348   LIBS="-lkvm $LIBS"
38349 fi
38350
38351   # Check for the 4.4BSD definition of getloadavg.
38352   echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
38353 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
38354 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
38355   echo $ECHO_N "(cached) $ECHO_C" >&6
38356 else
38357   ac_check_lib_save_LIBS=$LIBS
38358 LIBS="-lutil  $LIBS"
38359 cat >conftest.$ac_ext <<_ACEOF
38360 /* confdefs.h.  */
38361 _ACEOF
38362 cat confdefs.h >>conftest.$ac_ext
38363 cat >>conftest.$ac_ext <<_ACEOF
38364 /* end confdefs.h.  */
38365
38366 /* Override any gcc2 internal prototype to avoid an error.  */
38367 #ifdef __cplusplus
38368 extern "C"
38369 #endif
38370 /* We use char because int might match the return type of a gcc2
38371    builtin and then its argument prototype would still apply.  */
38372 char getloadavg ();
38373 int
38374 main ()
38375 {
38376 getloadavg ();
38377   ;
38378   return 0;
38379 }
38380 _ACEOF
38381 rm -f conftest.$ac_objext conftest$ac_exeext
38382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38383   (eval $ac_link) 2>&5
38384   ac_status=$?
38385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38386   (exit $ac_status); } &&
38387          { ac_try='test -s conftest$ac_exeext'
38388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38389   (eval $ac_try) 2>&5
38390   ac_status=$?
38391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38392   (exit $ac_status); }; }; then
38393   ac_cv_lib_util_getloadavg=yes
38394 else
38395   echo "$as_me: failed program was:" >&5
38396 sed 's/^/| /' conftest.$ac_ext >&5
38397
38398 ac_cv_lib_util_getloadavg=no
38399 fi
38400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38401 LIBS=$ac_check_lib_save_LIBS
38402 fi
38403 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
38404 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
38405 if test $ac_cv_lib_util_getloadavg = yes; then
38406   LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
38407 fi
38408
38409 fi
38410
38411 if test $ac_have_func = no; then
38412   # There is a commonly available library for RS/6000 AIX.
38413   # Since it is not a standard part of AIX, it might be installed locally.
38414   ac_getloadavg_LIBS=$LIBS
38415   LIBS="-L/usr/local/lib $LIBS"
38416   echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
38417 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
38418 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
38419   echo $ECHO_N "(cached) $ECHO_C" >&6
38420 else
38421   ac_check_lib_save_LIBS=$LIBS
38422 LIBS="-lgetloadavg  $LIBS"
38423 cat >conftest.$ac_ext <<_ACEOF
38424 /* confdefs.h.  */
38425 _ACEOF
38426 cat confdefs.h >>conftest.$ac_ext
38427 cat >>conftest.$ac_ext <<_ACEOF
38428 /* end confdefs.h.  */
38429
38430 /* Override any gcc2 internal prototype to avoid an error.  */
38431 #ifdef __cplusplus
38432 extern "C"
38433 #endif
38434 /* We use char because int might match the return type of a gcc2
38435    builtin and then its argument prototype would still apply.  */
38436 char getloadavg ();
38437 int
38438 main ()
38439 {
38440 getloadavg ();
38441   ;
38442   return 0;
38443 }
38444 _ACEOF
38445 rm -f conftest.$ac_objext conftest$ac_exeext
38446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38447   (eval $ac_link) 2>&5
38448   ac_status=$?
38449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38450   (exit $ac_status); } &&
38451          { ac_try='test -s conftest$ac_exeext'
38452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38453   (eval $ac_try) 2>&5
38454   ac_status=$?
38455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38456   (exit $ac_status); }; }; then
38457   ac_cv_lib_getloadavg_getloadavg=yes
38458 else
38459   echo "$as_me: failed program was:" >&5
38460 sed 's/^/| /' conftest.$ac_ext >&5
38461
38462 ac_cv_lib_getloadavg_getloadavg=no
38463 fi
38464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38465 LIBS=$ac_check_lib_save_LIBS
38466 fi
38467 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
38468 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
38469 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
38470   LIBS="-lgetloadavg $LIBS"
38471 else
38472   LIBS=$ac_getloadavg_LIBS
38473 fi
38474
38475 fi
38476
38477 # Make sure it is really in the library, if we think we found it,
38478 # otherwise set up the replacement function.
38479
38480 for ac_func in getloadavg
38481 do
38482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38483 echo "$as_me:$LINENO: checking for $ac_func" >&5
38484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38485 if eval "test \"\${$as_ac_var+set}\" = set"; then
38486   echo $ECHO_N "(cached) $ECHO_C" >&6
38487 else
38488   cat >conftest.$ac_ext <<_ACEOF
38489 /* confdefs.h.  */
38490 _ACEOF
38491 cat confdefs.h >>conftest.$ac_ext
38492 cat >>conftest.$ac_ext <<_ACEOF
38493 /* end confdefs.h.  */
38494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38495    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38496 #define $ac_func innocuous_$ac_func
38497
38498 /* System header to define __stub macros and hopefully few prototypes,
38499     which can conflict with char $ac_func (); below.
38500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38501     <limits.h> exists even on freestanding compilers.  */
38502
38503 #ifdef __STDC__
38504 # include <limits.h>
38505 #else
38506 # include <assert.h>
38507 #endif
38508
38509 #undef $ac_func
38510
38511 /* Override any gcc2 internal prototype to avoid an error.  */
38512 #ifdef __cplusplus
38513 extern "C"
38514 {
38515 #endif
38516 /* We use char because int might match the return type of a gcc2
38517    builtin and then its argument prototype would still apply.  */
38518 char $ac_func ();
38519 /* The GNU C library defines this for functions which it implements
38520     to always fail with ENOSYS.  Some functions are actually named
38521     something starting with __ and the normal name is an alias.  */
38522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38523 choke me
38524 #else
38525 char (*f) () = $ac_func;
38526 #endif
38527 #ifdef __cplusplus
38528 }
38529 #endif
38530
38531 int
38532 main ()
38533 {
38534 return f != $ac_func;
38535   ;
38536   return 0;
38537 }
38538 _ACEOF
38539 rm -f conftest.$ac_objext conftest$ac_exeext
38540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38541   (eval $ac_link) 2>&5
38542   ac_status=$?
38543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38544   (exit $ac_status); } &&
38545          { ac_try='test -s conftest$ac_exeext'
38546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38547   (eval $ac_try) 2>&5
38548   ac_status=$?
38549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38550   (exit $ac_status); }; }; then
38551   eval "$as_ac_var=yes"
38552 else
38553   echo "$as_me: failed program was:" >&5
38554 sed 's/^/| /' conftest.$ac_ext >&5
38555
38556 eval "$as_ac_var=no"
38557 fi
38558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38559 fi
38560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38562 if test `eval echo '${'$as_ac_var'}'` = yes; then
38563   cat >>confdefs.h <<_ACEOF
38564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38565 _ACEOF
38566
38567 else
38568   LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
38569
38570 cat >>confdefs.h <<\_ACEOF
38571 #define C_GETLOADAVG 1
38572 _ACEOF
38573
38574 # Figure out what our getloadavg.c needs.
38575 ac_have_func=no
38576 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
38577   echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
38578 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
38579 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
38580   echo $ECHO_N "(cached) $ECHO_C" >&6
38581 fi
38582 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
38583 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
38584 else
38585   # Is the header compilable?
38586 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
38587 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
38588 cat >conftest.$ac_ext <<_ACEOF
38589 /* confdefs.h.  */
38590 _ACEOF
38591 cat confdefs.h >>conftest.$ac_ext
38592 cat >>conftest.$ac_ext <<_ACEOF
38593 /* end confdefs.h.  */
38594 $ac_includes_default
38595 #include <sys/dg_sys_info.h>
38596 _ACEOF
38597 rm -f conftest.$ac_objext
38598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38599   (eval $ac_compile) 2>&5
38600   ac_status=$?
38601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38602   (exit $ac_status); } &&
38603          { ac_try='test -s conftest.$ac_objext'
38604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38605   (eval $ac_try) 2>&5
38606   ac_status=$?
38607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38608   (exit $ac_status); }; }; then
38609   ac_header_compiler=yes
38610 else
38611   echo "$as_me: failed program was:" >&5
38612 sed 's/^/| /' conftest.$ac_ext >&5
38613
38614 ac_header_compiler=no
38615 fi
38616 rm -f conftest.$ac_objext conftest.$ac_ext
38617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38618 echo "${ECHO_T}$ac_header_compiler" >&6
38619
38620 # Is the header present?
38621 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
38622 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
38623 cat >conftest.$ac_ext <<_ACEOF
38624 /* confdefs.h.  */
38625 _ACEOF
38626 cat confdefs.h >>conftest.$ac_ext
38627 cat >>conftest.$ac_ext <<_ACEOF
38628 /* end confdefs.h.  */
38629 #include <sys/dg_sys_info.h>
38630 _ACEOF
38631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38632   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38633   ac_status=$?
38634   grep -v '^ *+' conftest.er1 >conftest.err
38635   rm -f conftest.er1
38636   cat conftest.err >&5
38637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38638   (exit $ac_status); } >/dev/null; then
38639   if test -s conftest.err; then
38640     ac_cpp_err=$ac_c_preproc_warn_flag
38641   else
38642     ac_cpp_err=
38643   fi
38644 else
38645   ac_cpp_err=yes
38646 fi
38647 if test -z "$ac_cpp_err"; then
38648   ac_header_preproc=yes
38649 else
38650   echo "$as_me: failed program was:" >&5
38651 sed 's/^/| /' conftest.$ac_ext >&5
38652
38653   ac_header_preproc=no
38654 fi
38655 rm -f conftest.err conftest.$ac_ext
38656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38657 echo "${ECHO_T}$ac_header_preproc" >&6
38658
38659 # So?  What about this header?
38660 case $ac_header_compiler:$ac_header_preproc in
38661   yes:no )
38662     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
38663 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38664     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
38665 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
38666     ac_header_preproc=yes
38667     ;;
38668   no:yes )
38669     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
38670 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
38671     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&5
38672 echo "$as_me: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&2;}
38673     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
38674 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
38675     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&5
38676 echo "$as_me: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&2;}
38677     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
38678 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
38679     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
38680 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
38681     (
38682       cat <<\_ASBOX
38683 ## ------------------------------------ ##
38684 ## Report this to bug-coreutils@gnu.org ##
38685 ## ------------------------------------ ##
38686 _ASBOX
38687     ) |
38688       sed "s/^/$as_me: WARNING:     /" >&2
38689     ;;
38690 esac
38691 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
38692 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
38693 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
38694   echo $ECHO_N "(cached) $ECHO_C" >&6
38695 else
38696   ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
38697 fi
38698 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
38699 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
38700
38701 fi
38702 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
38703   ac_have_func=yes
38704
38705 cat >>confdefs.h <<\_ACEOF
38706 #define DGUX 1
38707 _ACEOF
38708
38709
38710 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
38711 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
38712 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
38713   echo $ECHO_N "(cached) $ECHO_C" >&6
38714 else
38715   ac_check_lib_save_LIBS=$LIBS
38716 LIBS="-ldgc  $LIBS"
38717 cat >conftest.$ac_ext <<_ACEOF
38718 /* confdefs.h.  */
38719 _ACEOF
38720 cat confdefs.h >>conftest.$ac_ext
38721 cat >>conftest.$ac_ext <<_ACEOF
38722 /* end confdefs.h.  */
38723
38724 /* Override any gcc2 internal prototype to avoid an error.  */
38725 #ifdef __cplusplus
38726 extern "C"
38727 #endif
38728 /* We use char because int might match the return type of a gcc2
38729    builtin and then its argument prototype would still apply.  */
38730 char dg_sys_info ();
38731 int
38732 main ()
38733 {
38734 dg_sys_info ();
38735   ;
38736   return 0;
38737 }
38738 _ACEOF
38739 rm -f conftest.$ac_objext conftest$ac_exeext
38740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38741   (eval $ac_link) 2>&5
38742   ac_status=$?
38743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38744   (exit $ac_status); } &&
38745          { ac_try='test -s conftest$ac_exeext'
38746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38747   (eval $ac_try) 2>&5
38748   ac_status=$?
38749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38750   (exit $ac_status); }; }; then
38751   ac_cv_lib_dgc_dg_sys_info=yes
38752 else
38753   echo "$as_me: failed program was:" >&5
38754 sed 's/^/| /' conftest.$ac_ext >&5
38755
38756 ac_cv_lib_dgc_dg_sys_info=no
38757 fi
38758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38759 LIBS=$ac_check_lib_save_LIBS
38760 fi
38761 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
38762 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
38763 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
38764   cat >>confdefs.h <<_ACEOF
38765 #define HAVE_LIBDGC 1
38766 _ACEOF
38767
38768   LIBS="-ldgc $LIBS"
38769
38770 fi
38771
38772 fi
38773
38774
38775
38776 if test "${ac_cv_header_locale_h+set}" = set; then
38777   echo "$as_me:$LINENO: checking for locale.h" >&5
38778 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
38779 if test "${ac_cv_header_locale_h+set}" = set; then
38780   echo $ECHO_N "(cached) $ECHO_C" >&6
38781 fi
38782 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
38783 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
38784 else
38785   # Is the header compilable?
38786 echo "$as_me:$LINENO: checking locale.h usability" >&5
38787 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
38788 cat >conftest.$ac_ext <<_ACEOF
38789 /* confdefs.h.  */
38790 _ACEOF
38791 cat confdefs.h >>conftest.$ac_ext
38792 cat >>conftest.$ac_ext <<_ACEOF
38793 /* end confdefs.h.  */
38794 $ac_includes_default
38795 #include <locale.h>
38796 _ACEOF
38797 rm -f conftest.$ac_objext
38798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38799   (eval $ac_compile) 2>&5
38800   ac_status=$?
38801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38802   (exit $ac_status); } &&
38803          { ac_try='test -s conftest.$ac_objext'
38804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38805   (eval $ac_try) 2>&5
38806   ac_status=$?
38807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38808   (exit $ac_status); }; }; then
38809   ac_header_compiler=yes
38810 else
38811   echo "$as_me: failed program was:" >&5
38812 sed 's/^/| /' conftest.$ac_ext >&5
38813
38814 ac_header_compiler=no
38815 fi
38816 rm -f conftest.$ac_objext conftest.$ac_ext
38817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38818 echo "${ECHO_T}$ac_header_compiler" >&6
38819
38820 # Is the header present?
38821 echo "$as_me:$LINENO: checking locale.h presence" >&5
38822 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
38823 cat >conftest.$ac_ext <<_ACEOF
38824 /* confdefs.h.  */
38825 _ACEOF
38826 cat confdefs.h >>conftest.$ac_ext
38827 cat >>conftest.$ac_ext <<_ACEOF
38828 /* end confdefs.h.  */
38829 #include <locale.h>
38830 _ACEOF
38831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38832   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38833   ac_status=$?
38834   grep -v '^ *+' conftest.er1 >conftest.err
38835   rm -f conftest.er1
38836   cat conftest.err >&5
38837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38838   (exit $ac_status); } >/dev/null; then
38839   if test -s conftest.err; then
38840     ac_cpp_err=$ac_c_preproc_warn_flag
38841   else
38842     ac_cpp_err=
38843   fi
38844 else
38845   ac_cpp_err=yes
38846 fi
38847 if test -z "$ac_cpp_err"; then
38848   ac_header_preproc=yes
38849 else
38850   echo "$as_me: failed program was:" >&5
38851 sed 's/^/| /' conftest.$ac_ext >&5
38852
38853   ac_header_preproc=no
38854 fi
38855 rm -f conftest.err conftest.$ac_ext
38856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38857 echo "${ECHO_T}$ac_header_preproc" >&6
38858
38859 # So?  What about this header?
38860 case $ac_header_compiler:$ac_header_preproc in
38861   yes:no )
38862     { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
38863 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38864     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
38865 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
38866     ac_header_preproc=yes
38867     ;;
38868   no:yes )
38869     { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
38870 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
38871     { echo "$as_me:$LINENO: WARNING: locale.h:     check for missing prerequisite headers?" >&5
38872 echo "$as_me: WARNING: locale.h:     check for missing prerequisite headers?" >&2;}
38873     { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
38874 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
38875     { echo "$as_me:$LINENO: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&5
38876 echo "$as_me: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&2;}
38877     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
38878 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
38879     { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
38880 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
38881     (
38882       cat <<\_ASBOX
38883 ## ------------------------------------ ##
38884 ## Report this to bug-coreutils@gnu.org ##
38885 ## ------------------------------------ ##
38886 _ASBOX
38887     ) |
38888       sed "s/^/$as_me: WARNING:     /" >&2
38889     ;;
38890 esac
38891 echo "$as_me:$LINENO: checking for locale.h" >&5
38892 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
38893 if test "${ac_cv_header_locale_h+set}" = set; then
38894   echo $ECHO_N "(cached) $ECHO_C" >&6
38895 else
38896   ac_cv_header_locale_h=$ac_header_preproc
38897 fi
38898 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
38899 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
38900
38901 fi
38902
38903
38904
38905 for ac_func in setlocale
38906 do
38907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38908 echo "$as_me:$LINENO: checking for $ac_func" >&5
38909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38910 if eval "test \"\${$as_ac_var+set}\" = set"; then
38911   echo $ECHO_N "(cached) $ECHO_C" >&6
38912 else
38913   cat >conftest.$ac_ext <<_ACEOF
38914 /* confdefs.h.  */
38915 _ACEOF
38916 cat confdefs.h >>conftest.$ac_ext
38917 cat >>conftest.$ac_ext <<_ACEOF
38918 /* end confdefs.h.  */
38919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38920    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38921 #define $ac_func innocuous_$ac_func
38922
38923 /* System header to define __stub macros and hopefully few prototypes,
38924     which can conflict with char $ac_func (); below.
38925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38926     <limits.h> exists even on freestanding compilers.  */
38927
38928 #ifdef __STDC__
38929 # include <limits.h>
38930 #else
38931 # include <assert.h>
38932 #endif
38933
38934 #undef $ac_func
38935
38936 /* Override any gcc2 internal prototype to avoid an error.  */
38937 #ifdef __cplusplus
38938 extern "C"
38939 {
38940 #endif
38941 /* We use char because int might match the return type of a gcc2
38942    builtin and then its argument prototype would still apply.  */
38943 char $ac_func ();
38944 /* The GNU C library defines this for functions which it implements
38945     to always fail with ENOSYS.  Some functions are actually named
38946     something starting with __ and the normal name is an alias.  */
38947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38948 choke me
38949 #else
38950 char (*f) () = $ac_func;
38951 #endif
38952 #ifdef __cplusplus
38953 }
38954 #endif
38955
38956 int
38957 main ()
38958 {
38959 return f != $ac_func;
38960   ;
38961   return 0;
38962 }
38963 _ACEOF
38964 rm -f conftest.$ac_objext conftest$ac_exeext
38965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38966   (eval $ac_link) 2>&5
38967   ac_status=$?
38968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38969   (exit $ac_status); } &&
38970          { ac_try='test -s conftest$ac_exeext'
38971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38972   (eval $ac_try) 2>&5
38973   ac_status=$?
38974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38975   (exit $ac_status); }; }; then
38976   eval "$as_ac_var=yes"
38977 else
38978   echo "$as_me: failed program was:" >&5
38979 sed 's/^/| /' conftest.$ac_ext >&5
38980
38981 eval "$as_ac_var=no"
38982 fi
38983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38984 fi
38985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38987 if test `eval echo '${'$as_ac_var'}'` = yes; then
38988   cat >>confdefs.h <<_ACEOF
38989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38990 _ACEOF
38991
38992 fi
38993 done
38994
38995
38996 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
38997 # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
38998 # Irix 4.0.5F has the header but not the library.
38999 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
39000   ac_have_func=yes
39001
39002 cat >>confdefs.h <<\_ACEOF
39003 #define SVR4 1
39004 _ACEOF
39005
39006 fi
39007
39008 if test $ac_have_func = no; then
39009   if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
39010   echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
39011 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
39012 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
39013   echo $ECHO_N "(cached) $ECHO_C" >&6
39014 fi
39015 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
39016 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
39017 else
39018   # Is the header compilable?
39019 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
39020 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
39021 cat >conftest.$ac_ext <<_ACEOF
39022 /* confdefs.h.  */
39023 _ACEOF
39024 cat confdefs.h >>conftest.$ac_ext
39025 cat >>conftest.$ac_ext <<_ACEOF
39026 /* end confdefs.h.  */
39027 $ac_includes_default
39028 #include <inq_stats/cpustats.h>
39029 _ACEOF
39030 rm -f conftest.$ac_objext
39031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39032   (eval $ac_compile) 2>&5
39033   ac_status=$?
39034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39035   (exit $ac_status); } &&
39036          { ac_try='test -s conftest.$ac_objext'
39037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39038   (eval $ac_try) 2>&5
39039   ac_status=$?
39040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39041   (exit $ac_status); }; }; then
39042   ac_header_compiler=yes
39043 else
39044   echo "$as_me: failed program was:" >&5
39045 sed 's/^/| /' conftest.$ac_ext >&5
39046
39047 ac_header_compiler=no
39048 fi
39049 rm -f conftest.$ac_objext conftest.$ac_ext
39050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39051 echo "${ECHO_T}$ac_header_compiler" >&6
39052
39053 # Is the header present?
39054 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
39055 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
39056 cat >conftest.$ac_ext <<_ACEOF
39057 /* confdefs.h.  */
39058 _ACEOF
39059 cat confdefs.h >>conftest.$ac_ext
39060 cat >>conftest.$ac_ext <<_ACEOF
39061 /* end confdefs.h.  */
39062 #include <inq_stats/cpustats.h>
39063 _ACEOF
39064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39065   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39066   ac_status=$?
39067   grep -v '^ *+' conftest.er1 >conftest.err
39068   rm -f conftest.er1
39069   cat conftest.err >&5
39070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39071   (exit $ac_status); } >/dev/null; then
39072   if test -s conftest.err; then
39073     ac_cpp_err=$ac_c_preproc_warn_flag
39074   else
39075     ac_cpp_err=
39076   fi
39077 else
39078   ac_cpp_err=yes
39079 fi
39080 if test -z "$ac_cpp_err"; then
39081   ac_header_preproc=yes
39082 else
39083   echo "$as_me: failed program was:" >&5
39084 sed 's/^/| /' conftest.$ac_ext >&5
39085
39086   ac_header_preproc=no
39087 fi
39088 rm -f conftest.err conftest.$ac_ext
39089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39090 echo "${ECHO_T}$ac_header_preproc" >&6
39091
39092 # So?  What about this header?
39093 case $ac_header_compiler:$ac_header_preproc in
39094   yes:no )
39095     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
39096 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39097     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
39098 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
39099     ac_header_preproc=yes
39100     ;;
39101   no:yes )
39102     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
39103 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
39104     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&5
39105 echo "$as_me: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&2;}
39106     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
39107 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
39108     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
39109 echo "$as_me: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
39110     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
39111 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
39112     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
39113 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
39114     (
39115       cat <<\_ASBOX
39116 ## ------------------------------------ ##
39117 ## Report this to bug-coreutils@gnu.org ##
39118 ## ------------------------------------ ##
39119 _ASBOX
39120     ) |
39121       sed "s/^/$as_me: WARNING:     /" >&2
39122     ;;
39123 esac
39124 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
39125 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
39126 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
39127   echo $ECHO_N "(cached) $ECHO_C" >&6
39128 else
39129   ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
39130 fi
39131 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
39132 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
39133
39134 fi
39135 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
39136   ac_have_func=yes
39137
39138 cat >>confdefs.h <<\_ACEOF
39139 #define UMAX 1
39140 _ACEOF
39141
39142
39143 cat >>confdefs.h <<\_ACEOF
39144 #define UMAX4_3 1
39145 _ACEOF
39146
39147 fi
39148
39149
39150 fi
39151
39152 if test $ac_have_func = no; then
39153   if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
39154   echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
39155 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
39156 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
39157   echo $ECHO_N "(cached) $ECHO_C" >&6
39158 fi
39159 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
39160 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
39161 else
39162   # Is the header compilable?
39163 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
39164 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
39165 cat >conftest.$ac_ext <<_ACEOF
39166 /* confdefs.h.  */
39167 _ACEOF
39168 cat confdefs.h >>conftest.$ac_ext
39169 cat >>conftest.$ac_ext <<_ACEOF
39170 /* end confdefs.h.  */
39171 $ac_includes_default
39172 #include <sys/cpustats.h>
39173 _ACEOF
39174 rm -f conftest.$ac_objext
39175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39176   (eval $ac_compile) 2>&5
39177   ac_status=$?
39178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39179   (exit $ac_status); } &&
39180          { ac_try='test -s conftest.$ac_objext'
39181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39182   (eval $ac_try) 2>&5
39183   ac_status=$?
39184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39185   (exit $ac_status); }; }; then
39186   ac_header_compiler=yes
39187 else
39188   echo "$as_me: failed program was:" >&5
39189 sed 's/^/| /' conftest.$ac_ext >&5
39190
39191 ac_header_compiler=no
39192 fi
39193 rm -f conftest.$ac_objext conftest.$ac_ext
39194 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39195 echo "${ECHO_T}$ac_header_compiler" >&6
39196
39197 # Is the header present?
39198 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
39199 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
39200 cat >conftest.$ac_ext <<_ACEOF
39201 /* confdefs.h.  */
39202 _ACEOF
39203 cat confdefs.h >>conftest.$ac_ext
39204 cat >>conftest.$ac_ext <<_ACEOF
39205 /* end confdefs.h.  */
39206 #include <sys/cpustats.h>
39207 _ACEOF
39208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39209   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39210   ac_status=$?
39211   grep -v '^ *+' conftest.er1 >conftest.err
39212   rm -f conftest.er1
39213   cat conftest.err >&5
39214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39215   (exit $ac_status); } >/dev/null; then
39216   if test -s conftest.err; then
39217     ac_cpp_err=$ac_c_preproc_warn_flag
39218   else
39219     ac_cpp_err=
39220   fi
39221 else
39222   ac_cpp_err=yes
39223 fi
39224 if test -z "$ac_cpp_err"; then
39225   ac_header_preproc=yes
39226 else
39227   echo "$as_me: failed program was:" >&5
39228 sed 's/^/| /' conftest.$ac_ext >&5
39229
39230   ac_header_preproc=no
39231 fi
39232 rm -f conftest.err conftest.$ac_ext
39233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39234 echo "${ECHO_T}$ac_header_preproc" >&6
39235
39236 # So?  What about this header?
39237 case $ac_header_compiler:$ac_header_preproc in
39238   yes:no )
39239     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
39240 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39241     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
39242 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
39243     ac_header_preproc=yes
39244     ;;
39245   no:yes )
39246     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
39247 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
39248     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&5
39249 echo "$as_me: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&2;}
39250     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
39251 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
39252     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
39253 echo "$as_me: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
39254     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
39255 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
39256     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
39257 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
39258     (
39259       cat <<\_ASBOX
39260 ## ------------------------------------ ##
39261 ## Report this to bug-coreutils@gnu.org ##
39262 ## ------------------------------------ ##
39263 _ASBOX
39264     ) |
39265       sed "s/^/$as_me: WARNING:     /" >&2
39266     ;;
39267 esac
39268 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
39269 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
39270 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
39271   echo $ECHO_N "(cached) $ECHO_C" >&6
39272 else
39273   ac_cv_header_sys_cpustats_h=$ac_header_preproc
39274 fi
39275 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
39276 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
39277
39278 fi
39279 if test $ac_cv_header_sys_cpustats_h = yes; then
39280   ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
39281 #define UMAX 1
39282 _ACEOF
39283
39284 fi
39285
39286
39287 fi
39288
39289 if test $ac_have_func = no; then
39290
39291 for ac_header in mach/mach.h
39292 do
39293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39295   echo "$as_me:$LINENO: checking for $ac_header" >&5
39296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39298   echo $ECHO_N "(cached) $ECHO_C" >&6
39299 fi
39300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39302 else
39303   # Is the header compilable?
39304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39306 cat >conftest.$ac_ext <<_ACEOF
39307 /* confdefs.h.  */
39308 _ACEOF
39309 cat confdefs.h >>conftest.$ac_ext
39310 cat >>conftest.$ac_ext <<_ACEOF
39311 /* end confdefs.h.  */
39312 $ac_includes_default
39313 #include <$ac_header>
39314 _ACEOF
39315 rm -f conftest.$ac_objext
39316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39317   (eval $ac_compile) 2>&5
39318   ac_status=$?
39319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39320   (exit $ac_status); } &&
39321          { ac_try='test -s conftest.$ac_objext'
39322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39323   (eval $ac_try) 2>&5
39324   ac_status=$?
39325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39326   (exit $ac_status); }; }; then
39327   ac_header_compiler=yes
39328 else
39329   echo "$as_me: failed program was:" >&5
39330 sed 's/^/| /' conftest.$ac_ext >&5
39331
39332 ac_header_compiler=no
39333 fi
39334 rm -f conftest.$ac_objext conftest.$ac_ext
39335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39336 echo "${ECHO_T}$ac_header_compiler" >&6
39337
39338 # Is the header present?
39339 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39341 cat >conftest.$ac_ext <<_ACEOF
39342 /* confdefs.h.  */
39343 _ACEOF
39344 cat confdefs.h >>conftest.$ac_ext
39345 cat >>conftest.$ac_ext <<_ACEOF
39346 /* end confdefs.h.  */
39347 #include <$ac_header>
39348 _ACEOF
39349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39350   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39351   ac_status=$?
39352   grep -v '^ *+' conftest.er1 >conftest.err
39353   rm -f conftest.er1
39354   cat conftest.err >&5
39355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39356   (exit $ac_status); } >/dev/null; then
39357   if test -s conftest.err; then
39358     ac_cpp_err=$ac_c_preproc_warn_flag
39359   else
39360     ac_cpp_err=
39361   fi
39362 else
39363   ac_cpp_err=yes
39364 fi
39365 if test -z "$ac_cpp_err"; then
39366   ac_header_preproc=yes
39367 else
39368   echo "$as_me: failed program was:" >&5
39369 sed 's/^/| /' conftest.$ac_ext >&5
39370
39371   ac_header_preproc=no
39372 fi
39373 rm -f conftest.err conftest.$ac_ext
39374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39375 echo "${ECHO_T}$ac_header_preproc" >&6
39376
39377 # So?  What about this header?
39378 case $ac_header_compiler:$ac_header_preproc in
39379   yes:no )
39380     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39384     ac_header_preproc=yes
39385     ;;
39386   no:yes )
39387     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39389     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39390 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39391     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39393     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39394 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39397     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39399     (
39400       cat <<\_ASBOX
39401 ## ------------------------------------ ##
39402 ## Report this to bug-coreutils@gnu.org ##
39403 ## ------------------------------------ ##
39404 _ASBOX
39405     ) |
39406       sed "s/^/$as_me: WARNING:     /" >&2
39407     ;;
39408 esac
39409 echo "$as_me:$LINENO: checking for $ac_header" >&5
39410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39412   echo $ECHO_N "(cached) $ECHO_C" >&6
39413 else
39414   eval "$as_ac_Header=\$ac_header_preproc"
39415 fi
39416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39418
39419 fi
39420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39421   cat >>confdefs.h <<_ACEOF
39422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39423 _ACEOF
39424
39425 fi
39426
39427 done
39428
39429 fi
39430
39431
39432 for ac_header in nlist.h
39433 do
39434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39436   echo "$as_me:$LINENO: checking for $ac_header" >&5
39437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39439   echo $ECHO_N "(cached) $ECHO_C" >&6
39440 fi
39441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39443 else
39444   # Is the header compilable?
39445 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39447 cat >conftest.$ac_ext <<_ACEOF
39448 /* confdefs.h.  */
39449 _ACEOF
39450 cat confdefs.h >>conftest.$ac_ext
39451 cat >>conftest.$ac_ext <<_ACEOF
39452 /* end confdefs.h.  */
39453 $ac_includes_default
39454 #include <$ac_header>
39455 _ACEOF
39456 rm -f conftest.$ac_objext
39457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39458   (eval $ac_compile) 2>&5
39459   ac_status=$?
39460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39461   (exit $ac_status); } &&
39462          { ac_try='test -s conftest.$ac_objext'
39463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39464   (eval $ac_try) 2>&5
39465   ac_status=$?
39466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39467   (exit $ac_status); }; }; then
39468   ac_header_compiler=yes
39469 else
39470   echo "$as_me: failed program was:" >&5
39471 sed 's/^/| /' conftest.$ac_ext >&5
39472
39473 ac_header_compiler=no
39474 fi
39475 rm -f conftest.$ac_objext conftest.$ac_ext
39476 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39477 echo "${ECHO_T}$ac_header_compiler" >&6
39478
39479 # Is the header present?
39480 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39482 cat >conftest.$ac_ext <<_ACEOF
39483 /* confdefs.h.  */
39484 _ACEOF
39485 cat confdefs.h >>conftest.$ac_ext
39486 cat >>conftest.$ac_ext <<_ACEOF
39487 /* end confdefs.h.  */
39488 #include <$ac_header>
39489 _ACEOF
39490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39491   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39492   ac_status=$?
39493   grep -v '^ *+' conftest.er1 >conftest.err
39494   rm -f conftest.er1
39495   cat conftest.err >&5
39496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39497   (exit $ac_status); } >/dev/null; then
39498   if test -s conftest.err; then
39499     ac_cpp_err=$ac_c_preproc_warn_flag
39500   else
39501     ac_cpp_err=
39502   fi
39503 else
39504   ac_cpp_err=yes
39505 fi
39506 if test -z "$ac_cpp_err"; then
39507   ac_header_preproc=yes
39508 else
39509   echo "$as_me: failed program was:" >&5
39510 sed 's/^/| /' conftest.$ac_ext >&5
39511
39512   ac_header_preproc=no
39513 fi
39514 rm -f conftest.err conftest.$ac_ext
39515 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39516 echo "${ECHO_T}$ac_header_preproc" >&6
39517
39518 # So?  What about this header?
39519 case $ac_header_compiler:$ac_header_preproc in
39520   yes:no )
39521     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39525     ac_header_preproc=yes
39526     ;;
39527   no:yes )
39528     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39530     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39531 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39532     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39534     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39535 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39538     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39540     (
39541       cat <<\_ASBOX
39542 ## ------------------------------------ ##
39543 ## Report this to bug-coreutils@gnu.org ##
39544 ## ------------------------------------ ##
39545 _ASBOX
39546     ) |
39547       sed "s/^/$as_me: WARNING:     /" >&2
39548     ;;
39549 esac
39550 echo "$as_me:$LINENO: checking for $ac_header" >&5
39551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39553   echo $ECHO_N "(cached) $ECHO_C" >&6
39554 else
39555   eval "$as_ac_Header=\$ac_header_preproc"
39556 fi
39557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39559
39560 fi
39561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39562   cat >>confdefs.h <<_ACEOF
39563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39564 _ACEOF
39565  echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
39566 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
39567 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
39568   echo $ECHO_N "(cached) $ECHO_C" >&6
39569 else
39570   cat >conftest.$ac_ext <<_ACEOF
39571 /* confdefs.h.  */
39572 _ACEOF
39573 cat confdefs.h >>conftest.$ac_ext
39574 cat >>conftest.$ac_ext <<_ACEOF
39575 /* end confdefs.h.  */
39576 #include <nlist.h>
39577
39578 int
39579 main ()
39580 {
39581 static struct nlist ac_aggr;
39582 if (ac_aggr.n_un.n_name)
39583 return 0;
39584   ;
39585   return 0;
39586 }
39587 _ACEOF
39588 rm -f conftest.$ac_objext
39589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39590   (eval $ac_compile) 2>&5
39591   ac_status=$?
39592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39593   (exit $ac_status); } &&
39594          { ac_try='test -s conftest.$ac_objext'
39595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39596   (eval $ac_try) 2>&5
39597   ac_status=$?
39598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39599   (exit $ac_status); }; }; then
39600   ac_cv_member_struct_nlist_n_un_n_name=yes
39601 else
39602   echo "$as_me: failed program was:" >&5
39603 sed 's/^/| /' conftest.$ac_ext >&5
39604
39605 cat >conftest.$ac_ext <<_ACEOF
39606 /* confdefs.h.  */
39607 _ACEOF
39608 cat confdefs.h >>conftest.$ac_ext
39609 cat >>conftest.$ac_ext <<_ACEOF
39610 /* end confdefs.h.  */
39611 #include <nlist.h>
39612
39613 int
39614 main ()
39615 {
39616 static struct nlist ac_aggr;
39617 if (sizeof ac_aggr.n_un.n_name)
39618 return 0;
39619   ;
39620   return 0;
39621 }
39622 _ACEOF
39623 rm -f conftest.$ac_objext
39624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39625   (eval $ac_compile) 2>&5
39626   ac_status=$?
39627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39628   (exit $ac_status); } &&
39629          { ac_try='test -s conftest.$ac_objext'
39630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39631   (eval $ac_try) 2>&5
39632   ac_status=$?
39633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39634   (exit $ac_status); }; }; then
39635   ac_cv_member_struct_nlist_n_un_n_name=yes
39636 else
39637   echo "$as_me: failed program was:" >&5
39638 sed 's/^/| /' conftest.$ac_ext >&5
39639
39640 ac_cv_member_struct_nlist_n_un_n_name=no
39641 fi
39642 rm -f conftest.$ac_objext conftest.$ac_ext
39643 fi
39644 rm -f conftest.$ac_objext conftest.$ac_ext
39645 fi
39646 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
39647 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
39648 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
39649
39650 cat >>confdefs.h <<_ACEOF
39651 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
39652 _ACEOF
39653
39654
39655 cat >>confdefs.h <<\_ACEOF
39656 #define NLIST_NAME_UNION 1
39657 _ACEOF
39658
39659 fi
39660
39661
39662 fi
39663
39664 done
39665
39666 fi
39667 done
39668
39669
39670 # Some definitions of getloadavg require that the program be installed setgid.
39671 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
39672 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
39673 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
39674   echo $ECHO_N "(cached) $ECHO_C" >&6
39675 else
39676   cat >conftest.$ac_ext <<_ACEOF
39677 /* confdefs.h.  */
39678 _ACEOF
39679 cat confdefs.h >>conftest.$ac_ext
39680 cat >>conftest.$ac_ext <<_ACEOF
39681 /* end confdefs.h.  */
39682 #include "$ac_lib_dir_getloadavg/getloadavg.c"
39683 #ifdef LDAV_PRIVILEGED
39684 Yowza Am I SETGID yet
39685 #endif
39686 _ACEOF
39687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39688   $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
39689   ac_cv_func_getloadavg_setgid=yes
39690 else
39691   ac_cv_func_getloadavg_setgid=no
39692 fi
39693 rm -f conftest*
39694
39695 fi
39696 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
39697 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
39698 if test $ac_cv_func_getloadavg_setgid = yes; then
39699   NEED_SETGID=true
39700
39701 cat >>confdefs.h <<\_ACEOF
39702 #define GETLOADAVG_PRIVILEGED 1
39703 _ACEOF
39704
39705 else
39706   NEED_SETGID=false
39707 fi
39708
39709 if test $ac_cv_func_getloadavg_setgid = yes; then
39710   echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
39711 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
39712 if test "${ac_cv_group_kmem+set}" = set; then
39713   echo $ECHO_N "(cached) $ECHO_C" >&6
39714 else
39715    # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
39716   ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
39717   # If we got an error (system does not support symlinks), try without -L.
39718   test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
39719   ac_cv_group_kmem=`echo $ac_ls_output \
39720     | sed -ne 's/[       ][      ]*/ /g;
39721                s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
39722                / /s/.* //;p;'`
39723
39724 fi
39725 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
39726 echo "${ECHO_T}$ac_cv_group_kmem" >&6
39727   KMEM_GROUP=$ac_cv_group_kmem
39728 fi
39729 if test "x$ac_save_LIBS" = x; then
39730   GETLOADAVG_LIBS=$LIBS
39731 else
39732   GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
39733 fi
39734 LIBS=$ac_save_LIBS
39735
39736
39737
39738
39739
39740
39741   # raise is used by at least sort and ls.
39742
39743 for ac_func in raise
39744 do
39745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39746 echo "$as_me:$LINENO: checking for $ac_func" >&5
39747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39748 if eval "test \"\${$as_ac_var+set}\" = set"; then
39749   echo $ECHO_N "(cached) $ECHO_C" >&6
39750 else
39751   cat >conftest.$ac_ext <<_ACEOF
39752 /* confdefs.h.  */
39753 _ACEOF
39754 cat confdefs.h >>conftest.$ac_ext
39755 cat >>conftest.$ac_ext <<_ACEOF
39756 /* end confdefs.h.  */
39757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39759 #define $ac_func innocuous_$ac_func
39760
39761 /* System header to define __stub macros and hopefully few prototypes,
39762     which can conflict with char $ac_func (); below.
39763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39764     <limits.h> exists even on freestanding compilers.  */
39765
39766 #ifdef __STDC__
39767 # include <limits.h>
39768 #else
39769 # include <assert.h>
39770 #endif
39771
39772 #undef $ac_func
39773
39774 /* Override any gcc2 internal prototype to avoid an error.  */
39775 #ifdef __cplusplus
39776 extern "C"
39777 {
39778 #endif
39779 /* We use char because int might match the return type of a gcc2
39780    builtin and then its argument prototype would still apply.  */
39781 char $ac_func ();
39782 /* The GNU C library defines this for functions which it implements
39783     to always fail with ENOSYS.  Some functions are actually named
39784     something starting with __ and the normal name is an alias.  */
39785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39786 choke me
39787 #else
39788 char (*f) () = $ac_func;
39789 #endif
39790 #ifdef __cplusplus
39791 }
39792 #endif
39793
39794 int
39795 main ()
39796 {
39797 return f != $ac_func;
39798   ;
39799   return 0;
39800 }
39801 _ACEOF
39802 rm -f conftest.$ac_objext conftest$ac_exeext
39803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39804   (eval $ac_link) 2>&5
39805   ac_status=$?
39806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39807   (exit $ac_status); } &&
39808          { ac_try='test -s conftest$ac_exeext'
39809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39810   (eval $ac_try) 2>&5
39811   ac_status=$?
39812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39813   (exit $ac_status); }; }; then
39814   eval "$as_ac_var=yes"
39815 else
39816   echo "$as_me: failed program was:" >&5
39817 sed 's/^/| /' conftest.$ac_ext >&5
39818
39819 eval "$as_ac_var=no"
39820 fi
39821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39822 fi
39823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39825 if test `eval echo '${'$as_ac_var'}'` = yes; then
39826   cat >>confdefs.h <<_ACEOF
39827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39828 _ACEOF
39829
39830 else
39831   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
39832 fi
39833 done
39834
39835
39836
39837   # By default, argmatch should fail calling usage (1).
39838
39839 cat >>confdefs.h <<\_ACEOF
39840 #define ARGMATCH_DIE usage (1)
39841 _ACEOF
39842
39843
39844 cat >>confdefs.h <<\_ACEOF
39845 #define ARGMATCH_DIE_DECL extern void usage ()
39846 _ACEOF
39847
39848
39849         echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
39850 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
39851 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
39852   echo $ECHO_N "(cached) $ECHO_C" >&6
39853 else
39854   ac_cv_func_setvbuf_reversed=no
39855    cat >conftest.$ac_ext <<_ACEOF
39856 /* confdefs.h.  */
39857 _ACEOF
39858 cat confdefs.h >>conftest.$ac_ext
39859 cat >>conftest.$ac_ext <<_ACEOF
39860 /* end confdefs.h.  */
39861 #include <stdio.h>
39862 #         if PROTOTYPES
39863            int (setvbuf) (FILE *, int, char *, size_t);
39864 #         endif
39865 int
39866 main ()
39867 {
39868 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
39869   ;
39870   return 0;
39871 }
39872 _ACEOF
39873 rm -f conftest.$ac_objext conftest$ac_exeext
39874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39875   (eval $ac_link) 2>&5
39876   ac_status=$?
39877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39878   (exit $ac_status); } &&
39879          { ac_try='test -s conftest$ac_exeext'
39880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39881   (eval $ac_try) 2>&5
39882   ac_status=$?
39883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39884   (exit $ac_status); }; }; then
39885   cat >conftest.$ac_ext <<_ACEOF
39886 /* confdefs.h.  */
39887 _ACEOF
39888 cat confdefs.h >>conftest.$ac_ext
39889 cat >>conftest.$ac_ext <<_ACEOF
39890 /* end confdefs.h.  */
39891 #include <stdio.h>
39892 #            if PROTOTYPES
39893               int (setvbuf) (FILE *, int, char *, size_t);
39894 #            endif
39895 int
39896 main ()
39897 {
39898 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
39899   ;
39900   return 0;
39901 }
39902 _ACEOF
39903 rm -f conftest.$ac_objext conftest$ac_exeext
39904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39905   (eval $ac_link) 2>&5
39906   ac_status=$?
39907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39908   (exit $ac_status); } &&
39909          { ac_try='test -s conftest$ac_exeext'
39910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39911   (eval $ac_try) 2>&5
39912   ac_status=$?
39913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39914   (exit $ac_status); }; }; then
39915   # It compiles and links either way, so it must not be declared
39916          # with a prototype and most likely this is a K&R C compiler.
39917          # Try running it.
39918          if test "$cross_compiling" = yes; then
39919   : # Assume setvbuf is not reversed when cross-compiling.
39920 else
39921   cat >conftest.$ac_ext <<_ACEOF
39922 /* confdefs.h.  */
39923 _ACEOF
39924 cat confdefs.h >>conftest.$ac_ext
39925 cat >>conftest.$ac_ext <<_ACEOF
39926 /* end confdefs.h.  */
39927 #include <stdio.h>
39928 int
39929 main ()
39930 {
39931 /* This call has the arguments reversed.
39932                    A reversed system may check and see that the address of buf
39933                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
39934                 char buf;
39935                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
39936                   exit (1);
39937                 putchar ('\r');
39938                 exit (0); /* Non-reversed systems SEGV here.  */
39939   ;
39940   return 0;
39941 }
39942 _ACEOF
39943 rm -f conftest$ac_exeext
39944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39945   (eval $ac_link) 2>&5
39946   ac_status=$?
39947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39948   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39950   (eval $ac_try) 2>&5
39951   ac_status=$?
39952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39953   (exit $ac_status); }; }; then
39954   ac_cv_func_setvbuf_reversed=yes
39955 else
39956   echo "$as_me: program exited with status $ac_status" >&5
39957 echo "$as_me: failed program was:" >&5
39958 sed 's/^/| /' conftest.$ac_ext >&5
39959
39960 ( exit $ac_status )
39961 rm -f core core.* *.core
39962 fi
39963 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39964 fi
39965         ac_cv_func_setvbuf_reversed=yes
39966 else
39967   echo "$as_me: failed program was:" >&5
39968 sed 's/^/| /' conftest.$ac_ext >&5
39969
39970 fi
39971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39972 else
39973   echo "$as_me: failed program was:" >&5
39974 sed 's/^/| /' conftest.$ac_ext >&5
39975
39976 fi
39977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39978 fi
39979 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
39980 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
39981 if test $ac_cv_func_setvbuf_reversed = yes; then
39982
39983 cat >>confdefs.h <<\_ACEOF
39984 #define SETVBUF_REVERSED 1
39985 _ACEOF
39986
39987 fi
39988
39989
39990   # used by sleep and shred
39991
39992
39993 for ac_func in gettimeofday
39994 do
39995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39996 echo "$as_me:$LINENO: checking for $ac_func" >&5
39997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39998 if eval "test \"\${$as_ac_var+set}\" = set"; then
39999   echo $ECHO_N "(cached) $ECHO_C" >&6
40000 else
40001   cat >conftest.$ac_ext <<_ACEOF
40002 /* confdefs.h.  */
40003 _ACEOF
40004 cat confdefs.h >>conftest.$ac_ext
40005 cat >>conftest.$ac_ext <<_ACEOF
40006 /* end confdefs.h.  */
40007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40009 #define $ac_func innocuous_$ac_func
40010
40011 /* System header to define __stub macros and hopefully few prototypes,
40012     which can conflict with char $ac_func (); below.
40013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40014     <limits.h> exists even on freestanding compilers.  */
40015
40016 #ifdef __STDC__
40017 # include <limits.h>
40018 #else
40019 # include <assert.h>
40020 #endif
40021
40022 #undef $ac_func
40023
40024 /* Override any gcc2 internal prototype to avoid an error.  */
40025 #ifdef __cplusplus
40026 extern "C"
40027 {
40028 #endif
40029 /* We use char because int might match the return type of a gcc2
40030    builtin and then its argument prototype would still apply.  */
40031 char $ac_func ();
40032 /* The GNU C library defines this for functions which it implements
40033     to always fail with ENOSYS.  Some functions are actually named
40034     something starting with __ and the normal name is an alias.  */
40035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40036 choke me
40037 #else
40038 char (*f) () = $ac_func;
40039 #endif
40040 #ifdef __cplusplus
40041 }
40042 #endif
40043
40044 int
40045 main ()
40046 {
40047 return f != $ac_func;
40048   ;
40049   return 0;
40050 }
40051 _ACEOF
40052 rm -f conftest.$ac_objext conftest$ac_exeext
40053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40054   (eval $ac_link) 2>&5
40055   ac_status=$?
40056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40057   (exit $ac_status); } &&
40058          { ac_try='test -s conftest$ac_exeext'
40059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40060   (eval $ac_try) 2>&5
40061   ac_status=$?
40062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40063   (exit $ac_status); }; }; then
40064   eval "$as_ac_var=yes"
40065 else
40066   echo "$as_me: failed program was:" >&5
40067 sed 's/^/| /' conftest.$ac_ext >&5
40068
40069 eval "$as_ac_var=no"
40070 fi
40071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40072 fi
40073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40075 if test `eval echo '${'$as_ac_var'}'` = yes; then
40076   cat >>confdefs.h <<_ACEOF
40077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40078 _ACEOF
40079
40080 fi
40081 done
40082
40083
40084
40085
40086   :
40087
40088
40089
40090
40091
40092
40093
40094
40095  echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
40096 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6
40097 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
40098   echo $ECHO_N "(cached) $ECHO_C" >&6
40099 else
40100
40101 if test "$cross_compiling" = yes; then
40102          jm_cv_func_gettimeofday_clobber=yes
40103 else
40104   cat >conftest.$ac_ext <<_ACEOF
40105 /* confdefs.h.  */
40106 _ACEOF
40107 cat confdefs.h >>conftest.$ac_ext
40108 cat >>conftest.$ac_ext <<_ACEOF
40109 /* end confdefs.h.  */
40110
40111 #include <stdio.h>
40112 #if HAVE_STRING_H
40113 # include <string.h>
40114 #endif
40115
40116 #if TIME_WITH_SYS_TIME
40117 # include <sys/time.h>
40118 # include <time.h>
40119 #else
40120 # if HAVE_SYS_TIME_H
40121 #  include <sys/time.h>
40122 # else
40123 #  include <time.h>
40124 # endif
40125 #endif
40126
40127 #if HAVE_STDLIB_H
40128 # include <stdlib.h>
40129 #endif
40130
40131 int
40132 main ()
40133 {
40134   time_t t = 0;
40135   struct tm *lt;
40136   struct tm saved_lt;
40137   struct timeval tv;
40138   lt = localtime (&t);
40139   saved_lt = *lt;
40140   gettimeofday (&tv, NULL);
40141   if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
40142     exit (1);
40143
40144   exit (0);
40145 }
40146
40147 _ACEOF
40148 rm -f conftest$ac_exeext
40149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40150   (eval $ac_link) 2>&5
40151   ac_status=$?
40152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40153   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40155   (eval $ac_try) 2>&5
40156   ac_status=$?
40157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40158   (exit $ac_status); }; }; then
40159   jm_cv_func_gettimeofday_clobber=no
40160 else
40161   echo "$as_me: program exited with status $ac_status" >&5
40162 echo "$as_me: failed program was:" >&5
40163 sed 's/^/| /' conftest.$ac_ext >&5
40164
40165 ( exit $ac_status )
40166 jm_cv_func_gettimeofday_clobber=yes
40167 fi
40168 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40169 fi
40170
40171 fi
40172 echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
40173 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6
40174   if test $jm_cv_func_gettimeofday_clobber = yes; then
40175
40176   LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
40177
40178 cat >>confdefs.h <<\_ACEOF
40179 #define gmtime rpl_gmtime
40180 _ACEOF
40181
40182
40183 cat >>confdefs.h <<\_ACEOF
40184 #define localtime rpl_localtime
40185 _ACEOF
40186
40187
40188
40189
40190 cat >>confdefs.h <<\_ACEOF
40191 #define gettimeofday rpl_gettimeofday
40192 _ACEOF
40193
40194
40195 cat >>confdefs.h <<\_ACEOF
40196 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER 1
40197 _ACEOF
40198
40199
40200
40201
40202   fi
40203
40204
40205
40206
40207
40208
40209
40210
40211
40212
40213
40214
40215
40216
40217
40218
40219
40220
40221
40222
40223
40224
40225
40226
40227
40228
40229
40230 for ac_func in \
40231     endgrent \
40232     endpwent \
40233     fdatasync \
40234     ftruncate \
40235     gethrtime \
40236     hasmntopt \
40237     isascii \
40238     iswspace \
40239     lchown \
40240     listmntent \
40241     localeconv \
40242     memcpy \
40243     mempcpy \
40244     mkfifo \
40245     realpath \
40246     sethostname \
40247     strchr \
40248     strerror \
40249     strrchr \
40250     sysctl \
40251     sysinfo \
40252     wcrtomb \
40253     tzset \
40254
40255 do
40256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40257 echo "$as_me:$LINENO: checking for $ac_func" >&5
40258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40259 if eval "test \"\${$as_ac_var+set}\" = set"; then
40260   echo $ECHO_N "(cached) $ECHO_C" >&6
40261 else
40262   cat >conftest.$ac_ext <<_ACEOF
40263 /* confdefs.h.  */
40264 _ACEOF
40265 cat confdefs.h >>conftest.$ac_ext
40266 cat >>conftest.$ac_ext <<_ACEOF
40267 /* end confdefs.h.  */
40268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40269    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40270 #define $ac_func innocuous_$ac_func
40271
40272 /* System header to define __stub macros and hopefully few prototypes,
40273     which can conflict with char $ac_func (); below.
40274     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40275     <limits.h> exists even on freestanding compilers.  */
40276
40277 #ifdef __STDC__
40278 # include <limits.h>
40279 #else
40280 # include <assert.h>
40281 #endif
40282
40283 #undef $ac_func
40284
40285 /* Override any gcc2 internal prototype to avoid an error.  */
40286 #ifdef __cplusplus
40287 extern "C"
40288 {
40289 #endif
40290 /* We use char because int might match the return type of a gcc2
40291    builtin and then its argument prototype would still apply.  */
40292 char $ac_func ();
40293 /* The GNU C library defines this for functions which it implements
40294     to always fail with ENOSYS.  Some functions are actually named
40295     something starting with __ and the normal name is an alias.  */
40296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40297 choke me
40298 #else
40299 char (*f) () = $ac_func;
40300 #endif
40301 #ifdef __cplusplus
40302 }
40303 #endif
40304
40305 int
40306 main ()
40307 {
40308 return f != $ac_func;
40309   ;
40310   return 0;
40311 }
40312 _ACEOF
40313 rm -f conftest.$ac_objext conftest$ac_exeext
40314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40315   (eval $ac_link) 2>&5
40316   ac_status=$?
40317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40318   (exit $ac_status); } &&
40319          { ac_try='test -s conftest$ac_exeext'
40320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40321   (eval $ac_try) 2>&5
40322   ac_status=$?
40323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40324   (exit $ac_status); }; }; then
40325   eval "$as_ac_var=yes"
40326 else
40327   echo "$as_me: failed program was:" >&5
40328 sed 's/^/| /' conftest.$ac_ext >&5
40329
40330 eval "$as_ac_var=no"
40331 fi
40332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40333 fi
40334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40336 if test `eval echo '${'$as_ac_var'}'` = yes; then
40337   cat >>confdefs.h <<_ACEOF
40338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40339 _ACEOF
40340
40341 fi
40342 done
40343
40344
40345   # for test.c
40346
40347
40348 for ac_func in setreuid setregid
40349 do
40350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40351 echo "$as_me:$LINENO: checking for $ac_func" >&5
40352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40353 if eval "test \"\${$as_ac_var+set}\" = set"; then
40354   echo $ECHO_N "(cached) $ECHO_C" >&6
40355 else
40356   cat >conftest.$ac_ext <<_ACEOF
40357 /* confdefs.h.  */
40358 _ACEOF
40359 cat confdefs.h >>conftest.$ac_ext
40360 cat >>conftest.$ac_ext <<_ACEOF
40361 /* end confdefs.h.  */
40362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40363    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40364 #define $ac_func innocuous_$ac_func
40365
40366 /* System header to define __stub macros and hopefully few prototypes,
40367     which can conflict with char $ac_func (); below.
40368     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40369     <limits.h> exists even on freestanding compilers.  */
40370
40371 #ifdef __STDC__
40372 # include <limits.h>
40373 #else
40374 # include <assert.h>
40375 #endif
40376
40377 #undef $ac_func
40378
40379 /* Override any gcc2 internal prototype to avoid an error.  */
40380 #ifdef __cplusplus
40381 extern "C"
40382 {
40383 #endif
40384 /* We use char because int might match the return type of a gcc2
40385    builtin and then its argument prototype would still apply.  */
40386 char $ac_func ();
40387 /* The GNU C library defines this for functions which it implements
40388     to always fail with ENOSYS.  Some functions are actually named
40389     something starting with __ and the normal name is an alias.  */
40390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40391 choke me
40392 #else
40393 char (*f) () = $ac_func;
40394 #endif
40395 #ifdef __cplusplus
40396 }
40397 #endif
40398
40399 int
40400 main ()
40401 {
40402 return f != $ac_func;
40403   ;
40404   return 0;
40405 }
40406 _ACEOF
40407 rm -f conftest.$ac_objext conftest$ac_exeext
40408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40409   (eval $ac_link) 2>&5
40410   ac_status=$?
40411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40412   (exit $ac_status); } &&
40413          { ac_try='test -s conftest$ac_exeext'
40414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40415   (eval $ac_try) 2>&5
40416   ac_status=$?
40417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40418   (exit $ac_status); }; }; then
40419   eval "$as_ac_var=yes"
40420 else
40421   echo "$as_me: failed program was:" >&5
40422 sed 's/^/| /' conftest.$ac_ext >&5
40423
40424 eval "$as_ac_var=no"
40425 fi
40426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40427 fi
40428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40429 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40430 if test `eval echo '${'$as_ac_var'}'` = yes; then
40431   cat >>confdefs.h <<_ACEOF
40432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40433 _ACEOF
40434
40435 fi
40436 done
40437
40438
40439   echo "$as_me:$LINENO: checking for working strtod" >&5
40440 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
40441 if test "${ac_cv_func_strtod+set}" = set; then
40442   echo $ECHO_N "(cached) $ECHO_C" >&6
40443 else
40444   if test "$cross_compiling" = yes; then
40445   ac_cv_func_strtod=no
40446 else
40447   cat >conftest.$ac_ext <<_ACEOF
40448 /* confdefs.h.  */
40449 _ACEOF
40450 cat confdefs.h >>conftest.$ac_ext
40451 cat >>conftest.$ac_ext <<_ACEOF
40452 /* end confdefs.h.  */
40453
40454 double strtod ();
40455 int
40456 main()
40457 {
40458   {
40459     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
40460     char *string = " +69";
40461     char *term;
40462     double value;
40463     value = strtod (string, &term);
40464     if (value != 69 || term != (string + 4))
40465       exit (1);
40466   }
40467
40468   {
40469     /* Under Solaris 2.4, strtod returns the wrong value for the
40470        terminating character under some conditions.  */
40471     char *string = "NaN";
40472     char *term;
40473     strtod (string, &term);
40474     if (term != string && *(term - 1) == 0)
40475       exit (1);
40476   }
40477   exit (0);
40478 }
40479
40480 _ACEOF
40481 rm -f conftest$ac_exeext
40482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40483   (eval $ac_link) 2>&5
40484   ac_status=$?
40485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40486   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40488   (eval $ac_try) 2>&5
40489   ac_status=$?
40490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40491   (exit $ac_status); }; }; then
40492   ac_cv_func_strtod=yes
40493 else
40494   echo "$as_me: program exited with status $ac_status" >&5
40495 echo "$as_me: failed program was:" >&5
40496 sed 's/^/| /' conftest.$ac_ext >&5
40497
40498 ( exit $ac_status )
40499 ac_cv_func_strtod=no
40500 fi
40501 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40502 fi
40503 fi
40504 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
40505 echo "${ECHO_T}$ac_cv_func_strtod" >&6
40506 if test $ac_cv_func_strtod = no; then
40507   LIBOBJS="$LIBOBJS strtod.$ac_objext"
40508 echo "$as_me:$LINENO: checking for pow" >&5
40509 echo $ECHO_N "checking for pow... $ECHO_C" >&6
40510 if test "${ac_cv_func_pow+set}" = set; then
40511   echo $ECHO_N "(cached) $ECHO_C" >&6
40512 else
40513   cat >conftest.$ac_ext <<_ACEOF
40514 /* confdefs.h.  */
40515 _ACEOF
40516 cat confdefs.h >>conftest.$ac_ext
40517 cat >>conftest.$ac_ext <<_ACEOF
40518 /* end confdefs.h.  */
40519 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
40520    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40521 #define pow innocuous_pow
40522
40523 /* System header to define __stub macros and hopefully few prototypes,
40524     which can conflict with char pow (); below.
40525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40526     <limits.h> exists even on freestanding compilers.  */
40527
40528 #ifdef __STDC__
40529 # include <limits.h>
40530 #else
40531 # include <assert.h>
40532 #endif
40533
40534 #undef pow
40535
40536 /* Override any gcc2 internal prototype to avoid an error.  */
40537 #ifdef __cplusplus
40538 extern "C"
40539 {
40540 #endif
40541 /* We use char because int might match the return type of a gcc2
40542    builtin and then its argument prototype would still apply.  */
40543 char pow ();
40544 /* The GNU C library defines this for functions which it implements
40545     to always fail with ENOSYS.  Some functions are actually named
40546     something starting with __ and the normal name is an alias.  */
40547 #if defined (__stub_pow) || defined (__stub___pow)
40548 choke me
40549 #else
40550 char (*f) () = pow;
40551 #endif
40552 #ifdef __cplusplus
40553 }
40554 #endif
40555
40556 int
40557 main ()
40558 {
40559 return f != pow;
40560   ;
40561   return 0;
40562 }
40563 _ACEOF
40564 rm -f conftest.$ac_objext conftest$ac_exeext
40565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40566   (eval $ac_link) 2>&5
40567   ac_status=$?
40568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40569   (exit $ac_status); } &&
40570          { ac_try='test -s conftest$ac_exeext'
40571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40572   (eval $ac_try) 2>&5
40573   ac_status=$?
40574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40575   (exit $ac_status); }; }; then
40576   ac_cv_func_pow=yes
40577 else
40578   echo "$as_me: failed program was:" >&5
40579 sed 's/^/| /' conftest.$ac_ext >&5
40580
40581 ac_cv_func_pow=no
40582 fi
40583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40584 fi
40585 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
40586 echo "${ECHO_T}$ac_cv_func_pow" >&6
40587
40588 if test $ac_cv_func_pow = no; then
40589   echo "$as_me:$LINENO: checking for pow in -lm" >&5
40590 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
40591 if test "${ac_cv_lib_m_pow+set}" = set; then
40592   echo $ECHO_N "(cached) $ECHO_C" >&6
40593 else
40594   ac_check_lib_save_LIBS=$LIBS
40595 LIBS="-lm  $LIBS"
40596 cat >conftest.$ac_ext <<_ACEOF
40597 /* confdefs.h.  */
40598 _ACEOF
40599 cat confdefs.h >>conftest.$ac_ext
40600 cat >>conftest.$ac_ext <<_ACEOF
40601 /* end confdefs.h.  */
40602
40603 /* Override any gcc2 internal prototype to avoid an error.  */
40604 #ifdef __cplusplus
40605 extern "C"
40606 #endif
40607 /* We use char because int might match the return type of a gcc2
40608    builtin and then its argument prototype would still apply.  */
40609 char pow ();
40610 int
40611 main ()
40612 {
40613 pow ();
40614   ;
40615   return 0;
40616 }
40617 _ACEOF
40618 rm -f conftest.$ac_objext conftest$ac_exeext
40619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40620   (eval $ac_link) 2>&5
40621   ac_status=$?
40622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40623   (exit $ac_status); } &&
40624          { ac_try='test -s conftest$ac_exeext'
40625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40626   (eval $ac_try) 2>&5
40627   ac_status=$?
40628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40629   (exit $ac_status); }; }; then
40630   ac_cv_lib_m_pow=yes
40631 else
40632   echo "$as_me: failed program was:" >&5
40633 sed 's/^/| /' conftest.$ac_ext >&5
40634
40635 ac_cv_lib_m_pow=no
40636 fi
40637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40638 LIBS=$ac_check_lib_save_LIBS
40639 fi
40640 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
40641 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
40642 if test $ac_cv_lib_m_pow = yes; then
40643   POW_LIB=-lm
40644 else
40645   { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
40646 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
40647 fi
40648
40649 fi
40650
40651 fi
40652
40653
40654
40655
40656
40657   # See if linking `seq' requires -lm.
40658   # It does on nearly every system.  The single exception (so far) is
40659   # BeOS which has all the math functions in the normal runtime library
40660   # and doesn't have a separate math library.
40661
40662
40663   ac_seq_body='
40664      static double x, y;
40665      x = floor (x);
40666      x = rint (x);
40667      x = modf (x, &y);'
40668
40669 cat >conftest.$ac_ext <<_ACEOF
40670 /* confdefs.h.  */
40671 _ACEOF
40672 cat confdefs.h >>conftest.$ac_ext
40673 cat >>conftest.$ac_ext <<_ACEOF
40674 /* end confdefs.h.  */
40675 #include <math.h>
40676 int
40677 main ()
40678 {
40679 $ac_seq_body
40680   ;
40681   return 0;
40682 }
40683 _ACEOF
40684 rm -f conftest.$ac_objext conftest$ac_exeext
40685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40686   (eval $ac_link) 2>&5
40687   ac_status=$?
40688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40689   (exit $ac_status); } &&
40690          { ac_try='test -s conftest$ac_exeext'
40691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40692   (eval $ac_try) 2>&5
40693   ac_status=$?
40694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40695   (exit $ac_status); }; }; then
40696   :
40697 else
40698   echo "$as_me: failed program was:" >&5
40699 sed 's/^/| /' conftest.$ac_ext >&5
40700
40701 ac_seq_save_LIBS="$LIBS"
40702      LIBS="$LIBS -lm"
40703
40704 cat >conftest.$ac_ext <<_ACEOF
40705 /* confdefs.h.  */
40706 _ACEOF
40707 cat confdefs.h >>conftest.$ac_ext
40708 cat >>conftest.$ac_ext <<_ACEOF
40709 /* end confdefs.h.  */
40710 #include <math.h>
40711 int
40712 main ()
40713 {
40714 $ac_seq_body
40715   ;
40716   return 0;
40717 }
40718 _ACEOF
40719 rm -f conftest.$ac_objext conftest$ac_exeext
40720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40721   (eval $ac_link) 2>&5
40722   ac_status=$?
40723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40724   (exit $ac_status); } &&
40725          { ac_try='test -s conftest$ac_exeext'
40726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40727   (eval $ac_try) 2>&5
40728   ac_status=$?
40729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40730   (exit $ac_status); }; }; then
40731   SEQ_LIBM=-lm
40732 else
40733   echo "$as_me: failed program was:" >&5
40734 sed 's/^/| /' conftest.$ac_ext >&5
40735
40736 fi
40737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40738      LIBS="$ac_seq_save_LIBS"
40739
40740 fi
40741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40742
40743
40744   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
40745 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
40746 if test "${am_cv_langinfo_codeset+set}" = set; then
40747   echo $ECHO_N "(cached) $ECHO_C" >&6
40748 else
40749
40750 cat >conftest.$ac_ext <<_ACEOF
40751 /* confdefs.h.  */
40752 _ACEOF
40753 cat confdefs.h >>conftest.$ac_ext
40754 cat >>conftest.$ac_ext <<_ACEOF
40755 /* end confdefs.h.  */
40756 #include <langinfo.h>
40757 int
40758 main ()
40759 {
40760 char* cs = nl_langinfo(CODESET);
40761   ;
40762   return 0;
40763 }
40764 _ACEOF
40765 rm -f conftest.$ac_objext conftest$ac_exeext
40766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40767   (eval $ac_link) 2>&5
40768   ac_status=$?
40769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40770   (exit $ac_status); } &&
40771          { ac_try='test -s conftest$ac_exeext'
40772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40773   (eval $ac_try) 2>&5
40774   ac_status=$?
40775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40776   (exit $ac_status); }; }; then
40777   am_cv_langinfo_codeset=yes
40778 else
40779   echo "$as_me: failed program was:" >&5
40780 sed 's/^/| /' conftest.$ac_ext >&5
40781
40782 am_cv_langinfo_codeset=no
40783 fi
40784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40785
40786 fi
40787 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
40788 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
40789   if test $am_cv_langinfo_codeset = yes; then
40790
40791 cat >>confdefs.h <<\_ACEOF
40792 #define HAVE_LANGINFO_CODESET 1
40793 _ACEOF
40794
40795   fi
40796
40797
40798     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
40799 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
40800 if test "${ac_cv_gnu_library_2_1+set}" = set; then
40801   echo $ECHO_N "(cached) $ECHO_C" >&6
40802 else
40803   cat >conftest.$ac_ext <<_ACEOF
40804 /* confdefs.h.  */
40805 _ACEOF
40806 cat confdefs.h >>conftest.$ac_ext
40807 cat >>conftest.$ac_ext <<_ACEOF
40808 /* end confdefs.h.  */
40809
40810 #include <features.h>
40811 #ifdef __GNU_LIBRARY__
40812  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
40813   Lucky GNU user
40814  #endif
40815 #endif
40816
40817 _ACEOF
40818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40819   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
40820   ac_cv_gnu_library_2_1=yes
40821 else
40822   ac_cv_gnu_library_2_1=no
40823 fi
40824 rm -f conftest*
40825
40826
40827
40828 fi
40829 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
40830 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
40831
40832     GLIBC21="$ac_cv_gnu_library_2_1"
40833
40834
40835
40836
40837
40838
40839
40840           am_save_CPPFLAGS="$CPPFLAGS"
40841
40842   for element in $INCICONV; do
40843     haveit=
40844     for x in $CPPFLAGS; do
40845
40846   acl_save_prefix="$prefix"
40847   prefix="$acl_final_prefix"
40848   acl_save_exec_prefix="$exec_prefix"
40849   exec_prefix="$acl_final_exec_prefix"
40850   eval x=\"$x\"
40851   exec_prefix="$acl_save_exec_prefix"
40852   prefix="$acl_save_prefix"
40853
40854       if test "X$x" = "X$element"; then
40855         haveit=yes
40856         break
40857       fi
40858     done
40859     if test -z "$haveit"; then
40860       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
40861     fi
40862   done
40863
40864
40865   echo "$as_me:$LINENO: checking for iconv" >&5
40866 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
40867 if test "${am_cv_func_iconv+set}" = set; then
40868   echo $ECHO_N "(cached) $ECHO_C" >&6
40869 else
40870
40871     am_cv_func_iconv="no, consider installing GNU libiconv"
40872     am_cv_lib_iconv=no
40873
40874 cat >conftest.$ac_ext <<_ACEOF
40875 /* confdefs.h.  */
40876 _ACEOF
40877 cat confdefs.h >>conftest.$ac_ext
40878 cat >>conftest.$ac_ext <<_ACEOF
40879 /* end confdefs.h.  */
40880 #include <stdlib.h>
40881 #include <iconv.h>
40882 int
40883 main ()
40884 {
40885 iconv_t cd = iconv_open("","");
40886        iconv(cd,NULL,NULL,NULL,NULL);
40887        iconv_close(cd);
40888   ;
40889   return 0;
40890 }
40891 _ACEOF
40892 rm -f conftest.$ac_objext conftest$ac_exeext
40893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40894   (eval $ac_link) 2>&5
40895   ac_status=$?
40896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40897   (exit $ac_status); } &&
40898          { ac_try='test -s conftest$ac_exeext'
40899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40900   (eval $ac_try) 2>&5
40901   ac_status=$?
40902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40903   (exit $ac_status); }; }; then
40904   am_cv_func_iconv=yes
40905 else
40906   echo "$as_me: failed program was:" >&5
40907 sed 's/^/| /' conftest.$ac_ext >&5
40908
40909 fi
40910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40911     if test "$am_cv_func_iconv" != yes; then
40912       am_save_LIBS="$LIBS"
40913       LIBS="$LIBS $LIBICONV"
40914
40915 cat >conftest.$ac_ext <<_ACEOF
40916 /* confdefs.h.  */
40917 _ACEOF
40918 cat confdefs.h >>conftest.$ac_ext
40919 cat >>conftest.$ac_ext <<_ACEOF
40920 /* end confdefs.h.  */
40921 #include <stdlib.h>
40922 #include <iconv.h>
40923 int
40924 main ()
40925 {
40926 iconv_t cd = iconv_open("","");
40927          iconv(cd,NULL,NULL,NULL,NULL);
40928          iconv_close(cd);
40929   ;
40930   return 0;
40931 }
40932 _ACEOF
40933 rm -f conftest.$ac_objext conftest$ac_exeext
40934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40935   (eval $ac_link) 2>&5
40936   ac_status=$?
40937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40938   (exit $ac_status); } &&
40939          { ac_try='test -s conftest$ac_exeext'
40940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40941   (eval $ac_try) 2>&5
40942   ac_status=$?
40943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40944   (exit $ac_status); }; }; then
40945   am_cv_lib_iconv=yes
40946         am_cv_func_iconv=yes
40947 else
40948   echo "$as_me: failed program was:" >&5
40949 sed 's/^/| /' conftest.$ac_ext >&5
40950
40951 fi
40952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40953       LIBS="$am_save_LIBS"
40954     fi
40955
40956 fi
40957 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
40958 echo "${ECHO_T}$am_cv_func_iconv" >&6
40959   if test "$am_cv_func_iconv" = yes; then
40960
40961 cat >>confdefs.h <<\_ACEOF
40962 #define HAVE_ICONV 1
40963 _ACEOF
40964
40965   fi
40966   if test "$am_cv_lib_iconv" = yes; then
40967     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
40968 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
40969     echo "$as_me:$LINENO: result: $LIBICONV" >&5
40970 echo "${ECHO_T}$LIBICONV" >&6
40971   else
40972             CPPFLAGS="$am_save_CPPFLAGS"
40973     LIBICONV=
40974     LTLIBICONV=
40975   fi
40976
40977
40978
40979   if test "$am_cv_func_iconv" = yes; then
40980     echo "$as_me:$LINENO: checking for iconv declaration" >&5
40981 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
40982     if test "${am_cv_proto_iconv+set}" = set; then
40983   echo $ECHO_N "(cached) $ECHO_C" >&6
40984 else
40985
40986
40987 cat >conftest.$ac_ext <<_ACEOF
40988 /* confdefs.h.  */
40989 _ACEOF
40990 cat confdefs.h >>conftest.$ac_ext
40991 cat >>conftest.$ac_ext <<_ACEOF
40992 /* end confdefs.h.  */
40993
40994 #include <stdlib.h>
40995 #include <iconv.h>
40996 extern
40997 #ifdef __cplusplus
40998 "C"
40999 #endif
41000 #if defined(__STDC__) || defined(__cplusplus)
41001 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
41002 #else
41003 size_t iconv();
41004 #endif
41005
41006 int
41007 main ()
41008 {
41009
41010   ;
41011   return 0;
41012 }
41013 _ACEOF
41014 rm -f conftest.$ac_objext
41015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41016   (eval $ac_compile) 2>&5
41017   ac_status=$?
41018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41019   (exit $ac_status); } &&
41020          { ac_try='test -s conftest.$ac_objext'
41021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41022   (eval $ac_try) 2>&5
41023   ac_status=$?
41024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41025   (exit $ac_status); }; }; then
41026   am_cv_proto_iconv_arg1=""
41027 else
41028   echo "$as_me: failed program was:" >&5
41029 sed 's/^/| /' conftest.$ac_ext >&5
41030
41031 am_cv_proto_iconv_arg1="const"
41032 fi
41033 rm -f conftest.$ac_objext conftest.$ac_ext
41034       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
41035 fi
41036
41037     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
41038     echo "$as_me:$LINENO: result: ${ac_t:-
41039          }$am_cv_proto_iconv" >&5
41040 echo "${ECHO_T}${ac_t:-
41041          }$am_cv_proto_iconv" >&6
41042
41043 cat >>confdefs.h <<_ACEOF
41044 #define ICONV_CONST $am_cv_proto_iconv_arg1
41045 _ACEOF
41046
41047   fi
41048
41049     echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
41050 echo $ECHO_N "checking whether a running program can be unlinked... $ECHO_C" >&6
41051 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
41052   echo $ECHO_N "(cached) $ECHO_C" >&6
41053 else
41054
41055
41056 if test "$cross_compiling" = yes; then
41057   jm_cv_func_unlink_busy_text=no
41058
41059 else
41060   cat >conftest.$ac_ext <<_ACEOF
41061 /* confdefs.h.  */
41062 _ACEOF
41063 cat confdefs.h >>conftest.$ac_ext
41064 cat >>conftest.$ac_ext <<_ACEOF
41065 /* end confdefs.h.  */
41066
41067         main (argc, argv)
41068           int argc;
41069           char **argv;
41070         {
41071           if (!argc)
41072             exit (-1);
41073           exit (unlink (argv[0]));
41074         }
41075
41076 _ACEOF
41077 rm -f conftest$ac_exeext
41078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41079   (eval $ac_link) 2>&5
41080   ac_status=$?
41081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41082   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41084   (eval $ac_try) 2>&5
41085   ac_status=$?
41086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41087   (exit $ac_status); }; }; then
41088   jm_cv_func_unlink_busy_text=yes
41089 else
41090   echo "$as_me: program exited with status $ac_status" >&5
41091 echo "$as_me: failed program was:" >&5
41092 sed 's/^/| /' conftest.$ac_ext >&5
41093
41094 ( exit $ac_status )
41095 jm_cv_func_unlink_busy_text=no
41096 fi
41097 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41098 fi
41099
41100
41101 fi
41102 echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
41103 echo "${ECHO_T}$jm_cv_func_unlink_busy_text" >&6
41104
41105   if test $jm_cv_func_unlink_busy_text = no; then
41106     INSTALL=$ac_install_sh
41107   fi
41108
41109
41110   # These tests are for df.
41111
41112
41113   if test $gl_cv_list_mounted_fs = yes && test $gl_cv_fs_space = yes; then
41114     DF_PROG='df$(EXEEXT)'
41115   fi
41116
41117
41118
41119   # If any of these functions don't exist (e.g. DJGPP 2.03),
41120   # use the corresponding stub.
41121   echo "$as_me:$LINENO: checking for fchdir" >&5
41122 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
41123 if test "${ac_cv_func_fchdir+set}" = set; then
41124   echo $ECHO_N "(cached) $ECHO_C" >&6
41125 else
41126   cat >conftest.$ac_ext <<_ACEOF
41127 /* confdefs.h.  */
41128 _ACEOF
41129 cat confdefs.h >>conftest.$ac_ext
41130 cat >>conftest.$ac_ext <<_ACEOF
41131 /* end confdefs.h.  */
41132 /* Define fchdir to an innocuous variant, in case <limits.h> declares fchdir.
41133    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41134 #define fchdir innocuous_fchdir
41135
41136 /* System header to define __stub macros and hopefully few prototypes,
41137     which can conflict with char fchdir (); below.
41138     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41139     <limits.h> exists even on freestanding compilers.  */
41140
41141 #ifdef __STDC__
41142 # include <limits.h>
41143 #else
41144 # include <assert.h>
41145 #endif
41146
41147 #undef fchdir
41148
41149 /* Override any gcc2 internal prototype to avoid an error.  */
41150 #ifdef __cplusplus
41151 extern "C"
41152 {
41153 #endif
41154 /* We use char because int might match the return type of a gcc2
41155    builtin and then its argument prototype would still apply.  */
41156 char fchdir ();
41157 /* The GNU C library defines this for functions which it implements
41158     to always fail with ENOSYS.  Some functions are actually named
41159     something starting with __ and the normal name is an alias.  */
41160 #if defined (__stub_fchdir) || defined (__stub___fchdir)
41161 choke me
41162 #else
41163 char (*f) () = fchdir;
41164 #endif
41165 #ifdef __cplusplus
41166 }
41167 #endif
41168
41169 int
41170 main ()
41171 {
41172 return f != fchdir;
41173   ;
41174   return 0;
41175 }
41176 _ACEOF
41177 rm -f conftest.$ac_objext conftest$ac_exeext
41178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41179   (eval $ac_link) 2>&5
41180   ac_status=$?
41181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41182   (exit $ac_status); } &&
41183          { ac_try='test -s conftest$ac_exeext'
41184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41185   (eval $ac_try) 2>&5
41186   ac_status=$?
41187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41188   (exit $ac_status); }; }; then
41189   ac_cv_func_fchdir=yes
41190 else
41191   echo "$as_me: failed program was:" >&5
41192 sed 's/^/| /' conftest.$ac_ext >&5
41193
41194 ac_cv_func_fchdir=no
41195 fi
41196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41197 fi
41198 echo "$as_me:$LINENO: result: $ac_cv_func_fchdir" >&5
41199 echo "${ECHO_T}$ac_cv_func_fchdir" >&6
41200 if test $ac_cv_func_fchdir = yes; then
41201   :
41202 else
41203   LIBOBJS="$LIBOBJS fchdir-stub.$ac_objext"
41204 fi
41205
41206   echo "$as_me:$LINENO: checking for fchown" >&5
41207 echo $ECHO_N "checking for fchown... $ECHO_C" >&6
41208 if test "${ac_cv_func_fchown+set}" = set; then
41209   echo $ECHO_N "(cached) $ECHO_C" >&6
41210 else
41211   cat >conftest.$ac_ext <<_ACEOF
41212 /* confdefs.h.  */
41213 _ACEOF
41214 cat confdefs.h >>conftest.$ac_ext
41215 cat >>conftest.$ac_ext <<_ACEOF
41216 /* end confdefs.h.  */
41217 /* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
41218    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41219 #define fchown innocuous_fchown
41220
41221 /* System header to define __stub macros and hopefully few prototypes,
41222     which can conflict with char fchown (); below.
41223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41224     <limits.h> exists even on freestanding compilers.  */
41225
41226 #ifdef __STDC__
41227 # include <limits.h>
41228 #else
41229 # include <assert.h>
41230 #endif
41231
41232 #undef fchown
41233
41234 /* Override any gcc2 internal prototype to avoid an error.  */
41235 #ifdef __cplusplus
41236 extern "C"
41237 {
41238 #endif
41239 /* We use char because int might match the return type of a gcc2
41240    builtin and then its argument prototype would still apply.  */
41241 char fchown ();
41242 /* The GNU C library defines this for functions which it implements
41243     to always fail with ENOSYS.  Some functions are actually named
41244     something starting with __ and the normal name is an alias.  */
41245 #if defined (__stub_fchown) || defined (__stub___fchown)
41246 choke me
41247 #else
41248 char (*f) () = fchown;
41249 #endif
41250 #ifdef __cplusplus
41251 }
41252 #endif
41253
41254 int
41255 main ()
41256 {
41257 return f != fchown;
41258   ;
41259   return 0;
41260 }
41261 _ACEOF
41262 rm -f conftest.$ac_objext conftest$ac_exeext
41263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41264   (eval $ac_link) 2>&5
41265   ac_status=$?
41266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41267   (exit $ac_status); } &&
41268          { ac_try='test -s conftest$ac_exeext'
41269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41270   (eval $ac_try) 2>&5
41271   ac_status=$?
41272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41273   (exit $ac_status); }; }; then
41274   ac_cv_func_fchown=yes
41275 else
41276   echo "$as_me: failed program was:" >&5
41277 sed 's/^/| /' conftest.$ac_ext >&5
41278
41279 ac_cv_func_fchown=no
41280 fi
41281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41282 fi
41283 echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
41284 echo "${ECHO_T}$ac_cv_func_fchown" >&6
41285 if test $ac_cv_func_fchown = yes; then
41286   :
41287 else
41288   LIBOBJS="$LIBOBJS fchown-stub.$ac_objext"
41289 fi
41290
41291
41292
41293 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
41294 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
41295 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
41296   echo $ECHO_N "(cached) $ECHO_C" >&6
41297 else
41298   cat >conftest.$ac_ext <<_ACEOF
41299 /* confdefs.h.  */
41300 _ACEOF
41301 cat confdefs.h >>conftest.$ac_ext
41302 cat >>conftest.$ac_ext <<_ACEOF
41303 /* end confdefs.h.  */
41304 #include <sys/types.h>
41305 #include <termios.h>
41306 #ifdef TIOCGWINSZ
41307   yes
41308 #endif
41309
41310 _ACEOF
41311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41312   $EGREP "yes" >/dev/null 2>&1; then
41313   ac_cv_sys_tiocgwinsz_in_termios_h=yes
41314 else
41315   ac_cv_sys_tiocgwinsz_in_termios_h=no
41316 fi
41317 rm -f conftest*
41318
41319 fi
41320 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
41321 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
41322
41323 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
41324   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
41325 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
41326 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
41327   echo $ECHO_N "(cached) $ECHO_C" >&6
41328 else
41329   cat >conftest.$ac_ext <<_ACEOF
41330 /* confdefs.h.  */
41331 _ACEOF
41332 cat confdefs.h >>conftest.$ac_ext
41333 cat >>conftest.$ac_ext <<_ACEOF
41334 /* end confdefs.h.  */
41335 #include <sys/types.h>
41336 #include <sys/ioctl.h>
41337 #ifdef TIOCGWINSZ
41338   yes
41339 #endif
41340
41341 _ACEOF
41342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41343   $EGREP "yes" >/dev/null 2>&1; then
41344   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
41345 else
41346   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
41347 fi
41348 rm -f conftest*
41349
41350 fi
41351 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
41352 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
41353
41354   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
41355
41356 cat >>confdefs.h <<\_ACEOF
41357 #define GWINSZ_IN_SYS_IOCTL 1
41358 _ACEOF
41359
41360   fi
41361 fi
41362
41363 echo "$as_me:$LINENO: checking POSIX termios" >&5
41364 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
41365 if test "${ac_cv_sys_posix_termios+set}" = set; then
41366   echo $ECHO_N "(cached) $ECHO_C" >&6
41367 else
41368   cat >conftest.$ac_ext <<_ACEOF
41369 /* confdefs.h.  */
41370 _ACEOF
41371 cat confdefs.h >>conftest.$ac_ext
41372 cat >>conftest.$ac_ext <<_ACEOF
41373 /* end confdefs.h.  */
41374 #include <sys/types.h>
41375 #include <unistd.h>
41376 #include <termios.h>
41377
41378 int
41379 main ()
41380 {
41381 /* SunOS 4.0.3 has termios.h but not the library calls.  */
41382    tcgetattr(0, 0);
41383   ;
41384   return 0;
41385 }
41386 _ACEOF
41387 rm -f conftest.$ac_objext conftest$ac_exeext
41388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41389   (eval $ac_link) 2>&5
41390   ac_status=$?
41391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41392   (exit $ac_status); } &&
41393          { ac_try='test -s conftest$ac_exeext'
41394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41395   (eval $ac_try) 2>&5
41396   ac_status=$?
41397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41398   (exit $ac_status); }; }; then
41399   ac_cv_sys_posix_termios=yes
41400 else
41401   echo "$as_me: failed program was:" >&5
41402 sed 's/^/| /' conftest.$ac_ext >&5
41403
41404 ac_cv_sys_posix_termios=no
41405 fi
41406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41407 fi
41408 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
41409 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
41410
41411
41412    echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
41413 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
41414 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
41415   echo $ECHO_N "(cached) $ECHO_C" >&6
41416 else
41417   jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
41418       if test $ac_cv_sys_posix_termios = yes; then
41419
41420 cat >conftest.$ac_ext <<_ACEOF
41421 /* confdefs.h.  */
41422 _ACEOF
41423 cat confdefs.h >>conftest.$ac_ext
41424 cat >>conftest.$ac_ext <<_ACEOF
41425 /* end confdefs.h.  */
41426 #include <termios.h>
41427           struct winsize x;
41428 int
41429 main ()
41430 {
41431 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
41432   ;
41433   return 0;
41434 }
41435 _ACEOF
41436 rm -f conftest.$ac_objext
41437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41438   (eval $ac_compile) 2>&5
41439   ac_status=$?
41440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41441   (exit $ac_status); } &&
41442          { ac_try='test -s conftest.$ac_objext'
41443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41444   (eval $ac_try) 2>&5
41445   ac_status=$?
41446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41447   (exit $ac_status); }; }; then
41448   :
41449 else
41450   echo "$as_me: failed program was:" >&5
41451 sed 's/^/| /' conftest.$ac_ext >&5
41452
41453 fi
41454 rm -f conftest.$ac_objext conftest.$ac_ext
41455       fi
41456       if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
41457
41458 cat >conftest.$ac_ext <<_ACEOF
41459 /* confdefs.h.  */
41460 _ACEOF
41461 cat confdefs.h >>conftest.$ac_ext
41462 cat >>conftest.$ac_ext <<_ACEOF
41463 /* end confdefs.h.  */
41464 #include <sys/ptem.h>
41465 int
41466 main ()
41467 {
41468 struct winsize x;
41469   ;
41470   return 0;
41471 }
41472 _ACEOF
41473 rm -f conftest.$ac_objext
41474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41475   (eval $ac_compile) 2>&5
41476   ac_status=$?
41477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41478   (exit $ac_status); } &&
41479          { ac_try='test -s conftest.$ac_objext'
41480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41481   (eval $ac_try) 2>&5
41482   ac_status=$?
41483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41484   (exit $ac_status); }; }; then
41485   :
41486 else
41487   echo "$as_me: failed program was:" >&5
41488 sed 's/^/| /' conftest.$ac_ext >&5
41489
41490 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
41491 fi
41492 rm -f conftest.$ac_objext conftest.$ac_ext
41493       fi
41494 fi
41495 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
41496 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
41497    if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
41498
41499 cat >>confdefs.h <<\_ACEOF
41500 #define WINSIZE_IN_PTEM 1
41501 _ACEOF
41502
41503    fi
41504
41505 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
41506 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
41507 if test "${utils_cv_localtime_cache+set}" = set; then
41508   echo $ECHO_N "(cached) $ECHO_C" >&6
41509 else
41510   if test x$ac_cv_func_tzset = xyes; then
41511 if test "$cross_compiling" = yes; then
41512   # If we have tzset, assume the worst when cross-compiling.
41513 utils_cv_localtime_cache=yes
41514 else
41515   cat >conftest.$ac_ext <<_ACEOF
41516 /* confdefs.h.  */
41517 _ACEOF
41518 cat confdefs.h >>conftest.$ac_ext
41519 cat >>conftest.$ac_ext <<_ACEOF
41520 /* end confdefs.h.  */
41521 #include <time.h>
41522 #if STDC_HEADERS
41523 # include <stdlib.h>
41524 #endif
41525 extern char **environ;
41526 unset_TZ ()
41527 {
41528   char **from, **to;
41529   for (to = from = environ; (*to = *from); from++)
41530     if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
41531       to++;
41532 }
41533 main()
41534 {
41535   time_t now = time ((time_t *) 0);
41536   int hour_GMT0, hour_unset;
41537   if (putenv ("TZ=GMT0") != 0)
41538     exit (1);
41539   hour_GMT0 = localtime (&now)->tm_hour;
41540   unset_TZ ();
41541   hour_unset = localtime (&now)->tm_hour;
41542   if (putenv ("TZ=PST8") != 0)
41543     exit (1);
41544   if (localtime (&now)->tm_hour == hour_GMT0)
41545     exit (1);
41546   unset_TZ ();
41547   if (localtime (&now)->tm_hour != hour_unset)
41548     exit (1);
41549   exit (0);
41550 }
41551 _ACEOF
41552 rm -f conftest$ac_exeext
41553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41554   (eval $ac_link) 2>&5
41555   ac_status=$?
41556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41557   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41559   (eval $ac_try) 2>&5
41560   ac_status=$?
41561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41562   (exit $ac_status); }; }; then
41563   utils_cv_localtime_cache=no
41564 else
41565   echo "$as_me: program exited with status $ac_status" >&5
41566 echo "$as_me: failed program was:" >&5
41567 sed 's/^/| /' conftest.$ac_ext >&5
41568
41569 ( exit $ac_status )
41570 utils_cv_localtime_cache=yes
41571 fi
41572 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41573 fi
41574 else
41575         # If we lack tzset, report that localtime does not cache TZ,
41576         # since we can't invalidate the cache if we don't have tzset.
41577         utils_cv_localtime_cache=no
41578 fi
41579 fi
41580 echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
41581 echo "${ECHO_T}$utils_cv_localtime_cache" >&6
41582 if test $utils_cv_localtime_cache = yes; then
41583
41584 cat >>confdefs.h <<\_ACEOF
41585 #define LOCALTIME_CACHE 1
41586 _ACEOF
41587
41588 fi
41589
41590 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
41591
41592 for ac_func in initgroups
41593 do
41594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41595 echo "$as_me:$LINENO: checking for $ac_func" >&5
41596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41597 if eval "test \"\${$as_ac_var+set}\" = set"; then
41598   echo $ECHO_N "(cached) $ECHO_C" >&6
41599 else
41600   cat >conftest.$ac_ext <<_ACEOF
41601 /* confdefs.h.  */
41602 _ACEOF
41603 cat confdefs.h >>conftest.$ac_ext
41604 cat >>conftest.$ac_ext <<_ACEOF
41605 /* end confdefs.h.  */
41606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41607    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41608 #define $ac_func innocuous_$ac_func
41609
41610 /* System header to define __stub macros and hopefully few prototypes,
41611     which can conflict with char $ac_func (); below.
41612     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41613     <limits.h> exists even on freestanding compilers.  */
41614
41615 #ifdef __STDC__
41616 # include <limits.h>
41617 #else
41618 # include <assert.h>
41619 #endif
41620
41621 #undef $ac_func
41622
41623 /* Override any gcc2 internal prototype to avoid an error.  */
41624 #ifdef __cplusplus
41625 extern "C"
41626 {
41627 #endif
41628 /* We use char because int might match the return type of a gcc2
41629    builtin and then its argument prototype would still apply.  */
41630 char $ac_func ();
41631 /* The GNU C library defines this for functions which it implements
41632     to always fail with ENOSYS.  Some functions are actually named
41633     something starting with __ and the normal name is an alias.  */
41634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41635 choke me
41636 #else
41637 char (*f) () = $ac_func;
41638 #endif
41639 #ifdef __cplusplus
41640 }
41641 #endif
41642
41643 int
41644 main ()
41645 {
41646 return f != $ac_func;
41647   ;
41648   return 0;
41649 }
41650 _ACEOF
41651 rm -f conftest.$ac_objext conftest$ac_exeext
41652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41653   (eval $ac_link) 2>&5
41654   ac_status=$?
41655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41656   (exit $ac_status); } &&
41657          { ac_try='test -s conftest$ac_exeext'
41658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41659   (eval $ac_try) 2>&5
41660   ac_status=$?
41661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41662   (exit $ac_status); }; }; then
41663   eval "$as_ac_var=yes"
41664 else
41665   echo "$as_me: failed program was:" >&5
41666 sed 's/^/| /' conftest.$ac_ext >&5
41667
41668 eval "$as_ac_var=no"
41669 fi
41670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41671 fi
41672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41674 if test `eval echo '${'$as_ac_var'}'` = yes; then
41675   cat >>confdefs.h <<_ACEOF
41676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41677 _ACEOF
41678
41679 fi
41680 done
41681
41682 if test $ac_cv_func_initgroups = no; then
41683
41684 echo "$as_me:$LINENO: checking for initgroups in -los" >&5
41685 echo $ECHO_N "checking for initgroups in -los... $ECHO_C" >&6
41686 if test "${ac_cv_lib_os_initgroups+set}" = set; then
41687   echo $ECHO_N "(cached) $ECHO_C" >&6
41688 else
41689   ac_check_lib_save_LIBS=$LIBS
41690 LIBS="-los  $LIBS"
41691 cat >conftest.$ac_ext <<_ACEOF
41692 /* confdefs.h.  */
41693 _ACEOF
41694 cat confdefs.h >>conftest.$ac_ext
41695 cat >>conftest.$ac_ext <<_ACEOF
41696 /* end confdefs.h.  */
41697
41698 /* Override any gcc2 internal prototype to avoid an error.  */
41699 #ifdef __cplusplus
41700 extern "C"
41701 #endif
41702 /* We use char because int might match the return type of a gcc2
41703    builtin and then its argument prototype would still apply.  */
41704 char initgroups ();
41705 int
41706 main ()
41707 {
41708 initgroups ();
41709   ;
41710   return 0;
41711 }
41712 _ACEOF
41713 rm -f conftest.$ac_objext conftest$ac_exeext
41714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41715   (eval $ac_link) 2>&5
41716   ac_status=$?
41717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41718   (exit $ac_status); } &&
41719          { ac_try='test -s conftest$ac_exeext'
41720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41721   (eval $ac_try) 2>&5
41722   ac_status=$?
41723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41724   (exit $ac_status); }; }; then
41725   ac_cv_lib_os_initgroups=yes
41726 else
41727   echo "$as_me: failed program was:" >&5
41728 sed 's/^/| /' conftest.$ac_ext >&5
41729
41730 ac_cv_lib_os_initgroups=no
41731 fi
41732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41733 LIBS=$ac_check_lib_save_LIBS
41734 fi
41735 echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
41736 echo "${ECHO_T}$ac_cv_lib_os_initgroups" >&6
41737 if test $ac_cv_lib_os_initgroups = yes; then
41738   cat >>confdefs.h <<_ACEOF
41739 #define HAVE_LIBOS 1
41740 _ACEOF
41741
41742   LIBS="-los $LIBS"
41743
41744 fi
41745
41746 fi
41747
41748
41749 for ac_func in syslog
41750 do
41751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41752 echo "$as_me:$LINENO: checking for $ac_func" >&5
41753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41754 if eval "test \"\${$as_ac_var+set}\" = set"; then
41755   echo $ECHO_N "(cached) $ECHO_C" >&6
41756 else
41757   cat >conftest.$ac_ext <<_ACEOF
41758 /* confdefs.h.  */
41759 _ACEOF
41760 cat confdefs.h >>conftest.$ac_ext
41761 cat >>conftest.$ac_ext <<_ACEOF
41762 /* end confdefs.h.  */
41763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41765 #define $ac_func innocuous_$ac_func
41766
41767 /* System header to define __stub macros and hopefully few prototypes,
41768     which can conflict with char $ac_func (); below.
41769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41770     <limits.h> exists even on freestanding compilers.  */
41771
41772 #ifdef __STDC__
41773 # include <limits.h>
41774 #else
41775 # include <assert.h>
41776 #endif
41777
41778 #undef $ac_func
41779
41780 /* Override any gcc2 internal prototype to avoid an error.  */
41781 #ifdef __cplusplus
41782 extern "C"
41783 {
41784 #endif
41785 /* We use char because int might match the return type of a gcc2
41786    builtin and then its argument prototype would still apply.  */
41787 char $ac_func ();
41788 /* The GNU C library defines this for functions which it implements
41789     to always fail with ENOSYS.  Some functions are actually named
41790     something starting with __ and the normal name is an alias.  */
41791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41792 choke me
41793 #else
41794 char (*f) () = $ac_func;
41795 #endif
41796 #ifdef __cplusplus
41797 }
41798 #endif
41799
41800 int
41801 main ()
41802 {
41803 return f != $ac_func;
41804   ;
41805   return 0;
41806 }
41807 _ACEOF
41808 rm -f conftest.$ac_objext conftest$ac_exeext
41809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41810   (eval $ac_link) 2>&5
41811   ac_status=$?
41812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41813   (exit $ac_status); } &&
41814          { ac_try='test -s conftest$ac_exeext'
41815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41816   (eval $ac_try) 2>&5
41817   ac_status=$?
41818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41819   (exit $ac_status); }; }; then
41820   eval "$as_ac_var=yes"
41821 else
41822   echo "$as_me: failed program was:" >&5
41823 sed 's/^/| /' conftest.$ac_ext >&5
41824
41825 eval "$as_ac_var=no"
41826 fi
41827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41828 fi
41829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41831 if test `eval echo '${'$as_ac_var'}'` = yes; then
41832   cat >>confdefs.h <<_ACEOF
41833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41834 _ACEOF
41835
41836 fi
41837 done
41838
41839 if test $ac_cv_func_syslog = no; then
41840   # syslog is not in the default libraries.  See if it's in some other.
41841   for lib in bsd socket inet; do
41842     as_ac_Lib=`echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
41843 echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
41844 echo $ECHO_N "checking for syslog in -l$lib... $ECHO_C" >&6
41845 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
41846   echo $ECHO_N "(cached) $ECHO_C" >&6
41847 else
41848   ac_check_lib_save_LIBS=$LIBS
41849 LIBS="-l$lib  $LIBS"
41850 cat >conftest.$ac_ext <<_ACEOF
41851 /* confdefs.h.  */
41852 _ACEOF
41853 cat confdefs.h >>conftest.$ac_ext
41854 cat >>conftest.$ac_ext <<_ACEOF
41855 /* end confdefs.h.  */
41856
41857 /* Override any gcc2 internal prototype to avoid an error.  */
41858 #ifdef __cplusplus
41859 extern "C"
41860 #endif
41861 /* We use char because int might match the return type of a gcc2
41862    builtin and then its argument prototype would still apply.  */
41863 char syslog ();
41864 int
41865 main ()
41866 {
41867 syslog ();
41868   ;
41869   return 0;
41870 }
41871 _ACEOF
41872 rm -f conftest.$ac_objext conftest$ac_exeext
41873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41874   (eval $ac_link) 2>&5
41875   ac_status=$?
41876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41877   (exit $ac_status); } &&
41878          { ac_try='test -s conftest$ac_exeext'
41879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41880   (eval $ac_try) 2>&5
41881   ac_status=$?
41882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41883   (exit $ac_status); }; }; then
41884   eval "$as_ac_Lib=yes"
41885 else
41886   echo "$as_me: failed program was:" >&5
41887 sed 's/^/| /' conftest.$ac_ext >&5
41888
41889 eval "$as_ac_Lib=no"
41890 fi
41891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41892 LIBS=$ac_check_lib_save_LIBS
41893 fi
41894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
41895 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
41896 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
41897
41898 cat >>confdefs.h <<\_ACEOF
41899 #define HAVE_SYSLOG 1
41900 _ACEOF
41901
41902       LIBS="$LIBS -l$lib"; break
41903 fi
41904
41905   done
41906 fi
41907
41908 echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
41909 echo $ECHO_N "checking for 3-argument setpriority function... $ECHO_C" >&6
41910 if test "${utils_cv_func_setpriority+set}" = set; then
41911   echo $ECHO_N "(cached) $ECHO_C" >&6
41912 else
41913   cat >conftest.$ac_ext <<_ACEOF
41914 /* confdefs.h.  */
41915 _ACEOF
41916 cat confdefs.h >>conftest.$ac_ext
41917 cat >>conftest.$ac_ext <<_ACEOF
41918 /* end confdefs.h.  */
41919 #include <sys/time.h>
41920   #include <sys/resource.h>
41921 int
41922 main ()
41923 {
41924 setpriority(0, 0, 0);
41925   ;
41926   return 0;
41927 }
41928 _ACEOF
41929 rm -f conftest.$ac_objext conftest$ac_exeext
41930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41931   (eval $ac_link) 2>&5
41932   ac_status=$?
41933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41934   (exit $ac_status); } &&
41935          { ac_try='test -s conftest$ac_exeext'
41936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41937   (eval $ac_try) 2>&5
41938   ac_status=$?
41939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41940   (exit $ac_status); }; }; then
41941   utils_cv_func_setpriority=yes
41942 else
41943   echo "$as_me: failed program was:" >&5
41944 sed 's/^/| /' conftest.$ac_ext >&5
41945
41946 utils_cv_func_setpriority=no
41947 fi
41948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41949 fi
41950
41951 echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
41952 echo "${ECHO_T}$utils_cv_func_setpriority" >&6
41953 if test $utils_cv_func_setpriority = yes; then
41954   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice\$(EXEEXT)"
41955   MAN="$MAN nice.1"
41956 else
41957   echo "$as_me:$LINENO: checking for nice function" >&5
41958 echo $ECHO_N "checking for nice function... $ECHO_C" >&6
41959   if test "${utils_cv_func_nice+set}" = set; then
41960   echo $ECHO_N "(cached) $ECHO_C" >&6
41961 else
41962   cat >conftest.$ac_ext <<_ACEOF
41963 /* confdefs.h.  */
41964 _ACEOF
41965 cat confdefs.h >>conftest.$ac_ext
41966 cat >>conftest.$ac_ext <<_ACEOF
41967 /* end confdefs.h.  */
41968
41969 int
41970 main ()
41971 {
41972 nice();
41973   ;
41974   return 0;
41975 }
41976 _ACEOF
41977 rm -f conftest.$ac_objext conftest$ac_exeext
41978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41979   (eval $ac_link) 2>&5
41980   ac_status=$?
41981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41982   (exit $ac_status); } &&
41983          { ac_try='test -s conftest$ac_exeext'
41984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41985   (eval $ac_try) 2>&5
41986   ac_status=$?
41987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41988   (exit $ac_status); }; }; then
41989   utils_cv_func_nice=yes
41990 else
41991   echo "$as_me: failed program was:" >&5
41992 sed 's/^/| /' conftest.$ac_ext >&5
41993
41994 utils_cv_func_nice=no
41995 fi
41996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41997 fi
41998
41999   echo "$as_me:$LINENO: result: $utils_cv_func_nice" >&5
42000 echo "${ECHO_T}$utils_cv_func_nice" >&6
42001   if test $utils_cv_func_nice = yes; then
42002
42003 cat >>confdefs.h <<\_ACEOF
42004 #define NICE_PRIORITY 1
42005 _ACEOF
42006
42007     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice\$(EXEEXT)"
42008     MAN="$MAN nice.1"
42009   fi
42010 fi
42011
42012
42013
42014
42015   if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
42016     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS pinky\$(EXEEXT)"
42017     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS users\$(EXEEXT)"
42018     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS who\$(EXEEXT)"
42019     MAN="$MAN pinky.1 users.1 who.1"
42020   fi
42021
42022
42023 echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
42024 echo $ECHO_N "checking ut_host in struct utmp... $ECHO_C" >&6
42025 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
42026   echo $ECHO_N "(cached) $ECHO_C" >&6
42027 else
42028   cat >conftest.$ac_ext <<_ACEOF
42029 /* confdefs.h.  */
42030 _ACEOF
42031 cat confdefs.h >>conftest.$ac_ext
42032 cat >>conftest.$ac_ext <<_ACEOF
42033 /* end confdefs.h.  */
42034 #include <sys/types.h>
42035 #include <utmp.h>
42036 int
42037 main ()
42038 {
42039 struct utmp ut; ut.ut_host;
42040   ;
42041   return 0;
42042 }
42043 _ACEOF
42044 rm -f conftest.$ac_objext conftest$ac_exeext
42045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42046   (eval $ac_link) 2>&5
42047   ac_status=$?
42048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42049   (exit $ac_status); } &&
42050          { ac_try='test -s conftest$ac_exeext'
42051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42052   (eval $ac_try) 2>&5
42053   ac_status=$?
42054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42055   (exit $ac_status); }; }; then
42056   su_cv_func_ut_host_in_utmp=yes
42057 else
42058   echo "$as_me: failed program was:" >&5
42059 sed 's/^/| /' conftest.$ac_ext >&5
42060
42061 su_cv_func_ut_host_in_utmp=no
42062 fi
42063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42064 fi
42065
42066 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
42067 echo "${ECHO_T}$su_cv_func_ut_host_in_utmp" >&6
42068 if test $su_cv_func_ut_host_in_utmp = yes; then
42069   have_ut_host=1
42070
42071 cat >>confdefs.h <<\_ACEOF
42072 #define HAVE_UT_HOST 1
42073 _ACEOF
42074
42075 fi
42076
42077 if test -z "$have_ut_host"; then
42078   echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
42079 echo $ECHO_N "checking ut_host in struct utmpx... $ECHO_C" >&6
42080   if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
42081   echo $ECHO_N "(cached) $ECHO_C" >&6
42082 else
42083   cat >conftest.$ac_ext <<_ACEOF
42084 /* confdefs.h.  */
42085 _ACEOF
42086 cat confdefs.h >>conftest.$ac_ext
42087 cat >>conftest.$ac_ext <<_ACEOF
42088 /* end confdefs.h.  */
42089 #include <sys/types.h>
42090 #include <utmpx.h>
42091 int
42092 main ()
42093 {
42094 struct utmpx ut; ut.ut_host;
42095   ;
42096   return 0;
42097 }
42098 _ACEOF
42099 rm -f conftest.$ac_objext conftest$ac_exeext
42100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42101   (eval $ac_link) 2>&5
42102   ac_status=$?
42103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42104   (exit $ac_status); } &&
42105          { ac_try='test -s conftest$ac_exeext'
42106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42107   (eval $ac_try) 2>&5
42108   ac_status=$?
42109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42110   (exit $ac_status); }; }; then
42111   su_cv_func_ut_host_in_utmpx=yes
42112 else
42113   echo "$as_me: failed program was:" >&5
42114 sed 's/^/| /' conftest.$ac_ext >&5
42115
42116 su_cv_func_ut_host_in_utmpx=no
42117 fi
42118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42119 fi
42120
42121   echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
42122 echo "${ECHO_T}$su_cv_func_ut_host_in_utmpx" >&6
42123   if test $su_cv_func_ut_host_in_utmpx = yes; then
42124
42125 cat >>confdefs.h <<\_ACEOF
42126 #define HAVE_UTMPX_H 1
42127 _ACEOF
42128
42129
42130 cat >>confdefs.h <<\_ACEOF
42131 #define HAVE_UT_HOST 1
42132 _ACEOF
42133
42134   fi
42135 fi
42136
42137
42138
42139 for ac_func in sysctl
42140 do
42141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42142 echo "$as_me:$LINENO: checking for $ac_func" >&5
42143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42144 if eval "test \"\${$as_ac_var+set}\" = set"; then
42145   echo $ECHO_N "(cached) $ECHO_C" >&6
42146 else
42147   cat >conftest.$ac_ext <<_ACEOF
42148 /* confdefs.h.  */
42149 _ACEOF
42150 cat confdefs.h >>conftest.$ac_ext
42151 cat >>conftest.$ac_ext <<_ACEOF
42152 /* end confdefs.h.  */
42153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42154    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42155 #define $ac_func innocuous_$ac_func
42156
42157 /* System header to define __stub macros and hopefully few prototypes,
42158     which can conflict with char $ac_func (); below.
42159     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42160     <limits.h> exists even on freestanding compilers.  */
42161
42162 #ifdef __STDC__
42163 # include <limits.h>
42164 #else
42165 # include <assert.h>
42166 #endif
42167
42168 #undef $ac_func
42169
42170 /* Override any gcc2 internal prototype to avoid an error.  */
42171 #ifdef __cplusplus
42172 extern "C"
42173 {
42174 #endif
42175 /* We use char because int might match the return type of a gcc2
42176    builtin and then its argument prototype would still apply.  */
42177 char $ac_func ();
42178 /* The GNU C library defines this for functions which it implements
42179     to always fail with ENOSYS.  Some functions are actually named
42180     something starting with __ and the normal name is an alias.  */
42181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42182 choke me
42183 #else
42184 char (*f) () = $ac_func;
42185 #endif
42186 #ifdef __cplusplus
42187 }
42188 #endif
42189
42190 int
42191 main ()
42192 {
42193 return f != $ac_func;
42194   ;
42195   return 0;
42196 }
42197 _ACEOF
42198 rm -f conftest.$ac_objext conftest$ac_exeext
42199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42200   (eval $ac_link) 2>&5
42201   ac_status=$?
42202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42203   (exit $ac_status); } &&
42204          { ac_try='test -s conftest$ac_exeext'
42205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42206   (eval $ac_try) 2>&5
42207   ac_status=$?
42208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42209   (exit $ac_status); }; }; then
42210   eval "$as_ac_var=yes"
42211 else
42212   echo "$as_me: failed program was:" >&5
42213 sed 's/^/| /' conftest.$ac_ext >&5
42214
42215 eval "$as_ac_var=no"
42216 fi
42217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42218 fi
42219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42221 if test `eval echo '${'$as_ac_var'}'` = yes; then
42222   cat >>confdefs.h <<_ACEOF
42223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42224 _ACEOF
42225
42226 fi
42227 done
42228
42229
42230 for ac_header in sys/sysctl.h
42231 do
42232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42234   echo "$as_me:$LINENO: checking for $ac_header" >&5
42235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42237   echo $ECHO_N "(cached) $ECHO_C" >&6
42238 fi
42239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42241 else
42242   # Is the header compilable?
42243 echo "$as_me:$LINENO: checking $ac_header usability" >&5
42244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42245 cat >conftest.$ac_ext <<_ACEOF
42246 /* confdefs.h.  */
42247 _ACEOF
42248 cat confdefs.h >>conftest.$ac_ext
42249 cat >>conftest.$ac_ext <<_ACEOF
42250 /* end confdefs.h.  */
42251 $ac_includes_default
42252 #include <$ac_header>
42253 _ACEOF
42254 rm -f conftest.$ac_objext
42255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42256   (eval $ac_compile) 2>&5
42257   ac_status=$?
42258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42259   (exit $ac_status); } &&
42260          { ac_try='test -s conftest.$ac_objext'
42261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42262   (eval $ac_try) 2>&5
42263   ac_status=$?
42264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42265   (exit $ac_status); }; }; then
42266   ac_header_compiler=yes
42267 else
42268   echo "$as_me: failed program was:" >&5
42269 sed 's/^/| /' conftest.$ac_ext >&5
42270
42271 ac_header_compiler=no
42272 fi
42273 rm -f conftest.$ac_objext conftest.$ac_ext
42274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42275 echo "${ECHO_T}$ac_header_compiler" >&6
42276
42277 # Is the header present?
42278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
42279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42280 cat >conftest.$ac_ext <<_ACEOF
42281 /* confdefs.h.  */
42282 _ACEOF
42283 cat confdefs.h >>conftest.$ac_ext
42284 cat >>conftest.$ac_ext <<_ACEOF
42285 /* end confdefs.h.  */
42286 #include <$ac_header>
42287 _ACEOF
42288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42289   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42290   ac_status=$?
42291   grep -v '^ *+' conftest.er1 >conftest.err
42292   rm -f conftest.er1
42293   cat conftest.err >&5
42294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42295   (exit $ac_status); } >/dev/null; then
42296   if test -s conftest.err; then
42297     ac_cpp_err=$ac_c_preproc_warn_flag
42298   else
42299     ac_cpp_err=
42300   fi
42301 else
42302   ac_cpp_err=yes
42303 fi
42304 if test -z "$ac_cpp_err"; then
42305   ac_header_preproc=yes
42306 else
42307   echo "$as_me: failed program was:" >&5
42308 sed 's/^/| /' conftest.$ac_ext >&5
42309
42310   ac_header_preproc=no
42311 fi
42312 rm -f conftest.err conftest.$ac_ext
42313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42314 echo "${ECHO_T}$ac_header_preproc" >&6
42315
42316 # So?  What about this header?
42317 case $ac_header_compiler:$ac_header_preproc in
42318   yes:no )
42319     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42321     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42322 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42323     ac_header_preproc=yes
42324     ;;
42325   no:yes )
42326     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42328     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
42329 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
42330     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42331 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42332     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
42333 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
42334     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42336     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42337 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42338     (
42339       cat <<\_ASBOX
42340 ## ------------------------------------ ##
42341 ## Report this to bug-coreutils@gnu.org ##
42342 ## ------------------------------------ ##
42343 _ASBOX
42344     ) |
42345       sed "s/^/$as_me: WARNING:     /" >&2
42346     ;;
42347 esac
42348 echo "$as_me:$LINENO: checking for $ac_header" >&5
42349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42351   echo $ECHO_N "(cached) $ECHO_C" >&6
42352 else
42353   eval "$as_ac_Header=\$ac_header_preproc"
42354 fi
42355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42357
42358 fi
42359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42360   cat >>confdefs.h <<_ACEOF
42361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42362 _ACEOF
42363
42364 fi
42365
42366 done
42367
42368   echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
42369 echo $ECHO_N "checking whether we can get the system boot time... $ECHO_C" >&6
42370 if test "${gnulib_cv_have_boot_time+set}" = set; then
42371   echo $ECHO_N "(cached) $ECHO_C" >&6
42372 else
42373
42374       cat >conftest.$ac_ext <<_ACEOF
42375 /* confdefs.h.  */
42376 _ACEOF
42377 cat confdefs.h >>conftest.$ac_ext
42378 cat >>conftest.$ac_ext <<_ACEOF
42379 /* end confdefs.h.  */
42380 $ac_includes_default
42381 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
42382 # include <sys/param.h> /* needed for OpenBSD 3.0 */
42383 # include <sys/sysctl.h>
42384 #endif
42385 #ifdef HAVE_UTMPX_H
42386 # include <utmpx.h>
42387 #else
42388 # include <utmp.h>
42389 #endif
42390
42391 int
42392 main ()
42393 {
42394
42395 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME)
42396 /* your system *does* have the infrastructure to determine boot time */
42397 #else
42398 please_tell_us_how_to_determine_boot_time_on_your_system
42399 #endif
42400
42401   ;
42402   return 0;
42403 }
42404 _ACEOF
42405 rm -f conftest.$ac_objext
42406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42407   (eval $ac_compile) 2>&5
42408   ac_status=$?
42409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42410   (exit $ac_status); } &&
42411          { ac_try='test -s conftest.$ac_objext'
42412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42413   (eval $ac_try) 2>&5
42414   ac_status=$?
42415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42416   (exit $ac_status); }; }; then
42417   gnulib_cv_have_boot_time=yes
42418 else
42419   echo "$as_me: failed program was:" >&5
42420 sed 's/^/| /' conftest.$ac_ext >&5
42421
42422 gnulib_cv_have_boot_time=no
42423 fi
42424 rm -f conftest.$ac_objext conftest.$ac_ext
42425
42426 fi
42427 echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
42428 echo "${ECHO_T}$gnulib_cv_have_boot_time" >&6
42429   if test $gnulib_cv_have_boot_time = yes; then
42430   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uptime\$(EXEEXT)"
42431   MAN="$MAN uptime.1"
42432 fi
42433
42434
42435
42436 echo "$as_me:$LINENO: checking POSIX termios" >&5
42437 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
42438 if test "${ac_cv_sys_posix_termios+set}" = set; then
42439   echo $ECHO_N "(cached) $ECHO_C" >&6
42440 else
42441   cat >conftest.$ac_ext <<_ACEOF
42442 /* confdefs.h.  */
42443 _ACEOF
42444 cat confdefs.h >>conftest.$ac_ext
42445 cat >>conftest.$ac_ext <<_ACEOF
42446 /* end confdefs.h.  */
42447 #include <sys/types.h>
42448 #include <unistd.h>
42449 #include <termios.h>
42450
42451 int
42452 main ()
42453 {
42454 /* SunOS 4.0.3 has termios.h but not the library calls.  */
42455    tcgetattr(0, 0);
42456   ;
42457   return 0;
42458 }
42459 _ACEOF
42460 rm -f conftest.$ac_objext conftest$ac_exeext
42461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42462   (eval $ac_link) 2>&5
42463   ac_status=$?
42464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42465   (exit $ac_status); } &&
42466          { ac_try='test -s conftest$ac_exeext'
42467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42468   (eval $ac_try) 2>&5
42469   ac_status=$?
42470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42471   (exit $ac_status); }; }; then
42472   ac_cv_sys_posix_termios=yes
42473 else
42474   echo "$as_me: failed program was:" >&5
42475 sed 's/^/| /' conftest.$ac_ext >&5
42476
42477 ac_cv_sys_posix_termios=no
42478 fi
42479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42480 fi
42481 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
42482 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
42483
42484
42485  echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
42486 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
42487 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
42488   echo $ECHO_N "(cached) $ECHO_C" >&6
42489 else
42490   jm_cv_sys_tiocgwinsz_needs_termios_h=no
42491
42492    if test $ac_cv_sys_posix_termios = yes; then
42493      cat >conftest.$ac_ext <<_ACEOF
42494 /* confdefs.h.  */
42495 _ACEOF
42496 cat confdefs.h >>conftest.$ac_ext
42497 cat >>conftest.$ac_ext <<_ACEOF
42498 /* end confdefs.h.  */
42499 #include <sys/types.h>
42500 #      include <termios.h>
42501 #      ifdef TIOCGWINSZ
42502          yes
42503 #      endif
42504
42505 _ACEOF
42506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42507   $EGREP "yes" >/dev/null 2>&1; then
42508   jm_cv_sys_tiocgwinsz_needs_termios_h=yes
42509 fi
42510 rm -f conftest*
42511
42512    fi
42513
42514 fi
42515 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
42516 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
42517
42518
42519  echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
42520 echo $ECHO_N "checking whether use of TIOCGWINSZ requires sys/ioctl.h... $ECHO_C" >&6
42521 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
42522   echo $ECHO_N "(cached) $ECHO_C" >&6
42523 else
42524   jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
42525
42526   if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then
42527     cat >conftest.$ac_ext <<_ACEOF
42528 /* confdefs.h.  */
42529 _ACEOF
42530 cat confdefs.h >>conftest.$ac_ext
42531 cat >>conftest.$ac_ext <<_ACEOF
42532 /* end confdefs.h.  */
42533 #include <sys/types.h>
42534 #     include <sys/ioctl.h>
42535 #     ifdef TIOCGWINSZ
42536         yes
42537 #     endif
42538
42539 _ACEOF
42540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42541   $EGREP "yes" >/dev/null 2>&1; then
42542   jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
42543 fi
42544 rm -f conftest*
42545
42546   fi
42547
42548 fi
42549 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
42550 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6
42551   if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
42552
42553 cat >>confdefs.h <<\_ACEOF
42554 #define GWINSZ_IN_SYS_IOCTL 1
42555 _ACEOF
42556
42557   fi
42558
42559
42560 if test $ac_cv_sys_posix_termios = yes; then
42561   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS stty\$(EXEEXT)" MAN="$MAN stty.1"
42562
42563   echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
42564 echo $ECHO_N "checking whether termios.h needs _XOPEN_SOURCE... $ECHO_C" >&6
42565   if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
42566   echo $ECHO_N "(cached) $ECHO_C" >&6
42567 else
42568   cat >conftest.$ac_ext <<_ACEOF
42569 /* confdefs.h.  */
42570 _ACEOF
42571 cat confdefs.h >>conftest.$ac_ext
42572 cat >>conftest.$ac_ext <<_ACEOF
42573 /* end confdefs.h.  */
42574 #include <termios.h>
42575 #ifdef IUCLC
42576 yes
42577 #endif
42578 _ACEOF
42579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42580   $EGREP "yes" >/dev/null 2>&1; then
42581   su_cv_sys_termios_needs_xopen_source=no
42582 else
42583   cat >conftest.$ac_ext <<_ACEOF
42584 /* confdefs.h.  */
42585 _ACEOF
42586 cat confdefs.h >>conftest.$ac_ext
42587 cat >>conftest.$ac_ext <<_ACEOF
42588 /* end confdefs.h.  */
42589 #define _XOPEN_SOURCE
42590 #include <termios.h>
42591 #ifdef IUCLC
42592 yes
42593 #endif
42594 _ACEOF
42595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42596   $EGREP "yes" >/dev/null 2>&1; then
42597   su_cv_sys_termios_needs_xopen_source=yes
42598 else
42599   su_cv_sys_termios_needs_xopen_source=no
42600 fi
42601 rm -f conftest*
42602
42603 fi
42604 rm -f conftest*
42605
42606 fi
42607
42608   echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
42609 echo "${ECHO_T}$su_cv_sys_termios_needs_xopen_source" >&6
42610   test $su_cv_sys_termios_needs_xopen_source = yes &&
42611
42612 cat >>confdefs.h <<\_ACEOF
42613 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
42614 _ACEOF
42615
42616
42617   echo "$as_me:$LINENO: checking c_line in struct termios" >&5
42618 echo $ECHO_N "checking c_line in struct termios... $ECHO_C" >&6
42619   if test "${su_cv_sys_c_line_in_termios+set}" = set; then
42620   echo $ECHO_N "(cached) $ECHO_C" >&6
42621 else
42622   cat >conftest.$ac_ext <<_ACEOF
42623 /* confdefs.h.  */
42624 _ACEOF
42625 cat confdefs.h >>conftest.$ac_ext
42626 cat >>conftest.$ac_ext <<_ACEOF
42627 /* end confdefs.h.  */
42628 #if TERMIOS_NEEDS_XOPEN_SOURCE
42629 #define _XOPEN_SOURCE
42630 #endif
42631 #include <sys/types.h>
42632 #include <termios.h>
42633 int
42634 main ()
42635 {
42636 struct termios t; t.c_line;
42637   ;
42638   return 0;
42639 }
42640 _ACEOF
42641 rm -f conftest.$ac_objext conftest$ac_exeext
42642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42643   (eval $ac_link) 2>&5
42644   ac_status=$?
42645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42646   (exit $ac_status); } &&
42647          { ac_try='test -s conftest$ac_exeext'
42648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42649   (eval $ac_try) 2>&5
42650   ac_status=$?
42651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42652   (exit $ac_status); }; }; then
42653   su_cv_sys_c_line_in_termios=yes
42654 else
42655   echo "$as_me: failed program was:" >&5
42656 sed 's/^/| /' conftest.$ac_ext >&5
42657
42658 su_cv_sys_c_line_in_termios=no
42659 fi
42660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42661 fi
42662
42663   echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
42664 echo "${ECHO_T}$su_cv_sys_c_line_in_termios" >&6
42665   test $su_cv_sys_c_line_in_termios = yes \
42666     &&
42667 cat >>confdefs.h <<\_ACEOF
42668 #define HAVE_C_LINE 1
42669 _ACEOF
42670
42671 fi
42672
42673 # FIXME: note that this macro appears above, too.
42674 # I'm leaving it here for now.  This whole thing needs to be modernized...
42675
42676    echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
42677 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
42678 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
42679   echo $ECHO_N "(cached) $ECHO_C" >&6
42680 else
42681   jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
42682       if test $ac_cv_sys_posix_termios = yes; then
42683
42684 cat >conftest.$ac_ext <<_ACEOF
42685 /* confdefs.h.  */
42686 _ACEOF
42687 cat confdefs.h >>conftest.$ac_ext
42688 cat >>conftest.$ac_ext <<_ACEOF
42689 /* end confdefs.h.  */
42690 #include <termios.h>
42691           struct winsize x;
42692 int
42693 main ()
42694 {
42695 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
42696   ;
42697   return 0;
42698 }
42699 _ACEOF
42700 rm -f conftest.$ac_objext
42701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42702   (eval $ac_compile) 2>&5
42703   ac_status=$?
42704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42705   (exit $ac_status); } &&
42706          { ac_try='test -s conftest.$ac_objext'
42707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42708   (eval $ac_try) 2>&5
42709   ac_status=$?
42710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42711   (exit $ac_status); }; }; then
42712   :
42713 else
42714   echo "$as_me: failed program was:" >&5
42715 sed 's/^/| /' conftest.$ac_ext >&5
42716
42717 fi
42718 rm -f conftest.$ac_objext conftest.$ac_ext
42719       fi
42720       if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
42721
42722 cat >conftest.$ac_ext <<_ACEOF
42723 /* confdefs.h.  */
42724 _ACEOF
42725 cat confdefs.h >>conftest.$ac_ext
42726 cat >>conftest.$ac_ext <<_ACEOF
42727 /* end confdefs.h.  */
42728 #include <sys/ptem.h>
42729 int
42730 main ()
42731 {
42732 struct winsize x;
42733   ;
42734   return 0;
42735 }
42736 _ACEOF
42737 rm -f conftest.$ac_objext
42738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42739   (eval $ac_compile) 2>&5
42740   ac_status=$?
42741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42742   (exit $ac_status); } &&
42743          { ac_try='test -s conftest.$ac_objext'
42744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42745   (eval $ac_try) 2>&5
42746   ac_status=$?
42747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42748   (exit $ac_status); }; }; then
42749   :
42750 else
42751   echo "$as_me: failed program was:" >&5
42752 sed 's/^/| /' conftest.$ac_ext >&5
42753
42754 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
42755 fi
42756 rm -f conftest.$ac_objext conftest.$ac_ext
42757       fi
42758 fi
42759 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
42760 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
42761    if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
42762
42763 cat >>confdefs.h <<\_ACEOF
42764 #define WINSIZE_IN_PTEM 1
42765 _ACEOF
42766
42767    fi
42768
42769
42770  echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
42771 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
42772 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
42773   echo $ECHO_N "(cached) $ECHO_C" >&6
42774 else
42775   jm_cv_sys_tiocgwinsz_needs_termios_h=no
42776
42777    if test $ac_cv_sys_posix_termios = yes; then
42778      cat >conftest.$ac_ext <<_ACEOF
42779 /* confdefs.h.  */
42780 _ACEOF
42781 cat confdefs.h >>conftest.$ac_ext
42782 cat >>conftest.$ac_ext <<_ACEOF
42783 /* end confdefs.h.  */
42784 #include <sys/types.h>
42785 #      include <termios.h>
42786 #      ifdef TIOCGWINSZ
42787          yes
42788 #      endif
42789
42790 _ACEOF
42791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42792   $EGREP "yes" >/dev/null 2>&1; then
42793   jm_cv_sys_tiocgwinsz_needs_termios_h=yes
42794 fi
42795 rm -f conftest*
42796
42797    fi
42798
42799 fi
42800 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
42801 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
42802
42803
42804 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no && \
42805    test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no; then
42806   echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
42807 echo $ECHO_N "checking TIOCGWINSZ in sys/pty.h... $ECHO_C" >&6
42808   if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
42809   echo $ECHO_N "(cached) $ECHO_C" >&6
42810 else
42811   cat >conftest.$ac_ext <<_ACEOF
42812 /* confdefs.h.  */
42813 _ACEOF
42814 cat confdefs.h >>conftest.$ac_ext
42815 cat >>conftest.$ac_ext <<_ACEOF
42816 /* end confdefs.h.  */
42817 #include <sys/types.h>
42818 #ifdef WINSIZE_IN_PTEM
42819 # include <sys/stream.h>
42820 # include <sys/ptem.h>
42821 #endif
42822 #include <sys/ioctl.h>
42823 #include <sys/tty.h>
42824 #include <sys/pty.h>
42825 int
42826 main ()
42827 {
42828 int x = TIOCGWINSZ;
42829   ;
42830   return 0;
42831 }
42832 _ACEOF
42833 rm -f conftest.$ac_objext conftest$ac_exeext
42834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42835   (eval $ac_link) 2>&5
42836   ac_status=$?
42837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42838   (exit $ac_status); } &&
42839          { ac_try='test -s conftest$ac_exeext'
42840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42841   (eval $ac_try) 2>&5
42842   ac_status=$?
42843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42844   (exit $ac_status); }; }; then
42845   su_cv_sys_tiocgwinsz_in_sys_pty_h=yes
42846 else
42847   echo "$as_me: failed program was:" >&5
42848 sed 's/^/| /' conftest.$ac_ext >&5
42849
42850 su_cv_sys_tiocgwinsz_in_sys_pty_h=no
42851 fi
42852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42853 fi
42854
42855   echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
42856 echo "${ECHO_T}$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6
42857
42858   test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
42859       &&
42860 cat >>confdefs.h <<\_ACEOF
42861 #define GWINSZ_IN_SYS_PTY 1
42862 _ACEOF
42863
42864 fi
42865
42866 # For src/kill.c.
42867 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
42868 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
42869 if test "${ac_cv_have_decl_strsignal+set}" = set; then
42870   echo $ECHO_N "(cached) $ECHO_C" >&6
42871 else
42872   cat >conftest.$ac_ext <<_ACEOF
42873 /* confdefs.h.  */
42874 _ACEOF
42875 cat confdefs.h >>conftest.$ac_ext
42876 cat >>conftest.$ac_ext <<_ACEOF
42877 /* end confdefs.h.  */
42878 $ac_includes_default
42879 int
42880 main ()
42881 {
42882 #ifndef strsignal
42883   char *p = (char *) strsignal;
42884 #endif
42885
42886   ;
42887   return 0;
42888 }
42889 _ACEOF
42890 rm -f conftest.$ac_objext
42891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42892   (eval $ac_compile) 2>&5
42893   ac_status=$?
42894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42895   (exit $ac_status); } &&
42896          { ac_try='test -s conftest.$ac_objext'
42897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42898   (eval $ac_try) 2>&5
42899   ac_status=$?
42900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42901   (exit $ac_status); }; }; then
42902   ac_cv_have_decl_strsignal=yes
42903 else
42904   echo "$as_me: failed program was:" >&5
42905 sed 's/^/| /' conftest.$ac_ext >&5
42906
42907 ac_cv_have_decl_strsignal=no
42908 fi
42909 rm -f conftest.$ac_objext conftest.$ac_ext
42910 fi
42911 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
42912 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
42913 if test $ac_cv_have_decl_strsignal = yes; then
42914
42915 cat >>confdefs.h <<_ACEOF
42916 #define HAVE_DECL_STRSIGNAL 1
42917 _ACEOF
42918
42919
42920 else
42921   cat >>confdefs.h <<_ACEOF
42922 #define HAVE_DECL_STRSIGNAL 0
42923 _ACEOF
42924
42925
42926 fi
42927 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
42928 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
42929 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
42930   echo $ECHO_N "(cached) $ECHO_C" >&6
42931 else
42932   cat >conftest.$ac_ext <<_ACEOF
42933 /* confdefs.h.  */
42934 _ACEOF
42935 cat confdefs.h >>conftest.$ac_ext
42936 cat >>conftest.$ac_ext <<_ACEOF
42937 /* end confdefs.h.  */
42938 $ac_includes_default
42939 int
42940 main ()
42941 {
42942 #ifndef strtoimax
42943   char *p = (char *) strtoimax;
42944 #endif
42945
42946   ;
42947   return 0;
42948 }
42949 _ACEOF
42950 rm -f conftest.$ac_objext
42951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42952   (eval $ac_compile) 2>&5
42953   ac_status=$?
42954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42955   (exit $ac_status); } &&
42956          { ac_try='test -s conftest.$ac_objext'
42957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42958   (eval $ac_try) 2>&5
42959   ac_status=$?
42960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42961   (exit $ac_status); }; }; then
42962   ac_cv_have_decl_strtoimax=yes
42963 else
42964   echo "$as_me: failed program was:" >&5
42965 sed 's/^/| /' conftest.$ac_ext >&5
42966
42967 ac_cv_have_decl_strtoimax=no
42968 fi
42969 rm -f conftest.$ac_objext conftest.$ac_ext
42970 fi
42971 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
42972 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
42973 if test $ac_cv_have_decl_strtoimax = yes; then
42974
42975 cat >>confdefs.h <<_ACEOF
42976 #define HAVE_DECL_STRTOIMAX 1
42977 _ACEOF
42978
42979
42980 else
42981   cat >>confdefs.h <<_ACEOF
42982 #define HAVE_DECL_STRTOIMAX 0
42983 _ACEOF
42984
42985
42986 fi
42987 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
42988 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
42989 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
42990   echo $ECHO_N "(cached) $ECHO_C" >&6
42991 else
42992   cat >conftest.$ac_ext <<_ACEOF
42993 /* confdefs.h.  */
42994 _ACEOF
42995 cat confdefs.h >>conftest.$ac_ext
42996 cat >>conftest.$ac_ext <<_ACEOF
42997 /* end confdefs.h.  */
42998 $ac_includes_default
42999 int
43000 main ()
43001 {
43002 #ifndef sys_siglist
43003   char *p = (char *) sys_siglist;
43004 #endif
43005
43006   ;
43007   return 0;
43008 }
43009 _ACEOF
43010 rm -f conftest.$ac_objext
43011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43012   (eval $ac_compile) 2>&5
43013   ac_status=$?
43014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43015   (exit $ac_status); } &&
43016          { ac_try='test -s conftest.$ac_objext'
43017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43018   (eval $ac_try) 2>&5
43019   ac_status=$?
43020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43021   (exit $ac_status); }; }; then
43022   ac_cv_have_decl_sys_siglist=yes
43023 else
43024   echo "$as_me: failed program was:" >&5
43025 sed 's/^/| /' conftest.$ac_ext >&5
43026
43027 ac_cv_have_decl_sys_siglist=no
43028 fi
43029 rm -f conftest.$ac_objext conftest.$ac_ext
43030 fi
43031 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
43032 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
43033 if test $ac_cv_have_decl_sys_siglist = yes; then
43034
43035 cat >>confdefs.h <<_ACEOF
43036 #define HAVE_DECL_SYS_SIGLIST 1
43037 _ACEOF
43038
43039
43040 else
43041   cat >>confdefs.h <<_ACEOF
43042 #define HAVE_DECL_SYS_SIGLIST 0
43043 _ACEOF
43044
43045
43046 fi
43047 echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
43048 echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6
43049 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
43050   echo $ECHO_N "(cached) $ECHO_C" >&6
43051 else
43052   cat >conftest.$ac_ext <<_ACEOF
43053 /* confdefs.h.  */
43054 _ACEOF
43055 cat confdefs.h >>conftest.$ac_ext
43056 cat >>conftest.$ac_ext <<_ACEOF
43057 /* end confdefs.h.  */
43058 $ac_includes_default
43059 int
43060 main ()
43061 {
43062 #ifndef _sys_siglist
43063   char *p = (char *) _sys_siglist;
43064 #endif
43065
43066   ;
43067   return 0;
43068 }
43069 _ACEOF
43070 rm -f conftest.$ac_objext
43071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43072   (eval $ac_compile) 2>&5
43073   ac_status=$?
43074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43075   (exit $ac_status); } &&
43076          { ac_try='test -s conftest.$ac_objext'
43077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43078   (eval $ac_try) 2>&5
43079   ac_status=$?
43080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43081   (exit $ac_status); }; }; then
43082   ac_cv_have_decl__sys_siglist=yes
43083 else
43084   echo "$as_me: failed program was:" >&5
43085 sed 's/^/| /' conftest.$ac_ext >&5
43086
43087 ac_cv_have_decl__sys_siglist=no
43088 fi
43089 rm -f conftest.$ac_objext conftest.$ac_ext
43090 fi
43091 echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
43092 echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6
43093 if test $ac_cv_have_decl__sys_siglist = yes; then
43094
43095 cat >>confdefs.h <<_ACEOF
43096 #define HAVE_DECL__SYS_SIGLIST 1
43097 _ACEOF
43098
43099
43100 else
43101   cat >>confdefs.h <<_ACEOF
43102 #define HAVE_DECL__SYS_SIGLIST 0
43103 _ACEOF
43104
43105
43106 fi
43107 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
43108 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
43109 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
43110   echo $ECHO_N "(cached) $ECHO_C" >&6
43111 else
43112   cat >conftest.$ac_ext <<_ACEOF
43113 /* confdefs.h.  */
43114 _ACEOF
43115 cat confdefs.h >>conftest.$ac_ext
43116 cat >>conftest.$ac_ext <<_ACEOF
43117 /* end confdefs.h.  */
43118 $ac_includes_default
43119 int
43120 main ()
43121 {
43122 #ifndef __sys_siglist
43123   char *p = (char *) __sys_siglist;
43124 #endif
43125
43126   ;
43127   return 0;
43128 }
43129 _ACEOF
43130 rm -f conftest.$ac_objext
43131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43132   (eval $ac_compile) 2>&5
43133   ac_status=$?
43134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43135   (exit $ac_status); } &&
43136          { ac_try='test -s conftest.$ac_objext'
43137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43138   (eval $ac_try) 2>&5
43139   ac_status=$?
43140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43141   (exit $ac_status); }; }; then
43142   ac_cv_have_decl___sys_siglist=yes
43143 else
43144   echo "$as_me: failed program was:" >&5
43145 sed 's/^/| /' conftest.$ac_ext >&5
43146
43147 ac_cv_have_decl___sys_siglist=no
43148 fi
43149 rm -f conftest.$ac_objext conftest.$ac_ext
43150 fi
43151 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
43152 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
43153 if test $ac_cv_have_decl___sys_siglist = yes; then
43154
43155 cat >>confdefs.h <<_ACEOF
43156 #define HAVE_DECL___SYS_SIGLIST 1
43157 _ACEOF
43158
43159
43160 else
43161   cat >>confdefs.h <<_ACEOF
43162 #define HAVE_DECL___SYS_SIGLIST 0
43163 _ACEOF
43164
43165
43166 fi
43167
43168
43169
43170
43171
43172   # Check for libypsec.a on Dolphin M88K machines.
43173
43174 echo "$as_me:$LINENO: checking for main in -lypsec" >&5
43175 echo $ECHO_N "checking for main in -lypsec... $ECHO_C" >&6
43176 if test "${ac_cv_lib_ypsec_main+set}" = set; then
43177   echo $ECHO_N "(cached) $ECHO_C" >&6
43178 else
43179   ac_check_lib_save_LIBS=$LIBS
43180 LIBS="-lypsec  $LIBS"
43181 cat >conftest.$ac_ext <<_ACEOF
43182 /* confdefs.h.  */
43183 _ACEOF
43184 cat confdefs.h >>conftest.$ac_ext
43185 cat >>conftest.$ac_ext <<_ACEOF
43186 /* end confdefs.h.  */
43187
43188
43189 int
43190 main ()
43191 {
43192 main ();
43193   ;
43194   return 0;
43195 }
43196 _ACEOF
43197 rm -f conftest.$ac_objext conftest$ac_exeext
43198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43199   (eval $ac_link) 2>&5
43200   ac_status=$?
43201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43202   (exit $ac_status); } &&
43203          { ac_try='test -s conftest$ac_exeext'
43204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43205   (eval $ac_try) 2>&5
43206   ac_status=$?
43207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43208   (exit $ac_status); }; }; then
43209   ac_cv_lib_ypsec_main=yes
43210 else
43211   echo "$as_me: failed program was:" >&5
43212 sed 's/^/| /' conftest.$ac_ext >&5
43213
43214 ac_cv_lib_ypsec_main=no
43215 fi
43216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43217 LIBS=$ac_check_lib_save_LIBS
43218 fi
43219 echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
43220 echo "${ECHO_T}$ac_cv_lib_ypsec_main" >&6
43221 if test $ac_cv_lib_ypsec_main = yes; then
43222   cat >>confdefs.h <<_ACEOF
43223 #define HAVE_LIBYPSEC 1
43224 _ACEOF
43225
43226   LIBS="-lypsec $LIBS"
43227
43228 fi
43229
43230
43231   # m88k running dgux 5.4 needs this
43232
43233 echo "$as_me:$LINENO: checking for main in -lldgc" >&5
43234 echo $ECHO_N "checking for main in -lldgc... $ECHO_C" >&6
43235 if test "${ac_cv_lib_ldgc_main+set}" = set; then
43236   echo $ECHO_N "(cached) $ECHO_C" >&6
43237 else
43238   ac_check_lib_save_LIBS=$LIBS
43239 LIBS="-lldgc  $LIBS"
43240 cat >conftest.$ac_ext <<_ACEOF
43241 /* confdefs.h.  */
43242 _ACEOF
43243 cat confdefs.h >>conftest.$ac_ext
43244 cat >>conftest.$ac_ext <<_ACEOF
43245 /* end confdefs.h.  */
43246
43247
43248 int
43249 main ()
43250 {
43251 main ();
43252   ;
43253   return 0;
43254 }
43255 _ACEOF
43256 rm -f conftest.$ac_objext conftest$ac_exeext
43257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43258   (eval $ac_link) 2>&5
43259   ac_status=$?
43260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43261   (exit $ac_status); } &&
43262          { ac_try='test -s conftest$ac_exeext'
43263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43264   (eval $ac_try) 2>&5
43265   ac_status=$?
43266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43267   (exit $ac_status); }; }; then
43268   ac_cv_lib_ldgc_main=yes
43269 else
43270   echo "$as_me: failed program was:" >&5
43271 sed 's/^/| /' conftest.$ac_ext >&5
43272
43273 ac_cv_lib_ldgc_main=no
43274 fi
43275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43276 LIBS=$ac_check_lib_save_LIBS
43277 fi
43278 echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
43279 echo "${ECHO_T}$ac_cv_lib_ldgc_main" >&6
43280 if test $ac_cv_lib_ldgc_main = yes; then
43281   cat >>confdefs.h <<_ACEOF
43282 #define HAVE_LIBLDGC 1
43283 _ACEOF
43284
43285   LIBS="-lldgc $LIBS"
43286
43287 fi
43288
43289
43290   # Some programs need to link with -lm.  printf does if it uses
43291   # lib/strtod.c which uses pow.  And seq uses the math functions,
43292   # floor, modf, rint.  And factor uses sqrt.  And sleep uses fesetround.
43293
43294   # Save a copy of $LIBS and add $FLOOR_LIBM before these tests
43295   # Check for these math functions used by seq.
43296   ac_su_saved_lib="$LIBS"
43297   LIBS="$LIBS -lm"
43298
43299
43300
43301 for ac_func in floor modf rint
43302 do
43303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43304 echo "$as_me:$LINENO: checking for $ac_func" >&5
43305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43306 if eval "test \"\${$as_ac_var+set}\" = set"; then
43307   echo $ECHO_N "(cached) $ECHO_C" >&6
43308 else
43309   cat >conftest.$ac_ext <<_ACEOF
43310 /* confdefs.h.  */
43311 _ACEOF
43312 cat confdefs.h >>conftest.$ac_ext
43313 cat >>conftest.$ac_ext <<_ACEOF
43314 /* end confdefs.h.  */
43315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43316    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43317 #define $ac_func innocuous_$ac_func
43318
43319 /* System header to define __stub macros and hopefully few prototypes,
43320     which can conflict with char $ac_func (); below.
43321     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43322     <limits.h> exists even on freestanding compilers.  */
43323
43324 #ifdef __STDC__
43325 # include <limits.h>
43326 #else
43327 # include <assert.h>
43328 #endif
43329
43330 #undef $ac_func
43331
43332 /* Override any gcc2 internal prototype to avoid an error.  */
43333 #ifdef __cplusplus
43334 extern "C"
43335 {
43336 #endif
43337 /* We use char because int might match the return type of a gcc2
43338    builtin and then its argument prototype would still apply.  */
43339 char $ac_func ();
43340 /* The GNU C library defines this for functions which it implements
43341     to always fail with ENOSYS.  Some functions are actually named
43342     something starting with __ and the normal name is an alias.  */
43343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43344 choke me
43345 #else
43346 char (*f) () = $ac_func;
43347 #endif
43348 #ifdef __cplusplus
43349 }
43350 #endif
43351
43352 int
43353 main ()
43354 {
43355 return f != $ac_func;
43356   ;
43357   return 0;
43358 }
43359 _ACEOF
43360 rm -f conftest.$ac_objext conftest$ac_exeext
43361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43362   (eval $ac_link) 2>&5
43363   ac_status=$?
43364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43365   (exit $ac_status); } &&
43366          { ac_try='test -s conftest$ac_exeext'
43367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43368   (eval $ac_try) 2>&5
43369   ac_status=$?
43370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43371   (exit $ac_status); }; }; then
43372   eval "$as_ac_var=yes"
43373 else
43374   echo "$as_me: failed program was:" >&5
43375 sed 's/^/| /' conftest.$ac_ext >&5
43376
43377 eval "$as_ac_var=no"
43378 fi
43379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43380 fi
43381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43383 if test `eval echo '${'$as_ac_var'}'` = yes; then
43384   cat >>confdefs.h <<_ACEOF
43385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43386 _ACEOF
43387
43388 fi
43389 done
43390
43391   LIBS="$ac_su_saved_lib"
43392
43393
43394
43395 for ac_func in sqrt
43396 do
43397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43398 echo "$as_me:$LINENO: checking for $ac_func" >&5
43399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43400 if eval "test \"\${$as_ac_var+set}\" = set"; then
43401   echo $ECHO_N "(cached) $ECHO_C" >&6
43402 else
43403   cat >conftest.$ac_ext <<_ACEOF
43404 /* confdefs.h.  */
43405 _ACEOF
43406 cat confdefs.h >>conftest.$ac_ext
43407 cat >>conftest.$ac_ext <<_ACEOF
43408 /* end confdefs.h.  */
43409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43410    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43411 #define $ac_func innocuous_$ac_func
43412
43413 /* System header to define __stub macros and hopefully few prototypes,
43414     which can conflict with char $ac_func (); below.
43415     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43416     <limits.h> exists even on freestanding compilers.  */
43417
43418 #ifdef __STDC__
43419 # include <limits.h>
43420 #else
43421 # include <assert.h>
43422 #endif
43423
43424 #undef $ac_func
43425
43426 /* Override any gcc2 internal prototype to avoid an error.  */
43427 #ifdef __cplusplus
43428 extern "C"
43429 {
43430 #endif
43431 /* We use char because int might match the return type of a gcc2
43432    builtin and then its argument prototype would still apply.  */
43433 char $ac_func ();
43434 /* The GNU C library defines this for functions which it implements
43435     to always fail with ENOSYS.  Some functions are actually named
43436     something starting with __ and the normal name is an alias.  */
43437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43438 choke me
43439 #else
43440 char (*f) () = $ac_func;
43441 #endif
43442 #ifdef __cplusplus
43443 }
43444 #endif
43445
43446 int
43447 main ()
43448 {
43449 return f != $ac_func;
43450   ;
43451   return 0;
43452 }
43453 _ACEOF
43454 rm -f conftest.$ac_objext conftest$ac_exeext
43455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43456   (eval $ac_link) 2>&5
43457   ac_status=$?
43458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43459   (exit $ac_status); } &&
43460          { ac_try='test -s conftest$ac_exeext'
43461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43462   (eval $ac_try) 2>&5
43463   ac_status=$?
43464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43465   (exit $ac_status); }; }; then
43466   eval "$as_ac_var=yes"
43467 else
43468   echo "$as_me: failed program was:" >&5
43469 sed 's/^/| /' conftest.$ac_ext >&5
43470
43471 eval "$as_ac_var=no"
43472 fi
43473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43474 fi
43475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43477 if test `eval echo '${'$as_ac_var'}'` = yes; then
43478   cat >>confdefs.h <<_ACEOF
43479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43480 _ACEOF
43481
43482 fi
43483 done
43484
43485   if test $ac_cv_func_sqrt = no; then
43486     echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
43487 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
43488 if test "${ac_cv_lib_m_sqrt+set}" = set; then
43489   echo $ECHO_N "(cached) $ECHO_C" >&6
43490 else
43491   ac_check_lib_save_LIBS=$LIBS
43492 LIBS="-lm  $LIBS"
43493 cat >conftest.$ac_ext <<_ACEOF
43494 /* confdefs.h.  */
43495 _ACEOF
43496 cat confdefs.h >>conftest.$ac_ext
43497 cat >>conftest.$ac_ext <<_ACEOF
43498 /* end confdefs.h.  */
43499
43500 /* Override any gcc2 internal prototype to avoid an error.  */
43501 #ifdef __cplusplus
43502 extern "C"
43503 #endif
43504 /* We use char because int might match the return type of a gcc2
43505    builtin and then its argument prototype would still apply.  */
43506 char sqrt ();
43507 int
43508 main ()
43509 {
43510 sqrt ();
43511   ;
43512   return 0;
43513 }
43514 _ACEOF
43515 rm -f conftest.$ac_objext conftest$ac_exeext
43516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43517   (eval $ac_link) 2>&5
43518   ac_status=$?
43519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43520   (exit $ac_status); } &&
43521          { ac_try='test -s conftest$ac_exeext'
43522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43523   (eval $ac_try) 2>&5
43524   ac_status=$?
43525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43526   (exit $ac_status); }; }; then
43527   ac_cv_lib_m_sqrt=yes
43528 else
43529   echo "$as_me: failed program was:" >&5
43530 sed 's/^/| /' conftest.$ac_ext >&5
43531
43532 ac_cv_lib_m_sqrt=no
43533 fi
43534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43535 LIBS=$ac_check_lib_save_LIBS
43536 fi
43537 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
43538 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
43539 if test $ac_cv_lib_m_sqrt = yes; then
43540   SQRT_LIBM=-lm
43541 fi
43542
43543   fi
43544
43545
43546
43547 for ac_func in fesetround
43548 do
43549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43550 echo "$as_me:$LINENO: checking for $ac_func" >&5
43551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43552 if eval "test \"\${$as_ac_var+set}\" = set"; then
43553   echo $ECHO_N "(cached) $ECHO_C" >&6
43554 else
43555   cat >conftest.$ac_ext <<_ACEOF
43556 /* confdefs.h.  */
43557 _ACEOF
43558 cat confdefs.h >>conftest.$ac_ext
43559 cat >>conftest.$ac_ext <<_ACEOF
43560 /* end confdefs.h.  */
43561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43562    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43563 #define $ac_func innocuous_$ac_func
43564
43565 /* System header to define __stub macros and hopefully few prototypes,
43566     which can conflict with char $ac_func (); below.
43567     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43568     <limits.h> exists even on freestanding compilers.  */
43569
43570 #ifdef __STDC__
43571 # include <limits.h>
43572 #else
43573 # include <assert.h>
43574 #endif
43575
43576 #undef $ac_func
43577
43578 /* Override any gcc2 internal prototype to avoid an error.  */
43579 #ifdef __cplusplus
43580 extern "C"
43581 {
43582 #endif
43583 /* We use char because int might match the return type of a gcc2
43584    builtin and then its argument prototype would still apply.  */
43585 char $ac_func ();
43586 /* The GNU C library defines this for functions which it implements
43587     to always fail with ENOSYS.  Some functions are actually named
43588     something starting with __ and the normal name is an alias.  */
43589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43590 choke me
43591 #else
43592 char (*f) () = $ac_func;
43593 #endif
43594 #ifdef __cplusplus
43595 }
43596 #endif
43597
43598 int
43599 main ()
43600 {
43601 return f != $ac_func;
43602   ;
43603   return 0;
43604 }
43605 _ACEOF
43606 rm -f conftest.$ac_objext conftest$ac_exeext
43607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43608   (eval $ac_link) 2>&5
43609   ac_status=$?
43610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43611   (exit $ac_status); } &&
43612          { ac_try='test -s conftest$ac_exeext'
43613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43614   (eval $ac_try) 2>&5
43615   ac_status=$?
43616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43617   (exit $ac_status); }; }; then
43618   eval "$as_ac_var=yes"
43619 else
43620   echo "$as_me: failed program was:" >&5
43621 sed 's/^/| /' conftest.$ac_ext >&5
43622
43623 eval "$as_ac_var=no"
43624 fi
43625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43626 fi
43627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43629 if test `eval echo '${'$as_ac_var'}'` = yes; then
43630   cat >>confdefs.h <<_ACEOF
43631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43632 _ACEOF
43633
43634 fi
43635 done
43636
43637   if test $ac_cv_func_fesetround = no; then
43638     echo "$as_me:$LINENO: checking for fesetround in -lm" >&5
43639 echo $ECHO_N "checking for fesetround in -lm... $ECHO_C" >&6
43640 if test "${ac_cv_lib_m_fesetround+set}" = set; then
43641   echo $ECHO_N "(cached) $ECHO_C" >&6
43642 else
43643   ac_check_lib_save_LIBS=$LIBS
43644 LIBS="-lm  $LIBS"
43645 cat >conftest.$ac_ext <<_ACEOF
43646 /* confdefs.h.  */
43647 _ACEOF
43648 cat confdefs.h >>conftest.$ac_ext
43649 cat >>conftest.$ac_ext <<_ACEOF
43650 /* end confdefs.h.  */
43651
43652 /* Override any gcc2 internal prototype to avoid an error.  */
43653 #ifdef __cplusplus
43654 extern "C"
43655 #endif
43656 /* We use char because int might match the return type of a gcc2
43657    builtin and then its argument prototype would still apply.  */
43658 char fesetround ();
43659 int
43660 main ()
43661 {
43662 fesetround ();
43663   ;
43664   return 0;
43665 }
43666 _ACEOF
43667 rm -f conftest.$ac_objext conftest$ac_exeext
43668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43669   (eval $ac_link) 2>&5
43670   ac_status=$?
43671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43672   (exit $ac_status); } &&
43673          { ac_try='test -s conftest$ac_exeext'
43674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43675   (eval $ac_try) 2>&5
43676   ac_status=$?
43677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43678   (exit $ac_status); }; }; then
43679   ac_cv_lib_m_fesetround=yes
43680 else
43681   echo "$as_me: failed program was:" >&5
43682 sed 's/^/| /' conftest.$ac_ext >&5
43683
43684 ac_cv_lib_m_fesetround=no
43685 fi
43686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43687 LIBS=$ac_check_lib_save_LIBS
43688 fi
43689 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fesetround" >&5
43690 echo "${ECHO_T}$ac_cv_lib_m_fesetround" >&6
43691 if test $ac_cv_lib_m_fesetround = yes; then
43692   FESETROUND_LIBM=-lm
43693 fi
43694
43695   fi
43696
43697   # The -lsun library is required for YP support on Irix-4.0.5 systems.
43698   # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
43699
43700   echo "$as_me:$LINENO: checking for library containing yp_match" >&5
43701 echo $ECHO_N "checking for library containing yp_match... $ECHO_C" >&6
43702 if test "${ac_cv_search_yp_match+set}" = set; then
43703   echo $ECHO_N "(cached) $ECHO_C" >&6
43704 else
43705
43706     ac_func_search_save_LIBS=$LIBS
43707     ac_cv_search_yp_match=no
43708     cat >conftest.$ac_ext <<_ACEOF
43709 /* confdefs.h.  */
43710 _ACEOF
43711 cat confdefs.h >>conftest.$ac_ext
43712 cat >>conftest.$ac_ext <<_ACEOF
43713 /* end confdefs.h.  */
43714
43715 /* Override any gcc2 internal prototype to avoid an error.  */
43716 #ifdef __cplusplus
43717 extern "C"
43718 #endif
43719 /* We use char because int might match the return type of a gcc2
43720    builtin and then its argument prototype would still apply.  */
43721 char yp_match ();
43722 int
43723 main ()
43724 {
43725 yp_match ();
43726   ;
43727   return 0;
43728 }
43729 _ACEOF
43730 rm -f conftest.$ac_objext conftest$ac_exeext
43731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43732   (eval $ac_link) 2>&5
43733   ac_status=$?
43734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43735   (exit $ac_status); } &&
43736          { ac_try='test -s conftest$ac_exeext'
43737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43738   (eval $ac_try) 2>&5
43739   ac_status=$?
43740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43741   (exit $ac_status); }; }; then
43742   ac_cv_search_yp_match='none required'
43743 else
43744   echo "$as_me: failed program was:" >&5
43745 sed 's/^/| /' conftest.$ac_ext >&5
43746
43747 fi
43748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43749     if test "$ac_cv_search_yp_match" = no; then
43750       for ac_lib in sun ypsec; do
43751         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
43752         cat >conftest.$ac_ext <<_ACEOF
43753 /* confdefs.h.  */
43754 _ACEOF
43755 cat confdefs.h >>conftest.$ac_ext
43756 cat >>conftest.$ac_ext <<_ACEOF
43757 /* end confdefs.h.  */
43758
43759 /* Override any gcc2 internal prototype to avoid an error.  */
43760 #ifdef __cplusplus
43761 extern "C"
43762 #endif
43763 /* We use char because int might match the return type of a gcc2
43764    builtin and then its argument prototype would still apply.  */
43765 char yp_match ();
43766 int
43767 main ()
43768 {
43769 yp_match ();
43770   ;
43771   return 0;
43772 }
43773 _ACEOF
43774 rm -f conftest.$ac_objext conftest$ac_exeext
43775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43776   (eval $ac_link) 2>&5
43777   ac_status=$?
43778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43779   (exit $ac_status); } &&
43780          { ac_try='test -s conftest$ac_exeext'
43781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43782   (eval $ac_try) 2>&5
43783   ac_status=$?
43784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43785   (exit $ac_status); }; }; then
43786   ac_cv_search_yp_match="-l$ac_lib"; break
43787 else
43788   echo "$as_me: failed program was:" >&5
43789 sed 's/^/| /' conftest.$ac_ext >&5
43790
43791 fi
43792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43793       done
43794     fi
43795     LIBS=$ac_func_search_save_LIBS
43796
43797 fi
43798 echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
43799 echo "${ECHO_T}$ac_cv_search_yp_match" >&6
43800
43801   if test "$ac_cv_search_yp_match" = no; then :
43802
43803   else
43804     if test "$ac_cv_search_yp_match" = 'none required'; then :
43805
43806     else
43807       LIBS="$ac_cv_search_yp_match $LIBS"
43808
43809     fi
43810   fi
43811
43812
43813   # SysV needs -lsec, older versions of Linux need -lshadow for
43814   # shadow passwords.  UnixWare 7 needs -lgen.
43815
43816   echo "$as_me:$LINENO: checking for library containing getspnam" >&5
43817 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
43818 if test "${ac_cv_search_getspnam+set}" = set; then
43819   echo $ECHO_N "(cached) $ECHO_C" >&6
43820 else
43821
43822     ac_func_search_save_LIBS=$LIBS
43823     ac_cv_search_getspnam=no
43824     cat >conftest.$ac_ext <<_ACEOF
43825 /* confdefs.h.  */
43826 _ACEOF
43827 cat confdefs.h >>conftest.$ac_ext
43828 cat >>conftest.$ac_ext <<_ACEOF
43829 /* end confdefs.h.  */
43830
43831 /* Override any gcc2 internal prototype to avoid an error.  */
43832 #ifdef __cplusplus
43833 extern "C"
43834 #endif
43835 /* We use char because int might match the return type of a gcc2
43836    builtin and then its argument prototype would still apply.  */
43837 char getspnam ();
43838 int
43839 main ()
43840 {
43841 getspnam ();
43842   ;
43843   return 0;
43844 }
43845 _ACEOF
43846 rm -f conftest.$ac_objext conftest$ac_exeext
43847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43848   (eval $ac_link) 2>&5
43849   ac_status=$?
43850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43851   (exit $ac_status); } &&
43852          { ac_try='test -s conftest$ac_exeext'
43853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43854   (eval $ac_try) 2>&5
43855   ac_status=$?
43856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43857   (exit $ac_status); }; }; then
43858   ac_cv_search_getspnam='none required'
43859 else
43860   echo "$as_me: failed program was:" >&5
43861 sed 's/^/| /' conftest.$ac_ext >&5
43862
43863 fi
43864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43865     if test "$ac_cv_search_getspnam" = no; then
43866       for ac_lib in shadow sec gen; do
43867         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
43868         cat >conftest.$ac_ext <<_ACEOF
43869 /* confdefs.h.  */
43870 _ACEOF
43871 cat confdefs.h >>conftest.$ac_ext
43872 cat >>conftest.$ac_ext <<_ACEOF
43873 /* end confdefs.h.  */
43874
43875 /* Override any gcc2 internal prototype to avoid an error.  */
43876 #ifdef __cplusplus
43877 extern "C"
43878 #endif
43879 /* We use char because int might match the return type of a gcc2
43880    builtin and then its argument prototype would still apply.  */
43881 char getspnam ();
43882 int
43883 main ()
43884 {
43885 getspnam ();
43886   ;
43887   return 0;
43888 }
43889 _ACEOF
43890 rm -f conftest.$ac_objext conftest$ac_exeext
43891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43892   (eval $ac_link) 2>&5
43893   ac_status=$?
43894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43895   (exit $ac_status); } &&
43896          { ac_try='test -s conftest$ac_exeext'
43897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43898   (eval $ac_try) 2>&5
43899   ac_status=$?
43900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43901   (exit $ac_status); }; }; then
43902   ac_cv_search_getspnam="-l$ac_lib"; break
43903 else
43904   echo "$as_me: failed program was:" >&5
43905 sed 's/^/| /' conftest.$ac_ext >&5
43906
43907 fi
43908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43909       done
43910     fi
43911     LIBS=$ac_func_search_save_LIBS
43912
43913 fi
43914 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
43915 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
43916
43917   if test "$ac_cv_search_getspnam" = no; then :
43918
43919   else
43920     if test "$ac_cv_search_getspnam" = 'none required'; then :
43921
43922     else
43923       LIBS="$ac_cv_search_getspnam $LIBS"
43924
43925     fi
43926   fi
43927
43928
43929
43930 for ac_header in shadow.h
43931 do
43932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43934   echo "$as_me:$LINENO: checking for $ac_header" >&5
43935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43937   echo $ECHO_N "(cached) $ECHO_C" >&6
43938 fi
43939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43941 else
43942   # Is the header compilable?
43943 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43945 cat >conftest.$ac_ext <<_ACEOF
43946 /* confdefs.h.  */
43947 _ACEOF
43948 cat confdefs.h >>conftest.$ac_ext
43949 cat >>conftest.$ac_ext <<_ACEOF
43950 /* end confdefs.h.  */
43951 $ac_includes_default
43952 #include <$ac_header>
43953 _ACEOF
43954 rm -f conftest.$ac_objext
43955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43956   (eval $ac_compile) 2>&5
43957   ac_status=$?
43958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43959   (exit $ac_status); } &&
43960          { ac_try='test -s conftest.$ac_objext'
43961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43962   (eval $ac_try) 2>&5
43963   ac_status=$?
43964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43965   (exit $ac_status); }; }; then
43966   ac_header_compiler=yes
43967 else
43968   echo "$as_me: failed program was:" >&5
43969 sed 's/^/| /' conftest.$ac_ext >&5
43970
43971 ac_header_compiler=no
43972 fi
43973 rm -f conftest.$ac_objext conftest.$ac_ext
43974 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43975 echo "${ECHO_T}$ac_header_compiler" >&6
43976
43977 # Is the header present?
43978 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43980 cat >conftest.$ac_ext <<_ACEOF
43981 /* confdefs.h.  */
43982 _ACEOF
43983 cat confdefs.h >>conftest.$ac_ext
43984 cat >>conftest.$ac_ext <<_ACEOF
43985 /* end confdefs.h.  */
43986 #include <$ac_header>
43987 _ACEOF
43988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43989   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43990   ac_status=$?
43991   grep -v '^ *+' conftest.er1 >conftest.err
43992   rm -f conftest.er1
43993   cat conftest.err >&5
43994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43995   (exit $ac_status); } >/dev/null; then
43996   if test -s conftest.err; then
43997     ac_cpp_err=$ac_c_preproc_warn_flag
43998   else
43999     ac_cpp_err=
44000   fi
44001 else
44002   ac_cpp_err=yes
44003 fi
44004 if test -z "$ac_cpp_err"; then
44005   ac_header_preproc=yes
44006 else
44007   echo "$as_me: failed program was:" >&5
44008 sed 's/^/| /' conftest.$ac_ext >&5
44009
44010   ac_header_preproc=no
44011 fi
44012 rm -f conftest.err conftest.$ac_ext
44013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44014 echo "${ECHO_T}$ac_header_preproc" >&6
44015
44016 # So?  What about this header?
44017 case $ac_header_compiler:$ac_header_preproc in
44018   yes:no )
44019     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44021     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44023     ac_header_preproc=yes
44024     ;;
44025   no:yes )
44026     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44028     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44029 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44030     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44032     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44033 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44034     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44036     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44038     (
44039       cat <<\_ASBOX
44040 ## ------------------------------------ ##
44041 ## Report this to bug-coreutils@gnu.org ##
44042 ## ------------------------------------ ##
44043 _ASBOX
44044     ) |
44045       sed "s/^/$as_me: WARNING:     /" >&2
44046     ;;
44047 esac
44048 echo "$as_me:$LINENO: checking for $ac_header" >&5
44049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44051   echo $ECHO_N "(cached) $ECHO_C" >&6
44052 else
44053   eval "$as_ac_Header=\$ac_header_preproc"
44054 fi
44055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44057
44058 fi
44059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44060   cat >>confdefs.h <<_ACEOF
44061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44062 _ACEOF
44063
44064 fi
44065
44066 done
44067
44068
44069   # Requirements for su.c.
44070   shadow_includes="\
44071 $ac_includes_default
44072 #if HAVE_SHADOW_H
44073 # include <shadow.h>
44074 #endif
44075 "
44076   echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
44077 echo $ECHO_N "checking for struct spwd.sp_pwdp... $ECHO_C" >&6
44078 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
44079   echo $ECHO_N "(cached) $ECHO_C" >&6
44080 else
44081   cat >conftest.$ac_ext <<_ACEOF
44082 /* confdefs.h.  */
44083 _ACEOF
44084 cat confdefs.h >>conftest.$ac_ext
44085 cat >>conftest.$ac_ext <<_ACEOF
44086 /* end confdefs.h.  */
44087 $shadow_includes
44088
44089 int
44090 main ()
44091 {
44092 static struct spwd ac_aggr;
44093 if (ac_aggr.sp_pwdp)
44094 return 0;
44095   ;
44096   return 0;
44097 }
44098 _ACEOF
44099 rm -f conftest.$ac_objext
44100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44101   (eval $ac_compile) 2>&5
44102   ac_status=$?
44103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44104   (exit $ac_status); } &&
44105          { ac_try='test -s conftest.$ac_objext'
44106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44107   (eval $ac_try) 2>&5
44108   ac_status=$?
44109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44110   (exit $ac_status); }; }; then
44111   ac_cv_member_struct_spwd_sp_pwdp=yes
44112 else
44113   echo "$as_me: failed program was:" >&5
44114 sed 's/^/| /' conftest.$ac_ext >&5
44115
44116 cat >conftest.$ac_ext <<_ACEOF
44117 /* confdefs.h.  */
44118 _ACEOF
44119 cat confdefs.h >>conftest.$ac_ext
44120 cat >>conftest.$ac_ext <<_ACEOF
44121 /* end confdefs.h.  */
44122 $shadow_includes
44123
44124 int
44125 main ()
44126 {
44127 static struct spwd ac_aggr;
44128 if (sizeof ac_aggr.sp_pwdp)
44129 return 0;
44130   ;
44131   return 0;
44132 }
44133 _ACEOF
44134 rm -f conftest.$ac_objext
44135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44136   (eval $ac_compile) 2>&5
44137   ac_status=$?
44138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44139   (exit $ac_status); } &&
44140          { ac_try='test -s conftest.$ac_objext'
44141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44142   (eval $ac_try) 2>&5
44143   ac_status=$?
44144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44145   (exit $ac_status); }; }; then
44146   ac_cv_member_struct_spwd_sp_pwdp=yes
44147 else
44148   echo "$as_me: failed program was:" >&5
44149 sed 's/^/| /' conftest.$ac_ext >&5
44150
44151 ac_cv_member_struct_spwd_sp_pwdp=no
44152 fi
44153 rm -f conftest.$ac_objext conftest.$ac_ext
44154 fi
44155 rm -f conftest.$ac_objext conftest.$ac_ext
44156 fi
44157 echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
44158 echo "${ECHO_T}$ac_cv_member_struct_spwd_sp_pwdp" >&6
44159 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
44160
44161 cat >>confdefs.h <<_ACEOF
44162 #define HAVE_STRUCT_SPWD_SP_PWDP 1
44163 _ACEOF
44164
44165
44166 fi
44167
44168
44169 for ac_func in getspnam
44170 do
44171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44172 echo "$as_me:$LINENO: checking for $ac_func" >&5
44173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44174 if eval "test \"\${$as_ac_var+set}\" = set"; then
44175   echo $ECHO_N "(cached) $ECHO_C" >&6
44176 else
44177   cat >conftest.$ac_ext <<_ACEOF
44178 /* confdefs.h.  */
44179 _ACEOF
44180 cat confdefs.h >>conftest.$ac_ext
44181 cat >>conftest.$ac_ext <<_ACEOF
44182 /* end confdefs.h.  */
44183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44185 #define $ac_func innocuous_$ac_func
44186
44187 /* System header to define __stub macros and hopefully few prototypes,
44188     which can conflict with char $ac_func (); below.
44189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44190     <limits.h> exists even on freestanding compilers.  */
44191
44192 #ifdef __STDC__
44193 # include <limits.h>
44194 #else
44195 # include <assert.h>
44196 #endif
44197
44198 #undef $ac_func
44199
44200 /* Override any gcc2 internal prototype to avoid an error.  */
44201 #ifdef __cplusplus
44202 extern "C"
44203 {
44204 #endif
44205 /* We use char because int might match the return type of a gcc2
44206    builtin and then its argument prototype would still apply.  */
44207 char $ac_func ();
44208 /* The GNU C library defines this for functions which it implements
44209     to always fail with ENOSYS.  Some functions are actually named
44210     something starting with __ and the normal name is an alias.  */
44211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44212 choke me
44213 #else
44214 char (*f) () = $ac_func;
44215 #endif
44216 #ifdef __cplusplus
44217 }
44218 #endif
44219
44220 int
44221 main ()
44222 {
44223 return f != $ac_func;
44224   ;
44225   return 0;
44226 }
44227 _ACEOF
44228 rm -f conftest.$ac_objext conftest$ac_exeext
44229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44230   (eval $ac_link) 2>&5
44231   ac_status=$?
44232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44233   (exit $ac_status); } &&
44234          { ac_try='test -s conftest$ac_exeext'
44235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44236   (eval $ac_try) 2>&5
44237   ac_status=$?
44238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44239   (exit $ac_status); }; }; then
44240   eval "$as_ac_var=yes"
44241 else
44242   echo "$as_me: failed program was:" >&5
44243 sed 's/^/| /' conftest.$ac_ext >&5
44244
44245 eval "$as_ac_var=no"
44246 fi
44247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44248 fi
44249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44251 if test `eval echo '${'$as_ac_var'}'` = yes; then
44252   cat >>confdefs.h <<_ACEOF
44253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44254 _ACEOF
44255
44256 fi
44257 done
44258
44259
44260   # SCO-ODT-3.0 is reported to need -lufc for crypt.
44261   # NetBSD needs -lcrypt for crypt.
44262   ac_su_saved_lib="$LIBS"
44263
44264   echo "$as_me:$LINENO: checking for library containing crypt" >&5
44265 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
44266 if test "${ac_cv_search_crypt+set}" = set; then
44267   echo $ECHO_N "(cached) $ECHO_C" >&6
44268 else
44269
44270     ac_func_search_save_LIBS=$LIBS
44271     ac_cv_search_crypt=no
44272     cat >conftest.$ac_ext <<_ACEOF
44273 /* confdefs.h.  */
44274 _ACEOF
44275 cat confdefs.h >>conftest.$ac_ext
44276 cat >>conftest.$ac_ext <<_ACEOF
44277 /* end confdefs.h.  */
44278
44279 /* Override any gcc2 internal prototype to avoid an error.  */
44280 #ifdef __cplusplus
44281 extern "C"
44282 #endif
44283 /* We use char because int might match the return type of a gcc2
44284    builtin and then its argument prototype would still apply.  */
44285 char crypt ();
44286 int
44287 main ()
44288 {
44289 crypt ();
44290   ;
44291   return 0;
44292 }
44293 _ACEOF
44294 rm -f conftest.$ac_objext conftest$ac_exeext
44295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44296   (eval $ac_link) 2>&5
44297   ac_status=$?
44298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44299   (exit $ac_status); } &&
44300          { ac_try='test -s conftest$ac_exeext'
44301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44302   (eval $ac_try) 2>&5
44303   ac_status=$?
44304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44305   (exit $ac_status); }; }; then
44306   ac_cv_search_crypt='none required'
44307 else
44308   echo "$as_me: failed program was:" >&5
44309 sed 's/^/| /' conftest.$ac_ext >&5
44310
44311 fi
44312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44313     if test "$ac_cv_search_crypt" = no; then
44314       for ac_lib in ufc crypt; do
44315         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
44316         cat >conftest.$ac_ext <<_ACEOF
44317 /* confdefs.h.  */
44318 _ACEOF
44319 cat confdefs.h >>conftest.$ac_ext
44320 cat >>conftest.$ac_ext <<_ACEOF
44321 /* end confdefs.h.  */
44322
44323 /* Override any gcc2 internal prototype to avoid an error.  */
44324 #ifdef __cplusplus
44325 extern "C"
44326 #endif
44327 /* We use char because int might match the return type of a gcc2
44328    builtin and then its argument prototype would still apply.  */
44329 char crypt ();
44330 int
44331 main ()
44332 {
44333 crypt ();
44334   ;
44335   return 0;
44336 }
44337 _ACEOF
44338 rm -f conftest.$ac_objext conftest$ac_exeext
44339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44340   (eval $ac_link) 2>&5
44341   ac_status=$?
44342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44343   (exit $ac_status); } &&
44344          { ac_try='test -s conftest$ac_exeext'
44345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44346   (eval $ac_try) 2>&5
44347   ac_status=$?
44348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44349   (exit $ac_status); }; }; then
44350   ac_cv_search_crypt="-l$ac_lib"; break
44351 else
44352   echo "$as_me: failed program was:" >&5
44353 sed 's/^/| /' conftest.$ac_ext >&5
44354
44355 fi
44356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44357       done
44358     fi
44359     LIBS=$ac_func_search_save_LIBS
44360
44361 fi
44362 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
44363 echo "${ECHO_T}$ac_cv_search_crypt" >&6
44364
44365   if test "$ac_cv_search_crypt" = no; then :
44366
44367   else
44368     if test "$ac_cv_search_crypt" = 'none required'; then :
44369
44370     else
44371       LIBS="$ac_cv_search_crypt $LIBS"
44372       LIB_CRYPT="$ac_cv_search_crypt"
44373     fi
44374   fi
44375
44376   LIBS="$ac_su_saved_lib"
44377
44378
44379
44380
44381         MKINSTALLDIRS=
44382   if test -n "$ac_aux_dir"; then
44383     case "$ac_aux_dir" in
44384       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
44385       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
44386     esac
44387   fi
44388   if test -z "$MKINSTALLDIRS"; then
44389     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
44390   fi
44391
44392
44393
44394   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
44395 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
44396     # Check whether --enable-nls or --disable-nls was given.
44397 if test "${enable_nls+set}" = set; then
44398   enableval="$enable_nls"
44399   USE_NLS=$enableval
44400 else
44401   USE_NLS=yes
44402 fi;
44403   echo "$as_me:$LINENO: result: $USE_NLS" >&5
44404 echo "${ECHO_T}$USE_NLS" >&6
44405
44406
44407
44408
44409
44410
44411 # Prepare PATH_SEPARATOR.
44412 # The user is always right.
44413 if test "${PATH_SEPARATOR+set}" != set; then
44414   echo "#! /bin/sh" >conf$$.sh
44415   echo  "exit 0"   >>conf$$.sh
44416   chmod +x conf$$.sh
44417   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44418     PATH_SEPARATOR=';'
44419   else
44420     PATH_SEPARATOR=:
44421   fi
44422   rm -f conf$$.sh
44423 fi
44424
44425 # Find out how to test for executable files. Don't use a zero-byte file,
44426 # as systems may use methods other than mode bits to determine executability.
44427 cat >conf$$.file <<_ASEOF
44428 #! /bin/sh
44429 exit 0
44430 _ASEOF
44431 chmod +x conf$$.file
44432 if test -x conf$$.file >/dev/null 2>&1; then
44433   ac_executable_p="test -x"
44434 else
44435   ac_executable_p="test -f"
44436 fi
44437 rm -f conf$$.file
44438
44439 # Extract the first word of "msgfmt", so it can be a program name with args.
44440 set dummy msgfmt; ac_word=$2
44441 echo "$as_me:$LINENO: checking for $ac_word" >&5
44442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44443 if test "${ac_cv_path_MSGFMT+set}" = set; then
44444   echo $ECHO_N "(cached) $ECHO_C" >&6
44445 else
44446   case "$MSGFMT" in
44447   [\\/]* | ?:[\\/]*)
44448     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
44449     ;;
44450   *)
44451     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
44452     for ac_dir in $PATH; do
44453       IFS="$ac_save_IFS"
44454       test -z "$ac_dir" && ac_dir=.
44455       for ac_exec_ext in '' $ac_executable_extensions; do
44456         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
44457           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
44458      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
44459             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
44460             break 2
44461           fi
44462         fi
44463       done
44464     done
44465     IFS="$ac_save_IFS"
44466   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
44467     ;;
44468 esac
44469 fi
44470 MSGFMT="$ac_cv_path_MSGFMT"
44471 if test "$MSGFMT" != ":"; then
44472   echo "$as_me:$LINENO: result: $MSGFMT" >&5
44473 echo "${ECHO_T}$MSGFMT" >&6
44474 else
44475   echo "$as_me:$LINENO: result: no" >&5
44476 echo "${ECHO_T}no" >&6
44477 fi
44478
44479   # Extract the first word of "gmsgfmt", so it can be a program name with args.
44480 set dummy gmsgfmt; ac_word=$2
44481 echo "$as_me:$LINENO: checking for $ac_word" >&5
44482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44483 if test "${ac_cv_path_GMSGFMT+set}" = set; then
44484   echo $ECHO_N "(cached) $ECHO_C" >&6
44485 else
44486   case $GMSGFMT in
44487   [\\/]* | ?:[\\/]*)
44488   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
44489   ;;
44490   *)
44491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44492 for as_dir in $PATH
44493 do
44494   IFS=$as_save_IFS
44495   test -z "$as_dir" && as_dir=.
44496   for ac_exec_ext in '' $ac_executable_extensions; do
44497   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44498     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
44499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44500     break 2
44501   fi
44502 done
44503 done
44504
44505   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
44506   ;;
44507 esac
44508 fi
44509 GMSGFMT=$ac_cv_path_GMSGFMT
44510
44511 if test -n "$GMSGFMT"; then
44512   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
44513 echo "${ECHO_T}$GMSGFMT" >&6
44514 else
44515   echo "$as_me:$LINENO: result: no" >&5
44516 echo "${ECHO_T}no" >&6
44517 fi
44518
44519
44520
44521 # Prepare PATH_SEPARATOR.
44522 # The user is always right.
44523 if test "${PATH_SEPARATOR+set}" != set; then
44524   echo "#! /bin/sh" >conf$$.sh
44525   echo  "exit 0"   >>conf$$.sh
44526   chmod +x conf$$.sh
44527   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44528     PATH_SEPARATOR=';'
44529   else
44530     PATH_SEPARATOR=:
44531   fi
44532   rm -f conf$$.sh
44533 fi
44534
44535 # Find out how to test for executable files. Don't use a zero-byte file,
44536 # as systems may use methods other than mode bits to determine executability.
44537 cat >conf$$.file <<_ASEOF
44538 #! /bin/sh
44539 exit 0
44540 _ASEOF
44541 chmod +x conf$$.file
44542 if test -x conf$$.file >/dev/null 2>&1; then
44543   ac_executable_p="test -x"
44544 else
44545   ac_executable_p="test -f"
44546 fi
44547 rm -f conf$$.file
44548
44549 # Extract the first word of "xgettext", so it can be a program name with args.
44550 set dummy xgettext; ac_word=$2
44551 echo "$as_me:$LINENO: checking for $ac_word" >&5
44552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44553 if test "${ac_cv_path_XGETTEXT+set}" = set; then
44554   echo $ECHO_N "(cached) $ECHO_C" >&6
44555 else
44556   case "$XGETTEXT" in
44557   [\\/]* | ?:[\\/]*)
44558     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
44559     ;;
44560   *)
44561     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
44562     for ac_dir in $PATH; do
44563       IFS="$ac_save_IFS"
44564       test -z "$ac_dir" && ac_dir=.
44565       for ac_exec_ext in '' $ac_executable_extensions; do
44566         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
44567           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
44568      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
44569             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
44570             break 2
44571           fi
44572         fi
44573       done
44574     done
44575     IFS="$ac_save_IFS"
44576   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
44577     ;;
44578 esac
44579 fi
44580 XGETTEXT="$ac_cv_path_XGETTEXT"
44581 if test "$XGETTEXT" != ":"; then
44582   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
44583 echo "${ECHO_T}$XGETTEXT" >&6
44584 else
44585   echo "$as_me:$LINENO: result: no" >&5
44586 echo "${ECHO_T}no" >&6
44587 fi
44588
44589     rm -f messages.po
44590
44591
44592 # Prepare PATH_SEPARATOR.
44593 # The user is always right.
44594 if test "${PATH_SEPARATOR+set}" != set; then
44595   echo "#! /bin/sh" >conf$$.sh
44596   echo  "exit 0"   >>conf$$.sh
44597   chmod +x conf$$.sh
44598   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44599     PATH_SEPARATOR=';'
44600   else
44601     PATH_SEPARATOR=:
44602   fi
44603   rm -f conf$$.sh
44604 fi
44605
44606 # Find out how to test for executable files. Don't use a zero-byte file,
44607 # as systems may use methods other than mode bits to determine executability.
44608 cat >conf$$.file <<_ASEOF
44609 #! /bin/sh
44610 exit 0
44611 _ASEOF
44612 chmod +x conf$$.file
44613 if test -x conf$$.file >/dev/null 2>&1; then
44614   ac_executable_p="test -x"
44615 else
44616   ac_executable_p="test -f"
44617 fi
44618 rm -f conf$$.file
44619
44620 # Extract the first word of "msgmerge", so it can be a program name with args.
44621 set dummy msgmerge; ac_word=$2
44622 echo "$as_me:$LINENO: checking for $ac_word" >&5
44623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44624 if test "${ac_cv_path_MSGMERGE+set}" = set; then
44625   echo $ECHO_N "(cached) $ECHO_C" >&6
44626 else
44627   case "$MSGMERGE" in
44628   [\\/]* | ?:[\\/]*)
44629     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
44630     ;;
44631   *)
44632     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
44633     for ac_dir in $PATH; do
44634       IFS="$ac_save_IFS"
44635       test -z "$ac_dir" && ac_dir=.
44636       for ac_exec_ext in '' $ac_executable_extensions; do
44637         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
44638           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
44639             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
44640             break 2
44641           fi
44642         fi
44643       done
44644     done
44645     IFS="$ac_save_IFS"
44646   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
44647     ;;
44648 esac
44649 fi
44650 MSGMERGE="$ac_cv_path_MSGMERGE"
44651 if test "$MSGMERGE" != ":"; then
44652   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
44653 echo "${ECHO_T}$MSGMERGE" >&6
44654 else
44655   echo "$as_me:$LINENO: result: no" >&5
44656 echo "${ECHO_T}no" >&6
44657 fi
44658
44659
44660       if test "$GMSGFMT" != ":"; then
44661             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
44662        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
44663       : ;
44664     else
44665       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
44666       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
44667 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
44668       GMSGFMT=":"
44669     fi
44670   fi
44671
44672       if test "$XGETTEXT" != ":"; then
44673             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
44674        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
44675       : ;
44676     else
44677       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
44678 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
44679       XGETTEXT=":"
44680     fi
44681         rm -f messages.po
44682   fi
44683
44684
44685           ac_config_commands="$ac_config_commands default-1"
44686
44687
44688
44689
44690
44691
44692
44693
44694
44695
44696
44697
44698
44699
44700
44701
44702
44703
44704   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
44705 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
44706     # Check whether --enable-nls or --disable-nls was given.
44707 if test "${enable_nls+set}" = set; then
44708   enableval="$enable_nls"
44709   USE_NLS=$enableval
44710 else
44711   USE_NLS=yes
44712 fi;
44713   echo "$as_me:$LINENO: result: $USE_NLS" >&5
44714 echo "${ECHO_T}$USE_NLS" >&6
44715
44716
44717
44718
44719   LIBINTL=
44720   LTLIBINTL=
44721   POSUB=
44722
44723     if test "$USE_NLS" = "yes"; then
44724     gt_use_preinstalled_gnugettext=no
44725
44726
44727
44728
44729
44730
44731         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
44732 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
44733 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
44734   echo $ECHO_N "(cached) $ECHO_C" >&6
44735 else
44736
44737 cat >conftest.$ac_ext <<_ACEOF
44738 /* confdefs.h.  */
44739 _ACEOF
44740 cat confdefs.h >>conftest.$ac_ext
44741 cat >>conftest.$ac_ext <<_ACEOF
44742 /* end confdefs.h.  */
44743 #include <libintl.h>
44744 extern int _nl_msg_cat_cntr;
44745 extern int *_nl_domain_bindings;
44746 int
44747 main ()
44748 {
44749 bindtextdomain ("", "");
44750 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
44751   ;
44752   return 0;
44753 }
44754 _ACEOF
44755 rm -f conftest.$ac_objext conftest$ac_exeext
44756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44757   (eval $ac_link) 2>&5
44758   ac_status=$?
44759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44760   (exit $ac_status); } &&
44761          { ac_try='test -s conftest$ac_exeext'
44762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44763   (eval $ac_try) 2>&5
44764   ac_status=$?
44765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44766   (exit $ac_status); }; }; then
44767   gt_cv_func_gnugettext2_libc=yes
44768 else
44769   echo "$as_me: failed program was:" >&5
44770 sed 's/^/| /' conftest.$ac_ext >&5
44771
44772 gt_cv_func_gnugettext2_libc=no
44773 fi
44774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44775 fi
44776 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
44777 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
44778
44779         if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
44780
44781
44782
44783
44784
44785           am_save_CPPFLAGS="$CPPFLAGS"
44786
44787   for element in $INCICONV; do
44788     haveit=
44789     for x in $CPPFLAGS; do
44790
44791   acl_save_prefix="$prefix"
44792   prefix="$acl_final_prefix"
44793   acl_save_exec_prefix="$exec_prefix"
44794   exec_prefix="$acl_final_exec_prefix"
44795   eval x=\"$x\"
44796   exec_prefix="$acl_save_exec_prefix"
44797   prefix="$acl_save_prefix"
44798
44799       if test "X$x" = "X$element"; then
44800         haveit=yes
44801         break
44802       fi
44803     done
44804     if test -z "$haveit"; then
44805       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
44806     fi
44807   done
44808
44809
44810   echo "$as_me:$LINENO: checking for iconv" >&5
44811 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
44812 if test "${am_cv_func_iconv+set}" = set; then
44813   echo $ECHO_N "(cached) $ECHO_C" >&6
44814 else
44815
44816     am_cv_func_iconv="no, consider installing GNU libiconv"
44817     am_cv_lib_iconv=no
44818
44819 cat >conftest.$ac_ext <<_ACEOF
44820 /* confdefs.h.  */
44821 _ACEOF
44822 cat confdefs.h >>conftest.$ac_ext
44823 cat >>conftest.$ac_ext <<_ACEOF
44824 /* end confdefs.h.  */
44825 #include <stdlib.h>
44826 #include <iconv.h>
44827 int
44828 main ()
44829 {
44830 iconv_t cd = iconv_open("","");
44831        iconv(cd,NULL,NULL,NULL,NULL);
44832        iconv_close(cd);
44833   ;
44834   return 0;
44835 }
44836 _ACEOF
44837 rm -f conftest.$ac_objext conftest$ac_exeext
44838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44839   (eval $ac_link) 2>&5
44840   ac_status=$?
44841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44842   (exit $ac_status); } &&
44843          { ac_try='test -s conftest$ac_exeext'
44844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44845   (eval $ac_try) 2>&5
44846   ac_status=$?
44847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44848   (exit $ac_status); }; }; then
44849   am_cv_func_iconv=yes
44850 else
44851   echo "$as_me: failed program was:" >&5
44852 sed 's/^/| /' conftest.$ac_ext >&5
44853
44854 fi
44855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44856     if test "$am_cv_func_iconv" != yes; then
44857       am_save_LIBS="$LIBS"
44858       LIBS="$LIBS $LIBICONV"
44859
44860 cat >conftest.$ac_ext <<_ACEOF
44861 /* confdefs.h.  */
44862 _ACEOF
44863 cat confdefs.h >>conftest.$ac_ext
44864 cat >>conftest.$ac_ext <<_ACEOF
44865 /* end confdefs.h.  */
44866 #include <stdlib.h>
44867 #include <iconv.h>
44868 int
44869 main ()
44870 {
44871 iconv_t cd = iconv_open("","");
44872          iconv(cd,NULL,NULL,NULL,NULL);
44873          iconv_close(cd);
44874   ;
44875   return 0;
44876 }
44877 _ACEOF
44878 rm -f conftest.$ac_objext conftest$ac_exeext
44879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44880   (eval $ac_link) 2>&5
44881   ac_status=$?
44882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44883   (exit $ac_status); } &&
44884          { ac_try='test -s conftest$ac_exeext'
44885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44886   (eval $ac_try) 2>&5
44887   ac_status=$?
44888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44889   (exit $ac_status); }; }; then
44890   am_cv_lib_iconv=yes
44891         am_cv_func_iconv=yes
44892 else
44893   echo "$as_me: failed program was:" >&5
44894 sed 's/^/| /' conftest.$ac_ext >&5
44895
44896 fi
44897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44898       LIBS="$am_save_LIBS"
44899     fi
44900
44901 fi
44902 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
44903 echo "${ECHO_T}$am_cv_func_iconv" >&6
44904   if test "$am_cv_func_iconv" = yes; then
44905
44906 cat >>confdefs.h <<\_ACEOF
44907 #define HAVE_ICONV 1
44908 _ACEOF
44909
44910   fi
44911   if test "$am_cv_lib_iconv" = yes; then
44912     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
44913 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
44914     echo "$as_me:$LINENO: result: $LIBICONV" >&5
44915 echo "${ECHO_T}$LIBICONV" >&6
44916   else
44917             CPPFLAGS="$am_save_CPPFLAGS"
44918     LIBICONV=
44919     LTLIBICONV=
44920   fi
44921
44922
44923
44924
44925
44926
44927     use_additional=yes
44928
44929   acl_save_prefix="$prefix"
44930   prefix="$acl_final_prefix"
44931   acl_save_exec_prefix="$exec_prefix"
44932   exec_prefix="$acl_final_exec_prefix"
44933
44934     eval additional_includedir=\"$includedir\"
44935     eval additional_libdir=\"$libdir\"
44936
44937   exec_prefix="$acl_save_exec_prefix"
44938   prefix="$acl_save_prefix"
44939
44940
44941 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
44942 if test "${with_libintl_prefix+set}" = set; then
44943   withval="$with_libintl_prefix"
44944
44945     if test "X$withval" = "Xno"; then
44946       use_additional=no
44947     else
44948       if test "X$withval" = "X"; then
44949
44950   acl_save_prefix="$prefix"
44951   prefix="$acl_final_prefix"
44952   acl_save_exec_prefix="$exec_prefix"
44953   exec_prefix="$acl_final_exec_prefix"
44954
44955           eval additional_includedir=\"$includedir\"
44956           eval additional_libdir=\"$libdir\"
44957
44958   exec_prefix="$acl_save_exec_prefix"
44959   prefix="$acl_save_prefix"
44960
44961       else
44962         additional_includedir="$withval/include"
44963         additional_libdir="$withval/lib"
44964       fi
44965     fi
44966
44967 fi;
44968       LIBINTL=
44969   LTLIBINTL=
44970   INCINTL=
44971   rpathdirs=
44972   ltrpathdirs=
44973   names_already_handled=
44974   names_next_round='intl '
44975   while test -n "$names_next_round"; do
44976     names_this_round="$names_next_round"
44977     names_next_round=
44978     for name in $names_this_round; do
44979       already_handled=
44980       for n in $names_already_handled; do
44981         if test "$n" = "$name"; then
44982           already_handled=yes
44983           break
44984         fi
44985       done
44986       if test -z "$already_handled"; then
44987         names_already_handled="$names_already_handled $name"
44988                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
44989         eval value=\"\$HAVE_LIB$uppername\"
44990         if test -n "$value"; then
44991           if test "$value" = yes; then
44992             eval value=\"\$LIB$uppername\"
44993             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
44994             eval value=\"\$LTLIB$uppername\"
44995             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
44996           else
44997                                     :
44998           fi
44999         else
45000                               found_dir=
45001           found_la=
45002           found_so=
45003           found_a=
45004           if test $use_additional = yes; then
45005             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
45006               found_dir="$additional_libdir"
45007               found_so="$additional_libdir/lib$name.$shlibext"
45008               if test -f "$additional_libdir/lib$name.la"; then
45009                 found_la="$additional_libdir/lib$name.la"
45010               fi
45011             else
45012               if test -f "$additional_libdir/lib$name.$libext"; then
45013                 found_dir="$additional_libdir"
45014                 found_a="$additional_libdir/lib$name.$libext"
45015                 if test -f "$additional_libdir/lib$name.la"; then
45016                   found_la="$additional_libdir/lib$name.la"
45017                 fi
45018               fi
45019             fi
45020           fi
45021           if test "X$found_dir" = "X"; then
45022             for x in $LDFLAGS $LTLIBINTL; do
45023
45024   acl_save_prefix="$prefix"
45025   prefix="$acl_final_prefix"
45026   acl_save_exec_prefix="$exec_prefix"
45027   exec_prefix="$acl_final_exec_prefix"
45028   eval x=\"$x\"
45029   exec_prefix="$acl_save_exec_prefix"
45030   prefix="$acl_save_prefix"
45031
45032               case "$x" in
45033                 -L*)
45034                   dir=`echo "X$x" | sed -e 's/^X-L//'`
45035                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
45036                     found_dir="$dir"
45037                     found_so="$dir/lib$name.$shlibext"
45038                     if test -f "$dir/lib$name.la"; then
45039                       found_la="$dir/lib$name.la"
45040                     fi
45041                   else
45042                     if test -f "$dir/lib$name.$libext"; then
45043                       found_dir="$dir"
45044                       found_a="$dir/lib$name.$libext"
45045                       if test -f "$dir/lib$name.la"; then
45046                         found_la="$dir/lib$name.la"
45047                       fi
45048                     fi
45049                   fi
45050                   ;;
45051               esac
45052               if test "X$found_dir" != "X"; then
45053                 break
45054               fi
45055             done
45056           fi
45057           if test "X$found_dir" != "X"; then
45058                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
45059             if test "X$found_so" != "X"; then
45060                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
45061                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
45062               else
45063                                                                                 haveit=
45064                 for x in $ltrpathdirs; do
45065                   if test "X$x" = "X$found_dir"; then
45066                     haveit=yes
45067                     break
45068                   fi
45069                 done
45070                 if test -z "$haveit"; then
45071                   ltrpathdirs="$ltrpathdirs $found_dir"
45072                 fi
45073                                 if test "$hardcode_direct" = yes; then
45074                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
45075                 else
45076                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
45077                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
45078                                                             haveit=
45079                     for x in $rpathdirs; do
45080                       if test "X$x" = "X$found_dir"; then
45081                         haveit=yes
45082                         break
45083                       fi
45084                     done
45085                     if test -z "$haveit"; then
45086                       rpathdirs="$rpathdirs $found_dir"
45087                     fi
45088                   else
45089                                                                                 haveit=
45090                     for x in $LDFLAGS $LIBINTL; do
45091
45092   acl_save_prefix="$prefix"
45093   prefix="$acl_final_prefix"
45094   acl_save_exec_prefix="$exec_prefix"
45095   exec_prefix="$acl_final_exec_prefix"
45096   eval x=\"$x\"
45097   exec_prefix="$acl_save_exec_prefix"
45098   prefix="$acl_save_prefix"
45099
45100                       if test "X$x" = "X-L$found_dir"; then
45101                         haveit=yes
45102                         break
45103                       fi
45104                     done
45105                     if test -z "$haveit"; then
45106                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
45107                     fi
45108                     if test "$hardcode_minus_L" != no; then
45109                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
45110                     else
45111                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
45112                     fi
45113                   fi
45114                 fi
45115               fi
45116             else
45117               if test "X$found_a" != "X"; then
45118                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
45119               else
45120                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
45121               fi
45122             fi
45123                         additional_includedir=
45124             case "$found_dir" in
45125               */lib | */lib/)
45126                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
45127                 additional_includedir="$basedir/include"
45128                 ;;
45129             esac
45130             if test "X$additional_includedir" != "X"; then
45131                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
45132                 haveit=
45133                 if test "X$additional_includedir" = "X/usr/local/include"; then
45134                   if test -n "$GCC"; then
45135                     case $host_os in
45136                       linux*) haveit=yes;;
45137                     esac
45138                   fi
45139                 fi
45140                 if test -z "$haveit"; then
45141                   for x in $CPPFLAGS $INCINTL; do
45142
45143   acl_save_prefix="$prefix"
45144   prefix="$acl_final_prefix"
45145   acl_save_exec_prefix="$exec_prefix"
45146   exec_prefix="$acl_final_exec_prefix"
45147   eval x=\"$x\"
45148   exec_prefix="$acl_save_exec_prefix"
45149   prefix="$acl_save_prefix"
45150
45151                     if test "X$x" = "X-I$additional_includedir"; then
45152                       haveit=yes
45153                       break
45154                     fi
45155                   done
45156                   if test -z "$haveit"; then
45157                     if test -d "$additional_includedir"; then
45158                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
45159                     fi
45160                   fi
45161                 fi
45162               fi
45163             fi
45164                         if test -n "$found_la"; then
45165                                                         save_libdir="$libdir"
45166               case "$found_la" in
45167                 */* | *\\*) . "$found_la" ;;
45168                 *) . "./$found_la" ;;
45169               esac
45170               libdir="$save_libdir"
45171                             for dep in $dependency_libs; do
45172                 case "$dep" in
45173                   -L*)
45174                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
45175                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
45176                       haveit=
45177                       if test "X$additional_libdir" = "X/usr/local/lib"; then
45178                         if test -n "$GCC"; then
45179                           case $host_os in
45180                             linux*) haveit=yes;;
45181                           esac
45182                         fi
45183                       fi
45184                       if test -z "$haveit"; then
45185                         haveit=
45186                         for x in $LDFLAGS $LIBINTL; do
45187
45188   acl_save_prefix="$prefix"
45189   prefix="$acl_final_prefix"
45190   acl_save_exec_prefix="$exec_prefix"
45191   exec_prefix="$acl_final_exec_prefix"
45192   eval x=\"$x\"
45193   exec_prefix="$acl_save_exec_prefix"
45194   prefix="$acl_save_prefix"
45195
45196                           if test "X$x" = "X-L$additional_libdir"; then
45197                             haveit=yes
45198                             break
45199                           fi
45200                         done
45201                         if test -z "$haveit"; then
45202                           if test -d "$additional_libdir"; then
45203                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
45204                           fi
45205                         fi
45206                         haveit=
45207                         for x in $LDFLAGS $LTLIBINTL; do
45208
45209   acl_save_prefix="$prefix"
45210   prefix="$acl_final_prefix"
45211   acl_save_exec_prefix="$exec_prefix"
45212   exec_prefix="$acl_final_exec_prefix"
45213   eval x=\"$x\"
45214   exec_prefix="$acl_save_exec_prefix"
45215   prefix="$acl_save_prefix"
45216
45217                           if test "X$x" = "X-L$additional_libdir"; then
45218                             haveit=yes
45219                             break
45220                           fi
45221                         done
45222                         if test -z "$haveit"; then
45223                           if test -d "$additional_libdir"; then
45224                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
45225                           fi
45226                         fi
45227                       fi
45228                     fi
45229                     ;;
45230                   -R*)
45231                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
45232                     if test "$enable_rpath" != no; then
45233                                                                   haveit=
45234                       for x in $rpathdirs; do
45235                         if test "X$x" = "X$dir"; then
45236                           haveit=yes
45237                           break
45238                         fi
45239                       done
45240                       if test -z "$haveit"; then
45241                         rpathdirs="$rpathdirs $dir"
45242                       fi
45243                                                                   haveit=
45244                       for x in $ltrpathdirs; do
45245                         if test "X$x" = "X$dir"; then
45246                           haveit=yes
45247                           break
45248                         fi
45249                       done
45250                       if test -z "$haveit"; then
45251                         ltrpathdirs="$ltrpathdirs $dir"
45252                       fi
45253                     fi
45254                     ;;
45255                   -l*)
45256                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
45257                     ;;
45258                   *.la)
45259                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
45260                     ;;
45261                   *)
45262                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
45263                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
45264                     ;;
45265                 esac
45266               done
45267             fi
45268           else
45269                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
45270             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
45271           fi
45272         fi
45273       fi
45274     done
45275   done
45276   if test "X$rpathdirs" != "X"; then
45277     if test -n "$hardcode_libdir_separator"; then
45278                         alldirs=
45279       for found_dir in $rpathdirs; do
45280         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
45281       done
45282             acl_save_libdir="$libdir"
45283       libdir="$alldirs"
45284       eval flag=\"$hardcode_libdir_flag_spec\"
45285       libdir="$acl_save_libdir"
45286       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
45287     else
45288             for found_dir in $rpathdirs; do
45289         acl_save_libdir="$libdir"
45290         libdir="$found_dir"
45291         eval flag=\"$hardcode_libdir_flag_spec\"
45292         libdir="$acl_save_libdir"
45293         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
45294       done
45295     fi
45296   fi
45297   if test "X$ltrpathdirs" != "X"; then
45298             for found_dir in $ltrpathdirs; do
45299       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
45300     done
45301   fi
45302
45303           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
45304 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
45305 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
45306   echo $ECHO_N "(cached) $ECHO_C" >&6
45307 else
45308   gt_save_CPPFLAGS="$CPPFLAGS"
45309             CPPFLAGS="$CPPFLAGS $INCINTL"
45310             gt_save_LIBS="$LIBS"
45311             LIBS="$LIBS $LIBINTL"
45312
45313 cat >conftest.$ac_ext <<_ACEOF
45314 /* confdefs.h.  */
45315 _ACEOF
45316 cat confdefs.h >>conftest.$ac_ext
45317 cat >>conftest.$ac_ext <<_ACEOF
45318 /* end confdefs.h.  */
45319 #include <libintl.h>
45320 extern int _nl_msg_cat_cntr;
45321 extern
45322 #ifdef __cplusplus
45323 "C"
45324 #endif
45325 const char *_nl_expand_alias ();
45326 int
45327 main ()
45328 {
45329 bindtextdomain ("", "");
45330 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
45331   ;
45332   return 0;
45333 }
45334 _ACEOF
45335 rm -f conftest.$ac_objext conftest$ac_exeext
45336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45337   (eval $ac_link) 2>&5
45338   ac_status=$?
45339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45340   (exit $ac_status); } &&
45341          { ac_try='test -s conftest$ac_exeext'
45342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45343   (eval $ac_try) 2>&5
45344   ac_status=$?
45345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45346   (exit $ac_status); }; }; then
45347   gt_cv_func_gnugettext2_libintl=yes
45348 else
45349   echo "$as_me: failed program was:" >&5
45350 sed 's/^/| /' conftest.$ac_ext >&5
45351
45352 gt_cv_func_gnugettext2_libintl=no
45353 fi
45354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45355                         if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
45356               LIBS="$LIBS $LIBICONV"
45357
45358 cat >conftest.$ac_ext <<_ACEOF
45359 /* confdefs.h.  */
45360 _ACEOF
45361 cat confdefs.h >>conftest.$ac_ext
45362 cat >>conftest.$ac_ext <<_ACEOF
45363 /* end confdefs.h.  */
45364 #include <libintl.h>
45365 extern int _nl_msg_cat_cntr;
45366 extern
45367 #ifdef __cplusplus
45368 "C"
45369 #endif
45370 const char *_nl_expand_alias ();
45371 int
45372 main ()
45373 {
45374 bindtextdomain ("", "");
45375 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
45376   ;
45377   return 0;
45378 }
45379 _ACEOF
45380 rm -f conftest.$ac_objext conftest$ac_exeext
45381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45382   (eval $ac_link) 2>&5
45383   ac_status=$?
45384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45385   (exit $ac_status); } &&
45386          { ac_try='test -s conftest$ac_exeext'
45387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45388   (eval $ac_try) 2>&5
45389   ac_status=$?
45390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45391   (exit $ac_status); }; }; then
45392   LIBINTL="$LIBINTL $LIBICONV"
45393                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
45394                 gt_cv_func_gnugettext2_libintl=yes
45395
45396 else
45397   echo "$as_me: failed program was:" >&5
45398 sed 's/^/| /' conftest.$ac_ext >&5
45399
45400 fi
45401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45402             fi
45403             CPPFLAGS="$gt_save_CPPFLAGS"
45404             LIBS="$gt_save_LIBS"
45405 fi
45406 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
45407 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
45408         fi
45409
45410                                         if test "$gt_cv_func_gnugettext2_libc" = "yes" \
45411            || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
45412                 && test "$PACKAGE" != gettext-runtime \
45413                 && test "$PACKAGE" != gettext-tools; }; then
45414           gt_use_preinstalled_gnugettext=yes
45415         else
45416                     LIBINTL=
45417           LTLIBINTL=
45418           INCINTL=
45419         fi
45420
45421
45422
45423     if test "$gt_use_preinstalled_gnugettext" = "yes" \
45424        || test "$nls_cv_use_gnu_gettext" = "yes"; then
45425
45426 cat >>confdefs.h <<\_ACEOF
45427 #define ENABLE_NLS 1
45428 _ACEOF
45429
45430     else
45431       USE_NLS=no
45432     fi
45433   fi
45434
45435   echo "$as_me:$LINENO: checking whether to use NLS" >&5
45436 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
45437   echo "$as_me:$LINENO: result: $USE_NLS" >&5
45438 echo "${ECHO_T}$USE_NLS" >&6
45439   if test "$USE_NLS" = "yes"; then
45440     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
45441 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
45442     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
45443       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
45444         gt_source="external libintl"
45445       else
45446         gt_source="libc"
45447       fi
45448     else
45449       gt_source="included intl directory"
45450     fi
45451     echo "$as_me:$LINENO: result: $gt_source" >&5
45452 echo "${ECHO_T}$gt_source" >&6
45453   fi
45454
45455   if test "$USE_NLS" = "yes"; then
45456
45457     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
45458       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
45459         echo "$as_me:$LINENO: checking how to link with libintl" >&5
45460 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
45461         echo "$as_me:$LINENO: result: $LIBINTL" >&5
45462 echo "${ECHO_T}$LIBINTL" >&6
45463
45464   for element in $INCINTL; do
45465     haveit=
45466     for x in $CPPFLAGS; do
45467
45468   acl_save_prefix="$prefix"
45469   prefix="$acl_final_prefix"
45470   acl_save_exec_prefix="$exec_prefix"
45471   exec_prefix="$acl_final_exec_prefix"
45472   eval x=\"$x\"
45473   exec_prefix="$acl_save_exec_prefix"
45474   prefix="$acl_save_prefix"
45475
45476       if test "X$x" = "X$element"; then
45477         haveit=yes
45478         break
45479       fi
45480     done
45481     if test -z "$haveit"; then
45482       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
45483     fi
45484   done
45485
45486       fi
45487
45488
45489 cat >>confdefs.h <<\_ACEOF
45490 #define HAVE_GETTEXT 1
45491 _ACEOF
45492
45493
45494 cat >>confdefs.h <<\_ACEOF
45495 #define HAVE_DCGETTEXT 1
45496 _ACEOF
45497
45498     fi
45499
45500         POSUB=po
45501   fi
45502
45503
45504
45505     INTLLIBS="$LIBINTL"
45506
45507
45508
45509
45510
45511
45512
45513
45514                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile man/Makefile m4/Makefile po/Makefile.in src/Makefile tests/Makefile tests/basename/Makefile tests/chgrp/Makefile tests/chmod/Makefile tests/chown/Makefile tests/cp/Makefile tests/cut/Makefile tests/date/Makefile tests/dd/Makefile tests/dircolors/Makefile tests/du/Makefile tests/expr/Makefile tests/factor/Makefile tests/fmt/Makefile tests/head/Makefile tests/install/Makefile tests/join/Makefile tests/ln/Makefile tests/ls-2/Makefile tests/ls/Makefile tests/md5sum/Makefile tests/misc/Makefile tests/mkdir/Makefile tests/mv/Makefile tests/od/Makefile tests/pr/Makefile tests/rm/Makefile tests/rmdir/Makefile tests/seq/Makefile tests/sha1sum/Makefile tests/shred/Makefile tests/sort/Makefile tests/stty/Makefile tests/sum/Makefile tests/tac/Makefile tests/tail-2/Makefile tests/tail/Makefile tests/test/Makefile tests/touch/Makefile tests/tr/Makefile tests/tsort/Makefile tests/unexpand/Makefile tests/uniq/Makefile tests/wc/Makefile"
45515
45516 cat >confcache <<\_ACEOF
45517 # This file is a shell script that caches the results of configure
45518 # tests run on this system so they can be shared between configure
45519 # scripts and configure runs, see configure's option --config-cache.
45520 # It is not useful on other systems.  If it contains results you don't
45521 # want to keep, you may remove or edit it.
45522 #
45523 # config.status only pays attention to the cache file if you give it
45524 # the --recheck option to rerun configure.
45525 #
45526 # `ac_cv_env_foo' variables (set or unset) will be overridden when
45527 # loading this file, other *unset* `ac_cv_foo' will be assigned the
45528 # following values.
45529
45530 _ACEOF
45531
45532 # The following way of writing the cache mishandles newlines in values,
45533 # but we know of no workaround that is simple, portable, and efficient.
45534 # So, don't put newlines in cache variables' values.
45535 # Ultrix sh set writes to stderr and can't be redirected directly,
45536 # and sets the high bit in the cache file unless we assign to the vars.
45537 {
45538   (set) 2>&1 |
45539     case `(ac_space=' '; set | grep ac_space) 2>&1` in
45540     *ac_space=\ *)
45541       # `set' does not quote correctly, so add quotes (double-quote
45542       # substitution turns \\\\ into \\, and sed turns \\ into \).
45543       sed -n \
45544         "s/'/'\\\\''/g;
45545           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
45546       ;;
45547     *)
45548       # `set' quotes correctly as required by POSIX, so do not add quotes.
45549       sed -n \
45550         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
45551       ;;
45552     esac;
45553 } |
45554   sed '
45555      t clear
45556      : clear
45557      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45558      t end
45559      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45560      : end' >>confcache
45561 if diff $cache_file confcache >/dev/null 2>&1; then :; else
45562   if test -w $cache_file; then
45563     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
45564     cat confcache >$cache_file
45565   else
45566     echo "not updating unwritable cache $cache_file"
45567   fi
45568 fi
45569 rm -f confcache
45570
45571 test "x$prefix" = xNONE && prefix=$ac_default_prefix
45572 # Let make expand exec_prefix.
45573 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45574
45575 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45576 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45577 # trailing colons and then remove the whole line if VPATH becomes empty
45578 # (actually we leave an empty line to preserve line numbers).
45579 if test "x$srcdir" = x.; then
45580   ac_vpsub='/^[  ]*VPATH[        ]*=/{
45581 s/:*\$(srcdir):*/:/;
45582 s/:*\${srcdir}:*/:/;
45583 s/:*@srcdir@:*/:/;
45584 s/^\([^=]*=[     ]*\):*/\1/;
45585 s/:*$//;
45586 s/^[^=]*=[       ]*$//;
45587 }'
45588 fi
45589
45590 DEFS=-DHAVE_CONFIG_H
45591
45592 ac_libobjs=
45593 ac_ltlibobjs=
45594 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45595   # 1. Remove the extension, and $U if already installed.
45596   ac_i=`echo "$ac_i" |
45597          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
45598   # 2. Add them.
45599   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
45600   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
45601 done
45602 LIBOBJS=$ac_libobjs
45603
45604 LTLIBOBJS=$ac_ltlibobjs
45605
45606
45607 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
45608   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
45609 Usually this means the macro was only invoked conditionally." >&5
45610 echo "$as_me: error: conditional \"AMDEP\" was never defined.
45611 Usually this means the macro was only invoked conditionally." >&2;}
45612    { (exit 1); exit 1; }; }
45613 fi
45614 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45615   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
45616 Usually this means the macro was only invoked conditionally." >&5
45617 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
45618 Usually this means the macro was only invoked conditionally." >&2;}
45619    { (exit 1); exit 1; }; }
45620 fi
45621
45622 : ${CONFIG_STATUS=./config.status}
45623 ac_clean_files_save=$ac_clean_files
45624 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45625 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
45626 echo "$as_me: creating $CONFIG_STATUS" >&6;}
45627 cat >$CONFIG_STATUS <<_ACEOF
45628 #! $SHELL
45629 # Generated by $as_me.
45630 # Run this file to recreate the current configuration.
45631 # Compiler output produced by configure, useful for debugging
45632 # configure, is in config.log if it exists.
45633
45634 debug=false
45635 ac_cs_recheck=false
45636 ac_cs_silent=false
45637 SHELL=\${CONFIG_SHELL-$SHELL}
45638 _ACEOF
45639
45640 cat >>$CONFIG_STATUS <<\_ACEOF
45641 ## --------------------- ##
45642 ## M4sh Initialization.  ##
45643 ## --------------------- ##
45644
45645 # Be Bourne compatible
45646 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
45647   emulate sh
45648   NULLCMD=:
45649   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
45650   # is contrary to our usage.  Disable this feature.
45651   alias -g '${1+"$@"}'='"$@"'
45652 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
45653   set -o posix
45654 fi
45655
45656 # Support unset when possible.
45657 if ((MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
45658   as_unset=unset
45659 else
45660   as_unset=false
45661 fi
45662
45663
45664 # Work around bugs in pre-3.0 UWIN ksh.
45665 $as_unset ENV MAIL MAILPATH
45666 PS1='$ '
45667 PS2='> '
45668 PS4='+ '
45669
45670 # NLS nuisances.
45671 for as_var in \
45672   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45673   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45674   LC_TELEPHONE LC_TIME
45675 do
45676   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45677     eval $as_var=C; export $as_var
45678   else
45679     $as_unset $as_var
45680   fi
45681 done
45682
45683 # Required to use basename.
45684 if expr a : '\(a\)' >/dev/null 2>&1; then
45685   as_expr=expr
45686 else
45687   as_expr=false
45688 fi
45689
45690 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
45691   as_basename=basename
45692 else
45693   as_basename=false
45694 fi
45695
45696
45697 # Name of the executable.
45698 as_me=`$as_basename "$0" ||
45699 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45700          X"$0" : 'X\(//\)$' \| \
45701          X"$0" : 'X\(/\)$' \| \
45702          .     : '\(.\)' 2>/dev/null ||
45703 echo X/"$0" |
45704     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
45705           /^X\/\(\/\/\)$/{ s//\1/; q; }
45706           /^X\/\(\/\).*/{ s//\1/; q; }
45707           s/.*/./; q'`
45708
45709
45710 # PATH needs CR, and LINENO needs CR and PATH.
45711 # Avoid depending upon Character Ranges.
45712 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45713 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45714 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45715 as_cr_digits='0123456789'
45716 as_cr_alnum=$as_cr_Letters$as_cr_digits
45717
45718 # The user is always right.
45719 if test "${PATH_SEPARATOR+set}" != set; then
45720   echo "#! /bin/sh" >conf$$.sh
45721   echo  "exit 0"   >>conf$$.sh
45722   chmod +x conf$$.sh
45723   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45724     PATH_SEPARATOR=';'
45725   else
45726     PATH_SEPARATOR=:
45727   fi
45728   rm -f conf$$.sh
45729 fi
45730
45731
45732   as_lineno_1=$LINENO
45733   as_lineno_2=$LINENO
45734   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45735   test "x$as_lineno_1" != "x$as_lineno_2" &&
45736   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
45737   # Find who we are.  Look in the path if we contain no path at all
45738   # relative or not.
45739   case $0 in
45740     *[\\/]* ) as_myself=$0 ;;
45741     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45742 for as_dir in $PATH
45743 do
45744   IFS=$as_save_IFS
45745   test -z "$as_dir" && as_dir=.
45746   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45747 done
45748
45749        ;;
45750   esac
45751   # We did not find ourselves, most probably we were run as `sh COMMAND'
45752   # in which case we are not to be found in the path.
45753   if test "x$as_myself" = x; then
45754     as_myself=$0
45755   fi
45756   if test ! -f "$as_myself"; then
45757     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45758 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45759    { (exit 1); exit 1; }; }
45760   fi
45761   case $CONFIG_SHELL in
45762   '')
45763     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45764 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45765 do
45766   IFS=$as_save_IFS
45767   test -z "$as_dir" && as_dir=.
45768   for as_base in sh bash ksh sh5; do
45769          case $as_dir in
45770          /*)
45771            if ("$as_dir/$as_base" -c '
45772   as_lineno_1=$LINENO
45773   as_lineno_2=$LINENO
45774   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45775   test "x$as_lineno_1" != "x$as_lineno_2" &&
45776   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
45777              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45778              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45779              CONFIG_SHELL=$as_dir/$as_base
45780              export CONFIG_SHELL
45781              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45782            fi;;
45783          esac
45784        done
45785 done
45786 ;;
45787   esac
45788
45789   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45790   # uniformly replaced by the line number.  The first 'sed' inserts a
45791   # line-number line before each line; the second 'sed' does the real
45792   # work.  The second script uses 'N' to pair each line-number line
45793   # with the numbered line, and appends trailing '-' during
45794   # substitution so that $LINENO is not a special case at line end.
45795   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45796   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
45797   sed '=' <$as_myself |
45798     sed '
45799       N
45800       s,$,-,
45801       : loop
45802       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45803       t loop
45804       s,-$,,
45805       s,^['$as_cr_digits']*\n,,
45806     ' >$as_me.lineno &&
45807   chmod +x $as_me.lineno ||
45808     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45809 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45810    { (exit 1); exit 1; }; }
45811
45812   # Don't try to exec as it changes $[0], causing all sort of problems
45813   # (the dirname of $[0] is not the place where we might find the
45814   # original and so on.  Autoconf is especially sensible to this).
45815   . ./$as_me.lineno
45816   # Exit status is that of the last command.
45817   exit
45818 }
45819
45820
45821 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45822   *c*,-n*) ECHO_N= ECHO_C='
45823 ' ECHO_T='      ' ;;
45824   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45825   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
45826 esac
45827
45828 if expr a : '\(a\)' >/dev/null 2>&1; then
45829   as_expr=expr
45830 else
45831   as_expr=false
45832 fi
45833
45834 rm -f conf$$ conf$$.exe conf$$.file
45835 echo >conf$$.file
45836 if ln -s conf$$.file conf$$ 2>/dev/null; then
45837   # We could just check for DJGPP; but this test a) works b) is more generic
45838   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45839   if test -f conf$$.exe; then
45840     # Don't use ln at all; we don't have any links
45841     as_ln_s='cp -p'
45842   else
45843     as_ln_s='ln -s'
45844   fi
45845 elif ln conf$$.file conf$$ 2>/dev/null; then
45846   as_ln_s=ln
45847 else
45848   as_ln_s='cp -p'
45849 fi
45850 rm -f conf$$ conf$$.exe conf$$.file
45851
45852 if mkdir -p . 2>/dev/null; then
45853   as_mkdir_p=:
45854 else
45855   as_mkdir_p=false
45856 fi
45857
45858 as_executable_p="test -f"
45859
45860 # Sed expression to map a string onto a valid CPP name.
45861 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
45862
45863 # Sed expression to map a string onto a valid variable name.
45864 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
45865
45866
45867 # IFS
45868 # We need space, tab and new line, in precisely that order.
45869 as_nl='
45870 '
45871 IFS="   $as_nl"
45872
45873 # CDPATH.
45874 $as_unset CDPATH
45875
45876 exec 6>&1
45877
45878 # Open the log real soon, to keep \$[0] and so on meaningful, and to
45879 # report actual input values of CONFIG_FILES etc. instead of their
45880 # values after options handling.  Logging --version etc. is OK.
45881 exec 5>>config.log
45882 {
45883   echo
45884   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45885 ## Running $as_me. ##
45886 _ASBOX
45887 } >&5
45888 cat >&5 <<_CSEOF
45889
45890 This file was extended by GNU coreutils $as_me 5.0.91, which was
45891 generated by GNU Autoconf 2.57b.  Invocation command line was
45892
45893   CONFIG_FILES    = $CONFIG_FILES
45894   CONFIG_HEADERS  = $CONFIG_HEADERS
45895   CONFIG_LINKS    = $CONFIG_LINKS
45896   CONFIG_COMMANDS = $CONFIG_COMMANDS
45897   $ $0 $@
45898
45899 _CSEOF
45900 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45901 echo >&5
45902 _ACEOF
45903
45904 # Files that config.status was made for.
45905 if test -n "$ac_config_files"; then
45906   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45907 fi
45908
45909 if test -n "$ac_config_headers"; then
45910   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45911 fi
45912
45913 if test -n "$ac_config_links"; then
45914   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45915 fi
45916
45917 if test -n "$ac_config_commands"; then
45918   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45919 fi
45920
45921 cat >>$CONFIG_STATUS <<\_ACEOF
45922
45923 ac_cs_usage="\
45924 \`$as_me' instantiates files from templates according to the
45925 current configuration.
45926
45927 Usage: $0 [OPTIONS] [FILE]...
45928
45929   -h, --help       print this help, then exit
45930   -V, --version    print version number, then exit
45931   -q, --quiet      do not print progress messages
45932   -d, --debug      don't remove temporary files
45933       --recheck    update $as_me by reconfiguring in the same conditions
45934   --file=FILE[:TEMPLATE]
45935                    instantiate the configuration file FILE
45936   --header=FILE[:TEMPLATE]
45937                    instantiate the configuration header FILE
45938
45939 Configuration files:
45940 $config_files
45941
45942 Configuration headers:
45943 $config_headers
45944
45945 Configuration links:
45946 $config_links
45947
45948 Configuration commands:
45949 $config_commands
45950
45951 Report bugs to <bug-autoconf@gnu.org>."
45952 _ACEOF
45953
45954 cat >>$CONFIG_STATUS <<_ACEOF
45955 ac_cs_version="\\
45956 GNU coreutils config.status 5.0.91
45957 configured by $0, generated by GNU Autoconf 2.57b,
45958   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45959
45960 Copyright (C) 2003 Free Software Foundation, Inc.
45961 This config.status script is free software; the Free Software Foundation
45962 gives unlimited permission to copy, distribute and modify it."
45963 srcdir=$srcdir
45964 INSTALL="$INSTALL"
45965 _ACEOF
45966
45967 cat >>$CONFIG_STATUS <<\_ACEOF
45968 # If no file are specified by the user, then we need to provide default
45969 # value.  By we need to know if files were specified by the user.
45970 ac_need_defaults=:
45971 while test $# != 0
45972 do
45973   case $1 in
45974   --*=*)
45975     ac_option=`expr "x$1" : 'x\([^=]*\)='`
45976     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45977     ac_shift=:
45978     ;;
45979   -*)
45980     ac_option=$1
45981     ac_optarg=$2
45982     ac_shift=shift
45983     ;;
45984   *) # This is not an option, so the user has probably given explicit
45985      # arguments.
45986      ac_option=$1
45987      ac_need_defaults=false;;
45988   esac
45989
45990   case $ac_option in
45991   # Handling of the options.
45992 _ACEOF
45993 cat >>$CONFIG_STATUS <<\_ACEOF
45994   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45995     ac_cs_recheck=: ;;
45996   --version | --vers* | -V )
45997     echo "$ac_cs_version"; exit 0 ;;
45998   --he | --h)
45999     # Conflict between --help and --header
46000     { { echo "$as_me:$LINENO: error: ambiguous option: $1
46001 Try \`$0 --help' for more information." >&5
46002 echo "$as_me: error: ambiguous option: $1
46003 Try \`$0 --help' for more information." >&2;}
46004    { (exit 1); exit 1; }; };;
46005   --help | --hel | -h )
46006     echo "$ac_cs_usage"; exit 0 ;;
46007   --debug | --d* | -d )
46008     debug=: ;;
46009   --file | --fil | --fi | --f )
46010     $ac_shift
46011     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
46012     ac_need_defaults=false;;
46013   --header | --heade | --head | --hea )
46014     $ac_shift
46015     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
46016     ac_need_defaults=false;;
46017   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46018   | -silent | --silent | --silen | --sile | --sil | --si | --s)
46019     ac_cs_silent=: ;;
46020
46021   # This is an error.
46022   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
46023 Try \`$0 --help' for more information." >&5
46024 echo "$as_me: error: unrecognized option: $1
46025 Try \`$0 --help' for more information." >&2;}
46026    { (exit 1); exit 1; }; } ;;
46027
46028   *) ac_config_targets="$ac_config_targets $1" ;;
46029
46030   esac
46031   shift
46032 done
46033
46034 ac_configure_extra_args=
46035
46036 if $ac_cs_silent; then
46037   exec 6>/dev/null
46038   ac_configure_extra_args="$ac_configure_extra_args --silent"
46039 fi
46040
46041 _ACEOF
46042 cat >>$CONFIG_STATUS <<_ACEOF
46043 if \$ac_cs_recheck; then
46044   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
46045   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46046 fi
46047
46048 _ACEOF
46049
46050 cat >>$CONFIG_STATUS <<_ACEOF
46051 #
46052 # INIT-COMMANDS section.
46053 #
46054
46055 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
46056 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
46057     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
46058     # from automake.
46059     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
46060     # Capture the value of LINGUAS because we need it to compute CATALOGS.
46061     LINGUAS="${LINGUAS-%UNSET%}"
46062
46063
46064 _ACEOF
46065
46066
46067
46068 cat >>$CONFIG_STATUS <<\_ACEOF
46069 for ac_config_target in $ac_config_targets
46070 do
46071   case "$ac_config_target" in
46072   # Handling of arguments.
46073   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46074   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
46075   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
46076   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
46077   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
46078   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
46079   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
46080   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
46081   "tests/basename/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/basename/Makefile" ;;
46082   "tests/chgrp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chgrp/Makefile" ;;
46083   "tests/chmod/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chmod/Makefile" ;;
46084   "tests/chown/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chown/Makefile" ;;
46085   "tests/cp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cp/Makefile" ;;
46086   "tests/cut/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cut/Makefile" ;;
46087   "tests/date/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/date/Makefile" ;;
46088   "tests/dd/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dd/Makefile" ;;
46089   "tests/dircolors/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dircolors/Makefile" ;;
46090   "tests/du/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/du/Makefile" ;;
46091   "tests/expr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/expr/Makefile" ;;
46092   "tests/factor/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/factor/Makefile" ;;
46093   "tests/fmt/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/fmt/Makefile" ;;
46094   "tests/head/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/head/Makefile" ;;
46095   "tests/install/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/install/Makefile" ;;
46096   "tests/join/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/join/Makefile" ;;
46097   "tests/ln/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ln/Makefile" ;;
46098   "tests/ls-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls-2/Makefile" ;;
46099   "tests/ls/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls/Makefile" ;;
46100   "tests/md5sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/md5sum/Makefile" ;;
46101   "tests/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
46102   "tests/mkdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mkdir/Makefile" ;;
46103   "tests/mv/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mv/Makefile" ;;
46104   "tests/od/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/od/Makefile" ;;
46105   "tests/pr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/pr/Makefile" ;;
46106   "tests/rm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rm/Makefile" ;;
46107   "tests/rmdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rmdir/Makefile" ;;
46108   "tests/seq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/seq/Makefile" ;;
46109   "tests/sha1sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sha1sum/Makefile" ;;
46110   "tests/shred/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/shred/Makefile" ;;
46111   "tests/sort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sort/Makefile" ;;
46112   "tests/stty/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/stty/Makefile" ;;
46113   "tests/sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sum/Makefile" ;;
46114   "tests/tac/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tac/Makefile" ;;
46115   "tests/tail-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail-2/Makefile" ;;
46116   "tests/tail/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail/Makefile" ;;
46117   "tests/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test/Makefile" ;;
46118   "tests/touch/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/touch/Makefile" ;;
46119   "tests/tr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tr/Makefile" ;;
46120   "tests/tsort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tsort/Makefile" ;;
46121   "tests/unexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/unexpand/Makefile" ;;
46122   "tests/uniq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/uniq/Makefile" ;;
46123   "tests/wc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/wc/Makefile" ;;
46124   "$ac_config_libobj_dir/ftw.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/ftw.h:$ac_config_libobj_dir/ftw_.h" ;;
46125   "$ac_config_libobj_dir/search.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/search.h:$ac_config_libobj_dir/search_.h" ;;
46126   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
46127   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
46128   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
46129   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
46130 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
46131    { (exit 1); exit 1; }; };;
46132   esac
46133 done
46134
46135 # If the user did not use the arguments to specify the items to instantiate,
46136 # then the envvar interface is used.  Set only those that are not.
46137 # We use the long form for the default assignment because of an extremely
46138 # bizarre bug on SunOS 4.1.3.
46139 if $ac_need_defaults; then
46140   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46141   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46142   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
46143   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46144 fi
46145
46146 # Have a temporary directory for convenience.  Make it in the build tree
46147 # simply because there is no reason to put it here, and in addition,
46148 # creating and moving files from /tmp can sometimes cause problems.
46149 # Create a temporary directory, and hook for its removal unless debugging.
46150 $debug ||
46151 {
46152   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
46153   trap '{ (exit 1); exit 1; }' 1 2 13 15
46154 }
46155
46156 # Create a (secure) tmp directory for tmp files.
46157
46158 {
46159   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
46160   test -n "$tmp" && test -d "$tmp"
46161 }  ||
46162 {
46163   tmp=./confstat$$-$RANDOM
46164   (umask 077 && mkdir $tmp)
46165 } ||
46166 {
46167    echo "$me: cannot create a temporary directory in ." >&2
46168    { (exit 1); exit 1; }
46169 }
46170
46171 _ACEOF
46172
46173 cat >>$CONFIG_STATUS <<_ACEOF
46174
46175 #
46176 # CONFIG_FILES section.
46177 #
46178
46179 # No need to generate the scripts if there are no CONFIG_FILES.
46180 # This happens for instance when ./config.status config.h
46181 if test -n "\$CONFIG_FILES"; then
46182   # Protect against being on the right side of a sed subst in config.status.
46183   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
46184    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
46185 s,@SHELL@,$SHELL,;t t
46186 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
46187 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
46188 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
46189 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
46190 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
46191 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
46192 s,@exec_prefix@,$exec_prefix,;t t
46193 s,@prefix@,$prefix,;t t
46194 s,@program_transform_name@,$program_transform_name,;t t
46195 s,@bindir@,$bindir,;t t
46196 s,@sbindir@,$sbindir,;t t
46197 s,@libexecdir@,$libexecdir,;t t
46198 s,@datadir@,$datadir,;t t
46199 s,@sysconfdir@,$sysconfdir,;t t
46200 s,@sharedstatedir@,$sharedstatedir,;t t
46201 s,@localstatedir@,$localstatedir,;t t
46202 s,@libdir@,$libdir,;t t
46203 s,@includedir@,$includedir,;t t
46204 s,@oldincludedir@,$oldincludedir,;t t
46205 s,@infodir@,$infodir,;t t
46206 s,@mandir@,$mandir,;t t
46207 s,@build_alias@,$build_alias,;t t
46208 s,@host_alias@,$host_alias,;t t
46209 s,@target_alias@,$target_alias,;t t
46210 s,@DEFS@,$DEFS,;t t
46211 s,@ECHO_C@,$ECHO_C,;t t
46212 s,@ECHO_N@,$ECHO_N,;t t
46213 s,@ECHO_T@,$ECHO_T,;t t
46214 s,@LIBS@,$LIBS,;t t
46215 s,@build@,$build,;t t
46216 s,@build_cpu@,$build_cpu,;t t
46217 s,@build_vendor@,$build_vendor,;t t
46218 s,@build_os@,$build_os,;t t
46219 s,@host@,$host,;t t
46220 s,@host_cpu@,$host_cpu,;t t
46221 s,@host_vendor@,$host_vendor,;t t
46222 s,@host_os@,$host_os,;t t
46223 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
46224 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
46225 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
46226 s,@CYGPATH_W@,$CYGPATH_W,;t t
46227 s,@PACKAGE@,$PACKAGE,;t t
46228 s,@VERSION@,$VERSION,;t t
46229 s,@ACLOCAL@,$ACLOCAL,;t t
46230 s,@AUTOCONF@,$AUTOCONF,;t t
46231 s,@AUTOMAKE@,$AUTOMAKE,;t t
46232 s,@AUTOHEADER@,$AUTOHEADER,;t t
46233 s,@MAKEINFO@,$MAKEINFO,;t t
46234 s,@AMTAR@,$AMTAR,;t t
46235 s,@install_sh@,$install_sh,;t t
46236 s,@STRIP@,$STRIP,;t t
46237 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
46238 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
46239 s,@AWK@,$AWK,;t t
46240 s,@SET_MAKE@,$SET_MAKE,;t t
46241 s,@am__leading_dot@,$am__leading_dot,;t t
46242 s,@PERL@,$PERL,;t t
46243 s,@CC@,$CC,;t t
46244 s,@CFLAGS@,$CFLAGS,;t t
46245 s,@LDFLAGS@,$LDFLAGS,;t t
46246 s,@CPPFLAGS@,$CPPFLAGS,;t t
46247 s,@ac_ct_CC@,$ac_ct_CC,;t t
46248 s,@EXEEXT@,$EXEEXT,;t t
46249 s,@OBJEXT@,$OBJEXT,;t t
46250 s,@DEPDIR@,$DEPDIR,;t t
46251 s,@am__include@,$am__include,;t t
46252 s,@am__quote@,$am__quote,;t t
46253 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
46254 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
46255 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
46256 s,@CCDEPMODE@,$CCDEPMODE,;t t
46257 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
46258 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
46259 s,@CPP@,$CPP,;t t
46260 s,@EGREP@,$EGREP,;t t
46261 s,@RANLIB@,$RANLIB,;t t
46262 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
46263 s,@LN_S@,$LN_S,;t t
46264 s,@GNU_PACKAGE@,$GNU_PACKAGE,;t t
46265 s,@HELP2MAN@,$HELP2MAN,;t t
46266 s,@OPTIONAL_BIN_PROGS@,$OPTIONAL_BIN_PROGS,;t t
46267 s,@MAN@,$MAN,;t t
46268 s,@DF_PROG@,$DF_PROG,;t t
46269 s,@U@,$U,;t t
46270 s,@ANSI2KNR@,$ANSI2KNR,;t t
46271 s,@LIBOBJS@,$LIBOBJS,;t t
46272 s,@STDBOOL_H@,$STDBOOL_H,;t t
46273 s,@HAVE__BOOL@,$HAVE__BOOL,;t t
46274 s,@ALLOCA@,$ALLOCA,;t t
46275 s,@ALLOCA_H@,$ALLOCA_H,;t t
46276 s,@FNMATCH_H@,$FNMATCH_H,;t t
46277 s,@NEED_SETGID@,$NEED_SETGID,;t t
46278 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
46279 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
46280 s,@POW_LIB@,$POW_LIB,;t t
46281 s,@YACC@,$YACC,;t t
46282 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
46283 s,@LIB_NANOSLEEP@,$LIB_NANOSLEEP,;t t
46284 s,@SEQ_LIBM@,$SEQ_LIBM,;t t
46285 s,@GLIBC21@,$GLIBC21,;t t
46286 s,@LIBICONV@,$LIBICONV,;t t
46287 s,@LTLIBICONV@,$LTLIBICONV,;t t
46288 s,@SQRT_LIBM@,$SQRT_LIBM,;t t
46289 s,@FESETROUND_LIBM@,$FESETROUND_LIBM,;t t
46290 s,@LIB_CRYPT@,$LIB_CRYPT,;t t
46291 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
46292 s,@USE_NLS@,$USE_NLS,;t t
46293 s,@MSGFMT@,$MSGFMT,;t t
46294 s,@GMSGFMT@,$GMSGFMT,;t t
46295 s,@XGETTEXT@,$XGETTEXT,;t t
46296 s,@MSGMERGE@,$MSGMERGE,;t t
46297 s,@INTLLIBS@,$INTLLIBS,;t t
46298 s,@LIBINTL@,$LIBINTL,;t t
46299 s,@LTLIBINTL@,$LTLIBINTL,;t t
46300 s,@POSUB@,$POSUB,;t t
46301 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
46302 CEOF
46303
46304 _ACEOF
46305
46306   cat >>$CONFIG_STATUS <<\_ACEOF
46307   # Split the substitutions into bite-sized pieces for seds with
46308   # small command number limits, like on Digital OSF/1 and HP-UX.
46309   ac_max_sed_lines=48
46310   ac_sed_frag=1 # Number of current file.
46311   ac_beg=1 # First line for current file.
46312   ac_end=$ac_max_sed_lines # Line after last line for current file.
46313   ac_more_lines=:
46314   ac_sed_cmds=
46315   while $ac_more_lines; do
46316     if test $ac_beg -gt 1; then
46317       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46318     else
46319       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46320     fi
46321     if test ! -s $tmp/subs.frag; then
46322       ac_more_lines=false
46323     else
46324       # The purpose of the label and of the branching condition is to
46325       # speed up the sed processing (if there are no `@' at all, there
46326       # is no need to browse any of the substitutions).
46327       # These are the two extra sed commands mentioned above.
46328       (echo ':t
46329   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
46330       if test -z "$ac_sed_cmds"; then
46331         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
46332       else
46333         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
46334       fi
46335       ac_sed_frag=`expr $ac_sed_frag + 1`
46336       ac_beg=$ac_end
46337       ac_end=`expr $ac_end + $ac_max_sed_lines`
46338     fi
46339   done
46340   if test -z "$ac_sed_cmds"; then
46341     ac_sed_cmds=cat
46342   fi
46343 fi # test -n "$CONFIG_FILES"
46344
46345 _ACEOF
46346 cat >>$CONFIG_STATUS <<\_ACEOF
46347 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
46348   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46349   case $ac_file in
46350   - | *:- | *:-:* ) # input from stdin
46351         cat >$tmp/stdin
46352         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46353         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
46354   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46355         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
46356   * )   ac_file_in=$ac_file.in ;;
46357   esac
46358
46359   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
46360   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46361 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46362          X"$ac_file" : 'X\(//\)[^/]' \| \
46363          X"$ac_file" : 'X\(//\)$' \| \
46364          X"$ac_file" : 'X\(/\)' \| \
46365          .     : '\(.\)' 2>/dev/null ||
46366 echo X"$ac_file" |
46367     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46368           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46369           /^X\(\/\/\)$/{ s//\1/; q; }
46370           /^X\(\/\).*/{ s//\1/; q; }
46371           s/.*/./; q'`
46372   { if $as_mkdir_p; then
46373     mkdir -p "$ac_dir"
46374   else
46375     as_dir="$ac_dir"
46376     as_dirs=
46377     while test ! -d "$as_dir"; do
46378       as_dirs="$as_dir $as_dirs"
46379       as_dir=`(dirname "$as_dir") 2>/dev/null ||
46380 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46381          X"$as_dir" : 'X\(//\)[^/]' \| \
46382          X"$as_dir" : 'X\(//\)$' \| \
46383          X"$as_dir" : 'X\(/\)' \| \
46384          .     : '\(.\)' 2>/dev/null ||
46385 echo X"$as_dir" |
46386     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46387           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46388           /^X\(\/\/\)$/{ s//\1/; q; }
46389           /^X\(\/\).*/{ s//\1/; q; }
46390           s/.*/./; q'`
46391     done
46392     test ! -n "$as_dirs" || mkdir $as_dirs
46393   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46394 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46395    { (exit 1); exit 1; }; }; }
46396
46397   ac_builddir=.
46398
46399 if test "$ac_dir" != .; then
46400   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46401   # A "../" for each directory in $ac_dir_suffix.
46402   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46403 else
46404   ac_dir_suffix= ac_top_builddir=
46405 fi
46406
46407 case $srcdir in
46408   .)  # No --srcdir option.  We are building in place.
46409     ac_srcdir=.
46410     if test -z "$ac_top_builddir"; then
46411        ac_top_srcdir=.
46412     else
46413        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46414     fi ;;
46415   [\\/]* | ?:[\\/]* )  # Absolute path.
46416     ac_srcdir=$srcdir$ac_dir_suffix;
46417     ac_top_srcdir=$srcdir ;;
46418   *) # Relative path.
46419     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46420     ac_top_srcdir=$ac_top_builddir$srcdir ;;
46421 esac
46422 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
46423 # absolute.
46424 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
46425 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
46426 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
46427 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
46428
46429
46430   case $INSTALL in
46431   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46432   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
46433   esac
46434
46435   if test x"$ac_file" != x-; then
46436     { echo "$as_me:$LINENO: creating $ac_file" >&5
46437 echo "$as_me: creating $ac_file" >&6;}
46438     rm -f "$ac_file"
46439   fi
46440   # Let's still pretend it is `configure' which instantiates (i.e., don't
46441   # use $as_me), people would be surprised to read:
46442   #    /* config.h.  Generated by config.status.  */
46443   if test x"$ac_file" = x-; then
46444     configure_input=
46445   else
46446     configure_input="$ac_file.  "
46447   fi
46448   configure_input=$configure_input"Generated from `echo $ac_file_in |
46449                                      sed 's,.*/,,'` by configure."
46450
46451   # First look for the input files in the build tree, otherwise in the
46452   # src tree.
46453   ac_file_inputs=`IFS=:
46454     for f in $ac_file_in; do
46455       case $f in
46456       -) echo $tmp/stdin ;;
46457       [\\/$]*)
46458          # Absolute (can't be DOS-style, as IFS=:)
46459          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
46460 echo "$as_me: error: cannot find input file: $f" >&2;}
46461    { (exit 1); exit 1; }; }
46462          echo "$f";;
46463       *) # Relative
46464          if test -f "$f"; then
46465            # Build tree
46466            echo "$f"
46467          elif test -f "$srcdir/$f"; then
46468            # Source tree
46469            echo "$srcdir/$f"
46470          else
46471            # /dev/null tree
46472            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
46473 echo "$as_me: error: cannot find input file: $f" >&2;}
46474    { (exit 1); exit 1; }; }
46475          fi;;
46476       esac
46477     done` || { (exit 1); exit 1; }
46478 _ACEOF
46479 cat >>$CONFIG_STATUS <<_ACEOF
46480   sed "$ac_vpsub
46481 $extrasub
46482 _ACEOF
46483 cat >>$CONFIG_STATUS <<\_ACEOF
46484 :t
46485 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46486 s,@configure_input@,$configure_input,;t t
46487 s,@srcdir@,$ac_srcdir,;t t
46488 s,@abs_srcdir@,$ac_abs_srcdir,;t t
46489 s,@top_srcdir@,$ac_top_srcdir,;t t
46490 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
46491 s,@builddir@,$ac_builddir,;t t
46492 s,@abs_builddir@,$ac_abs_builddir,;t t
46493 s,@top_builddir@,$ac_top_builddir,;t t
46494 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
46495 s,@INSTALL@,$ac_INSTALL,;t t
46496 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
46497   rm -f $tmp/stdin
46498   if test x"$ac_file" != x-; then
46499     mv $tmp/out $ac_file
46500   else
46501     cat $tmp/out
46502     rm -f $tmp/out
46503   fi
46504
46505 done
46506 _ACEOF
46507 cat >>$CONFIG_STATUS <<\_ACEOF
46508
46509 #
46510 # CONFIG_HEADER section.
46511 #
46512
46513 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
46514 # NAME is the cpp macro being defined and VALUE is the value it is being given.
46515 #
46516 # ac_d sets the value in "#define NAME VALUE" lines.
46517 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
46518 ac_dB='[         ].*$,\1#\2'
46519 ac_dC=' '
46520 ac_dD=',;t'
46521 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
46522 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
46523 ac_uB='$,\1#\2define\3'
46524 ac_uC=' '
46525 ac_uD=',;t'
46526
46527 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
46528   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46529   case $ac_file in
46530   - | *:- | *:-:* ) # input from stdin
46531         cat >$tmp/stdin
46532         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46533         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
46534   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46535         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
46536   * )   ac_file_in=$ac_file.in ;;
46537   esac
46538
46539   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
46540 echo "$as_me: creating $ac_file" >&6;}
46541
46542   # First look for the input files in the build tree, otherwise in the
46543   # src tree.
46544   ac_file_inputs=`IFS=:
46545     for f in $ac_file_in; do
46546       case $f in
46547       -) echo $tmp/stdin ;;
46548       [\\/$]*)
46549          # Absolute (can't be DOS-style, as IFS=:)
46550          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
46551 echo "$as_me: error: cannot find input file: $f" >&2;}
46552    { (exit 1); exit 1; }; }
46553          # Do quote $f, to prevent DOS paths from being IFS'd.
46554          echo "$f";;
46555       *) # Relative
46556          if test -f "$f"; then
46557            # Build tree
46558            echo "$f"
46559          elif test -f "$srcdir/$f"; then
46560            # Source tree
46561            echo "$srcdir/$f"
46562          else
46563            # /dev/null tree
46564            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
46565 echo "$as_me: error: cannot find input file: $f" >&2;}
46566    { (exit 1); exit 1; }; }
46567          fi;;
46568       esac
46569     done` || { (exit 1); exit 1; }
46570   # Remove the trailing spaces.
46571   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
46572
46573 _ACEOF
46574
46575 # Transform confdefs.h into two sed scripts, `conftest.defines' and
46576 # `conftest.undefs', that substitutes the proper values into
46577 # config.h.in to produce config.h.  The first handles `#define'
46578 # templates, and the second `#undef' templates.
46579 # And first: Protect against being on the right side of a sed subst in
46580 # config.status.  Protect against being in an unquoted here document
46581 # in config.status.
46582 rm -f conftest.defines conftest.undefs
46583 # Using a here document instead of a string reduces the quoting nightmare.
46584 # Putting comments in sed scripts is not portable.
46585 #
46586 # `end' is used to avoid that the second main sed command (meant for
46587 # 0-ary CPP macros) applies to n-ary macro definitions.
46588 # See the Autoconf documentation for `clear'.
46589 cat >confdef2sed.sed <<\_ACEOF
46590 s/[\\&,]/\\&/g
46591 s,[\\$`],\\&,g
46592 t clear
46593 : clear
46594 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
46595 t end
46596 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
46597 : end
46598 _ACEOF
46599 # If some macros were called several times there might be several times
46600 # the same #defines, which is useless.  Nevertheless, we may not want to
46601 # sort them, since we want the *last* AC-DEFINE to be honored.
46602 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
46603 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
46604 rm -f confdef2sed.sed
46605
46606 # This sed command replaces #undef with comments.  This is necessary, for
46607 # example, in the case of _POSIX_SOURCE, which is predefined and required
46608 # on some systems where configure will not decide to define it.
46609 cat >>conftest.undefs <<\_ACEOF
46610 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
46611 _ACEOF
46612
46613 # Break up conftest.defines because some shells have a limit on the size
46614 # of here documents, and old seds have small limits too (100 cmds).
46615 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
46616 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
46617 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
46618 echo '  :' >>$CONFIG_STATUS
46619 rm -f conftest.tail
46620 while grep . conftest.defines >/dev/null
46621 do
46622   # Write a limited-size here document to $tmp/defines.sed.
46623   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
46624   # Speed up: don't consider the non `#define' lines.
46625   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
46626   # Work around the forget-to-reset-the-flag bug.
46627   echo 't clr' >>$CONFIG_STATUS
46628   echo ': clr' >>$CONFIG_STATUS
46629   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
46630   echo 'CEOF
46631   sed -f $tmp/defines.sed $tmp/in >$tmp/out
46632   rm -f $tmp/in
46633   mv $tmp/out $tmp/in
46634 ' >>$CONFIG_STATUS
46635   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
46636   rm -f conftest.defines
46637   mv conftest.tail conftest.defines
46638 done
46639 rm -f conftest.defines
46640 echo '  fi # grep' >>$CONFIG_STATUS
46641 echo >>$CONFIG_STATUS
46642
46643 # Break up conftest.undefs because some shells have a limit on the size
46644 # of here documents, and old seds have small limits too (100 cmds).
46645 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
46646 rm -f conftest.tail
46647 while grep . conftest.undefs >/dev/null
46648 do
46649   # Write a limited-size here document to $tmp/undefs.sed.
46650   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
46651   # Speed up: don't consider the non `#undef'
46652   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
46653   # Work around the forget-to-reset-the-flag bug.
46654   echo 't clr' >>$CONFIG_STATUS
46655   echo ': clr' >>$CONFIG_STATUS
46656   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46657   echo 'CEOF
46658   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46659   rm -f $tmp/in
46660   mv $tmp/out $tmp/in
46661 ' >>$CONFIG_STATUS
46662   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46663   rm -f conftest.undefs
46664   mv conftest.tail conftest.undefs
46665 done
46666 rm -f conftest.undefs
46667
46668 cat >>$CONFIG_STATUS <<\_ACEOF
46669   # Let's still pretend it is `configure' which instantiates (i.e., don't
46670   # use $as_me), people would be surprised to read:
46671   #    /* config.h.  Generated by config.status.  */
46672   if test x"$ac_file" = x-; then
46673     echo "/* Generated by configure.  */" >$tmp/config.h
46674   else
46675     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
46676   fi
46677   cat $tmp/in >>$tmp/config.h
46678   rm -f $tmp/in
46679   if test x"$ac_file" != x-; then
46680     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46681       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46682 echo "$as_me: $ac_file is unchanged" >&6;}
46683     else
46684       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46685 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46686          X"$ac_file" : 'X\(//\)[^/]' \| \
46687          X"$ac_file" : 'X\(//\)$' \| \
46688          X"$ac_file" : 'X\(/\)' \| \
46689          .     : '\(.\)' 2>/dev/null ||
46690 echo X"$ac_file" |
46691     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46692           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46693           /^X\(\/\/\)$/{ s//\1/; q; }
46694           /^X\(\/\).*/{ s//\1/; q; }
46695           s/.*/./; q'`
46696       { if $as_mkdir_p; then
46697     mkdir -p "$ac_dir"
46698   else
46699     as_dir="$ac_dir"
46700     as_dirs=
46701     while test ! -d "$as_dir"; do
46702       as_dirs="$as_dir $as_dirs"
46703       as_dir=`(dirname "$as_dir") 2>/dev/null ||
46704 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46705          X"$as_dir" : 'X\(//\)[^/]' \| \
46706          X"$as_dir" : 'X\(//\)$' \| \
46707          X"$as_dir" : 'X\(/\)' \| \
46708          .     : '\(.\)' 2>/dev/null ||
46709 echo X"$as_dir" |
46710     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46711           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46712           /^X\(\/\/\)$/{ s//\1/; q; }
46713           /^X\(\/\).*/{ s//\1/; q; }
46714           s/.*/./; q'`
46715     done
46716     test ! -n "$as_dirs" || mkdir $as_dirs
46717   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46718 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46719    { (exit 1); exit 1; }; }; }
46720
46721       rm -f $ac_file
46722       mv $tmp/config.h $ac_file
46723     fi
46724   else
46725     cat $tmp/config.h
46726     rm -f $tmp/config.h
46727   fi
46728 # Compute $ac_file's index in $config_headers.
46729 _am_stamp_count=1
46730 for _am_header in $config_headers :; do
46731   case $_am_header in
46732     $ac_file | $ac_file:* )
46733       break ;;
46734     * )
46735       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46736   esac
46737 done
46738 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
46739 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46740          X$ac_file : 'X\(//\)[^/]' \| \
46741          X$ac_file : 'X\(//\)$' \| \
46742          X$ac_file : 'X\(/\)' \| \
46743          .     : '\(.\)' 2>/dev/null ||
46744 echo X$ac_file |
46745     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46746           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46747           /^X\(\/\/\)$/{ s//\1/; q; }
46748           /^X\(\/\).*/{ s//\1/; q; }
46749           s/.*/./; q'`/stamp-h$_am_stamp_count
46750 done
46751 _ACEOF
46752 cat >>$CONFIG_STATUS <<\_ACEOF
46753
46754 #
46755 # CONFIG_LINKS section.
46756 #
46757
46758 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
46759   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46760   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46761
46762   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
46763 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
46764
46765   if test ! -r $srcdir/$ac_source; then
46766     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
46767 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
46768    { (exit 1); exit 1; }; }
46769   fi
46770   rm -f $ac_dest
46771
46772   # Make relative symlinks.
46773   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
46774 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46775          X"$ac_dest" : 'X\(//\)[^/]' \| \
46776          X"$ac_dest" : 'X\(//\)$' \| \
46777          X"$ac_dest" : 'X\(/\)' \| \
46778          .     : '\(.\)' 2>/dev/null ||
46779 echo X"$ac_dest" |
46780     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46781           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46782           /^X\(\/\/\)$/{ s//\1/; q; }
46783           /^X\(\/\).*/{ s//\1/; q; }
46784           s/.*/./; q'`
46785   { if $as_mkdir_p; then
46786     mkdir -p "$ac_dest_dir"
46787   else
46788     as_dir="$ac_dest_dir"
46789     as_dirs=
46790     while test ! -d "$as_dir"; do
46791       as_dirs="$as_dir $as_dirs"
46792       as_dir=`(dirname "$as_dir") 2>/dev/null ||
46793 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46794          X"$as_dir" : 'X\(//\)[^/]' \| \
46795          X"$as_dir" : 'X\(//\)$' \| \
46796          X"$as_dir" : 'X\(/\)' \| \
46797          .     : '\(.\)' 2>/dev/null ||
46798 echo X"$as_dir" |
46799     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46800           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46801           /^X\(\/\/\)$/{ s//\1/; q; }
46802           /^X\(\/\).*/{ s//\1/; q; }
46803           s/.*/./; q'`
46804     done
46805     test ! -n "$as_dirs" || mkdir $as_dirs
46806   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
46807 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
46808    { (exit 1); exit 1; }; }; }
46809
46810   ac_builddir=.
46811
46812 if test "$ac_dest_dir" != .; then
46813   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
46814   # A "../" for each directory in $ac_dir_suffix.
46815   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46816 else
46817   ac_dir_suffix= ac_top_builddir=
46818 fi
46819
46820 case $srcdir in
46821   .)  # No --srcdir option.  We are building in place.
46822     ac_srcdir=.
46823     if test -z "$ac_top_builddir"; then
46824        ac_top_srcdir=.
46825     else
46826        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46827     fi ;;
46828   [\\/]* | ?:[\\/]* )  # Absolute path.
46829     ac_srcdir=$srcdir$ac_dir_suffix;
46830     ac_top_srcdir=$srcdir ;;
46831   *) # Relative path.
46832     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46833     ac_top_srcdir=$ac_top_builddir$srcdir ;;
46834 esac
46835 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
46836 # absolute.
46837 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
46838 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
46839 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
46840 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
46841
46842
46843   case $srcdir in
46844   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
46845       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
46846   esac
46847
46848   # Try a symlink, then a hard link, then a copy.
46849   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
46850     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
46851     cp -p $srcdir/$ac_source $ac_dest ||
46852     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
46853 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
46854    { (exit 1); exit 1; }; }
46855 done
46856 _ACEOF
46857 cat >>$CONFIG_STATUS <<\_ACEOF
46858
46859 #
46860 # CONFIG_COMMANDS section.
46861 #
46862 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46863   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46864   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46865   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46866 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46867          X"$ac_dest" : 'X\(//\)[^/]' \| \
46868          X"$ac_dest" : 'X\(//\)$' \| \
46869          X"$ac_dest" : 'X\(/\)' \| \
46870          .     : '\(.\)' 2>/dev/null ||
46871 echo X"$ac_dest" |
46872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46874           /^X\(\/\/\)$/{ s//\1/; q; }
46875           /^X\(\/\).*/{ s//\1/; q; }
46876           s/.*/./; q'`
46877   ac_builddir=.
46878
46879 if test "$ac_dir" != .; then
46880   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46881   # A "../" for each directory in $ac_dir_suffix.
46882   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46883 else
46884   ac_dir_suffix= ac_top_builddir=
46885 fi
46886
46887 case $srcdir in
46888   .)  # No --srcdir option.  We are building in place.
46889     ac_srcdir=.
46890     if test -z "$ac_top_builddir"; then
46891        ac_top_srcdir=.
46892     else
46893        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46894     fi ;;
46895   [\\/]* | ?:[\\/]* )  # Absolute path.
46896     ac_srcdir=$srcdir$ac_dir_suffix;
46897     ac_top_srcdir=$srcdir ;;
46898   *) # Relative path.
46899     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46900     ac_top_srcdir=$ac_top_builddir$srcdir ;;
46901 esac
46902 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
46903 # absolute.
46904 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
46905 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
46906 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
46907 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
46908
46909
46910   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46911 echo "$as_me: executing $ac_dest commands" >&6;}
46912   case $ac_dest in
46913     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
46914   # Strip MF so we end up with the name of the file.
46915   mf=`echo "$mf" | sed -e 's/:.*$//'`
46916   # Check whether this is an Automake generated Makefile or not.
46917   # We used to match only the files named `Makefile.in', but
46918   # some people rename them; so instead we look at the file content.
46919   # Grep'ing the first line is not enough: some people post-process
46920   # each Makefile.in and add a new line on top of each file to say so.
46921   # So let's grep whole file.
46922   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
46923     dirpart=`(dirname "$mf") 2>/dev/null ||
46924 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46925          X"$mf" : 'X\(//\)[^/]' \| \
46926          X"$mf" : 'X\(//\)$' \| \
46927          X"$mf" : 'X\(/\)' \| \
46928          .     : '\(.\)' 2>/dev/null ||
46929 echo X"$mf" |
46930     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46931           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46932           /^X\(\/\/\)$/{ s//\1/; q; }
46933           /^X\(\/\).*/{ s//\1/; q; }
46934           s/.*/./; q'`
46935   else
46936     continue
46937   fi
46938   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
46939   # Extract the definition of DEP_FILES from the Makefile without
46940   # running `make'.
46941   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
46942   test -z "$DEPDIR" && continue
46943   # When using ansi2knr, U may be empty or an underscore; expand it
46944   U=`sed -n -e '/^U = / s///p' < "$mf"`
46945   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
46946   # We invoke sed twice because it is the simplest approach to
46947   # changing $(DEPDIR) to its actual value in the expansion.
46948   for file in `sed -n -e '
46949     /^DEP_FILES = .*\\\\$/ {
46950       s/^DEP_FILES = //
46951       :loop
46952         s/\\\\$//
46953         p
46954         n
46955         /\\\\$/ b loop
46956       p
46957     }
46958     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
46959        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46960     # Make sure the directory exists.
46961     test -f "$dirpart/$file" && continue
46962     fdir=`(dirname "$file") 2>/dev/null ||
46963 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46964          X"$file" : 'X\(//\)[^/]' \| \
46965          X"$file" : 'X\(//\)$' \| \
46966          X"$file" : 'X\(/\)' \| \
46967          .     : '\(.\)' 2>/dev/null ||
46968 echo X"$file" |
46969     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46970           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46971           /^X\(\/\/\)$/{ s//\1/; q; }
46972           /^X\(\/\).*/{ s//\1/; q; }
46973           s/.*/./; q'`
46974     { if $as_mkdir_p; then
46975     mkdir -p $dirpart/$fdir
46976   else
46977     as_dir=$dirpart/$fdir
46978     as_dirs=
46979     while test ! -d "$as_dir"; do
46980       as_dirs="$as_dir $as_dirs"
46981       as_dir=`(dirname "$as_dir") 2>/dev/null ||
46982 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46983          X"$as_dir" : 'X\(//\)[^/]' \| \
46984          X"$as_dir" : 'X\(//\)$' \| \
46985          X"$as_dir" : 'X\(/\)' \| \
46986          .     : '\(.\)' 2>/dev/null ||
46987 echo X"$as_dir" |
46988     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46989           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46990           /^X\(\/\/\)$/{ s//\1/; q; }
46991           /^X\(\/\).*/{ s//\1/; q; }
46992           s/.*/./; q'`
46993     done
46994     test ! -n "$as_dirs" || mkdir $as_dirs
46995   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
46996 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
46997    { (exit 1); exit 1; }; }; }
46998
46999     # echo "creating $dirpart/$file"
47000     echo '# dummy' > "$dirpart/$file"
47001   done
47002 done
47003  ;;
47004     default-1 )
47005     for ac_file in $CONFIG_FILES; do
47006       # Support "outfile[:infile[:infile...]]"
47007       case "$ac_file" in
47008         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
47009       esac
47010       # PO directories have a Makefile.in generated from Makefile.in.in.
47011       case "$ac_file" in */Makefile.in)
47012         # Adjust a relative srcdir.
47013         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
47014         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
47015         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
47016         # In autoconf-2.13 it is called $ac_given_srcdir.
47017         # In autoconf-2.50 it is called $srcdir.
47018         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
47019         case "$ac_given_srcdir" in
47020           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
47021           /*) top_srcdir="$ac_given_srcdir" ;;
47022           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
47023         esac
47024         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
47025           rm -f "$ac_dir/POTFILES"
47026           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
47027           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[    ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
47028           POMAKEFILEDEPS="POTFILES.in"
47029           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
47030           # on $ac_dir but don't depend on user-specified configuration
47031           # parameters.
47032           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
47033             # The LINGUAS file contains the set of available languages.
47034             if test -n "$OBSOLETE_ALL_LINGUAS"; then
47035               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
47036             fi
47037             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
47038             # Hide the ALL_LINGUAS assigment from automake.
47039             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
47040             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
47041           else
47042             # The set of available languages was given in configure.in.
47043             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
47044           fi
47045           case "$ac_given_srcdir" in
47046             .) srcdirpre= ;;
47047             *) srcdirpre='$(srcdir)/' ;;
47048           esac
47049           POFILES=
47050           GMOFILES=
47051           UPDATEPOFILES=
47052           DUMMYPOFILES=
47053           for lang in $ALL_LINGUAS; do
47054             POFILES="$POFILES $srcdirpre$lang.po"
47055             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
47056             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
47057             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
47058           done
47059           # CATALOGS depends on both $ac_dir and the user's LINGUAS
47060           # environment variable.
47061           INST_LINGUAS=
47062           if test -n "$ALL_LINGUAS"; then
47063             for presentlang in $ALL_LINGUAS; do
47064               useit=no
47065               if test "%UNSET%" != "$LINGUAS"; then
47066                 desiredlanguages="$LINGUAS"
47067               else
47068                 desiredlanguages="$ALL_LINGUAS"
47069               fi
47070               for desiredlang in $desiredlanguages; do
47071                 # Use the presentlang catalog if desiredlang is
47072                 #   a. equal to presentlang, or
47073                 #   b. a variant of presentlang (because in this case,
47074                 #      presentlang can be used as a fallback for messages
47075                 #      which are not translated in the desiredlang catalog).
47076                 case "$desiredlang" in
47077                   "$presentlang"*) useit=yes;;
47078                 esac
47079               done
47080               if test $useit = yes; then
47081                 INST_LINGUAS="$INST_LINGUAS $presentlang"
47082               fi
47083             done
47084           fi
47085           CATALOGS=
47086           if test -n "$INST_LINGUAS"; then
47087             for lang in $INST_LINGUAS; do
47088               CATALOGS="$CATALOGS $lang.gmo"
47089             done
47090           fi
47091           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
47092           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
47093           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
47094             if test -f "$f"; then
47095               case "$f" in
47096                 *.orig | *.bak | *~) ;;
47097                 *) cat "$f" >> "$ac_dir/Makefile" ;;
47098               esac
47099             fi
47100           done
47101         fi
47102         ;;
47103       esac
47104     done ;;
47105   esac
47106 done
47107 _ACEOF
47108
47109 cat >>$CONFIG_STATUS <<\_ACEOF
47110
47111 { (exit 0); exit 0; }
47112 _ACEOF
47113 chmod +x $CONFIG_STATUS
47114 ac_clean_files=$ac_clean_files_save
47115
47116
47117 # configure is writing to config.log, and then calls config.status.
47118 # config.status does its own redirection, appending to config.log.
47119 # Unfortunately, on DOS this fails, as config.log is still kept open
47120 # by configure, so config.status won't be able to write to it; its
47121 # output is simply discarded.  So we exec the FD to /dev/null,
47122 # effectively closing config.log, so it can be properly (re)opened and
47123 # appended to by config.status.  When coming back to configure, we
47124 # need to make the FD available again.
47125 if test "$no_create" != yes; then
47126   ac_cs_success=:
47127   ac_config_status_args=
47128   test "$silent" = yes &&
47129     ac_config_status_args="$ac_config_status_args --quiet"
47130   exec 5>/dev/null
47131   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47132   exec 5>>config.log
47133   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47134   # would make configure fail if this is the last instruction.
47135   $ac_cs_success || { (exit 1); exit 1; }
47136 fi
47137