.
[platform/upstream/coreutils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for GNU coreutils 4.5.7.
4 #
5 # Report bugs to <bug-coreutils@gnu.org>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245 # Name of the host.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
250 exec 6>&1
251
252 #
253 # Initializations.
254 #
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
262
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete.  It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
267
268 # Identity of this package.
269 PACKAGE_NAME='GNU coreutils'
270 PACKAGE_TARNAME='coreutils'
271 PACKAGE_VERSION='4.5.7'
272 PACKAGE_STRING='GNU coreutils 4.5.7'
273 PACKAGE_BUGREPORT='bug-coreutils@gnu.org'
274
275 ac_unique_file="src/ls.c"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_config_libobj_dir=lib
314 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 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 GNU_PACKAGE HELP2MAN OPTIONAL_BIN_PROGS OPTIONAL_BIN_ZCRIPTS MAN DF_PROG U ANSI2KNR LIBOBJS ALLOCA YACC LIB_NANOSLEEP NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS LIB_CLOCK_GETTIME POW_LIB SEQ_LIBM GLIBC21 LIBICONV LTLIBICONV SQRT_LIBM FESETROUND_LIBM LIB_CRYPT MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE USE_NLS INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS'
315 ac_subst_files=''
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358   # If the previous option needs an argument, assign it.
359   if test -n "$ac_prev"; then
360     eval "$ac_prev=\$ac_option"
361     ac_prev=
362     continue
363   fi
364
365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367   # Accept the important Cygnus configure options, so we can diagnose typos.
368
369   case $ac_option in
370
371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
372     ac_prev=bindir ;;
373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374     bindir=$ac_optarg ;;
375
376   -build | --build | --buil | --bui | --bu)
377     ac_prev=build_alias ;;
378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379     build_alias=$ac_optarg ;;
380
381   -cache-file | --cache-file | --cache-fil | --cache-fi \
382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383     ac_prev=cache_file ;;
384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386     cache_file=$ac_optarg ;;
387
388   --config-cache | -C)
389     cache_file=config.cache ;;
390
391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392     ac_prev=datadir ;;
393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394   | --da=*)
395     datadir=$ac_optarg ;;
396
397   -disable-* | --disable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402    { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     eval "enable_$ac_feature=no" ;;
405
406   -enable-* | --enable-*)
407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408     # Reject names that are not valid shell variable names.
409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411    { (exit 1); exit 1; }; }
412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413     case $ac_option in
414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415       *) ac_optarg=yes ;;
416     esac
417     eval "enable_$ac_feature='$ac_optarg'" ;;
418
419   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421   | --exec | --exe | --ex)
422     ac_prev=exec_prefix ;;
423   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425   | --exec=* | --exe=* | --ex=*)
426     exec_prefix=$ac_optarg ;;
427
428   -gas | --gas | --ga | --g)
429     # Obsolete; use --with-gas.
430     with_gas=yes ;;
431
432   -help | --help | --hel | --he | -h)
433     ac_init_help=long ;;
434   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435     ac_init_help=recursive ;;
436   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437     ac_init_help=short ;;
438
439   -host | --host | --hos | --ho)
440     ac_prev=host_alias ;;
441   -host=* | --host=* | --hos=* | --ho=*)
442     host_alias=$ac_optarg ;;
443
444   -includedir | --includedir | --includedi | --included | --include \
445   | --includ | --inclu | --incl | --inc)
446     ac_prev=includedir ;;
447   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448   | --includ=* | --inclu=* | --incl=* | --inc=*)
449     includedir=$ac_optarg ;;
450
451   -infodir | --infodir | --infodi | --infod | --info | --inf)
452     ac_prev=infodir ;;
453   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454     infodir=$ac_optarg ;;
455
456   -libdir | --libdir | --libdi | --libd)
457     ac_prev=libdir ;;
458   -libdir=* | --libdir=* | --libdi=* | --libd=*)
459     libdir=$ac_optarg ;;
460
461   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462   | --libexe | --libex | --libe)
463     ac_prev=libexecdir ;;
464   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465   | --libexe=* | --libex=* | --libe=*)
466     libexecdir=$ac_optarg ;;
467
468   -localstatedir | --localstatedir | --localstatedi | --localstated \
469   | --localstate | --localstat | --localsta | --localst \
470   | --locals | --local | --loca | --loc | --lo)
471     ac_prev=localstatedir ;;
472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475     localstatedir=$ac_optarg ;;
476
477   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478     ac_prev=mandir ;;
479   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480     mandir=$ac_optarg ;;
481
482   -nfp | --nfp | --nf)
483     # Obsolete; use --without-fp.
484     with_fp=no ;;
485
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c | -n)
488     no_create=yes ;;
489
490   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492     no_recursion=yes ;;
493
494   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496   | --oldin | --oldi | --old | --ol | --o)
497     ac_prev=oldincludedir ;;
498   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501     oldincludedir=$ac_optarg ;;
502
503   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504     ac_prev=prefix ;;
505   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506     prefix=$ac_optarg ;;
507
508   -program-prefix | --program-prefix | --program-prefi | --program-pref \
509   | --program-pre | --program-pr | --program-p)
510     ac_prev=program_prefix ;;
511   -program-prefix=* | --program-prefix=* | --program-prefi=* \
512   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513     program_prefix=$ac_optarg ;;
514
515   -program-suffix | --program-suffix | --program-suffi | --program-suff \
516   | --program-suf | --program-su | --program-s)
517     ac_prev=program_suffix ;;
518   -program-suffix=* | --program-suffix=* | --program-suffi=* \
519   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520     program_suffix=$ac_optarg ;;
521
522   -program-transform-name | --program-transform-name \
523   | --program-transform-nam | --program-transform-na \
524   | --program-transform-n | --program-transform- \
525   | --program-transform | --program-transfor \
526   | --program-transfo | --program-transf \
527   | --program-trans | --program-tran \
528   | --progr-tra | --program-tr | --program-t)
529     ac_prev=program_transform_name ;;
530   -program-transform-name=* | --program-transform-name=* \
531   | --program-transform-nam=* | --program-transform-na=* \
532   | --program-transform-n=* | --program-transform-=* \
533   | --program-transform=* | --program-transfor=* \
534   | --program-transfo=* | --program-transf=* \
535   | --program-trans=* | --program-tran=* \
536   | --progr-tra=* | --program-tr=* | --program-t=*)
537     program_transform_name=$ac_optarg ;;
538
539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540   | -silent | --silent | --silen | --sile | --sil)
541     silent=yes ;;
542
543   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544     ac_prev=sbindir ;;
545   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546   | --sbi=* | --sb=*)
547     sbindir=$ac_optarg ;;
548
549   -sharedstatedir | --sharedstatedir | --sharedstatedi \
550   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551   | --sharedst | --shareds | --shared | --share | --shar \
552   | --sha | --sh)
553     ac_prev=sharedstatedir ;;
554   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557   | --sha=* | --sh=*)
558     sharedstatedir=$ac_optarg ;;
559
560   -site | --site | --sit)
561     ac_prev=site ;;
562   -site=* | --site=* | --sit=*)
563     site=$ac_optarg ;;
564
565   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566     ac_prev=srcdir ;;
567   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568     srcdir=$ac_optarg ;;
569
570   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571   | --syscon | --sysco | --sysc | --sys | --sy)
572     ac_prev=sysconfdir ;;
573   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575     sysconfdir=$ac_optarg ;;
576
577   -target | --target | --targe | --targ | --tar | --ta | --t)
578     ac_prev=target_alias ;;
579   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580     target_alias=$ac_optarg ;;
581
582   -v | -verbose | --verbose | --verbos | --verbo | --verb)
583     verbose=yes ;;
584
585   -version | --version | --versio | --versi | --vers | -V)
586     ac_init_version=: ;;
587
588   -with-* | --with-*)
589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590     # Reject names that are not valid shell variable names.
591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592       { echo "$as_me: error: invalid package name: $ac_package" >&2
593    { (exit 1); exit 1; }; }
594     ac_package=`echo $ac_package| sed 's/-/_/g'`
595     case $ac_option in
596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597       *) ac_optarg=yes ;;
598     esac
599     eval "with_$ac_package='$ac_optarg'" ;;
600
601   -without-* | --without-*)
602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603     # Reject names that are not valid shell variable names.
604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605       { echo "$as_me: error: invalid package name: $ac_package" >&2
606    { (exit 1); exit 1; }; }
607     ac_package=`echo $ac_package | sed 's/-/_/g'`
608     eval "with_$ac_package=no" ;;
609
610   --x)
611     # Obsolete; use --with-x.
612     with_x=yes ;;
613
614   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615   | --x-incl | --x-inc | --x-in | --x-i)
616     ac_prev=x_includes ;;
617   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619     x_includes=$ac_optarg ;;
620
621   -x-libraries | --x-libraries | --x-librarie | --x-librari \
622   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623     ac_prev=x_libraries ;;
624   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626     x_libraries=$ac_optarg ;;
627
628   -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630    { (exit 1); exit 1; }; }
631     ;;
632
633   *=*)
634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635     # Reject names that are not valid shell variable names.
636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638    { (exit 1); exit 1; }; }
639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640     eval "$ac_envvar='$ac_optarg'"
641     export $ac_envvar ;;
642
643   *)
644     # FIXME: should be removed in autoconf 3.0.
645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649     ;;
650
651   esac
652 done
653
654 if test -n "$ac_prev"; then
655   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656   { echo "$as_me: error: missing argument to $ac_option" >&2
657    { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673               localstatedir libdir includedir oldincludedir infodir mandir
674 do
675   eval ac_val=$`echo $ac_var`
676   case $ac_val in
677     [\\/$]* | ?:[\\/]* ) ;;
678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679    { (exit 1); exit 1; }; };;
680   esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692   if test "x$build_alias" = x; then
693     cross_compiling=maybe
694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695     If a cross compiler is detected then cross compile mode will be used." >&2
696   elif test "x$build_alias" != "x$host_alias"; then
697     cross_compiling=yes
698   fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709   ac_srcdir_defaulted=yes
710   # Try the directory containing this script, then its parent.
711   ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713          X"$0" : 'X\(//\)[^/]' \| \
714          X"$0" : 'X\(//\)$' \| \
715          X"$0" : 'X\(/\)' \| \
716          .     : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720           /^X\(\/\/\)$/{ s//\1/; q; }
721           /^X\(\/\).*/{ s//\1/; q; }
722           s/.*/./; q'`
723   srcdir=$ac_confdir
724   if test ! -r $srcdir/$ac_unique_file; then
725     srcdir=..
726   fi
727 else
728   ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731   if test "$ac_srcdir_defaulted" = yes; then
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733    { (exit 1); exit 1; }; }
734   else
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736    { (exit 1); exit 1; }; }
737   fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741    { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
775
776 #
777 # Report the --help message.
778 #
779 if test "$ac_init_help" = "long"; then
780   # Omit some internal or obsolete options to make the list less imposing.
781   # This message is too long to be a string in the A/UX 3.1 sh.
782   cat <<_ACEOF
783 \`configure' configures GNU coreutils 4.5.7 to adapt to many kinds of systems.
784
785 Usage: $0 [OPTION]... [VAR=VALUE]...
786
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE.  See below for descriptions of some of the useful variables.
789
790 Defaults for the options are specified in brackets.
791
792 Configuration:
793   -h, --help              display this help and exit
794       --help=short        display options specific to this package
795       --help=recursive    display the short help of all the included packages
796   -V, --version           display version information and exit
797   -q, --quiet, --silent   do not print \`checking...' messages
798       --cache-file=FILE   cache test results in FILE [disabled]
799   -C, --config-cache      alias for \`--cache-file=config.cache'
800   -n, --no-create         do not create output files
801       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
802
803 _ACEOF
804
805   cat <<_ACEOF
806 Installation directories:
807   --prefix=PREFIX         install architecture-independent files in PREFIX
808                           [$ac_default_prefix]
809   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
810                           [PREFIX]
811
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
816
817 For better control, use the options below.
818
819 Fine tuning of the installation directories:
820   --bindir=DIR           user executables [EPREFIX/bin]
821   --sbindir=DIR          system admin executables [EPREFIX/sbin]
822   --libexecdir=DIR       program executables [EPREFIX/libexec]
823   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
824   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
825   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
826   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
827   --libdir=DIR           object code libraries [EPREFIX/lib]
828   --includedir=DIR       C header files [PREFIX/include]
829   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
830   --infodir=DIR          info documentation [PREFIX/info]
831   --mandir=DIR           man documentation [PREFIX/man]
832 _ACEOF
833
834   cat <<\_ACEOF
835
836 Program names:
837   --program-prefix=PREFIX            prepend PREFIX to installed program names
838   --program-suffix=SUFFIX            append SUFFIX to installed program names
839   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
840
841 System types:
842   --build=BUILD     configure for building on BUILD [guessed]
843   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
844 _ACEOF
845 fi
846
847 if test -n "$ac_init_help"; then
848   case $ac_init_help in
849      short | recursive ) echo "Configuration of GNU coreutils 4.5.7:";;
850    esac
851   cat <<\_ACEOF
852
853 Optional Features:
854   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
855   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
856   --disable-dependency-tracking Speeds up one-time builds
857   --enable-dependency-tracking  Do not reject slow dependency extractors
858   --disable-largefile     omit support for large files
859   --disable-assert        turn off assertions
860   --disable-rpath         do not hardcode runtime library paths
861   --disable-nls           do not use Native Language Support
862
863 Optional Packages:
864   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
865   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
866   --without-included-regex don't compile regex; this is the default on
867                           systems with version 2 of the GNU C library
868                           (use with caution on other system)
869   --with-gnu-ld           assume the C compiler uses GNU ld default=no
870   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
871   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
872   --with-libintl-prefix=DIR  search for libintl in DIR/include and DIR/lib
873   --without-libintl-prefix     don't search for libintl in includedir and libdir
874
875 Some influential environment variables:
876   CC          C compiler command
877   CFLAGS      C compiler flags
878   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
879               nonstandard directory <lib dir>
880   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
881               headers in a nonstandard directory <include dir>
882   CPP         C preprocessor
883
884 Use these variables to override the choices made by `configure' or to help
885 it to find libraries and programs with nonstandard names/locations.
886
887 Report bugs to <bug-coreutils@gnu.org>.
888 _ACEOF
889 fi
890
891 if test "$ac_init_help" = "recursive"; then
892   # If there are subdirs, report their specific --help.
893   ac_popdir=`pwd`
894   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895     test -d $ac_dir || continue
896     ac_builddir=.
897
898 if test "$ac_dir" != .; then
899   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900   # A "../" for each directory in $ac_dir_suffix.
901   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902 else
903   ac_dir_suffix= ac_top_builddir=
904 fi
905
906 case $srcdir in
907   .)  # No --srcdir option.  We are building in place.
908     ac_srcdir=.
909     if test -z "$ac_top_builddir"; then
910        ac_top_srcdir=.
911     else
912        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913     fi ;;
914   [\\/]* | ?:[\\/]* )  # Absolute path.
915     ac_srcdir=$srcdir$ac_dir_suffix;
916     ac_top_srcdir=$srcdir ;;
917   *) # Relative path.
918     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919     ac_top_srcdir=$ac_top_builddir$srcdir ;;
920 esac
921 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
922 # absolute.
923 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
924 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
925 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
926 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
927
928     cd $ac_dir
929     # Check for guested configure; otherwise get Cygnus style configure.
930     if test -f $ac_srcdir/configure.gnu; then
931       echo
932       $SHELL $ac_srcdir/configure.gnu  --help=recursive
933     elif test -f $ac_srcdir/configure; then
934       echo
935       $SHELL $ac_srcdir/configure  --help=recursive
936     elif test -f $ac_srcdir/configure.ac ||
937            test -f $ac_srcdir/configure.in; then
938       echo
939       $ac_configure --help
940     else
941       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
942     fi
943     cd $ac_popdir
944   done
945 fi
946
947 test -n "$ac_init_help" && exit 0
948 if $ac_init_version; then
949   cat <<\_ACEOF
950 GNU coreutils configure 4.5.7
951 generated by GNU Autoconf 2.57
952
953 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
954 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 4.5.7, which was
966 generated by GNU Autoconf 2.57.  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
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303 ac_aux_dir=
1304 for ac_dir in config $srcdir/config; do
1305   if test -f $ac_dir/install-sh; then
1306     ac_aux_dir=$ac_dir
1307     ac_install_sh="$ac_aux_dir/install-sh -c"
1308     break
1309   elif test -f $ac_dir/install.sh; then
1310     ac_aux_dir=$ac_dir
1311     ac_install_sh="$ac_aux_dir/install.sh -c"
1312     break
1313   elif test -f $ac_dir/shtool; then
1314     ac_aux_dir=$ac_dir
1315     ac_install_sh="$ac_aux_dir/shtool install -c"
1316     break
1317   fi
1318 done
1319 if test -z "$ac_aux_dir"; then
1320   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1321 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1322    { (exit 1); exit 1; }; }
1323 fi
1324 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1325 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1326 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1327
1328           ac_config_headers="$ac_config_headers config.h:config.hin"
1329
1330 # Make sure we can run config.sub.
1331 $ac_config_sub sun4 >/dev/null 2>&1 ||
1332   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1333 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1334    { (exit 1); exit 1; }; }
1335
1336 echo "$as_me:$LINENO: checking build system type" >&5
1337 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1338 if test "${ac_cv_build+set}" = set; then
1339   echo $ECHO_N "(cached) $ECHO_C" >&6
1340 else
1341   ac_cv_build_alias=$build_alias
1342 test -z "$ac_cv_build_alias" &&
1343   ac_cv_build_alias=`$ac_config_guess`
1344 test -z "$ac_cv_build_alias" &&
1345   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1346 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1347    { (exit 1); exit 1; }; }
1348 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1349   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1350 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1351    { (exit 1); exit 1; }; }
1352
1353 fi
1354 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1355 echo "${ECHO_T}$ac_cv_build" >&6
1356 build=$ac_cv_build
1357 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1358 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1359 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1360
1361
1362 echo "$as_me:$LINENO: checking host system type" >&5
1363 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1364 if test "${ac_cv_host+set}" = set; then
1365   echo $ECHO_N "(cached) $ECHO_C" >&6
1366 else
1367   ac_cv_host_alias=$host_alias
1368 test -z "$ac_cv_host_alias" &&
1369   ac_cv_host_alias=$ac_cv_build_alias
1370 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1371   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1372 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1373    { (exit 1); exit 1; }; }
1374
1375 fi
1376 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1377 echo "${ECHO_T}$ac_cv_host" >&6
1378 host=$ac_cv_host
1379 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1382
1383
1384
1385 am__api_version="1.7"
1386 # Find a good install program.  We prefer a C program (faster),
1387 # so one script is as good as another.  But avoid the broken or
1388 # incompatible versions:
1389 # SysV /etc/install, /usr/sbin/install
1390 # SunOS /usr/etc/install
1391 # IRIX /sbin/install
1392 # AIX /bin/install
1393 # AmigaOS /C/install, which installs bootblocks on floppy discs
1394 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1395 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1396 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1397 # ./install, which can be erroneously created by make from ./install.sh.
1398 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1399 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1400 if test -z "$INSTALL"; then
1401 if test "${ac_cv_path_install+set}" = set; then
1402   echo $ECHO_N "(cached) $ECHO_C" >&6
1403 else
1404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1405 for as_dir in $PATH
1406 do
1407   IFS=$as_save_IFS
1408   test -z "$as_dir" && as_dir=.
1409   # Account for people who put trailing slashes in PATH elements.
1410 case $as_dir/ in
1411   ./ | .// | /cC/* | \
1412   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1413   /usr/ucb/* ) ;;
1414   *)
1415     # OSF1 and SCO ODT 3.0 have their own names for install.
1416     # Don't use installbsd from OSF since it installs stuff as root
1417     # by default.
1418     for ac_prog in ginstall scoinst install; do
1419       for ac_exec_ext in '' $ac_executable_extensions; do
1420         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1421           if test $ac_prog = install &&
1422             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1423             # AIX install.  It has an incompatible calling convention.
1424             :
1425           elif test $ac_prog = install &&
1426             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1427             # program-specific install script used by HP pwplus--don't use.
1428             :
1429           else
1430             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1431             break 3
1432           fi
1433         fi
1434       done
1435     done
1436     ;;
1437 esac
1438 done
1439
1440
1441 fi
1442   if test "${ac_cv_path_install+set}" = set; then
1443     INSTALL=$ac_cv_path_install
1444   else
1445     # As a last resort, use the slow shell script.  We don't cache a
1446     # path for INSTALL within a source directory, because that will
1447     # break other packages using the cache if that directory is
1448     # removed, or if the path is relative.
1449     INSTALL=$ac_install_sh
1450   fi
1451 fi
1452 echo "$as_me:$LINENO: result: $INSTALL" >&5
1453 echo "${ECHO_T}$INSTALL" >&6
1454
1455 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1456 # It thinks the first close brace ends the variable substitution.
1457 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1458
1459 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1460
1461 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1462
1463 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1464 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1465 # Just in case
1466 sleep 1
1467 echo timestamp > conftest.file
1468 # Do `set' in a subshell so we don't clobber the current shell's
1469 # arguments.  Must try -L first in case configure is actually a
1470 # symlink; some systems play weird games with the mod time of symlinks
1471 # (eg FreeBSD returns the mod time of the symlink's containing
1472 # directory).
1473 if (
1474    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1475    if test "$*" = "X"; then
1476       # -L didn't work.
1477       set X `ls -t $srcdir/configure conftest.file`
1478    fi
1479    rm -f conftest.file
1480    if test "$*" != "X $srcdir/configure conftest.file" \
1481       && test "$*" != "X conftest.file $srcdir/configure"; then
1482
1483       # If neither matched, then we have a broken ls.  This can happen
1484       # if, for instance, CONFIG_SHELL is bash and it inherits a
1485       # broken ls alias from the environment.  This has actually
1486       # happened.  Such a system could not be considered "sane".
1487       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1488 alias in your environment" >&5
1489 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1490 alias in your environment" >&2;}
1491    { (exit 1); exit 1; }; }
1492    fi
1493
1494    test "$2" = conftest.file
1495    )
1496 then
1497    # Ok.
1498    :
1499 else
1500    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1501 Check your system clock" >&5
1502 echo "$as_me: error: newly created file is older than distributed files!
1503 Check your system clock" >&2;}
1504    { (exit 1); exit 1; }; }
1505 fi
1506 echo "$as_me:$LINENO: result: yes" >&5
1507 echo "${ECHO_T}yes" >&6
1508 test "$program_prefix" != NONE &&
1509   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1510 # Use a double $ so make ignores it.
1511 test "$program_suffix" != NONE &&
1512   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1513 # Double any \ or $.  echo might interpret backslashes.
1514 # By default was `s,x,x', remove it if useless.
1515 cat <<\_ACEOF >conftest.sed
1516 s/[\\$]/&&/g;s/;s,x,x,$//
1517 _ACEOF
1518 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1519 rm conftest.sed
1520
1521
1522 # expand $ac_aux_dir to an absolute path
1523 am_aux_dir=`cd $ac_aux_dir && pwd`
1524
1525 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1526 # Use eval to expand $SHELL
1527 if eval "$MISSING --run true"; then
1528   am_missing_run="$MISSING --run "
1529 else
1530   am_missing_run=
1531   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1532 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1533 fi
1534
1535 for ac_prog in gawk mawk nawk awk
1536 do
1537   # Extract the first word of "$ac_prog", so it can be a program name with args.
1538 set dummy $ac_prog; ac_word=$2
1539 echo "$as_me:$LINENO: checking for $ac_word" >&5
1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1541 if test "${ac_cv_prog_AWK+set}" = set; then
1542   echo $ECHO_N "(cached) $ECHO_C" >&6
1543 else
1544   if test -n "$AWK"; then
1545   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1546 else
1547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548 for as_dir in $PATH
1549 do
1550   IFS=$as_save_IFS
1551   test -z "$as_dir" && as_dir=.
1552   for ac_exec_ext in '' $ac_executable_extensions; do
1553   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1554     ac_cv_prog_AWK="$ac_prog"
1555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1556     break 2
1557   fi
1558 done
1559 done
1560
1561 fi
1562 fi
1563 AWK=$ac_cv_prog_AWK
1564 if test -n "$AWK"; then
1565   echo "$as_me:$LINENO: result: $AWK" >&5
1566 echo "${ECHO_T}$AWK" >&6
1567 else
1568   echo "$as_me:$LINENO: result: no" >&5
1569 echo "${ECHO_T}no" >&6
1570 fi
1571
1572   test -n "$AWK" && break
1573 done
1574
1575 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1576 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1577 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1578 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1579   echo $ECHO_N "(cached) $ECHO_C" >&6
1580 else
1581   cat >conftest.make <<\_ACEOF
1582 all:
1583         @echo 'ac_maketemp="$(MAKE)"'
1584 _ACEOF
1585 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1586 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1587 if test -n "$ac_maketemp"; then
1588   eval ac_cv_prog_make_${ac_make}_set=yes
1589 else
1590   eval ac_cv_prog_make_${ac_make}_set=no
1591 fi
1592 rm -f conftest.make
1593 fi
1594 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1595   echo "$as_me:$LINENO: result: yes" >&5
1596 echo "${ECHO_T}yes" >&6
1597   SET_MAKE=
1598 else
1599   echo "$as_me:$LINENO: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1601   SET_MAKE="MAKE=${MAKE-make}"
1602 fi
1603
1604  # test to see if srcdir already configured
1605 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1606    test -f $srcdir/config.status; then
1607   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1608 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1609    { (exit 1); exit 1; }; }
1610 fi
1611
1612 # test whether we have cygpath
1613 if test -z "$CYGPATH_W"; then
1614   if (cygpath --version) >/dev/null 2>/dev/null; then
1615     CYGPATH_W='cygpath -w'
1616   else
1617     CYGPATH_W=echo
1618   fi
1619 fi
1620
1621
1622 # Define the identity of the package.
1623  PACKAGE=coreutils
1624  VERSION=4.5.7
1625
1626
1627 cat >>confdefs.h <<_ACEOF
1628 #define PACKAGE "$PACKAGE"
1629 _ACEOF
1630
1631
1632 cat >>confdefs.h <<_ACEOF
1633 #define VERSION "$VERSION"
1634 _ACEOF
1635
1636 # Some tools Automake needs.
1637
1638 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1639
1640
1641 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1642
1643
1644 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1645
1646
1647 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1648
1649
1650 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1651
1652
1653 AMTAR=${AMTAR-"${am_missing_run}tar"}
1654
1655 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1656
1657 # Installed binaries are usually stripped using `strip' when the user
1658 # run `make install-strip'.  However `strip' might not be the right
1659 # tool to use in cross-compilation environments, therefore Automake
1660 # will honor the `STRIP' environment variable to overrule this program.
1661 if test "$cross_compiling" != no; then
1662   if test -n "$ac_tool_prefix"; then
1663   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1664 set dummy ${ac_tool_prefix}strip; ac_word=$2
1665 echo "$as_me:$LINENO: checking for $ac_word" >&5
1666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1667 if test "${ac_cv_prog_STRIP+set}" = set; then
1668   echo $ECHO_N "(cached) $ECHO_C" >&6
1669 else
1670   if test -n "$STRIP"; then
1671   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1672 else
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 for as_dir in $PATH
1675 do
1676   IFS=$as_save_IFS
1677   test -z "$as_dir" && as_dir=.
1678   for ac_exec_ext in '' $ac_executable_extensions; do
1679   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1680     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682     break 2
1683   fi
1684 done
1685 done
1686
1687 fi
1688 fi
1689 STRIP=$ac_cv_prog_STRIP
1690 if test -n "$STRIP"; then
1691   echo "$as_me:$LINENO: result: $STRIP" >&5
1692 echo "${ECHO_T}$STRIP" >&6
1693 else
1694   echo "$as_me:$LINENO: result: no" >&5
1695 echo "${ECHO_T}no" >&6
1696 fi
1697
1698 fi
1699 if test -z "$ac_cv_prog_STRIP"; then
1700   ac_ct_STRIP=$STRIP
1701   # Extract the first word of "strip", so it can be a program name with args.
1702 set dummy strip; ac_word=$2
1703 echo "$as_me:$LINENO: checking for $ac_word" >&5
1704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1706   echo $ECHO_N "(cached) $ECHO_C" >&6
1707 else
1708   if test -n "$ac_ct_STRIP"; then
1709   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1710 else
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1713 do
1714   IFS=$as_save_IFS
1715   test -z "$as_dir" && as_dir=.
1716   for ac_exec_ext in '' $ac_executable_extensions; do
1717   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718     ac_cv_prog_ac_ct_STRIP="strip"
1719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720     break 2
1721   fi
1722 done
1723 done
1724
1725   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1726 fi
1727 fi
1728 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1729 if test -n "$ac_ct_STRIP"; then
1730   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1731 echo "${ECHO_T}$ac_ct_STRIP" >&6
1732 else
1733   echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1735 fi
1736
1737   STRIP=$ac_ct_STRIP
1738 else
1739   STRIP="$ac_cv_prog_STRIP"
1740 fi
1741
1742 fi
1743 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1744
1745 # We need awk for the "check" target.  The system "awk" is bad on
1746 # some platforms.
1747
1748
1749
1750
1751
1752 cat >>confdefs.h <<\_ACEOF
1753 #define _GNU_SOURCE 1
1754 _ACEOF
1755
1756
1757
1758       echo "$as_me:$LINENO: checking for perl5.003 or newer" >&5
1759 echo $ECHO_N "checking for perl5.003 or newer... $ECHO_C" >&6
1760   if test "${PERL+set}" = set; then
1761     # `PERL' is set in the user's environment.
1762     candidate_perl_names="$PERL"
1763     perl_specified=yes
1764   else
1765     candidate_perl_names='perl perl5'
1766     perl_specified=no
1767   fi
1768
1769   found=no
1770
1771   PERL="$missing_dir/missing perl"
1772   for perl in $candidate_perl_names; do
1773     # Run test in a subshell; some versions of sh will print an error if
1774     # an executable is not found, even if stderr is redirected.
1775     if ( $perl -e 'require 5.003; use File::Compare' ) > /dev/null 2>&1; then
1776       PERL=$perl
1777       found=yes
1778       break
1779     fi
1780   done
1781
1782   echo "$as_me:$LINENO: result: $found" >&5
1783 echo "${ECHO_T}$found" >&6
1784   test $found = no && { echo "$as_me:$LINENO: WARNING:
1785 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1786          a usable version of the Perl File::Compare module.  As a result,
1787          you may be unable to run a few tests or to regenerate certain
1788          files if you modify the sources from which they are derived.
1789  " >&5
1790 echo "$as_me: WARNING:
1791 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1792          a usable version of the Perl File::Compare module.  As a result,
1793          you may be unable to run a few tests or to regenerate certain
1794          files if you modify the sources from which they are derived.
1795  " >&2;}
1796
1797 ac_ext=c
1798 ac_cpp='$CPP $CPPFLAGS'
1799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1802 if test -n "$ac_tool_prefix"; then
1803   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1804 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1805 echo "$as_me:$LINENO: checking for $ac_word" >&5
1806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1807 if test "${ac_cv_prog_CC+set}" = set; then
1808   echo $ECHO_N "(cached) $ECHO_C" >&6
1809 else
1810   if test -n "$CC"; then
1811   ac_cv_prog_CC="$CC" # Let the user override the test.
1812 else
1813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1814 for as_dir in $PATH
1815 do
1816   IFS=$as_save_IFS
1817   test -z "$as_dir" && as_dir=.
1818   for ac_exec_ext in '' $ac_executable_extensions; do
1819   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1820     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1822     break 2
1823   fi
1824 done
1825 done
1826
1827 fi
1828 fi
1829 CC=$ac_cv_prog_CC
1830 if test -n "$CC"; then
1831   echo "$as_me:$LINENO: result: $CC" >&5
1832 echo "${ECHO_T}$CC" >&6
1833 else
1834   echo "$as_me:$LINENO: result: no" >&5
1835 echo "${ECHO_T}no" >&6
1836 fi
1837
1838 fi
1839 if test -z "$ac_cv_prog_CC"; then
1840   ac_ct_CC=$CC
1841   # Extract the first word of "gcc", so it can be a program name with args.
1842 set dummy gcc; ac_word=$2
1843 echo "$as_me:$LINENO: checking for $ac_word" >&5
1844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1846   echo $ECHO_N "(cached) $ECHO_C" >&6
1847 else
1848   if test -n "$ac_ct_CC"; then
1849   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1850 else
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852 for as_dir in $PATH
1853 do
1854   IFS=$as_save_IFS
1855   test -z "$as_dir" && as_dir=.
1856   for ac_exec_ext in '' $ac_executable_extensions; do
1857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858     ac_cv_prog_ac_ct_CC="gcc"
1859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860     break 2
1861   fi
1862 done
1863 done
1864
1865 fi
1866 fi
1867 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1868 if test -n "$ac_ct_CC"; then
1869   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1870 echo "${ECHO_T}$ac_ct_CC" >&6
1871 else
1872   echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1874 fi
1875
1876   CC=$ac_ct_CC
1877 else
1878   CC="$ac_cv_prog_CC"
1879 fi
1880
1881 if test -z "$CC"; then
1882   if test -n "$ac_tool_prefix"; then
1883   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1884 set dummy ${ac_tool_prefix}cc; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_CC+set}" = set; then
1888   echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890   if test -n "$CC"; then
1891   ac_cv_prog_CC="$CC" # Let the user override the test.
1892 else
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1895 do
1896   IFS=$as_save_IFS
1897   test -z "$as_dir" && as_dir=.
1898   for ac_exec_ext in '' $ac_executable_extensions; do
1899   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900     ac_cv_prog_CC="${ac_tool_prefix}cc"
1901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902     break 2
1903   fi
1904 done
1905 done
1906
1907 fi
1908 fi
1909 CC=$ac_cv_prog_CC
1910 if test -n "$CC"; then
1911   echo "$as_me:$LINENO: result: $CC" >&5
1912 echo "${ECHO_T}$CC" >&6
1913 else
1914   echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1916 fi
1917
1918 fi
1919 if test -z "$ac_cv_prog_CC"; then
1920   ac_ct_CC=$CC
1921   # Extract the first word of "cc", so it can be a program name with args.
1922 set dummy cc; ac_word=$2
1923 echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1926   echo $ECHO_N "(cached) $ECHO_C" >&6
1927 else
1928   if test -n "$ac_ct_CC"; then
1929   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1930 else
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 for as_dir in $PATH
1933 do
1934   IFS=$as_save_IFS
1935   test -z "$as_dir" && as_dir=.
1936   for ac_exec_ext in '' $ac_executable_extensions; do
1937   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938     ac_cv_prog_ac_ct_CC="cc"
1939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940     break 2
1941   fi
1942 done
1943 done
1944
1945 fi
1946 fi
1947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1948 if test -n "$ac_ct_CC"; then
1949   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1950 echo "${ECHO_T}$ac_ct_CC" >&6
1951 else
1952   echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6
1954 fi
1955
1956   CC=$ac_ct_CC
1957 else
1958   CC="$ac_cv_prog_CC"
1959 fi
1960
1961 fi
1962 if test -z "$CC"; then
1963   # Extract the first word of "cc", so it can be a program name with args.
1964 set dummy cc; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_CC+set}" = set; then
1968   echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970   if test -n "$CC"; then
1971   ac_cv_prog_CC="$CC" # Let the user override the test.
1972 else
1973   ac_prog_rejected=no
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1976 do
1977   IFS=$as_save_IFS
1978   test -z "$as_dir" && as_dir=.
1979   for ac_exec_ext in '' $ac_executable_extensions; do
1980   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1982        ac_prog_rejected=yes
1983        continue
1984      fi
1985     ac_cv_prog_CC="cc"
1986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987     break 2
1988   fi
1989 done
1990 done
1991
1992 if test $ac_prog_rejected = yes; then
1993   # We found a bogon in the path, so make sure we never use it.
1994   set dummy $ac_cv_prog_CC
1995   shift
1996   if test $# != 0; then
1997     # We chose a different compiler from the bogus one.
1998     # However, it has the same basename, so the bogon will be chosen
1999     # first if we set CC to just the basename; use the full file name.
2000     shift
2001     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2002   fi
2003 fi
2004 fi
2005 fi
2006 CC=$ac_cv_prog_CC
2007 if test -n "$CC"; then
2008   echo "$as_me:$LINENO: result: $CC" >&5
2009 echo "${ECHO_T}$CC" >&6
2010 else
2011   echo "$as_me:$LINENO: result: no" >&5
2012 echo "${ECHO_T}no" >&6
2013 fi
2014
2015 fi
2016 if test -z "$CC"; then
2017   if test -n "$ac_tool_prefix"; then
2018   for ac_prog in cl
2019   do
2020     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2022 echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_CC+set}" = set; then
2025   echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027   if test -n "$CC"; then
2028   ac_cv_prog_CC="$CC" # Let the user override the test.
2029 else
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 for as_dir in $PATH
2032 do
2033   IFS=$as_save_IFS
2034   test -z "$as_dir" && as_dir=.
2035   for ac_exec_ext in '' $ac_executable_extensions; do
2036   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039     break 2
2040   fi
2041 done
2042 done
2043
2044 fi
2045 fi
2046 CC=$ac_cv_prog_CC
2047 if test -n "$CC"; then
2048   echo "$as_me:$LINENO: result: $CC" >&5
2049 echo "${ECHO_T}$CC" >&6
2050 else
2051   echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2053 fi
2054
2055     test -n "$CC" && break
2056   done
2057 fi
2058 if test -z "$CC"; then
2059   ac_ct_CC=$CC
2060   for ac_prog in cl
2061 do
2062   # Extract the first word of "$ac_prog", so it can be a program name with args.
2063 set dummy $ac_prog; ac_word=$2
2064 echo "$as_me:$LINENO: checking for $ac_word" >&5
2065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2067   echo $ECHO_N "(cached) $ECHO_C" >&6
2068 else
2069   if test -n "$ac_ct_CC"; then
2070   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2071 else
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 for as_dir in $PATH
2074 do
2075   IFS=$as_save_IFS
2076   test -z "$as_dir" && as_dir=.
2077   for ac_exec_ext in '' $ac_executable_extensions; do
2078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2079     ac_cv_prog_ac_ct_CC="$ac_prog"
2080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081     break 2
2082   fi
2083 done
2084 done
2085
2086 fi
2087 fi
2088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2089 if test -n "$ac_ct_CC"; then
2090   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2091 echo "${ECHO_T}$ac_ct_CC" >&6
2092 else
2093   echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6
2095 fi
2096
2097   test -n "$ac_ct_CC" && break
2098 done
2099
2100   CC=$ac_ct_CC
2101 fi
2102
2103 fi
2104
2105
2106 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2107 See \`config.log' for more details." >&5
2108 echo "$as_me: error: no acceptable C compiler found in \$PATH
2109 See \`config.log' for more details." >&2;}
2110    { (exit 1); exit 1; }; }
2111
2112 # Provide some information about the compiler.
2113 echo "$as_me:$LINENO:" \
2114      "checking for C compiler version" >&5
2115 ac_compiler=`set X $ac_compile; echo $2`
2116 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2117   (eval $ac_compiler --version </dev/null >&5) 2>&5
2118   ac_status=$?
2119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120   (exit $ac_status); }
2121 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2122   (eval $ac_compiler -v </dev/null >&5) 2>&5
2123   ac_status=$?
2124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125   (exit $ac_status); }
2126 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2127   (eval $ac_compiler -V </dev/null >&5) 2>&5
2128   ac_status=$?
2129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130   (exit $ac_status); }
2131
2132 cat >conftest.$ac_ext <<_ACEOF
2133 #line $LINENO "configure"
2134 /* confdefs.h.  */
2135 _ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h.  */
2139
2140 int
2141 main ()
2142 {
2143
2144   ;
2145   return 0;
2146 }
2147 _ACEOF
2148 ac_clean_files_save=$ac_clean_files
2149 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2150 # Try to create an executable without -o first, disregard a.out.
2151 # It will help us diagnose broken compilers, and finding out an intuition
2152 # of exeext.
2153 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2154 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2155 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2156 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2157   (eval $ac_link_default) 2>&5
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); }; then
2161   # Find the output, starting from the most likely.  This scheme is
2162 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2163 # resort.
2164
2165 # Be careful to initialize this variable, since it used to be cached.
2166 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2167 ac_cv_exeext=
2168 # b.out is created by i960 compilers.
2169 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2170 do
2171   test -f "$ac_file" || continue
2172   case $ac_file in
2173     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2174         ;;
2175     conftest.$ac_ext )
2176         # This is the source file.
2177         ;;
2178     [ab].out )
2179         # We found the default executable, but exeext='' is most
2180         # certainly right.
2181         break;;
2182     *.* )
2183         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2184         # FIXME: I believe we export ac_cv_exeext for Libtool,
2185         # but it would be cool to find out if it's true.  Does anybody
2186         # maintain Libtool? --akim.
2187         export ac_cv_exeext
2188         break;;
2189     * )
2190         break;;
2191   esac
2192 done
2193 else
2194   echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2196
2197 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: C compiler cannot create executables
2200 See \`config.log' for more details." >&2;}
2201    { (exit 77); exit 77; }; }
2202 fi
2203
2204 ac_exeext=$ac_cv_exeext
2205 echo "$as_me:$LINENO: result: $ac_file" >&5
2206 echo "${ECHO_T}$ac_file" >&6
2207
2208 # Check the compiler produces executables we can run.  If not, either
2209 # the compiler is broken, or we cross compile.
2210 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2211 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2212 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2213 # If not cross compiling, check that we can run a simple program.
2214 if test "$cross_compiling" != yes; then
2215   if { ac_try='./$ac_file'
2216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217   (eval $ac_try) 2>&5
2218   ac_status=$?
2219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220   (exit $ac_status); }; }; then
2221     cross_compiling=no
2222   else
2223     if test "$cross_compiling" = maybe; then
2224         cross_compiling=yes
2225     else
2226         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2227 If you meant to cross compile, use \`--host'.
2228 See \`config.log' for more details." >&5
2229 echo "$as_me: error: cannot run C compiled programs.
2230 If you meant to cross compile, use \`--host'.
2231 See \`config.log' for more details." >&2;}
2232    { (exit 1); exit 1; }; }
2233     fi
2234   fi
2235 fi
2236 echo "$as_me:$LINENO: result: yes" >&5
2237 echo "${ECHO_T}yes" >&6
2238
2239 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2240 ac_clean_files=$ac_clean_files_save
2241 # Check the compiler produces executables we can run.  If not, either
2242 # the compiler is broken, or we cross compile.
2243 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2244 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2245 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2246 echo "${ECHO_T}$cross_compiling" >&6
2247
2248 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2249 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2251   (eval $ac_link) 2>&5
2252   ac_status=$?
2253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254   (exit $ac_status); }; then
2255   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2256 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2257 # work properly (i.e., refer to `conftest.exe'), while it won't with
2258 # `rm'.
2259 for ac_file in conftest.exe conftest conftest.*; do
2260   test -f "$ac_file" || continue
2261   case $ac_file in
2262     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2263     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2264           export ac_cv_exeext
2265           break;;
2266     * ) break;;
2267   esac
2268 done
2269 else
2270   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&2;}
2274    { (exit 1); exit 1; }; }
2275 fi
2276
2277 rm -f conftest$ac_cv_exeext
2278 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279 echo "${ECHO_T}$ac_cv_exeext" >&6
2280
2281 rm -f conftest.$ac_ext
2282 EXEEXT=$ac_cv_exeext
2283 ac_exeext=$EXEEXT
2284 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2286 if test "${ac_cv_objext+set}" = set; then
2287   echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289   cat >conftest.$ac_ext <<_ACEOF
2290 #line $LINENO "configure"
2291 /* confdefs.h.  */
2292 _ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h.  */
2296
2297 int
2298 main ()
2299 {
2300
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 rm -f conftest.o conftest.obj
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307   (eval $ac_compile) 2>&5
2308   ac_status=$?
2309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310   (exit $ac_status); }; then
2311   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2312   case $ac_file in
2313     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2314     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2315        break;;
2316   esac
2317 done
2318 else
2319   echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.$ac_ext >&5
2321
2322 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2323 See \`config.log' for more details." >&5
2324 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2325 See \`config.log' for more details." >&2;}
2326    { (exit 1); exit 1; }; }
2327 fi
2328
2329 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2330 fi
2331 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2332 echo "${ECHO_T}$ac_cv_objext" >&6
2333 OBJEXT=$ac_cv_objext
2334 ac_objext=$OBJEXT
2335 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2336 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2337 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2338   echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340   cat >conftest.$ac_ext <<_ACEOF
2341 #line $LINENO "configure"
2342 /* confdefs.h.  */
2343 _ACEOF
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h.  */
2347
2348 int
2349 main ()
2350 {
2351 #ifndef __GNUC__
2352        choke me
2353 #endif
2354
2355   ;
2356   return 0;
2357 }
2358 _ACEOF
2359 rm -f conftest.$ac_objext
2360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361   (eval $ac_compile) 2>&5
2362   ac_status=$?
2363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364   (exit $ac_status); } &&
2365          { ac_try='test -s conftest.$ac_objext'
2366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367   (eval $ac_try) 2>&5
2368   ac_status=$?
2369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370   (exit $ac_status); }; }; then
2371   ac_compiler_gnu=yes
2372 else
2373   echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2375
2376 ac_compiler_gnu=no
2377 fi
2378 rm -f conftest.$ac_objext conftest.$ac_ext
2379 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2380
2381 fi
2382 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2383 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2384 GCC=`test $ac_compiler_gnu = yes && echo yes`
2385 ac_test_CFLAGS=${CFLAGS+set}
2386 ac_save_CFLAGS=$CFLAGS
2387 CFLAGS="-g"
2388 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2389 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2390 if test "${ac_cv_prog_cc_g+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   cat >conftest.$ac_ext <<_ACEOF
2394 #line $LINENO "configure"
2395 /* confdefs.h.  */
2396 _ACEOF
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h.  */
2400
2401 int
2402 main ()
2403 {
2404
2405   ;
2406   return 0;
2407 }
2408 _ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411   (eval $ac_compile) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); } &&
2415          { ac_try='test -s conftest.$ac_objext'
2416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417   (eval $ac_try) 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; }; then
2421   ac_cv_prog_cc_g=yes
2422 else
2423   echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2425
2426 ac_cv_prog_cc_g=no
2427 fi
2428 rm -f conftest.$ac_objext conftest.$ac_ext
2429 fi
2430 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2431 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2432 if test "$ac_test_CFLAGS" = set; then
2433   CFLAGS=$ac_save_CFLAGS
2434 elif test $ac_cv_prog_cc_g = yes; then
2435   if test "$GCC" = yes; then
2436     CFLAGS="-g -O2"
2437   else
2438     CFLAGS="-g"
2439   fi
2440 else
2441   if test "$GCC" = yes; then
2442     CFLAGS="-O2"
2443   else
2444     CFLAGS=
2445   fi
2446 fi
2447 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2448 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2449 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2450   echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452   ac_cv_prog_cc_stdc=no
2453 ac_save_CC=$CC
2454 cat >conftest.$ac_ext <<_ACEOF
2455 #line $LINENO "configure"
2456 /* confdefs.h.  */
2457 _ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h.  */
2461 #include <stdarg.h>
2462 #include <stdio.h>
2463 #include <sys/types.h>
2464 #include <sys/stat.h>
2465 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2466 struct buf { int x; };
2467 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2468 static char *e (p, i)
2469      char **p;
2470      int i;
2471 {
2472   return p[i];
2473 }
2474 static char *f (char * (*g) (char **, int), char **p, ...)
2475 {
2476   char *s;
2477   va_list v;
2478   va_start (v,p);
2479   s = g (p, va_arg (v,int));
2480   va_end (v);
2481   return s;
2482 }
2483 int test (int i, double x);
2484 struct s1 {int (*f) (int a);};
2485 struct s2 {int (*f) (double a);};
2486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2487 int argc;
2488 char **argv;
2489 int
2490 main ()
2491 {
2492 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2493   ;
2494   return 0;
2495 }
2496 _ACEOF
2497 # Don't try gcc -ansi; that turns off useful extensions and
2498 # breaks some systems' header files.
2499 # AIX                   -qlanglvl=ansi
2500 # Ultrix and OSF/1      -std1
2501 # HP-UX 10.20 and later -Ae
2502 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2503 # SVR4                  -Xc -D__EXTENSIONS__
2504 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2505 do
2506   CC="$ac_save_CC $ac_arg"
2507   rm -f conftest.$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509   (eval $ac_compile) 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); } &&
2513          { ac_try='test -s conftest.$ac_objext'
2514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515   (eval $ac_try) 2>&5
2516   ac_status=$?
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); }; }; then
2519   ac_cv_prog_cc_stdc=$ac_arg
2520 break
2521 else
2522   echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2524
2525 fi
2526 rm -f conftest.$ac_objext
2527 done
2528 rm -f conftest.$ac_ext conftest.$ac_objext
2529 CC=$ac_save_CC
2530
2531 fi
2532
2533 case "x$ac_cv_prog_cc_stdc" in
2534   x|xno)
2535     echo "$as_me:$LINENO: result: none needed" >&5
2536 echo "${ECHO_T}none needed" >&6 ;;
2537   *)
2538     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2539 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2540     CC="$CC $ac_cv_prog_cc_stdc" ;;
2541 esac
2542
2543 # Some people use a C++ compiler to compile C.  Since we use `exit',
2544 # in C++ we need to declare it.  In case someone uses the same compiler
2545 # for both compiling C and C++ we need to have the C++ compiler decide
2546 # the declaration of exit, since it's the most demanding environment.
2547 cat >conftest.$ac_ext <<_ACEOF
2548 #ifndef __cplusplus
2549   choke me
2550 #endif
2551 _ACEOF
2552 rm -f conftest.$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554   (eval $ac_compile) 2>&5
2555   ac_status=$?
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); } &&
2558          { ac_try='test -s conftest.$ac_objext'
2559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560   (eval $ac_try) 2>&5
2561   ac_status=$?
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); }; }; then
2564   for ac_declaration in \
2565    ''\
2566    '#include <stdlib.h>' \
2567    'extern "C" void std::exit (int) throw (); using std::exit;' \
2568    'extern "C" void std::exit (int); using std::exit;' \
2569    'extern "C" void exit (int) throw ();' \
2570    'extern "C" void exit (int);' \
2571    'void exit (int);'
2572 do
2573   cat >conftest.$ac_ext <<_ACEOF
2574 #line $LINENO "configure"
2575 /* confdefs.h.  */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h.  */
2580 #include <stdlib.h>
2581 $ac_declaration
2582 int
2583 main ()
2584 {
2585 exit (42);
2586   ;
2587   return 0;
2588 }
2589 _ACEOF
2590 rm -f conftest.$ac_objext
2591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592   (eval $ac_compile) 2>&5
2593   ac_status=$?
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); } &&
2596          { ac_try='test -s conftest.$ac_objext'
2597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598   (eval $ac_try) 2>&5
2599   ac_status=$?
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); }; }; then
2602   :
2603 else
2604   echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2606
2607 continue
2608 fi
2609 rm -f conftest.$ac_objext conftest.$ac_ext
2610   cat >conftest.$ac_ext <<_ACEOF
2611 #line $LINENO "configure"
2612 /* confdefs.h.  */
2613 _ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h.  */
2617 $ac_declaration
2618 int
2619 main ()
2620 {
2621 exit (42);
2622   ;
2623   return 0;
2624 }
2625 _ACEOF
2626 rm -f conftest.$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628   (eval $ac_compile) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); } &&
2632          { ac_try='test -s conftest.$ac_objext'
2633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634   (eval $ac_try) 2>&5
2635   ac_status=$?
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); }; }; then
2638   break
2639 else
2640   echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2642
2643 fi
2644 rm -f conftest.$ac_objext conftest.$ac_ext
2645 done
2646 rm -f conftest*
2647 if test -n "$ac_declaration"; then
2648   echo '#ifdef __cplusplus' >>confdefs.h
2649   echo $ac_declaration      >>confdefs.h
2650   echo '#endif'             >>confdefs.h
2651 fi
2652
2653 else
2654   echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2656
2657 fi
2658 rm -f conftest.$ac_objext conftest.$ac_ext
2659 ac_ext=c
2660 ac_cpp='$CPP $CPPFLAGS'
2661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664 rm -f .deps 2>/dev/null
2665 mkdir .deps 2>/dev/null
2666 if test -d .deps; then
2667   DEPDIR=.deps
2668 else
2669   # MS-DOS does not allow filenames that begin with a dot.
2670   DEPDIR=_deps
2671 fi
2672 rmdir .deps 2>/dev/null
2673
2674
2675           ac_config_commands="$ac_config_commands depfiles"
2676
2677
2678 am_make=${MAKE-make}
2679 cat > confinc << 'END'
2680 doit:
2681         @echo done
2682 END
2683 # If we don't find an include directive, just comment out the code.
2684 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2685 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2686 am__include="#"
2687 am__quote=
2688 _am_result=none
2689 # First try GNU make style include.
2690 echo "include confinc" > confmf
2691 # We grep out `Entering directory' and `Leaving directory'
2692 # messages which can occur if `w' ends up in MAKEFLAGS.
2693 # In particular we don't look at `^make:' because GNU make might
2694 # be invoked under some other name (usually "gmake"), in which
2695 # case it prints its new name instead of `make'.
2696 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2697    am__include=include
2698    am__quote=
2699    _am_result=GNU
2700 fi
2701 # Now try BSD make style include.
2702 if test "$am__include" = "#"; then
2703    echo '.include "confinc"' > confmf
2704    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2705       am__include=.include
2706       am__quote="\""
2707       _am_result=BSD
2708    fi
2709 fi
2710
2711
2712 echo "$as_me:$LINENO: result: $_am_result" >&5
2713 echo "${ECHO_T}$_am_result" >&6
2714 rm -f confinc confmf
2715
2716 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2717 if test "${enable_dependency_tracking+set}" = set; then
2718   enableval="$enable_dependency_tracking"
2719
2720 fi;
2721 if test "x$enable_dependency_tracking" != xno; then
2722   am_depcomp="$ac_aux_dir/depcomp"
2723   AMDEPBACKSLASH='\'
2724 fi
2725
2726
2727 if test "x$enable_dependency_tracking" != xno; then
2728   AMDEP_TRUE=
2729   AMDEP_FALSE='#'
2730 else
2731   AMDEP_TRUE='#'
2732   AMDEP_FALSE=
2733 fi
2734
2735
2736
2737
2738 depcc="$CC"   am_compiler_list=
2739
2740 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2741 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2742 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2743   echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2746   # We make a subdir and do the tests there.  Otherwise we can end up
2747   # making bogus files that we don't know about and never remove.  For
2748   # instance it was reported that on HP-UX the gcc test will end up
2749   # making a dummy file named `D' -- because `-MD' means `put the output
2750   # in D'.
2751   mkdir conftest.dir
2752   # Copy depcomp to subdir because otherwise we won't find it if we're
2753   # using a relative directory.
2754   cp "$am_depcomp" conftest.dir
2755   cd conftest.dir
2756
2757   am_cv_CC_dependencies_compiler_type=none
2758   if test "$am_compiler_list" = ""; then
2759      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2760   fi
2761   for depmode in $am_compiler_list; do
2762     # We need to recreate these files for each test, as the compiler may
2763     # overwrite some of them when testing with obscure command lines.
2764     # This happens at least with the AIX C compiler.
2765     echo '#include "conftest.h"' > conftest.c
2766     echo 'int i;' > conftest.h
2767     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2768
2769     case $depmode in
2770     nosideeffect)
2771       # after this tag, mechanisms are not by side-effect, so they'll
2772       # only be used when explicitly requested
2773       if test "x$enable_dependency_tracking" = xyes; then
2774         continue
2775       else
2776         break
2777       fi
2778       ;;
2779     none) break ;;
2780     esac
2781     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2782     # mode.  It turns out that the SunPro C++ compiler does not properly
2783     # handle `-M -o', and we need to detect this.
2784     if depmode=$depmode \
2785        source=conftest.c object=conftest.o \
2786        depfile=conftest.Po tmpdepfile=conftest.TPo \
2787        $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
2788        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2789        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2790       am_cv_CC_dependencies_compiler_type=$depmode
2791       break
2792     fi
2793   done
2794
2795   cd ..
2796   rm -rf conftest.dir
2797 else
2798   am_cv_CC_dependencies_compiler_type=none
2799 fi
2800
2801 fi
2802 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2803 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2804 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2805
2806
2807
2808 if
2809   test "x$enable_dependency_tracking" != xno \
2810   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2811   am__fastdepCC_TRUE=
2812   am__fastdepCC_FALSE='#'
2813 else
2814   am__fastdepCC_TRUE='#'
2815   am__fastdepCC_FALSE=
2816 fi
2817
2818
2819 ac_ext=c
2820 ac_cpp='$CPP $CPPFLAGS'
2821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2824 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2825 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2826 # On Suns, sometimes $CPP names a directory.
2827 if test -n "$CPP" && test -d "$CPP"; then
2828   CPP=
2829 fi
2830 if test -z "$CPP"; then
2831   if test "${ac_cv_prog_CPP+set}" = set; then
2832   echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834       # Double quotes because CPP needs to be expanded
2835     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2836     do
2837       ac_preproc_ok=false
2838 for ac_c_preproc_warn_flag in '' yes
2839 do
2840   # Use a header file that comes with gcc, so configuring glibc
2841   # with a fresh cross-compiler works.
2842   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2843   # <limits.h> exists even on freestanding compilers.
2844   # On the NeXT, cc -E runs the code through the compiler's parser,
2845   # not just through cpp. "Syntax error" is here to catch this case.
2846   cat >conftest.$ac_ext <<_ACEOF
2847 #line $LINENO "configure"
2848 /* confdefs.h.  */
2849 _ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h.  */
2853 #ifdef __STDC__
2854 # include <limits.h>
2855 #else
2856 # include <assert.h>
2857 #endif
2858                      Syntax error
2859 _ACEOF
2860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2861   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2862   ac_status=$?
2863   grep -v '^ *+' conftest.er1 >conftest.err
2864   rm -f conftest.er1
2865   cat conftest.err >&5
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); } >/dev/null; then
2868   if test -s conftest.err; then
2869     ac_cpp_err=$ac_c_preproc_warn_flag
2870   else
2871     ac_cpp_err=
2872   fi
2873 else
2874   ac_cpp_err=yes
2875 fi
2876 if test -z "$ac_cpp_err"; then
2877   :
2878 else
2879   echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.$ac_ext >&5
2881
2882   # Broken: fails on valid input.
2883 continue
2884 fi
2885 rm -f conftest.err conftest.$ac_ext
2886
2887   # OK, works on sane cases.  Now check whether non-existent headers
2888   # can be detected and how.
2889   cat >conftest.$ac_ext <<_ACEOF
2890 #line $LINENO "configure"
2891 /* confdefs.h.  */
2892 _ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h.  */
2896 #include <ac_nonexistent.h>
2897 _ACEOF
2898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2899   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2900   ac_status=$?
2901   grep -v '^ *+' conftest.er1 >conftest.err
2902   rm -f conftest.er1
2903   cat conftest.err >&5
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); } >/dev/null; then
2906   if test -s conftest.err; then
2907     ac_cpp_err=$ac_c_preproc_warn_flag
2908   else
2909     ac_cpp_err=
2910   fi
2911 else
2912   ac_cpp_err=yes
2913 fi
2914 if test -z "$ac_cpp_err"; then
2915   # Broken: success on invalid input.
2916 continue
2917 else
2918   echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921   # Passes both tests.
2922 ac_preproc_ok=:
2923 break
2924 fi
2925 rm -f conftest.err conftest.$ac_ext
2926
2927 done
2928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2929 rm -f conftest.err conftest.$ac_ext
2930 if $ac_preproc_ok; then
2931   break
2932 fi
2933
2934     done
2935     ac_cv_prog_CPP=$CPP
2936
2937 fi
2938   CPP=$ac_cv_prog_CPP
2939 else
2940   ac_cv_prog_CPP=$CPP
2941 fi
2942 echo "$as_me:$LINENO: result: $CPP" >&5
2943 echo "${ECHO_T}$CPP" >&6
2944 ac_preproc_ok=false
2945 for ac_c_preproc_warn_flag in '' yes
2946 do
2947   # Use a header file that comes with gcc, so configuring glibc
2948   # with a fresh cross-compiler works.
2949   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2950   # <limits.h> exists even on freestanding compilers.
2951   # On the NeXT, cc -E runs the code through the compiler's parser,
2952   # not just through cpp. "Syntax error" is here to catch this case.
2953   cat >conftest.$ac_ext <<_ACEOF
2954 #line $LINENO "configure"
2955 /* confdefs.h.  */
2956 _ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h.  */
2960 #ifdef __STDC__
2961 # include <limits.h>
2962 #else
2963 # include <assert.h>
2964 #endif
2965                      Syntax error
2966 _ACEOF
2967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2968   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2969   ac_status=$?
2970   grep -v '^ *+' conftest.er1 >conftest.err
2971   rm -f conftest.er1
2972   cat conftest.err >&5
2973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974   (exit $ac_status); } >/dev/null; then
2975   if test -s conftest.err; then
2976     ac_cpp_err=$ac_c_preproc_warn_flag
2977   else
2978     ac_cpp_err=
2979   fi
2980 else
2981   ac_cpp_err=yes
2982 fi
2983 if test -z "$ac_cpp_err"; then
2984   :
2985 else
2986   echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2988
2989   # Broken: fails on valid input.
2990 continue
2991 fi
2992 rm -f conftest.err conftest.$ac_ext
2993
2994   # OK, works on sane cases.  Now check whether non-existent headers
2995   # can be detected and how.
2996   cat >conftest.$ac_ext <<_ACEOF
2997 #line $LINENO "configure"
2998 /* confdefs.h.  */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h.  */
3003 #include <ac_nonexistent.h>
3004 _ACEOF
3005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3006   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3007   ac_status=$?
3008   grep -v '^ *+' conftest.er1 >conftest.err
3009   rm -f conftest.er1
3010   cat conftest.err >&5
3011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012   (exit $ac_status); } >/dev/null; then
3013   if test -s conftest.err; then
3014     ac_cpp_err=$ac_c_preproc_warn_flag
3015   else
3016     ac_cpp_err=
3017   fi
3018 else
3019   ac_cpp_err=yes
3020 fi
3021 if test -z "$ac_cpp_err"; then
3022   # Broken: success on invalid input.
3023 continue
3024 else
3025   echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3027
3028   # Passes both tests.
3029 ac_preproc_ok=:
3030 break
3031 fi
3032 rm -f conftest.err conftest.$ac_ext
3033
3034 done
3035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3036 rm -f conftest.err conftest.$ac_ext
3037 if $ac_preproc_ok; then
3038   :
3039 else
3040   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3041 See \`config.log' for more details." >&5
3042 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3043 See \`config.log' for more details." >&2;}
3044    { (exit 1); exit 1; }; }
3045 fi
3046
3047 ac_ext=c
3048 ac_cpp='$CPP $CPPFLAGS'
3049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3052
3053
3054
3055 echo "$as_me:$LINENO: checking for egrep" >&5
3056 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3057 if test "${ac_cv_prog_egrep+set}" = set; then
3058   echo $ECHO_N "(cached) $ECHO_C" >&6
3059 else
3060   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3061     then ac_cv_prog_egrep='grep -E'
3062     else ac_cv_prog_egrep='egrep'
3063     fi
3064 fi
3065 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3066 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3067  EGREP=$ac_cv_prog_egrep
3068
3069
3070 if test $ac_cv_c_compiler_gnu = yes; then
3071     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3072 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3073 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3074   echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076     ac_pattern="Autoconf.*'x'"
3077   cat >conftest.$ac_ext <<_ACEOF
3078 #line $LINENO "configure"
3079 /* confdefs.h.  */
3080 _ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h.  */
3084 #include <sgtty.h>
3085 Autoconf TIOCGETP
3086 _ACEOF
3087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3088   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3089   ac_cv_prog_gcc_traditional=yes
3090 else
3091   ac_cv_prog_gcc_traditional=no
3092 fi
3093 rm -f conftest*
3094
3095
3096   if test $ac_cv_prog_gcc_traditional = no; then
3097     cat >conftest.$ac_ext <<_ACEOF
3098 #line $LINENO "configure"
3099 /* confdefs.h.  */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h.  */
3104 #include <termio.h>
3105 Autoconf TCGETA
3106 _ACEOF
3107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3108   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3109   ac_cv_prog_gcc_traditional=yes
3110 fi
3111 rm -f conftest*
3112
3113   fi
3114 fi
3115 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3116 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3117   if test $ac_cv_prog_gcc_traditional = yes; then
3118     CC="$CC -traditional"
3119   fi
3120 fi
3121
3122 if test -n "$ac_tool_prefix"; then
3123   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3124 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3125 echo "$as_me:$LINENO: checking for $ac_word" >&5
3126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3127 if test "${ac_cv_prog_RANLIB+set}" = set; then
3128   echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130   if test -n "$RANLIB"; then
3131   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3132 else
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3135 do
3136   IFS=$as_save_IFS
3137   test -z "$as_dir" && as_dir=.
3138   for ac_exec_ext in '' $ac_executable_extensions; do
3139   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3142     break 2
3143   fi
3144 done
3145 done
3146
3147 fi
3148 fi
3149 RANLIB=$ac_cv_prog_RANLIB
3150 if test -n "$RANLIB"; then
3151   echo "$as_me:$LINENO: result: $RANLIB" >&5
3152 echo "${ECHO_T}$RANLIB" >&6
3153 else
3154   echo "$as_me:$LINENO: result: no" >&5
3155 echo "${ECHO_T}no" >&6
3156 fi
3157
3158 fi
3159 if test -z "$ac_cv_prog_RANLIB"; then
3160   ac_ct_RANLIB=$RANLIB
3161   # Extract the first word of "ranlib", so it can be a program name with args.
3162 set dummy ranlib; ac_word=$2
3163 echo "$as_me:$LINENO: checking for $ac_word" >&5
3164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3165 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3166   echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168   if test -n "$ac_ct_RANLIB"; then
3169   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174   IFS=$as_save_IFS
3175   test -z "$as_dir" && as_dir=.
3176   for ac_exec_ext in '' $ac_executable_extensions; do
3177   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178     ac_cv_prog_ac_ct_RANLIB="ranlib"
3179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3180     break 2
3181   fi
3182 done
3183 done
3184
3185   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3186 fi
3187 fi
3188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3189 if test -n "$ac_ct_RANLIB"; then
3190   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3191 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3192 else
3193   echo "$as_me:$LINENO: result: no" >&5
3194 echo "${ECHO_T}no" >&6
3195 fi
3196
3197   RANLIB=$ac_ct_RANLIB
3198 else
3199   RANLIB="$ac_cv_prog_RANLIB"
3200 fi
3201
3202
3203 echo "$as_me:$LINENO: checking for AIX" >&5
3204 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3205 cat >conftest.$ac_ext <<_ACEOF
3206 #line $LINENO "configure"
3207 /* confdefs.h.  */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h.  */
3212 #ifdef _AIX
3213   yes
3214 #endif
3215
3216 _ACEOF
3217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3218   $EGREP "yes" >/dev/null 2>&1; then
3219   echo "$as_me:$LINENO: result: yes" >&5
3220 echo "${ECHO_T}yes" >&6
3221 cat >>confdefs.h <<\_ACEOF
3222 #define _ALL_SOURCE 1
3223 _ACEOF
3224
3225 else
3226   echo "$as_me:$LINENO: result: no" >&5
3227 echo "${ECHO_T}no" >&6
3228 fi
3229 rm -f conftest*
3230
3231
3232 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3233 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3234 if test "${ac_cv_header_stdc+set}" = set; then
3235   echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237   cat >conftest.$ac_ext <<_ACEOF
3238 #line $LINENO "configure"
3239 /* confdefs.h.  */
3240 _ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h.  */
3244 #include <stdlib.h>
3245 #include <stdarg.h>
3246 #include <string.h>
3247 #include <float.h>
3248
3249 int
3250 main ()
3251 {
3252
3253   ;
3254   return 0;
3255 }
3256 _ACEOF
3257 rm -f conftest.$ac_objext
3258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3259   (eval $ac_compile) 2>&5
3260   ac_status=$?
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); } &&
3263          { ac_try='test -s conftest.$ac_objext'
3264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265   (eval $ac_try) 2>&5
3266   ac_status=$?
3267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268   (exit $ac_status); }; }; then
3269   ac_cv_header_stdc=yes
3270 else
3271   echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3273
3274 ac_cv_header_stdc=no
3275 fi
3276 rm -f conftest.$ac_objext conftest.$ac_ext
3277
3278 if test $ac_cv_header_stdc = yes; then
3279   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3280   cat >conftest.$ac_ext <<_ACEOF
3281 #line $LINENO "configure"
3282 /* confdefs.h.  */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h.  */
3287 #include <string.h>
3288
3289 _ACEOF
3290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3291   $EGREP "memchr" >/dev/null 2>&1; then
3292   :
3293 else
3294   ac_cv_header_stdc=no
3295 fi
3296 rm -f conftest*
3297
3298 fi
3299
3300 if test $ac_cv_header_stdc = yes; then
3301   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3302   cat >conftest.$ac_ext <<_ACEOF
3303 #line $LINENO "configure"
3304 /* confdefs.h.  */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h.  */
3309 #include <stdlib.h>
3310
3311 _ACEOF
3312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3313   $EGREP "free" >/dev/null 2>&1; then
3314   :
3315 else
3316   ac_cv_header_stdc=no
3317 fi
3318 rm -f conftest*
3319
3320 fi
3321
3322 if test $ac_cv_header_stdc = yes; then
3323   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3324   if test "$cross_compiling" = yes; then
3325   :
3326 else
3327   cat >conftest.$ac_ext <<_ACEOF
3328 #line $LINENO "configure"
3329 /* confdefs.h.  */
3330 _ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h.  */
3334 #include <ctype.h>
3335 #if ((' ' & 0x0FF) == 0x020)
3336 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3337 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3338 #else
3339 # define ISLOWER(c) \
3340                    (('a' <= (c) && (c) <= 'i') \
3341                      || ('j' <= (c) && (c) <= 'r') \
3342                      || ('s' <= (c) && (c) <= 'z'))
3343 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3344 #endif
3345
3346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3347 int
3348 main ()
3349 {
3350   int i;
3351   for (i = 0; i < 256; i++)
3352     if (XOR (islower (i), ISLOWER (i))
3353         || toupper (i) != TOUPPER (i))
3354       exit(2);
3355   exit (0);
3356 }
3357 _ACEOF
3358 rm -f conftest$ac_exeext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3360   (eval $ac_link) 2>&5
3361   ac_status=$?
3362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365   (eval $ac_try) 2>&5
3366   ac_status=$?
3367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368   (exit $ac_status); }; }; then
3369   :
3370 else
3371   echo "$as_me: program exited with status $ac_status" >&5
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3374
3375 ( exit $ac_status )
3376 ac_cv_header_stdc=no
3377 fi
3378 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3379 fi
3380 fi
3381 fi
3382 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3383 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3384 if test $ac_cv_header_stdc = yes; then
3385
3386 cat >>confdefs.h <<\_ACEOF
3387 #define STDC_HEADERS 1
3388 _ACEOF
3389
3390 fi
3391
3392 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3403                   inttypes.h stdint.h unistd.h
3404 do
3405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3406 echo "$as_me:$LINENO: checking for $ac_header" >&5
3407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3409   echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411   cat >conftest.$ac_ext <<_ACEOF
3412 #line $LINENO "configure"
3413 /* confdefs.h.  */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h.  */
3418 $ac_includes_default
3419
3420 #include <$ac_header>
3421 _ACEOF
3422 rm -f conftest.$ac_objext
3423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3424   (eval $ac_compile) 2>&5
3425   ac_status=$?
3426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427   (exit $ac_status); } &&
3428          { ac_try='test -s conftest.$ac_objext'
3429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430   (eval $ac_try) 2>&5
3431   ac_status=$?
3432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433   (exit $ac_status); }; }; then
3434   eval "$as_ac_Header=yes"
3435 else
3436   echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3438
3439 eval "$as_ac_Header=no"
3440 fi
3441 rm -f conftest.$ac_objext conftest.$ac_ext
3442 fi
3443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3446   cat >>confdefs.h <<_ACEOF
3447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3448 _ACEOF
3449
3450 fi
3451
3452 done
3453
3454
3455 if test "${ac_cv_header_minix_config_h+set}" = set; then
3456   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3457 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3458 if test "${ac_cv_header_minix_config_h+set}" = set; then
3459   echo $ECHO_N "(cached) $ECHO_C" >&6
3460 fi
3461 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3462 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3463 else
3464   # Is the header compilable?
3465 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3466 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3467 cat >conftest.$ac_ext <<_ACEOF
3468 #line $LINENO "configure"
3469 /* confdefs.h.  */
3470 _ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h.  */
3474 $ac_includes_default
3475 #include <minix/config.h>
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   ac_header_compiler=yes
3490 else
3491   echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494 ac_header_compiler=no
3495 fi
3496 rm -f conftest.$ac_objext conftest.$ac_ext
3497 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3498 echo "${ECHO_T}$ac_header_compiler" >&6
3499
3500 # Is the header present?
3501 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3502 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3503 cat >conftest.$ac_ext <<_ACEOF
3504 #line $LINENO "configure"
3505 /* confdefs.h.  */
3506 _ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h.  */
3510 #include <minix/config.h>
3511 _ACEOF
3512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3513   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3514   ac_status=$?
3515   grep -v '^ *+' conftest.er1 >conftest.err
3516   rm -f conftest.er1
3517   cat conftest.err >&5
3518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519   (exit $ac_status); } >/dev/null; then
3520   if test -s conftest.err; then
3521     ac_cpp_err=$ac_c_preproc_warn_flag
3522   else
3523     ac_cpp_err=
3524   fi
3525 else
3526   ac_cpp_err=yes
3527 fi
3528 if test -z "$ac_cpp_err"; then
3529   ac_header_preproc=yes
3530 else
3531   echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3533
3534   ac_header_preproc=no
3535 fi
3536 rm -f conftest.err conftest.$ac_ext
3537 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3538 echo "${ECHO_T}$ac_header_preproc" >&6
3539
3540 # So?  What about this header?
3541 case $ac_header_compiler:$ac_header_preproc in
3542   yes:no )
3543     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3544 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3545     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3546 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3547     (
3548       cat <<\_ASBOX
3549 ## ------------------------------------ ##
3550 ## Report this to bug-autoconf@gnu.org. ##
3551 ## ------------------------------------ ##
3552 _ASBOX
3553     ) |
3554       sed "s/^/$as_me: WARNING:     /" >&2
3555     ;;
3556   no:yes )
3557     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3558 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3559     { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3560 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3561     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3562 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3563     (
3564       cat <<\_ASBOX
3565 ## ------------------------------------ ##
3566 ## Report this to bug-autoconf@gnu.org. ##
3567 ## ------------------------------------ ##
3568 _ASBOX
3569     ) |
3570       sed "s/^/$as_me: WARNING:     /" >&2
3571     ;;
3572 esac
3573 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3574 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3575 if test "${ac_cv_header_minix_config_h+set}" = set; then
3576   echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578   ac_cv_header_minix_config_h=$ac_header_preproc
3579 fi
3580 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3581 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3582
3583 fi
3584 if test $ac_cv_header_minix_config_h = yes; then
3585   MINIX=yes
3586 else
3587   MINIX=
3588 fi
3589
3590
3591 if test "$MINIX" = yes; then
3592
3593 cat >>confdefs.h <<\_ACEOF
3594 #define _POSIX_SOURCE 1
3595 _ACEOF
3596
3597
3598 cat >>confdefs.h <<\_ACEOF
3599 #define _POSIX_1_SOURCE 2
3600 _ACEOF
3601
3602
3603 cat >>confdefs.h <<\_ACEOF
3604 #define _MINIX 1
3605 _ACEOF
3606
3607 fi
3608
3609
3610
3611 for ac_func in uname
3612 do
3613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3614 echo "$as_me:$LINENO: checking for $ac_func" >&5
3615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3616 if eval "test \"\${$as_ac_var+set}\" = set"; then
3617   echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619   cat >conftest.$ac_ext <<_ACEOF
3620 #line $LINENO "configure"
3621 /* confdefs.h.  */
3622 _ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h.  */
3626 /* System header to define __stub macros and hopefully few prototypes,
3627     which can conflict with char $ac_func (); below.
3628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3629     <limits.h> exists even on freestanding compilers.  */
3630 #ifdef __STDC__
3631 # include <limits.h>
3632 #else
3633 # include <assert.h>
3634 #endif
3635 /* Override any gcc2 internal prototype to avoid an error.  */
3636 #ifdef __cplusplus
3637 extern "C"
3638 {
3639 #endif
3640 /* We use char because int might match the return type of a gcc2
3641    builtin and then its argument prototype would still apply.  */
3642 char $ac_func ();
3643 /* The GNU C library defines this for functions which it implements
3644     to always fail with ENOSYS.  Some functions are actually named
3645     something starting with __ and the normal name is an alias.  */
3646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3647 choke me
3648 #else
3649 char (*f) () = $ac_func;
3650 #endif
3651 #ifdef __cplusplus
3652 }
3653 #endif
3654
3655 int
3656 main ()
3657 {
3658 return f != $ac_func;
3659   ;
3660   return 0;
3661 }
3662 _ACEOF
3663 rm -f conftest.$ac_objext conftest$ac_exeext
3664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3665   (eval $ac_link) 2>&5
3666   ac_status=$?
3667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668   (exit $ac_status); } &&
3669          { ac_try='test -s conftest$ac_exeext'
3670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671   (eval $ac_try) 2>&5
3672   ac_status=$?
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); }; }; then
3675   eval "$as_ac_var=yes"
3676 else
3677   echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3679
3680 eval "$as_ac_var=no"
3681 fi
3682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3683 fi
3684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3686 if test `eval echo '${'$as_ac_var'}'` = yes; then
3687   cat >>confdefs.h <<_ACEOF
3688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3689 _ACEOF
3690  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uname" MAN="$MAN uname.1"
3691 fi
3692 done
3693
3694
3695 for ac_func in chroot
3696 do
3697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3698 echo "$as_me:$LINENO: checking for $ac_func" >&5
3699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3700 if eval "test \"\${$as_ac_var+set}\" = set"; then
3701   echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703   cat >conftest.$ac_ext <<_ACEOF
3704 #line $LINENO "configure"
3705 /* confdefs.h.  */
3706 _ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h.  */
3710 /* System header to define __stub macros and hopefully few prototypes,
3711     which can conflict with char $ac_func (); below.
3712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3713     <limits.h> exists even on freestanding compilers.  */
3714 #ifdef __STDC__
3715 # include <limits.h>
3716 #else
3717 # include <assert.h>
3718 #endif
3719 /* Override any gcc2 internal prototype to avoid an error.  */
3720 #ifdef __cplusplus
3721 extern "C"
3722 {
3723 #endif
3724 /* We use char because int might match the return type of a gcc2
3725    builtin and then its argument prototype would still apply.  */
3726 char $ac_func ();
3727 /* The GNU C library defines this for functions which it implements
3728     to always fail with ENOSYS.  Some functions are actually named
3729     something starting with __ and the normal name is an alias.  */
3730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3731 choke me
3732 #else
3733 char (*f) () = $ac_func;
3734 #endif
3735 #ifdef __cplusplus
3736 }
3737 #endif
3738
3739 int
3740 main ()
3741 {
3742 return f != $ac_func;
3743   ;
3744   return 0;
3745 }
3746 _ACEOF
3747 rm -f conftest.$ac_objext conftest$ac_exeext
3748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3749   (eval $ac_link) 2>&5
3750   ac_status=$?
3751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752   (exit $ac_status); } &&
3753          { ac_try='test -s conftest$ac_exeext'
3754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755   (eval $ac_try) 2>&5
3756   ac_status=$?
3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758   (exit $ac_status); }; }; then
3759   eval "$as_ac_var=yes"
3760 else
3761   echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3763
3764 eval "$as_ac_var=no"
3765 fi
3766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3767 fi
3768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3770 if test `eval echo '${'$as_ac_var'}'` = yes; then
3771   cat >>confdefs.h <<_ACEOF
3772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3773 _ACEOF
3774  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS chroot" MAN="$MAN chroot.1"
3775 fi
3776 done
3777
3778
3779 for ac_func in gethostid
3780 do
3781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3782 echo "$as_me:$LINENO: checking for $ac_func" >&5
3783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3784 if eval "test \"\${$as_ac_var+set}\" = set"; then
3785   echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787   cat >conftest.$ac_ext <<_ACEOF
3788 #line $LINENO "configure"
3789 /* confdefs.h.  */
3790 _ACEOF
3791 cat confdefs.h >>conftest.$ac_ext
3792 cat >>conftest.$ac_ext <<_ACEOF
3793 /* end confdefs.h.  */
3794 /* System header to define __stub macros and hopefully few prototypes,
3795     which can conflict with char $ac_func (); below.
3796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3797     <limits.h> exists even on freestanding compilers.  */
3798 #ifdef __STDC__
3799 # include <limits.h>
3800 #else
3801 # include <assert.h>
3802 #endif
3803 /* Override any gcc2 internal prototype to avoid an error.  */
3804 #ifdef __cplusplus
3805 extern "C"
3806 {
3807 #endif
3808 /* We use char because int might match the return type of a gcc2
3809    builtin and then its argument prototype would still apply.  */
3810 char $ac_func ();
3811 /* The GNU C library defines this for functions which it implements
3812     to always fail with ENOSYS.  Some functions are actually named
3813     something starting with __ and the normal name is an alias.  */
3814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3815 choke me
3816 #else
3817 char (*f) () = $ac_func;
3818 #endif
3819 #ifdef __cplusplus
3820 }
3821 #endif
3822
3823 int
3824 main ()
3825 {
3826 return f != $ac_func;
3827   ;
3828   return 0;
3829 }
3830 _ACEOF
3831 rm -f conftest.$ac_objext conftest$ac_exeext
3832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3833   (eval $ac_link) 2>&5
3834   ac_status=$?
3835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836   (exit $ac_status); } &&
3837          { ac_try='test -s conftest$ac_exeext'
3838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839   (eval $ac_try) 2>&5
3840   ac_status=$?
3841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842   (exit $ac_status); }; }; then
3843   eval "$as_ac_var=yes"
3844 else
3845   echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3847
3848 eval "$as_ac_var=no"
3849 fi
3850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3851 fi
3852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3853 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3854 if test `eval echo '${'$as_ac_var'}'` = yes; then
3855   cat >>confdefs.h <<_ACEOF
3856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3857 _ACEOF
3858  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS hostid" MAN="$MAN hostid.1"
3859 fi
3860 done
3861
3862
3863
3864         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3865 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3866 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3867   echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869   ac_check_lib_save_LIBS=$LIBS
3870 LIBS="-lcposix  $LIBS"
3871 cat >conftest.$ac_ext <<_ACEOF
3872 #line $LINENO "configure"
3873 /* confdefs.h.  */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h.  */
3878
3879 /* Override any gcc2 internal prototype to avoid an error.  */
3880 #ifdef __cplusplus
3881 extern "C"
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 strerror ();
3886 int
3887 main ()
3888 {
3889 strerror ();
3890   ;
3891   return 0;
3892 }
3893 _ACEOF
3894 rm -f conftest.$ac_objext conftest$ac_exeext
3895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3896   (eval $ac_link) 2>&5
3897   ac_status=$?
3898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899   (exit $ac_status); } &&
3900          { ac_try='test -s conftest$ac_exeext'
3901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902   (eval $ac_try) 2>&5
3903   ac_status=$?
3904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905   (exit $ac_status); }; }; then
3906   ac_cv_lib_cposix_strerror=yes
3907 else
3908   echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911 ac_cv_lib_cposix_strerror=no
3912 fi
3913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3914 LIBS=$ac_check_lib_save_LIBS
3915 fi
3916 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3917 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3918 if test $ac_cv_lib_cposix_strerror = yes; then
3919   LIBS="$LIBS -lcposix"
3920 fi
3921
3922
3923
3924 # Check whether --enable-largefile or --disable-largefile was given.
3925 if test "${enable_largefile+set}" = set; then
3926   enableval="$enable_largefile"
3927
3928 fi;
3929 if test "$enable_largefile" != no; then
3930
3931   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3932 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3933 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3934   echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936   ac_cv_sys_largefile_CC=no
3937      if test "$GCC" != yes; then
3938        ac_save_CC=$CC
3939        while :; do
3940          # IRIX 6.2 and later do not support large files by default,
3941          # so use the C compiler's -n32 option if that helps.
3942          cat >conftest.$ac_ext <<_ACEOF
3943 #line $LINENO "configure"
3944 /* confdefs.h.  */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h.  */
3949 #include <sys/types.h>
3950  /* Check that off_t can represent 2**63 - 1 correctly.
3951     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3952     since some C++ compilers masquerading as C compilers
3953     incorrectly reject 9223372036854775807.  */
3954 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3955   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3956                        && LARGE_OFF_T % 2147483647 == 1)
3957                       ? 1 : -1];
3958 int
3959 main ()
3960 {
3961
3962   ;
3963   return 0;
3964 }
3965 _ACEOF
3966          rm -f conftest.$ac_objext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3968   (eval $ac_compile) 2>&5
3969   ac_status=$?
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); } &&
3972          { ac_try='test -s conftest.$ac_objext'
3973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974   (eval $ac_try) 2>&5
3975   ac_status=$?
3976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977   (exit $ac_status); }; }; then
3978   break
3979 else
3980   echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983 fi
3984 rm -f conftest.$ac_objext
3985          CC="$CC -n32"
3986          rm -f conftest.$ac_objext
3987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3988   (eval $ac_compile) 2>&5
3989   ac_status=$?
3990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991   (exit $ac_status); } &&
3992          { ac_try='test -s conftest.$ac_objext'
3993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994   (eval $ac_try) 2>&5
3995   ac_status=$?
3996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997   (exit $ac_status); }; }; then
3998   ac_cv_sys_largefile_CC=' -n32'; break
3999 else
4000   echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4002
4003 fi
4004 rm -f conftest.$ac_objext
4005          break
4006        done
4007        CC=$ac_save_CC
4008        rm -f conftest.$ac_ext
4009     fi
4010 fi
4011 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4012 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4013   if test "$ac_cv_sys_largefile_CC" != no; then
4014     CC=$CC$ac_cv_sys_largefile_CC
4015   fi
4016
4017   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4018 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4019 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4020   echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022   while :; do
4023   ac_cv_sys_file_offset_bits=no
4024   cat >conftest.$ac_ext <<_ACEOF
4025 #line $LINENO "configure"
4026 /* confdefs.h.  */
4027 _ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h.  */
4031 #include <sys/types.h>
4032  /* Check that off_t can represent 2**63 - 1 correctly.
4033     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4034     since some C++ compilers masquerading as C compilers
4035     incorrectly reject 9223372036854775807.  */
4036 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4037   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4038                        && LARGE_OFF_T % 2147483647 == 1)
4039                       ? 1 : -1];
4040 int
4041 main ()
4042 {
4043
4044   ;
4045   return 0;
4046 }
4047 _ACEOF
4048 rm -f conftest.$ac_objext
4049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4050   (eval $ac_compile) 2>&5
4051   ac_status=$?
4052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053   (exit $ac_status); } &&
4054          { ac_try='test -s conftest.$ac_objext'
4055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056   (eval $ac_try) 2>&5
4057   ac_status=$?
4058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059   (exit $ac_status); }; }; then
4060   break
4061 else
4062   echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4064
4065 fi
4066 rm -f conftest.$ac_objext conftest.$ac_ext
4067   cat >conftest.$ac_ext <<_ACEOF
4068 #line $LINENO "configure"
4069 /* confdefs.h.  */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h.  */
4074 #define _FILE_OFFSET_BITS 64
4075 #include <sys/types.h>
4076  /* Check that off_t can represent 2**63 - 1 correctly.
4077     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4078     since some C++ compilers masquerading as C compilers
4079     incorrectly reject 9223372036854775807.  */
4080 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4081   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4082                        && LARGE_OFF_T % 2147483647 == 1)
4083                       ? 1 : -1];
4084 int
4085 main ()
4086 {
4087
4088   ;
4089   return 0;
4090 }
4091 _ACEOF
4092 rm -f conftest.$ac_objext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094   (eval $ac_compile) 2>&5
4095   ac_status=$?
4096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097   (exit $ac_status); } &&
4098          { ac_try='test -s conftest.$ac_objext'
4099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100   (eval $ac_try) 2>&5
4101   ac_status=$?
4102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103   (exit $ac_status); }; }; then
4104   ac_cv_sys_file_offset_bits=64; break
4105 else
4106   echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4108
4109 fi
4110 rm -f conftest.$ac_objext conftest.$ac_ext
4111   break
4112 done
4113 fi
4114 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4115 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4116 if test "$ac_cv_sys_file_offset_bits" != no; then
4117
4118 cat >>confdefs.h <<_ACEOF
4119 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4120 _ACEOF
4121
4122 fi
4123 rm -f conftest*
4124   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4125 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4126 if test "${ac_cv_sys_large_files+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129   while :; do
4130   ac_cv_sys_large_files=no
4131   cat >conftest.$ac_ext <<_ACEOF
4132 #line $LINENO "configure"
4133 /* confdefs.h.  */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h.  */
4138 #include <sys/types.h>
4139  /* Check that off_t can represent 2**63 - 1 correctly.
4140     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4141     since some C++ compilers masquerading as C compilers
4142     incorrectly reject 9223372036854775807.  */
4143 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4144   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4145                        && LARGE_OFF_T % 2147483647 == 1)
4146                       ? 1 : -1];
4147 int
4148 main ()
4149 {
4150
4151   ;
4152   return 0;
4153 }
4154 _ACEOF
4155 rm -f conftest.$ac_objext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157   (eval $ac_compile) 2>&5
4158   ac_status=$?
4159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160   (exit $ac_status); } &&
4161          { ac_try='test -s conftest.$ac_objext'
4162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163   (eval $ac_try) 2>&5
4164   ac_status=$?
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); }; }; then
4167   break
4168 else
4169   echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4171
4172 fi
4173 rm -f conftest.$ac_objext conftest.$ac_ext
4174   cat >conftest.$ac_ext <<_ACEOF
4175 #line $LINENO "configure"
4176 /* confdefs.h.  */
4177 _ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h.  */
4181 #define _LARGE_FILES 1
4182 #include <sys/types.h>
4183  /* Check that off_t can represent 2**63 - 1 correctly.
4184     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4185     since some C++ compilers masquerading as C compilers
4186     incorrectly reject 9223372036854775807.  */
4187 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4188   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4189                        && LARGE_OFF_T % 2147483647 == 1)
4190                       ? 1 : -1];
4191 int
4192 main ()
4193 {
4194
4195   ;
4196   return 0;
4197 }
4198 _ACEOF
4199 rm -f conftest.$ac_objext
4200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4201   (eval $ac_compile) 2>&5
4202   ac_status=$?
4203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204   (exit $ac_status); } &&
4205          { ac_try='test -s conftest.$ac_objext'
4206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207   (eval $ac_try) 2>&5
4208   ac_status=$?
4209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210   (exit $ac_status); }; }; then
4211   ac_cv_sys_large_files=1; break
4212 else
4213   echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4215
4216 fi
4217 rm -f conftest.$ac_objext conftest.$ac_ext
4218   break
4219 done
4220 fi
4221 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4222 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4223 if test "$ac_cv_sys_large_files" != no; then
4224
4225 cat >>confdefs.h <<_ACEOF
4226 #define _LARGE_FILES $ac_cv_sys_large_files
4227 _ACEOF
4228
4229 fi
4230 rm -f conftest*
4231 fi
4232
4233
4234
4235
4236 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4237 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
4238 if test "${am_cv_prog_cc_stdc+set}" = set; then
4239   echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241   am_cv_prog_cc_stdc=no
4242 ac_save_CC="$CC"
4243 # Don't try gcc -ansi; that turns off useful extensions and
4244 # breaks some systems' header files.
4245 # AIX                   -qlanglvl=ansi
4246 # Ultrix and OSF/1      -std1
4247 # HP-UX 10.20 and later -Ae
4248 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4249 # SVR4                  -Xc -D__EXTENSIONS__
4250 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4251 do
4252   CC="$ac_save_CC $ac_arg"
4253   cat >conftest.$ac_ext <<_ACEOF
4254 #line $LINENO "configure"
4255 /* confdefs.h.  */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h.  */
4260 #include <stdarg.h>
4261 #include <stdio.h>
4262 #include <sys/types.h>
4263 #include <sys/stat.h>
4264 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4265 struct buf { int x; };
4266 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4267 static char *e (p, i)
4268      char **p;
4269      int i;
4270 {
4271   return p[i];
4272 }
4273 static char *f (char * (*g) (char **, int), char **p, ...)
4274 {
4275   char *s;
4276   va_list v;
4277   va_start (v,p);
4278   s = g (p, va_arg (v,int));
4279   va_end (v);
4280   return s;
4281 }
4282 int test (int i, double x);
4283 struct s1 {int (*f) (int a);};
4284 struct s2 {int (*f) (double a);};
4285 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4286 int argc;
4287 char **argv;
4288
4289 int
4290 main ()
4291 {
4292
4293 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4294
4295   ;
4296   return 0;
4297 }
4298 _ACEOF
4299 rm -f conftest.$ac_objext
4300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4301   (eval $ac_compile) 2>&5
4302   ac_status=$?
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); } &&
4305          { ac_try='test -s conftest.$ac_objext'
4306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307   (eval $ac_try) 2>&5
4308   ac_status=$?
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); }; }; then
4311   am_cv_prog_cc_stdc="$ac_arg"; break
4312 else
4313   echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4315
4316 fi
4317 rm -f conftest.$ac_objext conftest.$ac_ext
4318 done
4319 CC="$ac_save_CC"
4320
4321 fi
4322
4323 if test -z "$am_cv_prog_cc_stdc"; then
4324   echo "$as_me:$LINENO: result: none needed" >&5
4325 echo "${ECHO_T}none needed" >&6
4326 else
4327   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4328 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
4329 fi
4330 case "x$am_cv_prog_cc_stdc" in
4331   x|xno) ;;
4332   *) CC="$CC $am_cv_prog_cc_stdc" ;;
4333 esac
4334
4335
4336
4337 echo "$as_me:$LINENO: checking for function prototypes" >&5
4338 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4339 if test "$am_cv_prog_cc_stdc" != no; then
4340   echo "$as_me:$LINENO: result: yes" >&5
4341 echo "${ECHO_T}yes" >&6
4342
4343 cat >>confdefs.h <<\_ACEOF
4344 #define PROTOTYPES 1
4345 _ACEOF
4346
4347   U= ANSI2KNR=
4348 else
4349   echo "$as_me:$LINENO: result: no" >&5
4350 echo "${ECHO_T}no" >&6
4351   U=_ ANSI2KNR=./ansi2knr
4352 fi
4353 # Ensure some checks needed by ansi2knr itself.
4354 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4355 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4356 if test "${ac_cv_header_stdc+set}" = set; then
4357   echo $ECHO_N "(cached) $ECHO_C" >&6
4358 else
4359   cat >conftest.$ac_ext <<_ACEOF
4360 #line $LINENO "configure"
4361 /* confdefs.h.  */
4362 _ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h.  */
4366 #include <stdlib.h>
4367 #include <stdarg.h>
4368 #include <string.h>
4369 #include <float.h>
4370
4371 int
4372 main ()
4373 {
4374
4375   ;
4376   return 0;
4377 }
4378 _ACEOF
4379 rm -f conftest.$ac_objext
4380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4381   (eval $ac_compile) 2>&5
4382   ac_status=$?
4383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384   (exit $ac_status); } &&
4385          { ac_try='test -s conftest.$ac_objext'
4386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387   (eval $ac_try) 2>&5
4388   ac_status=$?
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); }; }; then
4391   ac_cv_header_stdc=yes
4392 else
4393   echo "$as_me: failed program was:" >&5
4394 sed 's/^/| /' conftest.$ac_ext >&5
4395
4396 ac_cv_header_stdc=no
4397 fi
4398 rm -f conftest.$ac_objext conftest.$ac_ext
4399
4400 if test $ac_cv_header_stdc = yes; then
4401   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4402   cat >conftest.$ac_ext <<_ACEOF
4403 #line $LINENO "configure"
4404 /* confdefs.h.  */
4405 _ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h.  */
4409 #include <string.h>
4410
4411 _ACEOF
4412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4413   $EGREP "memchr" >/dev/null 2>&1; then
4414   :
4415 else
4416   ac_cv_header_stdc=no
4417 fi
4418 rm -f conftest*
4419
4420 fi
4421
4422 if test $ac_cv_header_stdc = yes; then
4423   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4424   cat >conftest.$ac_ext <<_ACEOF
4425 #line $LINENO "configure"
4426 /* confdefs.h.  */
4427 _ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h.  */
4431 #include <stdlib.h>
4432
4433 _ACEOF
4434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4435   $EGREP "free" >/dev/null 2>&1; then
4436   :
4437 else
4438   ac_cv_header_stdc=no
4439 fi
4440 rm -f conftest*
4441
4442 fi
4443
4444 if test $ac_cv_header_stdc = yes; then
4445   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4446   if test "$cross_compiling" = yes; then
4447   :
4448 else
4449   cat >conftest.$ac_ext <<_ACEOF
4450 #line $LINENO "configure"
4451 /* confdefs.h.  */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h.  */
4456 #include <ctype.h>
4457 #if ((' ' & 0x0FF) == 0x020)
4458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4460 #else
4461 # define ISLOWER(c) \
4462                    (('a' <= (c) && (c) <= 'i') \
4463                      || ('j' <= (c) && (c) <= 'r') \
4464                      || ('s' <= (c) && (c) <= 'z'))
4465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4466 #endif
4467
4468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4469 int
4470 main ()
4471 {
4472   int i;
4473   for (i = 0; i < 256; i++)
4474     if (XOR (islower (i), ISLOWER (i))
4475         || toupper (i) != TOUPPER (i))
4476       exit(2);
4477   exit (0);
4478 }
4479 _ACEOF
4480 rm -f conftest$ac_exeext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4482   (eval $ac_link) 2>&5
4483   ac_status=$?
4484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487   (eval $ac_try) 2>&5
4488   ac_status=$?
4489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); }; }; then
4491   :
4492 else
4493   echo "$as_me: program exited with status $ac_status" >&5
4494 echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4496
4497 ( exit $ac_status )
4498 ac_cv_header_stdc=no
4499 fi
4500 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4501 fi
4502 fi
4503 fi
4504 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4505 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4506 if test $ac_cv_header_stdc = yes; then
4507
4508 cat >>confdefs.h <<\_ACEOF
4509 #define STDC_HEADERS 1
4510 _ACEOF
4511
4512 fi
4513
4514
4515 for ac_header in string.h
4516 do
4517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4519   echo "$as_me:$LINENO: checking for $ac_header" >&5
4520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4522   echo $ECHO_N "(cached) $ECHO_C" >&6
4523 fi
4524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4526 else
4527   # Is the header compilable?
4528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4530 cat >conftest.$ac_ext <<_ACEOF
4531 #line $LINENO "configure"
4532 /* confdefs.h.  */
4533 _ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h.  */
4537 $ac_includes_default
4538 #include <$ac_header>
4539 _ACEOF
4540 rm -f conftest.$ac_objext
4541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4542   (eval $ac_compile) 2>&5
4543   ac_status=$?
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); } &&
4546          { ac_try='test -s conftest.$ac_objext'
4547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548   (eval $ac_try) 2>&5
4549   ac_status=$?
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); }; }; then
4552   ac_header_compiler=yes
4553 else
4554   echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4556
4557 ac_header_compiler=no
4558 fi
4559 rm -f conftest.$ac_objext conftest.$ac_ext
4560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4561 echo "${ECHO_T}$ac_header_compiler" >&6
4562
4563 # Is the header present?
4564 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4566 cat >conftest.$ac_ext <<_ACEOF
4567 #line $LINENO "configure"
4568 /* confdefs.h.  */
4569 _ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h.  */
4573 #include <$ac_header>
4574 _ACEOF
4575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4576   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4577   ac_status=$?
4578   grep -v '^ *+' conftest.er1 >conftest.err
4579   rm -f conftest.er1
4580   cat conftest.err >&5
4581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); } >/dev/null; then
4583   if test -s conftest.err; then
4584     ac_cpp_err=$ac_c_preproc_warn_flag
4585   else
4586     ac_cpp_err=
4587   fi
4588 else
4589   ac_cpp_err=yes
4590 fi
4591 if test -z "$ac_cpp_err"; then
4592   ac_header_preproc=yes
4593 else
4594   echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4596
4597   ac_header_preproc=no
4598 fi
4599 rm -f conftest.err conftest.$ac_ext
4600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4601 echo "${ECHO_T}$ac_header_preproc" >&6
4602
4603 # So?  What about this header?
4604 case $ac_header_compiler:$ac_header_preproc in
4605   yes:no )
4606     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4610     (
4611       cat <<\_ASBOX
4612 ## ------------------------------------ ##
4613 ## Report this to bug-autoconf@gnu.org. ##
4614 ## ------------------------------------ ##
4615 _ASBOX
4616     ) |
4617       sed "s/^/$as_me: WARNING:     /" >&2
4618     ;;
4619   no:yes )
4620     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4622     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4626     (
4627       cat <<\_ASBOX
4628 ## ------------------------------------ ##
4629 ## Report this to bug-autoconf@gnu.org. ##
4630 ## ------------------------------------ ##
4631 _ASBOX
4632     ) |
4633       sed "s/^/$as_me: WARNING:     /" >&2
4634     ;;
4635 esac
4636 echo "$as_me:$LINENO: checking for $ac_header" >&5
4637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4639   echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641   eval "$as_ac_Header=$ac_header_preproc"
4642 fi
4643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4645
4646 fi
4647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4648   cat >>confdefs.h <<_ACEOF
4649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4650 _ACEOF
4651
4652 fi
4653
4654 done
4655
4656
4657 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4658 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4659 if test "${ac_cv_c_bigendian+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   # See if sys/param.h defines the BYTE_ORDER macro.
4663 cat >conftest.$ac_ext <<_ACEOF
4664 #line $LINENO "configure"
4665 /* confdefs.h.  */
4666 _ACEOF
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h.  */
4670 #include <sys/types.h>
4671 #include <sys/param.h>
4672
4673 int
4674 main ()
4675 {
4676 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4677  bogus endian macros
4678 #endif
4679
4680   ;
4681   return 0;
4682 }
4683 _ACEOF
4684 rm -f conftest.$ac_objext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4686   (eval $ac_compile) 2>&5
4687   ac_status=$?
4688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689   (exit $ac_status); } &&
4690          { ac_try='test -s conftest.$ac_objext'
4691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692   (eval $ac_try) 2>&5
4693   ac_status=$?
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); }; }; then
4696   # It does; now see whether it defined to BIG_ENDIAN or not.
4697 cat >conftest.$ac_ext <<_ACEOF
4698 #line $LINENO "configure"
4699 /* confdefs.h.  */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h.  */
4704 #include <sys/types.h>
4705 #include <sys/param.h>
4706
4707 int
4708 main ()
4709 {
4710 #if BYTE_ORDER != BIG_ENDIAN
4711  not big endian
4712 #endif
4713
4714   ;
4715   return 0;
4716 }
4717 _ACEOF
4718 rm -f conftest.$ac_objext
4719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4720   (eval $ac_compile) 2>&5
4721   ac_status=$?
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); } &&
4724          { ac_try='test -s conftest.$ac_objext'
4725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726   (eval $ac_try) 2>&5
4727   ac_status=$?
4728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729   (exit $ac_status); }; }; then
4730   ac_cv_c_bigendian=yes
4731 else
4732   echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4734
4735 ac_cv_c_bigendian=no
4736 fi
4737 rm -f conftest.$ac_objext conftest.$ac_ext
4738 else
4739   echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4741
4742 # It does not; compile a test program.
4743 if test "$cross_compiling" = yes; then
4744   # try to guess the endianness by grepping values into an object file
4745   ac_cv_c_bigendian=unknown
4746   cat >conftest.$ac_ext <<_ACEOF
4747 #line $LINENO "configure"
4748 /* confdefs.h.  */
4749 _ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h.  */
4753 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4754 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4755 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4756 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4757 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4758 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4759 int
4760 main ()
4761 {
4762  _ascii (); _ebcdic ();
4763   ;
4764   return 0;
4765 }
4766 _ACEOF
4767 rm -f conftest.$ac_objext
4768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4769   (eval $ac_compile) 2>&5
4770   ac_status=$?
4771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772   (exit $ac_status); } &&
4773          { ac_try='test -s conftest.$ac_objext'
4774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775   (eval $ac_try) 2>&5
4776   ac_status=$?
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); }; }; then
4779   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4780   ac_cv_c_bigendian=yes
4781 fi
4782 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4783   if test "$ac_cv_c_bigendian" = unknown; then
4784     ac_cv_c_bigendian=no
4785   else
4786     # finding both strings is unlikely to happen, but who knows?
4787     ac_cv_c_bigendian=unknown
4788   fi
4789 fi
4790 else
4791   echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4793
4794 fi
4795 rm -f conftest.$ac_objext conftest.$ac_ext
4796 else
4797   cat >conftest.$ac_ext <<_ACEOF
4798 #line $LINENO "configure"
4799 /* confdefs.h.  */
4800 _ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h.  */
4804 int
4805 main ()
4806 {
4807   /* Are we little or big endian?  From Harbison&Steele.  */
4808   union
4809   {
4810     long l;
4811     char c[sizeof (long)];
4812   } u;
4813   u.l = 1;
4814   exit (u.c[sizeof (long) - 1] == 1);
4815 }
4816 _ACEOF
4817 rm -f conftest$ac_exeext
4818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4819   (eval $ac_link) 2>&5
4820   ac_status=$?
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824   (eval $ac_try) 2>&5
4825   ac_status=$?
4826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827   (exit $ac_status); }; }; then
4828   ac_cv_c_bigendian=no
4829 else
4830   echo "$as_me: program exited with status $ac_status" >&5
4831 echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4833
4834 ( exit $ac_status )
4835 ac_cv_c_bigendian=yes
4836 fi
4837 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4838 fi
4839 fi
4840 rm -f conftest.$ac_objext conftest.$ac_ext
4841 fi
4842 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4843 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4844 case $ac_cv_c_bigendian in
4845   yes)
4846
4847 cat >>confdefs.h <<\_ACEOF
4848 #define WORDS_BIGENDIAN 1
4849 _ACEOF
4850  ;;
4851   no)
4852      ;;
4853   *)
4854     { { echo "$as_me:$LINENO: error: unknown endianness
4855 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4856 echo "$as_me: error: unknown endianness
4857 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4858    { (exit 1); exit 1; }; } ;;
4859 esac
4860
4861 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4862 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4863 if test "${ac_cv_c_const+set}" = set; then
4864   echo $ECHO_N "(cached) $ECHO_C" >&6
4865 else
4866   cat >conftest.$ac_ext <<_ACEOF
4867 #line $LINENO "configure"
4868 /* confdefs.h.  */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h.  */
4873
4874 int
4875 main ()
4876 {
4877 /* FIXME: Include the comments suggested by Paul. */
4878 #ifndef __cplusplus
4879   /* Ultrix mips cc rejects this.  */
4880   typedef int charset[2];
4881   const charset x;
4882   /* SunOS 4.1.1 cc rejects this.  */
4883   char const *const *ccp;
4884   char **p;
4885   /* NEC SVR4.0.2 mips cc rejects this.  */
4886   struct point {int x, y;};
4887   static struct point const zero = {0,0};
4888   /* AIX XL C 1.02.0.0 rejects this.
4889      It does not let you subtract one const X* pointer from another in
4890      an arm of an if-expression whose if-part is not a constant
4891      expression */
4892   const char *g = "string";
4893   ccp = &g + (g ? g-g : 0);
4894   /* HPUX 7.0 cc rejects these. */
4895   ++ccp;
4896   p = (char**) ccp;
4897   ccp = (char const *const *) p;
4898   { /* SCO 3.2v4 cc rejects this.  */
4899     char *t;
4900     char const *s = 0 ? (char *) 0 : (char const *) 0;
4901
4902     *t++ = 0;
4903   }
4904   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4905     int x[] = {25, 17};
4906     const int *foo = &x[0];
4907     ++foo;
4908   }
4909   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4910     typedef const int *iptr;
4911     iptr p = 0;
4912     ++p;
4913   }
4914   { /* AIX XL C 1.02.0.0 rejects this saying
4915        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4916     struct s { int j; const int *ap[3]; };
4917     struct s *b; b->j = 5;
4918   }
4919   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4920     const int foo = 10;
4921   }
4922 #endif
4923
4924   ;
4925   return 0;
4926 }
4927 _ACEOF
4928 rm -f conftest.$ac_objext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4930   (eval $ac_compile) 2>&5
4931   ac_status=$?
4932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933   (exit $ac_status); } &&
4934          { ac_try='test -s conftest.$ac_objext'
4935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936   (eval $ac_try) 2>&5
4937   ac_status=$?
4938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939   (exit $ac_status); }; }; then
4940   ac_cv_c_const=yes
4941 else
4942   echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4944
4945 ac_cv_c_const=no
4946 fi
4947 rm -f conftest.$ac_objext conftest.$ac_ext
4948 fi
4949 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4950 echo "${ECHO_T}$ac_cv_c_const" >&6
4951 if test $ac_cv_c_const = no; then
4952
4953 cat >>confdefs.h <<\_ACEOF
4954 #define const
4955 _ACEOF
4956
4957 fi
4958
4959 echo "$as_me:$LINENO: checking for working volatile" >&5
4960 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4961 if test "${ac_cv_c_volatile+set}" = set; then
4962   echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964   cat >conftest.$ac_ext <<_ACEOF
4965 #line $LINENO "configure"
4966 /* confdefs.h.  */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h.  */
4971
4972 int
4973 main ()
4974 {
4975
4976 volatile int x;
4977 int * volatile y;
4978   ;
4979   return 0;
4980 }
4981 _ACEOF
4982 rm -f conftest.$ac_objext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984   (eval $ac_compile) 2>&5
4985   ac_status=$?
4986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987   (exit $ac_status); } &&
4988          { ac_try='test -s conftest.$ac_objext'
4989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990   (eval $ac_try) 2>&5
4991   ac_status=$?
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); }; }; then
4994   ac_cv_c_volatile=yes
4995 else
4996   echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4998
4999 ac_cv_c_volatile=no
5000 fi
5001 rm -f conftest.$ac_objext conftest.$ac_ext
5002 fi
5003 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5004 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5005 if test $ac_cv_c_volatile = no; then
5006
5007 cat >>confdefs.h <<\_ACEOF
5008 #define volatile
5009 _ACEOF
5010
5011 fi
5012
5013 echo "$as_me:$LINENO: checking for inline" >&5
5014 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5015 if test "${ac_cv_c_inline+set}" = set; then
5016   echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018   ac_cv_c_inline=no
5019 for ac_kw in inline __inline__ __inline; do
5020   cat >conftest.$ac_ext <<_ACEOF
5021 #line $LINENO "configure"
5022 /* confdefs.h.  */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h.  */
5027 #ifndef __cplusplus
5028 typedef int foo_t;
5029 static $ac_kw foo_t static_foo () {return 0; }
5030 $ac_kw foo_t foo () {return 0; }
5031 #endif
5032
5033 _ACEOF
5034 rm -f conftest.$ac_objext
5035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5036   (eval $ac_compile) 2>&5
5037   ac_status=$?
5038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039   (exit $ac_status); } &&
5040          { ac_try='test -s conftest.$ac_objext'
5041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042   (eval $ac_try) 2>&5
5043   ac_status=$?
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); }; }; then
5046   ac_cv_c_inline=$ac_kw; break
5047 else
5048   echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5050
5051 fi
5052 rm -f conftest.$ac_objext conftest.$ac_ext
5053 done
5054
5055 fi
5056 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5057 echo "${ECHO_T}$ac_cv_c_inline" >&6
5058 case $ac_cv_c_inline in
5059   inline | yes) ;;
5060   no)
5061 cat >>confdefs.h <<\_ACEOF
5062 #define inline
5063 _ACEOF
5064  ;;
5065   *)  cat >>confdefs.h <<_ACEOF
5066 #define inline $ac_cv_c_inline
5067 _ACEOF
5068  ;;
5069 esac
5070
5071 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
5072 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
5073 if test "${ac_cv_c_long_double+set}" = set; then
5074   echo $ECHO_N "(cached) $ECHO_C" >&6
5075 else
5076   cat >conftest.$ac_ext <<_ACEOF
5077 #line $LINENO "configure"
5078 /* confdefs.h.  */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h.  */
5083 #include <float.h>
5084           long double foo = 0.0;
5085 int
5086 main ()
5087 {
5088 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug.  */
5089           (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
5090           | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
5091 test_array [0] = 0
5092
5093   ;
5094   return 0;
5095 }
5096 _ACEOF
5097 rm -f conftest.$ac_objext
5098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5099   (eval $ac_compile) 2>&5
5100   ac_status=$?
5101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102   (exit $ac_status); } &&
5103          { ac_try='test -s conftest.$ac_objext'
5104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105   (eval $ac_try) 2>&5
5106   ac_status=$?
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); }; }; then
5109   ac_cv_c_long_double=yes
5110 else
5111   echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5113
5114 ac_cv_c_long_double=no
5115 fi
5116 rm -f conftest.$ac_objext conftest.$ac_ext
5117 fi
5118 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
5119 echo "${ECHO_T}$ac_cv_c_long_double" >&6
5120 if test $ac_cv_c_long_double = yes; then
5121
5122 cat >>confdefs.h <<\_ACEOF
5123 #define HAVE_LONG_DOUBLE 1
5124 _ACEOF
5125
5126 fi
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166 for ac_header in \
5167     errno.h  \
5168     fcntl.h \
5169     float.h \
5170     hurd.h \
5171     limits.h \
5172     memory.h \
5173     mntent.h \
5174     mnttab.h \
5175     netdb.h \
5176     paths.h \
5177     stdlib.h \
5178     stddef.h \
5179     stdint.h \
5180     string.h \
5181     sys/filsys.h \
5182     sys/fs/s5param.h \
5183     sys/fs_types.h \
5184     sys/fstyp.h \
5185     sys/ioctl.h \
5186     sys/mntent.h \
5187     sys/mount.h \
5188     sys/param.h \
5189     sys/resource.h \
5190     sys/socket.h \
5191     sys/statfs.h \
5192     sys/statvfs.h \
5193     sys/sysctl.h \
5194     sys/systeminfo.h \
5195     sys/time.h \
5196     sys/timeb.h \
5197     sys/vfs.h \
5198     sys/wait.h \
5199     syslog.h \
5200     termios.h \
5201     unistd.h \
5202     utime.h \
5203     values.h \
5204
5205 do
5206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5208   echo "$as_me:$LINENO: checking for $ac_header" >&5
5209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5211   echo $ECHO_N "(cached) $ECHO_C" >&6
5212 fi
5213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5215 else
5216   # Is the header compilable?
5217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5219 cat >conftest.$ac_ext <<_ACEOF
5220 #line $LINENO "configure"
5221 /* confdefs.h.  */
5222 _ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h.  */
5226 $ac_includes_default
5227 #include <$ac_header>
5228 _ACEOF
5229 rm -f conftest.$ac_objext
5230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5231   (eval $ac_compile) 2>&5
5232   ac_status=$?
5233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234   (exit $ac_status); } &&
5235          { ac_try='test -s conftest.$ac_objext'
5236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237   (eval $ac_try) 2>&5
5238   ac_status=$?
5239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240   (exit $ac_status); }; }; then
5241   ac_header_compiler=yes
5242 else
5243   echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5245
5246 ac_header_compiler=no
5247 fi
5248 rm -f conftest.$ac_objext conftest.$ac_ext
5249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5250 echo "${ECHO_T}$ac_header_compiler" >&6
5251
5252 # Is the header present?
5253 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5255 cat >conftest.$ac_ext <<_ACEOF
5256 #line $LINENO "configure"
5257 /* confdefs.h.  */
5258 _ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h.  */
5262 #include <$ac_header>
5263 _ACEOF
5264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5265   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5266   ac_status=$?
5267   grep -v '^ *+' conftest.er1 >conftest.err
5268   rm -f conftest.er1
5269   cat conftest.err >&5
5270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271   (exit $ac_status); } >/dev/null; then
5272   if test -s conftest.err; then
5273     ac_cpp_err=$ac_c_preproc_warn_flag
5274   else
5275     ac_cpp_err=
5276   fi
5277 else
5278   ac_cpp_err=yes
5279 fi
5280 if test -z "$ac_cpp_err"; then
5281   ac_header_preproc=yes
5282 else
5283   echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5285
5286   ac_header_preproc=no
5287 fi
5288 rm -f conftest.err conftest.$ac_ext
5289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5290 echo "${ECHO_T}$ac_header_preproc" >&6
5291
5292 # So?  What about this header?
5293 case $ac_header_compiler:$ac_header_preproc in
5294   yes:no )
5295     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5299     (
5300       cat <<\_ASBOX
5301 ## ------------------------------------ ##
5302 ## Report this to bug-autoconf@gnu.org. ##
5303 ## ------------------------------------ ##
5304 _ASBOX
5305     ) |
5306       sed "s/^/$as_me: WARNING:     /" >&2
5307     ;;
5308   no:yes )
5309     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5311     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5315     (
5316       cat <<\_ASBOX
5317 ## ------------------------------------ ##
5318 ## Report this to bug-autoconf@gnu.org. ##
5319 ## ------------------------------------ ##
5320 _ASBOX
5321     ) |
5322       sed "s/^/$as_me: WARNING:     /" >&2
5323     ;;
5324 esac
5325 echo "$as_me:$LINENO: checking for $ac_header" >&5
5326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5328   echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5330   eval "$as_ac_Header=$ac_header_preproc"
5331 fi
5332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5334
5335 fi
5336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5337   cat >>confdefs.h <<_ACEOF
5338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5339 _ACEOF
5340
5341 fi
5342
5343 done
5344
5345
5346
5347
5348
5349
5350
5351 ac_header_dirent=no
5352 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5353   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5354 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5355 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5357   echo $ECHO_N "(cached) $ECHO_C" >&6
5358 else
5359   cat >conftest.$ac_ext <<_ACEOF
5360 #line $LINENO "configure"
5361 /* confdefs.h.  */
5362 _ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h.  */
5366 #include <sys/types.h>
5367 #include <$ac_hdr>
5368
5369 int
5370 main ()
5371 {
5372 if ((DIR *) 0)
5373 return 0;
5374   ;
5375   return 0;
5376 }
5377 _ACEOF
5378 rm -f conftest.$ac_objext
5379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5380   (eval $ac_compile) 2>&5
5381   ac_status=$?
5382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383   (exit $ac_status); } &&
5384          { ac_try='test -s conftest.$ac_objext'
5385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386   (eval $ac_try) 2>&5
5387   ac_status=$?
5388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389   (exit $ac_status); }; }; then
5390   eval "$as_ac_Header=yes"
5391 else
5392   echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5394
5395 eval "$as_ac_Header=no"
5396 fi
5397 rm -f conftest.$ac_objext conftest.$ac_ext
5398 fi
5399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5402   cat >>confdefs.h <<_ACEOF
5403 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5404 _ACEOF
5405
5406 ac_header_dirent=$ac_hdr; break
5407 fi
5408
5409 done
5410 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5411 if test $ac_header_dirent = dirent.h; then
5412
5413   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5414 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5415 if test "${ac_cv_search_opendir+set}" = set; then
5416   echo $ECHO_N "(cached) $ECHO_C" >&6
5417 else
5418
5419     ac_func_search_save_LIBS=$LIBS
5420     ac_cv_search_opendir=no
5421     cat >conftest.$ac_ext <<_ACEOF
5422 #line $LINENO "configure"
5423 /* confdefs.h.  */
5424 _ACEOF
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h.  */
5428
5429 /* Override any gcc2 internal prototype to avoid an error.  */
5430 #ifdef __cplusplus
5431 extern "C"
5432 #endif
5433 /* We use char because int might match the return type of a gcc2
5434    builtin and then its argument prototype would still apply.  */
5435 char opendir ();
5436 int
5437 main ()
5438 {
5439 opendir ();
5440   ;
5441   return 0;
5442 }
5443 _ACEOF
5444 rm -f conftest.$ac_objext conftest$ac_exeext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5446   (eval $ac_link) 2>&5
5447   ac_status=$?
5448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449   (exit $ac_status); } &&
5450          { ac_try='test -s conftest$ac_exeext'
5451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452   (eval $ac_try) 2>&5
5453   ac_status=$?
5454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455   (exit $ac_status); }; }; then
5456   ac_cv_search_opendir='none required'
5457 else
5458   echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5460
5461 fi
5462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5463     if test "$ac_cv_search_opendir" = no; then
5464       for ac_lib in dir; do
5465         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5466         cat >conftest.$ac_ext <<_ACEOF
5467 #line $LINENO "configure"
5468 /* confdefs.h.  */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h.  */
5473
5474 /* Override any gcc2 internal prototype to avoid an error.  */
5475 #ifdef __cplusplus
5476 extern "C"
5477 #endif
5478 /* We use char because int might match the return type of a gcc2
5479    builtin and then its argument prototype would still apply.  */
5480 char opendir ();
5481 int
5482 main ()
5483 {
5484 opendir ();
5485   ;
5486   return 0;
5487 }
5488 _ACEOF
5489 rm -f conftest.$ac_objext conftest$ac_exeext
5490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5491   (eval $ac_link) 2>&5
5492   ac_status=$?
5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494   (exit $ac_status); } &&
5495          { ac_try='test -s conftest$ac_exeext'
5496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497   (eval $ac_try) 2>&5
5498   ac_status=$?
5499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500   (exit $ac_status); }; }; then
5501   ac_cv_search_opendir="-l$ac_lib"; break
5502 else
5503   echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5505
5506 fi
5507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5508       done
5509     fi
5510     LIBS=$ac_func_search_save_LIBS
5511
5512 fi
5513 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5514 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5515
5516   if test "$ac_cv_search_opendir" = no; then :
5517
5518   else
5519     if test "$ac_cv_search_opendir" = 'none required'; then :
5520
5521     else
5522       LIBS="$ac_cv_search_opendir $LIBS"
5523
5524     fi
5525   fi
5526
5527 else
5528
5529   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5530 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5531 if test "${ac_cv_search_opendir+set}" = set; then
5532   echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534
5535     ac_func_search_save_LIBS=$LIBS
5536     ac_cv_search_opendir=no
5537     cat >conftest.$ac_ext <<_ACEOF
5538 #line $LINENO "configure"
5539 /* confdefs.h.  */
5540 _ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h.  */
5544
5545 /* Override any gcc2 internal prototype to avoid an error.  */
5546 #ifdef __cplusplus
5547 extern "C"
5548 #endif
5549 /* We use char because int might match the return type of a gcc2
5550    builtin and then its argument prototype would still apply.  */
5551 char opendir ();
5552 int
5553 main ()
5554 {
5555 opendir ();
5556   ;
5557   return 0;
5558 }
5559 _ACEOF
5560 rm -f conftest.$ac_objext conftest$ac_exeext
5561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5562   (eval $ac_link) 2>&5
5563   ac_status=$?
5564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565   (exit $ac_status); } &&
5566          { ac_try='test -s conftest$ac_exeext'
5567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568   (eval $ac_try) 2>&5
5569   ac_status=$?
5570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571   (exit $ac_status); }; }; then
5572   ac_cv_search_opendir='none required'
5573 else
5574   echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5576
5577 fi
5578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5579     if test "$ac_cv_search_opendir" = no; then
5580       for ac_lib in x; do
5581         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5582         cat >conftest.$ac_ext <<_ACEOF
5583 #line $LINENO "configure"
5584 /* confdefs.h.  */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h.  */
5589
5590 /* Override any gcc2 internal prototype to avoid an error.  */
5591 #ifdef __cplusplus
5592 extern "C"
5593 #endif
5594 /* We use char because int might match the return type of a gcc2
5595    builtin and then its argument prototype would still apply.  */
5596 char opendir ();
5597 int
5598 main ()
5599 {
5600 opendir ();
5601   ;
5602   return 0;
5603 }
5604 _ACEOF
5605 rm -f conftest.$ac_objext conftest$ac_exeext
5606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5607   (eval $ac_link) 2>&5
5608   ac_status=$?
5609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610   (exit $ac_status); } &&
5611          { ac_try='test -s conftest$ac_exeext'
5612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613   (eval $ac_try) 2>&5
5614   ac_status=$?
5615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616   (exit $ac_status); }; }; then
5617   ac_cv_search_opendir="-l$ac_lib"; break
5618 else
5619   echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5621
5622 fi
5623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5624       done
5625     fi
5626     LIBS=$ac_func_search_save_LIBS
5627
5628 fi
5629 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5630 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5631
5632   if test "$ac_cv_search_opendir" = no; then :
5633
5634   else
5635     if test "$ac_cv_search_opendir" = 'none required'; then :
5636
5637     else
5638       LIBS="$ac_cv_search_opendir $LIBS"
5639
5640     fi
5641   fi
5642
5643 fi
5644
5645 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
5646 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
5647 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
5648   echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650   cat >conftest.$ac_ext <<_ACEOF
5651 #line $LINENO "configure"
5652 /* confdefs.h.  */
5653 _ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h.  */
5657 $ac_includes_default
5658 int
5659 main ()
5660 {
5661 static struct stat ac_aggr;
5662 if (ac_aggr.st_blocks)
5663 return 0;
5664   ;
5665   return 0;
5666 }
5667 _ACEOF
5668 rm -f conftest.$ac_objext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5670   (eval $ac_compile) 2>&5
5671   ac_status=$?
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); } &&
5674          { ac_try='test -s conftest.$ac_objext'
5675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676   (eval $ac_try) 2>&5
5677   ac_status=$?
5678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679   (exit $ac_status); }; }; then
5680   ac_cv_member_struct_stat_st_blocks=yes
5681 else
5682   echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5684
5685 cat >conftest.$ac_ext <<_ACEOF
5686 #line $LINENO "configure"
5687 /* confdefs.h.  */
5688 _ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h.  */
5692 $ac_includes_default
5693 int
5694 main ()
5695 {
5696 static struct stat ac_aggr;
5697 if (sizeof ac_aggr.st_blocks)
5698 return 0;
5699   ;
5700   return 0;
5701 }
5702 _ACEOF
5703 rm -f conftest.$ac_objext
5704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5705   (eval $ac_compile) 2>&5
5706   ac_status=$?
5707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708   (exit $ac_status); } &&
5709          { ac_try='test -s conftest.$ac_objext'
5710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711   (eval $ac_try) 2>&5
5712   ac_status=$?
5713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714   (exit $ac_status); }; }; then
5715   ac_cv_member_struct_stat_st_blocks=yes
5716 else
5717   echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5719
5720 ac_cv_member_struct_stat_st_blocks=no
5721 fi
5722 rm -f conftest.$ac_objext conftest.$ac_ext
5723 fi
5724 rm -f conftest.$ac_objext conftest.$ac_ext
5725 fi
5726 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
5727 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
5728 if test $ac_cv_member_struct_stat_st_blocks = yes; then
5729
5730 cat >>confdefs.h <<_ACEOF
5731 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5732 _ACEOF
5733
5734
5735 cat >>confdefs.h <<\_ACEOF
5736 #define HAVE_ST_BLOCKS 1
5737 _ACEOF
5738
5739 else
5740   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
5741 fi
5742
5743
5744 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5745 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5746 if test "${ac_cv_struct_tm+set}" = set; then
5747   echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749   cat >conftest.$ac_ext <<_ACEOF
5750 #line $LINENO "configure"
5751 /* confdefs.h.  */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h.  */
5756 #include <sys/types.h>
5757 #include <time.h>
5758
5759 int
5760 main ()
5761 {
5762 struct tm *tp; tp->tm_sec;
5763   ;
5764   return 0;
5765 }
5766 _ACEOF
5767 rm -f conftest.$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769   (eval $ac_compile) 2>&5
5770   ac_status=$?
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); } &&
5773          { ac_try='test -s conftest.$ac_objext'
5774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775   (eval $ac_try) 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); }; }; then
5779   ac_cv_struct_tm=time.h
5780 else
5781   echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5783
5784 ac_cv_struct_tm=sys/time.h
5785 fi
5786 rm -f conftest.$ac_objext conftest.$ac_ext
5787 fi
5788 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5789 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5790 if test $ac_cv_struct_tm = sys/time.h; then
5791
5792 cat >>confdefs.h <<\_ACEOF
5793 #define TM_IN_SYS_TIME 1
5794 _ACEOF
5795
5796 fi
5797
5798 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5799 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5800 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5801   echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803   cat >conftest.$ac_ext <<_ACEOF
5804 #line $LINENO "configure"
5805 /* confdefs.h.  */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h.  */
5810 #include <sys/types.h>
5811 #include <$ac_cv_struct_tm>
5812
5813
5814 int
5815 main ()
5816 {
5817 static struct tm ac_aggr;
5818 if (ac_aggr.tm_zone)
5819 return 0;
5820   ;
5821   return 0;
5822 }
5823 _ACEOF
5824 rm -f conftest.$ac_objext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5826   (eval $ac_compile) 2>&5
5827   ac_status=$?
5828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829   (exit $ac_status); } &&
5830          { ac_try='test -s conftest.$ac_objext'
5831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832   (eval $ac_try) 2>&5
5833   ac_status=$?
5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); }; }; then
5836   ac_cv_member_struct_tm_tm_zone=yes
5837 else
5838   echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5840
5841 cat >conftest.$ac_ext <<_ACEOF
5842 #line $LINENO "configure"
5843 /* confdefs.h.  */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h.  */
5848 #include <sys/types.h>
5849 #include <$ac_cv_struct_tm>
5850
5851
5852 int
5853 main ()
5854 {
5855 static struct tm ac_aggr;
5856 if (sizeof ac_aggr.tm_zone)
5857 return 0;
5858   ;
5859   return 0;
5860 }
5861 _ACEOF
5862 rm -f conftest.$ac_objext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864   (eval $ac_compile) 2>&5
5865   ac_status=$?
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); } &&
5868          { ac_try='test -s conftest.$ac_objext'
5869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870   (eval $ac_try) 2>&5
5871   ac_status=$?
5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873   (exit $ac_status); }; }; then
5874   ac_cv_member_struct_tm_tm_zone=yes
5875 else
5876   echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5878
5879 ac_cv_member_struct_tm_tm_zone=no
5880 fi
5881 rm -f conftest.$ac_objext conftest.$ac_ext
5882 fi
5883 rm -f conftest.$ac_objext conftest.$ac_ext
5884 fi
5885 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5886 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5887 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5888
5889 cat >>confdefs.h <<_ACEOF
5890 #define HAVE_STRUCT_TM_TM_ZONE 1
5891 _ACEOF
5892
5893
5894 fi
5895
5896 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5897
5898 cat >>confdefs.h <<\_ACEOF
5899 #define HAVE_TM_ZONE 1
5900 _ACEOF
5901
5902 else
5903   echo "$as_me:$LINENO: checking for tzname" >&5
5904 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5905 if test "${ac_cv_var_tzname+set}" = set; then
5906   echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908   cat >conftest.$ac_ext <<_ACEOF
5909 #line $LINENO "configure"
5910 /* confdefs.h.  */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h.  */
5915 #include <time.h>
5916 #ifndef tzname /* For SGI.  */
5917 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
5918 #endif
5919
5920 int
5921 main ()
5922 {
5923 atoi(*tzname);
5924   ;
5925   return 0;
5926 }
5927 _ACEOF
5928 rm -f conftest.$ac_objext conftest$ac_exeext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5930   (eval $ac_link) 2>&5
5931   ac_status=$?
5932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933   (exit $ac_status); } &&
5934          { ac_try='test -s conftest$ac_exeext'
5935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936   (eval $ac_try) 2>&5
5937   ac_status=$?
5938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939   (exit $ac_status); }; }; then
5940   ac_cv_var_tzname=yes
5941 else
5942   echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5944
5945 ac_cv_var_tzname=no
5946 fi
5947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5948 fi
5949 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5950 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5951   if test $ac_cv_var_tzname = yes; then
5952
5953 cat >>confdefs.h <<\_ACEOF
5954 #define HAVE_TZNAME 1
5955 _ACEOF
5956
5957   fi
5958 fi
5959
5960 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5961 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5962 if test "${ac_cv_header_stat_broken+set}" = set; then
5963   echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965   cat >conftest.$ac_ext <<_ACEOF
5966 #line $LINENO "configure"
5967 /* confdefs.h.  */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h.  */
5972 #include <sys/types.h>
5973 #include <sys/stat.h>
5974
5975 #if defined(S_ISBLK) && defined(S_IFDIR)
5976 # if S_ISBLK (S_IFDIR)
5977 You lose.
5978 # endif
5979 #endif
5980
5981 #if defined(S_ISBLK) && defined(S_IFCHR)
5982 # if S_ISBLK (S_IFCHR)
5983 You lose.
5984 # endif
5985 #endif
5986
5987 #if defined(S_ISLNK) && defined(S_IFREG)
5988 # if S_ISLNK (S_IFREG)
5989 You lose.
5990 # endif
5991 #endif
5992
5993 #if defined(S_ISSOCK) && defined(S_IFREG)
5994 # if S_ISSOCK (S_IFREG)
5995 You lose.
5996 # endif
5997 #endif
5998
5999 _ACEOF
6000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6001   $EGREP "You lose" >/dev/null 2>&1; then
6002   ac_cv_header_stat_broken=yes
6003 else
6004   ac_cv_header_stat_broken=no
6005 fi
6006 rm -f conftest*
6007
6008 fi
6009 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6010 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6011 if test $ac_cv_header_stat_broken = yes; then
6012
6013 cat >>confdefs.h <<\_ACEOF
6014 #define STAT_MACROS_BROKEN 1
6015 _ACEOF
6016
6017 fi
6018
6019 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
6020 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
6021 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
6022   echo $ECHO_N "(cached) $ECHO_C" >&6
6023 else
6024   ac_save_CPPFLAGS="$CPPFLAGS"
6025     ac_cv_struct_st_mtim_nsec=no
6026     # tv_nsec -- the usual case
6027     # _tv_nsec -- Solaris 2.6, if
6028     #   (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
6029     #    && !defined __EXTENSIONS__)
6030     # st__tim.tv_nsec -- UnixWare 2.1.2
6031     for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
6032       CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
6033       cat >conftest.$ac_ext <<_ACEOF
6034 #line $LINENO "configure"
6035 /* confdefs.h.  */
6036 _ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h.  */
6040 #include <sys/types.h>
6041 #include <sys/stat.h>
6042 int
6043 main ()
6044 {
6045 struct stat s; s.st_mtim.ST_MTIM_NSEC;
6046   ;
6047   return 0;
6048 }
6049 _ACEOF
6050 rm -f conftest.$ac_objext
6051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6052   (eval $ac_compile) 2>&5
6053   ac_status=$?
6054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055   (exit $ac_status); } &&
6056          { ac_try='test -s conftest.$ac_objext'
6057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058   (eval $ac_try) 2>&5
6059   ac_status=$?
6060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061   (exit $ac_status); }; }; then
6062   ac_cv_struct_st_mtim_nsec=$ac_val; break
6063 else
6064   echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6066
6067 fi
6068 rm -f conftest.$ac_objext conftest.$ac_ext
6069     done
6070     CPPFLAGS="$ac_save_CPPFLAGS"
6071 fi
6072 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
6073 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
6074
6075   if test $ac_cv_struct_st_mtim_nsec != no; then
6076
6077 cat >>confdefs.h <<_ACEOF
6078 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
6079 _ACEOF
6080
6081   fi
6082
6083
6084 echo "$as_me:$LINENO: checking for st_dm_mode in struct stat" >&5
6085 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6
6086 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
6087   echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089   cat >conftest.$ac_ext <<_ACEOF
6090 #line $LINENO "configure"
6091 /* confdefs.h.  */
6092 _ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h.  */
6096 #include <sys/types.h>
6097 #include <sys/stat.h>
6098 int
6099 main ()
6100 {
6101 struct stat s; s.st_dm_mode;
6102   ;
6103   return 0;
6104 }
6105 _ACEOF
6106 rm -f conftest.$ac_objext
6107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6108   (eval $ac_compile) 2>&5
6109   ac_status=$?
6110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111   (exit $ac_status); } &&
6112          { ac_try='test -s conftest.$ac_objext'
6113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114   (eval $ac_try) 2>&5
6115   ac_status=$?
6116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117   (exit $ac_status); }; }; then
6118   ac_cv_struct_st_dm_mode=yes
6119 else
6120   echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6122
6123 ac_cv_struct_st_dm_mode=no
6124 fi
6125 rm -f conftest.$ac_objext conftest.$ac_ext
6126 fi
6127 echo "$as_me:$LINENO: result: $ac_cv_struct_st_dm_mode" >&5
6128 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6
6129
6130   if test $ac_cv_struct_st_dm_mode = yes; then
6131
6132 cat >>confdefs.h <<\_ACEOF
6133 #define HAVE_ST_DM_MODE 1
6134 _ACEOF
6135
6136   fi
6137
6138
6139 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6140 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6141 if test "${ac_cv_header_time+set}" = set; then
6142   echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144   cat >conftest.$ac_ext <<_ACEOF
6145 #line $LINENO "configure"
6146 /* confdefs.h.  */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h.  */
6151 #include <sys/types.h>
6152 #include <sys/time.h>
6153 #include <time.h>
6154
6155 int
6156 main ()
6157 {
6158 if ((struct tm *) 0)
6159 return 0;
6160   ;
6161   return 0;
6162 }
6163 _ACEOF
6164 rm -f conftest.$ac_objext
6165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6166   (eval $ac_compile) 2>&5
6167   ac_status=$?
6168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169   (exit $ac_status); } &&
6170          { ac_try='test -s conftest.$ac_objext'
6171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172   (eval $ac_try) 2>&5
6173   ac_status=$?
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); }; }; then
6176   ac_cv_header_time=yes
6177 else
6178   echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6180
6181 ac_cv_header_time=no
6182 fi
6183 rm -f conftest.$ac_objext conftest.$ac_ext
6184 fi
6185 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6186 echo "${ECHO_T}$ac_cv_header_time" >&6
6187 if test $ac_cv_header_time = yes; then
6188
6189 cat >>confdefs.h <<\_ACEOF
6190 #define TIME_WITH_SYS_TIME 1
6191 _ACEOF
6192
6193 fi
6194
6195
6196
6197   echo "$as_me:$LINENO: checking for struct timespec" >&5
6198 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
6199 if test "${fu_cv_sys_struct_timespec+set}" = set; then
6200   echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202   cat >conftest.$ac_ext <<_ACEOF
6203 #line $LINENO "configure"
6204 /* confdefs.h.  */
6205 _ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h.  */
6209
6210 #      if TIME_WITH_SYS_TIME
6211 #       include <sys/time.h>
6212 #       include <time.h>
6213 #      else
6214 #       if HAVE_SYS_TIME_H
6215 #        include <sys/time.h>
6216 #       else
6217 #        include <time.h>
6218 #       endif
6219 #      endif
6220
6221 int
6222 main ()
6223 {
6224 static struct timespec x; x.tv_sec = x.tv_nsec;
6225   ;
6226   return 0;
6227 }
6228 _ACEOF
6229 rm -f conftest.$ac_objext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231   (eval $ac_compile) 2>&5
6232   ac_status=$?
6233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234   (exit $ac_status); } &&
6235          { ac_try='test -s conftest.$ac_objext'
6236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237   (eval $ac_try) 2>&5
6238   ac_status=$?
6239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240   (exit $ac_status); }; }; then
6241   fu_cv_sys_struct_timespec=yes
6242 else
6243   echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6245
6246 fu_cv_sys_struct_timespec=no
6247 fi
6248 rm -f conftest.$ac_objext conftest.$ac_ext
6249
6250 fi
6251 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
6252 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
6253
6254   if test $fu_cv_sys_struct_timespec = yes; then
6255
6256 cat >>confdefs.h <<\_ACEOF
6257 #define HAVE_STRUCT_TIMESPEC 1
6258 _ACEOF
6259
6260   fi
6261
6262 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6263 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6264 if test "${ac_cv_type_uid_t+set}" = set; then
6265   echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267   cat >conftest.$ac_ext <<_ACEOF
6268 #line $LINENO "configure"
6269 /* confdefs.h.  */
6270 _ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h.  */
6274 #include <sys/types.h>
6275
6276 _ACEOF
6277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6278   $EGREP "uid_t" >/dev/null 2>&1; then
6279   ac_cv_type_uid_t=yes
6280 else
6281   ac_cv_type_uid_t=no
6282 fi
6283 rm -f conftest*
6284
6285 fi
6286 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6287 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6288 if test $ac_cv_type_uid_t = no; then
6289
6290 cat >>confdefs.h <<\_ACEOF
6291 #define uid_t int
6292 _ACEOF
6293
6294
6295 cat >>confdefs.h <<\_ACEOF
6296 #define gid_t int
6297 _ACEOF
6298
6299 fi
6300
6301 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6302 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6303 if test "${ac_cv_type_getgroups+set}" = set; then
6304   echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306   if test "$cross_compiling" = yes; then
6307   ac_cv_type_getgroups=cross
6308 else
6309   cat >conftest.$ac_ext <<_ACEOF
6310 #line $LINENO "configure"
6311 /* confdefs.h.  */
6312 _ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h.  */
6316 /* Thanks to Mike Rendell for this test.  */
6317 #include <sys/types.h>
6318 #define NGID 256
6319 #undef MAX
6320 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6321
6322 int
6323 main ()
6324 {
6325   gid_t gidset[NGID];
6326   int i, n;
6327   union { gid_t gval; long lval; }  val;
6328
6329   val.lval = -1;
6330   for (i = 0; i < NGID; i++)
6331     gidset[i] = val.gval;
6332   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6333                  gidset);
6334   /* Exit non-zero if getgroups seems to require an array of ints.  This
6335      happens when gid_t is short but getgroups modifies an array of ints.  */
6336   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6337 }
6338 _ACEOF
6339 rm -f conftest$ac_exeext
6340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6341   (eval $ac_link) 2>&5
6342   ac_status=$?
6343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346   (eval $ac_try) 2>&5
6347   ac_status=$?
6348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349   (exit $ac_status); }; }; then
6350   ac_cv_type_getgroups=gid_t
6351 else
6352   echo "$as_me: program exited with status $ac_status" >&5
6353 echo "$as_me: failed program was:" >&5
6354 sed 's/^/| /' conftest.$ac_ext >&5
6355
6356 ( exit $ac_status )
6357 ac_cv_type_getgroups=int
6358 fi
6359 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6360 fi
6361 if test $ac_cv_type_getgroups = cross; then
6362         cat >conftest.$ac_ext <<_ACEOF
6363 #line $LINENO "configure"
6364 /* confdefs.h.  */
6365 _ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h.  */
6369 #include <unistd.h>
6370
6371 _ACEOF
6372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6373   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6374   ac_cv_type_getgroups=gid_t
6375 else
6376   ac_cv_type_getgroups=int
6377 fi
6378 rm -f conftest*
6379
6380 fi
6381 fi
6382 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6383 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
6384
6385 cat >>confdefs.h <<_ACEOF
6386 #define GETGROUPS_T $ac_cv_type_getgroups
6387 _ACEOF
6388
6389
6390 echo "$as_me:$LINENO: checking for mode_t" >&5
6391 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
6392 if test "${ac_cv_type_mode_t+set}" = set; then
6393   echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395   cat >conftest.$ac_ext <<_ACEOF
6396 #line $LINENO "configure"
6397 /* confdefs.h.  */
6398 _ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h.  */
6402 $ac_includes_default
6403 int
6404 main ()
6405 {
6406 if ((mode_t *) 0)
6407   return 0;
6408 if (sizeof (mode_t))
6409   return 0;
6410   ;
6411   return 0;
6412 }
6413 _ACEOF
6414 rm -f conftest.$ac_objext
6415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6416   (eval $ac_compile) 2>&5
6417   ac_status=$?
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); } &&
6420          { ac_try='test -s conftest.$ac_objext'
6421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422   (eval $ac_try) 2>&5
6423   ac_status=$?
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); }; }; then
6426   ac_cv_type_mode_t=yes
6427 else
6428   echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6430
6431 ac_cv_type_mode_t=no
6432 fi
6433 rm -f conftest.$ac_objext conftest.$ac_ext
6434 fi
6435 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6436 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
6437 if test $ac_cv_type_mode_t = yes; then
6438   :
6439 else
6440
6441 cat >>confdefs.h <<_ACEOF
6442 #define mode_t int
6443 _ACEOF
6444
6445 fi
6446
6447 echo "$as_me:$LINENO: checking for off_t" >&5
6448 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6449 if test "${ac_cv_type_off_t+set}" = set; then
6450   echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452   cat >conftest.$ac_ext <<_ACEOF
6453 #line $LINENO "configure"
6454 /* confdefs.h.  */
6455 _ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h.  */
6459 $ac_includes_default
6460 int
6461 main ()
6462 {
6463 if ((off_t *) 0)
6464   return 0;
6465 if (sizeof (off_t))
6466   return 0;
6467   ;
6468   return 0;
6469 }
6470 _ACEOF
6471 rm -f conftest.$ac_objext
6472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6473   (eval $ac_compile) 2>&5
6474   ac_status=$?
6475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476   (exit $ac_status); } &&
6477          { ac_try='test -s conftest.$ac_objext'
6478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479   (eval $ac_try) 2>&5
6480   ac_status=$?
6481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482   (exit $ac_status); }; }; then
6483   ac_cv_type_off_t=yes
6484 else
6485   echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6487
6488 ac_cv_type_off_t=no
6489 fi
6490 rm -f conftest.$ac_objext conftest.$ac_ext
6491 fi
6492 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6493 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6494 if test $ac_cv_type_off_t = yes; then
6495   :
6496 else
6497
6498 cat >>confdefs.h <<_ACEOF
6499 #define off_t long
6500 _ACEOF
6501
6502 fi
6503
6504 echo "$as_me:$LINENO: checking for pid_t" >&5
6505 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6506 if test "${ac_cv_type_pid_t+set}" = set; then
6507   echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509   cat >conftest.$ac_ext <<_ACEOF
6510 #line $LINENO "configure"
6511 /* confdefs.h.  */
6512 _ACEOF
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h.  */
6516 $ac_includes_default
6517 int
6518 main ()
6519 {
6520 if ((pid_t *) 0)
6521   return 0;
6522 if (sizeof (pid_t))
6523   return 0;
6524   ;
6525   return 0;
6526 }
6527 _ACEOF
6528 rm -f conftest.$ac_objext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6530   (eval $ac_compile) 2>&5
6531   ac_status=$?
6532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533   (exit $ac_status); } &&
6534          { ac_try='test -s conftest.$ac_objext'
6535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536   (eval $ac_try) 2>&5
6537   ac_status=$?
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); }; }; then
6540   ac_cv_type_pid_t=yes
6541 else
6542   echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6544
6545 ac_cv_type_pid_t=no
6546 fi
6547 rm -f conftest.$ac_objext conftest.$ac_ext
6548 fi
6549 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6550 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6551 if test $ac_cv_type_pid_t = yes; then
6552   :
6553 else
6554
6555 cat >>confdefs.h <<_ACEOF
6556 #define pid_t int
6557 _ACEOF
6558
6559 fi
6560
6561 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6562 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6563 if test "${ac_cv_type_signal+set}" = set; then
6564   echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566   cat >conftest.$ac_ext <<_ACEOF
6567 #line $LINENO "configure"
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 #include <signal.h>
6575 #ifdef signal
6576 # undef signal
6577 #endif
6578 #ifdef __cplusplus
6579 extern "C" void (*signal (int, void (*)(int)))(int);
6580 #else
6581 void (*signal ()) ();
6582 #endif
6583
6584 int
6585 main ()
6586 {
6587 int i;
6588   ;
6589   return 0;
6590 }
6591 _ACEOF
6592 rm -f conftest.$ac_objext
6593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6594   (eval $ac_compile) 2>&5
6595   ac_status=$?
6596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597   (exit $ac_status); } &&
6598          { ac_try='test -s conftest.$ac_objext'
6599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600   (eval $ac_try) 2>&5
6601   ac_status=$?
6602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603   (exit $ac_status); }; }; then
6604   ac_cv_type_signal=void
6605 else
6606   echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6608
6609 ac_cv_type_signal=int
6610 fi
6611 rm -f conftest.$ac_objext conftest.$ac_ext
6612 fi
6613 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6614 echo "${ECHO_T}$ac_cv_type_signal" >&6
6615
6616 cat >>confdefs.h <<_ACEOF
6617 #define RETSIGTYPE $ac_cv_type_signal
6618 _ACEOF
6619
6620
6621 echo "$as_me:$LINENO: checking for size_t" >&5
6622 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6623 if test "${ac_cv_type_size_t+set}" = set; then
6624   echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626   cat >conftest.$ac_ext <<_ACEOF
6627 #line $LINENO "configure"
6628 /* confdefs.h.  */
6629 _ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h.  */
6633 $ac_includes_default
6634 int
6635 main ()
6636 {
6637 if ((size_t *) 0)
6638   return 0;
6639 if (sizeof (size_t))
6640   return 0;
6641   ;
6642   return 0;
6643 }
6644 _ACEOF
6645 rm -f conftest.$ac_objext
6646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6647   (eval $ac_compile) 2>&5
6648   ac_status=$?
6649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650   (exit $ac_status); } &&
6651          { ac_try='test -s conftest.$ac_objext'
6652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653   (eval $ac_try) 2>&5
6654   ac_status=$?
6655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656   (exit $ac_status); }; }; then
6657   ac_cv_type_size_t=yes
6658 else
6659   echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6661
6662 ac_cv_type_size_t=no
6663 fi
6664 rm -f conftest.$ac_objext conftest.$ac_ext
6665 fi
6666 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6667 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6668 if test $ac_cv_type_size_t = yes; then
6669   :
6670 else
6671
6672 cat >>confdefs.h <<_ACEOF
6673 #define size_t unsigned
6674 _ACEOF
6675
6676 fi
6677
6678
6679   echo "$as_me:$LINENO: checking for unsigned long long" >&5
6680 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6681 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6682   echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684   cat >conftest.$ac_ext <<_ACEOF
6685 #line $LINENO "configure"
6686 /* confdefs.h.  */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h.  */
6691 unsigned long long ull = 1; int i = 63;
6692 int
6693 main ()
6694 {
6695 unsigned long long ullmax = (unsigned long long) -1;
6696      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6697   ;
6698   return 0;
6699 }
6700 _ACEOF
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703   (eval $ac_link) 2>&5
6704   ac_status=$?
6705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706   (exit $ac_status); } &&
6707          { ac_try='test -s conftest$ac_exeext'
6708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709   (eval $ac_try) 2>&5
6710   ac_status=$?
6711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712   (exit $ac_status); }; }; then
6713   ac_cv_type_unsigned_long_long=yes
6714 else
6715   echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6717
6718 ac_cv_type_unsigned_long_long=no
6719 fi
6720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6721 fi
6722 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6723 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6724   if test $ac_cv_type_unsigned_long_long = yes; then
6725
6726 cat >>confdefs.h <<\_ACEOF
6727 #define HAVE_UNSIGNED_LONG_LONG 1
6728 _ACEOF
6729
6730   fi
6731
6732
6733
6734   echo "$as_me:$LINENO: checking for uintmax_t" >&5
6735 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
6736 if test "${ac_cv_type_uintmax_t+set}" = set; then
6737   echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739   cat >conftest.$ac_ext <<_ACEOF
6740 #line $LINENO "configure"
6741 /* confdefs.h.  */
6742 _ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h.  */
6746 $ac_includes_default
6747 int
6748 main ()
6749 {
6750 if ((uintmax_t *) 0)
6751   return 0;
6752 if (sizeof (uintmax_t))
6753   return 0;
6754   ;
6755   return 0;
6756 }
6757 _ACEOF
6758 rm -f conftest.$ac_objext
6759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6760   (eval $ac_compile) 2>&5
6761   ac_status=$?
6762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763   (exit $ac_status); } &&
6764          { ac_try='test -s conftest.$ac_objext'
6765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766   (eval $ac_try) 2>&5
6767   ac_status=$?
6768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769   (exit $ac_status); }; }; then
6770   ac_cv_type_uintmax_t=yes
6771 else
6772   echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6774
6775 ac_cv_type_uintmax_t=no
6776 fi
6777 rm -f conftest.$ac_objext conftest.$ac_ext
6778 fi
6779 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
6780 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
6781 if test $ac_cv_type_uintmax_t = yes; then
6782   :
6783 else
6784   test $ac_cv_type_unsigned_long_long = yes \
6785        && ac_type='unsigned long long' \
6786        || ac_type='unsigned long'
6787
6788 cat >>confdefs.h <<_ACEOF
6789 #define uintmax_t $ac_type
6790 _ACEOF
6791
6792 fi
6793
6794
6795 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6796 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
6797 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6798   echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800   cat >conftest.$ac_ext <<_ACEOF
6801 #line $LINENO "configure"
6802 /* confdefs.h.  */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h.  */
6807 #include <sys/types.h>
6808 int
6809 main ()
6810 {
6811 return makedev(0, 0);
6812   ;
6813   return 0;
6814 }
6815 _ACEOF
6816 rm -f conftest.$ac_objext conftest$ac_exeext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6818   (eval $ac_link) 2>&5
6819   ac_status=$?
6820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821   (exit $ac_status); } &&
6822          { ac_try='test -s conftest$ac_exeext'
6823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824   (eval $ac_try) 2>&5
6825   ac_status=$?
6826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827   (exit $ac_status); }; }; then
6828   ac_cv_header_sys_types_h_makedev=yes
6829 else
6830   echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6832
6833 ac_cv_header_sys_types_h_makedev=no
6834 fi
6835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6836
6837 fi
6838 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6839 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
6840
6841 if test $ac_cv_header_sys_types_h_makedev = no; then
6842 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6843   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6844 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6845 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6846   echo $ECHO_N "(cached) $ECHO_C" >&6
6847 fi
6848 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6849 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6850 else
6851   # Is the header compilable?
6852 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6853 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
6854 cat >conftest.$ac_ext <<_ACEOF
6855 #line $LINENO "configure"
6856 /* confdefs.h.  */
6857 _ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h.  */
6861 $ac_includes_default
6862 #include <sys/mkdev.h>
6863 _ACEOF
6864 rm -f conftest.$ac_objext
6865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6866   (eval $ac_compile) 2>&5
6867   ac_status=$?
6868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869   (exit $ac_status); } &&
6870          { ac_try='test -s conftest.$ac_objext'
6871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872   (eval $ac_try) 2>&5
6873   ac_status=$?
6874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875   (exit $ac_status); }; }; then
6876   ac_header_compiler=yes
6877 else
6878   echo "$as_me: failed program was:" >&5
6879 sed 's/^/| /' conftest.$ac_ext >&5
6880
6881 ac_header_compiler=no
6882 fi
6883 rm -f conftest.$ac_objext conftest.$ac_ext
6884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6885 echo "${ECHO_T}$ac_header_compiler" >&6
6886
6887 # Is the header present?
6888 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6889 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
6890 cat >conftest.$ac_ext <<_ACEOF
6891 #line $LINENO "configure"
6892 /* confdefs.h.  */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h.  */
6897 #include <sys/mkdev.h>
6898 _ACEOF
6899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6900   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6901   ac_status=$?
6902   grep -v '^ *+' conftest.er1 >conftest.err
6903   rm -f conftest.er1
6904   cat conftest.err >&5
6905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906   (exit $ac_status); } >/dev/null; then
6907   if test -s conftest.err; then
6908     ac_cpp_err=$ac_c_preproc_warn_flag
6909   else
6910     ac_cpp_err=
6911   fi
6912 else
6913   ac_cpp_err=yes
6914 fi
6915 if test -z "$ac_cpp_err"; then
6916   ac_header_preproc=yes
6917 else
6918   echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6920
6921   ac_header_preproc=no
6922 fi
6923 rm -f conftest.err conftest.$ac_ext
6924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6925 echo "${ECHO_T}$ac_header_preproc" >&6
6926
6927 # So?  What about this header?
6928 case $ac_header_compiler:$ac_header_preproc in
6929   yes:no )
6930     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6931 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6932     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6933 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6934     (
6935       cat <<\_ASBOX
6936 ## ------------------------------------ ##
6937 ## Report this to bug-autoconf@gnu.org. ##
6938 ## ------------------------------------ ##
6939 _ASBOX
6940     ) |
6941       sed "s/^/$as_me: WARNING:     /" >&2
6942     ;;
6943   no:yes )
6944     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6945 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6946     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6947 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6948     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6949 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6950     (
6951       cat <<\_ASBOX
6952 ## ------------------------------------ ##
6953 ## Report this to bug-autoconf@gnu.org. ##
6954 ## ------------------------------------ ##
6955 _ASBOX
6956     ) |
6957       sed "s/^/$as_me: WARNING:     /" >&2
6958     ;;
6959 esac
6960 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6961 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6962 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6963   echo $ECHO_N "(cached) $ECHO_C" >&6
6964 else
6965   ac_cv_header_sys_mkdev_h=$ac_header_preproc
6966 fi
6967 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6968 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6969
6970 fi
6971 if test $ac_cv_header_sys_mkdev_h = yes; then
6972
6973 cat >>confdefs.h <<\_ACEOF
6974 #define MAJOR_IN_MKDEV 1
6975 _ACEOF
6976
6977 fi
6978
6979
6980
6981   if test $ac_cv_header_sys_mkdev_h = no; then
6982     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6983   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6984 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
6985 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6986   echo $ECHO_N "(cached) $ECHO_C" >&6
6987 fi
6988 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6989 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
6990 else
6991   # Is the header compilable?
6992 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6993 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
6994 cat >conftest.$ac_ext <<_ACEOF
6995 #line $LINENO "configure"
6996 /* confdefs.h.  */
6997 _ACEOF
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h.  */
7001 $ac_includes_default
7002 #include <sys/sysmacros.h>
7003 _ACEOF
7004 rm -f conftest.$ac_objext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7006   (eval $ac_compile) 2>&5
7007   ac_status=$?
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); } &&
7010          { ac_try='test -s conftest.$ac_objext'
7011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012   (eval $ac_try) 2>&5
7013   ac_status=$?
7014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015   (exit $ac_status); }; }; then
7016   ac_header_compiler=yes
7017 else
7018   echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.$ac_ext >&5
7020
7021 ac_header_compiler=no
7022 fi
7023 rm -f conftest.$ac_objext conftest.$ac_ext
7024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7025 echo "${ECHO_T}$ac_header_compiler" >&6
7026
7027 # Is the header present?
7028 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
7029 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
7030 cat >conftest.$ac_ext <<_ACEOF
7031 #line $LINENO "configure"
7032 /* confdefs.h.  */
7033 _ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h.  */
7037 #include <sys/sysmacros.h>
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: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7071 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7072     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7073 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7074     (
7075       cat <<\_ASBOX
7076 ## ------------------------------------ ##
7077 ## Report this to bug-autoconf@gnu.org. ##
7078 ## ------------------------------------ ##
7079 _ASBOX
7080     ) |
7081       sed "s/^/$as_me: WARNING:     /" >&2
7082     ;;
7083   no:yes )
7084     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7085 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7086     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
7087 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
7088     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7089 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7090     (
7091       cat <<\_ASBOX
7092 ## ------------------------------------ ##
7093 ## Report this to bug-autoconf@gnu.org. ##
7094 ## ------------------------------------ ##
7095 _ASBOX
7096     ) |
7097       sed "s/^/$as_me: WARNING:     /" >&2
7098     ;;
7099 esac
7100 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7101 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
7102 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7103   echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7106 fi
7107 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7108 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
7109
7110 fi
7111 if test $ac_cv_header_sys_sysmacros_h = yes; then
7112
7113 cat >>confdefs.h <<\_ACEOF
7114 #define MAJOR_IN_SYSMACROS 1
7115 _ACEOF
7116
7117 fi
7118
7119
7120   fi
7121 fi
7122
7123 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7124 # for constant arguments.  Useless!
7125 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7126 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7127 if test "${ac_cv_working_alloca_h+set}" = set; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130   cat >conftest.$ac_ext <<_ACEOF
7131 #line $LINENO "configure"
7132 /* confdefs.h.  */
7133 _ACEOF
7134 cat confdefs.h >>conftest.$ac_ext
7135 cat >>conftest.$ac_ext <<_ACEOF
7136 /* end confdefs.h.  */
7137 #include <alloca.h>
7138 int
7139 main ()
7140 {
7141 char *p = (char *) alloca (2 * sizeof (int));
7142   ;
7143   return 0;
7144 }
7145 _ACEOF
7146 rm -f conftest.$ac_objext conftest$ac_exeext
7147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7148   (eval $ac_link) 2>&5
7149   ac_status=$?
7150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151   (exit $ac_status); } &&
7152          { ac_try='test -s conftest$ac_exeext'
7153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154   (eval $ac_try) 2>&5
7155   ac_status=$?
7156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157   (exit $ac_status); }; }; then
7158   ac_cv_working_alloca_h=yes
7159 else
7160   echo "$as_me: failed program was:" >&5
7161 sed 's/^/| /' conftest.$ac_ext >&5
7162
7163 ac_cv_working_alloca_h=no
7164 fi
7165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7166 fi
7167 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7168 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7169 if test $ac_cv_working_alloca_h = yes; then
7170
7171 cat >>confdefs.h <<\_ACEOF
7172 #define HAVE_ALLOCA_H 1
7173 _ACEOF
7174
7175 fi
7176
7177 echo "$as_me:$LINENO: checking for alloca" >&5
7178 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7179 if test "${ac_cv_func_alloca_works+set}" = set; then
7180   echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182   cat >conftest.$ac_ext <<_ACEOF
7183 #line $LINENO "configure"
7184 /* confdefs.h.  */
7185 _ACEOF
7186 cat confdefs.h >>conftest.$ac_ext
7187 cat >>conftest.$ac_ext <<_ACEOF
7188 /* end confdefs.h.  */
7189 #ifdef __GNUC__
7190 # define alloca __builtin_alloca
7191 #else
7192 # ifdef _MSC_VER
7193 #  include <malloc.h>
7194 #  define alloca _alloca
7195 # else
7196 #  if HAVE_ALLOCA_H
7197 #   include <alloca.h>
7198 #  else
7199 #   ifdef _AIX
7200  #pragma alloca
7201 #   else
7202 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7203 char *alloca ();
7204 #    endif
7205 #   endif
7206 #  endif
7207 # endif
7208 #endif
7209
7210 int
7211 main ()
7212 {
7213 char *p = (char *) alloca (1);
7214   ;
7215   return 0;
7216 }
7217 _ACEOF
7218 rm -f conftest.$ac_objext conftest$ac_exeext
7219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7220   (eval $ac_link) 2>&5
7221   ac_status=$?
7222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223   (exit $ac_status); } &&
7224          { ac_try='test -s conftest$ac_exeext'
7225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226   (eval $ac_try) 2>&5
7227   ac_status=$?
7228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229   (exit $ac_status); }; }; then
7230   ac_cv_func_alloca_works=yes
7231 else
7232   echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.$ac_ext >&5
7234
7235 ac_cv_func_alloca_works=no
7236 fi
7237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7238 fi
7239 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7240 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7241
7242 if test $ac_cv_func_alloca_works = yes; then
7243
7244 cat >>confdefs.h <<\_ACEOF
7245 #define HAVE_ALLOCA 1
7246 _ACEOF
7247
7248 else
7249   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7250 # that cause trouble.  Some versions do not even contain alloca or
7251 # contain a buggy version.  If you still want to use their alloca,
7252 # use ar to extract alloca.o from them instead of compiling alloca.c.
7253
7254 ALLOCA=alloca.$ac_objext
7255
7256 cat >>confdefs.h <<\_ACEOF
7257 #define C_ALLOCA 1
7258 _ACEOF
7259
7260
7261 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7262 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7263 if test "${ac_cv_os_cray+set}" = set; then
7264   echo $ECHO_N "(cached) $ECHO_C" >&6
7265 else
7266   cat >conftest.$ac_ext <<_ACEOF
7267 #line $LINENO "configure"
7268 /* confdefs.h.  */
7269 _ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h.  */
7273 #if defined(CRAY) && ! defined(CRAY2)
7274 webecray
7275 #else
7276 wenotbecray
7277 #endif
7278
7279 _ACEOF
7280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7281   $EGREP "webecray" >/dev/null 2>&1; then
7282   ac_cv_os_cray=yes
7283 else
7284   ac_cv_os_cray=no
7285 fi
7286 rm -f conftest*
7287
7288 fi
7289 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7290 echo "${ECHO_T}$ac_cv_os_cray" >&6
7291 if test $ac_cv_os_cray = yes; then
7292   for ac_func in _getb67 GETB67 getb67; do
7293     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7294 echo "$as_me:$LINENO: checking for $ac_func" >&5
7295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7296 if eval "test \"\${$as_ac_var+set}\" = set"; then
7297   echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299   cat >conftest.$ac_ext <<_ACEOF
7300 #line $LINENO "configure"
7301 /* confdefs.h.  */
7302 _ACEOF
7303 cat confdefs.h >>conftest.$ac_ext
7304 cat >>conftest.$ac_ext <<_ACEOF
7305 /* end confdefs.h.  */
7306 /* System header to define __stub macros and hopefully few prototypes,
7307     which can conflict with char $ac_func (); below.
7308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7309     <limits.h> exists even on freestanding compilers.  */
7310 #ifdef __STDC__
7311 # include <limits.h>
7312 #else
7313 # include <assert.h>
7314 #endif
7315 /* Override any gcc2 internal prototype to avoid an error.  */
7316 #ifdef __cplusplus
7317 extern "C"
7318 {
7319 #endif
7320 /* We use char because int might match the return type of a gcc2
7321    builtin and then its argument prototype would still apply.  */
7322 char $ac_func ();
7323 /* The GNU C library defines this for functions which it implements
7324     to always fail with ENOSYS.  Some functions are actually named
7325     something starting with __ and the normal name is an alias.  */
7326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7327 choke me
7328 #else
7329 char (*f) () = $ac_func;
7330 #endif
7331 #ifdef __cplusplus
7332 }
7333 #endif
7334
7335 int
7336 main ()
7337 {
7338 return f != $ac_func;
7339   ;
7340   return 0;
7341 }
7342 _ACEOF
7343 rm -f conftest.$ac_objext conftest$ac_exeext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7345   (eval $ac_link) 2>&5
7346   ac_status=$?
7347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348   (exit $ac_status); } &&
7349          { ac_try='test -s conftest$ac_exeext'
7350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351   (eval $ac_try) 2>&5
7352   ac_status=$?
7353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354   (exit $ac_status); }; }; then
7355   eval "$as_ac_var=yes"
7356 else
7357   echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7359
7360 eval "$as_ac_var=no"
7361 fi
7362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7363 fi
7364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7366 if test `eval echo '${'$as_ac_var'}'` = yes; then
7367
7368 cat >>confdefs.h <<_ACEOF
7369 #define CRAY_STACKSEG_END $ac_func
7370 _ACEOF
7371
7372     break
7373 fi
7374
7375   done
7376 fi
7377
7378 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7379 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7380 if test "${ac_cv_c_stack_direction+set}" = set; then
7381   echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383   if test "$cross_compiling" = yes; then
7384   ac_cv_c_stack_direction=0
7385 else
7386   cat >conftest.$ac_ext <<_ACEOF
7387 #line $LINENO "configure"
7388 /* confdefs.h.  */
7389 _ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h.  */
7393 int
7394 find_stack_direction ()
7395 {
7396   static char *addr = 0;
7397   auto char dummy;
7398   if (addr == 0)
7399     {
7400       addr = &dummy;
7401       return find_stack_direction ();
7402     }
7403   else
7404     return (&dummy > addr) ? 1 : -1;
7405 }
7406
7407 int
7408 main ()
7409 {
7410   exit (find_stack_direction () < 0);
7411 }
7412 _ACEOF
7413 rm -f conftest$ac_exeext
7414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7415   (eval $ac_link) 2>&5
7416   ac_status=$?
7417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7420   (eval $ac_try) 2>&5
7421   ac_status=$?
7422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423   (exit $ac_status); }; }; then
7424   ac_cv_c_stack_direction=1
7425 else
7426   echo "$as_me: program exited with status $ac_status" >&5
7427 echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7429
7430 ( exit $ac_status )
7431 ac_cv_c_stack_direction=-1
7432 fi
7433 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7434 fi
7435 fi
7436 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7437 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7438
7439 cat >>confdefs.h <<_ACEOF
7440 #define STACK_DIRECTION $ac_cv_c_stack_direction
7441 _ACEOF
7442
7443
7444 fi
7445
7446
7447
7448 for ac_header in limits.h
7449 do
7450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7452   echo "$as_me:$LINENO: checking for $ac_header" >&5
7453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7455   echo $ECHO_N "(cached) $ECHO_C" >&6
7456 fi
7457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7459 else
7460   # Is the header compilable?
7461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7463 cat >conftest.$ac_ext <<_ACEOF
7464 #line $LINENO "configure"
7465 /* confdefs.h.  */
7466 _ACEOF
7467 cat confdefs.h >>conftest.$ac_ext
7468 cat >>conftest.$ac_ext <<_ACEOF
7469 /* end confdefs.h.  */
7470 $ac_includes_default
7471 #include <$ac_header>
7472 _ACEOF
7473 rm -f conftest.$ac_objext
7474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7475   (eval $ac_compile) 2>&5
7476   ac_status=$?
7477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478   (exit $ac_status); } &&
7479          { ac_try='test -s conftest.$ac_objext'
7480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481   (eval $ac_try) 2>&5
7482   ac_status=$?
7483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484   (exit $ac_status); }; }; then
7485   ac_header_compiler=yes
7486 else
7487   echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7489
7490 ac_header_compiler=no
7491 fi
7492 rm -f conftest.$ac_objext conftest.$ac_ext
7493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7494 echo "${ECHO_T}$ac_header_compiler" >&6
7495
7496 # Is the header present?
7497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7499 cat >conftest.$ac_ext <<_ACEOF
7500 #line $LINENO "configure"
7501 /* confdefs.h.  */
7502 _ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h.  */
7506 #include <$ac_header>
7507 _ACEOF
7508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7509   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7510   ac_status=$?
7511   grep -v '^ *+' conftest.er1 >conftest.err
7512   rm -f conftest.er1
7513   cat conftest.err >&5
7514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515   (exit $ac_status); } >/dev/null; then
7516   if test -s conftest.err; then
7517     ac_cpp_err=$ac_c_preproc_warn_flag
7518   else
7519     ac_cpp_err=
7520   fi
7521 else
7522   ac_cpp_err=yes
7523 fi
7524 if test -z "$ac_cpp_err"; then
7525   ac_header_preproc=yes
7526 else
7527   echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7529
7530   ac_header_preproc=no
7531 fi
7532 rm -f conftest.err conftest.$ac_ext
7533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7534 echo "${ECHO_T}$ac_header_preproc" >&6
7535
7536 # So?  What about this header?
7537 case $ac_header_compiler:$ac_header_preproc in
7538   yes:no )
7539     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7543     (
7544       cat <<\_ASBOX
7545 ## ------------------------------------ ##
7546 ## Report this to bug-autoconf@gnu.org. ##
7547 ## ------------------------------------ ##
7548 _ASBOX
7549     ) |
7550       sed "s/^/$as_me: WARNING:     /" >&2
7551     ;;
7552   no:yes )
7553     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7555     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7557     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7559     (
7560       cat <<\_ASBOX
7561 ## ------------------------------------ ##
7562 ## Report this to bug-autoconf@gnu.org. ##
7563 ## ------------------------------------ ##
7564 _ASBOX
7565     ) |
7566       sed "s/^/$as_me: WARNING:     /" >&2
7567     ;;
7568 esac
7569 echo "$as_me:$LINENO: checking for $ac_header" >&5
7570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7572   echo $ECHO_N "(cached) $ECHO_C" >&6
7573 else
7574   eval "$as_ac_Header=$ac_header_preproc"
7575 fi
7576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7578
7579 fi
7580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7581   cat >>confdefs.h <<_ACEOF
7582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7583 _ACEOF
7584
7585 fi
7586
7587 done
7588
7589
7590
7591
7592 for ac_header in string.h
7593 do
7594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7596   echo "$as_me:$LINENO: checking for $ac_header" >&5
7597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7599   echo $ECHO_N "(cached) $ECHO_C" >&6
7600 fi
7601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7603 else
7604   # Is the header compilable?
7605 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7607 cat >conftest.$ac_ext <<_ACEOF
7608 #line $LINENO "configure"
7609 /* confdefs.h.  */
7610 _ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h.  */
7614 $ac_includes_default
7615 #include <$ac_header>
7616 _ACEOF
7617 rm -f conftest.$ac_objext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7619   (eval $ac_compile) 2>&5
7620   ac_status=$?
7621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622   (exit $ac_status); } &&
7623          { ac_try='test -s conftest.$ac_objext'
7624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625   (eval $ac_try) 2>&5
7626   ac_status=$?
7627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628   (exit $ac_status); }; }; then
7629   ac_header_compiler=yes
7630 else
7631   echo "$as_me: failed program was:" >&5
7632 sed 's/^/| /' conftest.$ac_ext >&5
7633
7634 ac_header_compiler=no
7635 fi
7636 rm -f conftest.$ac_objext conftest.$ac_ext
7637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7638 echo "${ECHO_T}$ac_header_compiler" >&6
7639
7640 # Is the header present?
7641 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7643 cat >conftest.$ac_ext <<_ACEOF
7644 #line $LINENO "configure"
7645 /* confdefs.h.  */
7646 _ACEOF
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h.  */
7650 #include <$ac_header>
7651 _ACEOF
7652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7653   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7654   ac_status=$?
7655   grep -v '^ *+' conftest.er1 >conftest.err
7656   rm -f conftest.er1
7657   cat conftest.err >&5
7658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659   (exit $ac_status); } >/dev/null; then
7660   if test -s conftest.err; then
7661     ac_cpp_err=$ac_c_preproc_warn_flag
7662   else
7663     ac_cpp_err=
7664   fi
7665 else
7666   ac_cpp_err=yes
7667 fi
7668 if test -z "$ac_cpp_err"; then
7669   ac_header_preproc=yes
7670 else
7671   echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7673
7674   ac_header_preproc=no
7675 fi
7676 rm -f conftest.err conftest.$ac_ext
7677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7678 echo "${ECHO_T}$ac_header_preproc" >&6
7679
7680 # So?  What about this header?
7681 case $ac_header_compiler:$ac_header_preproc in
7682   yes:no )
7683     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7685     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7687     (
7688       cat <<\_ASBOX
7689 ## ------------------------------------ ##
7690 ## Report this to bug-autoconf@gnu.org. ##
7691 ## ------------------------------------ ##
7692 _ASBOX
7693     ) |
7694       sed "s/^/$as_me: WARNING:     /" >&2
7695     ;;
7696   no:yes )
7697     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7699     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7701     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7703     (
7704       cat <<\_ASBOX
7705 ## ------------------------------------ ##
7706 ## Report this to bug-autoconf@gnu.org. ##
7707 ## ------------------------------------ ##
7708 _ASBOX
7709     ) |
7710       sed "s/^/$as_me: WARNING:     /" >&2
7711     ;;
7712 esac
7713 echo "$as_me:$LINENO: checking for $ac_header" >&5
7714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7716   echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718   eval "$as_ac_Header=$ac_header_preproc"
7719 fi
7720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7722
7723 fi
7724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7725   cat >>confdefs.h <<_ACEOF
7726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7727 _ACEOF
7728
7729 fi
7730
7731 done
7732
7733
7734
7735
7736 for ac_header in wchar.h
7737 do
7738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7740   echo "$as_me:$LINENO: checking for $ac_header" >&5
7741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7743   echo $ECHO_N "(cached) $ECHO_C" >&6
7744 fi
7745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7747 else
7748   # Is the header compilable?
7749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7751 cat >conftest.$ac_ext <<_ACEOF
7752 #line $LINENO "configure"
7753 /* confdefs.h.  */
7754 _ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h.  */
7758 $ac_includes_default
7759 #include <$ac_header>
7760 _ACEOF
7761 rm -f conftest.$ac_objext
7762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7763   (eval $ac_compile) 2>&5
7764   ac_status=$?
7765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766   (exit $ac_status); } &&
7767          { ac_try='test -s conftest.$ac_objext'
7768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769   (eval $ac_try) 2>&5
7770   ac_status=$?
7771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772   (exit $ac_status); }; }; then
7773   ac_header_compiler=yes
7774 else
7775   echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7777
7778 ac_header_compiler=no
7779 fi
7780 rm -f conftest.$ac_objext conftest.$ac_ext
7781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7782 echo "${ECHO_T}$ac_header_compiler" >&6
7783
7784 # Is the header present?
7785 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7787 cat >conftest.$ac_ext <<_ACEOF
7788 #line $LINENO "configure"
7789 /* confdefs.h.  */
7790 _ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h.  */
7794 #include <$ac_header>
7795 _ACEOF
7796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7797   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7798   ac_status=$?
7799   grep -v '^ *+' conftest.er1 >conftest.err
7800   rm -f conftest.er1
7801   cat conftest.err >&5
7802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803   (exit $ac_status); } >/dev/null; then
7804   if test -s conftest.err; then
7805     ac_cpp_err=$ac_c_preproc_warn_flag
7806   else
7807     ac_cpp_err=
7808   fi
7809 else
7810   ac_cpp_err=yes
7811 fi
7812 if test -z "$ac_cpp_err"; then
7813   ac_header_preproc=yes
7814 else
7815   echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.$ac_ext >&5
7817
7818   ac_header_preproc=no
7819 fi
7820 rm -f conftest.err conftest.$ac_ext
7821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7822 echo "${ECHO_T}$ac_header_preproc" >&6
7823
7824 # So?  What about this header?
7825 case $ac_header_compiler:$ac_header_preproc in
7826   yes:no )
7827     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7829     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7831     (
7832       cat <<\_ASBOX
7833 ## ------------------------------------ ##
7834 ## Report this to bug-autoconf@gnu.org. ##
7835 ## ------------------------------------ ##
7836 _ASBOX
7837     ) |
7838       sed "s/^/$as_me: WARNING:     /" >&2
7839     ;;
7840   no:yes )
7841     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7843     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7847     (
7848       cat <<\_ASBOX
7849 ## ------------------------------------ ##
7850 ## Report this to bug-autoconf@gnu.org. ##
7851 ## ------------------------------------ ##
7852 _ASBOX
7853     ) |
7854       sed "s/^/$as_me: WARNING:     /" >&2
7855     ;;
7856 esac
7857 echo "$as_me:$LINENO: checking for $ac_header" >&5
7858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7860   echo $ECHO_N "(cached) $ECHO_C" >&6
7861 else
7862   eval "$as_ac_Header=$ac_header_preproc"
7863 fi
7864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7866
7867 fi
7868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7869   cat >>confdefs.h <<_ACEOF
7870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7871 _ACEOF
7872
7873 fi
7874
7875 done
7876
7877
7878
7879
7880 for ac_header in wctype.h
7881 do
7882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7884   echo "$as_me:$LINENO: checking for $ac_header" >&5
7885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7887   echo $ECHO_N "(cached) $ECHO_C" >&6
7888 fi
7889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7891 else
7892   # Is the header compilable?
7893 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7895 cat >conftest.$ac_ext <<_ACEOF
7896 #line $LINENO "configure"
7897 /* confdefs.h.  */
7898 _ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h.  */
7902 $ac_includes_default
7903 #include <$ac_header>
7904 _ACEOF
7905 rm -f conftest.$ac_objext
7906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7907   (eval $ac_compile) 2>&5
7908   ac_status=$?
7909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910   (exit $ac_status); } &&
7911          { ac_try='test -s conftest.$ac_objext'
7912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913   (eval $ac_try) 2>&5
7914   ac_status=$?
7915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916   (exit $ac_status); }; }; then
7917   ac_header_compiler=yes
7918 else
7919   echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7921
7922 ac_header_compiler=no
7923 fi
7924 rm -f conftest.$ac_objext conftest.$ac_ext
7925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7926 echo "${ECHO_T}$ac_header_compiler" >&6
7927
7928 # Is the header present?
7929 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7931 cat >conftest.$ac_ext <<_ACEOF
7932 #line $LINENO "configure"
7933 /* confdefs.h.  */
7934 _ACEOF
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h.  */
7938 #include <$ac_header>
7939 _ACEOF
7940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7941   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7942   ac_status=$?
7943   grep -v '^ *+' conftest.er1 >conftest.err
7944   rm -f conftest.er1
7945   cat conftest.err >&5
7946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947   (exit $ac_status); } >/dev/null; then
7948   if test -s conftest.err; then
7949     ac_cpp_err=$ac_c_preproc_warn_flag
7950   else
7951     ac_cpp_err=
7952   fi
7953 else
7954   ac_cpp_err=yes
7955 fi
7956 if test -z "$ac_cpp_err"; then
7957   ac_header_preproc=yes
7958 else
7959   echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7961
7962   ac_header_preproc=no
7963 fi
7964 rm -f conftest.err conftest.$ac_ext
7965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7966 echo "${ECHO_T}$ac_header_preproc" >&6
7967
7968 # So?  What about this header?
7969 case $ac_header_compiler:$ac_header_preproc in
7970   yes:no )
7971     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7973     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7975     (
7976       cat <<\_ASBOX
7977 ## ------------------------------------ ##
7978 ## Report this to bug-autoconf@gnu.org. ##
7979 ## ------------------------------------ ##
7980 _ASBOX
7981     ) |
7982       sed "s/^/$as_me: WARNING:     /" >&2
7983     ;;
7984   no:yes )
7985     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7987     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7991     (
7992       cat <<\_ASBOX
7993 ## ------------------------------------ ##
7994 ## Report this to bug-autoconf@gnu.org. ##
7995 ## ------------------------------------ ##
7996 _ASBOX
7997     ) |
7998       sed "s/^/$as_me: WARNING:     /" >&2
7999     ;;
8000 esac
8001 echo "$as_me:$LINENO: checking for $ac_header" >&5
8002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8004   echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006   eval "$as_ac_Header=$ac_header_preproc"
8007 fi
8008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8010
8011 fi
8012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8013   cat >>confdefs.h <<_ACEOF
8014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8015 _ACEOF
8016
8017 fi
8018
8019 done
8020
8021
8022
8023
8024 for ac_func in isascii
8025 do
8026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8027 echo "$as_me:$LINENO: checking for $ac_func" >&5
8028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8029 if eval "test \"\${$as_ac_var+set}\" = set"; then
8030   echo $ECHO_N "(cached) $ECHO_C" >&6
8031 else
8032   cat >conftest.$ac_ext <<_ACEOF
8033 #line $LINENO "configure"
8034 /* confdefs.h.  */
8035 _ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h.  */
8039 /* System header to define __stub macros and hopefully few prototypes,
8040     which can conflict with char $ac_func (); below.
8041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8042     <limits.h> exists even on freestanding compilers.  */
8043 #ifdef __STDC__
8044 # include <limits.h>
8045 #else
8046 # include <assert.h>
8047 #endif
8048 /* Override any gcc2 internal prototype to avoid an error.  */
8049 #ifdef __cplusplus
8050 extern "C"
8051 {
8052 #endif
8053 /* We use char because int might match the return type of a gcc2
8054    builtin and then its argument prototype would still apply.  */
8055 char $ac_func ();
8056 /* The GNU C library defines this for functions which it implements
8057     to always fail with ENOSYS.  Some functions are actually named
8058     something starting with __ and the normal name is an alias.  */
8059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8060 choke me
8061 #else
8062 char (*f) () = $ac_func;
8063 #endif
8064 #ifdef __cplusplus
8065 }
8066 #endif
8067
8068 int
8069 main ()
8070 {
8071 return f != $ac_func;
8072   ;
8073   return 0;
8074 }
8075 _ACEOF
8076 rm -f conftest.$ac_objext conftest$ac_exeext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8078   (eval $ac_link) 2>&5
8079   ac_status=$?
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); } &&
8082          { ac_try='test -s conftest$ac_exeext'
8083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084   (eval $ac_try) 2>&5
8085   ac_status=$?
8086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087   (exit $ac_status); }; }; then
8088   eval "$as_ac_var=yes"
8089 else
8090   echo "$as_me: failed program was:" >&5
8091 sed 's/^/| /' conftest.$ac_ext >&5
8092
8093 eval "$as_ac_var=no"
8094 fi
8095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8096 fi
8097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8098 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8099 if test `eval echo '${'$as_ac_var'}'` = yes; then
8100   cat >>confdefs.h <<_ACEOF
8101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8102 _ACEOF
8103
8104 fi
8105 done
8106
8107
8108
8109
8110 for ac_func in mempcpy
8111 do
8112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8113 echo "$as_me:$LINENO: checking for $ac_func" >&5
8114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8115 if eval "test \"\${$as_ac_var+set}\" = set"; then
8116   echo $ECHO_N "(cached) $ECHO_C" >&6
8117 else
8118   cat >conftest.$ac_ext <<_ACEOF
8119 #line $LINENO "configure"
8120 /* confdefs.h.  */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h.  */
8125 /* System header to define __stub macros and hopefully few prototypes,
8126     which can conflict with char $ac_func (); below.
8127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8128     <limits.h> exists even on freestanding compilers.  */
8129 #ifdef __STDC__
8130 # include <limits.h>
8131 #else
8132 # include <assert.h>
8133 #endif
8134 /* Override any gcc2 internal prototype to avoid an error.  */
8135 #ifdef __cplusplus
8136 extern "C"
8137 {
8138 #endif
8139 /* We use char because int might match the return type of a gcc2
8140    builtin and then its argument prototype would still apply.  */
8141 char $ac_func ();
8142 /* The GNU C library defines this for functions which it implements
8143     to always fail with ENOSYS.  Some functions are actually named
8144     something starting with __ and the normal name is an alias.  */
8145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8146 choke me
8147 #else
8148 char (*f) () = $ac_func;
8149 #endif
8150 #ifdef __cplusplus
8151 }
8152 #endif
8153
8154 int
8155 main ()
8156 {
8157 return f != $ac_func;
8158   ;
8159   return 0;
8160 }
8161 _ACEOF
8162 rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8164   (eval $ac_link) 2>&5
8165   ac_status=$?
8166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167   (exit $ac_status); } &&
8168          { ac_try='test -s conftest$ac_exeext'
8169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170   (eval $ac_try) 2>&5
8171   ac_status=$?
8172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173   (exit $ac_status); }; }; then
8174   eval "$as_ac_var=yes"
8175 else
8176   echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8178
8179 eval "$as_ac_var=no"
8180 fi
8181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8182 fi
8183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8185 if test `eval echo '${'$as_ac_var'}'` = yes; then
8186   cat >>confdefs.h <<_ACEOF
8187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8188 _ACEOF
8189
8190 fi
8191 done
8192
8193
8194
8195   echo "$as_me:$LINENO: checking host operating system" >&5
8196 echo $ECHO_N "checking host operating system... $ECHO_C" >&6
8197 if test "${utils_cv_host_operating_system+set}" = set; then
8198   echo $ECHO_N "(cached) $ECHO_C" >&6
8199 else
8200   case $host_os in
8201
8202        # These operating system names do not use the default heuristic below.
8203        # They are in reverse order, so that more-specific prefixes come first.
8204        winnt*)          os='Windows NT';;
8205        vos*)            os='VOS';;
8206        sysv*)           os='Unix System V';;
8207        superux*)        os='SUPER-UX';;
8208        sunos*)          os='SunOS';;
8209        stop*)           os='STOP';;
8210        sco*)            os='SCO Unix';;
8211        riscos*)         os='RISC OS';;
8212        riscix*)         os='RISCiX';;
8213        qnx*)            os='QNX';;
8214        pw32*)           os='PW32';;
8215        ptx*)            os='ptx';;
8216        plan9*)          os='Plan 9';;
8217        osf*)            os='Tru64';;
8218        os2*)            os='OS/2';;
8219        openbsd*)        os='OpenBSD';;
8220        nsk*)            os='NonStop Kernel';;
8221        nonstopux*)      os='NonStop-UX';;
8222        netbsd*)         os='NetBSD';;
8223        msdosdjgpp*)     os='DJGPP';;
8224        mpeix*)          os='MPE/iX';;
8225        mint*)           os='MiNT';;
8226        mingw*)          os='MinGW';;
8227        lynxos*)         os='LynxOS';;
8228        linux*)          os='GNU/Linux';;
8229        hpux*)           os='HP-UX';;
8230        hiux*)           os='HI-UX';;
8231        gnu*)            os='GNU';;
8232        freebsd*-gnu*)   os='GNU/FreeBSD';;
8233        freebsd*)        os='FreeBSD';;
8234        dgux*)           os='DG/UX';;
8235        bsdi*)           os='BSD/OS';;
8236        bsd*)            os='BSD';;
8237        beos*)           os='BeOS';;
8238        aux*)            os='A/UX';;
8239        atheos*)         os='AtheOS';;
8240        amigaos*)        os='Amiga OS';;
8241        aix*)            os='AIX';;
8242
8243        # The default heuristic takes the initial alphabetic string
8244        # from $host_os, but capitalizes its first letter.
8245        [A-Za-z]*)
8246          os=`
8247            expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
8248          ``
8249            expr "X$host_os" : 'X.\([A-Za-z]*\)'
8250          `
8251          ;;
8252
8253        # If $host_os does not start with an alphabetic string, use it unchanged.
8254        *)
8255          os=$host_os;;
8256      esac
8257      utils_cv_host_operating_system=$os
8258 fi
8259 echo "$as_me:$LINENO: result: $utils_cv_host_operating_system" >&5
8260 echo "${ECHO_T}$utils_cv_host_operating_system" >&6
8261
8262 cat >>confdefs.h <<_ACEOF
8263 #define HOST_OPERATING_SYSTEM "$utils_cv_host_operating_system"
8264 _ACEOF
8265
8266
8267   echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
8268 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6
8269 if test "${utils_cv_func_mkdir_trailing_slash_bug+set}" = set; then
8270   echo $ECHO_N "(cached) $ECHO_C" >&6
8271 else
8272
8273       # Arrange for deletion of the temporary directory this test might create.
8274       ac_clean_files="$ac_clean_files confdir-slash"
8275       if test "$cross_compiling" = yes; then
8276   utils_cv_func_mkdir_trailing_slash_bug=yes
8277
8278 else
8279   cat >conftest.$ac_ext <<_ACEOF
8280 #line $LINENO "configure"
8281 /* confdefs.h.  */
8282 _ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h.  */
8286
8287 #       include <sys/types.h>
8288 #       include <sys/stat.h>
8289 #       include <stdlib.h>
8290         int main ()
8291         {
8292           rmdir ("confdir-slash");
8293           exit (mkdir ("confdir-slash/", 0700));
8294         }
8295
8296 _ACEOF
8297 rm -f conftest$ac_exeext
8298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8299   (eval $ac_link) 2>&5
8300   ac_status=$?
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304   (eval $ac_try) 2>&5
8305   ac_status=$?
8306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307   (exit $ac_status); }; }; then
8308   utils_cv_func_mkdir_trailing_slash_bug=no
8309 else
8310   echo "$as_me: program exited with status $ac_status" >&5
8311 echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8313
8314 ( exit $ac_status )
8315 utils_cv_func_mkdir_trailing_slash_bug=yes
8316 fi
8317 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8318 fi
8319
8320
8321 fi
8322 echo "$as_me:$LINENO: result: $utils_cv_func_mkdir_trailing_slash_bug" >&5
8323 echo "${ECHO_T}$utils_cv_func_mkdir_trailing_slash_bug" >&6
8324
8325   if test $utils_cv_func_mkdir_trailing_slash_bug = yes; then
8326     LIBOBJS="$LIBOBJS mkdir.$ac_objext"
8327
8328 cat >>confdefs.h <<\_ACEOF
8329 #define mkdir rpl_mkdir
8330 _ACEOF
8331
8332   fi
8333
8334
8335   # getdate.y works with bison only.
8336   : ${YACC='bison -y'}
8337
8338
8339
8340   echo "$as_me:$LINENO: checking whether to enable assertions" >&5
8341 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6
8342   # Check whether --enable-assert or --disable-assert was given.
8343 if test "${enable_assert+set}" = set; then
8344   enableval="$enable_assert"
8345    echo "$as_me:$LINENO: result: no" >&5
8346 echo "${ECHO_T}no" >&6
8347
8348 cat >>confdefs.h <<\_ACEOF
8349 #define NDEBUG 1
8350 _ACEOF
8351
8352 else
8353    echo "$as_me:$LINENO: result: yes" >&5
8354 echo "${ECHO_T}yes" >&6
8355
8356 fi;
8357
8358
8359
8360 for ac_header in utime.h
8361 do
8362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8364   echo "$as_me:$LINENO: checking for $ac_header" >&5
8365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8367   echo $ECHO_N "(cached) $ECHO_C" >&6
8368 fi
8369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8371 else
8372   # Is the header compilable?
8373 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8375 cat >conftest.$ac_ext <<_ACEOF
8376 #line $LINENO "configure"
8377 /* confdefs.h.  */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h.  */
8382 $ac_includes_default
8383 #include <$ac_header>
8384 _ACEOF
8385 rm -f conftest.$ac_objext
8386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8387   (eval $ac_compile) 2>&5
8388   ac_status=$?
8389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390   (exit $ac_status); } &&
8391          { ac_try='test -s conftest.$ac_objext'
8392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393   (eval $ac_try) 2>&5
8394   ac_status=$?
8395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396   (exit $ac_status); }; }; then
8397   ac_header_compiler=yes
8398 else
8399   echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.$ac_ext >&5
8401
8402 ac_header_compiler=no
8403 fi
8404 rm -f conftest.$ac_objext conftest.$ac_ext
8405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8406 echo "${ECHO_T}$ac_header_compiler" >&6
8407
8408 # Is the header present?
8409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8411 cat >conftest.$ac_ext <<_ACEOF
8412 #line $LINENO "configure"
8413 /* confdefs.h.  */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h.  */
8418 #include <$ac_header>
8419 _ACEOF
8420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8421   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8422   ac_status=$?
8423   grep -v '^ *+' conftest.er1 >conftest.err
8424   rm -f conftest.er1
8425   cat conftest.err >&5
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); } >/dev/null; then
8428   if test -s conftest.err; then
8429     ac_cpp_err=$ac_c_preproc_warn_flag
8430   else
8431     ac_cpp_err=
8432   fi
8433 else
8434   ac_cpp_err=yes
8435 fi
8436 if test -z "$ac_cpp_err"; then
8437   ac_header_preproc=yes
8438 else
8439   echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8441
8442   ac_header_preproc=no
8443 fi
8444 rm -f conftest.err conftest.$ac_ext
8445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8446 echo "${ECHO_T}$ac_header_preproc" >&6
8447
8448 # So?  What about this header?
8449 case $ac_header_compiler:$ac_header_preproc in
8450   yes:no )
8451     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8455     (
8456       cat <<\_ASBOX
8457 ## ------------------------------------ ##
8458 ## Report this to bug-autoconf@gnu.org. ##
8459 ## ------------------------------------ ##
8460 _ASBOX
8461     ) |
8462       sed "s/^/$as_me: WARNING:     /" >&2
8463     ;;
8464   no:yes )
8465     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8467     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8469     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8471     (
8472       cat <<\_ASBOX
8473 ## ------------------------------------ ##
8474 ## Report this to bug-autoconf@gnu.org. ##
8475 ## ------------------------------------ ##
8476 _ASBOX
8477     ) |
8478       sed "s/^/$as_me: WARNING:     /" >&2
8479     ;;
8480 esac
8481 echo "$as_me:$LINENO: checking for $ac_header" >&5
8482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8484   echo $ECHO_N "(cached) $ECHO_C" >&6
8485 else
8486   eval "$as_ac_Header=$ac_header_preproc"
8487 fi
8488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8490
8491 fi
8492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8493   cat >>confdefs.h <<_ACEOF
8494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8495 _ACEOF
8496
8497 fi
8498
8499 done
8500
8501
8502   echo "$as_me:$LINENO: checking for struct utimbuf" >&5
8503 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
8504 if test "${fu_cv_sys_struct_utimbuf+set}" = set; then
8505   echo $ECHO_N "(cached) $ECHO_C" >&6
8506 else
8507   cat >conftest.$ac_ext <<_ACEOF
8508 #line $LINENO "configure"
8509 /* confdefs.h.  */
8510 _ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h.  */
8514
8515 #ifdef TIME_WITH_SYS_TIME
8516 # include <sys/time.h>
8517 # include <time.h>
8518 #else
8519 # ifdef HAVE_SYS_TIME_H
8520 #  include <sys/time.h>
8521 # else
8522 #  include <time.h>
8523 # endif
8524 #endif
8525 #ifdef HAVE_UTIME_H
8526 # include <utime.h>
8527 #endif
8528
8529 int
8530 main ()
8531 {
8532 static struct utimbuf x; x.actime = x.modtime;
8533   ;
8534   return 0;
8535 }
8536 _ACEOF
8537 rm -f conftest.$ac_objext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8539   (eval $ac_compile) 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); } &&
8543          { ac_try='test -s conftest.$ac_objext'
8544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545   (eval $ac_try) 2>&5
8546   ac_status=$?
8547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548   (exit $ac_status); }; }; then
8549   fu_cv_sys_struct_utimbuf=yes
8550 else
8551   echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8553
8554 fu_cv_sys_struct_utimbuf=no
8555 fi
8556 rm -f conftest.$ac_objext conftest.$ac_ext
8557
8558 fi
8559 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5
8560 echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6
8561
8562   if test $fu_cv_sys_struct_utimbuf = yes; then
8563
8564 cat >>confdefs.h <<\_ACEOF
8565 #define HAVE_STRUCT_UTIMBUF 1
8566 _ACEOF
8567
8568   fi
8569
8570    echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
8571 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6
8572 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
8573   echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575   cat >conftest.$ac_ext <<_ACEOF
8576 #line $LINENO "configure"
8577 /* confdefs.h.  */
8578 _ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h.  */
8582
8583 #include <sys/types.h>
8584 #ifdef HAVE_DIRENT_H
8585 # include <dirent.h>
8586 #else /* not HAVE_DIRENT_H */
8587 # define dirent direct
8588 # ifdef HAVE_SYS_NDIR_H
8589 #  include <sys/ndir.h>
8590 # endif /* HAVE_SYS_NDIR_H */
8591 # ifdef HAVE_SYS_DIR_H
8592 #  include <sys/dir.h>
8593 # endif /* HAVE_SYS_DIR_H */
8594 # ifdef HAVE_NDIR_H
8595 #  include <ndir.h>
8596 # endif /* HAVE_NDIR_H */
8597 #endif /* HAVE_DIRENT_H */
8598
8599 int
8600 main ()
8601 {
8602 struct dirent dp; dp.d_type = 0;
8603   ;
8604   return 0;
8605 }
8606 _ACEOF
8607 rm -f conftest.$ac_objext conftest$ac_exeext
8608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609   (eval $ac_link) 2>&5
8610   ac_status=$?
8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   (exit $ac_status); } &&
8613          { ac_try='test -s conftest$ac_exeext'
8614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615   (eval $ac_try) 2>&5
8616   ac_status=$?
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); }; }; then
8619   jm_cv_struct_dirent_d_type=yes
8620 else
8621   echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8623
8624 jm_cv_struct_dirent_d_type=no
8625 fi
8626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8627
8628
8629 fi
8630 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
8631 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6
8632    if test $jm_cv_struct_dirent_d_type = yes; then
8633
8634 cat >>confdefs.h <<\_ACEOF
8635 #define HAVE_STRUCT_DIRENT_D_TYPE 1
8636 _ACEOF
8637
8638    fi
8639
8640
8641    echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
8642 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
8643 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
8644   echo $ECHO_N "(cached) $ECHO_C" >&6
8645 else
8646   cat >conftest.$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8648 /* confdefs.h.  */
8649 _ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h.  */
8653
8654 #include <sys/types.h>
8655 #ifdef HAVE_DIRENT_H
8656 # include <dirent.h>
8657 #else /* not HAVE_DIRENT_H */
8658 # define dirent direct
8659 # ifdef HAVE_SYS_NDIR_H
8660 #  include <sys/ndir.h>
8661 # endif /* HAVE_SYS_NDIR_H */
8662 # ifdef HAVE_SYS_DIR_H
8663 #  include <sys/dir.h>
8664 # endif /* HAVE_SYS_DIR_H */
8665 # ifdef HAVE_NDIR_H
8666 #  include <ndir.h>
8667 # endif /* HAVE_NDIR_H */
8668 #endif /* HAVE_DIRENT_H */
8669
8670 int
8671 main ()
8672 {
8673 struct dirent dp; dp.d_ino = 0;
8674   ;
8675   return 0;
8676 }
8677 _ACEOF
8678 rm -f conftest.$ac_objext conftest$ac_exeext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8680   (eval $ac_link) 2>&5
8681   ac_status=$?
8682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683   (exit $ac_status); } &&
8684          { ac_try='test -s conftest$ac_exeext'
8685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686   (eval $ac_try) 2>&5
8687   ac_status=$?
8688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689   (exit $ac_status); }; }; then
8690   jm_cv_struct_dirent_d_ino=yes
8691 else
8692   echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.$ac_ext >&5
8694
8695 jm_cv_struct_dirent_d_ino=no
8696 fi
8697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8698
8699
8700 fi
8701 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
8702 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
8703    if test $jm_cv_struct_dirent_d_ino = yes; then
8704
8705 cat >>confdefs.h <<\_ACEOF
8706 #define D_INO_IN_DIRENT 1
8707 _ACEOF
8708
8709    fi
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724 for ac_header in grp.h memory.h pwd.h string.h strings.h stdlib.h \
8725                    unistd.h sys/time.h utmp.h utmpx.h
8726 do
8727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8729   echo "$as_me:$LINENO: checking for $ac_header" >&5
8730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8732   echo $ECHO_N "(cached) $ECHO_C" >&6
8733 fi
8734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8736 else
8737   # Is the header compilable?
8738 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8740 cat >conftest.$ac_ext <<_ACEOF
8741 #line $LINENO "configure"
8742 /* confdefs.h.  */
8743 _ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h.  */
8747 $ac_includes_default
8748 #include <$ac_header>
8749 _ACEOF
8750 rm -f conftest.$ac_objext
8751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8752   (eval $ac_compile) 2>&5
8753   ac_status=$?
8754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755   (exit $ac_status); } &&
8756          { ac_try='test -s conftest.$ac_objext'
8757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758   (eval $ac_try) 2>&5
8759   ac_status=$?
8760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761   (exit $ac_status); }; }; then
8762   ac_header_compiler=yes
8763 else
8764   echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.$ac_ext >&5
8766
8767 ac_header_compiler=no
8768 fi
8769 rm -f conftest.$ac_objext conftest.$ac_ext
8770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8771 echo "${ECHO_T}$ac_header_compiler" >&6
8772
8773 # Is the header present?
8774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8776 cat >conftest.$ac_ext <<_ACEOF
8777 #line $LINENO "configure"
8778 /* confdefs.h.  */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h.  */
8783 #include <$ac_header>
8784 _ACEOF
8785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8786   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8787   ac_status=$?
8788   grep -v '^ *+' conftest.er1 >conftest.err
8789   rm -f conftest.er1
8790   cat conftest.err >&5
8791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   (exit $ac_status); } >/dev/null; then
8793   if test -s conftest.err; then
8794     ac_cpp_err=$ac_c_preproc_warn_flag
8795   else
8796     ac_cpp_err=
8797   fi
8798 else
8799   ac_cpp_err=yes
8800 fi
8801 if test -z "$ac_cpp_err"; then
8802   ac_header_preproc=yes
8803 else
8804   echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.$ac_ext >&5
8806
8807   ac_header_preproc=no
8808 fi
8809 rm -f conftest.err conftest.$ac_ext
8810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8811 echo "${ECHO_T}$ac_header_preproc" >&6
8812
8813 # So?  What about this header?
8814 case $ac_header_compiler:$ac_header_preproc in
8815   yes:no )
8816     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8820     (
8821       cat <<\_ASBOX
8822 ## ------------------------------------ ##
8823 ## Report this to bug-autoconf@gnu.org. ##
8824 ## ------------------------------------ ##
8825 _ASBOX
8826     ) |
8827       sed "s/^/$as_me: WARNING:     /" >&2
8828     ;;
8829   no:yes )
8830     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8832     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8834     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8836     (
8837       cat <<\_ASBOX
8838 ## ------------------------------------ ##
8839 ## Report this to bug-autoconf@gnu.org. ##
8840 ## ------------------------------------ ##
8841 _ASBOX
8842     ) |
8843       sed "s/^/$as_me: WARNING:     /" >&2
8844     ;;
8845 esac
8846 echo "$as_me:$LINENO: checking for $ac_header" >&5
8847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8849   echo $ECHO_N "(cached) $ECHO_C" >&6
8850 else
8851   eval "$as_ac_Header=$ac_header_preproc"
8852 fi
8853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8855
8856 fi
8857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8858   cat >>confdefs.h <<_ACEOF
8859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8860 _ACEOF
8861
8862 fi
8863
8864 done
8865
8866
8867
8868
8869
8870   headers='
8871 #include <stdio.h>
8872 #if HAVE_STRING_H
8873 # if !STDC_HEADERS && HAVE_MEMORY_H
8874 #  include <memory.h>
8875 # endif
8876 # include <string.h>
8877 #else
8878 # if HAVE_STRINGS_H
8879 #  include <strings.h>
8880 # endif
8881 #endif
8882 #if HAVE_STDLIB_H
8883 # include <stdlib.h>
8884 #endif
8885 #if HAVE_UNISTD_H
8886 # include <unistd.h>
8887 #endif
8888
8889 #include <sys/types.h>
8890 #if TIME_WITH_SYS_TIME
8891 # include <sys/time.h>
8892 # include <time.h>
8893 #else
8894 # if HAVE_SYS_TIME_H
8895 #  include <sys/time.h>
8896 # else
8897 #  include <time.h>
8898 # endif
8899 #endif
8900
8901 #if HAVE_UTMP_H
8902 # include <utmp.h>
8903 #endif
8904
8905 #if HAVE_GRP_H
8906 # include <grp.h>
8907 #endif
8908
8909 #if HAVE_PWD_H
8910 # include <pwd.h>
8911 #endif
8912 '
8913
8914   echo "$as_me:$LINENO: checking whether free is declared" >&5
8915 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
8916 if test "${ac_cv_have_decl_free+set}" = set; then
8917   echo $ECHO_N "(cached) $ECHO_C" >&6
8918 else
8919   cat >conftest.$ac_ext <<_ACEOF
8920 #line $LINENO "configure"
8921 /* confdefs.h.  */
8922 _ACEOF
8923 cat confdefs.h >>conftest.$ac_ext
8924 cat >>conftest.$ac_ext <<_ACEOF
8925 /* end confdefs.h.  */
8926 $headers
8927
8928 int
8929 main ()
8930 {
8931 #ifndef free
8932   char *p = (char *) free;
8933 #endif
8934
8935   ;
8936   return 0;
8937 }
8938 _ACEOF
8939 rm -f conftest.$ac_objext
8940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8941   (eval $ac_compile) 2>&5
8942   ac_status=$?
8943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944   (exit $ac_status); } &&
8945          { ac_try='test -s conftest.$ac_objext'
8946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947   (eval $ac_try) 2>&5
8948   ac_status=$?
8949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950   (exit $ac_status); }; }; then
8951   ac_cv_have_decl_free=yes
8952 else
8953   echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8955
8956 ac_cv_have_decl_free=no
8957 fi
8958 rm -f conftest.$ac_objext conftest.$ac_ext
8959 fi
8960 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
8961 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
8962 if test $ac_cv_have_decl_free = yes; then
8963
8964 cat >>confdefs.h <<_ACEOF
8965 #define HAVE_DECL_FREE 1
8966 _ACEOF
8967
8968
8969 else
8970   cat >>confdefs.h <<_ACEOF
8971 #define HAVE_DECL_FREE 0
8972 _ACEOF
8973
8974
8975 fi
8976 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8977 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8978 if test "${ac_cv_have_decl_getenv+set}" = set; then
8979   echo $ECHO_N "(cached) $ECHO_C" >&6
8980 else
8981   cat >conftest.$ac_ext <<_ACEOF
8982 #line $LINENO "configure"
8983 /* confdefs.h.  */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h.  */
8988 $headers
8989
8990 int
8991 main ()
8992 {
8993 #ifndef getenv
8994   char *p = (char *) getenv;
8995 #endif
8996
8997   ;
8998   return 0;
8999 }
9000 _ACEOF
9001 rm -f conftest.$ac_objext
9002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9003   (eval $ac_compile) 2>&5
9004   ac_status=$?
9005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006   (exit $ac_status); } &&
9007          { ac_try='test -s conftest.$ac_objext'
9008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009   (eval $ac_try) 2>&5
9010   ac_status=$?
9011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012   (exit $ac_status); }; }; then
9013   ac_cv_have_decl_getenv=yes
9014 else
9015   echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9017
9018 ac_cv_have_decl_getenv=no
9019 fi
9020 rm -f conftest.$ac_objext conftest.$ac_ext
9021 fi
9022 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9023 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
9024 if test $ac_cv_have_decl_getenv = yes; then
9025
9026 cat >>confdefs.h <<_ACEOF
9027 #define HAVE_DECL_GETENV 1
9028 _ACEOF
9029
9030
9031 else
9032   cat >>confdefs.h <<_ACEOF
9033 #define HAVE_DECL_GETENV 0
9034 _ACEOF
9035
9036
9037 fi
9038 echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
9039 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6
9040 if test "${ac_cv_have_decl_geteuid+set}" = set; then
9041   echo $ECHO_N "(cached) $ECHO_C" >&6
9042 else
9043   cat >conftest.$ac_ext <<_ACEOF
9044 #line $LINENO "configure"
9045 /* confdefs.h.  */
9046 _ACEOF
9047 cat confdefs.h >>conftest.$ac_ext
9048 cat >>conftest.$ac_ext <<_ACEOF
9049 /* end confdefs.h.  */
9050 $headers
9051
9052 int
9053 main ()
9054 {
9055 #ifndef geteuid
9056   char *p = (char *) geteuid;
9057 #endif
9058
9059   ;
9060   return 0;
9061 }
9062 _ACEOF
9063 rm -f conftest.$ac_objext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9065   (eval $ac_compile) 2>&5
9066   ac_status=$?
9067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068   (exit $ac_status); } &&
9069          { ac_try='test -s conftest.$ac_objext'
9070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071   (eval $ac_try) 2>&5
9072   ac_status=$?
9073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074   (exit $ac_status); }; }; then
9075   ac_cv_have_decl_geteuid=yes
9076 else
9077   echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9079
9080 ac_cv_have_decl_geteuid=no
9081 fi
9082 rm -f conftest.$ac_objext conftest.$ac_ext
9083 fi
9084 echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
9085 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6
9086 if test $ac_cv_have_decl_geteuid = yes; then
9087
9088 cat >>confdefs.h <<_ACEOF
9089 #define HAVE_DECL_GETEUID 1
9090 _ACEOF
9091
9092
9093 else
9094   cat >>confdefs.h <<_ACEOF
9095 #define HAVE_DECL_GETEUID 0
9096 _ACEOF
9097
9098
9099 fi
9100 echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
9101 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6
9102 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
9103   echo $ECHO_N "(cached) $ECHO_C" >&6
9104 else
9105   cat >conftest.$ac_ext <<_ACEOF
9106 #line $LINENO "configure"
9107 /* confdefs.h.  */
9108 _ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h.  */
9112 $headers
9113
9114 int
9115 main ()
9116 {
9117 #ifndef getgrgid
9118   char *p = (char *) getgrgid;
9119 #endif
9120
9121   ;
9122   return 0;
9123 }
9124 _ACEOF
9125 rm -f conftest.$ac_objext
9126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9127   (eval $ac_compile) 2>&5
9128   ac_status=$?
9129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130   (exit $ac_status); } &&
9131          { ac_try='test -s conftest.$ac_objext'
9132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133   (eval $ac_try) 2>&5
9134   ac_status=$?
9135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136   (exit $ac_status); }; }; then
9137   ac_cv_have_decl_getgrgid=yes
9138 else
9139   echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9141
9142 ac_cv_have_decl_getgrgid=no
9143 fi
9144 rm -f conftest.$ac_objext conftest.$ac_ext
9145 fi
9146 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
9147 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6
9148 if test $ac_cv_have_decl_getgrgid = yes; then
9149
9150 cat >>confdefs.h <<_ACEOF
9151 #define HAVE_DECL_GETGRGID 1
9152 _ACEOF
9153
9154
9155 else
9156   cat >>confdefs.h <<_ACEOF
9157 #define HAVE_DECL_GETGRGID 0
9158 _ACEOF
9159
9160
9161 fi
9162 echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
9163 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6
9164 if test "${ac_cv_have_decl_getlogin+set}" = set; then
9165   echo $ECHO_N "(cached) $ECHO_C" >&6
9166 else
9167   cat >conftest.$ac_ext <<_ACEOF
9168 #line $LINENO "configure"
9169 /* confdefs.h.  */
9170 _ACEOF
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h.  */
9174 $headers
9175
9176 int
9177 main ()
9178 {
9179 #ifndef getlogin
9180   char *p = (char *) getlogin;
9181 #endif
9182
9183   ;
9184   return 0;
9185 }
9186 _ACEOF
9187 rm -f conftest.$ac_objext
9188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9189   (eval $ac_compile) 2>&5
9190   ac_status=$?
9191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192   (exit $ac_status); } &&
9193          { ac_try='test -s conftest.$ac_objext'
9194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195   (eval $ac_try) 2>&5
9196   ac_status=$?
9197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   (exit $ac_status); }; }; then
9199   ac_cv_have_decl_getlogin=yes
9200 else
9201   echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9203
9204 ac_cv_have_decl_getlogin=no
9205 fi
9206 rm -f conftest.$ac_objext conftest.$ac_ext
9207 fi
9208 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
9209 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6
9210 if test $ac_cv_have_decl_getlogin = yes; then
9211
9212 cat >>confdefs.h <<_ACEOF
9213 #define HAVE_DECL_GETLOGIN 1
9214 _ACEOF
9215
9216
9217 else
9218   cat >>confdefs.h <<_ACEOF
9219 #define HAVE_DECL_GETLOGIN 0
9220 _ACEOF
9221
9222
9223 fi
9224 echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
9225 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6
9226 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
9227   echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229   cat >conftest.$ac_ext <<_ACEOF
9230 #line $LINENO "configure"
9231 /* confdefs.h.  */
9232 _ACEOF
9233 cat confdefs.h >>conftest.$ac_ext
9234 cat >>conftest.$ac_ext <<_ACEOF
9235 /* end confdefs.h.  */
9236 $headers
9237
9238 int
9239 main ()
9240 {
9241 #ifndef getpwuid
9242   char *p = (char *) getpwuid;
9243 #endif
9244
9245   ;
9246   return 0;
9247 }
9248 _ACEOF
9249 rm -f conftest.$ac_objext
9250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9251   (eval $ac_compile) 2>&5
9252   ac_status=$?
9253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254   (exit $ac_status); } &&
9255          { ac_try='test -s conftest.$ac_objext'
9256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257   (eval $ac_try) 2>&5
9258   ac_status=$?
9259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260   (exit $ac_status); }; }; then
9261   ac_cv_have_decl_getpwuid=yes
9262 else
9263   echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9265
9266 ac_cv_have_decl_getpwuid=no
9267 fi
9268 rm -f conftest.$ac_objext conftest.$ac_ext
9269 fi
9270 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
9271 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6
9272 if test $ac_cv_have_decl_getpwuid = yes; then
9273
9274 cat >>confdefs.h <<_ACEOF
9275 #define HAVE_DECL_GETPWUID 1
9276 _ACEOF
9277
9278
9279 else
9280   cat >>confdefs.h <<_ACEOF
9281 #define HAVE_DECL_GETPWUID 0
9282 _ACEOF
9283
9284
9285 fi
9286 echo "$as_me:$LINENO: checking whether getuid is declared" >&5
9287 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6
9288 if test "${ac_cv_have_decl_getuid+set}" = set; then
9289   echo $ECHO_N "(cached) $ECHO_C" >&6
9290 else
9291   cat >conftest.$ac_ext <<_ACEOF
9292 #line $LINENO "configure"
9293 /* confdefs.h.  */
9294 _ACEOF
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h.  */
9298 $headers
9299
9300 int
9301 main ()
9302 {
9303 #ifndef getuid
9304   char *p = (char *) getuid;
9305 #endif
9306
9307   ;
9308   return 0;
9309 }
9310 _ACEOF
9311 rm -f conftest.$ac_objext
9312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9313   (eval $ac_compile) 2>&5
9314   ac_status=$?
9315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316   (exit $ac_status); } &&
9317          { ac_try='test -s conftest.$ac_objext'
9318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319   (eval $ac_try) 2>&5
9320   ac_status=$?
9321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322   (exit $ac_status); }; }; then
9323   ac_cv_have_decl_getuid=yes
9324 else
9325   echo "$as_me: failed program was:" >&5
9326 sed 's/^/| /' conftest.$ac_ext >&5
9327
9328 ac_cv_have_decl_getuid=no
9329 fi
9330 rm -f conftest.$ac_objext conftest.$ac_ext
9331 fi
9332 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
9333 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6
9334 if test $ac_cv_have_decl_getuid = yes; then
9335
9336 cat >>confdefs.h <<_ACEOF
9337 #define HAVE_DECL_GETUID 1
9338 _ACEOF
9339
9340
9341 else
9342   cat >>confdefs.h <<_ACEOF
9343 #define HAVE_DECL_GETUID 0
9344 _ACEOF
9345
9346
9347 fi
9348 echo "$as_me:$LINENO: checking whether getutent is declared" >&5
9349 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
9350 if test "${ac_cv_have_decl_getutent+set}" = set; then
9351   echo $ECHO_N "(cached) $ECHO_C" >&6
9352 else
9353   cat >conftest.$ac_ext <<_ACEOF
9354 #line $LINENO "configure"
9355 /* confdefs.h.  */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h.  */
9360 $headers
9361
9362 int
9363 main ()
9364 {
9365 #ifndef getutent
9366   char *p = (char *) getutent;
9367 #endif
9368
9369   ;
9370   return 0;
9371 }
9372 _ACEOF
9373 rm -f conftest.$ac_objext
9374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9375   (eval $ac_compile) 2>&5
9376   ac_status=$?
9377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   (exit $ac_status); } &&
9379          { ac_try='test -s conftest.$ac_objext'
9380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381   (eval $ac_try) 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); }; }; then
9385   ac_cv_have_decl_getutent=yes
9386 else
9387   echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9389
9390 ac_cv_have_decl_getutent=no
9391 fi
9392 rm -f conftest.$ac_objext conftest.$ac_ext
9393 fi
9394 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
9395 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
9396 if test $ac_cv_have_decl_getutent = yes; then
9397
9398 cat >>confdefs.h <<_ACEOF
9399 #define HAVE_DECL_GETUTENT 1
9400 _ACEOF
9401
9402
9403 else
9404   cat >>confdefs.h <<_ACEOF
9405 #define HAVE_DECL_GETUTENT 0
9406 _ACEOF
9407
9408
9409 fi
9410 echo "$as_me:$LINENO: checking whether lseek is declared" >&5
9411 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6
9412 if test "${ac_cv_have_decl_lseek+set}" = set; then
9413   echo $ECHO_N "(cached) $ECHO_C" >&6
9414 else
9415   cat >conftest.$ac_ext <<_ACEOF
9416 #line $LINENO "configure"
9417 /* confdefs.h.  */
9418 _ACEOF
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h.  */
9422 $headers
9423
9424 int
9425 main ()
9426 {
9427 #ifndef lseek
9428   char *p = (char *) lseek;
9429 #endif
9430
9431   ;
9432   return 0;
9433 }
9434 _ACEOF
9435 rm -f conftest.$ac_objext
9436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9437   (eval $ac_compile) 2>&5
9438   ac_status=$?
9439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440   (exit $ac_status); } &&
9441          { ac_try='test -s conftest.$ac_objext'
9442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443   (eval $ac_try) 2>&5
9444   ac_status=$?
9445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446   (exit $ac_status); }; }; then
9447   ac_cv_have_decl_lseek=yes
9448 else
9449   echo "$as_me: failed program was:" >&5
9450 sed 's/^/| /' conftest.$ac_ext >&5
9451
9452 ac_cv_have_decl_lseek=no
9453 fi
9454 rm -f conftest.$ac_objext conftest.$ac_ext
9455 fi
9456 echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
9457 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6
9458 if test $ac_cv_have_decl_lseek = yes; then
9459
9460 cat >>confdefs.h <<_ACEOF
9461 #define HAVE_DECL_LSEEK 1
9462 _ACEOF
9463
9464
9465 else
9466   cat >>confdefs.h <<_ACEOF
9467 #define HAVE_DECL_LSEEK 0
9468 _ACEOF
9469
9470
9471 fi
9472 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
9473 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
9474 if test "${ac_cv_have_decl_malloc+set}" = set; then
9475   echo $ECHO_N "(cached) $ECHO_C" >&6
9476 else
9477   cat >conftest.$ac_ext <<_ACEOF
9478 #line $LINENO "configure"
9479 /* confdefs.h.  */
9480 _ACEOF
9481 cat confdefs.h >>conftest.$ac_ext
9482 cat >>conftest.$ac_ext <<_ACEOF
9483 /* end confdefs.h.  */
9484 $headers
9485
9486 int
9487 main ()
9488 {
9489 #ifndef malloc
9490   char *p = (char *) malloc;
9491 #endif
9492
9493   ;
9494   return 0;
9495 }
9496 _ACEOF
9497 rm -f conftest.$ac_objext
9498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9499   (eval $ac_compile) 2>&5
9500   ac_status=$?
9501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502   (exit $ac_status); } &&
9503          { ac_try='test -s conftest.$ac_objext'
9504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505   (eval $ac_try) 2>&5
9506   ac_status=$?
9507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508   (exit $ac_status); }; }; then
9509   ac_cv_have_decl_malloc=yes
9510 else
9511   echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.$ac_ext >&5
9513
9514 ac_cv_have_decl_malloc=no
9515 fi
9516 rm -f conftest.$ac_objext conftest.$ac_ext
9517 fi
9518 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
9519 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
9520 if test $ac_cv_have_decl_malloc = yes; then
9521
9522 cat >>confdefs.h <<_ACEOF
9523 #define HAVE_DECL_MALLOC 1
9524 _ACEOF
9525
9526
9527 else
9528   cat >>confdefs.h <<_ACEOF
9529 #define HAVE_DECL_MALLOC 0
9530 _ACEOF
9531
9532
9533 fi
9534 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
9535 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
9536 if test "${ac_cv_have_decl_memchr+set}" = set; then
9537   echo $ECHO_N "(cached) $ECHO_C" >&6
9538 else
9539   cat >conftest.$ac_ext <<_ACEOF
9540 #line $LINENO "configure"
9541 /* confdefs.h.  */
9542 _ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h.  */
9546 $headers
9547
9548 int
9549 main ()
9550 {
9551 #ifndef memchr
9552   char *p = (char *) memchr;
9553 #endif
9554
9555   ;
9556   return 0;
9557 }
9558 _ACEOF
9559 rm -f conftest.$ac_objext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9561   (eval $ac_compile) 2>&5
9562   ac_status=$?
9563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564   (exit $ac_status); } &&
9565          { ac_try='test -s conftest.$ac_objext'
9566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567   (eval $ac_try) 2>&5
9568   ac_status=$?
9569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570   (exit $ac_status); }; }; then
9571   ac_cv_have_decl_memchr=yes
9572 else
9573   echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9575
9576 ac_cv_have_decl_memchr=no
9577 fi
9578 rm -f conftest.$ac_objext conftest.$ac_ext
9579 fi
9580 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
9581 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
9582 if test $ac_cv_have_decl_memchr = yes; then
9583
9584 cat >>confdefs.h <<_ACEOF
9585 #define HAVE_DECL_MEMCHR 1
9586 _ACEOF
9587
9588
9589 else
9590   cat >>confdefs.h <<_ACEOF
9591 #define HAVE_DECL_MEMCHR 0
9592 _ACEOF
9593
9594
9595 fi
9596 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
9597 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
9598 if test "${ac_cv_have_decl_memrchr+set}" = set; then
9599   echo $ECHO_N "(cached) $ECHO_C" >&6
9600 else
9601   cat >conftest.$ac_ext <<_ACEOF
9602 #line $LINENO "configure"
9603 /* confdefs.h.  */
9604 _ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h.  */
9608 $headers
9609
9610 int
9611 main ()
9612 {
9613 #ifndef memrchr
9614   char *p = (char *) memrchr;
9615 #endif
9616
9617   ;
9618   return 0;
9619 }
9620 _ACEOF
9621 rm -f conftest.$ac_objext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9623   (eval $ac_compile) 2>&5
9624   ac_status=$?
9625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626   (exit $ac_status); } &&
9627          { ac_try='test -s conftest.$ac_objext'
9628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629   (eval $ac_try) 2>&5
9630   ac_status=$?
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); }; }; then
9633   ac_cv_have_decl_memrchr=yes
9634 else
9635   echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9637
9638 ac_cv_have_decl_memrchr=no
9639 fi
9640 rm -f conftest.$ac_objext conftest.$ac_ext
9641 fi
9642 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
9643 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
9644 if test $ac_cv_have_decl_memrchr = yes; then
9645
9646 cat >>confdefs.h <<_ACEOF
9647 #define HAVE_DECL_MEMRCHR 1
9648 _ACEOF
9649
9650
9651 else
9652   cat >>confdefs.h <<_ACEOF
9653 #define HAVE_DECL_MEMRCHR 0
9654 _ACEOF
9655
9656
9657 fi
9658 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
9659 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
9660 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
9661   echo $ECHO_N "(cached) $ECHO_C" >&6
9662 else
9663   cat >conftest.$ac_ext <<_ACEOF
9664 #line $LINENO "configure"
9665 /* confdefs.h.  */
9666 _ACEOF
9667 cat confdefs.h >>conftest.$ac_ext
9668 cat >>conftest.$ac_ext <<_ACEOF
9669 /* end confdefs.h.  */
9670 $headers
9671
9672 int
9673 main ()
9674 {
9675 #ifndef nanosleep
9676   char *p = (char *) nanosleep;
9677 #endif
9678
9679   ;
9680   return 0;
9681 }
9682 _ACEOF
9683 rm -f conftest.$ac_objext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9685   (eval $ac_compile) 2>&5
9686   ac_status=$?
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); } &&
9689          { ac_try='test -s conftest.$ac_objext'
9690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691   (eval $ac_try) 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); }; }; then
9695   ac_cv_have_decl_nanosleep=yes
9696 else
9697   echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9699
9700 ac_cv_have_decl_nanosleep=no
9701 fi
9702 rm -f conftest.$ac_objext conftest.$ac_ext
9703 fi
9704 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
9705 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
9706 if test $ac_cv_have_decl_nanosleep = yes; then
9707
9708 cat >>confdefs.h <<_ACEOF
9709 #define HAVE_DECL_NANOSLEEP 1
9710 _ACEOF
9711
9712
9713 else
9714   cat >>confdefs.h <<_ACEOF
9715 #define HAVE_DECL_NANOSLEEP 0
9716 _ACEOF
9717
9718
9719 fi
9720 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
9721 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
9722 if test "${ac_cv_have_decl_realloc+set}" = set; then
9723   echo $ECHO_N "(cached) $ECHO_C" >&6
9724 else
9725   cat >conftest.$ac_ext <<_ACEOF
9726 #line $LINENO "configure"
9727 /* confdefs.h.  */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h.  */
9732 $headers
9733
9734 int
9735 main ()
9736 {
9737 #ifndef realloc
9738   char *p = (char *) realloc;
9739 #endif
9740
9741   ;
9742   return 0;
9743 }
9744 _ACEOF
9745 rm -f conftest.$ac_objext
9746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9747   (eval $ac_compile) 2>&5
9748   ac_status=$?
9749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750   (exit $ac_status); } &&
9751          { ac_try='test -s conftest.$ac_objext'
9752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753   (eval $ac_try) 2>&5
9754   ac_status=$?
9755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756   (exit $ac_status); }; }; then
9757   ac_cv_have_decl_realloc=yes
9758 else
9759   echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9761
9762 ac_cv_have_decl_realloc=no
9763 fi
9764 rm -f conftest.$ac_objext conftest.$ac_ext
9765 fi
9766 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
9767 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
9768 if test $ac_cv_have_decl_realloc = yes; then
9769
9770 cat >>confdefs.h <<_ACEOF
9771 #define HAVE_DECL_REALLOC 1
9772 _ACEOF
9773
9774
9775 else
9776   cat >>confdefs.h <<_ACEOF
9777 #define HAVE_DECL_REALLOC 0
9778 _ACEOF
9779
9780
9781 fi
9782 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
9783 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
9784 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
9785   echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787   cat >conftest.$ac_ext <<_ACEOF
9788 #line $LINENO "configure"
9789 /* confdefs.h.  */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h.  */
9794 $headers
9795
9796 int
9797 main ()
9798 {
9799 #ifndef stpcpy
9800   char *p = (char *) stpcpy;
9801 #endif
9802
9803   ;
9804   return 0;
9805 }
9806 _ACEOF
9807 rm -f conftest.$ac_objext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809   (eval $ac_compile) 2>&5
9810   ac_status=$?
9811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812   (exit $ac_status); } &&
9813          { ac_try='test -s conftest.$ac_objext'
9814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815   (eval $ac_try) 2>&5
9816   ac_status=$?
9817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   (exit $ac_status); }; }; then
9819   ac_cv_have_decl_stpcpy=yes
9820 else
9821   echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9823
9824 ac_cv_have_decl_stpcpy=no
9825 fi
9826 rm -f conftest.$ac_objext conftest.$ac_ext
9827 fi
9828 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
9829 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
9830 if test $ac_cv_have_decl_stpcpy = yes; then
9831
9832 cat >>confdefs.h <<_ACEOF
9833 #define HAVE_DECL_STPCPY 1
9834 _ACEOF
9835
9836
9837 else
9838   cat >>confdefs.h <<_ACEOF
9839 #define HAVE_DECL_STPCPY 0
9840 _ACEOF
9841
9842
9843 fi
9844 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
9845 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
9846 if test "${ac_cv_have_decl_strndup+set}" = set; then
9847   echo $ECHO_N "(cached) $ECHO_C" >&6
9848 else
9849   cat >conftest.$ac_ext <<_ACEOF
9850 #line $LINENO "configure"
9851 /* confdefs.h.  */
9852 _ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h.  */
9856 $headers
9857
9858 int
9859 main ()
9860 {
9861 #ifndef strndup
9862   char *p = (char *) strndup;
9863 #endif
9864
9865   ;
9866   return 0;
9867 }
9868 _ACEOF
9869 rm -f conftest.$ac_objext
9870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9871   (eval $ac_compile) 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); } &&
9875          { ac_try='test -s conftest.$ac_objext'
9876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877   (eval $ac_try) 2>&5
9878   ac_status=$?
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); }; }; then
9881   ac_cv_have_decl_strndup=yes
9882 else
9883   echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9885
9886 ac_cv_have_decl_strndup=no
9887 fi
9888 rm -f conftest.$ac_objext conftest.$ac_ext
9889 fi
9890 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
9891 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
9892 if test $ac_cv_have_decl_strndup = yes; then
9893
9894 cat >>confdefs.h <<_ACEOF
9895 #define HAVE_DECL_STRNDUP 1
9896 _ACEOF
9897
9898
9899 else
9900   cat >>confdefs.h <<_ACEOF
9901 #define HAVE_DECL_STRNDUP 0
9902 _ACEOF
9903
9904
9905 fi
9906 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
9907 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
9908 if test "${ac_cv_have_decl_strnlen+set}" = set; then
9909   echo $ECHO_N "(cached) $ECHO_C" >&6
9910 else
9911   cat >conftest.$ac_ext <<_ACEOF
9912 #line $LINENO "configure"
9913 /* confdefs.h.  */
9914 _ACEOF
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h.  */
9918 $headers
9919
9920 int
9921 main ()
9922 {
9923 #ifndef strnlen
9924   char *p = (char *) strnlen;
9925 #endif
9926
9927   ;
9928   return 0;
9929 }
9930 _ACEOF
9931 rm -f conftest.$ac_objext
9932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9933   (eval $ac_compile) 2>&5
9934   ac_status=$?
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); } &&
9937          { ac_try='test -s conftest.$ac_objext'
9938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939   (eval $ac_try) 2>&5
9940   ac_status=$?
9941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); }; }; then
9943   ac_cv_have_decl_strnlen=yes
9944 else
9945   echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9947
9948 ac_cv_have_decl_strnlen=no
9949 fi
9950 rm -f conftest.$ac_objext conftest.$ac_ext
9951 fi
9952 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
9953 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
9954 if test $ac_cv_have_decl_strnlen = yes; then
9955
9956 cat >>confdefs.h <<_ACEOF
9957 #define HAVE_DECL_STRNLEN 1
9958 _ACEOF
9959
9960
9961 else
9962   cat >>confdefs.h <<_ACEOF
9963 #define HAVE_DECL_STRNLEN 0
9964 _ACEOF
9965
9966
9967 fi
9968 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
9969 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
9970 if test "${ac_cv_have_decl_strstr+set}" = set; then
9971   echo $ECHO_N "(cached) $ECHO_C" >&6
9972 else
9973   cat >conftest.$ac_ext <<_ACEOF
9974 #line $LINENO "configure"
9975 /* confdefs.h.  */
9976 _ACEOF
9977 cat confdefs.h >>conftest.$ac_ext
9978 cat >>conftest.$ac_ext <<_ACEOF
9979 /* end confdefs.h.  */
9980 $headers
9981
9982 int
9983 main ()
9984 {
9985 #ifndef strstr
9986   char *p = (char *) strstr;
9987 #endif
9988
9989   ;
9990   return 0;
9991 }
9992 _ACEOF
9993 rm -f conftest.$ac_objext
9994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9995   (eval $ac_compile) 2>&5
9996   ac_status=$?
9997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998   (exit $ac_status); } &&
9999          { ac_try='test -s conftest.$ac_objext'
10000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001   (eval $ac_try) 2>&5
10002   ac_status=$?
10003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004   (exit $ac_status); }; }; then
10005   ac_cv_have_decl_strstr=yes
10006 else
10007   echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10009
10010 ac_cv_have_decl_strstr=no
10011 fi
10012 rm -f conftest.$ac_objext conftest.$ac_ext
10013 fi
10014 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
10015 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
10016 if test $ac_cv_have_decl_strstr = yes; then
10017
10018 cat >>confdefs.h <<_ACEOF
10019 #define HAVE_DECL_STRSTR 1
10020 _ACEOF
10021
10022
10023 else
10024   cat >>confdefs.h <<_ACEOF
10025 #define HAVE_DECL_STRSTR 0
10026 _ACEOF
10027
10028
10029 fi
10030 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
10031 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
10032 if test "${ac_cv_have_decl_strtoul+set}" = set; then
10033   echo $ECHO_N "(cached) $ECHO_C" >&6
10034 else
10035   cat >conftest.$ac_ext <<_ACEOF
10036 #line $LINENO "configure"
10037 /* confdefs.h.  */
10038 _ACEOF
10039 cat confdefs.h >>conftest.$ac_ext
10040 cat >>conftest.$ac_ext <<_ACEOF
10041 /* end confdefs.h.  */
10042 $headers
10043
10044 int
10045 main ()
10046 {
10047 #ifndef strtoul
10048   char *p = (char *) strtoul;
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_strtoul=yes
10068 else
10069   echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10071
10072 ac_cv_have_decl_strtoul=no
10073 fi
10074 rm -f conftest.$ac_objext conftest.$ac_ext
10075 fi
10076 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
10077 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
10078 if test $ac_cv_have_decl_strtoul = yes; then
10079
10080 cat >>confdefs.h <<_ACEOF
10081 #define HAVE_DECL_STRTOUL 1
10082 _ACEOF
10083
10084
10085 else
10086   cat >>confdefs.h <<_ACEOF
10087 #define HAVE_DECL_STRTOUL 0
10088 _ACEOF
10089
10090
10091 fi
10092 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
10093 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
10094 if test "${ac_cv_have_decl_strtoull+set}" = set; then
10095   echo $ECHO_N "(cached) $ECHO_C" >&6
10096 else
10097   cat >conftest.$ac_ext <<_ACEOF
10098 #line $LINENO "configure"
10099 /* confdefs.h.  */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h.  */
10104 $headers
10105
10106 int
10107 main ()
10108 {
10109 #ifndef strtoull
10110   char *p = (char *) strtoull;
10111 #endif
10112
10113   ;
10114   return 0;
10115 }
10116 _ACEOF
10117 rm -f conftest.$ac_objext
10118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10119   (eval $ac_compile) 2>&5
10120   ac_status=$?
10121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122   (exit $ac_status); } &&
10123          { ac_try='test -s conftest.$ac_objext'
10124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125   (eval $ac_try) 2>&5
10126   ac_status=$?
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); }; }; then
10129   ac_cv_have_decl_strtoull=yes
10130 else
10131   echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10133
10134 ac_cv_have_decl_strtoull=no
10135 fi
10136 rm -f conftest.$ac_objext conftest.$ac_ext
10137 fi
10138 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
10139 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
10140 if test $ac_cv_have_decl_strtoull = yes; then
10141
10142 cat >>confdefs.h <<_ACEOF
10143 #define HAVE_DECL_STRTOULL 1
10144 _ACEOF
10145
10146
10147 else
10148   cat >>confdefs.h <<_ACEOF
10149 #define HAVE_DECL_STRTOULL 0
10150 _ACEOF
10151
10152
10153 fi
10154 echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
10155 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6
10156 if test "${ac_cv_have_decl_ttyname+set}" = set; then
10157   echo $ECHO_N "(cached) $ECHO_C" >&6
10158 else
10159   cat >conftest.$ac_ext <<_ACEOF
10160 #line $LINENO "configure"
10161 /* confdefs.h.  */
10162 _ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h.  */
10166 $headers
10167
10168 int
10169 main ()
10170 {
10171 #ifndef ttyname
10172   char *p = (char *) ttyname;
10173 #endif
10174
10175   ;
10176   return 0;
10177 }
10178 _ACEOF
10179 rm -f conftest.$ac_objext
10180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10181   (eval $ac_compile) 2>&5
10182   ac_status=$?
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); } &&
10185          { ac_try='test -s conftest.$ac_objext'
10186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187   (eval $ac_try) 2>&5
10188   ac_status=$?
10189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190   (exit $ac_status); }; }; then
10191   ac_cv_have_decl_ttyname=yes
10192 else
10193   echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10195
10196 ac_cv_have_decl_ttyname=no
10197 fi
10198 rm -f conftest.$ac_objext conftest.$ac_ext
10199 fi
10200 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
10201 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6
10202 if test $ac_cv_have_decl_ttyname = yes; then
10203
10204 cat >>confdefs.h <<_ACEOF
10205 #define HAVE_DECL_TTYNAME 1
10206 _ACEOF
10207
10208
10209 else
10210   cat >>confdefs.h <<_ACEOF
10211 #define HAVE_DECL_TTYNAME 0
10212 _ACEOF
10213
10214
10215 fi
10216
10217
10218
10219 echo "$as_me:$LINENO: checking for long file names" >&5
10220 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
10221 if test "${ac_cv_sys_long_file_names+set}" = set; then
10222   echo $ECHO_N "(cached) $ECHO_C" >&6
10223 else
10224   ac_cv_sys_long_file_names=yes
10225 # Test for long file names in all the places we know might matter:
10226 #      .                the current directory, where building will happen
10227 #      $prefix/lib      where we will be installing things
10228 #      $exec_prefix/lib likewise
10229 # eval it to expand exec_prefix.
10230 #      $TMPDIR          if set, where it might want to write temporary files
10231 # if $TMPDIR is not set:
10232 #      /tmp             where it might want to write temporary files
10233 #      /var/tmp         likewise
10234 #      /usr/tmp         likewise
10235 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
10236   ac_tmpdirs=$TMPDIR
10237 else
10238   ac_tmpdirs='/tmp /var/tmp /usr/tmp'
10239 fi
10240 for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
10241   test -d $ac_dir || continue
10242   test -w $ac_dir || continue # It is less confusing to not echo anything here.
10243   ac_xdir=$ac_dir/cf$$
10244   (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
10245   ac_tf1=$ac_xdir/conftest9012345
10246   ac_tf2=$ac_xdir/conftest9012346
10247   (echo 1 >$ac_tf1) 2>/dev/null
10248   (echo 2 >$ac_tf2) 2>/dev/null
10249   ac_val=`cat $ac_tf1 2>/dev/null`
10250   if test ! -f $ac_tf1 || test "$ac_val" != 1; then
10251     ac_cv_sys_long_file_names=no
10252     rm -rf $ac_xdir 2>/dev/null
10253     break
10254   fi
10255   rm -rf $ac_xdir 2>/dev/null
10256 done
10257 fi
10258 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
10259 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
10260 if test $ac_cv_sys_long_file_names = yes; then
10261
10262 cat >>confdefs.h <<\_ACEOF
10263 #define HAVE_LONG_FILE_NAMES 1
10264 _ACEOF
10265
10266 fi
10267
10268
10269
10270
10271 for ac_func in pathconf
10272 do
10273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10274 echo "$as_me:$LINENO: checking for $ac_func" >&5
10275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10276 if eval "test \"\${$as_ac_var+set}\" = set"; then
10277   echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279   cat >conftest.$ac_ext <<_ACEOF
10280 #line $LINENO "configure"
10281 /* confdefs.h.  */
10282 _ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h.  */
10286 /* System header to define __stub macros and hopefully few prototypes,
10287     which can conflict with char $ac_func (); below.
10288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10289     <limits.h> exists even on freestanding compilers.  */
10290 #ifdef __STDC__
10291 # include <limits.h>
10292 #else
10293 # include <assert.h>
10294 #endif
10295 /* Override any gcc2 internal prototype to avoid an error.  */
10296 #ifdef __cplusplus
10297 extern "C"
10298 {
10299 #endif
10300 /* We use char because int might match the return type of a gcc2
10301    builtin and then its argument prototype would still apply.  */
10302 char $ac_func ();
10303 /* The GNU C library defines this for functions which it implements
10304     to always fail with ENOSYS.  Some functions are actually named
10305     something starting with __ and the normal name is an alias.  */
10306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10307 choke me
10308 #else
10309 char (*f) () = $ac_func;
10310 #endif
10311 #ifdef __cplusplus
10312 }
10313 #endif
10314
10315 int
10316 main ()
10317 {
10318 return f != $ac_func;
10319   ;
10320   return 0;
10321 }
10322 _ACEOF
10323 rm -f conftest.$ac_objext conftest$ac_exeext
10324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10325   (eval $ac_link) 2>&5
10326   ac_status=$?
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); } &&
10329          { ac_try='test -s conftest$ac_exeext'
10330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331   (eval $ac_try) 2>&5
10332   ac_status=$?
10333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334   (exit $ac_status); }; }; then
10335   eval "$as_ac_var=yes"
10336 else
10337   echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10339
10340 eval "$as_ac_var=no"
10341 fi
10342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10343 fi
10344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10346 if test `eval echo '${'$as_ac_var'}'` = yes; then
10347   cat >>confdefs.h <<_ACEOF
10348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10349 _ACEOF
10350
10351 fi
10352 done
10353
10354
10355
10356
10357 for ac_header in limits.h string.h unistd.h
10358 do
10359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10361   echo "$as_me:$LINENO: checking for $ac_header" >&5
10362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10364   echo $ECHO_N "(cached) $ECHO_C" >&6
10365 fi
10366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10368 else
10369   # Is the header compilable?
10370 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10372 cat >conftest.$ac_ext <<_ACEOF
10373 #line $LINENO "configure"
10374 /* confdefs.h.  */
10375 _ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h.  */
10379 $ac_includes_default
10380 #include <$ac_header>
10381 _ACEOF
10382 rm -f conftest.$ac_objext
10383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10384   (eval $ac_compile) 2>&5
10385   ac_status=$?
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); } &&
10388          { ac_try='test -s conftest.$ac_objext'
10389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390   (eval $ac_try) 2>&5
10391   ac_status=$?
10392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393   (exit $ac_status); }; }; then
10394   ac_header_compiler=yes
10395 else
10396   echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10398
10399 ac_header_compiler=no
10400 fi
10401 rm -f conftest.$ac_objext conftest.$ac_ext
10402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10403 echo "${ECHO_T}$ac_header_compiler" >&6
10404
10405 # Is the header present?
10406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10408 cat >conftest.$ac_ext <<_ACEOF
10409 #line $LINENO "configure"
10410 /* confdefs.h.  */
10411 _ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h.  */
10415 #include <$ac_header>
10416 _ACEOF
10417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10418   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10419   ac_status=$?
10420   grep -v '^ *+' conftest.er1 >conftest.err
10421   rm -f conftest.er1
10422   cat conftest.err >&5
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); } >/dev/null; then
10425   if test -s conftest.err; then
10426     ac_cpp_err=$ac_c_preproc_warn_flag
10427   else
10428     ac_cpp_err=
10429   fi
10430 else
10431   ac_cpp_err=yes
10432 fi
10433 if test -z "$ac_cpp_err"; then
10434   ac_header_preproc=yes
10435 else
10436   echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10438
10439   ac_header_preproc=no
10440 fi
10441 rm -f conftest.err conftest.$ac_ext
10442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10443 echo "${ECHO_T}$ac_header_preproc" >&6
10444
10445 # So?  What about this header?
10446 case $ac_header_compiler:$ac_header_preproc in
10447   yes:no )
10448     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10452     (
10453       cat <<\_ASBOX
10454 ## ------------------------------------ ##
10455 ## Report this to bug-autoconf@gnu.org. ##
10456 ## ------------------------------------ ##
10457 _ASBOX
10458     ) |
10459       sed "s/^/$as_me: WARNING:     /" >&2
10460     ;;
10461   no:yes )
10462     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10464     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10468     (
10469       cat <<\_ASBOX
10470 ## ------------------------------------ ##
10471 ## Report this to bug-autoconf@gnu.org. ##
10472 ## ------------------------------------ ##
10473 _ASBOX
10474     ) |
10475       sed "s/^/$as_me: WARNING:     /" >&2
10476     ;;
10477 esac
10478 echo "$as_me:$LINENO: checking for $ac_header" >&5
10479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10481   echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483   eval "$as_ac_Header=$ac_header_preproc"
10484 fi
10485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10487
10488 fi
10489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10490   cat >>confdefs.h <<_ACEOF
10491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10492 _ACEOF
10493
10494 fi
10495
10496 done
10497
10498
10499 # for STACK_DIRECTION
10500
10501
10502    echo "$as_me:$LINENO: checking for working C stack overflow detection" >&5
10503 echo $ECHO_N "checking for working C stack overflow detection... $ECHO_C" >&6
10504 if test "${ac_cv_sys_xsi_stack_overflow_heuristic+set}" = set; then
10505   echo $ECHO_N "(cached) $ECHO_C" >&6
10506 else
10507   if test "$cross_compiling" = yes; then
10508   ac_cv_sys_xsi_stack_overflow_heuristic=cross-compiling
10509 else
10510   cat >conftest.$ac_ext <<_ACEOF
10511 #line $LINENO "configure"
10512 /* confdefs.h.  */
10513 _ACEOF
10514 cat confdefs.h >>conftest.$ac_ext
10515 cat >>conftest.$ac_ext <<_ACEOF
10516 /* end confdefs.h.  */
10517
10518          #include <unistd.h>
10519          #include <signal.h>
10520          #include <ucontext.h>
10521
10522          static union
10523          {
10524            char buffer[SIGSTKSZ];
10525            long double ld;
10526            long u;
10527            void *p;
10528          } alternate_signal_stack;
10529
10530          #if STACK_DIRECTION
10531          # define find_stack_direction(ptr) STACK_DIRECTION
10532          #else
10533          static int
10534          find_stack_direction (char const *addr)
10535          {
10536            char dummy;
10537            return (! addr ? find_stack_direction (&dummy)
10538                    : addr < &dummy ? 1 : -1);
10539          }
10540          #endif
10541
10542          static void
10543          segv_handler (int signo, siginfo_t *info, void *context)
10544          {
10545            if (0 < info->si_code)
10546              {
10547                ucontext_t const *user_context = context;
10548                char const *stack_min = user_context->uc_stack.ss_sp;
10549                size_t stack_size = user_context->uc_stack.ss_size;
10550                char const *faulting_address = info->si_addr;
10551                size_t s = faulting_address - stack_min;
10552                size_t page_size = sysconf (_SC_PAGESIZE);
10553                if (find_stack_direction (0) < 0)
10554                  s += page_size;
10555                if (s < stack_size + page_size)
10556                  _exit (0);
10557              }
10558
10559            _exit (1);
10560          }
10561
10562          static int
10563          c_stack_action (void)
10564          {
10565            stack_t st;
10566            struct sigaction act;
10567            int r;
10568
10569            st.ss_flags = 0;
10570            st.ss_sp = alternate_signal_stack.buffer;
10571            st.ss_size = sizeof alternate_signal_stack.buffer;
10572            r = sigaltstack (&st, 0);
10573            if (r != 0)
10574              return r;
10575
10576            sigemptyset (&act.sa_mask);
10577            act.sa_flags = SA_NODEFER | SA_ONSTACK | SA_RESETHAND | SA_SIGINFO;
10578            act.sa_sigaction = segv_handler;
10579            return sigaction (SIGSEGV, &act, 0);
10580          }
10581
10582          static int
10583          recurse (char *p)
10584          {
10585            char array[500];
10586            array[0] = 1;
10587            return *p + recurse (array);
10588          }
10589
10590          int
10591          main (void)
10592          {
10593            c_stack_action ();
10594            return recurse ("\1");
10595          }
10596
10597 _ACEOF
10598 rm -f conftest$ac_exeext
10599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10600   (eval $ac_link) 2>&5
10601   ac_status=$?
10602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605   (eval $ac_try) 2>&5
10606   ac_status=$?
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); }; }; then
10609   ac_cv_sys_xsi_stack_overflow_heuristic=yes
10610 else
10611   echo "$as_me: program exited with status $ac_status" >&5
10612 echo "$as_me: failed program was:" >&5
10613 sed 's/^/| /' conftest.$ac_ext >&5
10614
10615 ( exit $ac_status )
10616 ac_cv_sys_xsi_stack_overflow_heuristic=no
10617 fi
10618 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10619 fi
10620 fi
10621 echo "$as_me:$LINENO: result: $ac_cv_sys_xsi_stack_overflow_heuristic" >&5
10622 echo "${ECHO_T}$ac_cv_sys_xsi_stack_overflow_heuristic" >&6
10623
10624    if test $ac_cv_sys_xsi_stack_overflow_heuristic = yes; then
10625
10626 cat >>confdefs.h <<\_ACEOF
10627 #define HAVE_XSI_STACK_OVERFLOW_HEURISTIC 1
10628 _ACEOF
10629
10630    fi
10631
10632
10633    # for STACK_DIRECTION
10634
10635
10636
10637
10638 for ac_func in getcontext sigaltstack
10639 do
10640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10641 echo "$as_me:$LINENO: checking for $ac_func" >&5
10642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10643 if eval "test \"\${$as_ac_var+set}\" = set"; then
10644   echo $ECHO_N "(cached) $ECHO_C" >&6
10645 else
10646   cat >conftest.$ac_ext <<_ACEOF
10647 #line $LINENO "configure"
10648 /* confdefs.h.  */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h.  */
10653 /* System header to define __stub macros and hopefully few prototypes,
10654     which can conflict with char $ac_func (); below.
10655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10656     <limits.h> exists even on freestanding compilers.  */
10657 #ifdef __STDC__
10658 # include <limits.h>
10659 #else
10660 # include <assert.h>
10661 #endif
10662 /* Override any gcc2 internal prototype to avoid an error.  */
10663 #ifdef __cplusplus
10664 extern "C"
10665 {
10666 #endif
10667 /* We use char because int might match the return type of a gcc2
10668    builtin and then its argument prototype would still apply.  */
10669 char $ac_func ();
10670 /* The GNU C library defines this for functions which it implements
10671     to always fail with ENOSYS.  Some functions are actually named
10672     something starting with __ and the normal name is an alias.  */
10673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10674 choke me
10675 #else
10676 char (*f) () = $ac_func;
10677 #endif
10678 #ifdef __cplusplus
10679 }
10680 #endif
10681
10682 int
10683 main ()
10684 {
10685 return f != $ac_func;
10686   ;
10687   return 0;
10688 }
10689 _ACEOF
10690 rm -f conftest.$ac_objext conftest$ac_exeext
10691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10692   (eval $ac_link) 2>&5
10693   ac_status=$?
10694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695   (exit $ac_status); } &&
10696          { ac_try='test -s conftest$ac_exeext'
10697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10698   (eval $ac_try) 2>&5
10699   ac_status=$?
10700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701   (exit $ac_status); }; }; then
10702   eval "$as_ac_var=yes"
10703 else
10704   echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.$ac_ext >&5
10706
10707 eval "$as_ac_var=no"
10708 fi
10709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10710 fi
10711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10713 if test `eval echo '${'$as_ac_var'}'` = yes; then
10714   cat >>confdefs.h <<_ACEOF
10715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10716 _ACEOF
10717
10718 fi
10719 done
10720
10721    echo "$as_me:$LINENO: checking whether getcontext is declared" >&5
10722 echo $ECHO_N "checking whether getcontext is declared... $ECHO_C" >&6
10723 if test "${ac_cv_have_decl_getcontext+set}" = set; then
10724   echo $ECHO_N "(cached) $ECHO_C" >&6
10725 else
10726   cat >conftest.$ac_ext <<_ACEOF
10727 #line $LINENO "configure"
10728 /* confdefs.h.  */
10729 _ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h.  */
10733 #include <ucontext.h>
10734
10735 int
10736 main ()
10737 {
10738 #ifndef getcontext
10739   char *p = (char *) getcontext;
10740 #endif
10741
10742   ;
10743   return 0;
10744 }
10745 _ACEOF
10746 rm -f conftest.$ac_objext
10747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10748   (eval $ac_compile) 2>&5
10749   ac_status=$?
10750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751   (exit $ac_status); } &&
10752          { ac_try='test -s conftest.$ac_objext'
10753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754   (eval $ac_try) 2>&5
10755   ac_status=$?
10756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757   (exit $ac_status); }; }; then
10758   ac_cv_have_decl_getcontext=yes
10759 else
10760   echo "$as_me: failed program was:" >&5
10761 sed 's/^/| /' conftest.$ac_ext >&5
10762
10763 ac_cv_have_decl_getcontext=no
10764 fi
10765 rm -f conftest.$ac_objext conftest.$ac_ext
10766 fi
10767 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcontext" >&5
10768 echo "${ECHO_T}$ac_cv_have_decl_getcontext" >&6
10769 if test $ac_cv_have_decl_getcontext = yes; then
10770
10771 cat >>confdefs.h <<_ACEOF
10772 #define HAVE_DECL_GETCONTEXT 1
10773 _ACEOF
10774
10775
10776 else
10777   cat >>confdefs.h <<_ACEOF
10778 #define HAVE_DECL_GETCONTEXT 0
10779 _ACEOF
10780
10781
10782 fi
10783
10784
10785    echo "$as_me:$LINENO: checking whether sigaltstack is declared" >&5
10786 echo $ECHO_N "checking whether sigaltstack is declared... $ECHO_C" >&6
10787 if test "${ac_cv_have_decl_sigaltstack+set}" = set; then
10788   echo $ECHO_N "(cached) $ECHO_C" >&6
10789 else
10790   cat >conftest.$ac_ext <<_ACEOF
10791 #line $LINENO "configure"
10792 /* confdefs.h.  */
10793 _ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h.  */
10797 #include <signal.h>
10798
10799 int
10800 main ()
10801 {
10802 #ifndef sigaltstack
10803   char *p = (char *) sigaltstack;
10804 #endif
10805
10806   ;
10807   return 0;
10808 }
10809 _ACEOF
10810 rm -f conftest.$ac_objext
10811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10812   (eval $ac_compile) 2>&5
10813   ac_status=$?
10814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815   (exit $ac_status); } &&
10816          { ac_try='test -s conftest.$ac_objext'
10817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818   (eval $ac_try) 2>&5
10819   ac_status=$?
10820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821   (exit $ac_status); }; }; then
10822   ac_cv_have_decl_sigaltstack=yes
10823 else
10824   echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10826
10827 ac_cv_have_decl_sigaltstack=no
10828 fi
10829 rm -f conftest.$ac_objext conftest.$ac_ext
10830 fi
10831 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sigaltstack" >&5
10832 echo "${ECHO_T}$ac_cv_have_decl_sigaltstack" >&6
10833 if test $ac_cv_have_decl_sigaltstack = yes; then
10834
10835 cat >>confdefs.h <<_ACEOF
10836 #define HAVE_DECL_SIGALTSTACK 1
10837 _ACEOF
10838
10839
10840 else
10841   cat >>confdefs.h <<_ACEOF
10842 #define HAVE_DECL_SIGALTSTACK 0
10843 _ACEOF
10844
10845
10846 fi
10847
10848
10849
10850
10851
10852
10853 for ac_header in sys/resource.h ucontext.h unistd.h
10854 do
10855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10857   echo "$as_me:$LINENO: checking for $ac_header" >&5
10858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10860   echo $ECHO_N "(cached) $ECHO_C" >&6
10861 fi
10862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10864 else
10865   # Is the header compilable?
10866 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10868 cat >conftest.$ac_ext <<_ACEOF
10869 #line $LINENO "configure"
10870 /* confdefs.h.  */
10871 _ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h.  */
10875 $ac_includes_default
10876 #include <$ac_header>
10877 _ACEOF
10878 rm -f conftest.$ac_objext
10879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10880   (eval $ac_compile) 2>&5
10881   ac_status=$?
10882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883   (exit $ac_status); } &&
10884          { ac_try='test -s conftest.$ac_objext'
10885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886   (eval $ac_try) 2>&5
10887   ac_status=$?
10888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889   (exit $ac_status); }; }; then
10890   ac_header_compiler=yes
10891 else
10892   echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10894
10895 ac_header_compiler=no
10896 fi
10897 rm -f conftest.$ac_objext conftest.$ac_ext
10898 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10899 echo "${ECHO_T}$ac_header_compiler" >&6
10900
10901 # Is the header present?
10902 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10904 cat >conftest.$ac_ext <<_ACEOF
10905 #line $LINENO "configure"
10906 /* confdefs.h.  */
10907 _ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h.  */
10911 #include <$ac_header>
10912 _ACEOF
10913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10914   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10915   ac_status=$?
10916   grep -v '^ *+' conftest.er1 >conftest.err
10917   rm -f conftest.er1
10918   cat conftest.err >&5
10919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920   (exit $ac_status); } >/dev/null; then
10921   if test -s conftest.err; then
10922     ac_cpp_err=$ac_c_preproc_warn_flag
10923   else
10924     ac_cpp_err=
10925   fi
10926 else
10927   ac_cpp_err=yes
10928 fi
10929 if test -z "$ac_cpp_err"; then
10930   ac_header_preproc=yes
10931 else
10932   echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.$ac_ext >&5
10934
10935   ac_header_preproc=no
10936 fi
10937 rm -f conftest.err conftest.$ac_ext
10938 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10939 echo "${ECHO_T}$ac_header_preproc" >&6
10940
10941 # So?  What about this header?
10942 case $ac_header_compiler:$ac_header_preproc in
10943   yes:no )
10944     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10946     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10948     (
10949       cat <<\_ASBOX
10950 ## ------------------------------------ ##
10951 ## Report this to bug-autoconf@gnu.org. ##
10952 ## ------------------------------------ ##
10953 _ASBOX
10954     ) |
10955       sed "s/^/$as_me: WARNING:     /" >&2
10956     ;;
10957   no:yes )
10958     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10960     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10964     (
10965       cat <<\_ASBOX
10966 ## ------------------------------------ ##
10967 ## Report this to bug-autoconf@gnu.org. ##
10968 ## ------------------------------------ ##
10969 _ASBOX
10970     ) |
10971       sed "s/^/$as_me: WARNING:     /" >&2
10972     ;;
10973 esac
10974 echo "$as_me:$LINENO: checking for $ac_header" >&5
10975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10977   echo $ECHO_N "(cached) $ECHO_C" >&6
10978 else
10979   eval "$as_ac_Header=$ac_header_preproc"
10980 fi
10981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10983
10984 fi
10985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10986   cat >>confdefs.h <<_ACEOF
10987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10988 _ACEOF
10989
10990 fi
10991
10992 done
10993
10994
10995    echo "$as_me:$LINENO: checking for stack_t" >&5
10996 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
10997 if test "${ac_cv_type_stack_t+set}" = set; then
10998   echo $ECHO_N "(cached) $ECHO_C" >&6
10999 else
11000   cat >conftest.$ac_ext <<_ACEOF
11001 #line $LINENO "configure"
11002 /* confdefs.h.  */
11003 _ACEOF
11004 cat confdefs.h >>conftest.$ac_ext
11005 cat >>conftest.$ac_ext <<_ACEOF
11006 /* end confdefs.h.  */
11007 #include <signal.h>
11008
11009 int
11010 main ()
11011 {
11012 if ((stack_t *) 0)
11013   return 0;
11014 if (sizeof (stack_t))
11015   return 0;
11016   ;
11017   return 0;
11018 }
11019 _ACEOF
11020 rm -f conftest.$ac_objext
11021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11022   (eval $ac_compile) 2>&5
11023   ac_status=$?
11024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025   (exit $ac_status); } &&
11026          { ac_try='test -s conftest.$ac_objext'
11027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028   (eval $ac_try) 2>&5
11029   ac_status=$?
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); }; }; then
11032   ac_cv_type_stack_t=yes
11033 else
11034   echo "$as_me: failed program was:" >&5
11035 sed 's/^/| /' conftest.$ac_ext >&5
11036
11037 ac_cv_type_stack_t=no
11038 fi
11039 rm -f conftest.$ac_objext conftest.$ac_ext
11040 fi
11041 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11042 echo "${ECHO_T}$ac_cv_type_stack_t" >&6
11043 if test $ac_cv_type_stack_t = yes; then
11044
11045 cat >>confdefs.h <<_ACEOF
11046 #define HAVE_STACK_T 1
11047 _ACEOF
11048
11049
11050 fi
11051
11052
11053
11054   echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
11055 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
11056 if test "${ac_cv_search_gethostbyname+set}" = set; then
11057   echo $ECHO_N "(cached) $ECHO_C" >&6
11058 else
11059
11060     ac_func_search_save_LIBS=$LIBS
11061     ac_cv_search_gethostbyname=no
11062     cat >conftest.$ac_ext <<_ACEOF
11063 #line $LINENO "configure"
11064 /* confdefs.h.  */
11065 _ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h.  */
11069
11070 /* Override any gcc2 internal prototype to avoid an error.  */
11071 #ifdef __cplusplus
11072 extern "C"
11073 #endif
11074 /* We use char because int might match the return type of a gcc2
11075    builtin and then its argument prototype would still apply.  */
11076 char gethostbyname ();
11077 int
11078 main ()
11079 {
11080 gethostbyname ();
11081   ;
11082   return 0;
11083 }
11084 _ACEOF
11085 rm -f conftest.$ac_objext conftest$ac_exeext
11086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11087   (eval $ac_link) 2>&5
11088   ac_status=$?
11089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090   (exit $ac_status); } &&
11091          { ac_try='test -s conftest$ac_exeext'
11092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093   (eval $ac_try) 2>&5
11094   ac_status=$?
11095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096   (exit $ac_status); }; }; then
11097   ac_cv_search_gethostbyname='none required'
11098 else
11099   echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11101
11102 fi
11103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11104     if test "$ac_cv_search_gethostbyname" = no; then
11105       for ac_lib in inet nsl; do
11106         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11107         cat >conftest.$ac_ext <<_ACEOF
11108 #line $LINENO "configure"
11109 /* confdefs.h.  */
11110 _ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h.  */
11114
11115 /* Override any gcc2 internal prototype to avoid an error.  */
11116 #ifdef __cplusplus
11117 extern "C"
11118 #endif
11119 /* We use char because int might match the return type of a gcc2
11120    builtin and then its argument prototype would still apply.  */
11121 char gethostbyname ();
11122 int
11123 main ()
11124 {
11125 gethostbyname ();
11126   ;
11127   return 0;
11128 }
11129 _ACEOF
11130 rm -f conftest.$ac_objext conftest$ac_exeext
11131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11132   (eval $ac_link) 2>&5
11133   ac_status=$?
11134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135   (exit $ac_status); } &&
11136          { ac_try='test -s conftest$ac_exeext'
11137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138   (eval $ac_try) 2>&5
11139   ac_status=$?
11140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141   (exit $ac_status); }; }; then
11142   ac_cv_search_gethostbyname="-l$ac_lib"; break
11143 else
11144   echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11146
11147 fi
11148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11149       done
11150     fi
11151     LIBS=$ac_func_search_save_LIBS
11152
11153 fi
11154 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
11155 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
11156
11157   if test "$ac_cv_search_gethostbyname" = no; then :
11158
11159   else
11160     if test "$ac_cv_search_gethostbyname" = 'none required'; then :
11161
11162     else
11163       LIBS="$ac_cv_search_gethostbyname $LIBS"
11164
11165     fi
11166   fi
11167
11168
11169
11170
11171
11172 for ac_func in gethostbyname gethostbyaddr inet_ntoa
11173 do
11174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11175 echo "$as_me:$LINENO: checking for $ac_func" >&5
11176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11177 if eval "test \"\${$as_ac_var+set}\" = set"; then
11178   echo $ECHO_N "(cached) $ECHO_C" >&6
11179 else
11180   cat >conftest.$ac_ext <<_ACEOF
11181 #line $LINENO "configure"
11182 /* confdefs.h.  */
11183 _ACEOF
11184 cat confdefs.h >>conftest.$ac_ext
11185 cat >>conftest.$ac_ext <<_ACEOF
11186 /* end confdefs.h.  */
11187 /* System header to define __stub macros and hopefully few prototypes,
11188     which can conflict with char $ac_func (); below.
11189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11190     <limits.h> exists even on freestanding compilers.  */
11191 #ifdef __STDC__
11192 # include <limits.h>
11193 #else
11194 # include <assert.h>
11195 #endif
11196 /* Override any gcc2 internal prototype to avoid an error.  */
11197 #ifdef __cplusplus
11198 extern "C"
11199 {
11200 #endif
11201 /* We use char because int might match the return type of a gcc2
11202    builtin and then its argument prototype would still apply.  */
11203 char $ac_func ();
11204 /* The GNU C library defines this for functions which it implements
11205     to always fail with ENOSYS.  Some functions are actually named
11206     something starting with __ and the normal name is an alias.  */
11207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11208 choke me
11209 #else
11210 char (*f) () = $ac_func;
11211 #endif
11212 #ifdef __cplusplus
11213 }
11214 #endif
11215
11216 int
11217 main ()
11218 {
11219 return f != $ac_func;
11220   ;
11221   return 0;
11222 }
11223 _ACEOF
11224 rm -f conftest.$ac_objext conftest$ac_exeext
11225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11226   (eval $ac_link) 2>&5
11227   ac_status=$?
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); } &&
11230          { ac_try='test -s conftest$ac_exeext'
11231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232   (eval $ac_try) 2>&5
11233   ac_status=$?
11234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235   (exit $ac_status); }; }; then
11236   eval "$as_ac_var=yes"
11237 else
11238   echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11240
11241 eval "$as_ac_var=no"
11242 fi
11243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11244 fi
11245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11246 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11247 if test `eval echo '${'$as_ac_var'}'` = yes; then
11248   cat >>confdefs.h <<_ACEOF
11249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11250 _ACEOF
11251
11252 fi
11253 done
11254
11255
11256
11257
11258
11259
11260
11261
11262 for ac_header in unistd.h string.h netdb.h sys/socket.h \
11263                    netinet/in.h arpa/inet.h
11264 do
11265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11267   echo "$as_me:$LINENO: checking for $ac_header" >&5
11268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11270   echo $ECHO_N "(cached) $ECHO_C" >&6
11271 fi
11272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11274 else
11275   # Is the header compilable?
11276 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11278 cat >conftest.$ac_ext <<_ACEOF
11279 #line $LINENO "configure"
11280 /* confdefs.h.  */
11281 _ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h.  */
11285 $ac_includes_default
11286 #include <$ac_header>
11287 _ACEOF
11288 rm -f conftest.$ac_objext
11289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11290   (eval $ac_compile) 2>&5
11291   ac_status=$?
11292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293   (exit $ac_status); } &&
11294          { ac_try='test -s conftest.$ac_objext'
11295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296   (eval $ac_try) 2>&5
11297   ac_status=$?
11298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299   (exit $ac_status); }; }; then
11300   ac_header_compiler=yes
11301 else
11302   echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.$ac_ext >&5
11304
11305 ac_header_compiler=no
11306 fi
11307 rm -f conftest.$ac_objext conftest.$ac_ext
11308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11309 echo "${ECHO_T}$ac_header_compiler" >&6
11310
11311 # Is the header present?
11312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11314 cat >conftest.$ac_ext <<_ACEOF
11315 #line $LINENO "configure"
11316 /* confdefs.h.  */
11317 _ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h.  */
11321 #include <$ac_header>
11322 _ACEOF
11323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11324   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11325   ac_status=$?
11326   grep -v '^ *+' conftest.er1 >conftest.err
11327   rm -f conftest.er1
11328   cat conftest.err >&5
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); } >/dev/null; then
11331   if test -s conftest.err; then
11332     ac_cpp_err=$ac_c_preproc_warn_flag
11333   else
11334     ac_cpp_err=
11335   fi
11336 else
11337   ac_cpp_err=yes
11338 fi
11339 if test -z "$ac_cpp_err"; then
11340   ac_header_preproc=yes
11341 else
11342   echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11344
11345   ac_header_preproc=no
11346 fi
11347 rm -f conftest.err conftest.$ac_ext
11348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11349 echo "${ECHO_T}$ac_header_preproc" >&6
11350
11351 # So?  What about this header?
11352 case $ac_header_compiler:$ac_header_preproc in
11353   yes:no )
11354     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11356     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11358     (
11359       cat <<\_ASBOX
11360 ## ------------------------------------ ##
11361 ## Report this to bug-autoconf@gnu.org. ##
11362 ## ------------------------------------ ##
11363 _ASBOX
11364     ) |
11365       sed "s/^/$as_me: WARNING:     /" >&2
11366     ;;
11367   no:yes )
11368     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11370     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11372     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11374     (
11375       cat <<\_ASBOX
11376 ## ------------------------------------ ##
11377 ## Report this to bug-autoconf@gnu.org. ##
11378 ## ------------------------------------ ##
11379 _ASBOX
11380     ) |
11381       sed "s/^/$as_me: WARNING:     /" >&2
11382     ;;
11383 esac
11384 echo "$as_me:$LINENO: checking for $ac_header" >&5
11385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11387   echo $ECHO_N "(cached) $ECHO_C" >&6
11388 else
11389   eval "$as_ac_Header=$ac_header_preproc"
11390 fi
11391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11393
11394 fi
11395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11396   cat >>confdefs.h <<_ACEOF
11397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11398 _ACEOF
11399
11400 fi
11401
11402 done
11403
11404
11405
11406
11407
11408 for ac_header in string.h
11409 do
11410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11412   echo "$as_me:$LINENO: checking for $ac_header" >&5
11413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11415   echo $ECHO_N "(cached) $ECHO_C" >&6
11416 fi
11417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11419 else
11420   # Is the header compilable?
11421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11423 cat >conftest.$ac_ext <<_ACEOF
11424 #line $LINENO "configure"
11425 /* confdefs.h.  */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h.  */
11430 $ac_includes_default
11431 #include <$ac_header>
11432 _ACEOF
11433 rm -f conftest.$ac_objext
11434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11435   (eval $ac_compile) 2>&5
11436   ac_status=$?
11437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438   (exit $ac_status); } &&
11439          { ac_try='test -s conftest.$ac_objext'
11440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441   (eval $ac_try) 2>&5
11442   ac_status=$?
11443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444   (exit $ac_status); }; }; then
11445   ac_header_compiler=yes
11446 else
11447   echo "$as_me: failed program was:" >&5
11448 sed 's/^/| /' conftest.$ac_ext >&5
11449
11450 ac_header_compiler=no
11451 fi
11452 rm -f conftest.$ac_objext conftest.$ac_ext
11453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11454 echo "${ECHO_T}$ac_header_compiler" >&6
11455
11456 # Is the header present?
11457 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11459 cat >conftest.$ac_ext <<_ACEOF
11460 #line $LINENO "configure"
11461 /* confdefs.h.  */
11462 _ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h.  */
11466 #include <$ac_header>
11467 _ACEOF
11468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11469   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11470   ac_status=$?
11471   grep -v '^ *+' conftest.er1 >conftest.err
11472   rm -f conftest.er1
11473   cat conftest.err >&5
11474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475   (exit $ac_status); } >/dev/null; then
11476   if test -s conftest.err; then
11477     ac_cpp_err=$ac_c_preproc_warn_flag
11478   else
11479     ac_cpp_err=
11480   fi
11481 else
11482   ac_cpp_err=yes
11483 fi
11484 if test -z "$ac_cpp_err"; then
11485   ac_header_preproc=yes
11486 else
11487   echo "$as_me: failed program was:" >&5
11488 sed 's/^/| /' conftest.$ac_ext >&5
11489
11490   ac_header_preproc=no
11491 fi
11492 rm -f conftest.err conftest.$ac_ext
11493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11494 echo "${ECHO_T}$ac_header_preproc" >&6
11495
11496 # So?  What about this header?
11497 case $ac_header_compiler:$ac_header_preproc in
11498   yes:no )
11499     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11501     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11503     (
11504       cat <<\_ASBOX
11505 ## ------------------------------------ ##
11506 ## Report this to bug-autoconf@gnu.org. ##
11507 ## ------------------------------------ ##
11508 _ASBOX
11509     ) |
11510       sed "s/^/$as_me: WARNING:     /" >&2
11511     ;;
11512   no:yes )
11513     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11515     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11517     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11519     (
11520       cat <<\_ASBOX
11521 ## ------------------------------------ ##
11522 ## Report this to bug-autoconf@gnu.org. ##
11523 ## ------------------------------------ ##
11524 _ASBOX
11525     ) |
11526       sed "s/^/$as_me: WARNING:     /" >&2
11527     ;;
11528 esac
11529 echo "$as_me:$LINENO: checking for $ac_header" >&5
11530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11532   echo $ECHO_N "(cached) $ECHO_C" >&6
11533 else
11534   eval "$as_ac_Header=$ac_header_preproc"
11535 fi
11536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11538
11539 fi
11540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11541   cat >>confdefs.h <<_ACEOF
11542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11543 _ACEOF
11544
11545 fi
11546
11547 done
11548
11549
11550
11551
11552
11553
11554 for ac_func in strerror vprintf doprnt
11555 do
11556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11557 echo "$as_me:$LINENO: checking for $ac_func" >&5
11558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11559 if eval "test \"\${$as_ac_var+set}\" = set"; then
11560   echo $ECHO_N "(cached) $ECHO_C" >&6
11561 else
11562   cat >conftest.$ac_ext <<_ACEOF
11563 #line $LINENO "configure"
11564 /* confdefs.h.  */
11565 _ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h.  */
11569 /* System header to define __stub macros and hopefully few prototypes,
11570     which can conflict with char $ac_func (); below.
11571     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11572     <limits.h> exists even on freestanding compilers.  */
11573 #ifdef __STDC__
11574 # include <limits.h>
11575 #else
11576 # include <assert.h>
11577 #endif
11578 /* Override any gcc2 internal prototype to avoid an error.  */
11579 #ifdef __cplusplus
11580 extern "C"
11581 {
11582 #endif
11583 /* We use char because int might match the return type of a gcc2
11584    builtin and then its argument prototype would still apply.  */
11585 char $ac_func ();
11586 /* The GNU C library defines this for functions which it implements
11587     to always fail with ENOSYS.  Some functions are actually named
11588     something starting with __ and the normal name is an alias.  */
11589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11590 choke me
11591 #else
11592 char (*f) () = $ac_func;
11593 #endif
11594 #ifdef __cplusplus
11595 }
11596 #endif
11597
11598 int
11599 main ()
11600 {
11601 return f != $ac_func;
11602   ;
11603   return 0;
11604 }
11605 _ACEOF
11606 rm -f conftest.$ac_objext conftest$ac_exeext
11607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11608   (eval $ac_link) 2>&5
11609   ac_status=$?
11610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611   (exit $ac_status); } &&
11612          { ac_try='test -s conftest$ac_exeext'
11613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614   (eval $ac_try) 2>&5
11615   ac_status=$?
11616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617   (exit $ac_status); }; }; then
11618   eval "$as_ac_var=yes"
11619 else
11620   echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11622
11623 eval "$as_ac_var=no"
11624 fi
11625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11626 fi
11627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11629 if test `eval echo '${'$as_ac_var'}'` = yes; then
11630   cat >>confdefs.h <<_ACEOF
11631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11632 _ACEOF
11633
11634 fi
11635 done
11636
11637   echo "$as_me:$LINENO: checking whether strerror is declared" >&5
11638 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
11639 if test "${ac_cv_have_decl_strerror+set}" = set; then
11640   echo $ECHO_N "(cached) $ECHO_C" >&6
11641 else
11642   cat >conftest.$ac_ext <<_ACEOF
11643 #line $LINENO "configure"
11644 /* confdefs.h.  */
11645 _ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h.  */
11649 $ac_includes_default
11650 int
11651 main ()
11652 {
11653 #ifndef strerror
11654   char *p = (char *) strerror;
11655 #endif
11656
11657   ;
11658   return 0;
11659 }
11660 _ACEOF
11661 rm -f conftest.$ac_objext
11662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11663   (eval $ac_compile) 2>&5
11664   ac_status=$?
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); } &&
11667          { ac_try='test -s conftest.$ac_objext'
11668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669   (eval $ac_try) 2>&5
11670   ac_status=$?
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); }; }; then
11673   ac_cv_have_decl_strerror=yes
11674 else
11675   echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11677
11678 ac_cv_have_decl_strerror=no
11679 fi
11680 rm -f conftest.$ac_objext conftest.$ac_ext
11681 fi
11682 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
11683 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
11684 if test $ac_cv_have_decl_strerror = yes; then
11685
11686 cat >>confdefs.h <<_ACEOF
11687 #define HAVE_DECL_STRERROR 1
11688 _ACEOF
11689
11690
11691 else
11692   cat >>confdefs.h <<_ACEOF
11693 #define HAVE_DECL_STRERROR 0
11694 _ACEOF
11695
11696
11697 fi
11698
11699
11700
11701 for ac_header in libintl.h
11702 do
11703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11705   echo "$as_me:$LINENO: checking for $ac_header" >&5
11706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11708   echo $ECHO_N "(cached) $ECHO_C" >&6
11709 fi
11710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11712 else
11713   # Is the header compilable?
11714 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11716 cat >conftest.$ac_ext <<_ACEOF
11717 #line $LINENO "configure"
11718 /* confdefs.h.  */
11719 _ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h.  */
11723 $ac_includes_default
11724 #include <$ac_header>
11725 _ACEOF
11726 rm -f conftest.$ac_objext
11727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11728   (eval $ac_compile) 2>&5
11729   ac_status=$?
11730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731   (exit $ac_status); } &&
11732          { ac_try='test -s conftest.$ac_objext'
11733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734   (eval $ac_try) 2>&5
11735   ac_status=$?
11736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737   (exit $ac_status); }; }; then
11738   ac_header_compiler=yes
11739 else
11740   echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11742
11743 ac_header_compiler=no
11744 fi
11745 rm -f conftest.$ac_objext conftest.$ac_ext
11746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11747 echo "${ECHO_T}$ac_header_compiler" >&6
11748
11749 # Is the header present?
11750 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11752 cat >conftest.$ac_ext <<_ACEOF
11753 #line $LINENO "configure"
11754 /* confdefs.h.  */
11755 _ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h.  */
11759 #include <$ac_header>
11760 _ACEOF
11761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11762   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11763   ac_status=$?
11764   grep -v '^ *+' conftest.er1 >conftest.err
11765   rm -f conftest.er1
11766   cat conftest.err >&5
11767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768   (exit $ac_status); } >/dev/null; then
11769   if test -s conftest.err; then
11770     ac_cpp_err=$ac_c_preproc_warn_flag
11771   else
11772     ac_cpp_err=
11773   fi
11774 else
11775   ac_cpp_err=yes
11776 fi
11777 if test -z "$ac_cpp_err"; then
11778   ac_header_preproc=yes
11779 else
11780   echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11782
11783   ac_header_preproc=no
11784 fi
11785 rm -f conftest.err conftest.$ac_ext
11786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11787 echo "${ECHO_T}$ac_header_preproc" >&6
11788
11789 # So?  What about this header?
11790 case $ac_header_compiler:$ac_header_preproc in
11791   yes:no )
11792     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11794     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11796     (
11797       cat <<\_ASBOX
11798 ## ------------------------------------ ##
11799 ## Report this to bug-autoconf@gnu.org. ##
11800 ## ------------------------------------ ##
11801 _ASBOX
11802     ) |
11803       sed "s/^/$as_me: WARNING:     /" >&2
11804     ;;
11805   no:yes )
11806     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11808     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11812     (
11813       cat <<\_ASBOX
11814 ## ------------------------------------ ##
11815 ## Report this to bug-autoconf@gnu.org. ##
11816 ## ------------------------------------ ##
11817 _ASBOX
11818     ) |
11819       sed "s/^/$as_me: WARNING:     /" >&2
11820     ;;
11821 esac
11822 echo "$as_me:$LINENO: checking for $ac_header" >&5
11823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11825   echo $ECHO_N "(cached) $ECHO_C" >&6
11826 else
11827   eval "$as_ac_Header=$ac_header_preproc"
11828 fi
11829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11831
11832 fi
11833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11834   cat >>confdefs.h <<_ACEOF
11835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11836 _ACEOF
11837
11838 fi
11839
11840 done
11841
11842   echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
11843 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
11844 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
11845   echo $ECHO_N "(cached) $ECHO_C" >&6
11846 else
11847   cat >conftest.$ac_ext <<_ACEOF
11848 #line $LINENO "configure"
11849 /* confdefs.h.  */
11850 _ACEOF
11851 cat confdefs.h >>conftest.$ac_ext
11852 cat >>conftest.$ac_ext <<_ACEOF
11853 /* end confdefs.h.  */
11854 $ac_includes_default
11855 int
11856 main ()
11857 {
11858 #ifndef strerror_r
11859   char *p = (char *) strerror_r;
11860 #endif
11861
11862   ;
11863   return 0;
11864 }
11865 _ACEOF
11866 rm -f conftest.$ac_objext
11867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11868   (eval $ac_compile) 2>&5
11869   ac_status=$?
11870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871   (exit $ac_status); } &&
11872          { ac_try='test -s conftest.$ac_objext'
11873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874   (eval $ac_try) 2>&5
11875   ac_status=$?
11876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877   (exit $ac_status); }; }; then
11878   ac_cv_have_decl_strerror_r=yes
11879 else
11880   echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11882
11883 ac_cv_have_decl_strerror_r=no
11884 fi
11885 rm -f conftest.$ac_objext conftest.$ac_ext
11886 fi
11887 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
11888 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
11889 if test $ac_cv_have_decl_strerror_r = yes; then
11890
11891 cat >>confdefs.h <<_ACEOF
11892 #define HAVE_DECL_STRERROR_R 1
11893 _ACEOF
11894
11895
11896 else
11897   cat >>confdefs.h <<_ACEOF
11898 #define HAVE_DECL_STRERROR_R 0
11899 _ACEOF
11900
11901
11902 fi
11903
11904
11905
11906 for ac_func in strerror_r
11907 do
11908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11909 echo "$as_me:$LINENO: checking for $ac_func" >&5
11910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11911 if eval "test \"\${$as_ac_var+set}\" = set"; then
11912   echo $ECHO_N "(cached) $ECHO_C" >&6
11913 else
11914   cat >conftest.$ac_ext <<_ACEOF
11915 #line $LINENO "configure"
11916 /* confdefs.h.  */
11917 _ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h.  */
11921 /* System header to define __stub macros and hopefully few prototypes,
11922     which can conflict with char $ac_func (); below.
11923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11924     <limits.h> exists even on freestanding compilers.  */
11925 #ifdef __STDC__
11926 # include <limits.h>
11927 #else
11928 # include <assert.h>
11929 #endif
11930 /* Override any gcc2 internal prototype to avoid an error.  */
11931 #ifdef __cplusplus
11932 extern "C"
11933 {
11934 #endif
11935 /* We use char because int might match the return type of a gcc2
11936    builtin and then its argument prototype would still apply.  */
11937 char $ac_func ();
11938 /* The GNU C library defines this for functions which it implements
11939     to always fail with ENOSYS.  Some functions are actually named
11940     something starting with __ and the normal name is an alias.  */
11941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11942 choke me
11943 #else
11944 char (*f) () = $ac_func;
11945 #endif
11946 #ifdef __cplusplus
11947 }
11948 #endif
11949
11950 int
11951 main ()
11952 {
11953 return f != $ac_func;
11954   ;
11955   return 0;
11956 }
11957 _ACEOF
11958 rm -f conftest.$ac_objext conftest$ac_exeext
11959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11960   (eval $ac_link) 2>&5
11961   ac_status=$?
11962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963   (exit $ac_status); } &&
11964          { ac_try='test -s conftest$ac_exeext'
11965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966   (eval $ac_try) 2>&5
11967   ac_status=$?
11968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969   (exit $ac_status); }; }; then
11970   eval "$as_ac_var=yes"
11971 else
11972   echo "$as_me: failed program was:" >&5
11973 sed 's/^/| /' conftest.$ac_ext >&5
11974
11975 eval "$as_ac_var=no"
11976 fi
11977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11978 fi
11979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11981 if test `eval echo '${'$as_ac_var'}'` = yes; then
11982   cat >>confdefs.h <<_ACEOF
11983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11984 _ACEOF
11985
11986 fi
11987 done
11988
11989 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
11990 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
11991 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
11992   echo $ECHO_N "(cached) $ECHO_C" >&6
11993 else
11994
11995     ac_cv_func_strerror_r_char_p=no
11996     if test $ac_cv_have_decl_strerror_r = yes; then
11997       cat >conftest.$ac_ext <<_ACEOF
11998 #line $LINENO "configure"
11999 /* confdefs.h.  */
12000 _ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h.  */
12004 $ac_includes_default
12005 int
12006 main ()
12007 {
12008
12009           char buf[100];
12010           char x = *strerror_r (0, buf, sizeof buf);
12011           char *p = strerror_r (0, buf, sizeof buf);
12012
12013   ;
12014   return 0;
12015 }
12016 _ACEOF
12017 rm -f conftest.$ac_objext
12018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12019   (eval $ac_compile) 2>&5
12020   ac_status=$?
12021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022   (exit $ac_status); } &&
12023          { ac_try='test -s conftest.$ac_objext'
12024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025   (eval $ac_try) 2>&5
12026   ac_status=$?
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); }; }; then
12029   ac_cv_func_strerror_r_char_p=yes
12030 else
12031   echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12033
12034 fi
12035 rm -f conftest.$ac_objext conftest.$ac_ext
12036     else
12037       # strerror_r is not declared.  Choose between
12038       # systems that have relatively inaccessible declarations for the
12039       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
12040       # former has a strerror_r that returns char*, while the latter
12041       # has a strerror_r that returns `int'.
12042       # This test should segfault on the DEC system.
12043       if test "$cross_compiling" = yes; then
12044   :
12045 else
12046   cat >conftest.$ac_ext <<_ACEOF
12047 #line $LINENO "configure"
12048 /* confdefs.h.  */
12049 _ACEOF
12050 cat confdefs.h >>conftest.$ac_ext
12051 cat >>conftest.$ac_ext <<_ACEOF
12052 /* end confdefs.h.  */
12053 $ac_includes_default
12054         extern char *strerror_r ();
12055 int
12056 main ()
12057 {
12058 char buf[100];
12059           char x = *strerror_r (0, buf, sizeof buf);
12060           exit (!isalpha (x));
12061   ;
12062   return 0;
12063 }
12064 _ACEOF
12065 rm -f conftest$ac_exeext
12066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12067   (eval $ac_link) 2>&5
12068   ac_status=$?
12069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072   (eval $ac_try) 2>&5
12073   ac_status=$?
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); }; }; then
12076   ac_cv_func_strerror_r_char_p=yes
12077 else
12078   echo "$as_me: program exited with status $ac_status" >&5
12079 echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12081
12082 fi
12083 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12084 fi
12085     fi
12086
12087 fi
12088 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
12089 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
12090 if test $ac_cv_func_strerror_r_char_p = yes; then
12091
12092 cat >>confdefs.h <<\_ACEOF
12093 #define STRERROR_R_CHAR_P 1
12094 _ACEOF
12095
12096 fi
12097
12098   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12099 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12100 if test "${ac_cv_header_stdc+set}" = set; then
12101   echo $ECHO_N "(cached) $ECHO_C" >&6
12102 else
12103   cat >conftest.$ac_ext <<_ACEOF
12104 #line $LINENO "configure"
12105 /* confdefs.h.  */
12106 _ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h.  */
12110 #include <stdlib.h>
12111 #include <stdarg.h>
12112 #include <string.h>
12113 #include <float.h>
12114
12115 int
12116 main ()
12117 {
12118
12119   ;
12120   return 0;
12121 }
12122 _ACEOF
12123 rm -f conftest.$ac_objext
12124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12125   (eval $ac_compile) 2>&5
12126   ac_status=$?
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); } &&
12129          { ac_try='test -s conftest.$ac_objext'
12130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131   (eval $ac_try) 2>&5
12132   ac_status=$?
12133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); }; }; then
12135   ac_cv_header_stdc=yes
12136 else
12137   echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12139
12140 ac_cv_header_stdc=no
12141 fi
12142 rm -f conftest.$ac_objext conftest.$ac_ext
12143
12144 if test $ac_cv_header_stdc = yes; then
12145   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12146   cat >conftest.$ac_ext <<_ACEOF
12147 #line $LINENO "configure"
12148 /* confdefs.h.  */
12149 _ACEOF
12150 cat confdefs.h >>conftest.$ac_ext
12151 cat >>conftest.$ac_ext <<_ACEOF
12152 /* end confdefs.h.  */
12153 #include <string.h>
12154
12155 _ACEOF
12156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12157   $EGREP "memchr" >/dev/null 2>&1; then
12158   :
12159 else
12160   ac_cv_header_stdc=no
12161 fi
12162 rm -f conftest*
12163
12164 fi
12165
12166 if test $ac_cv_header_stdc = yes; then
12167   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12168   cat >conftest.$ac_ext <<_ACEOF
12169 #line $LINENO "configure"
12170 /* confdefs.h.  */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h.  */
12175 #include <stdlib.h>
12176
12177 _ACEOF
12178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12179   $EGREP "free" >/dev/null 2>&1; then
12180   :
12181 else
12182   ac_cv_header_stdc=no
12183 fi
12184 rm -f conftest*
12185
12186 fi
12187
12188 if test $ac_cv_header_stdc = yes; then
12189   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12190   if test "$cross_compiling" = yes; then
12191   :
12192 else
12193   cat >conftest.$ac_ext <<_ACEOF
12194 #line $LINENO "configure"
12195 /* confdefs.h.  */
12196 _ACEOF
12197 cat confdefs.h >>conftest.$ac_ext
12198 cat >>conftest.$ac_ext <<_ACEOF
12199 /* end confdefs.h.  */
12200 #include <ctype.h>
12201 #if ((' ' & 0x0FF) == 0x020)
12202 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12203 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12204 #else
12205 # define ISLOWER(c) \
12206                    (('a' <= (c) && (c) <= 'i') \
12207                      || ('j' <= (c) && (c) <= 'r') \
12208                      || ('s' <= (c) && (c) <= 'z'))
12209 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12210 #endif
12211
12212 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12213 int
12214 main ()
12215 {
12216   int i;
12217   for (i = 0; i < 256; i++)
12218     if (XOR (islower (i), ISLOWER (i))
12219         || toupper (i) != TOUPPER (i))
12220       exit(2);
12221   exit (0);
12222 }
12223 _ACEOF
12224 rm -f conftest$ac_exeext
12225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12226   (eval $ac_link) 2>&5
12227   ac_status=$?
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231   (eval $ac_try) 2>&5
12232   ac_status=$?
12233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234   (exit $ac_status); }; }; then
12235   :
12236 else
12237   echo "$as_me: program exited with status $ac_status" >&5
12238 echo "$as_me: failed program was:" >&5
12239 sed 's/^/| /' conftest.$ac_ext >&5
12240
12241 ( exit $ac_status )
12242 ac_cv_header_stdc=no
12243 fi
12244 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12245 fi
12246 fi
12247 fi
12248 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12249 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12250 if test $ac_cv_header_stdc = yes; then
12251
12252 cat >>confdefs.h <<\_ACEOF
12253 #define STDC_HEADERS 1
12254 _ACEOF
12255
12256 fi
12257
12258
12259 echo "$as_me:$LINENO: checking for mbstate_t" >&5
12260 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
12261 if test "${ac_cv_type_mbstate_t+set}" = set; then
12262   echo $ECHO_N "(cached) $ECHO_C" >&6
12263 else
12264   cat >conftest.$ac_ext <<_ACEOF
12265 #line $LINENO "configure"
12266 /* confdefs.h.  */
12267 _ACEOF
12268 cat confdefs.h >>conftest.$ac_ext
12269 cat >>conftest.$ac_ext <<_ACEOF
12270 /* end confdefs.h.  */
12271 $ac_includes_default
12272 #           include <wchar.h>
12273 int
12274 main ()
12275 {
12276 mbstate_t x; return sizeof x;
12277   ;
12278   return 0;
12279 }
12280 _ACEOF
12281 rm -f conftest.$ac_objext
12282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12283   (eval $ac_compile) 2>&5
12284   ac_status=$?
12285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286   (exit $ac_status); } &&
12287          { ac_try='test -s conftest.$ac_objext'
12288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289   (eval $ac_try) 2>&5
12290   ac_status=$?
12291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292   (exit $ac_status); }; }; then
12293   ac_cv_type_mbstate_t=yes
12294 else
12295   echo "$as_me: failed program was:" >&5
12296 sed 's/^/| /' conftest.$ac_ext >&5
12297
12298 ac_cv_type_mbstate_t=no
12299 fi
12300 rm -f conftest.$ac_objext conftest.$ac_ext
12301 fi
12302 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
12303 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
12304    if test $ac_cv_type_mbstate_t = yes; then
12305
12306 cat >>confdefs.h <<\_ACEOF
12307 #define HAVE_MBSTATE_T 1
12308 _ACEOF
12309
12310    else
12311
12312 cat >>confdefs.h <<\_ACEOF
12313 #define mbstate_t int
12314 _ACEOF
12315
12316    fi
12317
12318 echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
12319 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6
12320 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
12321   echo $ECHO_N "(cached) $ECHO_C" >&6
12322 else
12323   # Some versions of Solaris, SCO, and the GNU C Library
12324    # have a broken or incompatible fnmatch.
12325    # So we run a test program.  If we are cross-compiling, take no chance.
12326    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
12327    if test "$cross_compiling" = yes; then
12328   ac_cv_func_fnmatch_gnu=cross
12329 else
12330   cat >conftest.$ac_ext <<_ACEOF
12331 #line $LINENO "configure"
12332 /* confdefs.h.  */
12333 _ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h.  */
12337 #include <fnmatch.h>
12338 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
12339 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
12340
12341 int
12342 main ()
12343 {
12344 exit
12345            (!(y ("a*", "abc", 0)
12346               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
12347               && y ("a\\\\bc", "abc", 0)
12348               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
12349               && y ("*x", ".x", 0)
12350               && n ("*x", ".x", FNM_PERIOD)
12351               && y ("xxXX", "xXxX", FNM_CASEFOLD)
12352                     && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
12353                     && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
12354                     && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
12355                     && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
12356                     && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)));
12357   ;
12358   return 0;
12359 }
12360 _ACEOF
12361 rm -f conftest$ac_exeext
12362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12363   (eval $ac_link) 2>&5
12364   ac_status=$?
12365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368   (eval $ac_try) 2>&5
12369   ac_status=$?
12370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371   (exit $ac_status); }; }; then
12372   ac_cv_func_fnmatch_gnu=yes
12373 else
12374   echo "$as_me: program exited with status $ac_status" >&5
12375 echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12377
12378 ( exit $ac_status )
12379 ac_cv_func_fnmatch_gnu=no
12380 fi
12381 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12382 fi
12383 fi
12384 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
12385 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6
12386 if test $ac_cv_func_fnmatch_gnu = yes; then
12387   rm -f $ac_config_libobj_dir/fnmatch.h
12388 else
12389   echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12390 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12391 if test "${ac_cv_have_decl_getenv+set}" = set; then
12392   echo $ECHO_N "(cached) $ECHO_C" >&6
12393 else
12394   cat >conftest.$ac_ext <<_ACEOF
12395 #line $LINENO "configure"
12396 /* confdefs.h.  */
12397 _ACEOF
12398 cat confdefs.h >>conftest.$ac_ext
12399 cat >>conftest.$ac_ext <<_ACEOF
12400 /* end confdefs.h.  */
12401 $ac_includes_default
12402 int
12403 main ()
12404 {
12405 #ifndef getenv
12406   char *p = (char *) getenv;
12407 #endif
12408
12409   ;
12410   return 0;
12411 }
12412 _ACEOF
12413 rm -f conftest.$ac_objext
12414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12415   (eval $ac_compile) 2>&5
12416   ac_status=$?
12417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418   (exit $ac_status); } &&
12419          { ac_try='test -s conftest.$ac_objext'
12420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421   (eval $ac_try) 2>&5
12422   ac_status=$?
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); }; }; then
12425   ac_cv_have_decl_getenv=yes
12426 else
12427   echo "$as_me: failed program was:" >&5
12428 sed 's/^/| /' conftest.$ac_ext >&5
12429
12430 ac_cv_have_decl_getenv=no
12431 fi
12432 rm -f conftest.$ac_objext conftest.$ac_ext
12433 fi
12434 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12435 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12436 if test $ac_cv_have_decl_getenv = yes; then
12437
12438 cat >>confdefs.h <<_ACEOF
12439 #define HAVE_DECL_GETENV 1
12440 _ACEOF
12441
12442
12443 else
12444   cat >>confdefs.h <<_ACEOF
12445 #define HAVE_DECL_GETENV 0
12446 _ACEOF
12447
12448
12449 fi
12450
12451
12452
12453
12454
12455
12456 for ac_func in btowc mbsrtowcs mempcpy wmempcpy
12457 do
12458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12459 echo "$as_me:$LINENO: checking for $ac_func" >&5
12460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12461 if eval "test \"\${$as_ac_var+set}\" = set"; then
12462   echo $ECHO_N "(cached) $ECHO_C" >&6
12463 else
12464   cat >conftest.$ac_ext <<_ACEOF
12465 #line $LINENO "configure"
12466 /* confdefs.h.  */
12467 _ACEOF
12468 cat confdefs.h >>conftest.$ac_ext
12469 cat >>conftest.$ac_ext <<_ACEOF
12470 /* end confdefs.h.  */
12471 /* System header to define __stub macros and hopefully few prototypes,
12472     which can conflict with char $ac_func (); below.
12473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12474     <limits.h> exists even on freestanding compilers.  */
12475 #ifdef __STDC__
12476 # include <limits.h>
12477 #else
12478 # include <assert.h>
12479 #endif
12480 /* Override any gcc2 internal prototype to avoid an error.  */
12481 #ifdef __cplusplus
12482 extern "C"
12483 {
12484 #endif
12485 /* We use char because int might match the return type of a gcc2
12486    builtin and then its argument prototype would still apply.  */
12487 char $ac_func ();
12488 /* The GNU C library defines this for functions which it implements
12489     to always fail with ENOSYS.  Some functions are actually named
12490     something starting with __ and the normal name is an alias.  */
12491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12492 choke me
12493 #else
12494 char (*f) () = $ac_func;
12495 #endif
12496 #ifdef __cplusplus
12497 }
12498 #endif
12499
12500 int
12501 main ()
12502 {
12503 return f != $ac_func;
12504   ;
12505   return 0;
12506 }
12507 _ACEOF
12508 rm -f conftest.$ac_objext conftest$ac_exeext
12509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12510   (eval $ac_link) 2>&5
12511   ac_status=$?
12512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513   (exit $ac_status); } &&
12514          { ac_try='test -s conftest$ac_exeext'
12515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516   (eval $ac_try) 2>&5
12517   ac_status=$?
12518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519   (exit $ac_status); }; }; then
12520   eval "$as_ac_var=yes"
12521 else
12522   echo "$as_me: failed program was:" >&5
12523 sed 's/^/| /' conftest.$ac_ext >&5
12524
12525 eval "$as_ac_var=no"
12526 fi
12527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12528 fi
12529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12531 if test `eval echo '${'$as_ac_var'}'` = yes; then
12532   cat >>confdefs.h <<_ACEOF
12533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12534 _ACEOF
12535
12536 fi
12537 done
12538
12539
12540
12541 for ac_header in wchar.h wctype.h
12542 do
12543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12545   echo "$as_me:$LINENO: checking for $ac_header" >&5
12546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12548   echo $ECHO_N "(cached) $ECHO_C" >&6
12549 fi
12550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12552 else
12553   # Is the header compilable?
12554 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12555 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12556 cat >conftest.$ac_ext <<_ACEOF
12557 #line $LINENO "configure"
12558 /* confdefs.h.  */
12559 _ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h.  */
12563 $ac_includes_default
12564 #include <$ac_header>
12565 _ACEOF
12566 rm -f conftest.$ac_objext
12567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12568   (eval $ac_compile) 2>&5
12569   ac_status=$?
12570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571   (exit $ac_status); } &&
12572          { ac_try='test -s conftest.$ac_objext'
12573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574   (eval $ac_try) 2>&5
12575   ac_status=$?
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); }; }; then
12578   ac_header_compiler=yes
12579 else
12580   echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12582
12583 ac_header_compiler=no
12584 fi
12585 rm -f conftest.$ac_objext conftest.$ac_ext
12586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12587 echo "${ECHO_T}$ac_header_compiler" >&6
12588
12589 # Is the header present?
12590 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12592 cat >conftest.$ac_ext <<_ACEOF
12593 #line $LINENO "configure"
12594 /* confdefs.h.  */
12595 _ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h.  */
12599 #include <$ac_header>
12600 _ACEOF
12601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12602   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12603   ac_status=$?
12604   grep -v '^ *+' conftest.er1 >conftest.err
12605   rm -f conftest.er1
12606   cat conftest.err >&5
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); } >/dev/null; then
12609   if test -s conftest.err; then
12610     ac_cpp_err=$ac_c_preproc_warn_flag
12611   else
12612     ac_cpp_err=
12613   fi
12614 else
12615   ac_cpp_err=yes
12616 fi
12617 if test -z "$ac_cpp_err"; then
12618   ac_header_preproc=yes
12619 else
12620   echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.$ac_ext >&5
12622
12623   ac_header_preproc=no
12624 fi
12625 rm -f conftest.err conftest.$ac_ext
12626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12627 echo "${ECHO_T}$ac_header_preproc" >&6
12628
12629 # So?  What about this header?
12630 case $ac_header_compiler:$ac_header_preproc in
12631   yes:no )
12632     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12634     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12636     (
12637       cat <<\_ASBOX
12638 ## ------------------------------------ ##
12639 ## Report this to bug-autoconf@gnu.org. ##
12640 ## ------------------------------------ ##
12641 _ASBOX
12642     ) |
12643       sed "s/^/$as_me: WARNING:     /" >&2
12644     ;;
12645   no:yes )
12646     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12648     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12650     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12652     (
12653       cat <<\_ASBOX
12654 ## ------------------------------------ ##
12655 ## Report this to bug-autoconf@gnu.org. ##
12656 ## ------------------------------------ ##
12657 _ASBOX
12658     ) |
12659       sed "s/^/$as_me: WARNING:     /" >&2
12660     ;;
12661 esac
12662 echo "$as_me:$LINENO: checking for $ac_header" >&5
12663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12665   echo $ECHO_N "(cached) $ECHO_C" >&6
12666 else
12667   eval "$as_ac_Header=$ac_header_preproc"
12668 fi
12669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12671
12672 fi
12673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12674   cat >>confdefs.h <<_ACEOF
12675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12676 _ACEOF
12677
12678 fi
12679
12680 done
12681
12682 LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
12683           ac_config_links="$ac_config_links $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h"
12684
12685
12686 cat >>confdefs.h <<\_ACEOF
12687 #define fnmatch rpl_fnmatch
12688 _ACEOF
12689
12690
12691 fi
12692
12693
12694
12695 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
12696 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
12697 if test "${ac_cv_header_stdbool_h+set}" = set; then
12698   echo $ECHO_N "(cached) $ECHO_C" >&6
12699 else
12700   cat >conftest.$ac_ext <<_ACEOF
12701 #line $LINENO "configure"
12702 /* confdefs.h.  */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h.  */
12707
12708           #include <stdbool.h>
12709           #ifndef bool
12710            "error: bool is not defined"
12711           #endif
12712           #ifndef false
12713            "error: false is not defined"
12714           #endif
12715           #if false
12716            "error: false is not 0"
12717           #endif
12718           #ifndef true
12719            "error: false is not defined"
12720           #endif
12721           #if true != 1
12722            "error: true is not 1"
12723           #endif
12724           #ifndef __bool_true_false_are_defined
12725            "error: __bool_true_false_are_defined is not defined"
12726           #endif
12727
12728           struct s { _Bool s: 1; _Bool t; } s;
12729
12730           char a[true == 1 ? 1 : -1];
12731           char b[false == 0 ? 1 : -1];
12732           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12733           char d[(bool) -0.5 == true ? 1 : -1];
12734           bool e = &s;
12735           char f[(_Bool) -0.0 == false ? 1 : -1];
12736           char g[true];
12737           char h[sizeof (_Bool)];
12738           char i[sizeof s.t];
12739
12740 int
12741 main ()
12742 {
12743  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
12744   ;
12745   return 0;
12746 }
12747 _ACEOF
12748 rm -f conftest.$ac_objext
12749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12750   (eval $ac_compile) 2>&5
12751   ac_status=$?
12752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753   (exit $ac_status); } &&
12754          { ac_try='test -s conftest.$ac_objext'
12755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756   (eval $ac_try) 2>&5
12757   ac_status=$?
12758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759   (exit $ac_status); }; }; then
12760   ac_cv_header_stdbool_h=yes
12761 else
12762   echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.$ac_ext >&5
12764
12765 ac_cv_header_stdbool_h=no
12766 fi
12767 rm -f conftest.$ac_objext conftest.$ac_ext
12768 fi
12769 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
12770 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
12771    if test $ac_cv_header_stdbool_h = yes; then
12772
12773 cat >>confdefs.h <<\_ACEOF
12774 #define HAVE_STDBOOL_H 1
12775 _ACEOF
12776
12777    fi
12778
12779
12780
12781
12782
12783
12784 for ac_func in getpagesize
12785 do
12786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12787 echo "$as_me:$LINENO: checking for $ac_func" >&5
12788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12789 if eval "test \"\${$as_ac_var+set}\" = set"; then
12790   echo $ECHO_N "(cached) $ECHO_C" >&6
12791 else
12792   cat >conftest.$ac_ext <<_ACEOF
12793 #line $LINENO "configure"
12794 /* confdefs.h.  */
12795 _ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h.  */
12799 /* System header to define __stub macros and hopefully few prototypes,
12800     which can conflict with char $ac_func (); below.
12801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12802     <limits.h> exists even on freestanding compilers.  */
12803 #ifdef __STDC__
12804 # include <limits.h>
12805 #else
12806 # include <assert.h>
12807 #endif
12808 /* Override any gcc2 internal prototype to avoid an error.  */
12809 #ifdef __cplusplus
12810 extern "C"
12811 {
12812 #endif
12813 /* We use char because int might match the return type of a gcc2
12814    builtin and then its argument prototype would still apply.  */
12815 char $ac_func ();
12816 /* The GNU C library defines this for functions which it implements
12817     to always fail with ENOSYS.  Some functions are actually named
12818     something starting with __ and the normal name is an alias.  */
12819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12820 choke me
12821 #else
12822 char (*f) () = $ac_func;
12823 #endif
12824 #ifdef __cplusplus
12825 }
12826 #endif
12827
12828 int
12829 main ()
12830 {
12831 return f != $ac_func;
12832   ;
12833   return 0;
12834 }
12835 _ACEOF
12836 rm -f conftest.$ac_objext conftest$ac_exeext
12837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12838   (eval $ac_link) 2>&5
12839   ac_status=$?
12840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841   (exit $ac_status); } &&
12842          { ac_try='test -s conftest$ac_exeext'
12843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844   (eval $ac_try) 2>&5
12845   ac_status=$?
12846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847   (exit $ac_status); }; }; then
12848   eval "$as_ac_var=yes"
12849 else
12850   echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12852
12853 eval "$as_ac_var=no"
12854 fi
12855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12856 fi
12857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12859 if test `eval echo '${'$as_ac_var'}'` = yes; then
12860   cat >>confdefs.h <<_ACEOF
12861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12862 _ACEOF
12863
12864 fi
12865 done
12866
12867
12868
12869 for ac_header in OS.h unistd.h
12870 do
12871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12873   echo "$as_me:$LINENO: checking for $ac_header" >&5
12874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12876   echo $ECHO_N "(cached) $ECHO_C" >&6
12877 fi
12878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12880 else
12881   # Is the header compilable?
12882 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12884 cat >conftest.$ac_ext <<_ACEOF
12885 #line $LINENO "configure"
12886 /* confdefs.h.  */
12887 _ACEOF
12888 cat confdefs.h >>conftest.$ac_ext
12889 cat >>conftest.$ac_ext <<_ACEOF
12890 /* end confdefs.h.  */
12891 $ac_includes_default
12892 #include <$ac_header>
12893 _ACEOF
12894 rm -f conftest.$ac_objext
12895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12896   (eval $ac_compile) 2>&5
12897   ac_status=$?
12898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899   (exit $ac_status); } &&
12900          { ac_try='test -s conftest.$ac_objext'
12901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902   (eval $ac_try) 2>&5
12903   ac_status=$?
12904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905   (exit $ac_status); }; }; then
12906   ac_header_compiler=yes
12907 else
12908   echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12910
12911 ac_header_compiler=no
12912 fi
12913 rm -f conftest.$ac_objext conftest.$ac_ext
12914 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12915 echo "${ECHO_T}$ac_header_compiler" >&6
12916
12917 # Is the header present?
12918 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12919 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12920 cat >conftest.$ac_ext <<_ACEOF
12921 #line $LINENO "configure"
12922 /* confdefs.h.  */
12923 _ACEOF
12924 cat confdefs.h >>conftest.$ac_ext
12925 cat >>conftest.$ac_ext <<_ACEOF
12926 /* end confdefs.h.  */
12927 #include <$ac_header>
12928 _ACEOF
12929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12930   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12931   ac_status=$?
12932   grep -v '^ *+' conftest.er1 >conftest.err
12933   rm -f conftest.er1
12934   cat conftest.err >&5
12935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936   (exit $ac_status); } >/dev/null; then
12937   if test -s conftest.err; then
12938     ac_cpp_err=$ac_c_preproc_warn_flag
12939   else
12940     ac_cpp_err=
12941   fi
12942 else
12943   ac_cpp_err=yes
12944 fi
12945 if test -z "$ac_cpp_err"; then
12946   ac_header_preproc=yes
12947 else
12948   echo "$as_me: failed program was:" >&5
12949 sed 's/^/| /' conftest.$ac_ext >&5
12950
12951   ac_header_preproc=no
12952 fi
12953 rm -f conftest.err conftest.$ac_ext
12954 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12955 echo "${ECHO_T}$ac_header_preproc" >&6
12956
12957 # So?  What about this header?
12958 case $ac_header_compiler:$ac_header_preproc in
12959   yes:no )
12960     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12964     (
12965       cat <<\_ASBOX
12966 ## ------------------------------------ ##
12967 ## Report this to bug-autoconf@gnu.org. ##
12968 ## ------------------------------------ ##
12969 _ASBOX
12970     ) |
12971       sed "s/^/$as_me: WARNING:     /" >&2
12972     ;;
12973   no:yes )
12974     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12976     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12977 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12978     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12980     (
12981       cat <<\_ASBOX
12982 ## ------------------------------------ ##
12983 ## Report this to bug-autoconf@gnu.org. ##
12984 ## ------------------------------------ ##
12985 _ASBOX
12986     ) |
12987       sed "s/^/$as_me: WARNING:     /" >&2
12988     ;;
12989 esac
12990 echo "$as_me:$LINENO: checking for $ac_header" >&5
12991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12993   echo $ECHO_N "(cached) $ECHO_C" >&6
12994 else
12995   eval "$as_ac_Header=$ac_header_preproc"
12996 fi
12997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12999
13000 fi
13001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13002   cat >>confdefs.h <<_ACEOF
13003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13004 _ACEOF
13005
13006 fi
13007
13008 done
13009
13010
13011
13012
13013
13014
13015 for ac_header in locale.h stdlib.h string.h
13016 do
13017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13019   echo "$as_me:$LINENO: checking for $ac_header" >&5
13020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13022   echo $ECHO_N "(cached) $ECHO_C" >&6
13023 fi
13024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13026 else
13027   # Is the header compilable?
13028 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13030 cat >conftest.$ac_ext <<_ACEOF
13031 #line $LINENO "configure"
13032 /* confdefs.h.  */
13033 _ACEOF
13034 cat confdefs.h >>conftest.$ac_ext
13035 cat >>conftest.$ac_ext <<_ACEOF
13036 /* end confdefs.h.  */
13037 $ac_includes_default
13038 #include <$ac_header>
13039 _ACEOF
13040 rm -f conftest.$ac_objext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13042   (eval $ac_compile) 2>&5
13043   ac_status=$?
13044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045   (exit $ac_status); } &&
13046          { ac_try='test -s conftest.$ac_objext'
13047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048   (eval $ac_try) 2>&5
13049   ac_status=$?
13050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051   (exit $ac_status); }; }; then
13052   ac_header_compiler=yes
13053 else
13054   echo "$as_me: failed program was:" >&5
13055 sed 's/^/| /' conftest.$ac_ext >&5
13056
13057 ac_header_compiler=no
13058 fi
13059 rm -f conftest.$ac_objext conftest.$ac_ext
13060 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13061 echo "${ECHO_T}$ac_header_compiler" >&6
13062
13063 # Is the header present?
13064 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13065 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13066 cat >conftest.$ac_ext <<_ACEOF
13067 #line $LINENO "configure"
13068 /* confdefs.h.  */
13069 _ACEOF
13070 cat confdefs.h >>conftest.$ac_ext
13071 cat >>conftest.$ac_ext <<_ACEOF
13072 /* end confdefs.h.  */
13073 #include <$ac_header>
13074 _ACEOF
13075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13076   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13077   ac_status=$?
13078   grep -v '^ *+' conftest.er1 >conftest.err
13079   rm -f conftest.er1
13080   cat conftest.err >&5
13081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082   (exit $ac_status); } >/dev/null; then
13083   if test -s conftest.err; then
13084     ac_cpp_err=$ac_c_preproc_warn_flag
13085   else
13086     ac_cpp_err=
13087   fi
13088 else
13089   ac_cpp_err=yes
13090 fi
13091 if test -z "$ac_cpp_err"; then
13092   ac_header_preproc=yes
13093 else
13094   echo "$as_me: failed program was:" >&5
13095 sed 's/^/| /' conftest.$ac_ext >&5
13096
13097   ac_header_preproc=no
13098 fi
13099 rm -f conftest.err conftest.$ac_ext
13100 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13101 echo "${ECHO_T}$ac_header_preproc" >&6
13102
13103 # So?  What about this header?
13104 case $ac_header_compiler:$ac_header_preproc in
13105   yes:no )
13106     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13108     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13110     (
13111       cat <<\_ASBOX
13112 ## ------------------------------------ ##
13113 ## Report this to bug-autoconf@gnu.org. ##
13114 ## ------------------------------------ ##
13115 _ASBOX
13116     ) |
13117       sed "s/^/$as_me: WARNING:     /" >&2
13118     ;;
13119   no:yes )
13120     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13122     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13124     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13126     (
13127       cat <<\_ASBOX
13128 ## ------------------------------------ ##
13129 ## Report this to bug-autoconf@gnu.org. ##
13130 ## ------------------------------------ ##
13131 _ASBOX
13132     ) |
13133       sed "s/^/$as_me: WARNING:     /" >&2
13134     ;;
13135 esac
13136 echo "$as_me:$LINENO: checking for $ac_header" >&5
13137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13139   echo $ECHO_N "(cached) $ECHO_C" >&6
13140 else
13141   eval "$as_ac_Header=$ac_header_preproc"
13142 fi
13143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13145
13146 fi
13147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13148   cat >>confdefs.h <<_ACEOF
13149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13150 _ACEOF
13151
13152 fi
13153
13154 done
13155
13156
13157 for ac_func in setlocale
13158 do
13159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13160 echo "$as_me:$LINENO: checking for $ac_func" >&5
13161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13162 if eval "test \"\${$as_ac_var+set}\" = set"; then
13163   echo $ECHO_N "(cached) $ECHO_C" >&6
13164 else
13165   cat >conftest.$ac_ext <<_ACEOF
13166 #line $LINENO "configure"
13167 /* confdefs.h.  */
13168 _ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h.  */
13172 /* System header to define __stub macros and hopefully few prototypes,
13173     which can conflict with char $ac_func (); below.
13174     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13175     <limits.h> exists even on freestanding compilers.  */
13176 #ifdef __STDC__
13177 # include <limits.h>
13178 #else
13179 # include <assert.h>
13180 #endif
13181 /* Override any gcc2 internal prototype to avoid an error.  */
13182 #ifdef __cplusplus
13183 extern "C"
13184 {
13185 #endif
13186 /* We use char because int might match the return type of a gcc2
13187    builtin and then its argument prototype would still apply.  */
13188 char $ac_func ();
13189 /* The GNU C library defines this for functions which it implements
13190     to always fail with ENOSYS.  Some functions are actually named
13191     something starting with __ and the normal name is an alias.  */
13192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13193 choke me
13194 #else
13195 char (*f) () = $ac_func;
13196 #endif
13197 #ifdef __cplusplus
13198 }
13199 #endif
13200
13201 int
13202 main ()
13203 {
13204 return f != $ac_func;
13205   ;
13206   return 0;
13207 }
13208 _ACEOF
13209 rm -f conftest.$ac_objext conftest$ac_exeext
13210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13211   (eval $ac_link) 2>&5
13212   ac_status=$?
13213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214   (exit $ac_status); } &&
13215          { ac_try='test -s conftest$ac_exeext'
13216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13217   (eval $ac_try) 2>&5
13218   ac_status=$?
13219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220   (exit $ac_status); }; }; then
13221   eval "$as_ac_var=yes"
13222 else
13223   echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13225
13226 eval "$as_ac_var=no"
13227 fi
13228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13229 fi
13230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13232 if test `eval echo '${'$as_ac_var'}'` = yes; then
13233   cat >>confdefs.h <<_ACEOF
13234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13235 _ACEOF
13236
13237 fi
13238 done
13239
13240
13241
13242
13243
13244 for ac_header in stdlib.h
13245 do
13246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13248   echo "$as_me:$LINENO: checking for $ac_header" >&5
13249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13251   echo $ECHO_N "(cached) $ECHO_C" >&6
13252 fi
13253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13255 else
13256   # Is the header compilable?
13257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13259 cat >conftest.$ac_ext <<_ACEOF
13260 #line $LINENO "configure"
13261 /* confdefs.h.  */
13262 _ACEOF
13263 cat confdefs.h >>conftest.$ac_ext
13264 cat >>conftest.$ac_ext <<_ACEOF
13265 /* end confdefs.h.  */
13266 $ac_includes_default
13267 #include <$ac_header>
13268 _ACEOF
13269 rm -f conftest.$ac_objext
13270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13271   (eval $ac_compile) 2>&5
13272   ac_status=$?
13273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274   (exit $ac_status); } &&
13275          { ac_try='test -s conftest.$ac_objext'
13276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277   (eval $ac_try) 2>&5
13278   ac_status=$?
13279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280   (exit $ac_status); }; }; then
13281   ac_header_compiler=yes
13282 else
13283   echo "$as_me: failed program was:" >&5
13284 sed 's/^/| /' conftest.$ac_ext >&5
13285
13286 ac_header_compiler=no
13287 fi
13288 rm -f conftest.$ac_objext conftest.$ac_ext
13289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13290 echo "${ECHO_T}$ac_header_compiler" >&6
13291
13292 # Is the header present?
13293 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13295 cat >conftest.$ac_ext <<_ACEOF
13296 #line $LINENO "configure"
13297 /* confdefs.h.  */
13298 _ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h.  */
13302 #include <$ac_header>
13303 _ACEOF
13304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13305   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13306   ac_status=$?
13307   grep -v '^ *+' conftest.er1 >conftest.err
13308   rm -f conftest.er1
13309   cat conftest.err >&5
13310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311   (exit $ac_status); } >/dev/null; then
13312   if test -s conftest.err; then
13313     ac_cpp_err=$ac_c_preproc_warn_flag
13314   else
13315     ac_cpp_err=
13316   fi
13317 else
13318   ac_cpp_err=yes
13319 fi
13320 if test -z "$ac_cpp_err"; then
13321   ac_header_preproc=yes
13322 else
13323   echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13325
13326   ac_header_preproc=no
13327 fi
13328 rm -f conftest.err conftest.$ac_ext
13329 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13330 echo "${ECHO_T}$ac_header_preproc" >&6
13331
13332 # So?  What about this header?
13333 case $ac_header_compiler:$ac_header_preproc in
13334   yes:no )
13335     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13339     (
13340       cat <<\_ASBOX
13341 ## ------------------------------------ ##
13342 ## Report this to bug-autoconf@gnu.org. ##
13343 ## ------------------------------------ ##
13344 _ASBOX
13345     ) |
13346       sed "s/^/$as_me: WARNING:     /" >&2
13347     ;;
13348   no:yes )
13349     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13351     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13353     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13355     (
13356       cat <<\_ASBOX
13357 ## ------------------------------------ ##
13358 ## Report this to bug-autoconf@gnu.org. ##
13359 ## ------------------------------------ ##
13360 _ASBOX
13361     ) |
13362       sed "s/^/$as_me: WARNING:     /" >&2
13363     ;;
13364 esac
13365 echo "$as_me:$LINENO: checking for $ac_header" >&5
13366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13368   echo $ECHO_N "(cached) $ECHO_C" >&6
13369 else
13370   eval "$as_ac_Header=$ac_header_preproc"
13371 fi
13372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13374
13375 fi
13376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13377   cat >>confdefs.h <<_ACEOF
13378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13379 _ACEOF
13380
13381 fi
13382
13383 done
13384
13385
13386
13387
13388
13389
13390 for ac_header in locale.h
13391 do
13392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13394   echo "$as_me:$LINENO: checking for $ac_header" >&5
13395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13397   echo $ECHO_N "(cached) $ECHO_C" >&6
13398 fi
13399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13401 else
13402   # Is the header compilable?
13403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13405 cat >conftest.$ac_ext <<_ACEOF
13406 #line $LINENO "configure"
13407 /* confdefs.h.  */
13408 _ACEOF
13409 cat confdefs.h >>conftest.$ac_ext
13410 cat >>conftest.$ac_ext <<_ACEOF
13411 /* end confdefs.h.  */
13412 $ac_includes_default
13413 #include <$ac_header>
13414 _ACEOF
13415 rm -f conftest.$ac_objext
13416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13417   (eval $ac_compile) 2>&5
13418   ac_status=$?
13419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420   (exit $ac_status); } &&
13421          { ac_try='test -s conftest.$ac_objext'
13422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423   (eval $ac_try) 2>&5
13424   ac_status=$?
13425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426   (exit $ac_status); }; }; then
13427   ac_header_compiler=yes
13428 else
13429   echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13431
13432 ac_header_compiler=no
13433 fi
13434 rm -f conftest.$ac_objext conftest.$ac_ext
13435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13436 echo "${ECHO_T}$ac_header_compiler" >&6
13437
13438 # Is the header present?
13439 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13441 cat >conftest.$ac_ext <<_ACEOF
13442 #line $LINENO "configure"
13443 /* confdefs.h.  */
13444 _ACEOF
13445 cat confdefs.h >>conftest.$ac_ext
13446 cat >>conftest.$ac_ext <<_ACEOF
13447 /* end confdefs.h.  */
13448 #include <$ac_header>
13449 _ACEOF
13450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13451   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13452   ac_status=$?
13453   grep -v '^ *+' conftest.er1 >conftest.err
13454   rm -f conftest.er1
13455   cat conftest.err >&5
13456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457   (exit $ac_status); } >/dev/null; then
13458   if test -s conftest.err; then
13459     ac_cpp_err=$ac_c_preproc_warn_flag
13460   else
13461     ac_cpp_err=
13462   fi
13463 else
13464   ac_cpp_err=yes
13465 fi
13466 if test -z "$ac_cpp_err"; then
13467   ac_header_preproc=yes
13468 else
13469   echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13471
13472   ac_header_preproc=no
13473 fi
13474 rm -f conftest.err conftest.$ac_ext
13475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13476 echo "${ECHO_T}$ac_header_preproc" >&6
13477
13478 # So?  What about this header?
13479 case $ac_header_compiler:$ac_header_preproc in
13480   yes:no )
13481     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13483     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13485     (
13486       cat <<\_ASBOX
13487 ## ------------------------------------ ##
13488 ## Report this to bug-autoconf@gnu.org. ##
13489 ## ------------------------------------ ##
13490 _ASBOX
13491     ) |
13492       sed "s/^/$as_me: WARNING:     /" >&2
13493     ;;
13494   no:yes )
13495     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13497     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13499     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13501     (
13502       cat <<\_ASBOX
13503 ## ------------------------------------ ##
13504 ## Report this to bug-autoconf@gnu.org. ##
13505 ## ------------------------------------ ##
13506 _ASBOX
13507     ) |
13508       sed "s/^/$as_me: WARNING:     /" >&2
13509     ;;
13510 esac
13511 echo "$as_me:$LINENO: checking for $ac_header" >&5
13512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13514   echo $ECHO_N "(cached) $ECHO_C" >&6
13515 else
13516   eval "$as_ac_Header=$ac_header_preproc"
13517 fi
13518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13520
13521 fi
13522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13523   cat >>confdefs.h <<_ACEOF
13524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13525 _ACEOF
13526
13527 fi
13528
13529 done
13530
13531   echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13532 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13533 if test "${ac_cv_have_decl_getenv+set}" = set; then
13534   echo $ECHO_N "(cached) $ECHO_C" >&6
13535 else
13536   cat >conftest.$ac_ext <<_ACEOF
13537 #line $LINENO "configure"
13538 /* confdefs.h.  */
13539 _ACEOF
13540 cat confdefs.h >>conftest.$ac_ext
13541 cat >>conftest.$ac_ext <<_ACEOF
13542 /* end confdefs.h.  */
13543 $ac_includes_default
13544 int
13545 main ()
13546 {
13547 #ifndef getenv
13548   char *p = (char *) getenv;
13549 #endif
13550
13551   ;
13552   return 0;
13553 }
13554 _ACEOF
13555 rm -f conftest.$ac_objext
13556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13557   (eval $ac_compile) 2>&5
13558   ac_status=$?
13559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560   (exit $ac_status); } &&
13561          { ac_try='test -s conftest.$ac_objext'
13562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563   (eval $ac_try) 2>&5
13564   ac_status=$?
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); }; }; then
13567   ac_cv_have_decl_getenv=yes
13568 else
13569   echo "$as_me: failed program was:" >&5
13570 sed 's/^/| /' conftest.$ac_ext >&5
13571
13572 ac_cv_have_decl_getenv=no
13573 fi
13574 rm -f conftest.$ac_objext conftest.$ac_ext
13575 fi
13576 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13577 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13578 if test $ac_cv_have_decl_getenv = yes; then
13579
13580 cat >>confdefs.h <<_ACEOF
13581 #define HAVE_DECL_GETENV 1
13582 _ACEOF
13583
13584
13585 else
13586   cat >>confdefs.h <<_ACEOF
13587 #define HAVE_DECL_GETENV 0
13588 _ACEOF
13589
13590
13591 fi
13592
13593
13594
13595 for ac_func in localeconv
13596 do
13597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13598 echo "$as_me:$LINENO: checking for $ac_func" >&5
13599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13600 if eval "test \"\${$as_ac_var+set}\" = set"; then
13601   echo $ECHO_N "(cached) $ECHO_C" >&6
13602 else
13603   cat >conftest.$ac_ext <<_ACEOF
13604 #line $LINENO "configure"
13605 /* confdefs.h.  */
13606 _ACEOF
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h.  */
13610 /* System header to define __stub macros and hopefully few prototypes,
13611     which can conflict with char $ac_func (); below.
13612     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13613     <limits.h> exists even on freestanding compilers.  */
13614 #ifdef __STDC__
13615 # include <limits.h>
13616 #else
13617 # include <assert.h>
13618 #endif
13619 /* Override any gcc2 internal prototype to avoid an error.  */
13620 #ifdef __cplusplus
13621 extern "C"
13622 {
13623 #endif
13624 /* We use char because int might match the return type of a gcc2
13625    builtin and then its argument prototype would still apply.  */
13626 char $ac_func ();
13627 /* The GNU C library defines this for functions which it implements
13628     to always fail with ENOSYS.  Some functions are actually named
13629     something starting with __ and the normal name is an alias.  */
13630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13631 choke me
13632 #else
13633 char (*f) () = $ac_func;
13634 #endif
13635 #ifdef __cplusplus
13636 }
13637 #endif
13638
13639 int
13640 main ()
13641 {
13642 return f != $ac_func;
13643   ;
13644   return 0;
13645 }
13646 _ACEOF
13647 rm -f conftest.$ac_objext conftest$ac_exeext
13648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13649   (eval $ac_link) 2>&5
13650   ac_status=$?
13651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652   (exit $ac_status); } &&
13653          { ac_try='test -s conftest$ac_exeext'
13654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655   (eval $ac_try) 2>&5
13656   ac_status=$?
13657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658   (exit $ac_status); }; }; then
13659   eval "$as_ac_var=yes"
13660 else
13661   echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.$ac_ext >&5
13663
13664 eval "$as_ac_var=no"
13665 fi
13666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13667 fi
13668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13670 if test `eval echo '${'$as_ac_var'}'` = yes; then
13671   cat >>confdefs.h <<_ACEOF
13672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13673 _ACEOF
13674
13675 fi
13676 done
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688 for ac_header in limits.h stdlib.h string.h wchar.h wctype.h
13689 do
13690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13692   echo "$as_me:$LINENO: checking for $ac_header" >&5
13693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13695   echo $ECHO_N "(cached) $ECHO_C" >&6
13696 fi
13697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13699 else
13700   # Is the header compilable?
13701 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13703 cat >conftest.$ac_ext <<_ACEOF
13704 #line $LINENO "configure"
13705 /* confdefs.h.  */
13706 _ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h.  */
13710 $ac_includes_default
13711 #include <$ac_header>
13712 _ACEOF
13713 rm -f conftest.$ac_objext
13714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13715   (eval $ac_compile) 2>&5
13716   ac_status=$?
13717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718   (exit $ac_status); } &&
13719          { ac_try='test -s conftest.$ac_objext'
13720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721   (eval $ac_try) 2>&5
13722   ac_status=$?
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); }; }; then
13725   ac_header_compiler=yes
13726 else
13727   echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.$ac_ext >&5
13729
13730 ac_header_compiler=no
13731 fi
13732 rm -f conftest.$ac_objext conftest.$ac_ext
13733 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13734 echo "${ECHO_T}$ac_header_compiler" >&6
13735
13736 # Is the header present?
13737 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13739 cat >conftest.$ac_ext <<_ACEOF
13740 #line $LINENO "configure"
13741 /* confdefs.h.  */
13742 _ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h.  */
13746 #include <$ac_header>
13747 _ACEOF
13748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13749   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13750   ac_status=$?
13751   grep -v '^ *+' conftest.er1 >conftest.err
13752   rm -f conftest.er1
13753   cat conftest.err >&5
13754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755   (exit $ac_status); } >/dev/null; then
13756   if test -s conftest.err; then
13757     ac_cpp_err=$ac_c_preproc_warn_flag
13758   else
13759     ac_cpp_err=
13760   fi
13761 else
13762   ac_cpp_err=yes
13763 fi
13764 if test -z "$ac_cpp_err"; then
13765   ac_header_preproc=yes
13766 else
13767   echo "$as_me: failed program was:" >&5
13768 sed 's/^/| /' conftest.$ac_ext >&5
13769
13770   ac_header_preproc=no
13771 fi
13772 rm -f conftest.err conftest.$ac_ext
13773 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13774 echo "${ECHO_T}$ac_header_preproc" >&6
13775
13776 # So?  What about this header?
13777 case $ac_header_compiler:$ac_header_preproc in
13778   yes:no )
13779     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13783     (
13784       cat <<\_ASBOX
13785 ## ------------------------------------ ##
13786 ## Report this to bug-autoconf@gnu.org. ##
13787 ## ------------------------------------ ##
13788 _ASBOX
13789     ) |
13790       sed "s/^/$as_me: WARNING:     /" >&2
13791     ;;
13792   no:yes )
13793     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13795     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13797     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13799     (
13800       cat <<\_ASBOX
13801 ## ------------------------------------ ##
13802 ## Report this to bug-autoconf@gnu.org. ##
13803 ## ------------------------------------ ##
13804 _ASBOX
13805     ) |
13806       sed "s/^/$as_me: WARNING:     /" >&2
13807     ;;
13808 esac
13809 echo "$as_me:$LINENO: checking for $ac_header" >&5
13810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13812   echo $ECHO_N "(cached) $ECHO_C" >&6
13813 else
13814   eval "$as_ac_Header=$ac_header_preproc"
13815 fi
13816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13818
13819 fi
13820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13821   cat >>confdefs.h <<_ACEOF
13822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13823 _ACEOF
13824
13825 fi
13826
13827 done
13828
13829
13830
13831
13832
13833
13834 for ac_func in isascii iswcntrl iswprint mbsinit wcwidth
13835 do
13836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13837 echo "$as_me:$LINENO: checking for $ac_func" >&5
13838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13839 if eval "test \"\${$as_ac_var+set}\" = set"; then
13840   echo $ECHO_N "(cached) $ECHO_C" >&6
13841 else
13842   cat >conftest.$ac_ext <<_ACEOF
13843 #line $LINENO "configure"
13844 /* confdefs.h.  */
13845 _ACEOF
13846 cat confdefs.h >>conftest.$ac_ext
13847 cat >>conftest.$ac_ext <<_ACEOF
13848 /* end confdefs.h.  */
13849 /* System header to define __stub macros and hopefully few prototypes,
13850     which can conflict with char $ac_func (); below.
13851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13852     <limits.h> exists even on freestanding compilers.  */
13853 #ifdef __STDC__
13854 # include <limits.h>
13855 #else
13856 # include <assert.h>
13857 #endif
13858 /* Override any gcc2 internal prototype to avoid an error.  */
13859 #ifdef __cplusplus
13860 extern "C"
13861 {
13862 #endif
13863 /* We use char because int might match the return type of a gcc2
13864    builtin and then its argument prototype would still apply.  */
13865 char $ac_func ();
13866 /* The GNU C library defines this for functions which it implements
13867     to always fail with ENOSYS.  Some functions are actually named
13868     something starting with __ and the normal name is an alias.  */
13869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13870 choke me
13871 #else
13872 char (*f) () = $ac_func;
13873 #endif
13874 #ifdef __cplusplus
13875 }
13876 #endif
13877
13878 int
13879 main ()
13880 {
13881 return f != $ac_func;
13882   ;
13883   return 0;
13884 }
13885 _ACEOF
13886 rm -f conftest.$ac_objext conftest$ac_exeext
13887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13888   (eval $ac_link) 2>&5
13889   ac_status=$?
13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891   (exit $ac_status); } &&
13892          { ac_try='test -s conftest$ac_exeext'
13893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894   (eval $ac_try) 2>&5
13895   ac_status=$?
13896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897   (exit $ac_status); }; }; then
13898   eval "$as_ac_var=yes"
13899 else
13900   echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.$ac_ext >&5
13902
13903 eval "$as_ac_var=no"
13904 fi
13905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13906 fi
13907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13909 if test `eval echo '${'$as_ac_var'}'` = yes; then
13910   cat >>confdefs.h <<_ACEOF
13911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13912 _ACEOF
13913
13914 fi
13915 done
13916
13917
13918   echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
13919 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
13920 if test "${jm_cv_func_mbrtowc+set}" = set; then
13921   echo $ECHO_N "(cached) $ECHO_C" >&6
13922 else
13923   cat >conftest.$ac_ext <<_ACEOF
13924 #line $LINENO "configure"
13925 /* confdefs.h.  */
13926 _ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h.  */
13930 #include <wchar.h>
13931 int
13932 main ()
13933 {
13934 mbstate_t state; return ! (sizeof state && mbrtowc);
13935   ;
13936   return 0;
13937 }
13938 _ACEOF
13939 rm -f conftest.$ac_objext conftest$ac_exeext
13940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13941   (eval $ac_link) 2>&5
13942   ac_status=$?
13943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); } &&
13945          { ac_try='test -s conftest$ac_exeext'
13946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947   (eval $ac_try) 2>&5
13948   ac_status=$?
13949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950   (exit $ac_status); }; }; then
13951   jm_cv_func_mbrtowc=yes
13952 else
13953   echo "$as_me: failed program was:" >&5
13954 sed 's/^/| /' conftest.$ac_ext >&5
13955
13956 jm_cv_func_mbrtowc=no
13957 fi
13958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13959 fi
13960 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
13961 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
13962   if test $jm_cv_func_mbrtowc = yes; then
13963
13964 cat >>confdefs.h <<\_ACEOF
13965 #define HAVE_MBRTOWC 1
13966 _ACEOF
13967
13968   fi
13969
13970
13971   echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
13972 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
13973 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
13974   echo $ECHO_N "(cached) $ECHO_C" >&6
13975 else
13976   cat >conftest.$ac_ext <<_ACEOF
13977 #line $LINENO "configure"
13978 /* confdefs.h.  */
13979 _ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h.  */
13983
13984 /* AIX 3.2.5 declares wcwidth in <string.h>. */
13985 #if HAVE_STRING_H
13986 # include <string.h>
13987 #endif
13988 #if HAVE_WCHAR_H
13989 # include <wchar.h>
13990 #endif
13991
13992 int
13993 main ()
13994 {
13995
13996 #ifndef wcwidth
13997   char *p = (char *) wcwidth;
13998 #endif
13999
14000   ;
14001   return 0;
14002 }
14003 _ACEOF
14004 rm -f conftest.$ac_objext
14005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14006   (eval $ac_compile) 2>&5
14007   ac_status=$?
14008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009   (exit $ac_status); } &&
14010          { ac_try='test -s conftest.$ac_objext'
14011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012   (eval $ac_try) 2>&5
14013   ac_status=$?
14014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015   (exit $ac_status); }; }; then
14016   ac_cv_have_decl_wcwidth=yes
14017 else
14018   echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14020
14021 ac_cv_have_decl_wcwidth=no
14022 fi
14023 rm -f conftest.$ac_objext conftest.$ac_ext
14024 fi
14025 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
14026 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
14027   if test $ac_cv_have_decl_wcwidth = yes; then
14028     ac_val=1
14029   else
14030     ac_val=0
14031   fi
14032
14033 cat >>confdefs.h <<_ACEOF
14034 #define HAVE_DECL_WCWIDTH $ac_val
14035 _ACEOF
14036
14037
14038   echo "$as_me:$LINENO: checking for mbstate_t" >&5
14039 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
14040 if test "${ac_cv_type_mbstate_t+set}" = set; then
14041   echo $ECHO_N "(cached) $ECHO_C" >&6
14042 else
14043   cat >conftest.$ac_ext <<_ACEOF
14044 #line $LINENO "configure"
14045 /* confdefs.h.  */
14046 _ACEOF
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h.  */
14050 $ac_includes_default
14051 #           include <wchar.h>
14052 int
14053 main ()
14054 {
14055 mbstate_t x; return sizeof x;
14056   ;
14057   return 0;
14058 }
14059 _ACEOF
14060 rm -f conftest.$ac_objext
14061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14062   (eval $ac_compile) 2>&5
14063   ac_status=$?
14064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065   (exit $ac_status); } &&
14066          { ac_try='test -s conftest.$ac_objext'
14067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068   (eval $ac_try) 2>&5
14069   ac_status=$?
14070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071   (exit $ac_status); }; }; then
14072   ac_cv_type_mbstate_t=yes
14073 else
14074   echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.$ac_ext >&5
14076
14077 ac_cv_type_mbstate_t=no
14078 fi
14079 rm -f conftest.$ac_objext conftest.$ac_ext
14080 fi
14081 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
14082 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
14083    if test $ac_cv_type_mbstate_t = yes; then
14084
14085 cat >>confdefs.h <<\_ACEOF
14086 #define HAVE_MBSTATE_T 1
14087 _ACEOF
14088
14089    else
14090
14091 cat >>confdefs.h <<\_ACEOF
14092 #define mbstate_t int
14093 _ACEOF
14094
14095    fi
14096
14097
14098
14099
14100
14101 for ac_header in limits.h stdlib.h bp-sym.h
14102 do
14103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14105   echo "$as_me:$LINENO: checking for $ac_header" >&5
14106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14108   echo $ECHO_N "(cached) $ECHO_C" >&6
14109 fi
14110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14112 else
14113   # Is the header compilable?
14114 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14116 cat >conftest.$ac_ext <<_ACEOF
14117 #line $LINENO "configure"
14118 /* confdefs.h.  */
14119 _ACEOF
14120 cat confdefs.h >>conftest.$ac_ext
14121 cat >>conftest.$ac_ext <<_ACEOF
14122 /* end confdefs.h.  */
14123 $ac_includes_default
14124 #include <$ac_header>
14125 _ACEOF
14126 rm -f conftest.$ac_objext
14127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14128   (eval $ac_compile) 2>&5
14129   ac_status=$?
14130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131   (exit $ac_status); } &&
14132          { ac_try='test -s conftest.$ac_objext'
14133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134   (eval $ac_try) 2>&5
14135   ac_status=$?
14136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); }; }; then
14138   ac_header_compiler=yes
14139 else
14140   echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.$ac_ext >&5
14142
14143 ac_header_compiler=no
14144 fi
14145 rm -f conftest.$ac_objext conftest.$ac_ext
14146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14147 echo "${ECHO_T}$ac_header_compiler" >&6
14148
14149 # Is the header present?
14150 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14152 cat >conftest.$ac_ext <<_ACEOF
14153 #line $LINENO "configure"
14154 /* confdefs.h.  */
14155 _ACEOF
14156 cat confdefs.h >>conftest.$ac_ext
14157 cat >>conftest.$ac_ext <<_ACEOF
14158 /* end confdefs.h.  */
14159 #include <$ac_header>
14160 _ACEOF
14161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14162   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14163   ac_status=$?
14164   grep -v '^ *+' conftest.er1 >conftest.err
14165   rm -f conftest.er1
14166   cat conftest.err >&5
14167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168   (exit $ac_status); } >/dev/null; then
14169   if test -s conftest.err; then
14170     ac_cpp_err=$ac_c_preproc_warn_flag
14171   else
14172     ac_cpp_err=
14173   fi
14174 else
14175   ac_cpp_err=yes
14176 fi
14177 if test -z "$ac_cpp_err"; then
14178   ac_header_preproc=yes
14179 else
14180   echo "$as_me: failed program was:" >&5
14181 sed 's/^/| /' conftest.$ac_ext >&5
14182
14183   ac_header_preproc=no
14184 fi
14185 rm -f conftest.err conftest.$ac_ext
14186 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14187 echo "${ECHO_T}$ac_header_preproc" >&6
14188
14189 # So?  What about this header?
14190 case $ac_header_compiler:$ac_header_preproc in
14191   yes:no )
14192     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14194     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14196     (
14197       cat <<\_ASBOX
14198 ## ------------------------------------ ##
14199 ## Report this to bug-autoconf@gnu.org. ##
14200 ## ------------------------------------ ##
14201 _ASBOX
14202     ) |
14203       sed "s/^/$as_me: WARNING:     /" >&2
14204     ;;
14205   no:yes )
14206     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14208     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14212     (
14213       cat <<\_ASBOX
14214 ## ------------------------------------ ##
14215 ## Report this to bug-autoconf@gnu.org. ##
14216 ## ------------------------------------ ##
14217 _ASBOX
14218     ) |
14219       sed "s/^/$as_me: WARNING:     /" >&2
14220     ;;
14221 esac
14222 echo "$as_me:$LINENO: checking for $ac_header" >&5
14223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14225   echo $ECHO_N "(cached) $ECHO_C" >&6
14226 else
14227   eval "$as_ac_Header=$ac_header_preproc"
14228 fi
14229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14231
14232 fi
14233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14234   cat >>confdefs.h <<_ACEOF
14235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14236 _ACEOF
14237
14238 fi
14239
14240 done
14241
14242
14243
14244
14245
14246 for ac_header in sys/pstat.h unistd.h
14247 do
14248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14250   echo "$as_me:$LINENO: checking for $ac_header" >&5
14251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14253   echo $ECHO_N "(cached) $ECHO_C" >&6
14254 fi
14255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14257 else
14258   # Is the header compilable?
14259 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14261 cat >conftest.$ac_ext <<_ACEOF
14262 #line $LINENO "configure"
14263 /* confdefs.h.  */
14264 _ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h.  */
14268 $ac_includes_default
14269 #include <$ac_header>
14270 _ACEOF
14271 rm -f conftest.$ac_objext
14272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14273   (eval $ac_compile) 2>&5
14274   ac_status=$?
14275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276   (exit $ac_status); } &&
14277          { ac_try='test -s conftest.$ac_objext'
14278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279   (eval $ac_try) 2>&5
14280   ac_status=$?
14281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282   (exit $ac_status); }; }; then
14283   ac_header_compiler=yes
14284 else
14285   echo "$as_me: failed program was:" >&5
14286 sed 's/^/| /' conftest.$ac_ext >&5
14287
14288 ac_header_compiler=no
14289 fi
14290 rm -f conftest.$ac_objext conftest.$ac_ext
14291 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14292 echo "${ECHO_T}$ac_header_compiler" >&6
14293
14294 # Is the header present?
14295 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14297 cat >conftest.$ac_ext <<_ACEOF
14298 #line $LINENO "configure"
14299 /* confdefs.h.  */
14300 _ACEOF
14301 cat confdefs.h >>conftest.$ac_ext
14302 cat >>conftest.$ac_ext <<_ACEOF
14303 /* end confdefs.h.  */
14304 #include <$ac_header>
14305 _ACEOF
14306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14307   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14308   ac_status=$?
14309   grep -v '^ *+' conftest.er1 >conftest.err
14310   rm -f conftest.er1
14311   cat conftest.err >&5
14312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313   (exit $ac_status); } >/dev/null; then
14314   if test -s conftest.err; then
14315     ac_cpp_err=$ac_c_preproc_warn_flag
14316   else
14317     ac_cpp_err=
14318   fi
14319 else
14320   ac_cpp_err=yes
14321 fi
14322 if test -z "$ac_cpp_err"; then
14323   ac_header_preproc=yes
14324 else
14325   echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14327
14328   ac_header_preproc=no
14329 fi
14330 rm -f conftest.err conftest.$ac_ext
14331 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14332 echo "${ECHO_T}$ac_header_preproc" >&6
14333
14334 # So?  What about this header?
14335 case $ac_header_compiler:$ac_header_preproc in
14336   yes:no )
14337     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14339     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14341     (
14342       cat <<\_ASBOX
14343 ## ------------------------------------ ##
14344 ## Report this to bug-autoconf@gnu.org. ##
14345 ## ------------------------------------ ##
14346 _ASBOX
14347     ) |
14348       sed "s/^/$as_me: WARNING:     /" >&2
14349     ;;
14350   no:yes )
14351     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14353     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14357     (
14358       cat <<\_ASBOX
14359 ## ------------------------------------ ##
14360 ## Report this to bug-autoconf@gnu.org. ##
14361 ## ------------------------------------ ##
14362 _ASBOX
14363     ) |
14364       sed "s/^/$as_me: WARNING:     /" >&2
14365     ;;
14366 esac
14367 echo "$as_me:$LINENO: checking for $ac_header" >&5
14368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14370   echo $ECHO_N "(cached) $ECHO_C" >&6
14371 else
14372   eval "$as_ac_Header=$ac_header_preproc"
14373 fi
14374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14376
14377 fi
14378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14379   cat >>confdefs.h <<_ACEOF
14380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14381 _ACEOF
14382
14383 fi
14384
14385 done
14386
14387
14388
14389 for ac_func in pstat_getstatic pstat_getdynamic
14390 do
14391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14392 echo "$as_me:$LINENO: checking for $ac_func" >&5
14393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14394 if eval "test \"\${$as_ac_var+set}\" = set"; then
14395   echo $ECHO_N "(cached) $ECHO_C" >&6
14396 else
14397   cat >conftest.$ac_ext <<_ACEOF
14398 #line $LINENO "configure"
14399 /* confdefs.h.  */
14400 _ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h.  */
14404 /* System header to define __stub macros and hopefully few prototypes,
14405     which can conflict with char $ac_func (); below.
14406     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14407     <limits.h> exists even on freestanding compilers.  */
14408 #ifdef __STDC__
14409 # include <limits.h>
14410 #else
14411 # include <assert.h>
14412 #endif
14413 /* Override any gcc2 internal prototype to avoid an error.  */
14414 #ifdef __cplusplus
14415 extern "C"
14416 {
14417 #endif
14418 /* We use char because int might match the return type of a gcc2
14419    builtin and then its argument prototype would still apply.  */
14420 char $ac_func ();
14421 /* The GNU C library defines this for functions which it implements
14422     to always fail with ENOSYS.  Some functions are actually named
14423     something starting with __ and the normal name is an alias.  */
14424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14425 choke me
14426 #else
14427 char (*f) () = $ac_func;
14428 #endif
14429 #ifdef __cplusplus
14430 }
14431 #endif
14432
14433 int
14434 main ()
14435 {
14436 return f != $ac_func;
14437   ;
14438   return 0;
14439 }
14440 _ACEOF
14441 rm -f conftest.$ac_objext conftest$ac_exeext
14442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14443   (eval $ac_link) 2>&5
14444   ac_status=$?
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); } &&
14447          { ac_try='test -s conftest$ac_exeext'
14448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449   (eval $ac_try) 2>&5
14450   ac_status=$?
14451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452   (exit $ac_status); }; }; then
14453   eval "$as_ac_var=yes"
14454 else
14455   echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14457
14458 eval "$as_ac_var=no"
14459 fi
14460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14461 fi
14462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14463 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14464 if test `eval echo '${'$as_ac_var'}'` = yes; then
14465   cat >>confdefs.h <<_ACEOF
14466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14467 _ACEOF
14468
14469 fi
14470 done
14471
14472
14473
14474
14475 for ac_header in unistd.h
14476 do
14477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14479   echo "$as_me:$LINENO: checking for $ac_header" >&5
14480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14482   echo $ECHO_N "(cached) $ECHO_C" >&6
14483 fi
14484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14486 else
14487   # Is the header compilable?
14488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14490 cat >conftest.$ac_ext <<_ACEOF
14491 #line $LINENO "configure"
14492 /* confdefs.h.  */
14493 _ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h.  */
14497 $ac_includes_default
14498 #include <$ac_header>
14499 _ACEOF
14500 rm -f conftest.$ac_objext
14501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14502   (eval $ac_compile) 2>&5
14503   ac_status=$?
14504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505   (exit $ac_status); } &&
14506          { ac_try='test -s conftest.$ac_objext'
14507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508   (eval $ac_try) 2>&5
14509   ac_status=$?
14510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511   (exit $ac_status); }; }; then
14512   ac_header_compiler=yes
14513 else
14514   echo "$as_me: failed program was:" >&5
14515 sed 's/^/| /' conftest.$ac_ext >&5
14516
14517 ac_header_compiler=no
14518 fi
14519 rm -f conftest.$ac_objext conftest.$ac_ext
14520 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14521 echo "${ECHO_T}$ac_header_compiler" >&6
14522
14523 # Is the header present?
14524 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14526 cat >conftest.$ac_ext <<_ACEOF
14527 #line $LINENO "configure"
14528 /* confdefs.h.  */
14529 _ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h.  */
14533 #include <$ac_header>
14534 _ACEOF
14535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14536   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14537   ac_status=$?
14538   grep -v '^ *+' conftest.er1 >conftest.err
14539   rm -f conftest.er1
14540   cat conftest.err >&5
14541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542   (exit $ac_status); } >/dev/null; then
14543   if test -s conftest.err; then
14544     ac_cpp_err=$ac_c_preproc_warn_flag
14545   else
14546     ac_cpp_err=
14547   fi
14548 else
14549   ac_cpp_err=yes
14550 fi
14551 if test -z "$ac_cpp_err"; then
14552   ac_header_preproc=yes
14553 else
14554   echo "$as_me: failed program was:" >&5
14555 sed 's/^/| /' conftest.$ac_ext >&5
14556
14557   ac_header_preproc=no
14558 fi
14559 rm -f conftest.err conftest.$ac_ext
14560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14561 echo "${ECHO_T}$ac_header_preproc" >&6
14562
14563 # So?  What about this header?
14564 case $ac_header_compiler:$ac_header_preproc in
14565   yes:no )
14566     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14568     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14570     (
14571       cat <<\_ASBOX
14572 ## ------------------------------------ ##
14573 ## Report this to bug-autoconf@gnu.org. ##
14574 ## ------------------------------------ ##
14575 _ASBOX
14576     ) |
14577       sed "s/^/$as_me: WARNING:     /" >&2
14578     ;;
14579   no:yes )
14580     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14582     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14583 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14586     (
14587       cat <<\_ASBOX
14588 ## ------------------------------------ ##
14589 ## Report this to bug-autoconf@gnu.org. ##
14590 ## ------------------------------------ ##
14591 _ASBOX
14592     ) |
14593       sed "s/^/$as_me: WARNING:     /" >&2
14594     ;;
14595 esac
14596 echo "$as_me:$LINENO: checking for $ac_header" >&5
14597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14599   echo $ECHO_N "(cached) $ECHO_C" >&6
14600 else
14601   eval "$as_ac_Header=$ac_header_preproc"
14602 fi
14603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14605
14606 fi
14607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14608   cat >>confdefs.h <<_ACEOF
14609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14610 _ACEOF
14611
14612 fi
14613
14614 done
14615
14616   echo "$as_me:$LINENO: checking whether getenv is declared" >&5
14617 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
14618 if test "${ac_cv_have_decl_getenv+set}" = set; then
14619   echo $ECHO_N "(cached) $ECHO_C" >&6
14620 else
14621   cat >conftest.$ac_ext <<_ACEOF
14622 #line $LINENO "configure"
14623 /* confdefs.h.  */
14624 _ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h.  */
14628 $ac_includes_default
14629 int
14630 main ()
14631 {
14632 #ifndef getenv
14633   char *p = (char *) getenv;
14634 #endif
14635
14636   ;
14637   return 0;
14638 }
14639 _ACEOF
14640 rm -f conftest.$ac_objext
14641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14642   (eval $ac_compile) 2>&5
14643   ac_status=$?
14644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645   (exit $ac_status); } &&
14646          { ac_try='test -s conftest.$ac_objext'
14647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648   (eval $ac_try) 2>&5
14649   ac_status=$?
14650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651   (exit $ac_status); }; }; then
14652   ac_cv_have_decl_getenv=yes
14653 else
14654   echo "$as_me: failed program was:" >&5
14655 sed 's/^/| /' conftest.$ac_ext >&5
14656
14657 ac_cv_have_decl_getenv=no
14658 fi
14659 rm -f conftest.$ac_objext conftest.$ac_ext
14660 fi
14661 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
14662 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
14663 if test $ac_cv_have_decl_getenv = yes; then
14664
14665 cat >>confdefs.h <<_ACEOF
14666 #define HAVE_DECL_GETENV 1
14667 _ACEOF
14668
14669
14670 else
14671   cat >>confdefs.h <<_ACEOF
14672 #define HAVE_DECL_GETENV 0
14673 _ACEOF
14674
14675
14676 fi
14677
14678
14679
14680 echo "$as_me:$LINENO: checking for working memcmp" >&5
14681 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
14682 if test "${ac_cv_func_memcmp_working+set}" = set; then
14683   echo $ECHO_N "(cached) $ECHO_C" >&6
14684 else
14685   if test "$cross_compiling" = yes; then
14686   ac_cv_func_memcmp_working=no
14687 else
14688   cat >conftest.$ac_ext <<_ACEOF
14689 #line $LINENO "configure"
14690 /* confdefs.h.  */
14691 _ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h.  */
14695
14696 int
14697 main ()
14698 {
14699
14700   /* Some versions of memcmp are not 8-bit clean.  */
14701   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14702   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
14703     exit (1);
14704
14705   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
14706      or more and with at least one buffer not starting on a 4-byte boundary.
14707      William Lewis provided this test program.   */
14708   {
14709     char foo[21];
14710     char bar[21];
14711     int i;
14712     for (i = 0; i < 4; i++)
14713       {
14714         char *a = foo + i;
14715         char *b = bar + i;
14716         strcpy (a, "--------01111111");
14717         strcpy (b, "--------10000000");
14718         if (memcmp (a, b, 16) >= 0)
14719           exit (1);
14720       }
14721     exit (0);
14722   }
14723
14724   ;
14725   return 0;
14726 }
14727 _ACEOF
14728 rm -f conftest$ac_exeext
14729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14730   (eval $ac_link) 2>&5
14731   ac_status=$?
14732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735   (eval $ac_try) 2>&5
14736   ac_status=$?
14737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738   (exit $ac_status); }; }; then
14739   ac_cv_func_memcmp_working=yes
14740 else
14741   echo "$as_me: program exited with status $ac_status" >&5
14742 echo "$as_me: failed program was:" >&5
14743 sed 's/^/| /' conftest.$ac_ext >&5
14744
14745 ( exit $ac_status )
14746 ac_cv_func_memcmp_working=no
14747 fi
14748 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14749 fi
14750 fi
14751 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
14752 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
14753 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14754
14755  if test $ac_cv_func_memcmp_working = no; then
14756
14757 cat >>confdefs.h <<\_ACEOF
14758 #define memcmp rpl_memcmp
14759 _ACEOF
14760
14761  fi
14762
14763
14764   echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
14765 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
14766 if test "${ac_cv_c_backslash_a+set}" = set; then
14767   echo $ECHO_N "(cached) $ECHO_C" >&6
14768 else
14769   cat >conftest.$ac_ext <<_ACEOF
14770 #line $LINENO "configure"
14771 /* confdefs.h.  */
14772 _ACEOF
14773 cat confdefs.h >>conftest.$ac_ext
14774 cat >>conftest.$ac_ext <<_ACEOF
14775 /* end confdefs.h.  */
14776
14777 int
14778 main ()
14779 {
14780
14781 #if '\a' == 'a'
14782       syntax error;
14783 #endif
14784       char buf['\a' == 'a' ? -1 : 1];
14785       buf[0] = '\a';
14786       return buf[0] != "\a"[0];
14787
14788   ;
14789   return 0;
14790 }
14791 _ACEOF
14792 rm -f conftest.$ac_objext
14793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14794   (eval $ac_compile) 2>&5
14795   ac_status=$?
14796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797   (exit $ac_status); } &&
14798          { ac_try='test -s conftest.$ac_objext'
14799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800   (eval $ac_try) 2>&5
14801   ac_status=$?
14802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803   (exit $ac_status); }; }; then
14804   ac_cv_c_backslash_a=yes
14805 else
14806   echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14808
14809 ac_cv_c_backslash_a=no
14810 fi
14811 rm -f conftest.$ac_objext conftest.$ac_ext
14812 fi
14813 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
14814 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
14815   if test $ac_cv_c_backslash_a = yes; then
14816
14817 cat >>confdefs.h <<\_ACEOF
14818 #define HAVE_C_BACKSLASH_A 1
14819 _ACEOF
14820
14821   fi
14822
14823
14824
14825
14826 for ac_func in isascii iswprint
14827 do
14828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14829 echo "$as_me:$LINENO: checking for $ac_func" >&5
14830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14831 if eval "test \"\${$as_ac_var+set}\" = set"; then
14832   echo $ECHO_N "(cached) $ECHO_C" >&6
14833 else
14834   cat >conftest.$ac_ext <<_ACEOF
14835 #line $LINENO "configure"
14836 /* confdefs.h.  */
14837 _ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h.  */
14841 /* System header to define __stub macros and hopefully few prototypes,
14842     which can conflict with char $ac_func (); below.
14843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14844     <limits.h> exists even on freestanding compilers.  */
14845 #ifdef __STDC__
14846 # include <limits.h>
14847 #else
14848 # include <assert.h>
14849 #endif
14850 /* Override any gcc2 internal prototype to avoid an error.  */
14851 #ifdef __cplusplus
14852 extern "C"
14853 {
14854 #endif
14855 /* We use char because int might match the return type of a gcc2
14856    builtin and then its argument prototype would still apply.  */
14857 char $ac_func ();
14858 /* The GNU C library defines this for functions which it implements
14859     to always fail with ENOSYS.  Some functions are actually named
14860     something starting with __ and the normal name is an alias.  */
14861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14862 choke me
14863 #else
14864 char (*f) () = $ac_func;
14865 #endif
14866 #ifdef __cplusplus
14867 }
14868 #endif
14869
14870 int
14871 main ()
14872 {
14873 return f != $ac_func;
14874   ;
14875   return 0;
14876 }
14877 _ACEOF
14878 rm -f conftest.$ac_objext conftest$ac_exeext
14879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14880   (eval $ac_link) 2>&5
14881   ac_status=$?
14882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883   (exit $ac_status); } &&
14884          { ac_try='test -s conftest$ac_exeext'
14885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886   (eval $ac_try) 2>&5
14887   ac_status=$?
14888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889   (exit $ac_status); }; }; then
14890   eval "$as_ac_var=yes"
14891 else
14892   echo "$as_me: failed program was:" >&5
14893 sed 's/^/| /' conftest.$ac_ext >&5
14894
14895 eval "$as_ac_var=no"
14896 fi
14897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14898 fi
14899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14900 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14901 if test `eval echo '${'$as_ac_var'}'` = yes; then
14902   cat >>confdefs.h <<_ACEOF
14903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14904 _ACEOF
14905
14906 fi
14907 done
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917 for ac_header in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
14918 do
14919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14921   echo "$as_me:$LINENO: checking for $ac_header" >&5
14922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14924   echo $ECHO_N "(cached) $ECHO_C" >&6
14925 fi
14926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14928 else
14929   # Is the header compilable?
14930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14932 cat >conftest.$ac_ext <<_ACEOF
14933 #line $LINENO "configure"
14934 /* confdefs.h.  */
14935 _ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h.  */
14939 $ac_includes_default
14940 #include <$ac_header>
14941 _ACEOF
14942 rm -f conftest.$ac_objext
14943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14944   (eval $ac_compile) 2>&5
14945   ac_status=$?
14946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947   (exit $ac_status); } &&
14948          { ac_try='test -s conftest.$ac_objext'
14949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950   (eval $ac_try) 2>&5
14951   ac_status=$?
14952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953   (exit $ac_status); }; }; then
14954   ac_header_compiler=yes
14955 else
14956   echo "$as_me: failed program was:" >&5
14957 sed 's/^/| /' conftest.$ac_ext >&5
14958
14959 ac_header_compiler=no
14960 fi
14961 rm -f conftest.$ac_objext conftest.$ac_ext
14962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14963 echo "${ECHO_T}$ac_header_compiler" >&6
14964
14965 # Is the header present?
14966 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14968 cat >conftest.$ac_ext <<_ACEOF
14969 #line $LINENO "configure"
14970 /* confdefs.h.  */
14971 _ACEOF
14972 cat confdefs.h >>conftest.$ac_ext
14973 cat >>conftest.$ac_ext <<_ACEOF
14974 /* end confdefs.h.  */
14975 #include <$ac_header>
14976 _ACEOF
14977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14978   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14979   ac_status=$?
14980   grep -v '^ *+' conftest.er1 >conftest.err
14981   rm -f conftest.er1
14982   cat conftest.err >&5
14983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984   (exit $ac_status); } >/dev/null; then
14985   if test -s conftest.err; then
14986     ac_cpp_err=$ac_c_preproc_warn_flag
14987   else
14988     ac_cpp_err=
14989   fi
14990 else
14991   ac_cpp_err=yes
14992 fi
14993 if test -z "$ac_cpp_err"; then
14994   ac_header_preproc=yes
14995 else
14996   echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.$ac_ext >&5
14998
14999   ac_header_preproc=no
15000 fi
15001 rm -f conftest.err conftest.$ac_ext
15002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15003 echo "${ECHO_T}$ac_header_preproc" >&6
15004
15005 # So?  What about this header?
15006 case $ac_header_compiler:$ac_header_preproc in
15007   yes:no )
15008     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15010     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15012     (
15013       cat <<\_ASBOX
15014 ## ------------------------------------ ##
15015 ## Report this to bug-autoconf@gnu.org. ##
15016 ## ------------------------------------ ##
15017 _ASBOX
15018     ) |
15019       sed "s/^/$as_me: WARNING:     /" >&2
15020     ;;
15021   no:yes )
15022     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15024     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15028     (
15029       cat <<\_ASBOX
15030 ## ------------------------------------ ##
15031 ## Report this to bug-autoconf@gnu.org. ##
15032 ## ------------------------------------ ##
15033 _ASBOX
15034     ) |
15035       sed "s/^/$as_me: WARNING:     /" >&2
15036     ;;
15037 esac
15038 echo "$as_me:$LINENO: checking for $ac_header" >&5
15039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15041   echo $ECHO_N "(cached) $ECHO_C" >&6
15042 else
15043   eval "$as_ac_Header=$ac_header_preproc"
15044 fi
15045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15047
15048 fi
15049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15050   cat >>confdefs.h <<_ACEOF
15051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15052 _ACEOF
15053
15054 fi
15055
15056 done
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069 for ac_header in string.h utmp.h utmpx.h sys/param.h
15070 do
15071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15073   echo "$as_me:$LINENO: checking for $ac_header" >&5
15074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15076   echo $ECHO_N "(cached) $ECHO_C" >&6
15077 fi
15078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15080 else
15081   # Is the header compilable?
15082 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15084 cat >conftest.$ac_ext <<_ACEOF
15085 #line $LINENO "configure"
15086 /* confdefs.h.  */
15087 _ACEOF
15088 cat confdefs.h >>conftest.$ac_ext
15089 cat >>conftest.$ac_ext <<_ACEOF
15090 /* end confdefs.h.  */
15091 $ac_includes_default
15092 #include <$ac_header>
15093 _ACEOF
15094 rm -f conftest.$ac_objext
15095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15096   (eval $ac_compile) 2>&5
15097   ac_status=$?
15098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099   (exit $ac_status); } &&
15100          { ac_try='test -s conftest.$ac_objext'
15101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15102   (eval $ac_try) 2>&5
15103   ac_status=$?
15104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105   (exit $ac_status); }; }; then
15106   ac_header_compiler=yes
15107 else
15108   echo "$as_me: failed program was:" >&5
15109 sed 's/^/| /' conftest.$ac_ext >&5
15110
15111 ac_header_compiler=no
15112 fi
15113 rm -f conftest.$ac_objext conftest.$ac_ext
15114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15115 echo "${ECHO_T}$ac_header_compiler" >&6
15116
15117 # Is the header present?
15118 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15120 cat >conftest.$ac_ext <<_ACEOF
15121 #line $LINENO "configure"
15122 /* confdefs.h.  */
15123 _ACEOF
15124 cat confdefs.h >>conftest.$ac_ext
15125 cat >>conftest.$ac_ext <<_ACEOF
15126 /* end confdefs.h.  */
15127 #include <$ac_header>
15128 _ACEOF
15129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15130   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15131   ac_status=$?
15132   grep -v '^ *+' conftest.er1 >conftest.err
15133   rm -f conftest.er1
15134   cat conftest.err >&5
15135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136   (exit $ac_status); } >/dev/null; then
15137   if test -s conftest.err; then
15138     ac_cpp_err=$ac_c_preproc_warn_flag
15139   else
15140     ac_cpp_err=
15141   fi
15142 else
15143   ac_cpp_err=yes
15144 fi
15145 if test -z "$ac_cpp_err"; then
15146   ac_header_preproc=yes
15147 else
15148   echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15150
15151   ac_header_preproc=no
15152 fi
15153 rm -f conftest.err conftest.$ac_ext
15154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15155 echo "${ECHO_T}$ac_header_preproc" >&6
15156
15157 # So?  What about this header?
15158 case $ac_header_compiler:$ac_header_preproc in
15159   yes:no )
15160     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15161 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15162     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15164     (
15165       cat <<\_ASBOX
15166 ## ------------------------------------ ##
15167 ## Report this to bug-autoconf@gnu.org. ##
15168 ## ------------------------------------ ##
15169 _ASBOX
15170     ) |
15171       sed "s/^/$as_me: WARNING:     /" >&2
15172     ;;
15173   no:yes )
15174     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15176     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15178     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15180     (
15181       cat <<\_ASBOX
15182 ## ------------------------------------ ##
15183 ## Report this to bug-autoconf@gnu.org. ##
15184 ## ------------------------------------ ##
15185 _ASBOX
15186     ) |
15187       sed "s/^/$as_me: WARNING:     /" >&2
15188     ;;
15189 esac
15190 echo "$as_me:$LINENO: checking for $ac_header" >&5
15191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15193   echo $ECHO_N "(cached) $ECHO_C" >&6
15194 else
15195   eval "$as_ac_Header=$ac_header_preproc"
15196 fi
15197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15199
15200 fi
15201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15202   cat >>confdefs.h <<_ACEOF
15203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15204 _ACEOF
15205
15206 fi
15207
15208 done
15209
15210
15211 for ac_func in utmpname
15212 do
15213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15214 echo "$as_me:$LINENO: checking for $ac_func" >&5
15215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15216 if eval "test \"\${$as_ac_var+set}\" = set"; then
15217   echo $ECHO_N "(cached) $ECHO_C" >&6
15218 else
15219   cat >conftest.$ac_ext <<_ACEOF
15220 #line $LINENO "configure"
15221 /* confdefs.h.  */
15222 _ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h.  */
15226 /* System header to define __stub macros and hopefully few prototypes,
15227     which can conflict with char $ac_func (); below.
15228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15229     <limits.h> exists even on freestanding compilers.  */
15230 #ifdef __STDC__
15231 # include <limits.h>
15232 #else
15233 # include <assert.h>
15234 #endif
15235 /* Override any gcc2 internal prototype to avoid an error.  */
15236 #ifdef __cplusplus
15237 extern "C"
15238 {
15239 #endif
15240 /* We use char because int might match the return type of a gcc2
15241    builtin and then its argument prototype would still apply.  */
15242 char $ac_func ();
15243 /* The GNU C library defines this for functions which it implements
15244     to always fail with ENOSYS.  Some functions are actually named
15245     something starting with __ and the normal name is an alias.  */
15246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15247 choke me
15248 #else
15249 char (*f) () = $ac_func;
15250 #endif
15251 #ifdef __cplusplus
15252 }
15253 #endif
15254
15255 int
15256 main ()
15257 {
15258 return f != $ac_func;
15259   ;
15260   return 0;
15261 }
15262 _ACEOF
15263 rm -f conftest.$ac_objext conftest$ac_exeext
15264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15265   (eval $ac_link) 2>&5
15266   ac_status=$?
15267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268   (exit $ac_status); } &&
15269          { ac_try='test -s conftest$ac_exeext'
15270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271   (eval $ac_try) 2>&5
15272   ac_status=$?
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); }; }; then
15275   eval "$as_ac_var=yes"
15276 else
15277   echo "$as_me: failed program was:" >&5
15278 sed 's/^/| /' conftest.$ac_ext >&5
15279
15280 eval "$as_ac_var=no"
15281 fi
15282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15283 fi
15284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15286 if test `eval echo '${'$as_ac_var'}'` = yes; then
15287   cat >>confdefs.h <<_ACEOF
15288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15289 _ACEOF
15290
15291 fi
15292 done
15293
15294
15295 for ac_func in utmpxname
15296 do
15297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15298 echo "$as_me:$LINENO: checking for $ac_func" >&5
15299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15300 if eval "test \"\${$as_ac_var+set}\" = set"; then
15301   echo $ECHO_N "(cached) $ECHO_C" >&6
15302 else
15303   cat >conftest.$ac_ext <<_ACEOF
15304 #line $LINENO "configure"
15305 /* confdefs.h.  */
15306 _ACEOF
15307 cat confdefs.h >>conftest.$ac_ext
15308 cat >>conftest.$ac_ext <<_ACEOF
15309 /* end confdefs.h.  */
15310 /* System header to define __stub macros and hopefully few prototypes,
15311     which can conflict with char $ac_func (); below.
15312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15313     <limits.h> exists even on freestanding compilers.  */
15314 #ifdef __STDC__
15315 # include <limits.h>
15316 #else
15317 # include <assert.h>
15318 #endif
15319 /* Override any gcc2 internal prototype to avoid an error.  */
15320 #ifdef __cplusplus
15321 extern "C"
15322 {
15323 #endif
15324 /* We use char because int might match the return type of a gcc2
15325    builtin and then its argument prototype would still apply.  */
15326 char $ac_func ();
15327 /* The GNU C library defines this for functions which it implements
15328     to always fail with ENOSYS.  Some functions are actually named
15329     something starting with __ and the normal name is an alias.  */
15330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15331 choke me
15332 #else
15333 char (*f) () = $ac_func;
15334 #endif
15335 #ifdef __cplusplus
15336 }
15337 #endif
15338
15339 int
15340 main ()
15341 {
15342 return f != $ac_func;
15343   ;
15344   return 0;
15345 }
15346 _ACEOF
15347 rm -f conftest.$ac_objext conftest$ac_exeext
15348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15349   (eval $ac_link) 2>&5
15350   ac_status=$?
15351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352   (exit $ac_status); } &&
15353          { ac_try='test -s conftest$ac_exeext'
15354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355   (eval $ac_try) 2>&5
15356   ac_status=$?
15357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358   (exit $ac_status); }; }; then
15359   eval "$as_ac_var=yes"
15360 else
15361   echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15363
15364 eval "$as_ac_var=no"
15365 fi
15366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15367 fi
15368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15370 if test `eval echo '${'$as_ac_var'}'` = yes; then
15371   cat >>confdefs.h <<_ACEOF
15372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15373 _ACEOF
15374
15375 fi
15376 done
15377
15378
15379
15380   if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
15381     utmp_includes="\
15382 $ac_includes_default
15383 #ifdef HAVE_UTMPX_H
15384 # include <utmpx.h>
15385 #endif
15386 #ifdef HAVE_UTMP_H
15387 # include <utmp.h>
15388 #endif
15389 "
15390     echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
15391 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6
15392 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
15393   echo $ECHO_N "(cached) $ECHO_C" >&6
15394 else
15395   cat >conftest.$ac_ext <<_ACEOF
15396 #line $LINENO "configure"
15397 /* confdefs.h.  */
15398 _ACEOF
15399 cat confdefs.h >>conftest.$ac_ext
15400 cat >>conftest.$ac_ext <<_ACEOF
15401 /* end confdefs.h.  */
15402 $utmp_includes
15403
15404 int
15405 main ()
15406 {
15407 static struct utmpx ac_aggr;
15408 if (ac_aggr.ut_user)
15409 return 0;
15410   ;
15411   return 0;
15412 }
15413 _ACEOF
15414 rm -f conftest.$ac_objext
15415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15416   (eval $ac_compile) 2>&5
15417   ac_status=$?
15418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419   (exit $ac_status); } &&
15420          { ac_try='test -s conftest.$ac_objext'
15421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422   (eval $ac_try) 2>&5
15423   ac_status=$?
15424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425   (exit $ac_status); }; }; then
15426   ac_cv_member_struct_utmpx_ut_user=yes
15427 else
15428   echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15430
15431 cat >conftest.$ac_ext <<_ACEOF
15432 #line $LINENO "configure"
15433 /* confdefs.h.  */
15434 _ACEOF
15435 cat confdefs.h >>conftest.$ac_ext
15436 cat >>conftest.$ac_ext <<_ACEOF
15437 /* end confdefs.h.  */
15438 $utmp_includes
15439
15440 int
15441 main ()
15442 {
15443 static struct utmpx ac_aggr;
15444 if (sizeof ac_aggr.ut_user)
15445 return 0;
15446   ;
15447   return 0;
15448 }
15449 _ACEOF
15450 rm -f conftest.$ac_objext
15451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15452   (eval $ac_compile) 2>&5
15453   ac_status=$?
15454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455   (exit $ac_status); } &&
15456          { ac_try='test -s conftest.$ac_objext'
15457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15458   (eval $ac_try) 2>&5
15459   ac_status=$?
15460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461   (exit $ac_status); }; }; then
15462   ac_cv_member_struct_utmpx_ut_user=yes
15463 else
15464   echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15466
15467 ac_cv_member_struct_utmpx_ut_user=no
15468 fi
15469 rm -f conftest.$ac_objext conftest.$ac_ext
15470 fi
15471 rm -f conftest.$ac_objext conftest.$ac_ext
15472 fi
15473 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
15474 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6
15475 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
15476
15477 cat >>confdefs.h <<_ACEOF
15478 #define HAVE_STRUCT_UTMPX_UT_USER 1
15479 _ACEOF
15480
15481
15482 fi
15483
15484     echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
15485 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6
15486 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
15487   echo $ECHO_N "(cached) $ECHO_C" >&6
15488 else
15489   cat >conftest.$ac_ext <<_ACEOF
15490 #line $LINENO "configure"
15491 /* confdefs.h.  */
15492 _ACEOF
15493 cat confdefs.h >>conftest.$ac_ext
15494 cat >>conftest.$ac_ext <<_ACEOF
15495 /* end confdefs.h.  */
15496 $utmp_includes
15497
15498 int
15499 main ()
15500 {
15501 static struct utmp ac_aggr;
15502 if (ac_aggr.ut_user)
15503 return 0;
15504   ;
15505   return 0;
15506 }
15507 _ACEOF
15508 rm -f conftest.$ac_objext
15509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15510   (eval $ac_compile) 2>&5
15511   ac_status=$?
15512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513   (exit $ac_status); } &&
15514          { ac_try='test -s conftest.$ac_objext'
15515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516   (eval $ac_try) 2>&5
15517   ac_status=$?
15518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519   (exit $ac_status); }; }; then
15520   ac_cv_member_struct_utmp_ut_user=yes
15521 else
15522   echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15524
15525 cat >conftest.$ac_ext <<_ACEOF
15526 #line $LINENO "configure"
15527 /* confdefs.h.  */
15528 _ACEOF
15529 cat confdefs.h >>conftest.$ac_ext
15530 cat >>conftest.$ac_ext <<_ACEOF
15531 /* end confdefs.h.  */
15532 $utmp_includes
15533
15534 int
15535 main ()
15536 {
15537 static struct utmp ac_aggr;
15538 if (sizeof ac_aggr.ut_user)
15539 return 0;
15540   ;
15541   return 0;
15542 }
15543 _ACEOF
15544 rm -f conftest.$ac_objext
15545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15546   (eval $ac_compile) 2>&5
15547   ac_status=$?
15548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549   (exit $ac_status); } &&
15550          { ac_try='test -s conftest.$ac_objext'
15551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552   (eval $ac_try) 2>&5
15553   ac_status=$?
15554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555   (exit $ac_status); }; }; then
15556   ac_cv_member_struct_utmp_ut_user=yes
15557 else
15558   echo "$as_me: failed program was:" >&5
15559 sed 's/^/| /' conftest.$ac_ext >&5
15560
15561 ac_cv_member_struct_utmp_ut_user=no
15562 fi
15563 rm -f conftest.$ac_objext conftest.$ac_ext
15564 fi
15565 rm -f conftest.$ac_objext conftest.$ac_ext
15566 fi
15567 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
15568 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6
15569 if test $ac_cv_member_struct_utmp_ut_user = yes; then
15570
15571 cat >>confdefs.h <<_ACEOF
15572 #define HAVE_STRUCT_UTMP_UT_USER 1
15573 _ACEOF
15574
15575
15576 fi
15577
15578     echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
15579 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6
15580 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
15581   echo $ECHO_N "(cached) $ECHO_C" >&6
15582 else
15583   cat >conftest.$ac_ext <<_ACEOF
15584 #line $LINENO "configure"
15585 /* confdefs.h.  */
15586 _ACEOF
15587 cat confdefs.h >>conftest.$ac_ext
15588 cat >>conftest.$ac_ext <<_ACEOF
15589 /* end confdefs.h.  */
15590 $utmp_includes
15591
15592 int
15593 main ()
15594 {
15595 static struct utmpx ac_aggr;
15596 if (ac_aggr.ut_name)
15597 return 0;
15598   ;
15599   return 0;
15600 }
15601 _ACEOF
15602 rm -f conftest.$ac_objext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15604   (eval $ac_compile) 2>&5
15605   ac_status=$?
15606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607   (exit $ac_status); } &&
15608          { ac_try='test -s conftest.$ac_objext'
15609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15610   (eval $ac_try) 2>&5
15611   ac_status=$?
15612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613   (exit $ac_status); }; }; then
15614   ac_cv_member_struct_utmpx_ut_name=yes
15615 else
15616   echo "$as_me: failed program was:" >&5
15617 sed 's/^/| /' conftest.$ac_ext >&5
15618
15619 cat >conftest.$ac_ext <<_ACEOF
15620 #line $LINENO "configure"
15621 /* confdefs.h.  */
15622 _ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h.  */
15626 $utmp_includes
15627
15628 int
15629 main ()
15630 {
15631 static struct utmpx ac_aggr;
15632 if (sizeof ac_aggr.ut_name)
15633 return 0;
15634   ;
15635   return 0;
15636 }
15637 _ACEOF
15638 rm -f conftest.$ac_objext
15639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15640   (eval $ac_compile) 2>&5
15641   ac_status=$?
15642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643   (exit $ac_status); } &&
15644          { ac_try='test -s conftest.$ac_objext'
15645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646   (eval $ac_try) 2>&5
15647   ac_status=$?
15648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649   (exit $ac_status); }; }; then
15650   ac_cv_member_struct_utmpx_ut_name=yes
15651 else
15652   echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15654
15655 ac_cv_member_struct_utmpx_ut_name=no
15656 fi
15657 rm -f conftest.$ac_objext conftest.$ac_ext
15658 fi
15659 rm -f conftest.$ac_objext conftest.$ac_ext
15660 fi
15661 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
15662 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6
15663 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
15664
15665 cat >>confdefs.h <<_ACEOF
15666 #define HAVE_STRUCT_UTMPX_UT_NAME 1
15667 _ACEOF
15668
15669
15670 fi
15671
15672     echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
15673 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6
15674 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
15675   echo $ECHO_N "(cached) $ECHO_C" >&6
15676 else
15677   cat >conftest.$ac_ext <<_ACEOF
15678 #line $LINENO "configure"
15679 /* confdefs.h.  */
15680 _ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h.  */
15684 $utmp_includes
15685
15686 int
15687 main ()
15688 {
15689 static struct utmp ac_aggr;
15690 if (ac_aggr.ut_name)
15691 return 0;
15692   ;
15693   return 0;
15694 }
15695 _ACEOF
15696 rm -f conftest.$ac_objext
15697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15698   (eval $ac_compile) 2>&5
15699   ac_status=$?
15700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701   (exit $ac_status); } &&
15702          { ac_try='test -s conftest.$ac_objext'
15703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704   (eval $ac_try) 2>&5
15705   ac_status=$?
15706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707   (exit $ac_status); }; }; then
15708   ac_cv_member_struct_utmp_ut_name=yes
15709 else
15710   echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15712
15713 cat >conftest.$ac_ext <<_ACEOF
15714 #line $LINENO "configure"
15715 /* confdefs.h.  */
15716 _ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h.  */
15720 $utmp_includes
15721
15722 int
15723 main ()
15724 {
15725 static struct utmp ac_aggr;
15726 if (sizeof ac_aggr.ut_name)
15727 return 0;
15728   ;
15729   return 0;
15730 }
15731 _ACEOF
15732 rm -f conftest.$ac_objext
15733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15734   (eval $ac_compile) 2>&5
15735   ac_status=$?
15736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737   (exit $ac_status); } &&
15738          { ac_try='test -s conftest.$ac_objext'
15739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740   (eval $ac_try) 2>&5
15741   ac_status=$?
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); }; }; then
15744   ac_cv_member_struct_utmp_ut_name=yes
15745 else
15746   echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15748
15749 ac_cv_member_struct_utmp_ut_name=no
15750 fi
15751 rm -f conftest.$ac_objext conftest.$ac_ext
15752 fi
15753 rm -f conftest.$ac_objext conftest.$ac_ext
15754 fi
15755 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
15756 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6
15757 if test $ac_cv_member_struct_utmp_ut_name = yes; then
15758
15759 cat >>confdefs.h <<_ACEOF
15760 #define HAVE_STRUCT_UTMP_UT_NAME 1
15761 _ACEOF
15762
15763
15764 fi
15765
15766     echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
15767 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6
15768 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
15769   echo $ECHO_N "(cached) $ECHO_C" >&6
15770 else
15771   cat >conftest.$ac_ext <<_ACEOF
15772 #line $LINENO "configure"
15773 /* confdefs.h.  */
15774 _ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h.  */
15778 $utmp_includes
15779
15780 int
15781 main ()
15782 {
15783 static struct utmpx ac_aggr;
15784 if (ac_aggr.ut_type)
15785 return 0;
15786   ;
15787   return 0;
15788 }
15789 _ACEOF
15790 rm -f conftest.$ac_objext
15791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15792   (eval $ac_compile) 2>&5
15793   ac_status=$?
15794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795   (exit $ac_status); } &&
15796          { ac_try='test -s conftest.$ac_objext'
15797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798   (eval $ac_try) 2>&5
15799   ac_status=$?
15800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801   (exit $ac_status); }; }; then
15802   ac_cv_member_struct_utmpx_ut_type=yes
15803 else
15804   echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15806
15807 cat >conftest.$ac_ext <<_ACEOF
15808 #line $LINENO "configure"
15809 /* confdefs.h.  */
15810 _ACEOF
15811 cat confdefs.h >>conftest.$ac_ext
15812 cat >>conftest.$ac_ext <<_ACEOF
15813 /* end confdefs.h.  */
15814 $utmp_includes
15815
15816 int
15817 main ()
15818 {
15819 static struct utmpx ac_aggr;
15820 if (sizeof ac_aggr.ut_type)
15821 return 0;
15822   ;
15823   return 0;
15824 }
15825 _ACEOF
15826 rm -f conftest.$ac_objext
15827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15828   (eval $ac_compile) 2>&5
15829   ac_status=$?
15830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831   (exit $ac_status); } &&
15832          { ac_try='test -s conftest.$ac_objext'
15833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15834   (eval $ac_try) 2>&5
15835   ac_status=$?
15836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837   (exit $ac_status); }; }; then
15838   ac_cv_member_struct_utmpx_ut_type=yes
15839 else
15840   echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15842
15843 ac_cv_member_struct_utmpx_ut_type=no
15844 fi
15845 rm -f conftest.$ac_objext conftest.$ac_ext
15846 fi
15847 rm -f conftest.$ac_objext conftest.$ac_ext
15848 fi
15849 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
15850 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6
15851 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
15852
15853 cat >>confdefs.h <<_ACEOF
15854 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
15855 _ACEOF
15856
15857
15858 fi
15859
15860     echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
15861 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6
15862 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
15863   echo $ECHO_N "(cached) $ECHO_C" >&6
15864 else
15865   cat >conftest.$ac_ext <<_ACEOF
15866 #line $LINENO "configure"
15867 /* confdefs.h.  */
15868 _ACEOF
15869 cat confdefs.h >>conftest.$ac_ext
15870 cat >>conftest.$ac_ext <<_ACEOF
15871 /* end confdefs.h.  */
15872 $utmp_includes
15873
15874 int
15875 main ()
15876 {
15877 static struct utmp ac_aggr;
15878 if (ac_aggr.ut_type)
15879 return 0;
15880   ;
15881   return 0;
15882 }
15883 _ACEOF
15884 rm -f conftest.$ac_objext
15885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15886   (eval $ac_compile) 2>&5
15887   ac_status=$?
15888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889   (exit $ac_status); } &&
15890          { ac_try='test -s conftest.$ac_objext'
15891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892   (eval $ac_try) 2>&5
15893   ac_status=$?
15894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895   (exit $ac_status); }; }; then
15896   ac_cv_member_struct_utmp_ut_type=yes
15897 else
15898   echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.$ac_ext >&5
15900
15901 cat >conftest.$ac_ext <<_ACEOF
15902 #line $LINENO "configure"
15903 /* confdefs.h.  */
15904 _ACEOF
15905 cat confdefs.h >>conftest.$ac_ext
15906 cat >>conftest.$ac_ext <<_ACEOF
15907 /* end confdefs.h.  */
15908 $utmp_includes
15909
15910 int
15911 main ()
15912 {
15913 static struct utmp ac_aggr;
15914 if (sizeof ac_aggr.ut_type)
15915 return 0;
15916   ;
15917   return 0;
15918 }
15919 _ACEOF
15920 rm -f conftest.$ac_objext
15921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15922   (eval $ac_compile) 2>&5
15923   ac_status=$?
15924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925   (exit $ac_status); } &&
15926          { ac_try='test -s conftest.$ac_objext'
15927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15928   (eval $ac_try) 2>&5
15929   ac_status=$?
15930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931   (exit $ac_status); }; }; then
15932   ac_cv_member_struct_utmp_ut_type=yes
15933 else
15934   echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15936
15937 ac_cv_member_struct_utmp_ut_type=no
15938 fi
15939 rm -f conftest.$ac_objext conftest.$ac_ext
15940 fi
15941 rm -f conftest.$ac_objext conftest.$ac_ext
15942 fi
15943 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
15944 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6
15945 if test $ac_cv_member_struct_utmp_ut_type = yes; then
15946
15947 cat >>confdefs.h <<_ACEOF
15948 #define HAVE_STRUCT_UTMP_UT_TYPE 1
15949 _ACEOF
15950
15951
15952 fi
15953
15954     echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
15955 echo $ECHO_N "checking for struct utmpx.ut_pid... $ECHO_C" >&6
15956 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
15957   echo $ECHO_N "(cached) $ECHO_C" >&6
15958 else
15959   cat >conftest.$ac_ext <<_ACEOF
15960 #line $LINENO "configure"
15961 /* confdefs.h.  */
15962 _ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h.  */
15966 $utmp_includes
15967
15968 int
15969 main ()
15970 {
15971 static struct utmpx ac_aggr;
15972 if (ac_aggr.ut_pid)
15973 return 0;
15974   ;
15975   return 0;
15976 }
15977 _ACEOF
15978 rm -f conftest.$ac_objext
15979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15980   (eval $ac_compile) 2>&5
15981   ac_status=$?
15982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983   (exit $ac_status); } &&
15984          { ac_try='test -s conftest.$ac_objext'
15985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986   (eval $ac_try) 2>&5
15987   ac_status=$?
15988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989   (exit $ac_status); }; }; then
15990   ac_cv_member_struct_utmpx_ut_pid=yes
15991 else
15992   echo "$as_me: failed program was:" >&5
15993 sed 's/^/| /' conftest.$ac_ext >&5
15994
15995 cat >conftest.$ac_ext <<_ACEOF
15996 #line $LINENO "configure"
15997 /* confdefs.h.  */
15998 _ACEOF
15999 cat confdefs.h >>conftest.$ac_ext
16000 cat >>conftest.$ac_ext <<_ACEOF
16001 /* end confdefs.h.  */
16002 $utmp_includes
16003
16004 int
16005 main ()
16006 {
16007 static struct utmpx ac_aggr;
16008 if (sizeof ac_aggr.ut_pid)
16009 return 0;
16010   ;
16011   return 0;
16012 }
16013 _ACEOF
16014 rm -f conftest.$ac_objext
16015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16016   (eval $ac_compile) 2>&5
16017   ac_status=$?
16018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019   (exit $ac_status); } &&
16020          { ac_try='test -s conftest.$ac_objext'
16021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022   (eval $ac_try) 2>&5
16023   ac_status=$?
16024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025   (exit $ac_status); }; }; then
16026   ac_cv_member_struct_utmpx_ut_pid=yes
16027 else
16028   echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.$ac_ext >&5
16030
16031 ac_cv_member_struct_utmpx_ut_pid=no
16032 fi
16033 rm -f conftest.$ac_objext conftest.$ac_ext
16034 fi
16035 rm -f conftest.$ac_objext conftest.$ac_ext
16036 fi
16037 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
16038 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_pid" >&6
16039 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
16040
16041 cat >>confdefs.h <<_ACEOF
16042 #define HAVE_STRUCT_UTMPX_UT_PID 1
16043 _ACEOF
16044
16045
16046 fi
16047
16048     echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
16049 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6
16050 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
16051   echo $ECHO_N "(cached) $ECHO_C" >&6
16052 else
16053   cat >conftest.$ac_ext <<_ACEOF
16054 #line $LINENO "configure"
16055 /* confdefs.h.  */
16056 _ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h.  */
16060 $utmp_includes
16061
16062 int
16063 main ()
16064 {
16065 static struct utmp ac_aggr;
16066 if (ac_aggr.ut_pid)
16067 return 0;
16068   ;
16069   return 0;
16070 }
16071 _ACEOF
16072 rm -f conftest.$ac_objext
16073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16074   (eval $ac_compile) 2>&5
16075   ac_status=$?
16076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077   (exit $ac_status); } &&
16078          { ac_try='test -s conftest.$ac_objext'
16079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080   (eval $ac_try) 2>&5
16081   ac_status=$?
16082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083   (exit $ac_status); }; }; then
16084   ac_cv_member_struct_utmp_ut_pid=yes
16085 else
16086   echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16088
16089 cat >conftest.$ac_ext <<_ACEOF
16090 #line $LINENO "configure"
16091 /* confdefs.h.  */
16092 _ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h.  */
16096 $utmp_includes
16097
16098 int
16099 main ()
16100 {
16101 static struct utmp ac_aggr;
16102 if (sizeof ac_aggr.ut_pid)
16103 return 0;
16104   ;
16105   return 0;
16106 }
16107 _ACEOF
16108 rm -f conftest.$ac_objext
16109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16110   (eval $ac_compile) 2>&5
16111   ac_status=$?
16112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113   (exit $ac_status); } &&
16114          { ac_try='test -s conftest.$ac_objext'
16115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116   (eval $ac_try) 2>&5
16117   ac_status=$?
16118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119   (exit $ac_status); }; }; then
16120   ac_cv_member_struct_utmp_ut_pid=yes
16121 else
16122   echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16124
16125 ac_cv_member_struct_utmp_ut_pid=no
16126 fi
16127 rm -f conftest.$ac_objext conftest.$ac_ext
16128 fi
16129 rm -f conftest.$ac_objext conftest.$ac_ext
16130 fi
16131 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
16132 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6
16133 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
16134
16135 cat >>confdefs.h <<_ACEOF
16136 #define HAVE_STRUCT_UTMP_UT_PID 1
16137 _ACEOF
16138
16139
16140 fi
16141
16142     echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
16143 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6
16144 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
16145   echo $ECHO_N "(cached) $ECHO_C" >&6
16146 else
16147   cat >conftest.$ac_ext <<_ACEOF
16148 #line $LINENO "configure"
16149 /* confdefs.h.  */
16150 _ACEOF
16151 cat confdefs.h >>conftest.$ac_ext
16152 cat >>conftest.$ac_ext <<_ACEOF
16153 /* end confdefs.h.  */
16154 $utmp_includes
16155
16156 int
16157 main ()
16158 {
16159 static struct utmpx ac_aggr;
16160 if (ac_aggr.ut_id)
16161 return 0;
16162   ;
16163   return 0;
16164 }
16165 _ACEOF
16166 rm -f conftest.$ac_objext
16167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16168   (eval $ac_compile) 2>&5
16169   ac_status=$?
16170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171   (exit $ac_status); } &&
16172          { ac_try='test -s conftest.$ac_objext'
16173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174   (eval $ac_try) 2>&5
16175   ac_status=$?
16176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177   (exit $ac_status); }; }; then
16178   ac_cv_member_struct_utmpx_ut_id=yes
16179 else
16180   echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16182
16183 cat >conftest.$ac_ext <<_ACEOF
16184 #line $LINENO "configure"
16185 /* confdefs.h.  */
16186 _ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h.  */
16190 $utmp_includes
16191
16192 int
16193 main ()
16194 {
16195 static struct utmpx ac_aggr;
16196 if (sizeof ac_aggr.ut_id)
16197 return 0;
16198   ;
16199   return 0;
16200 }
16201 _ACEOF
16202 rm -f conftest.$ac_objext
16203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16204   (eval $ac_compile) 2>&5
16205   ac_status=$?
16206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207   (exit $ac_status); } &&
16208          { ac_try='test -s conftest.$ac_objext'
16209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210   (eval $ac_try) 2>&5
16211   ac_status=$?
16212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213   (exit $ac_status); }; }; then
16214   ac_cv_member_struct_utmpx_ut_id=yes
16215 else
16216   echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16218
16219 ac_cv_member_struct_utmpx_ut_id=no
16220 fi
16221 rm -f conftest.$ac_objext conftest.$ac_ext
16222 fi
16223 rm -f conftest.$ac_objext conftest.$ac_ext
16224 fi
16225 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
16226 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6
16227 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
16228
16229 cat >>confdefs.h <<_ACEOF
16230 #define HAVE_STRUCT_UTMPX_UT_ID 1
16231 _ACEOF
16232
16233
16234 fi
16235
16236     echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
16237 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6
16238 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
16239   echo $ECHO_N "(cached) $ECHO_C" >&6
16240 else
16241   cat >conftest.$ac_ext <<_ACEOF
16242 #line $LINENO "configure"
16243 /* confdefs.h.  */
16244 _ACEOF
16245 cat confdefs.h >>conftest.$ac_ext
16246 cat >>conftest.$ac_ext <<_ACEOF
16247 /* end confdefs.h.  */
16248 $utmp_includes
16249
16250 int
16251 main ()
16252 {
16253 static struct utmp ac_aggr;
16254 if (ac_aggr.ut_id)
16255 return 0;
16256   ;
16257   return 0;
16258 }
16259 _ACEOF
16260 rm -f conftest.$ac_objext
16261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16262   (eval $ac_compile) 2>&5
16263   ac_status=$?
16264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265   (exit $ac_status); } &&
16266          { ac_try='test -s conftest.$ac_objext'
16267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268   (eval $ac_try) 2>&5
16269   ac_status=$?
16270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271   (exit $ac_status); }; }; then
16272   ac_cv_member_struct_utmp_ut_id=yes
16273 else
16274   echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16276
16277 cat >conftest.$ac_ext <<_ACEOF
16278 #line $LINENO "configure"
16279 /* confdefs.h.  */
16280 _ACEOF
16281 cat confdefs.h >>conftest.$ac_ext
16282 cat >>conftest.$ac_ext <<_ACEOF
16283 /* end confdefs.h.  */
16284 $utmp_includes
16285
16286 int
16287 main ()
16288 {
16289 static struct utmp ac_aggr;
16290 if (sizeof ac_aggr.ut_id)
16291 return 0;
16292   ;
16293   return 0;
16294 }
16295 _ACEOF
16296 rm -f conftest.$ac_objext
16297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16298   (eval $ac_compile) 2>&5
16299   ac_status=$?
16300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301   (exit $ac_status); } &&
16302          { ac_try='test -s conftest.$ac_objext'
16303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304   (eval $ac_try) 2>&5
16305   ac_status=$?
16306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307   (exit $ac_status); }; }; then
16308   ac_cv_member_struct_utmp_ut_id=yes
16309 else
16310   echo "$as_me: failed program was:" >&5
16311 sed 's/^/| /' conftest.$ac_ext >&5
16312
16313 ac_cv_member_struct_utmp_ut_id=no
16314 fi
16315 rm -f conftest.$ac_objext conftest.$ac_ext
16316 fi
16317 rm -f conftest.$ac_objext conftest.$ac_ext
16318 fi
16319 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
16320 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6
16321 if test $ac_cv_member_struct_utmp_ut_id = yes; then
16322
16323 cat >>confdefs.h <<_ACEOF
16324 #define HAVE_STRUCT_UTMP_UT_ID 1
16325 _ACEOF
16326
16327
16328 fi
16329
16330
16331     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
16332 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_exit... $ECHO_C" >&6
16333 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
16334   echo $ECHO_N "(cached) $ECHO_C" >&6
16335 else
16336   cat >conftest.$ac_ext <<_ACEOF
16337 #line $LINENO "configure"
16338 /* confdefs.h.  */
16339 _ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h.  */
16343 $utmp_includes
16344
16345 int
16346 main ()
16347 {
16348 static struct utmpx ac_aggr;
16349 if (ac_aggr.ut_exit.ut_exit)
16350 return 0;
16351   ;
16352   return 0;
16353 }
16354 _ACEOF
16355 rm -f conftest.$ac_objext
16356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16357   (eval $ac_compile) 2>&5
16358   ac_status=$?
16359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360   (exit $ac_status); } &&
16361          { ac_try='test -s conftest.$ac_objext'
16362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363   (eval $ac_try) 2>&5
16364   ac_status=$?
16365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366   (exit $ac_status); }; }; then
16367   ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
16368 else
16369   echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16371
16372 cat >conftest.$ac_ext <<_ACEOF
16373 #line $LINENO "configure"
16374 /* confdefs.h.  */
16375 _ACEOF
16376 cat confdefs.h >>conftest.$ac_ext
16377 cat >>conftest.$ac_ext <<_ACEOF
16378 /* end confdefs.h.  */
16379 $utmp_includes
16380
16381 int
16382 main ()
16383 {
16384 static struct utmpx ac_aggr;
16385 if (sizeof ac_aggr.ut_exit.ut_exit)
16386 return 0;
16387   ;
16388   return 0;
16389 }
16390 _ACEOF
16391 rm -f conftest.$ac_objext
16392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16393   (eval $ac_compile) 2>&5
16394   ac_status=$?
16395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396   (exit $ac_status); } &&
16397          { ac_try='test -s conftest.$ac_objext'
16398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399   (eval $ac_try) 2>&5
16400   ac_status=$?
16401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402   (exit $ac_status); }; }; then
16403   ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
16404 else
16405   echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.$ac_ext >&5
16407
16408 ac_cv_member_struct_utmpx_ut_exit_ut_exit=no
16409 fi
16410 rm -f conftest.$ac_objext conftest.$ac_ext
16411 fi
16412 rm -f conftest.$ac_objext conftest.$ac_ext
16413 fi
16414 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
16415 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6
16416 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
16417
16418 cat >>confdefs.h <<_ACEOF
16419 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
16420 _ACEOF
16421
16422
16423 fi
16424
16425     echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
16426 echo $ECHO_N "checking for struct utmp.ut_exit.ut_exit... $ECHO_C" >&6
16427 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
16428   echo $ECHO_N "(cached) $ECHO_C" >&6
16429 else
16430   cat >conftest.$ac_ext <<_ACEOF
16431 #line $LINENO "configure"
16432 /* confdefs.h.  */
16433 _ACEOF
16434 cat confdefs.h >>conftest.$ac_ext
16435 cat >>conftest.$ac_ext <<_ACEOF
16436 /* end confdefs.h.  */
16437 $utmp_includes
16438
16439 int
16440 main ()
16441 {
16442 static struct utmp ac_aggr;
16443 if (ac_aggr.ut_exit.ut_exit)
16444 return 0;
16445   ;
16446   return 0;
16447 }
16448 _ACEOF
16449 rm -f conftest.$ac_objext
16450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16451   (eval $ac_compile) 2>&5
16452   ac_status=$?
16453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454   (exit $ac_status); } &&
16455          { ac_try='test -s conftest.$ac_objext'
16456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457   (eval $ac_try) 2>&5
16458   ac_status=$?
16459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460   (exit $ac_status); }; }; then
16461   ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
16462 else
16463   echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16465
16466 cat >conftest.$ac_ext <<_ACEOF
16467 #line $LINENO "configure"
16468 /* confdefs.h.  */
16469 _ACEOF
16470 cat confdefs.h >>conftest.$ac_ext
16471 cat >>conftest.$ac_ext <<_ACEOF
16472 /* end confdefs.h.  */
16473 $utmp_includes
16474
16475 int
16476 main ()
16477 {
16478 static struct utmp ac_aggr;
16479 if (sizeof ac_aggr.ut_exit.ut_exit)
16480 return 0;
16481   ;
16482   return 0;
16483 }
16484 _ACEOF
16485 rm -f conftest.$ac_objext
16486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16487   (eval $ac_compile) 2>&5
16488   ac_status=$?
16489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490   (exit $ac_status); } &&
16491          { ac_try='test -s conftest.$ac_objext'
16492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493   (eval $ac_try) 2>&5
16494   ac_status=$?
16495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496   (exit $ac_status); }; }; then
16497   ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
16498 else
16499   echo "$as_me: failed program was:" >&5
16500 sed 's/^/| /' conftest.$ac_ext >&5
16501
16502 ac_cv_member_struct_utmp_ut_exit_ut_exit=no
16503 fi
16504 rm -f conftest.$ac_objext conftest.$ac_ext
16505 fi
16506 rm -f conftest.$ac_objext conftest.$ac_ext
16507 fi
16508 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
16509 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6
16510 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
16511
16512 cat >>confdefs.h <<_ACEOF
16513 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
16514 _ACEOF
16515
16516
16517 fi
16518
16519     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
16520 echo $ECHO_N "checking for struct utmpx.ut_exit.e_exit... $ECHO_C" >&6
16521 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
16522   echo $ECHO_N "(cached) $ECHO_C" >&6
16523 else
16524   cat >conftest.$ac_ext <<_ACEOF
16525 #line $LINENO "configure"
16526 /* confdefs.h.  */
16527 _ACEOF
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h.  */
16531 $utmp_includes
16532
16533 int
16534 main ()
16535 {
16536 static struct utmpx ac_aggr;
16537 if (ac_aggr.ut_exit.e_exit)
16538 return 0;
16539   ;
16540   return 0;
16541 }
16542 _ACEOF
16543 rm -f conftest.$ac_objext
16544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16545   (eval $ac_compile) 2>&5
16546   ac_status=$?
16547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548   (exit $ac_status); } &&
16549          { ac_try='test -s conftest.$ac_objext'
16550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16551   (eval $ac_try) 2>&5
16552   ac_status=$?
16553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554   (exit $ac_status); }; }; then
16555   ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
16556 else
16557   echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16559
16560 cat >conftest.$ac_ext <<_ACEOF
16561 #line $LINENO "configure"
16562 /* confdefs.h.  */
16563 _ACEOF
16564 cat confdefs.h >>conftest.$ac_ext
16565 cat >>conftest.$ac_ext <<_ACEOF
16566 /* end confdefs.h.  */
16567 $utmp_includes
16568
16569 int
16570 main ()
16571 {
16572 static struct utmpx ac_aggr;
16573 if (sizeof ac_aggr.ut_exit.e_exit)
16574 return 0;
16575   ;
16576   return 0;
16577 }
16578 _ACEOF
16579 rm -f conftest.$ac_objext
16580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16581   (eval $ac_compile) 2>&5
16582   ac_status=$?
16583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584   (exit $ac_status); } &&
16585          { ac_try='test -s conftest.$ac_objext'
16586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587   (eval $ac_try) 2>&5
16588   ac_status=$?
16589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590   (exit $ac_status); }; }; then
16591   ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
16592 else
16593   echo "$as_me: failed program was:" >&5
16594 sed 's/^/| /' conftest.$ac_ext >&5
16595
16596 ac_cv_member_struct_utmpx_ut_exit_e_exit=no
16597 fi
16598 rm -f conftest.$ac_objext conftest.$ac_ext
16599 fi
16600 rm -f conftest.$ac_objext conftest.$ac_ext
16601 fi
16602 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
16603 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6
16604 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
16605
16606 cat >>confdefs.h <<_ACEOF
16607 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
16608 _ACEOF
16609
16610
16611 fi
16612
16613     echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
16614 echo $ECHO_N "checking for struct utmp.ut_exit.e_exit... $ECHO_C" >&6
16615 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
16616   echo $ECHO_N "(cached) $ECHO_C" >&6
16617 else
16618   cat >conftest.$ac_ext <<_ACEOF
16619 #line $LINENO "configure"
16620 /* confdefs.h.  */
16621 _ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h.  */
16625 $utmp_includes
16626
16627 int
16628 main ()
16629 {
16630 static struct utmp ac_aggr;
16631 if (ac_aggr.ut_exit.e_exit)
16632 return 0;
16633   ;
16634   return 0;
16635 }
16636 _ACEOF
16637 rm -f conftest.$ac_objext
16638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16639   (eval $ac_compile) 2>&5
16640   ac_status=$?
16641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642   (exit $ac_status); } &&
16643          { ac_try='test -s conftest.$ac_objext'
16644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645   (eval $ac_try) 2>&5
16646   ac_status=$?
16647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648   (exit $ac_status); }; }; then
16649   ac_cv_member_struct_utmp_ut_exit_e_exit=yes
16650 else
16651   echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16653
16654 cat >conftest.$ac_ext <<_ACEOF
16655 #line $LINENO "configure"
16656 /* confdefs.h.  */
16657 _ACEOF
16658 cat confdefs.h >>conftest.$ac_ext
16659 cat >>conftest.$ac_ext <<_ACEOF
16660 /* end confdefs.h.  */
16661 $utmp_includes
16662
16663 int
16664 main ()
16665 {
16666 static struct utmp ac_aggr;
16667 if (sizeof ac_aggr.ut_exit.e_exit)
16668 return 0;
16669   ;
16670   return 0;
16671 }
16672 _ACEOF
16673 rm -f conftest.$ac_objext
16674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16675   (eval $ac_compile) 2>&5
16676   ac_status=$?
16677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678   (exit $ac_status); } &&
16679          { ac_try='test -s conftest.$ac_objext'
16680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681   (eval $ac_try) 2>&5
16682   ac_status=$?
16683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684   (exit $ac_status); }; }; then
16685   ac_cv_member_struct_utmp_ut_exit_e_exit=yes
16686 else
16687   echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16689
16690 ac_cv_member_struct_utmp_ut_exit_e_exit=no
16691 fi
16692 rm -f conftest.$ac_objext conftest.$ac_ext
16693 fi
16694 rm -f conftest.$ac_objext conftest.$ac_ext
16695 fi
16696 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
16697 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6
16698 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
16699
16700 cat >>confdefs.h <<_ACEOF
16701 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
16702 _ACEOF
16703
16704
16705 fi
16706
16707
16708     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
16709 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_termination... $ECHO_C" >&6
16710 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
16711   echo $ECHO_N "(cached) $ECHO_C" >&6
16712 else
16713   cat >conftest.$ac_ext <<_ACEOF
16714 #line $LINENO "configure"
16715 /* confdefs.h.  */
16716 _ACEOF
16717 cat confdefs.h >>conftest.$ac_ext
16718 cat >>conftest.$ac_ext <<_ACEOF
16719 /* end confdefs.h.  */
16720 $utmp_includes
16721
16722 int
16723 main ()
16724 {
16725 static struct utmpx ac_aggr;
16726 if (ac_aggr.ut_exit.ut_termination)
16727 return 0;
16728   ;
16729   return 0;
16730 }
16731 _ACEOF
16732 rm -f conftest.$ac_objext
16733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16734   (eval $ac_compile) 2>&5
16735   ac_status=$?
16736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737   (exit $ac_status); } &&
16738          { ac_try='test -s conftest.$ac_objext'
16739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740   (eval $ac_try) 2>&5
16741   ac_status=$?
16742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743   (exit $ac_status); }; }; then
16744   ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
16745 else
16746   echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16748
16749 cat >conftest.$ac_ext <<_ACEOF
16750 #line $LINENO "configure"
16751 /* confdefs.h.  */
16752 _ACEOF
16753 cat confdefs.h >>conftest.$ac_ext
16754 cat >>conftest.$ac_ext <<_ACEOF
16755 /* end confdefs.h.  */
16756 $utmp_includes
16757
16758 int
16759 main ()
16760 {
16761 static struct utmpx ac_aggr;
16762 if (sizeof ac_aggr.ut_exit.ut_termination)
16763 return 0;
16764   ;
16765   return 0;
16766 }
16767 _ACEOF
16768 rm -f conftest.$ac_objext
16769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16770   (eval $ac_compile) 2>&5
16771   ac_status=$?
16772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773   (exit $ac_status); } &&
16774          { ac_try='test -s conftest.$ac_objext'
16775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776   (eval $ac_try) 2>&5
16777   ac_status=$?
16778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779   (exit $ac_status); }; }; then
16780   ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
16781 else
16782   echo "$as_me: failed program was:" >&5
16783 sed 's/^/| /' conftest.$ac_ext >&5
16784
16785 ac_cv_member_struct_utmpx_ut_exit_ut_termination=no
16786 fi
16787 rm -f conftest.$ac_objext conftest.$ac_ext
16788 fi
16789 rm -f conftest.$ac_objext conftest.$ac_ext
16790 fi
16791 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
16792 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6
16793 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
16794
16795 cat >>confdefs.h <<_ACEOF
16796 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
16797 _ACEOF
16798
16799
16800 fi
16801
16802     echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
16803 echo $ECHO_N "checking for struct utmp.ut_exit.ut_termination... $ECHO_C" >&6
16804 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
16805   echo $ECHO_N "(cached) $ECHO_C" >&6
16806 else
16807   cat >conftest.$ac_ext <<_ACEOF
16808 #line $LINENO "configure"
16809 /* confdefs.h.  */
16810 _ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h.  */
16814 $utmp_includes
16815
16816 int
16817 main ()
16818 {
16819 static struct utmp ac_aggr;
16820 if (ac_aggr.ut_exit.ut_termination)
16821 return 0;
16822   ;
16823   return 0;
16824 }
16825 _ACEOF
16826 rm -f conftest.$ac_objext
16827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16828   (eval $ac_compile) 2>&5
16829   ac_status=$?
16830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831   (exit $ac_status); } &&
16832          { ac_try='test -s conftest.$ac_objext'
16833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16834   (eval $ac_try) 2>&5
16835   ac_status=$?
16836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837   (exit $ac_status); }; }; then
16838   ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
16839 else
16840   echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16842
16843 cat >conftest.$ac_ext <<_ACEOF
16844 #line $LINENO "configure"
16845 /* confdefs.h.  */
16846 _ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h.  */
16850 $utmp_includes
16851
16852 int
16853 main ()
16854 {
16855 static struct utmp ac_aggr;
16856 if (sizeof ac_aggr.ut_exit.ut_termination)
16857 return 0;
16858   ;
16859   return 0;
16860 }
16861 _ACEOF
16862 rm -f conftest.$ac_objext
16863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16864   (eval $ac_compile) 2>&5
16865   ac_status=$?
16866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867   (exit $ac_status); } &&
16868          { ac_try='test -s conftest.$ac_objext'
16869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870   (eval $ac_try) 2>&5
16871   ac_status=$?
16872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873   (exit $ac_status); }; }; then
16874   ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
16875 else
16876   echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16878
16879 ac_cv_member_struct_utmp_ut_exit_ut_termination=no
16880 fi
16881 rm -f conftest.$ac_objext conftest.$ac_ext
16882 fi
16883 rm -f conftest.$ac_objext conftest.$ac_ext
16884 fi
16885 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
16886 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6
16887 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
16888
16889 cat >>confdefs.h <<_ACEOF
16890 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
16891 _ACEOF
16892
16893
16894 fi
16895
16896     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
16897 echo $ECHO_N "checking for struct utmpx.ut_exit.e_termination... $ECHO_C" >&6
16898 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
16899   echo $ECHO_N "(cached) $ECHO_C" >&6
16900 else
16901   cat >conftest.$ac_ext <<_ACEOF
16902 #line $LINENO "configure"
16903 /* confdefs.h.  */
16904 _ACEOF
16905 cat confdefs.h >>conftest.$ac_ext
16906 cat >>conftest.$ac_ext <<_ACEOF
16907 /* end confdefs.h.  */
16908 $utmp_includes
16909
16910 int
16911 main ()
16912 {
16913 static struct utmpx ac_aggr;
16914 if (ac_aggr.ut_exit.e_termination)
16915 return 0;
16916   ;
16917   return 0;
16918 }
16919 _ACEOF
16920 rm -f conftest.$ac_objext
16921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16922   (eval $ac_compile) 2>&5
16923   ac_status=$?
16924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925   (exit $ac_status); } &&
16926          { ac_try='test -s conftest.$ac_objext'
16927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928   (eval $ac_try) 2>&5
16929   ac_status=$?
16930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931   (exit $ac_status); }; }; then
16932   ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
16933 else
16934   echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16936
16937 cat >conftest.$ac_ext <<_ACEOF
16938 #line $LINENO "configure"
16939 /* confdefs.h.  */
16940 _ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h.  */
16944 $utmp_includes
16945
16946 int
16947 main ()
16948 {
16949 static struct utmpx ac_aggr;
16950 if (sizeof ac_aggr.ut_exit.e_termination)
16951 return 0;
16952   ;
16953   return 0;
16954 }
16955 _ACEOF
16956 rm -f conftest.$ac_objext
16957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16958   (eval $ac_compile) 2>&5
16959   ac_status=$?
16960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961   (exit $ac_status); } &&
16962          { ac_try='test -s conftest.$ac_objext'
16963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964   (eval $ac_try) 2>&5
16965   ac_status=$?
16966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967   (exit $ac_status); }; }; then
16968   ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
16969 else
16970   echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16972
16973 ac_cv_member_struct_utmpx_ut_exit_e_termination=no
16974 fi
16975 rm -f conftest.$ac_objext conftest.$ac_ext
16976 fi
16977 rm -f conftest.$ac_objext conftest.$ac_ext
16978 fi
16979 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
16980 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6
16981 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
16982
16983 cat >>confdefs.h <<_ACEOF
16984 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
16985 _ACEOF
16986
16987
16988 fi
16989
16990     echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
16991 echo $ECHO_N "checking for struct utmp.ut_exit.e_termination... $ECHO_C" >&6
16992 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
16993   echo $ECHO_N "(cached) $ECHO_C" >&6
16994 else
16995   cat >conftest.$ac_ext <<_ACEOF
16996 #line $LINENO "configure"
16997 /* confdefs.h.  */
16998 _ACEOF
16999 cat confdefs.h >>conftest.$ac_ext
17000 cat >>conftest.$ac_ext <<_ACEOF
17001 /* end confdefs.h.  */
17002 $utmp_includes
17003
17004 int
17005 main ()
17006 {
17007 static struct utmp ac_aggr;
17008 if (ac_aggr.ut_exit.e_termination)
17009 return 0;
17010   ;
17011   return 0;
17012 }
17013 _ACEOF
17014 rm -f conftest.$ac_objext
17015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17016   (eval $ac_compile) 2>&5
17017   ac_status=$?
17018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019   (exit $ac_status); } &&
17020          { ac_try='test -s conftest.$ac_objext'
17021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022   (eval $ac_try) 2>&5
17023   ac_status=$?
17024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025   (exit $ac_status); }; }; then
17026   ac_cv_member_struct_utmp_ut_exit_e_termination=yes
17027 else
17028   echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.$ac_ext >&5
17030
17031 cat >conftest.$ac_ext <<_ACEOF
17032 #line $LINENO "configure"
17033 /* confdefs.h.  */
17034 _ACEOF
17035 cat confdefs.h >>conftest.$ac_ext
17036 cat >>conftest.$ac_ext <<_ACEOF
17037 /* end confdefs.h.  */
17038 $utmp_includes
17039
17040 int
17041 main ()
17042 {
17043 static struct utmp ac_aggr;
17044 if (sizeof ac_aggr.ut_exit.e_termination)
17045 return 0;
17046   ;
17047   return 0;
17048 }
17049 _ACEOF
17050 rm -f conftest.$ac_objext
17051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17052   (eval $ac_compile) 2>&5
17053   ac_status=$?
17054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055   (exit $ac_status); } &&
17056          { ac_try='test -s conftest.$ac_objext'
17057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058   (eval $ac_try) 2>&5
17059   ac_status=$?
17060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061   (exit $ac_status); }; }; then
17062   ac_cv_member_struct_utmp_ut_exit_e_termination=yes
17063 else
17064   echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17066
17067 ac_cv_member_struct_utmp_ut_exit_e_termination=no
17068 fi
17069 rm -f conftest.$ac_objext conftest.$ac_ext
17070 fi
17071 rm -f conftest.$ac_objext conftest.$ac_ext
17072 fi
17073 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
17074 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6
17075 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
17076
17077 cat >>confdefs.h <<_ACEOF
17078 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
17079 _ACEOF
17080
17081
17082 fi
17083
17084     LIBOBJS="$LIBOBJS readutmp.$ac_objext"
17085   fi
17086
17087
17088   echo "$as_me:$LINENO: checking for long long" >&5
17089 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17090 if test "${ac_cv_type_long_long+set}" = set; then
17091   echo $ECHO_N "(cached) $ECHO_C" >&6
17092 else
17093   cat >conftest.$ac_ext <<_ACEOF
17094 #line $LINENO "configure"
17095 /* confdefs.h.  */
17096 _ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h.  */
17100 long long ll = 1; int i = 63;
17101 int
17102 main ()
17103 {
17104 long long llmax = (long long) -1;
17105      return ll << i | ll >> i | llmax / ll | llmax % ll;
17106   ;
17107   return 0;
17108 }
17109 _ACEOF
17110 rm -f conftest.$ac_objext conftest$ac_exeext
17111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17112   (eval $ac_link) 2>&5
17113   ac_status=$?
17114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115   (exit $ac_status); } &&
17116          { ac_try='test -s conftest$ac_exeext'
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_cv_type_long_long=yes
17123 else
17124   echo "$as_me: failed program was:" >&5
17125 sed 's/^/| /' conftest.$ac_ext >&5
17126
17127 ac_cv_type_long_long=no
17128 fi
17129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17130 fi
17131 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17132 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17133   if test $ac_cv_type_long_long = yes; then
17134
17135 cat >>confdefs.h <<\_ACEOF
17136 #define HAVE_LONG_LONG 1
17137 _ACEOF
17138
17139   fi
17140
17141
17142
17143
17144
17145
17146 for ac_header in sys/sysmacros.h sys/statvfs.h sys/vfs.h inttypes.h
17147 do
17148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17150   echo "$as_me:$LINENO: checking for $ac_header" >&5
17151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17153   echo $ECHO_N "(cached) $ECHO_C" >&6
17154 fi
17155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17157 else
17158   # Is the header compilable?
17159 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17161 cat >conftest.$ac_ext <<_ACEOF
17162 #line $LINENO "configure"
17163 /* confdefs.h.  */
17164 _ACEOF
17165 cat confdefs.h >>conftest.$ac_ext
17166 cat >>conftest.$ac_ext <<_ACEOF
17167 /* end confdefs.h.  */
17168 $ac_includes_default
17169 #include <$ac_header>
17170 _ACEOF
17171 rm -f conftest.$ac_objext
17172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17173   (eval $ac_compile) 2>&5
17174   ac_status=$?
17175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176   (exit $ac_status); } &&
17177          { ac_try='test -s conftest.$ac_objext'
17178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17179   (eval $ac_try) 2>&5
17180   ac_status=$?
17181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182   (exit $ac_status); }; }; then
17183   ac_header_compiler=yes
17184 else
17185   echo "$as_me: failed program was:" >&5
17186 sed 's/^/| /' conftest.$ac_ext >&5
17187
17188 ac_header_compiler=no
17189 fi
17190 rm -f conftest.$ac_objext conftest.$ac_ext
17191 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17192 echo "${ECHO_T}$ac_header_compiler" >&6
17193
17194 # Is the header present?
17195 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17197 cat >conftest.$ac_ext <<_ACEOF
17198 #line $LINENO "configure"
17199 /* confdefs.h.  */
17200 _ACEOF
17201 cat confdefs.h >>conftest.$ac_ext
17202 cat >>conftest.$ac_ext <<_ACEOF
17203 /* end confdefs.h.  */
17204 #include <$ac_header>
17205 _ACEOF
17206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17207   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17208   ac_status=$?
17209   grep -v '^ *+' conftest.er1 >conftest.err
17210   rm -f conftest.er1
17211   cat conftest.err >&5
17212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213   (exit $ac_status); } >/dev/null; then
17214   if test -s conftest.err; then
17215     ac_cpp_err=$ac_c_preproc_warn_flag
17216   else
17217     ac_cpp_err=
17218   fi
17219 else
17220   ac_cpp_err=yes
17221 fi
17222 if test -z "$ac_cpp_err"; then
17223   ac_header_preproc=yes
17224 else
17225   echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.$ac_ext >&5
17227
17228   ac_header_preproc=no
17229 fi
17230 rm -f conftest.err conftest.$ac_ext
17231 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17232 echo "${ECHO_T}$ac_header_preproc" >&6
17233
17234 # So?  What about this header?
17235 case $ac_header_compiler:$ac_header_preproc in
17236   yes:no )
17237     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17238 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17239     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17241     (
17242       cat <<\_ASBOX
17243 ## ------------------------------------ ##
17244 ## Report this to bug-autoconf@gnu.org. ##
17245 ## ------------------------------------ ##
17246 _ASBOX
17247     ) |
17248       sed "s/^/$as_me: WARNING:     /" >&2
17249     ;;
17250   no:yes )
17251     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17253     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17257     (
17258       cat <<\_ASBOX
17259 ## ------------------------------------ ##
17260 ## Report this to bug-autoconf@gnu.org. ##
17261 ## ------------------------------------ ##
17262 _ASBOX
17263     ) |
17264       sed "s/^/$as_me: WARNING:     /" >&2
17265     ;;
17266 esac
17267 echo "$as_me:$LINENO: checking for $ac_header" >&5
17268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17270   echo $ECHO_N "(cached) $ECHO_C" >&6
17271 else
17272   eval "$as_ac_Header=$ac_header_preproc"
17273 fi
17274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17276
17277 fi
17278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17279   cat >>confdefs.h <<_ACEOF
17280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17281 _ACEOF
17282
17283 fi
17284
17285 done
17286
17287
17288
17289 for ac_header in sys/param.h sys/mount.h
17290 do
17291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17293   echo "$as_me:$LINENO: checking for $ac_header" >&5
17294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17296   echo $ECHO_N "(cached) $ECHO_C" >&6
17297 fi
17298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17300 else
17301   # Is the header compilable?
17302 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17304 cat >conftest.$ac_ext <<_ACEOF
17305 #line $LINENO "configure"
17306 /* confdefs.h.  */
17307 _ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h.  */
17311 $ac_includes_default
17312 #include <$ac_header>
17313 _ACEOF
17314 rm -f conftest.$ac_objext
17315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17316   (eval $ac_compile) 2>&5
17317   ac_status=$?
17318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319   (exit $ac_status); } &&
17320          { ac_try='test -s conftest.$ac_objext'
17321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322   (eval $ac_try) 2>&5
17323   ac_status=$?
17324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325   (exit $ac_status); }; }; then
17326   ac_header_compiler=yes
17327 else
17328   echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17330
17331 ac_header_compiler=no
17332 fi
17333 rm -f conftest.$ac_objext conftest.$ac_ext
17334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17335 echo "${ECHO_T}$ac_header_compiler" >&6
17336
17337 # Is the header present?
17338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17340 cat >conftest.$ac_ext <<_ACEOF
17341 #line $LINENO "configure"
17342 /* confdefs.h.  */
17343 _ACEOF
17344 cat confdefs.h >>conftest.$ac_ext
17345 cat >>conftest.$ac_ext <<_ACEOF
17346 /* end confdefs.h.  */
17347 #include <$ac_header>
17348 _ACEOF
17349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17350   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17351   ac_status=$?
17352   grep -v '^ *+' conftest.er1 >conftest.err
17353   rm -f conftest.er1
17354   cat conftest.err >&5
17355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356   (exit $ac_status); } >/dev/null; then
17357   if test -s conftest.err; then
17358     ac_cpp_err=$ac_c_preproc_warn_flag
17359   else
17360     ac_cpp_err=
17361   fi
17362 else
17363   ac_cpp_err=yes
17364 fi
17365 if test -z "$ac_cpp_err"; then
17366   ac_header_preproc=yes
17367 else
17368   echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17370
17371   ac_header_preproc=no
17372 fi
17373 rm -f conftest.err conftest.$ac_ext
17374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17375 echo "${ECHO_T}$ac_header_preproc" >&6
17376
17377 # So?  What about this header?
17378 case $ac_header_compiler:$ac_header_preproc in
17379   yes:no )
17380     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17384     (
17385       cat <<\_ASBOX
17386 ## ------------------------------------ ##
17387 ## Report this to bug-autoconf@gnu.org. ##
17388 ## ------------------------------------ ##
17389 _ASBOX
17390     ) |
17391       sed "s/^/$as_me: WARNING:     /" >&2
17392     ;;
17393   no:yes )
17394     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17396     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17400     (
17401       cat <<\_ASBOX
17402 ## ------------------------------------ ##
17403 ## Report this to bug-autoconf@gnu.org. ##
17404 ## ------------------------------------ ##
17405 _ASBOX
17406     ) |
17407       sed "s/^/$as_me: WARNING:     /" >&2
17408     ;;
17409 esac
17410 echo "$as_me:$LINENO: checking for $ac_header" >&5
17411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17413   echo $ECHO_N "(cached) $ECHO_C" >&6
17414 else
17415   eval "$as_ac_Header=$ac_header_preproc"
17416 fi
17417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17419
17420 fi
17421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17422   cat >>confdefs.h <<_ACEOF
17423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17424 _ACEOF
17425
17426 fi
17427
17428 done
17429
17430
17431 for ac_func in statvfs
17432 do
17433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17434 echo "$as_me:$LINENO: checking for $ac_func" >&5
17435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17436 if eval "test \"\${$as_ac_var+set}\" = set"; then
17437   echo $ECHO_N "(cached) $ECHO_C" >&6
17438 else
17439   cat >conftest.$ac_ext <<_ACEOF
17440 #line $LINENO "configure"
17441 /* confdefs.h.  */
17442 _ACEOF
17443 cat confdefs.h >>conftest.$ac_ext
17444 cat >>conftest.$ac_ext <<_ACEOF
17445 /* end confdefs.h.  */
17446 /* System header to define __stub macros and hopefully few prototypes,
17447     which can conflict with char $ac_func (); below.
17448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17449     <limits.h> exists even on freestanding compilers.  */
17450 #ifdef __STDC__
17451 # include <limits.h>
17452 #else
17453 # include <assert.h>
17454 #endif
17455 /* Override any gcc2 internal prototype to avoid an error.  */
17456 #ifdef __cplusplus
17457 extern "C"
17458 {
17459 #endif
17460 /* We use char because int might match the return type of a gcc2
17461    builtin and then its argument prototype would still apply.  */
17462 char $ac_func ();
17463 /* The GNU C library defines this for functions which it implements
17464     to always fail with ENOSYS.  Some functions are actually named
17465     something starting with __ and the normal name is an alias.  */
17466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17467 choke me
17468 #else
17469 char (*f) () = $ac_func;
17470 #endif
17471 #ifdef __cplusplus
17472 }
17473 #endif
17474
17475 int
17476 main ()
17477 {
17478 return f != $ac_func;
17479   ;
17480   return 0;
17481 }
17482 _ACEOF
17483 rm -f conftest.$ac_objext conftest$ac_exeext
17484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17485   (eval $ac_link) 2>&5
17486   ac_status=$?
17487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488   (exit $ac_status); } &&
17489          { ac_try='test -s conftest$ac_exeext'
17490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17491   (eval $ac_try) 2>&5
17492   ac_status=$?
17493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494   (exit $ac_status); }; }; then
17495   eval "$as_ac_var=yes"
17496 else
17497   echo "$as_me: failed program was:" >&5
17498 sed 's/^/| /' conftest.$ac_ext >&5
17499
17500 eval "$as_ac_var=no"
17501 fi
17502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17503 fi
17504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17506 if test `eval echo '${'$as_ac_var'}'` = yes; then
17507   cat >>confdefs.h <<_ACEOF
17508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17509 _ACEOF
17510
17511 fi
17512 done
17513
17514
17515
17516   statxfs_includes="\
17517 $ac_includes_default
17518 #if HAVE_SYS_STATVFS_H
17519 # include <sys/statvfs.h>
17520 #endif
17521 #if HAVE_SYS_VFS_H
17522 # include <sys/vfs.h>
17523 #endif
17524 #if ( ! HAVE_SYS_STATVFS_H && ! HAVE_SYS_VFS_H && HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H )
17525 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
17526 # include <sys/param.h>
17527 # include <sys/mount.h>
17528 #endif
17529 "
17530   echo "$as_me:$LINENO: checking for struct statfs.f_basetype" >&5
17531 echo $ECHO_N "checking for struct statfs.f_basetype... $ECHO_C" >&6
17532 if test "${ac_cv_member_struct_statfs_f_basetype+set}" = set; then
17533   echo $ECHO_N "(cached) $ECHO_C" >&6
17534 else
17535   cat >conftest.$ac_ext <<_ACEOF
17536 #line $LINENO "configure"
17537 /* confdefs.h.  */
17538 _ACEOF
17539 cat confdefs.h >>conftest.$ac_ext
17540 cat >>conftest.$ac_ext <<_ACEOF
17541 /* end confdefs.h.  */
17542 $statxfs_includes
17543
17544 int
17545 main ()
17546 {
17547 static struct statfs ac_aggr;
17548 if (ac_aggr.f_basetype)
17549 return 0;
17550   ;
17551   return 0;
17552 }
17553 _ACEOF
17554 rm -f conftest.$ac_objext
17555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17556   (eval $ac_compile) 2>&5
17557   ac_status=$?
17558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559   (exit $ac_status); } &&
17560          { ac_try='test -s conftest.$ac_objext'
17561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17562   (eval $ac_try) 2>&5
17563   ac_status=$?
17564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565   (exit $ac_status); }; }; then
17566   ac_cv_member_struct_statfs_f_basetype=yes
17567 else
17568   echo "$as_me: failed program was:" >&5
17569 sed 's/^/| /' conftest.$ac_ext >&5
17570
17571 cat >conftest.$ac_ext <<_ACEOF
17572 #line $LINENO "configure"
17573 /* confdefs.h.  */
17574 _ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h.  */
17578 $statxfs_includes
17579
17580 int
17581 main ()
17582 {
17583 static struct statfs ac_aggr;
17584 if (sizeof ac_aggr.f_basetype)
17585 return 0;
17586   ;
17587   return 0;
17588 }
17589 _ACEOF
17590 rm -f conftest.$ac_objext
17591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17592   (eval $ac_compile) 2>&5
17593   ac_status=$?
17594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595   (exit $ac_status); } &&
17596          { ac_try='test -s conftest.$ac_objext'
17597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598   (eval $ac_try) 2>&5
17599   ac_status=$?
17600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601   (exit $ac_status); }; }; then
17602   ac_cv_member_struct_statfs_f_basetype=yes
17603 else
17604   echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.$ac_ext >&5
17606
17607 ac_cv_member_struct_statfs_f_basetype=no
17608 fi
17609 rm -f conftest.$ac_objext conftest.$ac_ext
17610 fi
17611 rm -f conftest.$ac_objext conftest.$ac_ext
17612 fi
17613 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_basetype" >&5
17614 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_basetype" >&6
17615 if test $ac_cv_member_struct_statfs_f_basetype = yes; then
17616
17617 cat >>confdefs.h <<_ACEOF
17618 #define HAVE_STRUCT_STATFS_F_BASETYPE 1
17619 _ACEOF
17620
17621
17622 fi
17623
17624   echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
17625 echo $ECHO_N "checking for struct statvfs.f_basetype... $ECHO_C" >&6
17626 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
17627   echo $ECHO_N "(cached) $ECHO_C" >&6
17628 else
17629   cat >conftest.$ac_ext <<_ACEOF
17630 #line $LINENO "configure"
17631 /* confdefs.h.  */
17632 _ACEOF
17633 cat confdefs.h >>conftest.$ac_ext
17634 cat >>conftest.$ac_ext <<_ACEOF
17635 /* end confdefs.h.  */
17636 $statxfs_includes
17637
17638 int
17639 main ()
17640 {
17641 static struct statvfs ac_aggr;
17642 if (ac_aggr.f_basetype)
17643 return 0;
17644   ;
17645   return 0;
17646 }
17647 _ACEOF
17648 rm -f conftest.$ac_objext
17649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17650   (eval $ac_compile) 2>&5
17651   ac_status=$?
17652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653   (exit $ac_status); } &&
17654          { ac_try='test -s conftest.$ac_objext'
17655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656   (eval $ac_try) 2>&5
17657   ac_status=$?
17658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659   (exit $ac_status); }; }; then
17660   ac_cv_member_struct_statvfs_f_basetype=yes
17661 else
17662   echo "$as_me: failed program was:" >&5
17663 sed 's/^/| /' conftest.$ac_ext >&5
17664
17665 cat >conftest.$ac_ext <<_ACEOF
17666 #line $LINENO "configure"
17667 /* confdefs.h.  */
17668 _ACEOF
17669 cat confdefs.h >>conftest.$ac_ext
17670 cat >>conftest.$ac_ext <<_ACEOF
17671 /* end confdefs.h.  */
17672 $statxfs_includes
17673
17674 int
17675 main ()
17676 {
17677 static struct statvfs ac_aggr;
17678 if (sizeof ac_aggr.f_basetype)
17679 return 0;
17680   ;
17681   return 0;
17682 }
17683 _ACEOF
17684 rm -f conftest.$ac_objext
17685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17686   (eval $ac_compile) 2>&5
17687   ac_status=$?
17688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689   (exit $ac_status); } &&
17690          { ac_try='test -s conftest.$ac_objext'
17691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17692   (eval $ac_try) 2>&5
17693   ac_status=$?
17694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695   (exit $ac_status); }; }; then
17696   ac_cv_member_struct_statvfs_f_basetype=yes
17697 else
17698   echo "$as_me: failed program was:" >&5
17699 sed 's/^/| /' conftest.$ac_ext >&5
17700
17701 ac_cv_member_struct_statvfs_f_basetype=no
17702 fi
17703 rm -f conftest.$ac_objext conftest.$ac_ext
17704 fi
17705 rm -f conftest.$ac_objext conftest.$ac_ext
17706 fi
17707 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
17708 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_basetype" >&6
17709 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
17710
17711 cat >>confdefs.h <<_ACEOF
17712 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
17713 _ACEOF
17714
17715
17716 fi
17717
17718   echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
17719 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6
17720 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
17721   echo $ECHO_N "(cached) $ECHO_C" >&6
17722 else
17723   cat >conftest.$ac_ext <<_ACEOF
17724 #line $LINENO "configure"
17725 /* confdefs.h.  */
17726 _ACEOF
17727 cat confdefs.h >>conftest.$ac_ext
17728 cat >>conftest.$ac_ext <<_ACEOF
17729 /* end confdefs.h.  */
17730 $statxfs_includes
17731
17732 int
17733 main ()
17734 {
17735 static struct statfs ac_aggr;
17736 if (ac_aggr.f_fstypename)
17737 return 0;
17738   ;
17739   return 0;
17740 }
17741 _ACEOF
17742 rm -f conftest.$ac_objext
17743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17744   (eval $ac_compile) 2>&5
17745   ac_status=$?
17746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747   (exit $ac_status); } &&
17748          { ac_try='test -s conftest.$ac_objext'
17749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750   (eval $ac_try) 2>&5
17751   ac_status=$?
17752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753   (exit $ac_status); }; }; then
17754   ac_cv_member_struct_statfs_f_fstypename=yes
17755 else
17756   echo "$as_me: failed program was:" >&5
17757 sed 's/^/| /' conftest.$ac_ext >&5
17758
17759 cat >conftest.$ac_ext <<_ACEOF
17760 #line $LINENO "configure"
17761 /* confdefs.h.  */
17762 _ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h.  */
17766 $statxfs_includes
17767
17768 int
17769 main ()
17770 {
17771 static struct statfs ac_aggr;
17772 if (sizeof ac_aggr.f_fstypename)
17773 return 0;
17774   ;
17775   return 0;
17776 }
17777 _ACEOF
17778 rm -f conftest.$ac_objext
17779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17780   (eval $ac_compile) 2>&5
17781   ac_status=$?
17782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783   (exit $ac_status); } &&
17784          { ac_try='test -s conftest.$ac_objext'
17785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17786   (eval $ac_try) 2>&5
17787   ac_status=$?
17788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789   (exit $ac_status); }; }; then
17790   ac_cv_member_struct_statfs_f_fstypename=yes
17791 else
17792   echo "$as_me: failed program was:" >&5
17793 sed 's/^/| /' conftest.$ac_ext >&5
17794
17795 ac_cv_member_struct_statfs_f_fstypename=no
17796 fi
17797 rm -f conftest.$ac_objext conftest.$ac_ext
17798 fi
17799 rm -f conftest.$ac_objext conftest.$ac_ext
17800 fi
17801 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
17802 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6
17803 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
17804
17805 cat >>confdefs.h <<_ACEOF
17806 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
17807 _ACEOF
17808
17809
17810 fi
17811
17812   echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
17813 echo $ECHO_N "checking for struct statfs.f_type... $ECHO_C" >&6
17814 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
17815   echo $ECHO_N "(cached) $ECHO_C" >&6
17816 else
17817   cat >conftest.$ac_ext <<_ACEOF
17818 #line $LINENO "configure"
17819 /* confdefs.h.  */
17820 _ACEOF
17821 cat confdefs.h >>conftest.$ac_ext
17822 cat >>conftest.$ac_ext <<_ACEOF
17823 /* end confdefs.h.  */
17824 $statxfs_includes
17825
17826 int
17827 main ()
17828 {
17829 static struct statfs ac_aggr;
17830 if (ac_aggr.f_type)
17831 return 0;
17832   ;
17833   return 0;
17834 }
17835 _ACEOF
17836 rm -f conftest.$ac_objext
17837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17838   (eval $ac_compile) 2>&5
17839   ac_status=$?
17840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841   (exit $ac_status); } &&
17842          { ac_try='test -s conftest.$ac_objext'
17843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844   (eval $ac_try) 2>&5
17845   ac_status=$?
17846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847   (exit $ac_status); }; }; then
17848   ac_cv_member_struct_statfs_f_type=yes
17849 else
17850   echo "$as_me: failed program was:" >&5
17851 sed 's/^/| /' conftest.$ac_ext >&5
17852
17853 cat >conftest.$ac_ext <<_ACEOF
17854 #line $LINENO "configure"
17855 /* confdefs.h.  */
17856 _ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h.  */
17860 $statxfs_includes
17861
17862 int
17863 main ()
17864 {
17865 static struct statfs ac_aggr;
17866 if (sizeof ac_aggr.f_type)
17867 return 0;
17868   ;
17869   return 0;
17870 }
17871 _ACEOF
17872 rm -f conftest.$ac_objext
17873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17874   (eval $ac_compile) 2>&5
17875   ac_status=$?
17876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877   (exit $ac_status); } &&
17878          { ac_try='test -s conftest.$ac_objext'
17879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880   (eval $ac_try) 2>&5
17881   ac_status=$?
17882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883   (exit $ac_status); }; }; then
17884   ac_cv_member_struct_statfs_f_type=yes
17885 else
17886   echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17888
17889 ac_cv_member_struct_statfs_f_type=no
17890 fi
17891 rm -f conftest.$ac_objext conftest.$ac_ext
17892 fi
17893 rm -f conftest.$ac_objext conftest.$ac_ext
17894 fi
17895 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
17896 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_type" >&6
17897 if test $ac_cv_member_struct_statfs_f_type = yes; then
17898
17899 cat >>confdefs.h <<_ACEOF
17900 #define HAVE_STRUCT_STATFS_F_TYPE 1
17901 _ACEOF
17902
17903
17904 fi
17905
17906   echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
17907 echo $ECHO_N "checking for struct statvfs.f_type... $ECHO_C" >&6
17908 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
17909   echo $ECHO_N "(cached) $ECHO_C" >&6
17910 else
17911   cat >conftest.$ac_ext <<_ACEOF
17912 #line $LINENO "configure"
17913 /* confdefs.h.  */
17914 _ACEOF
17915 cat confdefs.h >>conftest.$ac_ext
17916 cat >>conftest.$ac_ext <<_ACEOF
17917 /* end confdefs.h.  */
17918 $statxfs_includes
17919
17920 int
17921 main ()
17922 {
17923 static struct statvfs ac_aggr;
17924 if (ac_aggr.f_type)
17925 return 0;
17926   ;
17927   return 0;
17928 }
17929 _ACEOF
17930 rm -f conftest.$ac_objext
17931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17932   (eval $ac_compile) 2>&5
17933   ac_status=$?
17934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935   (exit $ac_status); } &&
17936          { ac_try='test -s conftest.$ac_objext'
17937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938   (eval $ac_try) 2>&5
17939   ac_status=$?
17940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941   (exit $ac_status); }; }; then
17942   ac_cv_member_struct_statvfs_f_type=yes
17943 else
17944   echo "$as_me: failed program was:" >&5
17945 sed 's/^/| /' conftest.$ac_ext >&5
17946
17947 cat >conftest.$ac_ext <<_ACEOF
17948 #line $LINENO "configure"
17949 /* confdefs.h.  */
17950 _ACEOF
17951 cat confdefs.h >>conftest.$ac_ext
17952 cat >>conftest.$ac_ext <<_ACEOF
17953 /* end confdefs.h.  */
17954 $statxfs_includes
17955
17956 int
17957 main ()
17958 {
17959 static struct statvfs ac_aggr;
17960 if (sizeof ac_aggr.f_type)
17961 return 0;
17962   ;
17963   return 0;
17964 }
17965 _ACEOF
17966 rm -f conftest.$ac_objext
17967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17968   (eval $ac_compile) 2>&5
17969   ac_status=$?
17970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971   (exit $ac_status); } &&
17972          { ac_try='test -s conftest.$ac_objext'
17973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17974   (eval $ac_try) 2>&5
17975   ac_status=$?
17976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977   (exit $ac_status); }; }; then
17978   ac_cv_member_struct_statvfs_f_type=yes
17979 else
17980   echo "$as_me: failed program was:" >&5
17981 sed 's/^/| /' conftest.$ac_ext >&5
17982
17983 ac_cv_member_struct_statvfs_f_type=no
17984 fi
17985 rm -f conftest.$ac_objext conftest.$ac_ext
17986 fi
17987 rm -f conftest.$ac_objext conftest.$ac_ext
17988 fi
17989 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
17990 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_type" >&6
17991 if test $ac_cv_member_struct_statvfs_f_type = yes; then
17992
17993 cat >>confdefs.h <<_ACEOF
17994 #define HAVE_STRUCT_STATVFS_F_TYPE 1
17995 _ACEOF
17996
17997
17998 fi
17999
18000   echo "$as_me:$LINENO: checking for struct statfs.f_fsid.__val" >&5
18001 echo $ECHO_N "checking for struct statfs.f_fsid.__val... $ECHO_C" >&6
18002 if test "${ac_cv_member_struct_statfs_f_fsid___val+set}" = set; then
18003   echo $ECHO_N "(cached) $ECHO_C" >&6
18004 else
18005   cat >conftest.$ac_ext <<_ACEOF
18006 #line $LINENO "configure"
18007 /* confdefs.h.  */
18008 _ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h.  */
18012 $statxfs_includes
18013
18014 int
18015 main ()
18016 {
18017 static struct statfs ac_aggr;
18018 if (ac_aggr.f_fsid.__val)
18019 return 0;
18020   ;
18021   return 0;
18022 }
18023 _ACEOF
18024 rm -f conftest.$ac_objext
18025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18026   (eval $ac_compile) 2>&5
18027   ac_status=$?
18028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029   (exit $ac_status); } &&
18030          { ac_try='test -s conftest.$ac_objext'
18031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032   (eval $ac_try) 2>&5
18033   ac_status=$?
18034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035   (exit $ac_status); }; }; then
18036   ac_cv_member_struct_statfs_f_fsid___val=yes
18037 else
18038   echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.$ac_ext >&5
18040
18041 cat >conftest.$ac_ext <<_ACEOF
18042 #line $LINENO "configure"
18043 /* confdefs.h.  */
18044 _ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h.  */
18048 $statxfs_includes
18049
18050 int
18051 main ()
18052 {
18053 static struct statfs ac_aggr;
18054 if (sizeof ac_aggr.f_fsid.__val)
18055 return 0;
18056   ;
18057   return 0;
18058 }
18059 _ACEOF
18060 rm -f conftest.$ac_objext
18061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18062   (eval $ac_compile) 2>&5
18063   ac_status=$?
18064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065   (exit $ac_status); } &&
18066          { ac_try='test -s conftest.$ac_objext'
18067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18068   (eval $ac_try) 2>&5
18069   ac_status=$?
18070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071   (exit $ac_status); }; }; then
18072   ac_cv_member_struct_statfs_f_fsid___val=yes
18073 else
18074   echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18076
18077 ac_cv_member_struct_statfs_f_fsid___val=no
18078 fi
18079 rm -f conftest.$ac_objext conftest.$ac_ext
18080 fi
18081 rm -f conftest.$ac_objext conftest.$ac_ext
18082 fi
18083 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsid___val" >&5
18084 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fsid___val" >&6
18085 if test $ac_cv_member_struct_statfs_f_fsid___val = yes; then
18086
18087 cat >>confdefs.h <<_ACEOF
18088 #define HAVE_STRUCT_STATFS_F_FSID___VAL 1
18089 _ACEOF
18090
18091
18092 fi
18093
18094   echo "$as_me:$LINENO: checking for struct statvfs.f_fsid.__val" >&5
18095 echo $ECHO_N "checking for struct statvfs.f_fsid.__val... $ECHO_C" >&6
18096 if test "${ac_cv_member_struct_statvfs_f_fsid___val+set}" = set; then
18097   echo $ECHO_N "(cached) $ECHO_C" >&6
18098 else
18099   cat >conftest.$ac_ext <<_ACEOF
18100 #line $LINENO "configure"
18101 /* confdefs.h.  */
18102 _ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h.  */
18106 $statxfs_includes
18107
18108 int
18109 main ()
18110 {
18111 static struct statvfs ac_aggr;
18112 if (ac_aggr.f_fsid.__val)
18113 return 0;
18114   ;
18115   return 0;
18116 }
18117 _ACEOF
18118 rm -f conftest.$ac_objext
18119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18120   (eval $ac_compile) 2>&5
18121   ac_status=$?
18122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123   (exit $ac_status); } &&
18124          { ac_try='test -s conftest.$ac_objext'
18125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126   (eval $ac_try) 2>&5
18127   ac_status=$?
18128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129   (exit $ac_status); }; }; then
18130   ac_cv_member_struct_statvfs_f_fsid___val=yes
18131 else
18132   echo "$as_me: failed program was:" >&5
18133 sed 's/^/| /' conftest.$ac_ext >&5
18134
18135 cat >conftest.$ac_ext <<_ACEOF
18136 #line $LINENO "configure"
18137 /* confdefs.h.  */
18138 _ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h.  */
18142 $statxfs_includes
18143
18144 int
18145 main ()
18146 {
18147 static struct statvfs ac_aggr;
18148 if (sizeof ac_aggr.f_fsid.__val)
18149 return 0;
18150   ;
18151   return 0;
18152 }
18153 _ACEOF
18154 rm -f conftest.$ac_objext
18155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18156   (eval $ac_compile) 2>&5
18157   ac_status=$?
18158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159   (exit $ac_status); } &&
18160          { ac_try='test -s conftest.$ac_objext'
18161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162   (eval $ac_try) 2>&5
18163   ac_status=$?
18164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165   (exit $ac_status); }; }; then
18166   ac_cv_member_struct_statvfs_f_fsid___val=yes
18167 else
18168   echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18170
18171 ac_cv_member_struct_statvfs_f_fsid___val=no
18172 fi
18173 rm -f conftest.$ac_objext conftest.$ac_ext
18174 fi
18175 rm -f conftest.$ac_objext conftest.$ac_ext
18176 fi
18177 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fsid___val" >&5
18178 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fsid___val" >&6
18179 if test $ac_cv_member_struct_statvfs_f_fsid___val = yes; then
18180
18181 cat >>confdefs.h <<_ACEOF
18182 #define HAVE_STRUCT_STATVFS_F_FSID___VAL 1
18183 _ACEOF
18184
18185
18186 fi
18187
18188   echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
18189 echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6
18190 if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
18191   echo $ECHO_N "(cached) $ECHO_C" >&6
18192 else
18193   cat >conftest.$ac_ext <<_ACEOF
18194 #line $LINENO "configure"
18195 /* confdefs.h.  */
18196 _ACEOF
18197 cat confdefs.h >>conftest.$ac_ext
18198 cat >>conftest.$ac_ext <<_ACEOF
18199 /* end confdefs.h.  */
18200 $statxfs_includes
18201
18202 int
18203 main ()
18204 {
18205 static struct statfs ac_aggr;
18206 if (ac_aggr.f_namemax)
18207 return 0;
18208   ;
18209   return 0;
18210 }
18211 _ACEOF
18212 rm -f conftest.$ac_objext
18213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18214   (eval $ac_compile) 2>&5
18215   ac_status=$?
18216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217   (exit $ac_status); } &&
18218          { ac_try='test -s conftest.$ac_objext'
18219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220   (eval $ac_try) 2>&5
18221   ac_status=$?
18222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223   (exit $ac_status); }; }; then
18224   ac_cv_member_struct_statfs_f_namemax=yes
18225 else
18226   echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18228
18229 cat >conftest.$ac_ext <<_ACEOF
18230 #line $LINENO "configure"
18231 /* confdefs.h.  */
18232 _ACEOF
18233 cat confdefs.h >>conftest.$ac_ext
18234 cat >>conftest.$ac_ext <<_ACEOF
18235 /* end confdefs.h.  */
18236 $statxfs_includes
18237
18238 int
18239 main ()
18240 {
18241 static struct statfs ac_aggr;
18242 if (sizeof ac_aggr.f_namemax)
18243 return 0;
18244   ;
18245   return 0;
18246 }
18247 _ACEOF
18248 rm -f conftest.$ac_objext
18249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18250   (eval $ac_compile) 2>&5
18251   ac_status=$?
18252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253   (exit $ac_status); } &&
18254          { ac_try='test -s conftest.$ac_objext'
18255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18256   (eval $ac_try) 2>&5
18257   ac_status=$?
18258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259   (exit $ac_status); }; }; then
18260   ac_cv_member_struct_statfs_f_namemax=yes
18261 else
18262   echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18264
18265 ac_cv_member_struct_statfs_f_namemax=no
18266 fi
18267 rm -f conftest.$ac_objext conftest.$ac_ext
18268 fi
18269 rm -f conftest.$ac_objext conftest.$ac_ext
18270 fi
18271 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
18272 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6
18273 if test $ac_cv_member_struct_statfs_f_namemax = yes; then
18274
18275 cat >>confdefs.h <<_ACEOF
18276 #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
18277 _ACEOF
18278
18279
18280 fi
18281
18282   echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
18283 echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6
18284 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
18285   echo $ECHO_N "(cached) $ECHO_C" >&6
18286 else
18287   cat >conftest.$ac_ext <<_ACEOF
18288 #line $LINENO "configure"
18289 /* confdefs.h.  */
18290 _ACEOF
18291 cat confdefs.h >>conftest.$ac_ext
18292 cat >>conftest.$ac_ext <<_ACEOF
18293 /* end confdefs.h.  */
18294 $statxfs_includes
18295
18296 int
18297 main ()
18298 {
18299 static struct statvfs ac_aggr;
18300 if (ac_aggr.f_namemax)
18301 return 0;
18302   ;
18303   return 0;
18304 }
18305 _ACEOF
18306 rm -f conftest.$ac_objext
18307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18308   (eval $ac_compile) 2>&5
18309   ac_status=$?
18310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311   (exit $ac_status); } &&
18312          { ac_try='test -s conftest.$ac_objext'
18313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18314   (eval $ac_try) 2>&5
18315   ac_status=$?
18316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317   (exit $ac_status); }; }; then
18318   ac_cv_member_struct_statvfs_f_namemax=yes
18319 else
18320   echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.$ac_ext >&5
18322
18323 cat >conftest.$ac_ext <<_ACEOF
18324 #line $LINENO "configure"
18325 /* confdefs.h.  */
18326 _ACEOF
18327 cat confdefs.h >>conftest.$ac_ext
18328 cat >>conftest.$ac_ext <<_ACEOF
18329 /* end confdefs.h.  */
18330 $statxfs_includes
18331
18332 int
18333 main ()
18334 {
18335 static struct statvfs ac_aggr;
18336 if (sizeof ac_aggr.f_namemax)
18337 return 0;
18338   ;
18339   return 0;
18340 }
18341 _ACEOF
18342 rm -f conftest.$ac_objext
18343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18344   (eval $ac_compile) 2>&5
18345   ac_status=$?
18346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347   (exit $ac_status); } &&
18348          { ac_try='test -s conftest.$ac_objext'
18349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350   (eval $ac_try) 2>&5
18351   ac_status=$?
18352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353   (exit $ac_status); }; }; then
18354   ac_cv_member_struct_statvfs_f_namemax=yes
18355 else
18356   echo "$as_me: failed program was:" >&5
18357 sed 's/^/| /' conftest.$ac_ext >&5
18358
18359 ac_cv_member_struct_statvfs_f_namemax=no
18360 fi
18361 rm -f conftest.$ac_objext conftest.$ac_ext
18362 fi
18363 rm -f conftest.$ac_objext conftest.$ac_ext
18364 fi
18365 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
18366 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6
18367 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
18368
18369 cat >>confdefs.h <<_ACEOF
18370 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
18371 _ACEOF
18372
18373
18374 fi
18375
18376   echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18377 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
18378 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18379   echo $ECHO_N "(cached) $ECHO_C" >&6
18380 else
18381   cat >conftest.$ac_ext <<_ACEOF
18382 #line $LINENO "configure"
18383 /* confdefs.h.  */
18384 _ACEOF
18385 cat confdefs.h >>conftest.$ac_ext
18386 cat >>conftest.$ac_ext <<_ACEOF
18387 /* end confdefs.h.  */
18388 $statxfs_includes
18389
18390 int
18391 main ()
18392 {
18393 static struct statfs ac_aggr;
18394 if (ac_aggr.f_namelen)
18395 return 0;
18396   ;
18397   return 0;
18398 }
18399 _ACEOF
18400 rm -f conftest.$ac_objext
18401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18402   (eval $ac_compile) 2>&5
18403   ac_status=$?
18404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405   (exit $ac_status); } &&
18406          { ac_try='test -s conftest.$ac_objext'
18407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18408   (eval $ac_try) 2>&5
18409   ac_status=$?
18410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411   (exit $ac_status); }; }; then
18412   ac_cv_member_struct_statfs_f_namelen=yes
18413 else
18414   echo "$as_me: failed program was:" >&5
18415 sed 's/^/| /' conftest.$ac_ext >&5
18416
18417 cat >conftest.$ac_ext <<_ACEOF
18418 #line $LINENO "configure"
18419 /* confdefs.h.  */
18420 _ACEOF
18421 cat confdefs.h >>conftest.$ac_ext
18422 cat >>conftest.$ac_ext <<_ACEOF
18423 /* end confdefs.h.  */
18424 $statxfs_includes
18425
18426 int
18427 main ()
18428 {
18429 static struct statfs ac_aggr;
18430 if (sizeof ac_aggr.f_namelen)
18431 return 0;
18432   ;
18433   return 0;
18434 }
18435 _ACEOF
18436 rm -f conftest.$ac_objext
18437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18438   (eval $ac_compile) 2>&5
18439   ac_status=$?
18440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441   (exit $ac_status); } &&
18442          { ac_try='test -s conftest.$ac_objext'
18443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444   (eval $ac_try) 2>&5
18445   ac_status=$?
18446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447   (exit $ac_status); }; }; then
18448   ac_cv_member_struct_statfs_f_namelen=yes
18449 else
18450   echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18452
18453 ac_cv_member_struct_statfs_f_namelen=no
18454 fi
18455 rm -f conftest.$ac_objext conftest.$ac_ext
18456 fi
18457 rm -f conftest.$ac_objext conftest.$ac_ext
18458 fi
18459 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18460 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
18461 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18462
18463 cat >>confdefs.h <<_ACEOF
18464 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
18465 _ACEOF
18466
18467
18468 fi
18469
18470   echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
18471 echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6
18472 if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
18473   echo $ECHO_N "(cached) $ECHO_C" >&6
18474 else
18475   cat >conftest.$ac_ext <<_ACEOF
18476 #line $LINENO "configure"
18477 /* confdefs.h.  */
18478 _ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h.  */
18482 $statxfs_includes
18483
18484 int
18485 main ()
18486 {
18487 static struct statvfs ac_aggr;
18488 if (ac_aggr.f_namelen)
18489 return 0;
18490   ;
18491   return 0;
18492 }
18493 _ACEOF
18494 rm -f conftest.$ac_objext
18495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18496   (eval $ac_compile) 2>&5
18497   ac_status=$?
18498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499   (exit $ac_status); } &&
18500          { ac_try='test -s conftest.$ac_objext'
18501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18502   (eval $ac_try) 2>&5
18503   ac_status=$?
18504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505   (exit $ac_status); }; }; then
18506   ac_cv_member_struct_statvfs_f_namelen=yes
18507 else
18508   echo "$as_me: failed program was:" >&5
18509 sed 's/^/| /' conftest.$ac_ext >&5
18510
18511 cat >conftest.$ac_ext <<_ACEOF
18512 #line $LINENO "configure"
18513 /* confdefs.h.  */
18514 _ACEOF
18515 cat confdefs.h >>conftest.$ac_ext
18516 cat >>conftest.$ac_ext <<_ACEOF
18517 /* end confdefs.h.  */
18518 $statxfs_includes
18519
18520 int
18521 main ()
18522 {
18523 static struct statvfs ac_aggr;
18524 if (sizeof ac_aggr.f_namelen)
18525 return 0;
18526   ;
18527   return 0;
18528 }
18529 _ACEOF
18530 rm -f conftest.$ac_objext
18531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18532   (eval $ac_compile) 2>&5
18533   ac_status=$?
18534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535   (exit $ac_status); } &&
18536          { ac_try='test -s conftest.$ac_objext'
18537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538   (eval $ac_try) 2>&5
18539   ac_status=$?
18540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541   (exit $ac_status); }; }; then
18542   ac_cv_member_struct_statvfs_f_namelen=yes
18543 else
18544   echo "$as_me: failed program was:" >&5
18545 sed 's/^/| /' conftest.$ac_ext >&5
18546
18547 ac_cv_member_struct_statvfs_f_namelen=no
18548 fi
18549 rm -f conftest.$ac_objext conftest.$ac_ext
18550 fi
18551 rm -f conftest.$ac_objext conftest.$ac_ext
18552 fi
18553 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
18554 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6
18555 if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
18556
18557 cat >>confdefs.h <<_ACEOF
18558 #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
18559 _ACEOF
18560
18561
18562 fi
18563
18564
18565 echo "$as_me:$LINENO: checking for working strnlen" >&5
18566 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
18567 if test "${ac_cv_func_strnlen_working+set}" = set; then
18568   echo $ECHO_N "(cached) $ECHO_C" >&6
18569 else
18570   if test "$cross_compiling" = yes; then
18571   ac_cv_func_strnlen_working=no
18572 else
18573   cat >conftest.$ac_ext <<_ACEOF
18574 #line $LINENO "configure"
18575 /* confdefs.h.  */
18576 _ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h.  */
18580
18581 int
18582 main ()
18583 {
18584
18585 #define S "foobar"
18586 #define S_LEN (sizeof S - 1)
18587
18588   /* At least one implementation is buggy: that of AIX 4.3 would
18589      give strnlen (S, 1) == 3.  */
18590
18591   int i;
18592   for (i = 0; i < S_LEN + 1; ++i)
18593     {
18594       int expected = i <= S_LEN ? i : S_LEN;
18595       if (strnlen (S, i) != expected)
18596         exit (1);
18597     }
18598   exit (0);
18599
18600   ;
18601   return 0;
18602 }
18603 _ACEOF
18604 rm -f conftest$ac_exeext
18605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18606   (eval $ac_link) 2>&5
18607   ac_status=$?
18608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611   (eval $ac_try) 2>&5
18612   ac_status=$?
18613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614   (exit $ac_status); }; }; then
18615   ac_cv_func_strnlen_working=yes
18616 else
18617   echo "$as_me: program exited with status $ac_status" >&5
18618 echo "$as_me: failed program was:" >&5
18619 sed 's/^/| /' conftest.$ac_ext >&5
18620
18621 ( exit $ac_status )
18622 ac_cv_func_strnlen_working=no
18623 fi
18624 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18625 fi
18626 fi
18627 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
18628 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
18629 test $ac_cv_func_strnlen_working = no && LIBOBJS="$LIBOBJS strnlen.$ac_objext"
18630
18631
18632
18633
18634
18635 for ac_header in memory.h
18636 do
18637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18639   echo "$as_me:$LINENO: checking for $ac_header" >&5
18640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18642   echo $ECHO_N "(cached) $ECHO_C" >&6
18643 fi
18644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18646 else
18647   # Is the header compilable?
18648 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18650 cat >conftest.$ac_ext <<_ACEOF
18651 #line $LINENO "configure"
18652 /* confdefs.h.  */
18653 _ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h.  */
18657 $ac_includes_default
18658 #include <$ac_header>
18659 _ACEOF
18660 rm -f conftest.$ac_objext
18661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18662   (eval $ac_compile) 2>&5
18663   ac_status=$?
18664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665   (exit $ac_status); } &&
18666          { ac_try='test -s conftest.$ac_objext'
18667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18668   (eval $ac_try) 2>&5
18669   ac_status=$?
18670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671   (exit $ac_status); }; }; then
18672   ac_header_compiler=yes
18673 else
18674   echo "$as_me: failed program was:" >&5
18675 sed 's/^/| /' conftest.$ac_ext >&5
18676
18677 ac_header_compiler=no
18678 fi
18679 rm -f conftest.$ac_objext conftest.$ac_ext
18680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18681 echo "${ECHO_T}$ac_header_compiler" >&6
18682
18683 # Is the header present?
18684 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18686 cat >conftest.$ac_ext <<_ACEOF
18687 #line $LINENO "configure"
18688 /* confdefs.h.  */
18689 _ACEOF
18690 cat confdefs.h >>conftest.$ac_ext
18691 cat >>conftest.$ac_ext <<_ACEOF
18692 /* end confdefs.h.  */
18693 #include <$ac_header>
18694 _ACEOF
18695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18696   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18697   ac_status=$?
18698   grep -v '^ *+' conftest.er1 >conftest.err
18699   rm -f conftest.er1
18700   cat conftest.err >&5
18701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702   (exit $ac_status); } >/dev/null; then
18703   if test -s conftest.err; then
18704     ac_cpp_err=$ac_c_preproc_warn_flag
18705   else
18706     ac_cpp_err=
18707   fi
18708 else
18709   ac_cpp_err=yes
18710 fi
18711 if test -z "$ac_cpp_err"; then
18712   ac_header_preproc=yes
18713 else
18714   echo "$as_me: failed program was:" >&5
18715 sed 's/^/| /' conftest.$ac_ext >&5
18716
18717   ac_header_preproc=no
18718 fi
18719 rm -f conftest.err conftest.$ac_ext
18720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18721 echo "${ECHO_T}$ac_header_preproc" >&6
18722
18723 # So?  What about this header?
18724 case $ac_header_compiler:$ac_header_preproc in
18725   yes:no )
18726     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18728     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18730     (
18731       cat <<\_ASBOX
18732 ## ------------------------------------ ##
18733 ## Report this to bug-autoconf@gnu.org. ##
18734 ## ------------------------------------ ##
18735 _ASBOX
18736     ) |
18737       sed "s/^/$as_me: WARNING:     /" >&2
18738     ;;
18739   no:yes )
18740     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18742     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18744     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18746     (
18747       cat <<\_ASBOX
18748 ## ------------------------------------ ##
18749 ## Report this to bug-autoconf@gnu.org. ##
18750 ## ------------------------------------ ##
18751 _ASBOX
18752     ) |
18753       sed "s/^/$as_me: WARNING:     /" >&2
18754     ;;
18755 esac
18756 echo "$as_me:$LINENO: checking for $ac_header" >&5
18757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18759   echo $ECHO_N "(cached) $ECHO_C" >&6
18760 else
18761   eval "$as_ac_Header=$ac_header_preproc"
18762 fi
18763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18765
18766 fi
18767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18768   cat >>confdefs.h <<_ACEOF
18769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18770 _ACEOF
18771
18772 fi
18773
18774 done
18775
18776   echo "$as_me:$LINENO: checking whether memchr is declared" >&5
18777 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
18778 if test "${ac_cv_have_decl_memchr+set}" = set; then
18779   echo $ECHO_N "(cached) $ECHO_C" >&6
18780 else
18781   cat >conftest.$ac_ext <<_ACEOF
18782 #line $LINENO "configure"
18783 /* confdefs.h.  */
18784 _ACEOF
18785 cat confdefs.h >>conftest.$ac_ext
18786 cat >>conftest.$ac_ext <<_ACEOF
18787 /* end confdefs.h.  */
18788 $ac_includes_default
18789 int
18790 main ()
18791 {
18792 #ifndef memchr
18793   char *p = (char *) memchr;
18794 #endif
18795
18796   ;
18797   return 0;
18798 }
18799 _ACEOF
18800 rm -f conftest.$ac_objext
18801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18802   (eval $ac_compile) 2>&5
18803   ac_status=$?
18804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805   (exit $ac_status); } &&
18806          { ac_try='test -s conftest.$ac_objext'
18807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18808   (eval $ac_try) 2>&5
18809   ac_status=$?
18810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811   (exit $ac_status); }; }; then
18812   ac_cv_have_decl_memchr=yes
18813 else
18814   echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18816
18817 ac_cv_have_decl_memchr=no
18818 fi
18819 rm -f conftest.$ac_objext conftest.$ac_ext
18820 fi
18821 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
18822 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
18823 if test $ac_cv_have_decl_memchr = yes; then
18824
18825 cat >>confdefs.h <<_ACEOF
18826 #define HAVE_DECL_MEMCHR 1
18827 _ACEOF
18828
18829
18830 else
18831   cat >>confdefs.h <<_ACEOF
18832 #define HAVE_DECL_MEMCHR 0
18833 _ACEOF
18834
18835
18836 fi
18837
18838
18839
18840   # This is necessary because automake-1.6.1 doesn't understand
18841   # that the above use of AC_FUNC_STRNLEN means we may have to use
18842   # lib/strnlen.c.
18843   test $ac_cv_func_strnlen_working = yes \
18844     && LIBOBJS="$LIBOBJS strnlen.$ac_objext"
18845
18846
18847
18848
18849
18850
18851
18852
18853 for ac_header in fcntl.h sys/time.h stdint.h unistd.h
18854 do
18855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18857   echo "$as_me:$LINENO: checking for $ac_header" >&5
18858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18860   echo $ECHO_N "(cached) $ECHO_C" >&6
18861 fi
18862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18864 else
18865   # Is the header compilable?
18866 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18868 cat >conftest.$ac_ext <<_ACEOF
18869 #line $LINENO "configure"
18870 /* confdefs.h.  */
18871 _ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h.  */
18875 $ac_includes_default
18876 #include <$ac_header>
18877 _ACEOF
18878 rm -f conftest.$ac_objext
18879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18880   (eval $ac_compile) 2>&5
18881   ac_status=$?
18882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883   (exit $ac_status); } &&
18884          { ac_try='test -s conftest.$ac_objext'
18885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18886   (eval $ac_try) 2>&5
18887   ac_status=$?
18888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889   (exit $ac_status); }; }; then
18890   ac_header_compiler=yes
18891 else
18892   echo "$as_me: failed program was:" >&5
18893 sed 's/^/| /' conftest.$ac_ext >&5
18894
18895 ac_header_compiler=no
18896 fi
18897 rm -f conftest.$ac_objext conftest.$ac_ext
18898 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18899 echo "${ECHO_T}$ac_header_compiler" >&6
18900
18901 # Is the header present?
18902 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18904 cat >conftest.$ac_ext <<_ACEOF
18905 #line $LINENO "configure"
18906 /* confdefs.h.  */
18907 _ACEOF
18908 cat confdefs.h >>conftest.$ac_ext
18909 cat >>conftest.$ac_ext <<_ACEOF
18910 /* end confdefs.h.  */
18911 #include <$ac_header>
18912 _ACEOF
18913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18914   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18915   ac_status=$?
18916   grep -v '^ *+' conftest.er1 >conftest.err
18917   rm -f conftest.er1
18918   cat conftest.err >&5
18919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920   (exit $ac_status); } >/dev/null; then
18921   if test -s conftest.err; then
18922     ac_cpp_err=$ac_c_preproc_warn_flag
18923   else
18924     ac_cpp_err=
18925   fi
18926 else
18927   ac_cpp_err=yes
18928 fi
18929 if test -z "$ac_cpp_err"; then
18930   ac_header_preproc=yes
18931 else
18932   echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18934
18935   ac_header_preproc=no
18936 fi
18937 rm -f conftest.err conftest.$ac_ext
18938 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18939 echo "${ECHO_T}$ac_header_preproc" >&6
18940
18941 # So?  What about this header?
18942 case $ac_header_compiler:$ac_header_preproc in
18943   yes:no )
18944     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18946     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18948     (
18949       cat <<\_ASBOX
18950 ## ------------------------------------ ##
18951 ## Report this to bug-autoconf@gnu.org. ##
18952 ## ------------------------------------ ##
18953 _ASBOX
18954     ) |
18955       sed "s/^/$as_me: WARNING:     /" >&2
18956     ;;
18957   no:yes )
18958     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18960     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18964     (
18965       cat <<\_ASBOX
18966 ## ------------------------------------ ##
18967 ## Report this to bug-autoconf@gnu.org. ##
18968 ## ------------------------------------ ##
18969 _ASBOX
18970     ) |
18971       sed "s/^/$as_me: WARNING:     /" >&2
18972     ;;
18973 esac
18974 echo "$as_me:$LINENO: checking for $ac_header" >&5
18975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18977   echo $ECHO_N "(cached) $ECHO_C" >&6
18978 else
18979   eval "$as_ac_Header=$ac_header_preproc"
18980 fi
18981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18983
18984 fi
18985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18986   cat >>confdefs.h <<_ACEOF
18987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18988 _ACEOF
18989
18990 fi
18991
18992 done
18993
18994
18995
18996 for ac_func in __secure_getenv gettimeofday
18997 do
18998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18999 echo "$as_me:$LINENO: checking for $ac_func" >&5
19000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19001 if eval "test \"\${$as_ac_var+set}\" = set"; then
19002   echo $ECHO_N "(cached) $ECHO_C" >&6
19003 else
19004   cat >conftest.$ac_ext <<_ACEOF
19005 #line $LINENO "configure"
19006 /* confdefs.h.  */
19007 _ACEOF
19008 cat confdefs.h >>conftest.$ac_ext
19009 cat >>conftest.$ac_ext <<_ACEOF
19010 /* end confdefs.h.  */
19011 /* System header to define __stub macros and hopefully few prototypes,
19012     which can conflict with char $ac_func (); below.
19013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19014     <limits.h> exists even on freestanding compilers.  */
19015 #ifdef __STDC__
19016 # include <limits.h>
19017 #else
19018 # include <assert.h>
19019 #endif
19020 /* Override any gcc2 internal prototype to avoid an error.  */
19021 #ifdef __cplusplus
19022 extern "C"
19023 {
19024 #endif
19025 /* We use char because int might match the return type of a gcc2
19026    builtin and then its argument prototype would still apply.  */
19027 char $ac_func ();
19028 /* The GNU C library defines this for functions which it implements
19029     to always fail with ENOSYS.  Some functions are actually named
19030     something starting with __ and the normal name is an alias.  */
19031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19032 choke me
19033 #else
19034 char (*f) () = $ac_func;
19035 #endif
19036 #ifdef __cplusplus
19037 }
19038 #endif
19039
19040 int
19041 main ()
19042 {
19043 return f != $ac_func;
19044   ;
19045   return 0;
19046 }
19047 _ACEOF
19048 rm -f conftest.$ac_objext conftest$ac_exeext
19049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19050   (eval $ac_link) 2>&5
19051   ac_status=$?
19052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053   (exit $ac_status); } &&
19054          { ac_try='test -s conftest$ac_exeext'
19055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056   (eval $ac_try) 2>&5
19057   ac_status=$?
19058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059   (exit $ac_status); }; }; then
19060   eval "$as_ac_var=yes"
19061 else
19062   echo "$as_me: failed program was:" >&5
19063 sed 's/^/| /' conftest.$ac_ext >&5
19064
19065 eval "$as_ac_var=no"
19066 fi
19067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19068 fi
19069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19070 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19071 if test `eval echo '${'$as_ac_var'}'` = yes; then
19072   cat >>confdefs.h <<_ACEOF
19073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19074 _ACEOF
19075
19076 fi
19077 done
19078
19079   echo "$as_me:$LINENO: checking whether getenv is declared" >&5
19080 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
19081 if test "${ac_cv_have_decl_getenv+set}" = set; then
19082   echo $ECHO_N "(cached) $ECHO_C" >&6
19083 else
19084   cat >conftest.$ac_ext <<_ACEOF
19085 #line $LINENO "configure"
19086 /* confdefs.h.  */
19087 _ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h.  */
19091 $ac_includes_default
19092 int
19093 main ()
19094 {
19095 #ifndef getenv
19096   char *p = (char *) getenv;
19097 #endif
19098
19099   ;
19100   return 0;
19101 }
19102 _ACEOF
19103 rm -f conftest.$ac_objext
19104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19105   (eval $ac_compile) 2>&5
19106   ac_status=$?
19107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108   (exit $ac_status); } &&
19109          { ac_try='test -s conftest.$ac_objext'
19110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19111   (eval $ac_try) 2>&5
19112   ac_status=$?
19113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114   (exit $ac_status); }; }; then
19115   ac_cv_have_decl_getenv=yes
19116 else
19117   echo "$as_me: failed program was:" >&5
19118 sed 's/^/| /' conftest.$ac_ext >&5
19119
19120 ac_cv_have_decl_getenv=no
19121 fi
19122 rm -f conftest.$ac_objext conftest.$ac_ext
19123 fi
19124 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
19125 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
19126 if test $ac_cv_have_decl_getenv = yes; then
19127
19128 cat >>confdefs.h <<_ACEOF
19129 #define HAVE_DECL_GETENV 1
19130 _ACEOF
19131
19132
19133 else
19134   cat >>confdefs.h <<_ACEOF
19135 #define HAVE_DECL_GETENV 0
19136 _ACEOF
19137
19138
19139 fi
19140
19141
19142
19143
19144 echo "$as_me:$LINENO: checking for function prototypes" >&5
19145 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
19146 if test "$ac_cv_prog_cc_stdc" != no; then
19147   echo "$as_me:$LINENO: result: yes" >&5
19148 echo "${ECHO_T}yes" >&6
19149
19150 cat >>confdefs.h <<\_ACEOF
19151 #define PROTOTYPES 1
19152 _ACEOF
19153
19154
19155 cat >>confdefs.h <<\_ACEOF
19156 #define __PROTOTYPES 1
19157 _ACEOF
19158
19159 else
19160   echo "$as_me:$LINENO: result: no" >&5
19161 echo "${ECHO_T}no" >&6
19162 fi
19163
19164
19165
19166 for ac_header in stdlib.h unistd.h
19167 do
19168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19170   echo "$as_me:$LINENO: checking for $ac_header" >&5
19171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19173   echo $ECHO_N "(cached) $ECHO_C" >&6
19174 fi
19175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19177 else
19178   # Is the header compilable?
19179 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19181 cat >conftest.$ac_ext <<_ACEOF
19182 #line $LINENO "configure"
19183 /* confdefs.h.  */
19184 _ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h.  */
19188 $ac_includes_default
19189 #include <$ac_header>
19190 _ACEOF
19191 rm -f conftest.$ac_objext
19192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19193   (eval $ac_compile) 2>&5
19194   ac_status=$?
19195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196   (exit $ac_status); } &&
19197          { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
19204 else
19205   echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19207
19208 ac_header_compiler=no
19209 fi
19210 rm -f conftest.$ac_objext conftest.$ac_ext
19211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19212 echo "${ECHO_T}$ac_header_compiler" >&6
19213
19214 # Is the header present?
19215 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19217 cat >conftest.$ac_ext <<_ACEOF
19218 #line $LINENO "configure"
19219 /* confdefs.h.  */
19220 _ACEOF
19221 cat confdefs.h >>conftest.$ac_ext
19222 cat >>conftest.$ac_ext <<_ACEOF
19223 /* end confdefs.h.  */
19224 #include <$ac_header>
19225 _ACEOF
19226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19227   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19228   ac_status=$?
19229   grep -v '^ *+' conftest.er1 >conftest.err
19230   rm -f conftest.er1
19231   cat conftest.err >&5
19232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233   (exit $ac_status); } >/dev/null; then
19234   if test -s conftest.err; then
19235     ac_cpp_err=$ac_c_preproc_warn_flag
19236   else
19237     ac_cpp_err=
19238   fi
19239 else
19240   ac_cpp_err=yes
19241 fi
19242 if test -z "$ac_cpp_err"; then
19243   ac_header_preproc=yes
19244 else
19245   echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.$ac_ext >&5
19247
19248   ac_header_preproc=no
19249 fi
19250 rm -f conftest.err conftest.$ac_ext
19251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19252 echo "${ECHO_T}$ac_header_preproc" >&6
19253
19254 # So?  What about this header?
19255 case $ac_header_compiler:$ac_header_preproc in
19256   yes:no )
19257     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19261     (
19262       cat <<\_ASBOX
19263 ## ------------------------------------ ##
19264 ## Report this to bug-autoconf@gnu.org. ##
19265 ## ------------------------------------ ##
19266 _ASBOX
19267     ) |
19268       sed "s/^/$as_me: WARNING:     /" >&2
19269     ;;
19270   no:yes )
19271     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19273     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19274 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19275     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19277     (
19278       cat <<\_ASBOX
19279 ## ------------------------------------ ##
19280 ## Report this to bug-autoconf@gnu.org. ##
19281 ## ------------------------------------ ##
19282 _ASBOX
19283     ) |
19284       sed "s/^/$as_me: WARNING:     /" >&2
19285     ;;
19286 esac
19287 echo "$as_me:$LINENO: checking for $ac_header" >&5
19288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19290   echo $ECHO_N "(cached) $ECHO_C" >&6
19291 else
19292   eval "$as_ac_Header=$ac_header_preproc"
19293 fi
19294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19296
19297 fi
19298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19299   cat >>confdefs.h <<_ACEOF
19300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19301 _ACEOF
19302
19303 fi
19304
19305 done
19306
19307    echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
19308 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6
19309 if test "${ac_cv_func_getcwd_null+set}" = set; then
19310   echo $ECHO_N "(cached) $ECHO_C" >&6
19311 else
19312   if test "$cross_compiling" = yes; then
19313   ac_cv_func_getcwd_null=no
19314 else
19315   cat >conftest.$ac_ext <<_ACEOF
19316 #line $LINENO "configure"
19317 /* confdefs.h.  */
19318 _ACEOF
19319 cat confdefs.h >>conftest.$ac_ext
19320 cat >>conftest.$ac_ext <<_ACEOF
19321 /* end confdefs.h.  */
19322
19323 #        ifdef HAVE_STDLIB_H
19324 #         include <stdlib.h>
19325 #        endif
19326 #        ifdef HAVE_UNISTD_H
19327 #         include <unistd.h>
19328 #        endif
19329 #        ifndef getcwd
19330          char *getcwd ();
19331 #        endif
19332          int
19333          main ()
19334          {
19335            if (chdir ("/") != 0)
19336              exit (1);
19337            else
19338              {
19339                char *f = getcwd (NULL, 0);
19340                exit (! (f && f[0] == '/' && !f[1]));
19341              }
19342          }
19343 _ACEOF
19344 rm -f conftest$ac_exeext
19345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19346   (eval $ac_link) 2>&5
19347   ac_status=$?
19348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351   (eval $ac_try) 2>&5
19352   ac_status=$?
19353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354   (exit $ac_status); }; }; then
19355   ac_cv_func_getcwd_null=yes
19356 else
19357   echo "$as_me: program exited with status $ac_status" >&5
19358 echo "$as_me: failed program was:" >&5
19359 sed 's/^/| /' conftest.$ac_ext >&5
19360
19361 ( exit $ac_status )
19362 ac_cv_func_getcwd_null=no
19363 fi
19364 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19365 fi
19366 fi
19367 echo "$as_me:$LINENO: result: $ac_cv_func_getcwd_null" >&5
19368 echo "${ECHO_T}$ac_cv_func_getcwd_null" >&6
19369    if test $ac_cv_func_getcwd_null = yes; then
19370
19371 cat >>confdefs.h <<\_ACEOF
19372 #define HAVE_GETCWD_NULL 1
19373 _ACEOF
19374
19375    fi
19376
19377
19378
19379
19380
19381
19382 for ac_header in limits.h stdlib.h sys/param.h unistd.h
19383 do
19384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19386   echo "$as_me:$LINENO: checking for $ac_header" >&5
19387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19389   echo $ECHO_N "(cached) $ECHO_C" >&6
19390 fi
19391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19393 else
19394   # Is the header compilable?
19395 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19397 cat >conftest.$ac_ext <<_ACEOF
19398 #line $LINENO "configure"
19399 /* confdefs.h.  */
19400 _ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h.  */
19404 $ac_includes_default
19405 #include <$ac_header>
19406 _ACEOF
19407 rm -f conftest.$ac_objext
19408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19409   (eval $ac_compile) 2>&5
19410   ac_status=$?
19411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412   (exit $ac_status); } &&
19413          { ac_try='test -s conftest.$ac_objext'
19414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19415   (eval $ac_try) 2>&5
19416   ac_status=$?
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); }; }; then
19419   ac_header_compiler=yes
19420 else
19421   echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19423
19424 ac_header_compiler=no
19425 fi
19426 rm -f conftest.$ac_objext conftest.$ac_ext
19427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19428 echo "${ECHO_T}$ac_header_compiler" >&6
19429
19430 # Is the header present?
19431 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19433 cat >conftest.$ac_ext <<_ACEOF
19434 #line $LINENO "configure"
19435 /* confdefs.h.  */
19436 _ACEOF
19437 cat confdefs.h >>conftest.$ac_ext
19438 cat >>conftest.$ac_ext <<_ACEOF
19439 /* end confdefs.h.  */
19440 #include <$ac_header>
19441 _ACEOF
19442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19443   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19444   ac_status=$?
19445   grep -v '^ *+' conftest.er1 >conftest.err
19446   rm -f conftest.er1
19447   cat conftest.err >&5
19448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449   (exit $ac_status); } >/dev/null; then
19450   if test -s conftest.err; then
19451     ac_cpp_err=$ac_c_preproc_warn_flag
19452   else
19453     ac_cpp_err=
19454   fi
19455 else
19456   ac_cpp_err=yes
19457 fi
19458 if test -z "$ac_cpp_err"; then
19459   ac_header_preproc=yes
19460 else
19461   echo "$as_me: failed program was:" >&5
19462 sed 's/^/| /' conftest.$ac_ext >&5
19463
19464   ac_header_preproc=no
19465 fi
19466 rm -f conftest.err conftest.$ac_ext
19467 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19468 echo "${ECHO_T}$ac_header_preproc" >&6
19469
19470 # So?  What about this header?
19471 case $ac_header_compiler:$ac_header_preproc in
19472   yes:no )
19473     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19475     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19477     (
19478       cat <<\_ASBOX
19479 ## ------------------------------------ ##
19480 ## Report this to bug-autoconf@gnu.org. ##
19481 ## ------------------------------------ ##
19482 _ASBOX
19483     ) |
19484       sed "s/^/$as_me: WARNING:     /" >&2
19485     ;;
19486   no:yes )
19487     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19489     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19490 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19491     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19493     (
19494       cat <<\_ASBOX
19495 ## ------------------------------------ ##
19496 ## Report this to bug-autoconf@gnu.org. ##
19497 ## ------------------------------------ ##
19498 _ASBOX
19499     ) |
19500       sed "s/^/$as_me: WARNING:     /" >&2
19501     ;;
19502 esac
19503 echo "$as_me:$LINENO: checking for $ac_header" >&5
19504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19506   echo $ECHO_N "(cached) $ECHO_C" >&6
19507 else
19508   eval "$as_ac_Header=$ac_header_preproc"
19509 fi
19510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19512
19513 fi
19514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19515   cat >>confdefs.h <<_ACEOF
19516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19517 _ACEOF
19518
19519 fi
19520
19521 done
19522
19523
19524 for ac_func in getcwd
19525 do
19526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19527 echo "$as_me:$LINENO: checking for $ac_func" >&5
19528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19529 if eval "test \"\${$as_ac_var+set}\" = set"; then
19530   echo $ECHO_N "(cached) $ECHO_C" >&6
19531 else
19532   cat >conftest.$ac_ext <<_ACEOF
19533 #line $LINENO "configure"
19534 /* confdefs.h.  */
19535 _ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h.  */
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 #ifdef __STDC__
19544 # include <limits.h>
19545 #else
19546 # include <assert.h>
19547 #endif
19548 /* Override any gcc2 internal prototype to avoid an error.  */
19549 #ifdef __cplusplus
19550 extern "C"
19551 {
19552 #endif
19553 /* We use char because int might match the return type of a gcc2
19554    builtin and then its argument prototype would still apply.  */
19555 char $ac_func ();
19556 /* The GNU C library defines this for functions which it implements
19557     to always fail with ENOSYS.  Some functions are actually named
19558     something starting with __ and the normal name is an alias.  */
19559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19560 choke me
19561 #else
19562 char (*f) () = $ac_func;
19563 #endif
19564 #ifdef __cplusplus
19565 }
19566 #endif
19567
19568 int
19569 main ()
19570 {
19571 return f != $ac_func;
19572   ;
19573   return 0;
19574 }
19575 _ACEOF
19576 rm -f conftest.$ac_objext conftest$ac_exeext
19577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19578   (eval $ac_link) 2>&5
19579   ac_status=$?
19580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581   (exit $ac_status); } &&
19582          { ac_try='test -s conftest$ac_exeext'
19583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584   (eval $ac_try) 2>&5
19585   ac_status=$?
19586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587   (exit $ac_status); }; }; then
19588   eval "$as_ac_var=yes"
19589 else
19590   echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.$ac_ext >&5
19592
19593 eval "$as_ac_var=no"
19594 fi
19595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19596 fi
19597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19599 if test `eval echo '${'$as_ac_var'}'` = yes; then
19600   cat >>confdefs.h <<_ACEOF
19601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19602 _ACEOF
19603
19604 fi
19605 done
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615 for ac_header in limits.h stdlib.h sys/types.h unistd.h
19616 do
19617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19619   echo "$as_me:$LINENO: checking for $ac_header" >&5
19620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19622   echo $ECHO_N "(cached) $ECHO_C" >&6
19623 fi
19624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19626 else
19627   # Is the header compilable?
19628 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19630 cat >conftest.$ac_ext <<_ACEOF
19631 #line $LINENO "configure"
19632 /* confdefs.h.  */
19633 _ACEOF
19634 cat confdefs.h >>conftest.$ac_ext
19635 cat >>conftest.$ac_ext <<_ACEOF
19636 /* end confdefs.h.  */
19637 $ac_includes_default
19638 #include <$ac_header>
19639 _ACEOF
19640 rm -f conftest.$ac_objext
19641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19642   (eval $ac_compile) 2>&5
19643   ac_status=$?
19644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645   (exit $ac_status); } &&
19646          { ac_try='test -s conftest.$ac_objext'
19647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648   (eval $ac_try) 2>&5
19649   ac_status=$?
19650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651   (exit $ac_status); }; }; then
19652   ac_header_compiler=yes
19653 else
19654   echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19656
19657 ac_header_compiler=no
19658 fi
19659 rm -f conftest.$ac_objext conftest.$ac_ext
19660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19661 echo "${ECHO_T}$ac_header_compiler" >&6
19662
19663 # Is the header present?
19664 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19666 cat >conftest.$ac_ext <<_ACEOF
19667 #line $LINENO "configure"
19668 /* confdefs.h.  */
19669 _ACEOF
19670 cat confdefs.h >>conftest.$ac_ext
19671 cat >>conftest.$ac_ext <<_ACEOF
19672 /* end confdefs.h.  */
19673 #include <$ac_header>
19674 _ACEOF
19675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19676   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19677   ac_status=$?
19678   grep -v '^ *+' conftest.er1 >conftest.err
19679   rm -f conftest.er1
19680   cat conftest.err >&5
19681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682   (exit $ac_status); } >/dev/null; then
19683   if test -s conftest.err; then
19684     ac_cpp_err=$ac_c_preproc_warn_flag
19685   else
19686     ac_cpp_err=
19687   fi
19688 else
19689   ac_cpp_err=yes
19690 fi
19691 if test -z "$ac_cpp_err"; then
19692   ac_header_preproc=yes
19693 else
19694   echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19696
19697   ac_header_preproc=no
19698 fi
19699 rm -f conftest.err conftest.$ac_ext
19700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19701 echo "${ECHO_T}$ac_header_preproc" >&6
19702
19703 # So?  What about this header?
19704 case $ac_header_compiler:$ac_header_preproc in
19705   yes:no )
19706     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19708     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19710     (
19711       cat <<\_ASBOX
19712 ## ------------------------------------ ##
19713 ## Report this to bug-autoconf@gnu.org. ##
19714 ## ------------------------------------ ##
19715 _ASBOX
19716     ) |
19717       sed "s/^/$as_me: WARNING:     /" >&2
19718     ;;
19719   no:yes )
19720     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19722     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19724     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19726     (
19727       cat <<\_ASBOX
19728 ## ------------------------------------ ##
19729 ## Report this to bug-autoconf@gnu.org. ##
19730 ## ------------------------------------ ##
19731 _ASBOX
19732     ) |
19733       sed "s/^/$as_me: WARNING:     /" >&2
19734     ;;
19735 esac
19736 echo "$as_me:$LINENO: checking for $ac_header" >&5
19737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19739   echo $ECHO_N "(cached) $ECHO_C" >&6
19740 else
19741   eval "$as_ac_Header=$ac_header_preproc"
19742 fi
19743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19745
19746 fi
19747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19748   cat >>confdefs.h <<_ACEOF
19749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19750 _ACEOF
19751
19752 fi
19753
19754 done
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776    # called by mkstemp
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789 ac_header_dirent=no
19790 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19791   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19792 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19793 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19795   echo $ECHO_N "(cached) $ECHO_C" >&6
19796 else
19797   cat >conftest.$ac_ext <<_ACEOF
19798 #line $LINENO "configure"
19799 /* confdefs.h.  */
19800 _ACEOF
19801 cat confdefs.h >>conftest.$ac_ext
19802 cat >>conftest.$ac_ext <<_ACEOF
19803 /* end confdefs.h.  */
19804 #include <sys/types.h>
19805 #include <$ac_hdr>
19806
19807 int
19808 main ()
19809 {
19810 if ((DIR *) 0)
19811 return 0;
19812   ;
19813   return 0;
19814 }
19815 _ACEOF
19816 rm -f conftest.$ac_objext
19817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19818   (eval $ac_compile) 2>&5
19819   ac_status=$?
19820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821   (exit $ac_status); } &&
19822          { ac_try='test -s conftest.$ac_objext'
19823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19824   (eval $ac_try) 2>&5
19825   ac_status=$?
19826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827   (exit $ac_status); }; }; then
19828   eval "$as_ac_Header=yes"
19829 else
19830   echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19832
19833 eval "$as_ac_Header=no"
19834 fi
19835 rm -f conftest.$ac_objext conftest.$ac_ext
19836 fi
19837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19840   cat >>confdefs.h <<_ACEOF
19841 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19842 _ACEOF
19843
19844 ac_header_dirent=$ac_hdr; break
19845 fi
19846
19847 done
19848 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19849 if test $ac_header_dirent = dirent.h; then
19850
19851   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19852 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19853 if test "${ac_cv_search_opendir+set}" = set; then
19854   echo $ECHO_N "(cached) $ECHO_C" >&6
19855 else
19856
19857     ac_func_search_save_LIBS=$LIBS
19858     ac_cv_search_opendir=no
19859     cat >conftest.$ac_ext <<_ACEOF
19860 #line $LINENO "configure"
19861 /* confdefs.h.  */
19862 _ACEOF
19863 cat confdefs.h >>conftest.$ac_ext
19864 cat >>conftest.$ac_ext <<_ACEOF
19865 /* end confdefs.h.  */
19866
19867 /* Override any gcc2 internal prototype to avoid an error.  */
19868 #ifdef __cplusplus
19869 extern "C"
19870 #endif
19871 /* We use char because int might match the return type of a gcc2
19872    builtin and then its argument prototype would still apply.  */
19873 char opendir ();
19874 int
19875 main ()
19876 {
19877 opendir ();
19878   ;
19879   return 0;
19880 }
19881 _ACEOF
19882 rm -f conftest.$ac_objext conftest$ac_exeext
19883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19884   (eval $ac_link) 2>&5
19885   ac_status=$?
19886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887   (exit $ac_status); } &&
19888          { ac_try='test -s conftest$ac_exeext'
19889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890   (eval $ac_try) 2>&5
19891   ac_status=$?
19892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893   (exit $ac_status); }; }; then
19894   ac_cv_search_opendir='none required'
19895 else
19896   echo "$as_me: failed program was:" >&5
19897 sed 's/^/| /' conftest.$ac_ext >&5
19898
19899 fi
19900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19901     if test "$ac_cv_search_opendir" = no; then
19902       for ac_lib in dir; do
19903         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19904         cat >conftest.$ac_ext <<_ACEOF
19905 #line $LINENO "configure"
19906 /* confdefs.h.  */
19907 _ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h.  */
19911
19912 /* Override any gcc2 internal prototype to avoid an error.  */
19913 #ifdef __cplusplus
19914 extern "C"
19915 #endif
19916 /* We use char because int might match the return type of a gcc2
19917    builtin and then its argument prototype would still apply.  */
19918 char opendir ();
19919 int
19920 main ()
19921 {
19922 opendir ();
19923   ;
19924   return 0;
19925 }
19926 _ACEOF
19927 rm -f conftest.$ac_objext conftest$ac_exeext
19928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19929   (eval $ac_link) 2>&5
19930   ac_status=$?
19931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932   (exit $ac_status); } &&
19933          { ac_try='test -s conftest$ac_exeext'
19934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19935   (eval $ac_try) 2>&5
19936   ac_status=$?
19937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938   (exit $ac_status); }; }; then
19939   ac_cv_search_opendir="-l$ac_lib"; break
19940 else
19941   echo "$as_me: failed program was:" >&5
19942 sed 's/^/| /' conftest.$ac_ext >&5
19943
19944 fi
19945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19946       done
19947     fi
19948     LIBS=$ac_func_search_save_LIBS
19949
19950 fi
19951 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19952 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19953
19954   if test "$ac_cv_search_opendir" = no; then :
19955
19956   else
19957     if test "$ac_cv_search_opendir" = 'none required'; then :
19958
19959     else
19960       LIBS="$ac_cv_search_opendir $LIBS"
19961
19962     fi
19963   fi
19964
19965 else
19966
19967   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19968 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19969 if test "${ac_cv_search_opendir+set}" = set; then
19970   echo $ECHO_N "(cached) $ECHO_C" >&6
19971 else
19972
19973     ac_func_search_save_LIBS=$LIBS
19974     ac_cv_search_opendir=no
19975     cat >conftest.$ac_ext <<_ACEOF
19976 #line $LINENO "configure"
19977 /* confdefs.h.  */
19978 _ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h.  */
19982
19983 /* Override any gcc2 internal prototype to avoid an error.  */
19984 #ifdef __cplusplus
19985 extern "C"
19986 #endif
19987 /* We use char because int might match the return type of a gcc2
19988    builtin and then its argument prototype would still apply.  */
19989 char opendir ();
19990 int
19991 main ()
19992 {
19993 opendir ();
19994   ;
19995   return 0;
19996 }
19997 _ACEOF
19998 rm -f conftest.$ac_objext conftest$ac_exeext
19999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20000   (eval $ac_link) 2>&5
20001   ac_status=$?
20002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003   (exit $ac_status); } &&
20004          { ac_try='test -s conftest$ac_exeext'
20005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006   (eval $ac_try) 2>&5
20007   ac_status=$?
20008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009   (exit $ac_status); }; }; then
20010   ac_cv_search_opendir='none required'
20011 else
20012   echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20014
20015 fi
20016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20017     if test "$ac_cv_search_opendir" = no; then
20018       for ac_lib in x; do
20019         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20020         cat >conftest.$ac_ext <<_ACEOF
20021 #line $LINENO "configure"
20022 /* confdefs.h.  */
20023 _ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h.  */
20027
20028 /* Override any gcc2 internal prototype to avoid an error.  */
20029 #ifdef __cplusplus
20030 extern "C"
20031 #endif
20032 /* We use char because int might match the return type of a gcc2
20033    builtin and then its argument prototype would still apply.  */
20034 char opendir ();
20035 int
20036 main ()
20037 {
20038 opendir ();
20039   ;
20040   return 0;
20041 }
20042 _ACEOF
20043 rm -f conftest.$ac_objext conftest$ac_exeext
20044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20045   (eval $ac_link) 2>&5
20046   ac_status=$?
20047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048   (exit $ac_status); } &&
20049          { ac_try='test -s conftest$ac_exeext'
20050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051   (eval $ac_try) 2>&5
20052   ac_status=$?
20053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054   (exit $ac_status); }; }; then
20055   ac_cv_search_opendir="-l$ac_lib"; break
20056 else
20057   echo "$as_me: failed program was:" >&5
20058 sed 's/^/| /' conftest.$ac_ext >&5
20059
20060 fi
20061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20062       done
20063     fi
20064     LIBS=$ac_func_search_save_LIBS
20065
20066 fi
20067 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20068 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20069
20070   if test "$ac_cv_search_opendir" = no; then :
20071
20072   else
20073     if test "$ac_cv_search_opendir" = 'none required'; then :
20074
20075     else
20076       LIBS="$ac_cv_search_opendir $LIBS"
20077
20078     fi
20079   fi
20080
20081 fi
20082
20083   dirfd_headers='
20084 #if HAVE_DIRENT_H
20085 # include <dirent.h>
20086 #else /* not HAVE_DIRENT_H */
20087 # define dirent direct
20088 # if HAVE_SYS_NDIR_H
20089 #  include <sys/ndir.h>
20090 # endif /* HAVE_SYS_NDIR_H */
20091 # if HAVE_SYS_DIR_H
20092 #  include <sys/dir.h>
20093 # endif /* HAVE_SYS_DIR_H */
20094 # if HAVE_NDIR_H
20095 #  include <ndir.h>
20096 # endif /* HAVE_NDIR_H */
20097 #endif /* HAVE_DIRENT_H */
20098 '
20099
20100 for ac_func in dirfd
20101 do
20102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20103 echo "$as_me:$LINENO: checking for $ac_func" >&5
20104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20105 if eval "test \"\${$as_ac_var+set}\" = set"; then
20106   echo $ECHO_N "(cached) $ECHO_C" >&6
20107 else
20108   cat >conftest.$ac_ext <<_ACEOF
20109 #line $LINENO "configure"
20110 /* confdefs.h.  */
20111 _ACEOF
20112 cat confdefs.h >>conftest.$ac_ext
20113 cat >>conftest.$ac_ext <<_ACEOF
20114 /* end confdefs.h.  */
20115 /* System header to define __stub macros and hopefully few prototypes,
20116     which can conflict with char $ac_func (); below.
20117     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20118     <limits.h> exists even on freestanding compilers.  */
20119 #ifdef __STDC__
20120 # include <limits.h>
20121 #else
20122 # include <assert.h>
20123 #endif
20124 /* Override any gcc2 internal prototype to avoid an error.  */
20125 #ifdef __cplusplus
20126 extern "C"
20127 {
20128 #endif
20129 /* We use char because int might match the return type of a gcc2
20130    builtin and then its argument prototype would still apply.  */
20131 char $ac_func ();
20132 /* The GNU C library defines this for functions which it implements
20133     to always fail with ENOSYS.  Some functions are actually named
20134     something starting with __ and the normal name is an alias.  */
20135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20136 choke me
20137 #else
20138 char (*f) () = $ac_func;
20139 #endif
20140 #ifdef __cplusplus
20141 }
20142 #endif
20143
20144 int
20145 main ()
20146 {
20147 return f != $ac_func;
20148   ;
20149   return 0;
20150 }
20151 _ACEOF
20152 rm -f conftest.$ac_objext conftest$ac_exeext
20153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20154   (eval $ac_link) 2>&5
20155   ac_status=$?
20156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157   (exit $ac_status); } &&
20158          { ac_try='test -s conftest$ac_exeext'
20159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160   (eval $ac_try) 2>&5
20161   ac_status=$?
20162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163   (exit $ac_status); }; }; then
20164   eval "$as_ac_var=yes"
20165 else
20166   echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20168
20169 eval "$as_ac_var=no"
20170 fi
20171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20172 fi
20173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20174 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20175 if test `eval echo '${'$as_ac_var'}'` = yes; then
20176   cat >>confdefs.h <<_ACEOF
20177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20178 _ACEOF
20179
20180 fi
20181 done
20182
20183   echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
20184 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6
20185 if test "${ac_cv_have_decl_dirfd+set}" = set; then
20186   echo $ECHO_N "(cached) $ECHO_C" >&6
20187 else
20188   cat >conftest.$ac_ext <<_ACEOF
20189 #line $LINENO "configure"
20190 /* confdefs.h.  */
20191 _ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h.  */
20195 $dirfd_headers
20196
20197 int
20198 main ()
20199 {
20200 #ifndef dirfd
20201   char *p = (char *) dirfd;
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_dirfd=yes
20221 else
20222   echo "$as_me: failed program was:" >&5
20223 sed 's/^/| /' conftest.$ac_ext >&5
20224
20225 ac_cv_have_decl_dirfd=no
20226 fi
20227 rm -f conftest.$ac_objext conftest.$ac_ext
20228 fi
20229 echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
20230 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6
20231 if test $ac_cv_have_decl_dirfd = yes; then
20232
20233 cat >>confdefs.h <<_ACEOF
20234 #define HAVE_DECL_DIRFD 1
20235 _ACEOF
20236
20237
20238 else
20239   cat >>confdefs.h <<_ACEOF
20240 #define HAVE_DECL_DIRFD 0
20241 _ACEOF
20242
20243
20244 fi
20245
20246
20247
20248   echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
20249 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6
20250 if test "${jm_cv_func_dirfd_macro+set}" = set; then
20251   echo $ECHO_N "(cached) $ECHO_C" >&6
20252 else
20253   cat >conftest.$ac_ext <<_ACEOF
20254 #line $LINENO "configure"
20255 /* confdefs.h.  */
20256 _ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h.  */
20260 $dirfd_headers
20261 #ifdef dirfd
20262  dirent_header_defines_dirfd
20263 #endif
20264 _ACEOF
20265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20266   $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
20267   jm_cv_func_dirfd_macro=yes
20268 else
20269   jm_cv_func_dirfd_macro=no
20270 fi
20271 rm -f conftest*
20272
20273 fi
20274 echo "$as_me:$LINENO: result: $jm_cv_func_dirfd_macro" >&5
20275 echo "${ECHO_T}$jm_cv_func_dirfd_macro" >&6
20276
20277   # Use the replacement only if we have no function, macro,
20278   # or declaration with that name.
20279   if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
20280       = no,no,no; then
20281
20282 for ac_func in dirfd
20283 do
20284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20285 echo "$as_me:$LINENO: checking for $ac_func" >&5
20286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20287 if eval "test \"\${$as_ac_var+set}\" = set"; then
20288   echo $ECHO_N "(cached) $ECHO_C" >&6
20289 else
20290   cat >conftest.$ac_ext <<_ACEOF
20291 #line $LINENO "configure"
20292 /* confdefs.h.  */
20293 _ACEOF
20294 cat confdefs.h >>conftest.$ac_ext
20295 cat >>conftest.$ac_ext <<_ACEOF
20296 /* end confdefs.h.  */
20297 /* System header to define __stub macros and hopefully few prototypes,
20298     which can conflict with char $ac_func (); below.
20299     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20300     <limits.h> exists even on freestanding compilers.  */
20301 #ifdef __STDC__
20302 # include <limits.h>
20303 #else
20304 # include <assert.h>
20305 #endif
20306 /* Override any gcc2 internal prototype to avoid an error.  */
20307 #ifdef __cplusplus
20308 extern "C"
20309 {
20310 #endif
20311 /* We use char because int might match the return type of a gcc2
20312    builtin and then its argument prototype would still apply.  */
20313 char $ac_func ();
20314 /* The GNU C library defines this for functions which it implements
20315     to always fail with ENOSYS.  Some functions are actually named
20316     something starting with __ and the normal name is an alias.  */
20317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20318 choke me
20319 #else
20320 char (*f) () = $ac_func;
20321 #endif
20322 #ifdef __cplusplus
20323 }
20324 #endif
20325
20326 int
20327 main ()
20328 {
20329 return f != $ac_func;
20330   ;
20331   return 0;
20332 }
20333 _ACEOF
20334 rm -f conftest.$ac_objext conftest$ac_exeext
20335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20336   (eval $ac_link) 2>&5
20337   ac_status=$?
20338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339   (exit $ac_status); } &&
20340          { ac_try='test -s conftest$ac_exeext'
20341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342   (eval $ac_try) 2>&5
20343   ac_status=$?
20344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345   (exit $ac_status); }; }; then
20346   eval "$as_ac_var=yes"
20347 else
20348   echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20350
20351 eval "$as_ac_var=no"
20352 fi
20353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20354 fi
20355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20357 if test `eval echo '${'$as_ac_var'}'` = yes; then
20358   cat >>confdefs.h <<_ACEOF
20359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20360 _ACEOF
20361
20362 else
20363   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20364 fi
20365 done
20366
20367
20368     echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
20369 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6
20370 if test "${ac_cv_sys_dir_fd_member_name+set}" = set; then
20371   echo $ECHO_N "(cached) $ECHO_C" >&6
20372 else
20373
20374         dirfd_save_CFLAGS=$CFLAGS
20375         for ac_expr in d_fd dd_fd; do
20376
20377           CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
20378           cat >conftest.$ac_ext <<_ACEOF
20379 #line $LINENO "configure"
20380 /* confdefs.h.  */
20381 _ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h.  */
20385 $dirfd_headers
20386
20387 int
20388 main ()
20389 {
20390 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
20391   ;
20392   return 0;
20393 }
20394 _ACEOF
20395 rm -f conftest.$ac_objext
20396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20397   (eval $ac_compile) 2>&5
20398   ac_status=$?
20399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400   (exit $ac_status); } &&
20401          { ac_try='test -s conftest.$ac_objext'
20402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20403   (eval $ac_try) 2>&5
20404   ac_status=$?
20405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406   (exit $ac_status); }; }; then
20407   dir_fd_found=yes
20408
20409 else
20410   echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20412
20413 fi
20414 rm -f conftest.$ac_objext conftest.$ac_ext
20415           CFLAGS=$dirfd_save_CFLAGS
20416           test "$dir_fd_found" = yes && break
20417         done
20418         test "$dir_fd_found" = yes || ac_expr=-1
20419
20420         ac_cv_sys_dir_fd_member_name=$ac_expr
20421
20422
20423 fi
20424 echo "$as_me:$LINENO: result: $ac_cv_sys_dir_fd_member_name" >&5
20425 echo "${ECHO_T}$ac_cv_sys_dir_fd_member_name" >&6
20426     if test $ac_cv_have_decl_dirfd = no; then
20427
20428 cat >>confdefs.h <<_ACEOF
20429 #define DIR_FD_MEMBER_NAME $ac_cv_sys_dir_fd_member_name
20430 _ACEOF
20431
20432     fi
20433
20434
20435   fi
20436
20437
20438 for ac_header in sys/acl.h
20439 do
20440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20442   echo "$as_me:$LINENO: checking for $ac_header" >&5
20443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20445   echo $ECHO_N "(cached) $ECHO_C" >&6
20446 fi
20447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20449 else
20450   # Is the header compilable?
20451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20453 cat >conftest.$ac_ext <<_ACEOF
20454 #line $LINENO "configure"
20455 /* confdefs.h.  */
20456 _ACEOF
20457 cat confdefs.h >>conftest.$ac_ext
20458 cat >>conftest.$ac_ext <<_ACEOF
20459 /* end confdefs.h.  */
20460 $ac_includes_default
20461 #include <$ac_header>
20462 _ACEOF
20463 rm -f conftest.$ac_objext
20464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20465   (eval $ac_compile) 2>&5
20466   ac_status=$?
20467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468   (exit $ac_status); } &&
20469          { ac_try='test -s conftest.$ac_objext'
20470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20471   (eval $ac_try) 2>&5
20472   ac_status=$?
20473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474   (exit $ac_status); }; }; then
20475   ac_header_compiler=yes
20476 else
20477   echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20479
20480 ac_header_compiler=no
20481 fi
20482 rm -f conftest.$ac_objext conftest.$ac_ext
20483 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20484 echo "${ECHO_T}$ac_header_compiler" >&6
20485
20486 # Is the header present?
20487 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20489 cat >conftest.$ac_ext <<_ACEOF
20490 #line $LINENO "configure"
20491 /* confdefs.h.  */
20492 _ACEOF
20493 cat confdefs.h >>conftest.$ac_ext
20494 cat >>conftest.$ac_ext <<_ACEOF
20495 /* end confdefs.h.  */
20496 #include <$ac_header>
20497 _ACEOF
20498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20499   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20500   ac_status=$?
20501   grep -v '^ *+' conftest.er1 >conftest.err
20502   rm -f conftest.er1
20503   cat conftest.err >&5
20504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505   (exit $ac_status); } >/dev/null; then
20506   if test -s conftest.err; then
20507     ac_cpp_err=$ac_c_preproc_warn_flag
20508   else
20509     ac_cpp_err=
20510   fi
20511 else
20512   ac_cpp_err=yes
20513 fi
20514 if test -z "$ac_cpp_err"; then
20515   ac_header_preproc=yes
20516 else
20517   echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20519
20520   ac_header_preproc=no
20521 fi
20522 rm -f conftest.err conftest.$ac_ext
20523 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20524 echo "${ECHO_T}$ac_header_preproc" >&6
20525
20526 # So?  What about this header?
20527 case $ac_header_compiler:$ac_header_preproc in
20528   yes:no )
20529     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20533     (
20534       cat <<\_ASBOX
20535 ## ------------------------------------ ##
20536 ## Report this to bug-autoconf@gnu.org. ##
20537 ## ------------------------------------ ##
20538 _ASBOX
20539     ) |
20540       sed "s/^/$as_me: WARNING:     /" >&2
20541     ;;
20542   no:yes )
20543     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20545     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20546 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20547     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20549     (
20550       cat <<\_ASBOX
20551 ## ------------------------------------ ##
20552 ## Report this to bug-autoconf@gnu.org. ##
20553 ## ------------------------------------ ##
20554 _ASBOX
20555     ) |
20556       sed "s/^/$as_me: WARNING:     /" >&2
20557     ;;
20558 esac
20559 echo "$as_me:$LINENO: checking for $ac_header" >&5
20560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20562   echo $ECHO_N "(cached) $ECHO_C" >&6
20563 else
20564   eval "$as_ac_Header=$ac_header_preproc"
20565 fi
20566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20568
20569 fi
20570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20571   cat >>confdefs.h <<_ACEOF
20572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20573 _ACEOF
20574
20575 fi
20576
20577 done
20578
20579
20580 for ac_func in acl
20581 do
20582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20583 echo "$as_me:$LINENO: checking for $ac_func" >&5
20584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20585 if eval "test \"\${$as_ac_var+set}\" = set"; then
20586   echo $ECHO_N "(cached) $ECHO_C" >&6
20587 else
20588   cat >conftest.$ac_ext <<_ACEOF
20589 #line $LINENO "configure"
20590 /* confdefs.h.  */
20591 _ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h.  */
20595 /* System header to define __stub macros and hopefully few prototypes,
20596     which can conflict with char $ac_func (); below.
20597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20598     <limits.h> exists even on freestanding compilers.  */
20599 #ifdef __STDC__
20600 # include <limits.h>
20601 #else
20602 # include <assert.h>
20603 #endif
20604 /* Override any gcc2 internal prototype to avoid an error.  */
20605 #ifdef __cplusplus
20606 extern "C"
20607 {
20608 #endif
20609 /* We use char because int might match the return type of a gcc2
20610    builtin and then its argument prototype would still apply.  */
20611 char $ac_func ();
20612 /* The GNU C library defines this for functions which it implements
20613     to always fail with ENOSYS.  Some functions are actually named
20614     something starting with __ and the normal name is an alias.  */
20615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20616 choke me
20617 #else
20618 char (*f) () = $ac_func;
20619 #endif
20620 #ifdef __cplusplus
20621 }
20622 #endif
20623
20624 int
20625 main ()
20626 {
20627 return f != $ac_func;
20628   ;
20629   return 0;
20630 }
20631 _ACEOF
20632 rm -f conftest.$ac_objext conftest$ac_exeext
20633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20634   (eval $ac_link) 2>&5
20635   ac_status=$?
20636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637   (exit $ac_status); } &&
20638          { ac_try='test -s conftest$ac_exeext'
20639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640   (eval $ac_try) 2>&5
20641   ac_status=$?
20642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643   (exit $ac_status); }; }; then
20644   eval "$as_ac_var=yes"
20645 else
20646   echo "$as_me: failed program was:" >&5
20647 sed 's/^/| /' conftest.$ac_ext >&5
20648
20649 eval "$as_ac_var=no"
20650 fi
20651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20652 fi
20653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20655 if test `eval echo '${'$as_ac_var'}'` = yes; then
20656   cat >>confdefs.h <<_ACEOF
20657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20658 _ACEOF
20659
20660 fi
20661 done
20662
20663 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
20664 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
20665 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
20666   echo $ECHO_N "(cached) $ECHO_C" >&6
20667 else
20668   rm -f conftest.sym conftest.file
20669 echo >conftest.file
20670 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20671   if test "$cross_compiling" = yes; then
20672   ac_cv_func_lstat_dereferences_slashed_symlink=no
20673 else
20674   cat >conftest.$ac_ext <<_ACEOF
20675 #line $LINENO "configure"
20676 /* confdefs.h.  */
20677 _ACEOF
20678 cat confdefs.h >>conftest.$ac_ext
20679 cat >>conftest.$ac_ext <<_ACEOF
20680 /* end confdefs.h.  */
20681 $ac_includes_default
20682 int
20683 main ()
20684 {
20685 struct stat sbuf;
20686      /* Linux will dereference the symlink and fail.
20687         That is better in the sense that it means we will not
20688         have to compile and use the lstat wrapper.  */
20689      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
20690   ;
20691   return 0;
20692 }
20693 _ACEOF
20694 rm -f conftest$ac_exeext
20695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20696   (eval $ac_link) 2>&5
20697   ac_status=$?
20698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701   (eval $ac_try) 2>&5
20702   ac_status=$?
20703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704   (exit $ac_status); }; }; then
20705   ac_cv_func_lstat_dereferences_slashed_symlink=yes
20706 else
20707   echo "$as_me: program exited with status $ac_status" >&5
20708 echo "$as_me: failed program was:" >&5
20709 sed 's/^/| /' conftest.$ac_ext >&5
20710
20711 ( exit $ac_status )
20712 ac_cv_func_lstat_dereferences_slashed_symlink=no
20713 fi
20714 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20715 fi
20716 else
20717   # If the `ln -s' command failed, then we probably don't even
20718   # have an lstat function.
20719   ac_cv_func_lstat_dereferences_slashed_symlink=no
20720 fi
20721 rm -f conftest.sym conftest.file
20722
20723 fi
20724 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20725 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
20726
20727 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20728
20729 cat >>confdefs.h <<_ACEOF
20730 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20731 _ACEOF
20732
20733
20734 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
20735   LIBOBJS="$LIBOBJS lstat.$ac_objext"
20736 fi
20737
20738
20739
20740  echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
20741 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
20742 if test "${jm_cv_func_lstat_empty_string_bug+set}" = set; then
20743   echo $ECHO_N "(cached) $ECHO_C" >&6
20744 else
20745   if test "$cross_compiling" = yes; then
20746          jm_cv_func_lstat_empty_string_bug=yes
20747 else
20748   cat >conftest.$ac_ext <<_ACEOF
20749 #line $LINENO "configure"
20750 /* confdefs.h.  */
20751 _ACEOF
20752 cat confdefs.h >>conftest.$ac_ext
20753 cat >>conftest.$ac_ext <<_ACEOF
20754 /* end confdefs.h.  */
20755
20756 #   include <sys/types.h>
20757 #   include <sys/stat.h>
20758
20759     int
20760     main ()
20761     {
20762       struct stat sbuf;
20763       exit (lstat ("", &sbuf) ? 1 : 0);
20764     }
20765
20766 _ACEOF
20767 rm -f conftest$ac_exeext
20768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20769   (eval $ac_link) 2>&5
20770   ac_status=$?
20771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20774   (eval $ac_try) 2>&5
20775   ac_status=$?
20776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777   (exit $ac_status); }; }; then
20778   jm_cv_func_lstat_empty_string_bug=yes
20779 else
20780   echo "$as_me: program exited with status $ac_status" >&5
20781 echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20783
20784 ( exit $ac_status )
20785 jm_cv_func_lstat_empty_string_bug=no
20786 fi
20787 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20788 fi
20789
20790 fi
20791 echo "$as_me:$LINENO: result: $jm_cv_func_lstat_empty_string_bug" >&5
20792 echo "${ECHO_T}$jm_cv_func_lstat_empty_string_bug" >&6
20793   if test $jm_cv_func_lstat_empty_string_bug = yes; then
20794     LIBOBJS="$LIBOBJS lstat.$ac_objext"
20795
20796 cat >>confdefs.h <<\_ACEOF
20797 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
20798 _ACEOF
20799
20800   fi
20801
20802
20803   # prerequisites
20804
20805
20806
20807 for ac_header in sys/param.h
20808 do
20809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20811   echo "$as_me:$LINENO: checking for $ac_header" >&5
20812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20814   echo $ECHO_N "(cached) $ECHO_C" >&6
20815 fi
20816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20818 else
20819   # Is the header compilable?
20820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20822 cat >conftest.$ac_ext <<_ACEOF
20823 #line $LINENO "configure"
20824 /* confdefs.h.  */
20825 _ACEOF
20826 cat confdefs.h >>conftest.$ac_ext
20827 cat >>conftest.$ac_ext <<_ACEOF
20828 /* end confdefs.h.  */
20829 $ac_includes_default
20830 #include <$ac_header>
20831 _ACEOF
20832 rm -f conftest.$ac_objext
20833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20834   (eval $ac_compile) 2>&5
20835   ac_status=$?
20836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837   (exit $ac_status); } &&
20838          { ac_try='test -s conftest.$ac_objext'
20839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20840   (eval $ac_try) 2>&5
20841   ac_status=$?
20842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843   (exit $ac_status); }; }; then
20844   ac_header_compiler=yes
20845 else
20846   echo "$as_me: failed program was:" >&5
20847 sed 's/^/| /' conftest.$ac_ext >&5
20848
20849 ac_header_compiler=no
20850 fi
20851 rm -f conftest.$ac_objext conftest.$ac_ext
20852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20853 echo "${ECHO_T}$ac_header_compiler" >&6
20854
20855 # Is the header present?
20856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20858 cat >conftest.$ac_ext <<_ACEOF
20859 #line $LINENO "configure"
20860 /* confdefs.h.  */
20861 _ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h.  */
20865 #include <$ac_header>
20866 _ACEOF
20867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20868   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20869   ac_status=$?
20870   grep -v '^ *+' conftest.er1 >conftest.err
20871   rm -f conftest.er1
20872   cat conftest.err >&5
20873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874   (exit $ac_status); } >/dev/null; then
20875   if test -s conftest.err; then
20876     ac_cpp_err=$ac_c_preproc_warn_flag
20877   else
20878     ac_cpp_err=
20879   fi
20880 else
20881   ac_cpp_err=yes
20882 fi
20883 if test -z "$ac_cpp_err"; then
20884   ac_header_preproc=yes
20885 else
20886   echo "$as_me: failed program was:" >&5
20887 sed 's/^/| /' conftest.$ac_ext >&5
20888
20889   ac_header_preproc=no
20890 fi
20891 rm -f conftest.err conftest.$ac_ext
20892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20893 echo "${ECHO_T}$ac_header_preproc" >&6
20894
20895 # So?  What about this header?
20896 case $ac_header_compiler:$ac_header_preproc in
20897   yes:no )
20898     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20900     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20902     (
20903       cat <<\_ASBOX
20904 ## ------------------------------------ ##
20905 ## Report this to bug-autoconf@gnu.org. ##
20906 ## ------------------------------------ ##
20907 _ASBOX
20908     ) |
20909       sed "s/^/$as_me: WARNING:     /" >&2
20910     ;;
20911   no:yes )
20912     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20914     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20916     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20918     (
20919       cat <<\_ASBOX
20920 ## ------------------------------------ ##
20921 ## Report this to bug-autoconf@gnu.org. ##
20922 ## ------------------------------------ ##
20923 _ASBOX
20924     ) |
20925       sed "s/^/$as_me: WARNING:     /" >&2
20926     ;;
20927 esac
20928 echo "$as_me:$LINENO: checking for $ac_header" >&5
20929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20931   echo $ECHO_N "(cached) $ECHO_C" >&6
20932 else
20933   eval "$as_ac_Header=$ac_header_preproc"
20934 fi
20935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20937
20938 fi
20939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20940   cat >>confdefs.h <<_ACEOF
20941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20942 _ACEOF
20943
20944 fi
20945
20946 done
20947
20948   echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
20949 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
20950 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
20951   echo $ECHO_N "(cached) $ECHO_C" >&6
20952 else
20953   cat >conftest.$ac_ext <<_ACEOF
20954 #line $LINENO "configure"
20955 /* confdefs.h.  */
20956 _ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h.  */
20960 $ac_includes_default
20961 int
20962 main ()
20963 {
20964 #ifndef stpcpy
20965   char *p = (char *) stpcpy;
20966 #endif
20967
20968   ;
20969   return 0;
20970 }
20971 _ACEOF
20972 rm -f conftest.$ac_objext
20973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20974   (eval $ac_compile) 2>&5
20975   ac_status=$?
20976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977   (exit $ac_status); } &&
20978          { ac_try='test -s conftest.$ac_objext'
20979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980   (eval $ac_try) 2>&5
20981   ac_status=$?
20982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983   (exit $ac_status); }; }; then
20984   ac_cv_have_decl_stpcpy=yes
20985 else
20986   echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20988
20989 ac_cv_have_decl_stpcpy=no
20990 fi
20991 rm -f conftest.$ac_objext conftest.$ac_ext
20992 fi
20993 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
20994 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
20995 if test $ac_cv_have_decl_stpcpy = yes; then
20996
20997 cat >>confdefs.h <<_ACEOF
20998 #define HAVE_DECL_STPCPY 1
20999 _ACEOF
21000
21001
21002 else
21003   cat >>confdefs.h <<_ACEOF
21004 #define HAVE_DECL_STPCPY 0
21005 _ACEOF
21006
21007
21008 fi
21009
21010
21011
21012   # In the event that we have to use the replacement ftw.c,
21013   # see if we'll also need the replacement tsearch.c.
21014   echo "$as_me:$LINENO: checking for tdestroy" >&5
21015 echo $ECHO_N "checking for tdestroy... $ECHO_C" >&6
21016 if test "${ac_cv_func_tdestroy+set}" = set; then
21017   echo $ECHO_N "(cached) $ECHO_C" >&6
21018 else
21019   cat >conftest.$ac_ext <<_ACEOF
21020 #line $LINENO "configure"
21021 /* confdefs.h.  */
21022 _ACEOF
21023 cat confdefs.h >>conftest.$ac_ext
21024 cat >>conftest.$ac_ext <<_ACEOF
21025 /* end confdefs.h.  */
21026 /* System header to define __stub macros and hopefully few prototypes,
21027     which can conflict with char tdestroy (); below.
21028     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21029     <limits.h> exists even on freestanding compilers.  */
21030 #ifdef __STDC__
21031 # include <limits.h>
21032 #else
21033 # include <assert.h>
21034 #endif
21035 /* Override any gcc2 internal prototype to avoid an error.  */
21036 #ifdef __cplusplus
21037 extern "C"
21038 {
21039 #endif
21040 /* We use char because int might match the return type of a gcc2
21041    builtin and then its argument prototype would still apply.  */
21042 char tdestroy ();
21043 /* The GNU C library defines this for functions which it implements
21044     to always fail with ENOSYS.  Some functions are actually named
21045     something starting with __ and the normal name is an alias.  */
21046 #if defined (__stub_tdestroy) || defined (__stub___tdestroy)
21047 choke me
21048 #else
21049 char (*f) () = tdestroy;
21050 #endif
21051 #ifdef __cplusplus
21052 }
21053 #endif
21054
21055 int
21056 main ()
21057 {
21058 return f != tdestroy;
21059   ;
21060   return 0;
21061 }
21062 _ACEOF
21063 rm -f conftest.$ac_objext conftest$ac_exeext
21064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21065   (eval $ac_link) 2>&5
21066   ac_status=$?
21067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068   (exit $ac_status); } &&
21069          { ac_try='test -s conftest$ac_exeext'
21070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21071   (eval $ac_try) 2>&5
21072   ac_status=$?
21073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074   (exit $ac_status); }; }; then
21075   ac_cv_func_tdestroy=yes
21076 else
21077   echo "$as_me: failed program was:" >&5
21078 sed 's/^/| /' conftest.$ac_ext >&5
21079
21080 ac_cv_func_tdestroy=no
21081 fi
21082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21083 fi
21084 echo "$as_me:$LINENO: result: $ac_cv_func_tdestroy" >&5
21085 echo "${ECHO_T}$ac_cv_func_tdestroy" >&6
21086 if test $ac_cv_func_tdestroy = yes; then
21087   :
21088 else
21089   need_tdestroy=1
21090 fi
21091
21092
21093   echo "$as_me:$LINENO: checking for ftw/FTW_CHDIR that informs callback of failed chdir" >&5
21094 echo $ECHO_N "checking for ftw/FTW_CHDIR that informs callback of failed chdir... $ECHO_C" >&6
21095 if test "${ac_cv_func_ftw_working+set}" = set; then
21096   echo $ECHO_N "(cached) $ECHO_C" >&6
21097 else
21098
21099   # The following test would fail prior to glibc-2.3.2, because `depth'
21100   # would be 2 rather than 4.  Of course, now that we require FTW_DCH
21101   # and FTW_DCHP, this test fails even with GNU libc's fixed ftw.
21102   mkdir -p conftest.dir/a/b/c
21103   if test "$cross_compiling" = yes; then
21104   ac_cv_func_ftw_working=no
21105 else
21106   cat >conftest.$ac_ext <<_ACEOF
21107 #line $LINENO "configure"
21108 /* confdefs.h.  */
21109 _ACEOF
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h.  */
21113
21114 #include <string.h>
21115 #include <stdlib.h>
21116 #include <ftw.h>
21117
21118 static char *_f[] = { "conftest.dir", "conftest.dir/a",
21119                       "conftest.dir/a/b", "conftest.dir/a/b/c" };
21120 static char **p = _f;
21121 static int depth;
21122
21123 static int
21124 cb (const char *file, const struct stat *sb, int file_type, struct FTW *info)
21125 {
21126   if (strcmp (file, *p++) != 0)
21127     exit (1);
21128   ++depth;
21129   return 0;
21130 }
21131
21132 int
21133 main ()
21134 {
21135   /* Require these symbols, too.  */
21136   int d1 = FTW_DCH;
21137   int d2 = FTW_DCHP;
21138
21139   int err = nftw ("conftest.dir", cb, 30, FTW_PHYS | FTW_MOUNT | FTW_CHDIR);
21140   exit ((err == 0 && depth == 4) ? 0 : 1);
21141 }
21142
21143 _ACEOF
21144 rm -f conftest$ac_exeext
21145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21146   (eval $ac_link) 2>&5
21147   ac_status=$?
21148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151   (eval $ac_try) 2>&5
21152   ac_status=$?
21153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154   (exit $ac_status); }; }; then
21155   ac_cv_func_ftw_working=yes
21156 else
21157   echo "$as_me: program exited with status $ac_status" >&5
21158 echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21160
21161 ( exit $ac_status )
21162 ac_cv_func_ftw_working=no
21163 fi
21164 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21165 fi
21166 fi
21167 echo "$as_me:$LINENO: result: $ac_cv_func_ftw_working" >&5
21168 echo "${ECHO_T}$ac_cv_func_ftw_working" >&6
21169   rm -rf conftest.dir
21170   if test $ac_cv_func_ftw_working = no; then
21171     LIBOBJS="$LIBOBJS ftw.$ac_objext"
21172               ac_config_links="$ac_config_links $ac_config_libobj_dir/ftw.h:$ac_config_libobj_dir/ftw_.h"
21173
21174     # Add tsearch.o IFF we have to use the replacement ftw.c.
21175     if test -n "$need_tdestroy"; then
21176       LIBOBJS="$LIBOBJS tsearch.$ac_objext"
21177       # Link search.h to search_.h if we use the replacement tsearch.c.
21178                 ac_config_links="$ac_config_links $ac_config_libobj_dir/search.h:$ac_config_libobj_dir/search_.h"
21179
21180     fi
21181   fi
21182
21183
21184
21185
21186 for ac_func in lchown
21187 do
21188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21189 echo "$as_me:$LINENO: checking for $ac_func" >&5
21190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21191 if eval "test \"\${$as_ac_var+set}\" = set"; then
21192   echo $ECHO_N "(cached) $ECHO_C" >&6
21193 else
21194   cat >conftest.$ac_ext <<_ACEOF
21195 #line $LINENO "configure"
21196 /* confdefs.h.  */
21197 _ACEOF
21198 cat confdefs.h >>conftest.$ac_ext
21199 cat >>conftest.$ac_ext <<_ACEOF
21200 /* end confdefs.h.  */
21201 /* System header to define __stub macros and hopefully few prototypes,
21202     which can conflict with char $ac_func (); below.
21203     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21204     <limits.h> exists even on freestanding compilers.  */
21205 #ifdef __STDC__
21206 # include <limits.h>
21207 #else
21208 # include <assert.h>
21209 #endif
21210 /* Override any gcc2 internal prototype to avoid an error.  */
21211 #ifdef __cplusplus
21212 extern "C"
21213 {
21214 #endif
21215 /* We use char because int might match the return type of a gcc2
21216    builtin and then its argument prototype would still apply.  */
21217 char $ac_func ();
21218 /* The GNU C library defines this for functions which it implements
21219     to always fail with ENOSYS.  Some functions are actually named
21220     something starting with __ and the normal name is an alias.  */
21221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21222 choke me
21223 #else
21224 char (*f) () = $ac_func;
21225 #endif
21226 #ifdef __cplusplus
21227 }
21228 #endif
21229
21230 int
21231 main ()
21232 {
21233 return f != $ac_func;
21234   ;
21235   return 0;
21236 }
21237 _ACEOF
21238 rm -f conftest.$ac_objext conftest$ac_exeext
21239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21240   (eval $ac_link) 2>&5
21241   ac_status=$?
21242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243   (exit $ac_status); } &&
21244          { ac_try='test -s conftest$ac_exeext'
21245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21246   (eval $ac_try) 2>&5
21247   ac_status=$?
21248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249   (exit $ac_status); }; }; then
21250   eval "$as_ac_var=yes"
21251 else
21252   echo "$as_me: failed program was:" >&5
21253 sed 's/^/| /' conftest.$ac_ext >&5
21254
21255 eval "$as_ac_var=no"
21256 fi
21257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21258 fi
21259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21261 if test `eval echo '${'$as_ac_var'}'` = yes; then
21262   cat >>confdefs.h <<_ACEOF
21263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21264 _ACEOF
21265
21266 else
21267   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21268 fi
21269 done
21270
21271
21272
21273   echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
21274 echo $ECHO_N "checking for rmdir-not-empty errno value... $ECHO_C" >&6
21275 if test "${fetish_cv_func_rmdir_errno_not_empty+set}" = set; then
21276   echo $ECHO_N "(cached) $ECHO_C" >&6
21277 else
21278
21279       # Arrange for deletion of the temporary directory this test creates.
21280       ac_clean_files="$ac_clean_files confdir2"
21281       mkdir confdir2; : > confdir2/file
21282       if test "$cross_compiling" = yes; then
21283   fetish_cv_func_rmdir_errno_not_empty=ENOTEMPTY
21284
21285 else
21286   cat >conftest.$ac_ext <<_ACEOF
21287 #line $LINENO "configure"
21288 /* confdefs.h.  */
21289 _ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h.  */
21293
21294 #include <stdio.h>
21295 #include <errno.h>
21296 #ifndef errno
21297 extern int errno;
21298 #endif
21299         int main ()
21300         {
21301           FILE *s;
21302           int val;
21303           rmdir ("confdir2");
21304           val = errno;
21305           s = fopen ("confdir2/errno", "w");
21306           fprintf (s, "%d\n", val);
21307           exit (0);
21308         }
21309
21310 _ACEOF
21311 rm -f conftest$ac_exeext
21312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21313   (eval $ac_link) 2>&5
21314   ac_status=$?
21315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21318   (eval $ac_try) 2>&5
21319   ac_status=$?
21320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321   (exit $ac_status); }; }; then
21322   fetish_cv_func_rmdir_errno_not_empty=`cat confdir2/errno`
21323 else
21324   echo "$as_me: program exited with status $ac_status" >&5
21325 echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21327
21328 ( exit $ac_status )
21329 fetish_cv_func_rmdir_errno_not_empty='configure error in rmdir-errno.m4'
21330 fi
21331 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21332 fi
21333
21334
21335 fi
21336 echo "$as_me:$LINENO: result: $fetish_cv_func_rmdir_errno_not_empty" >&5
21337 echo "${ECHO_T}$fetish_cv_func_rmdir_errno_not_empty" >&6
21338
21339
21340 cat >>confdefs.h <<_ACEOF
21341 #define RMDIR_ERRNO_NOT_EMPTY $fetish_cv_func_rmdir_errno_not_empty
21342 _ACEOF
21343
21344
21345  test -z "$ac_cv_header_unistd_h" \
21346    &&
21347 for ac_header in unistd.h
21348 do
21349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21351   echo "$as_me:$LINENO: checking for $ac_header" >&5
21352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21354   echo $ECHO_N "(cached) $ECHO_C" >&6
21355 fi
21356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21358 else
21359   # Is the header compilable?
21360 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21362 cat >conftest.$ac_ext <<_ACEOF
21363 #line $LINENO "configure"
21364 /* confdefs.h.  */
21365 _ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h.  */
21369 $ac_includes_default
21370 #include <$ac_header>
21371 _ACEOF
21372 rm -f conftest.$ac_objext
21373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21374   (eval $ac_compile) 2>&5
21375   ac_status=$?
21376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377   (exit $ac_status); } &&
21378          { ac_try='test -s conftest.$ac_objext'
21379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21380   (eval $ac_try) 2>&5
21381   ac_status=$?
21382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383   (exit $ac_status); }; }; then
21384   ac_header_compiler=yes
21385 else
21386   echo "$as_me: failed program was:" >&5
21387 sed 's/^/| /' conftest.$ac_ext >&5
21388
21389 ac_header_compiler=no
21390 fi
21391 rm -f conftest.$ac_objext conftest.$ac_ext
21392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21393 echo "${ECHO_T}$ac_header_compiler" >&6
21394
21395 # Is the header present?
21396 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21398 cat >conftest.$ac_ext <<_ACEOF
21399 #line $LINENO "configure"
21400 /* confdefs.h.  */
21401 _ACEOF
21402 cat confdefs.h >>conftest.$ac_ext
21403 cat >>conftest.$ac_ext <<_ACEOF
21404 /* end confdefs.h.  */
21405 #include <$ac_header>
21406 _ACEOF
21407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21408   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21409   ac_status=$?
21410   grep -v '^ *+' conftest.er1 >conftest.err
21411   rm -f conftest.er1
21412   cat conftest.err >&5
21413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414   (exit $ac_status); } >/dev/null; then
21415   if test -s conftest.err; then
21416     ac_cpp_err=$ac_c_preproc_warn_flag
21417   else
21418     ac_cpp_err=
21419   fi
21420 else
21421   ac_cpp_err=yes
21422 fi
21423 if test -z "$ac_cpp_err"; then
21424   ac_header_preproc=yes
21425 else
21426   echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21428
21429   ac_header_preproc=no
21430 fi
21431 rm -f conftest.err conftest.$ac_ext
21432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21433 echo "${ECHO_T}$ac_header_preproc" >&6
21434
21435 # So?  What about this header?
21436 case $ac_header_compiler:$ac_header_preproc in
21437   yes:no )
21438     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21442     (
21443       cat <<\_ASBOX
21444 ## ------------------------------------ ##
21445 ## Report this to bug-autoconf@gnu.org. ##
21446 ## ------------------------------------ ##
21447 _ASBOX
21448     ) |
21449       sed "s/^/$as_me: WARNING:     /" >&2
21450     ;;
21451   no:yes )
21452     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21454     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21456     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21458     (
21459       cat <<\_ASBOX
21460 ## ------------------------------------ ##
21461 ## Report this to bug-autoconf@gnu.org. ##
21462 ## ------------------------------------ ##
21463 _ASBOX
21464     ) |
21465       sed "s/^/$as_me: WARNING:     /" >&2
21466     ;;
21467 esac
21468 echo "$as_me:$LINENO: checking for $ac_header" >&5
21469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21471   echo $ECHO_N "(cached) $ECHO_C" >&6
21472 else
21473   eval "$as_ac_Header=$ac_header_preproc"
21474 fi
21475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21477
21478 fi
21479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21480   cat >>confdefs.h <<_ACEOF
21481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21482 _ACEOF
21483
21484 fi
21485
21486 done
21487
21488  echo "$as_me:$LINENO: checking for working chown" >&5
21489 echo $ECHO_N "checking for working chown... $ECHO_C" >&6
21490 if test "${jm_cv_func_working_chown+set}" = set; then
21491   echo $ECHO_N "(cached) $ECHO_C" >&6
21492 else
21493   if test "$cross_compiling" = yes; then
21494              jm_cv_func_working_chown=no
21495 else
21496   cat >conftest.$ac_ext <<_ACEOF
21497 #line $LINENO "configure"
21498 /* confdefs.h.  */
21499 _ACEOF
21500 cat confdefs.h >>conftest.$ac_ext
21501 cat >>conftest.$ac_ext <<_ACEOF
21502 /* end confdefs.h.  */
21503
21504 #   include <sys/types.h>
21505 #   include <sys/stat.h>
21506 #   include <fcntl.h>
21507 #   ifdef HAVE_UNISTD_H
21508 #    include <unistd.h>
21509 #   endif
21510
21511     int
21512     main ()
21513     {
21514       char *f = "conftest.chown";
21515       struct stat before, after;
21516
21517       if (creat (f, 0600) < 0)
21518         exit (1);
21519       if (stat (f, &before) < 0)
21520         exit (1);
21521       if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
21522         exit (1);
21523       if (stat (f, &after) < 0)
21524         exit (1);
21525       exit ((before.st_uid == after.st_uid
21526              && before.st_gid == after.st_gid) ? 0 : 1);
21527     }
21528
21529 _ACEOF
21530 rm -f conftest$ac_exeext
21531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21532   (eval $ac_link) 2>&5
21533   ac_status=$?
21534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537   (eval $ac_try) 2>&5
21538   ac_status=$?
21539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540   (exit $ac_status); }; }; then
21541   jm_cv_func_working_chown=yes
21542 else
21543   echo "$as_me: program exited with status $ac_status" >&5
21544 echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.$ac_ext >&5
21546
21547 ( exit $ac_status )
21548 jm_cv_func_working_chown=no
21549 fi
21550 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21551 fi
21552
21553 fi
21554 echo "$as_me:$LINENO: result: $jm_cv_func_working_chown" >&5
21555 echo "${ECHO_T}$jm_cv_func_working_chown" >&6
21556   if test $jm_cv_func_working_chown = no; then
21557     LIBOBJS="$LIBOBJS chown.$ac_objext"
21558
21559 cat >>confdefs.h <<\_ACEOF
21560 #define chown rpl_chown
21561 _ACEOF
21562
21563   fi
21564
21565
21566
21567 for ac_header in sys/time.h unistd.h
21568 do
21569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21571   echo "$as_me:$LINENO: checking for $ac_header" >&5
21572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21574   echo $ECHO_N "(cached) $ECHO_C" >&6
21575 fi
21576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21578 else
21579   # Is the header compilable?
21580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21582 cat >conftest.$ac_ext <<_ACEOF
21583 #line $LINENO "configure"
21584 /* confdefs.h.  */
21585 _ACEOF
21586 cat confdefs.h >>conftest.$ac_ext
21587 cat >>conftest.$ac_ext <<_ACEOF
21588 /* end confdefs.h.  */
21589 $ac_includes_default
21590 #include <$ac_header>
21591 _ACEOF
21592 rm -f conftest.$ac_objext
21593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21594   (eval $ac_compile) 2>&5
21595   ac_status=$?
21596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597   (exit $ac_status); } &&
21598          { ac_try='test -s conftest.$ac_objext'
21599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600   (eval $ac_try) 2>&5
21601   ac_status=$?
21602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603   (exit $ac_status); }; }; then
21604   ac_header_compiler=yes
21605 else
21606   echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.$ac_ext >&5
21608
21609 ac_header_compiler=no
21610 fi
21611 rm -f conftest.$ac_objext conftest.$ac_ext
21612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21613 echo "${ECHO_T}$ac_header_compiler" >&6
21614
21615 # Is the header present?
21616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21618 cat >conftest.$ac_ext <<_ACEOF
21619 #line $LINENO "configure"
21620 /* confdefs.h.  */
21621 _ACEOF
21622 cat confdefs.h >>conftest.$ac_ext
21623 cat >>conftest.$ac_ext <<_ACEOF
21624 /* end confdefs.h.  */
21625 #include <$ac_header>
21626 _ACEOF
21627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21628   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21629   ac_status=$?
21630   grep -v '^ *+' conftest.er1 >conftest.err
21631   rm -f conftest.er1
21632   cat conftest.err >&5
21633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634   (exit $ac_status); } >/dev/null; then
21635   if test -s conftest.err; then
21636     ac_cpp_err=$ac_c_preproc_warn_flag
21637   else
21638     ac_cpp_err=
21639   fi
21640 else
21641   ac_cpp_err=yes
21642 fi
21643 if test -z "$ac_cpp_err"; then
21644   ac_header_preproc=yes
21645 else
21646   echo "$as_me: failed program was:" >&5
21647 sed 's/^/| /' conftest.$ac_ext >&5
21648
21649   ac_header_preproc=no
21650 fi
21651 rm -f conftest.err conftest.$ac_ext
21652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21653 echo "${ECHO_T}$ac_header_preproc" >&6
21654
21655 # So?  What about this header?
21656 case $ac_header_compiler:$ac_header_preproc in
21657   yes:no )
21658     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21662     (
21663       cat <<\_ASBOX
21664 ## ------------------------------------ ##
21665 ## Report this to bug-autoconf@gnu.org. ##
21666 ## ------------------------------------ ##
21667 _ASBOX
21668     ) |
21669       sed "s/^/$as_me: WARNING:     /" >&2
21670     ;;
21671   no:yes )
21672     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21674     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21675 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21676     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21678     (
21679       cat <<\_ASBOX
21680 ## ------------------------------------ ##
21681 ## Report this to bug-autoconf@gnu.org. ##
21682 ## ------------------------------------ ##
21683 _ASBOX
21684     ) |
21685       sed "s/^/$as_me: WARNING:     /" >&2
21686     ;;
21687 esac
21688 echo "$as_me:$LINENO: checking for $ac_header" >&5
21689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21691   echo $ECHO_N "(cached) $ECHO_C" >&6
21692 else
21693   eval "$as_ac_Header=$ac_header_preproc"
21694 fi
21695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21697
21698 fi
21699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21700   cat >>confdefs.h <<_ACEOF
21701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21702 _ACEOF
21703
21704 fi
21705
21706 done
21707
21708
21709 for ac_func in alarm
21710 do
21711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21712 echo "$as_me:$LINENO: checking for $ac_func" >&5
21713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21714 if eval "test \"\${$as_ac_var+set}\" = set"; then
21715   echo $ECHO_N "(cached) $ECHO_C" >&6
21716 else
21717   cat >conftest.$ac_ext <<_ACEOF
21718 #line $LINENO "configure"
21719 /* confdefs.h.  */
21720 _ACEOF
21721 cat confdefs.h >>conftest.$ac_ext
21722 cat >>conftest.$ac_ext <<_ACEOF
21723 /* end confdefs.h.  */
21724 /* System header to define __stub macros and hopefully few prototypes,
21725     which can conflict with char $ac_func (); below.
21726     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21727     <limits.h> exists even on freestanding compilers.  */
21728 #ifdef __STDC__
21729 # include <limits.h>
21730 #else
21731 # include <assert.h>
21732 #endif
21733 /* Override any gcc2 internal prototype to avoid an error.  */
21734 #ifdef __cplusplus
21735 extern "C"
21736 {
21737 #endif
21738 /* We use char because int might match the return type of a gcc2
21739    builtin and then its argument prototype would still apply.  */
21740 char $ac_func ();
21741 /* The GNU C library defines this for functions which it implements
21742     to always fail with ENOSYS.  Some functions are actually named
21743     something starting with __ and the normal name is an alias.  */
21744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21745 choke me
21746 #else
21747 char (*f) () = $ac_func;
21748 #endif
21749 #ifdef __cplusplus
21750 }
21751 #endif
21752
21753 int
21754 main ()
21755 {
21756 return f != $ac_func;
21757   ;
21758   return 0;
21759 }
21760 _ACEOF
21761 rm -f conftest.$ac_objext conftest$ac_exeext
21762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21763   (eval $ac_link) 2>&5
21764   ac_status=$?
21765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766   (exit $ac_status); } &&
21767          { ac_try='test -s conftest$ac_exeext'
21768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21769   (eval $ac_try) 2>&5
21770   ac_status=$?
21771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772   (exit $ac_status); }; }; then
21773   eval "$as_ac_var=yes"
21774 else
21775   echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21777
21778 eval "$as_ac_var=no"
21779 fi
21780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21781 fi
21782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21784 if test `eval echo '${'$as_ac_var'}'` = yes; then
21785   cat >>confdefs.h <<_ACEOF
21786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21787 _ACEOF
21788
21789 fi
21790 done
21791
21792 echo "$as_me:$LINENO: checking for working mktime" >&5
21793 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
21794 if test "${ac_cv_func_working_mktime+set}" = set; then
21795   echo $ECHO_N "(cached) $ECHO_C" >&6
21796 else
21797   if test "$cross_compiling" = yes; then
21798   ac_cv_func_working_mktime=no
21799 else
21800   cat >conftest.$ac_ext <<_ACEOF
21801 #line $LINENO "configure"
21802 /* confdefs.h.  */
21803 _ACEOF
21804 cat confdefs.h >>conftest.$ac_ext
21805 cat >>conftest.$ac_ext <<_ACEOF
21806 /* end confdefs.h.  */
21807 /* Test program from Paul Eggert and Tony Leneis.  */
21808 #if TIME_WITH_SYS_TIME
21809 # include <sys/time.h>
21810 # include <time.h>
21811 #else
21812 # if HAVE_SYS_TIME_H
21813 #  include <sys/time.h>
21814 # else
21815 #  include <time.h>
21816 # endif
21817 #endif
21818
21819 #if HAVE_UNISTD_H
21820 # include <unistd.h>
21821 #endif
21822
21823 #if !HAVE_ALARM
21824 # define alarm(X) /* empty */
21825 #endif
21826
21827 /* Work around redefinition to rpl_putenv by other config tests.  */
21828 #undef putenv
21829
21830 static time_t time_t_max;
21831
21832 /* Values we'll use to set the TZ environment variable.  */
21833 static const char *const tz_strings[] = {
21834   (const char *) 0, "TZ=GMT0", "TZ=JST-9",
21835   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21836 };
21837 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21838
21839 /* Fail if mktime fails to convert a date in the spring-forward gap.
21840    Based on a problem report from Andreas Jaeger.  */
21841 static void
21842 spring_forward_gap ()
21843 {
21844   /* glibc (up to about 1998-10-07) failed this test. */
21845   struct tm tm;
21846
21847   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21848      instead of "TZ=America/Vancouver" in order to detect the bug even
21849      on systems that don't support the Olson extension, or don't have the
21850      full zoneinfo tables installed.  */
21851   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21852
21853   tm.tm_year = 98;
21854   tm.tm_mon = 3;
21855   tm.tm_mday = 5;
21856   tm.tm_hour = 2;
21857   tm.tm_min = 0;
21858   tm.tm_sec = 0;
21859   tm.tm_isdst = -1;
21860   if (mktime (&tm) == (time_t)-1)
21861     exit (1);
21862 }
21863
21864 static void
21865 mktime_test (now)
21866      time_t now;
21867 {
21868   struct tm *lt;
21869   if ((lt = localtime (&now)) && mktime (lt) != now)
21870     exit (1);
21871   now = time_t_max - now;
21872   if ((lt = localtime (&now)) && mktime (lt) != now)
21873     exit (1);
21874 }
21875
21876 static void
21877 irix_6_4_bug ()
21878 {
21879   /* Based on code from Ariel Faigon.  */
21880   struct tm tm;
21881   tm.tm_year = 96;
21882   tm.tm_mon = 3;
21883   tm.tm_mday = 0;
21884   tm.tm_hour = 0;
21885   tm.tm_min = 0;
21886   tm.tm_sec = 0;
21887   tm.tm_isdst = -1;
21888   mktime (&tm);
21889   if (tm.tm_mon != 2 || tm.tm_mday != 31)
21890     exit (1);
21891 }
21892
21893 static void
21894 bigtime_test (j)
21895      int j;
21896 {
21897   struct tm tm;
21898   time_t now;
21899   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21900   now = mktime (&tm);
21901   if (now != (time_t) -1)
21902     {
21903       struct tm *lt = localtime (&now);
21904       if (! (lt
21905              && lt->tm_year == tm.tm_year
21906              && lt->tm_mon == tm.tm_mon
21907              && lt->tm_mday == tm.tm_mday
21908              && lt->tm_hour == tm.tm_hour
21909              && lt->tm_min == tm.tm_min
21910              && lt->tm_sec == tm.tm_sec
21911              && lt->tm_yday == tm.tm_yday
21912              && lt->tm_wday == tm.tm_wday
21913              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21914                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21915         exit (1);
21916     }
21917 }
21918
21919 int
21920 main ()
21921 {
21922   time_t t, delta;
21923   int i, j;
21924
21925   /* This test makes some buggy mktime implementations loop.
21926      Give up after 60 seconds; a mktime slower than that
21927      isn't worth using anyway.  */
21928   alarm (60);
21929
21930   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
21931     continue;
21932   time_t_max--;
21933   delta = time_t_max / 997; /* a suitable prime number */
21934   for (i = 0; i < N_STRINGS; i++)
21935     {
21936       if (tz_strings[i])
21937         putenv (tz_strings[i]);
21938
21939       for (t = 0; t <= time_t_max - delta; t += delta)
21940         mktime_test (t);
21941       mktime_test ((time_t) 60 * 60);
21942       mktime_test ((time_t) 60 * 60 * 24);
21943
21944       for (j = 1; 0 < j; j *= 2)
21945         bigtime_test (j);
21946       bigtime_test (j - 1);
21947     }
21948   irix_6_4_bug ();
21949   spring_forward_gap ();
21950   exit (0);
21951 }
21952 _ACEOF
21953 rm -f conftest$ac_exeext
21954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21955   (eval $ac_link) 2>&5
21956   ac_status=$?
21957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960   (eval $ac_try) 2>&5
21961   ac_status=$?
21962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963   (exit $ac_status); }; }; then
21964   ac_cv_func_working_mktime=yes
21965 else
21966   echo "$as_me: program exited with status $ac_status" >&5
21967 echo "$as_me: failed program was:" >&5
21968 sed 's/^/| /' conftest.$ac_ext >&5
21969
21970 ( exit $ac_status )
21971 ac_cv_func_working_mktime=no
21972 fi
21973 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21974 fi
21975 fi
21976 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
21977 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
21978 if test $ac_cv_func_working_mktime = no; then
21979   LIBOBJS="$LIBOBJS mktime.$ac_objext"
21980 fi
21981
21982
21983
21984 for ac_func in localtime_r
21985 do
21986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21987 echo "$as_me:$LINENO: checking for $ac_func" >&5
21988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21989 if eval "test \"\${$as_ac_var+set}\" = set"; then
21990   echo $ECHO_N "(cached) $ECHO_C" >&6
21991 else
21992   cat >conftest.$ac_ext <<_ACEOF
21993 #line $LINENO "configure"
21994 /* confdefs.h.  */
21995 _ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h.  */
21999 /* System header to define __stub macros and hopefully few prototypes,
22000     which can conflict with char $ac_func (); below.
22001     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22002     <limits.h> exists even on freestanding compilers.  */
22003 #ifdef __STDC__
22004 # include <limits.h>
22005 #else
22006 # include <assert.h>
22007 #endif
22008 /* Override any gcc2 internal prototype to avoid an error.  */
22009 #ifdef __cplusplus
22010 extern "C"
22011 {
22012 #endif
22013 /* We use char because int might match the return type of a gcc2
22014    builtin and then its argument prototype would still apply.  */
22015 char $ac_func ();
22016 /* The GNU C library defines this for functions which it implements
22017     to always fail with ENOSYS.  Some functions are actually named
22018     something starting with __ and the normal name is an alias.  */
22019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22020 choke me
22021 #else
22022 char (*f) () = $ac_func;
22023 #endif
22024 #ifdef __cplusplus
22025 }
22026 #endif
22027
22028 int
22029 main ()
22030 {
22031 return f != $ac_func;
22032   ;
22033   return 0;
22034 }
22035 _ACEOF
22036 rm -f conftest.$ac_objext conftest$ac_exeext
22037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22038   (eval $ac_link) 2>&5
22039   ac_status=$?
22040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041   (exit $ac_status); } &&
22042          { ac_try='test -s conftest$ac_exeext'
22043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22044   (eval $ac_try) 2>&5
22045   ac_status=$?
22046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047   (exit $ac_status); }; }; then
22048   eval "$as_ac_var=yes"
22049 else
22050   echo "$as_me: failed program was:" >&5
22051 sed 's/^/| /' conftest.$ac_ext >&5
22052
22053 eval "$as_ac_var=no"
22054 fi
22055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22056 fi
22057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22059 if test `eval echo '${'$as_ac_var'}'` = yes; then
22060   cat >>confdefs.h <<_ACEOF
22061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22062 _ACEOF
22063
22064 fi
22065 done
22066
22067
22068  if test $ac_cv_func_working_mktime = no; then
22069
22070 cat >>confdefs.h <<\_ACEOF
22071 #define mktime rpl_mktime
22072 _ACEOF
22073
22074  fi
22075
22076
22077
22078  echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
22079 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
22080 if test "${jm_cv_func_stat_empty_string_bug+set}" = set; then
22081   echo $ECHO_N "(cached) $ECHO_C" >&6
22082 else
22083   if test "$cross_compiling" = yes; then
22084          jm_cv_func_stat_empty_string_bug=yes
22085 else
22086   cat >conftest.$ac_ext <<_ACEOF
22087 #line $LINENO "configure"
22088 /* confdefs.h.  */
22089 _ACEOF
22090 cat confdefs.h >>conftest.$ac_ext
22091 cat >>conftest.$ac_ext <<_ACEOF
22092 /* end confdefs.h.  */
22093
22094 #   include <sys/types.h>
22095 #   include <sys/stat.h>
22096
22097     int
22098     main ()
22099     {
22100       struct stat sbuf;
22101       exit (stat ("", &sbuf) ? 1 : 0);
22102     }
22103
22104 _ACEOF
22105 rm -f conftest$ac_exeext
22106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22107   (eval $ac_link) 2>&5
22108   ac_status=$?
22109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22112   (eval $ac_try) 2>&5
22113   ac_status=$?
22114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115   (exit $ac_status); }; }; then
22116   jm_cv_func_stat_empty_string_bug=yes
22117 else
22118   echo "$as_me: program exited with status $ac_status" >&5
22119 echo "$as_me: failed program was:" >&5
22120 sed 's/^/| /' conftest.$ac_ext >&5
22121
22122 ( exit $ac_status )
22123 jm_cv_func_stat_empty_string_bug=no
22124 fi
22125 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22126 fi
22127
22128 fi
22129 echo "$as_me:$LINENO: result: $jm_cv_func_stat_empty_string_bug" >&5
22130 echo "${ECHO_T}$jm_cv_func_stat_empty_string_bug" >&6
22131   if test $jm_cv_func_stat_empty_string_bug = yes; then
22132     LIBOBJS="$LIBOBJS stat.$ac_objext"
22133
22134 cat >>confdefs.h <<\_ACEOF
22135 #define HAVE_STAT_EMPTY_STRING_BUG 1
22136 _ACEOF
22137
22138   fi
22139
22140
22141 for ac_header in stdlib.h
22142 do
22143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22145   echo "$as_me:$LINENO: checking for $ac_header" >&5
22146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22148   echo $ECHO_N "(cached) $ECHO_C" >&6
22149 fi
22150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22152 else
22153   # Is the header compilable?
22154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22156 cat >conftest.$ac_ext <<_ACEOF
22157 #line $LINENO "configure"
22158 /* confdefs.h.  */
22159 _ACEOF
22160 cat confdefs.h >>conftest.$ac_ext
22161 cat >>conftest.$ac_ext <<_ACEOF
22162 /* end confdefs.h.  */
22163 $ac_includes_default
22164 #include <$ac_header>
22165 _ACEOF
22166 rm -f conftest.$ac_objext
22167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22168   (eval $ac_compile) 2>&5
22169   ac_status=$?
22170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171   (exit $ac_status); } &&
22172          { ac_try='test -s conftest.$ac_objext'
22173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22174   (eval $ac_try) 2>&5
22175   ac_status=$?
22176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177   (exit $ac_status); }; }; then
22178   ac_header_compiler=yes
22179 else
22180   echo "$as_me: failed program was:" >&5
22181 sed 's/^/| /' conftest.$ac_ext >&5
22182
22183 ac_header_compiler=no
22184 fi
22185 rm -f conftest.$ac_objext conftest.$ac_ext
22186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22187 echo "${ECHO_T}$ac_header_compiler" >&6
22188
22189 # Is the header present?
22190 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22192 cat >conftest.$ac_ext <<_ACEOF
22193 #line $LINENO "configure"
22194 /* confdefs.h.  */
22195 _ACEOF
22196 cat confdefs.h >>conftest.$ac_ext
22197 cat >>conftest.$ac_ext <<_ACEOF
22198 /* end confdefs.h.  */
22199 #include <$ac_header>
22200 _ACEOF
22201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22202   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22203   ac_status=$?
22204   grep -v '^ *+' conftest.er1 >conftest.err
22205   rm -f conftest.er1
22206   cat conftest.err >&5
22207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208   (exit $ac_status); } >/dev/null; then
22209   if test -s conftest.err; then
22210     ac_cpp_err=$ac_c_preproc_warn_flag
22211   else
22212     ac_cpp_err=
22213   fi
22214 else
22215   ac_cpp_err=yes
22216 fi
22217 if test -z "$ac_cpp_err"; then
22218   ac_header_preproc=yes
22219 else
22220   echo "$as_me: failed program was:" >&5
22221 sed 's/^/| /' conftest.$ac_ext >&5
22222
22223   ac_header_preproc=no
22224 fi
22225 rm -f conftest.err conftest.$ac_ext
22226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22227 echo "${ECHO_T}$ac_header_preproc" >&6
22228
22229 # So?  What about this header?
22230 case $ac_header_compiler:$ac_header_preproc in
22231   yes:no )
22232     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22234     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22236     (
22237       cat <<\_ASBOX
22238 ## ------------------------------------ ##
22239 ## Report this to bug-autoconf@gnu.org. ##
22240 ## ------------------------------------ ##
22241 _ASBOX
22242     ) |
22243       sed "s/^/$as_me: WARNING:     /" >&2
22244     ;;
22245   no:yes )
22246     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22248     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22252     (
22253       cat <<\_ASBOX
22254 ## ------------------------------------ ##
22255 ## Report this to bug-autoconf@gnu.org. ##
22256 ## ------------------------------------ ##
22257 _ASBOX
22258     ) |
22259       sed "s/^/$as_me: WARNING:     /" >&2
22260     ;;
22261 esac
22262 echo "$as_me:$LINENO: checking for $ac_header" >&5
22263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22265   echo $ECHO_N "(cached) $ECHO_C" >&6
22266 else
22267   eval "$as_ac_Header=$ac_header_preproc"
22268 fi
22269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22271
22272 fi
22273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22274   cat >>confdefs.h <<_ACEOF
22275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22276 _ACEOF
22277
22278 fi
22279
22280 done
22281
22282 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
22283 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
22284 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
22285   echo $ECHO_N "(cached) $ECHO_C" >&6
22286 else
22287   if test "$cross_compiling" = yes; then
22288   ac_cv_func_realloc_0_nonnull=no
22289 else
22290   cat >conftest.$ac_ext <<_ACEOF
22291 #line $LINENO "configure"
22292 /* confdefs.h.  */
22293 _ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h.  */
22297 #if STDC_HEADERS || HAVE_STDLIB_H
22298 # include <stdlib.h>
22299 #else
22300 char *realloc ();
22301 #endif
22302
22303 int
22304 main ()
22305 {
22306 exit (realloc (0, 0) ? 0 : 1);
22307   ;
22308   return 0;
22309 }
22310 _ACEOF
22311 rm -f conftest$ac_exeext
22312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22313   (eval $ac_link) 2>&5
22314   ac_status=$?
22315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318   (eval $ac_try) 2>&5
22319   ac_status=$?
22320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321   (exit $ac_status); }; }; then
22322   ac_cv_func_realloc_0_nonnull=yes
22323 else
22324   echo "$as_me: program exited with status $ac_status" >&5
22325 echo "$as_me: failed program was:" >&5
22326 sed 's/^/| /' conftest.$ac_ext >&5
22327
22328 ( exit $ac_status )
22329 ac_cv_func_realloc_0_nonnull=no
22330 fi
22331 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22332 fi
22333 fi
22334 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
22335 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
22336 if test $ac_cv_func_realloc_0_nonnull = yes; then
22337
22338 cat >>confdefs.h <<\_ACEOF
22339 #define HAVE_REALLOC 1
22340 _ACEOF
22341
22342 else
22343   cat >>confdefs.h <<\_ACEOF
22344 #define HAVE_REALLOC 0
22345 _ACEOF
22346
22347    LIBOBJS="$LIBOBJS realloc.$ac_objext"
22348
22349 cat >>confdefs.h <<\_ACEOF
22350 #define realloc rpl_realloc
22351 _ACEOF
22352
22353 fi
22354
22355
22356
22357
22358 for ac_header in stdlib.h
22359 do
22360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22362   echo "$as_me:$LINENO: checking for $ac_header" >&5
22363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22365   echo $ECHO_N "(cached) $ECHO_C" >&6
22366 fi
22367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22369 else
22370   # Is the header compilable?
22371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22373 cat >conftest.$ac_ext <<_ACEOF
22374 #line $LINENO "configure"
22375 /* confdefs.h.  */
22376 _ACEOF
22377 cat confdefs.h >>conftest.$ac_ext
22378 cat >>conftest.$ac_ext <<_ACEOF
22379 /* end confdefs.h.  */
22380 $ac_includes_default
22381 #include <$ac_header>
22382 _ACEOF
22383 rm -f conftest.$ac_objext
22384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22385   (eval $ac_compile) 2>&5
22386   ac_status=$?
22387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388   (exit $ac_status); } &&
22389          { ac_try='test -s conftest.$ac_objext'
22390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22391   (eval $ac_try) 2>&5
22392   ac_status=$?
22393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394   (exit $ac_status); }; }; then
22395   ac_header_compiler=yes
22396 else
22397   echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.$ac_ext >&5
22399
22400 ac_header_compiler=no
22401 fi
22402 rm -f conftest.$ac_objext conftest.$ac_ext
22403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22404 echo "${ECHO_T}$ac_header_compiler" >&6
22405
22406 # Is the header present?
22407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22409 cat >conftest.$ac_ext <<_ACEOF
22410 #line $LINENO "configure"
22411 /* confdefs.h.  */
22412 _ACEOF
22413 cat confdefs.h >>conftest.$ac_ext
22414 cat >>conftest.$ac_ext <<_ACEOF
22415 /* end confdefs.h.  */
22416 #include <$ac_header>
22417 _ACEOF
22418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22419   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22420   ac_status=$?
22421   grep -v '^ *+' conftest.er1 >conftest.err
22422   rm -f conftest.er1
22423   cat conftest.err >&5
22424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425   (exit $ac_status); } >/dev/null; then
22426   if test -s conftest.err; then
22427     ac_cpp_err=$ac_c_preproc_warn_flag
22428   else
22429     ac_cpp_err=
22430   fi
22431 else
22432   ac_cpp_err=yes
22433 fi
22434 if test -z "$ac_cpp_err"; then
22435   ac_header_preproc=yes
22436 else
22437   echo "$as_me: failed program was:" >&5
22438 sed 's/^/| /' conftest.$ac_ext >&5
22439
22440   ac_header_preproc=no
22441 fi
22442 rm -f conftest.err conftest.$ac_ext
22443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22444 echo "${ECHO_T}$ac_header_preproc" >&6
22445
22446 # So?  What about this header?
22447 case $ac_header_compiler:$ac_header_preproc in
22448   yes:no )
22449     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22453     (
22454       cat <<\_ASBOX
22455 ## ------------------------------------ ##
22456 ## Report this to bug-autoconf@gnu.org. ##
22457 ## ------------------------------------ ##
22458 _ASBOX
22459     ) |
22460       sed "s/^/$as_me: WARNING:     /" >&2
22461     ;;
22462   no:yes )
22463     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22465     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22466 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22467     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22469     (
22470       cat <<\_ASBOX
22471 ## ------------------------------------ ##
22472 ## Report this to bug-autoconf@gnu.org. ##
22473 ## ------------------------------------ ##
22474 _ASBOX
22475     ) |
22476       sed "s/^/$as_me: WARNING:     /" >&2
22477     ;;
22478 esac
22479 echo "$as_me:$LINENO: checking for $ac_header" >&5
22480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22482   echo $ECHO_N "(cached) $ECHO_C" >&6
22483 else
22484   eval "$as_ac_Header=$ac_header_preproc"
22485 fi
22486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22488
22489 fi
22490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22491   cat >>confdefs.h <<_ACEOF
22492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22493 _ACEOF
22494
22495 fi
22496
22497 done
22498
22499 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22500 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
22501 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22502   echo $ECHO_N "(cached) $ECHO_C" >&6
22503 else
22504   if test "$cross_compiling" = yes; then
22505   ac_cv_func_malloc_0_nonnull=no
22506 else
22507   cat >conftest.$ac_ext <<_ACEOF
22508 #line $LINENO "configure"
22509 /* confdefs.h.  */
22510 _ACEOF
22511 cat confdefs.h >>conftest.$ac_ext
22512 cat >>conftest.$ac_ext <<_ACEOF
22513 /* end confdefs.h.  */
22514 #if STDC_HEADERS || HAVE_STDLIB_H
22515 # include <stdlib.h>
22516 #else
22517 char *malloc ();
22518 #endif
22519
22520 int
22521 main ()
22522 {
22523 exit (malloc (0) ? 0 : 1);
22524   ;
22525   return 0;
22526 }
22527 _ACEOF
22528 rm -f conftest$ac_exeext
22529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22530   (eval $ac_link) 2>&5
22531   ac_status=$?
22532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22535   (eval $ac_try) 2>&5
22536   ac_status=$?
22537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538   (exit $ac_status); }; }; then
22539   ac_cv_func_malloc_0_nonnull=yes
22540 else
22541   echo "$as_me: program exited with status $ac_status" >&5
22542 echo "$as_me: failed program was:" >&5
22543 sed 's/^/| /' conftest.$ac_ext >&5
22544
22545 ( exit $ac_status )
22546 ac_cv_func_malloc_0_nonnull=no
22547 fi
22548 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22549 fi
22550 fi
22551 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22552 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
22553 if test $ac_cv_func_malloc_0_nonnull = yes; then
22554
22555 cat >>confdefs.h <<\_ACEOF
22556 #define HAVE_MALLOC 1
22557 _ACEOF
22558
22559 else
22560   cat >>confdefs.h <<\_ACEOF
22561 #define HAVE_MALLOC 0
22562 _ACEOF
22563
22564    LIBOBJS="$LIBOBJS malloc.$ac_objext"
22565
22566 cat >>confdefs.h <<\_ACEOF
22567 #define malloc rpl_malloc
22568 _ACEOF
22569
22570 fi
22571
22572
22573
22574
22575  nanosleep_save_libs=$LIBS
22576
22577  # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
22578  # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22579
22580   echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
22581 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
22582 if test "${ac_cv_search_nanosleep+set}" = set; then
22583   echo $ECHO_N "(cached) $ECHO_C" >&6
22584 else
22585
22586     ac_func_search_save_LIBS=$LIBS
22587     ac_cv_search_nanosleep=no
22588     cat >conftest.$ac_ext <<_ACEOF
22589 #line $LINENO "configure"
22590 /* confdefs.h.  */
22591 _ACEOF
22592 cat confdefs.h >>conftest.$ac_ext
22593 cat >>conftest.$ac_ext <<_ACEOF
22594 /* end confdefs.h.  */
22595
22596 /* Override any gcc2 internal prototype to avoid an error.  */
22597 #ifdef __cplusplus
22598 extern "C"
22599 #endif
22600 /* We use char because int might match the return type of a gcc2
22601    builtin and then its argument prototype would still apply.  */
22602 char nanosleep ();
22603 int
22604 main ()
22605 {
22606 nanosleep ();
22607   ;
22608   return 0;
22609 }
22610 _ACEOF
22611 rm -f conftest.$ac_objext conftest$ac_exeext
22612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22613   (eval $ac_link) 2>&5
22614   ac_status=$?
22615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616   (exit $ac_status); } &&
22617          { ac_try='test -s conftest$ac_exeext'
22618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22619   (eval $ac_try) 2>&5
22620   ac_status=$?
22621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622   (exit $ac_status); }; }; then
22623   ac_cv_search_nanosleep='none required'
22624 else
22625   echo "$as_me: failed program was:" >&5
22626 sed 's/^/| /' conftest.$ac_ext >&5
22627
22628 fi
22629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22630     if test "$ac_cv_search_nanosleep" = no; then
22631       for ac_lib in rt posix4; do
22632         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22633         cat >conftest.$ac_ext <<_ACEOF
22634 #line $LINENO "configure"
22635 /* confdefs.h.  */
22636 _ACEOF
22637 cat confdefs.h >>conftest.$ac_ext
22638 cat >>conftest.$ac_ext <<_ACEOF
22639 /* end confdefs.h.  */
22640
22641 /* Override any gcc2 internal prototype to avoid an error.  */
22642 #ifdef __cplusplus
22643 extern "C"
22644 #endif
22645 /* We use char because int might match the return type of a gcc2
22646    builtin and then its argument prototype would still apply.  */
22647 char nanosleep ();
22648 int
22649 main ()
22650 {
22651 nanosleep ();
22652   ;
22653   return 0;
22654 }
22655 _ACEOF
22656 rm -f conftest.$ac_objext conftest$ac_exeext
22657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22658   (eval $ac_link) 2>&5
22659   ac_status=$?
22660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661   (exit $ac_status); } &&
22662          { ac_try='test -s conftest$ac_exeext'
22663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22664   (eval $ac_try) 2>&5
22665   ac_status=$?
22666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667   (exit $ac_status); }; }; then
22668   ac_cv_search_nanosleep="-l$ac_lib"; break
22669 else
22670   echo "$as_me: failed program was:" >&5
22671 sed 's/^/| /' conftest.$ac_ext >&5
22672
22673 fi
22674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22675       done
22676     fi
22677     LIBS=$ac_func_search_save_LIBS
22678
22679 fi
22680 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
22681 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
22682
22683   if test "$ac_cv_search_nanosleep" = no; then :
22684
22685   else
22686     if test "$ac_cv_search_nanosleep" = 'none required'; then :
22687
22688     else
22689       LIBS="$ac_cv_search_nanosleep $LIBS"
22690       LIB_NANOSLEEP=$ac_cv_search_nanosleep
22691     fi
22692   fi
22693
22694
22695
22696  echo "$as_me:$LINENO: checking whether nanosleep works" >&5
22697 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6
22698 if test "${jm_cv_func_nanosleep_works+set}" = set; then
22699   echo $ECHO_N "(cached) $ECHO_C" >&6
22700 else
22701
22702
22703    if test "$cross_compiling" = yes; then
22704          jm_cv_func_nanosleep_works=no
22705 else
22706   cat >conftest.$ac_ext <<_ACEOF
22707 #line $LINENO "configure"
22708 /* confdefs.h.  */
22709 _ACEOF
22710 cat confdefs.h >>conftest.$ac_ext
22711 cat >>conftest.$ac_ext <<_ACEOF
22712 /* end confdefs.h.  */
22713
22714 #   if TIME_WITH_SYS_TIME
22715 #    include <sys/time.h>
22716 #    include <time.h>
22717 #   else
22718 #    if HAVE_SYS_TIME_H
22719 #     include <sys/time.h>
22720 #    else
22721 #     include <time.h>
22722 #    endif
22723 #   endif
22724
22725     int
22726     main ()
22727     {
22728       struct timespec ts_sleep, ts_remaining;
22729       ts_sleep.tv_sec = 0;
22730       ts_sleep.tv_nsec = 1;
22731       exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
22732     }
22733
22734 _ACEOF
22735 rm -f conftest$ac_exeext
22736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22737   (eval $ac_link) 2>&5
22738   ac_status=$?
22739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22742   (eval $ac_try) 2>&5
22743   ac_status=$?
22744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745   (exit $ac_status); }; }; then
22746   jm_cv_func_nanosleep_works=yes
22747 else
22748   echo "$as_me: program exited with status $ac_status" >&5
22749 echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22751
22752 ( exit $ac_status )
22753 jm_cv_func_nanosleep_works=no
22754 fi
22755 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22756 fi
22757
22758 fi
22759 echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
22760 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6
22761   if test $jm_cv_func_nanosleep_works = no; then
22762     LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
22763
22764 cat >>confdefs.h <<\_ACEOF
22765 #define nanosleep rpl_nanosleep
22766 _ACEOF
22767
22768   fi
22769
22770  LIBS=$nanosleep_save_libs
22771
22772 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
22773 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
22774 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
22775   echo $ECHO_N "(cached) $ECHO_C" >&6
22776 else
22777   cat >conftest.$ac_ext <<_ACEOF
22778 #line $LINENO "configure"
22779 /* confdefs.h.  */
22780 _ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h.  */
22784 $ac_includes_default
22785 int
22786 main ()
22787 {
22788 #ifndef clearerr_unlocked
22789   char *p = (char *) clearerr_unlocked;
22790 #endif
22791
22792   ;
22793   return 0;
22794 }
22795 _ACEOF
22796 rm -f conftest.$ac_objext
22797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22798   (eval $ac_compile) 2>&5
22799   ac_status=$?
22800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801   (exit $ac_status); } &&
22802          { ac_try='test -s conftest.$ac_objext'
22803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22804   (eval $ac_try) 2>&5
22805   ac_status=$?
22806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807   (exit $ac_status); }; }; then
22808   ac_cv_have_decl_clearerr_unlocked=yes
22809 else
22810   echo "$as_me: failed program was:" >&5
22811 sed 's/^/| /' conftest.$ac_ext >&5
22812
22813 ac_cv_have_decl_clearerr_unlocked=no
22814 fi
22815 rm -f conftest.$ac_objext conftest.$ac_ext
22816 fi
22817 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
22818 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
22819 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
22820
22821 cat >>confdefs.h <<_ACEOF
22822 #define HAVE_DECL_CLEARERR_UNLOCKED 1
22823 _ACEOF
22824
22825
22826 else
22827   cat >>confdefs.h <<_ACEOF
22828 #define HAVE_DECL_CLEARERR_UNLOCKED 0
22829 _ACEOF
22830
22831
22832 fi
22833 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22834 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
22835 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22836   echo $ECHO_N "(cached) $ECHO_C" >&6
22837 else
22838   cat >conftest.$ac_ext <<_ACEOF
22839 #line $LINENO "configure"
22840 /* confdefs.h.  */
22841 _ACEOF
22842 cat confdefs.h >>conftest.$ac_ext
22843 cat >>conftest.$ac_ext <<_ACEOF
22844 /* end confdefs.h.  */
22845 $ac_includes_default
22846 int
22847 main ()
22848 {
22849 #ifndef feof_unlocked
22850   char *p = (char *) feof_unlocked;
22851 #endif
22852
22853   ;
22854   return 0;
22855 }
22856 _ACEOF
22857 rm -f conftest.$ac_objext
22858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22859   (eval $ac_compile) 2>&5
22860   ac_status=$?
22861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862   (exit $ac_status); } &&
22863          { ac_try='test -s conftest.$ac_objext'
22864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22865   (eval $ac_try) 2>&5
22866   ac_status=$?
22867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868   (exit $ac_status); }; }; then
22869   ac_cv_have_decl_feof_unlocked=yes
22870 else
22871   echo "$as_me: failed program was:" >&5
22872 sed 's/^/| /' conftest.$ac_ext >&5
22873
22874 ac_cv_have_decl_feof_unlocked=no
22875 fi
22876 rm -f conftest.$ac_objext conftest.$ac_ext
22877 fi
22878 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22879 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
22880 if test $ac_cv_have_decl_feof_unlocked = yes; then
22881
22882 cat >>confdefs.h <<_ACEOF
22883 #define HAVE_DECL_FEOF_UNLOCKED 1
22884 _ACEOF
22885
22886
22887 else
22888   cat >>confdefs.h <<_ACEOF
22889 #define HAVE_DECL_FEOF_UNLOCKED 0
22890 _ACEOF
22891
22892
22893 fi
22894 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
22895 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
22896 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
22897   echo $ECHO_N "(cached) $ECHO_C" >&6
22898 else
22899   cat >conftest.$ac_ext <<_ACEOF
22900 #line $LINENO "configure"
22901 /* confdefs.h.  */
22902 _ACEOF
22903 cat confdefs.h >>conftest.$ac_ext
22904 cat >>conftest.$ac_ext <<_ACEOF
22905 /* end confdefs.h.  */
22906 $ac_includes_default
22907 int
22908 main ()
22909 {
22910 #ifndef ferror_unlocked
22911   char *p = (char *) ferror_unlocked;
22912 #endif
22913
22914   ;
22915   return 0;
22916 }
22917 _ACEOF
22918 rm -f conftest.$ac_objext
22919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22920   (eval $ac_compile) 2>&5
22921   ac_status=$?
22922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923   (exit $ac_status); } &&
22924          { ac_try='test -s conftest.$ac_objext'
22925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22926   (eval $ac_try) 2>&5
22927   ac_status=$?
22928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929   (exit $ac_status); }; }; then
22930   ac_cv_have_decl_ferror_unlocked=yes
22931 else
22932   echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22934
22935 ac_cv_have_decl_ferror_unlocked=no
22936 fi
22937 rm -f conftest.$ac_objext conftest.$ac_ext
22938 fi
22939 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
22940 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
22941 if test $ac_cv_have_decl_ferror_unlocked = yes; then
22942
22943 cat >>confdefs.h <<_ACEOF
22944 #define HAVE_DECL_FERROR_UNLOCKED 1
22945 _ACEOF
22946
22947
22948 else
22949   cat >>confdefs.h <<_ACEOF
22950 #define HAVE_DECL_FERROR_UNLOCKED 0
22951 _ACEOF
22952
22953
22954 fi
22955 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
22956 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
22957 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
22958   echo $ECHO_N "(cached) $ECHO_C" >&6
22959 else
22960   cat >conftest.$ac_ext <<_ACEOF
22961 #line $LINENO "configure"
22962 /* confdefs.h.  */
22963 _ACEOF
22964 cat confdefs.h >>conftest.$ac_ext
22965 cat >>conftest.$ac_ext <<_ACEOF
22966 /* end confdefs.h.  */
22967 $ac_includes_default
22968 int
22969 main ()
22970 {
22971 #ifndef fflush_unlocked
22972   char *p = (char *) fflush_unlocked;
22973 #endif
22974
22975   ;
22976   return 0;
22977 }
22978 _ACEOF
22979 rm -f conftest.$ac_objext
22980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22981   (eval $ac_compile) 2>&5
22982   ac_status=$?
22983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984   (exit $ac_status); } &&
22985          { ac_try='test -s conftest.$ac_objext'
22986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987   (eval $ac_try) 2>&5
22988   ac_status=$?
22989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990   (exit $ac_status); }; }; then
22991   ac_cv_have_decl_fflush_unlocked=yes
22992 else
22993   echo "$as_me: failed program was:" >&5
22994 sed 's/^/| /' conftest.$ac_ext >&5
22995
22996 ac_cv_have_decl_fflush_unlocked=no
22997 fi
22998 rm -f conftest.$ac_objext conftest.$ac_ext
22999 fi
23000 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
23001 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
23002 if test $ac_cv_have_decl_fflush_unlocked = yes; then
23003
23004 cat >>confdefs.h <<_ACEOF
23005 #define HAVE_DECL_FFLUSH_UNLOCKED 1
23006 _ACEOF
23007
23008
23009 else
23010   cat >>confdefs.h <<_ACEOF
23011 #define HAVE_DECL_FFLUSH_UNLOCKED 0
23012 _ACEOF
23013
23014
23015 fi
23016 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
23017 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
23018 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
23019   echo $ECHO_N "(cached) $ECHO_C" >&6
23020 else
23021   cat >conftest.$ac_ext <<_ACEOF
23022 #line $LINENO "configure"
23023 /* confdefs.h.  */
23024 _ACEOF
23025 cat confdefs.h >>conftest.$ac_ext
23026 cat >>conftest.$ac_ext <<_ACEOF
23027 /* end confdefs.h.  */
23028 $ac_includes_default
23029 int
23030 main ()
23031 {
23032 #ifndef fgets_unlocked
23033   char *p = (char *) fgets_unlocked;
23034 #endif
23035
23036   ;
23037   return 0;
23038 }
23039 _ACEOF
23040 rm -f conftest.$ac_objext
23041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23042   (eval $ac_compile) 2>&5
23043   ac_status=$?
23044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045   (exit $ac_status); } &&
23046          { ac_try='test -s conftest.$ac_objext'
23047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048   (eval $ac_try) 2>&5
23049   ac_status=$?
23050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051   (exit $ac_status); }; }; then
23052   ac_cv_have_decl_fgets_unlocked=yes
23053 else
23054   echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23056
23057 ac_cv_have_decl_fgets_unlocked=no
23058 fi
23059 rm -f conftest.$ac_objext conftest.$ac_ext
23060 fi
23061 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
23062 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
23063 if test $ac_cv_have_decl_fgets_unlocked = yes; then
23064
23065 cat >>confdefs.h <<_ACEOF
23066 #define HAVE_DECL_FGETS_UNLOCKED 1
23067 _ACEOF
23068
23069
23070 else
23071   cat >>confdefs.h <<_ACEOF
23072 #define HAVE_DECL_FGETS_UNLOCKED 0
23073 _ACEOF
23074
23075
23076 fi
23077 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
23078 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
23079 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
23080   echo $ECHO_N "(cached) $ECHO_C" >&6
23081 else
23082   cat >conftest.$ac_ext <<_ACEOF
23083 #line $LINENO "configure"
23084 /* confdefs.h.  */
23085 _ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h.  */
23089 $ac_includes_default
23090 int
23091 main ()
23092 {
23093 #ifndef fputc_unlocked
23094   char *p = (char *) fputc_unlocked;
23095 #endif
23096
23097   ;
23098   return 0;
23099 }
23100 _ACEOF
23101 rm -f conftest.$ac_objext
23102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23103   (eval $ac_compile) 2>&5
23104   ac_status=$?
23105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106   (exit $ac_status); } &&
23107          { ac_try='test -s conftest.$ac_objext'
23108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23109   (eval $ac_try) 2>&5
23110   ac_status=$?
23111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112   (exit $ac_status); }; }; then
23113   ac_cv_have_decl_fputc_unlocked=yes
23114 else
23115   echo "$as_me: failed program was:" >&5
23116 sed 's/^/| /' conftest.$ac_ext >&5
23117
23118 ac_cv_have_decl_fputc_unlocked=no
23119 fi
23120 rm -f conftest.$ac_objext conftest.$ac_ext
23121 fi
23122 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
23123 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
23124 if test $ac_cv_have_decl_fputc_unlocked = yes; then
23125
23126 cat >>confdefs.h <<_ACEOF
23127 #define HAVE_DECL_FPUTC_UNLOCKED 1
23128 _ACEOF
23129
23130
23131 else
23132   cat >>confdefs.h <<_ACEOF
23133 #define HAVE_DECL_FPUTC_UNLOCKED 0
23134 _ACEOF
23135
23136
23137 fi
23138 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
23139 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
23140 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
23141   echo $ECHO_N "(cached) $ECHO_C" >&6
23142 else
23143   cat >conftest.$ac_ext <<_ACEOF
23144 #line $LINENO "configure"
23145 /* confdefs.h.  */
23146 _ACEOF
23147 cat confdefs.h >>conftest.$ac_ext
23148 cat >>conftest.$ac_ext <<_ACEOF
23149 /* end confdefs.h.  */
23150 $ac_includes_default
23151 int
23152 main ()
23153 {
23154 #ifndef fputs_unlocked
23155   char *p = (char *) fputs_unlocked;
23156 #endif
23157
23158   ;
23159   return 0;
23160 }
23161 _ACEOF
23162 rm -f conftest.$ac_objext
23163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23164   (eval $ac_compile) 2>&5
23165   ac_status=$?
23166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167   (exit $ac_status); } &&
23168          { ac_try='test -s conftest.$ac_objext'
23169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23170   (eval $ac_try) 2>&5
23171   ac_status=$?
23172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173   (exit $ac_status); }; }; then
23174   ac_cv_have_decl_fputs_unlocked=yes
23175 else
23176   echo "$as_me: failed program was:" >&5
23177 sed 's/^/| /' conftest.$ac_ext >&5
23178
23179 ac_cv_have_decl_fputs_unlocked=no
23180 fi
23181 rm -f conftest.$ac_objext conftest.$ac_ext
23182 fi
23183 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
23184 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
23185 if test $ac_cv_have_decl_fputs_unlocked = yes; then
23186
23187 cat >>confdefs.h <<_ACEOF
23188 #define HAVE_DECL_FPUTS_UNLOCKED 1
23189 _ACEOF
23190
23191
23192 else
23193   cat >>confdefs.h <<_ACEOF
23194 #define HAVE_DECL_FPUTS_UNLOCKED 0
23195 _ACEOF
23196
23197
23198 fi
23199 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
23200 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
23201 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
23202   echo $ECHO_N "(cached) $ECHO_C" >&6
23203 else
23204   cat >conftest.$ac_ext <<_ACEOF
23205 #line $LINENO "configure"
23206 /* confdefs.h.  */
23207 _ACEOF
23208 cat confdefs.h >>conftest.$ac_ext
23209 cat >>conftest.$ac_ext <<_ACEOF
23210 /* end confdefs.h.  */
23211 $ac_includes_default
23212 int
23213 main ()
23214 {
23215 #ifndef fread_unlocked
23216   char *p = (char *) fread_unlocked;
23217 #endif
23218
23219   ;
23220   return 0;
23221 }
23222 _ACEOF
23223 rm -f conftest.$ac_objext
23224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23225   (eval $ac_compile) 2>&5
23226   ac_status=$?
23227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228   (exit $ac_status); } &&
23229          { ac_try='test -s conftest.$ac_objext'
23230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23231   (eval $ac_try) 2>&5
23232   ac_status=$?
23233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234   (exit $ac_status); }; }; then
23235   ac_cv_have_decl_fread_unlocked=yes
23236 else
23237   echo "$as_me: failed program was:" >&5
23238 sed 's/^/| /' conftest.$ac_ext >&5
23239
23240 ac_cv_have_decl_fread_unlocked=no
23241 fi
23242 rm -f conftest.$ac_objext conftest.$ac_ext
23243 fi
23244 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
23245 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
23246 if test $ac_cv_have_decl_fread_unlocked = yes; then
23247
23248 cat >>confdefs.h <<_ACEOF
23249 #define HAVE_DECL_FREAD_UNLOCKED 1
23250 _ACEOF
23251
23252
23253 else
23254   cat >>confdefs.h <<_ACEOF
23255 #define HAVE_DECL_FREAD_UNLOCKED 0
23256 _ACEOF
23257
23258
23259 fi
23260 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
23261 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
23262 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
23263   echo $ECHO_N "(cached) $ECHO_C" >&6
23264 else
23265   cat >conftest.$ac_ext <<_ACEOF
23266 #line $LINENO "configure"
23267 /* confdefs.h.  */
23268 _ACEOF
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h.  */
23272 $ac_includes_default
23273 int
23274 main ()
23275 {
23276 #ifndef fwrite_unlocked
23277   char *p = (char *) fwrite_unlocked;
23278 #endif
23279
23280   ;
23281   return 0;
23282 }
23283 _ACEOF
23284 rm -f conftest.$ac_objext
23285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23286   (eval $ac_compile) 2>&5
23287   ac_status=$?
23288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289   (exit $ac_status); } &&
23290          { ac_try='test -s conftest.$ac_objext'
23291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23292   (eval $ac_try) 2>&5
23293   ac_status=$?
23294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295   (exit $ac_status); }; }; then
23296   ac_cv_have_decl_fwrite_unlocked=yes
23297 else
23298   echo "$as_me: failed program was:" >&5
23299 sed 's/^/| /' conftest.$ac_ext >&5
23300
23301 ac_cv_have_decl_fwrite_unlocked=no
23302 fi
23303 rm -f conftest.$ac_objext conftest.$ac_ext
23304 fi
23305 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
23306 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
23307 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
23308
23309 cat >>confdefs.h <<_ACEOF
23310 #define HAVE_DECL_FWRITE_UNLOCKED 1
23311 _ACEOF
23312
23313
23314 else
23315   cat >>confdefs.h <<_ACEOF
23316 #define HAVE_DECL_FWRITE_UNLOCKED 0
23317 _ACEOF
23318
23319
23320 fi
23321 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
23322 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
23323 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
23324   echo $ECHO_N "(cached) $ECHO_C" >&6
23325 else
23326   cat >conftest.$ac_ext <<_ACEOF
23327 #line $LINENO "configure"
23328 /* confdefs.h.  */
23329 _ACEOF
23330 cat confdefs.h >>conftest.$ac_ext
23331 cat >>conftest.$ac_ext <<_ACEOF
23332 /* end confdefs.h.  */
23333 $ac_includes_default
23334 int
23335 main ()
23336 {
23337 #ifndef getc_unlocked
23338   char *p = (char *) getc_unlocked;
23339 #endif
23340
23341   ;
23342   return 0;
23343 }
23344 _ACEOF
23345 rm -f conftest.$ac_objext
23346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23347   (eval $ac_compile) 2>&5
23348   ac_status=$?
23349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350   (exit $ac_status); } &&
23351          { ac_try='test -s conftest.$ac_objext'
23352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353   (eval $ac_try) 2>&5
23354   ac_status=$?
23355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356   (exit $ac_status); }; }; then
23357   ac_cv_have_decl_getc_unlocked=yes
23358 else
23359   echo "$as_me: failed program was:" >&5
23360 sed 's/^/| /' conftest.$ac_ext >&5
23361
23362 ac_cv_have_decl_getc_unlocked=no
23363 fi
23364 rm -f conftest.$ac_objext conftest.$ac_ext
23365 fi
23366 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
23367 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
23368 if test $ac_cv_have_decl_getc_unlocked = yes; then
23369
23370 cat >>confdefs.h <<_ACEOF
23371 #define HAVE_DECL_GETC_UNLOCKED 1
23372 _ACEOF
23373
23374
23375 else
23376   cat >>confdefs.h <<_ACEOF
23377 #define HAVE_DECL_GETC_UNLOCKED 0
23378 _ACEOF
23379
23380
23381 fi
23382 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
23383 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
23384 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
23385   echo $ECHO_N "(cached) $ECHO_C" >&6
23386 else
23387   cat >conftest.$ac_ext <<_ACEOF
23388 #line $LINENO "configure"
23389 /* confdefs.h.  */
23390 _ACEOF
23391 cat confdefs.h >>conftest.$ac_ext
23392 cat >>conftest.$ac_ext <<_ACEOF
23393 /* end confdefs.h.  */
23394 $ac_includes_default
23395 int
23396 main ()
23397 {
23398 #ifndef getchar_unlocked
23399   char *p = (char *) getchar_unlocked;
23400 #endif
23401
23402   ;
23403   return 0;
23404 }
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_cv_have_decl_getchar_unlocked=yes
23419 else
23420   echo "$as_me: failed program was:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23422
23423 ac_cv_have_decl_getchar_unlocked=no
23424 fi
23425 rm -f conftest.$ac_objext conftest.$ac_ext
23426 fi
23427 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
23428 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
23429 if test $ac_cv_have_decl_getchar_unlocked = yes; then
23430
23431 cat >>confdefs.h <<_ACEOF
23432 #define HAVE_DECL_GETCHAR_UNLOCKED 1
23433 _ACEOF
23434
23435
23436 else
23437   cat >>confdefs.h <<_ACEOF
23438 #define HAVE_DECL_GETCHAR_UNLOCKED 0
23439 _ACEOF
23440
23441
23442 fi
23443 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
23444 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
23445 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
23446   echo $ECHO_N "(cached) $ECHO_C" >&6
23447 else
23448   cat >conftest.$ac_ext <<_ACEOF
23449 #line $LINENO "configure"
23450 /* confdefs.h.  */
23451 _ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h.  */
23455 $ac_includes_default
23456 int
23457 main ()
23458 {
23459 #ifndef putc_unlocked
23460   char *p = (char *) putc_unlocked;
23461 #endif
23462
23463   ;
23464   return 0;
23465 }
23466 _ACEOF
23467 rm -f conftest.$ac_objext
23468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23469   (eval $ac_compile) 2>&5
23470   ac_status=$?
23471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472   (exit $ac_status); } &&
23473          { ac_try='test -s conftest.$ac_objext'
23474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23475   (eval $ac_try) 2>&5
23476   ac_status=$?
23477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478   (exit $ac_status); }; }; then
23479   ac_cv_have_decl_putc_unlocked=yes
23480 else
23481   echo "$as_me: failed program was:" >&5
23482 sed 's/^/| /' conftest.$ac_ext >&5
23483
23484 ac_cv_have_decl_putc_unlocked=no
23485 fi
23486 rm -f conftest.$ac_objext conftest.$ac_ext
23487 fi
23488 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
23489 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
23490 if test $ac_cv_have_decl_putc_unlocked = yes; then
23491
23492 cat >>confdefs.h <<_ACEOF
23493 #define HAVE_DECL_PUTC_UNLOCKED 1
23494 _ACEOF
23495
23496
23497 else
23498   cat >>confdefs.h <<_ACEOF
23499 #define HAVE_DECL_PUTC_UNLOCKED 0
23500 _ACEOF
23501
23502
23503 fi
23504 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
23505 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
23506 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
23507   echo $ECHO_N "(cached) $ECHO_C" >&6
23508 else
23509   cat >conftest.$ac_ext <<_ACEOF
23510 #line $LINENO "configure"
23511 /* confdefs.h.  */
23512 _ACEOF
23513 cat confdefs.h >>conftest.$ac_ext
23514 cat >>conftest.$ac_ext <<_ACEOF
23515 /* end confdefs.h.  */
23516 $ac_includes_default
23517 int
23518 main ()
23519 {
23520 #ifndef putchar_unlocked
23521   char *p = (char *) putchar_unlocked;
23522 #endif
23523
23524   ;
23525   return 0;
23526 }
23527 _ACEOF
23528 rm -f conftest.$ac_objext
23529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23530   (eval $ac_compile) 2>&5
23531   ac_status=$?
23532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533   (exit $ac_status); } &&
23534          { ac_try='test -s conftest.$ac_objext'
23535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23536   (eval $ac_try) 2>&5
23537   ac_status=$?
23538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539   (exit $ac_status); }; }; then
23540   ac_cv_have_decl_putchar_unlocked=yes
23541 else
23542   echo "$as_me: failed program was:" >&5
23543 sed 's/^/| /' conftest.$ac_ext >&5
23544
23545 ac_cv_have_decl_putchar_unlocked=no
23546 fi
23547 rm -f conftest.$ac_objext conftest.$ac_ext
23548 fi
23549 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
23550 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
23551 if test $ac_cv_have_decl_putchar_unlocked = yes; then
23552
23553 cat >>confdefs.h <<_ACEOF
23554 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
23555 _ACEOF
23556
23557
23558 else
23559   cat >>confdefs.h <<_ACEOF
23560 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
23561 _ACEOF
23562
23563
23564 fi
23565
23566
23567
23568             echo "$as_me:$LINENO: checking for group_member" >&5
23569 echo $ECHO_N "checking for group_member... $ECHO_C" >&6
23570 if test "${ac_cv_func_group_member+set}" = set; then
23571   echo $ECHO_N "(cached) $ECHO_C" >&6
23572 else
23573   cat >conftest.$ac_ext <<_ACEOF
23574 #line $LINENO "configure"
23575 /* confdefs.h.  */
23576 _ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h.  */
23580 /* System header to define __stub macros and hopefully few prototypes,
23581     which can conflict with char group_member (); below.
23582     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23583     <limits.h> exists even on freestanding compilers.  */
23584 #ifdef __STDC__
23585 # include <limits.h>
23586 #else
23587 # include <assert.h>
23588 #endif
23589 /* Override any gcc2 internal prototype to avoid an error.  */
23590 #ifdef __cplusplus
23591 extern "C"
23592 {
23593 #endif
23594 /* We use char because int might match the return type of a gcc2
23595    builtin and then its argument prototype would still apply.  */
23596 char group_member ();
23597 /* The GNU C library defines this for functions which it implements
23598     to always fail with ENOSYS.  Some functions are actually named
23599     something starting with __ and the normal name is an alias.  */
23600 #if defined (__stub_group_member) || defined (__stub___group_member)
23601 choke me
23602 #else
23603 char (*f) () = group_member;
23604 #endif
23605 #ifdef __cplusplus
23606 }
23607 #endif
23608
23609 int
23610 main ()
23611 {
23612 return f != group_member;
23613   ;
23614   return 0;
23615 }
23616 _ACEOF
23617 rm -f conftest.$ac_objext conftest$ac_exeext
23618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23619   (eval $ac_link) 2>&5
23620   ac_status=$?
23621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622   (exit $ac_status); } &&
23623          { ac_try='test -s conftest$ac_exeext'
23624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23625   (eval $ac_try) 2>&5
23626   ac_status=$?
23627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628   (exit $ac_status); }; }; then
23629   ac_cv_func_group_member=yes
23630 else
23631   echo "$as_me: failed program was:" >&5
23632 sed 's/^/| /' conftest.$ac_ext >&5
23633
23634 ac_cv_func_group_member=no
23635 fi
23636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23637 fi
23638 echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
23639 echo "${ECHO_T}$ac_cv_func_group_member" >&6
23640 if test $ac_cv_func_group_member = yes; then
23641   :
23642 else
23643   LIBOBJS="$LIBOBJS group-member.$ac_objext"
23644 fi
23645
23646
23647
23648 echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
23649 echo $ECHO_N "checking for SVID conformant putenv... $ECHO_C" >&6
23650 if test "${jm_cv_func_svid_putenv+set}" = set; then
23651   echo $ECHO_N "(cached) $ECHO_C" >&6
23652 else
23653   if test "$cross_compiling" = yes; then
23654              jm_cv_func_svid_putenv=no
23655 else
23656   cat >conftest.$ac_ext <<_ACEOF
23657 #line $LINENO "configure"
23658 /* confdefs.h.  */
23659 _ACEOF
23660 cat confdefs.h >>conftest.$ac_ext
23661 cat >>conftest.$ac_ext <<_ACEOF
23662 /* end confdefs.h.  */
23663
23664     int
23665     main ()
23666     {
23667       /* Put it in env.  */
23668       if (putenv ("CONFTEST_putenv=val"))
23669         exit (1);
23670
23671       /* Try to remove it.  */
23672       if (putenv ("CONFTEST_putenv"))
23673         exit (1);
23674
23675       /* Make sure it was deleted.  */
23676       if (getenv ("CONFTEST_putenv") != 0)
23677         exit (1);
23678
23679       exit (0);
23680     }
23681
23682 _ACEOF
23683 rm -f conftest$ac_exeext
23684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23685   (eval $ac_link) 2>&5
23686   ac_status=$?
23687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23690   (eval $ac_try) 2>&5
23691   ac_status=$?
23692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693   (exit $ac_status); }; }; then
23694   jm_cv_func_svid_putenv=yes
23695 else
23696   echo "$as_me: program exited with status $ac_status" >&5
23697 echo "$as_me: failed program was:" >&5
23698 sed 's/^/| /' conftest.$ac_ext >&5
23699
23700 ( exit $ac_status )
23701 jm_cv_func_svid_putenv=no
23702 fi
23703 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23704 fi
23705
23706 fi
23707 echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
23708 echo "${ECHO_T}$jm_cv_func_svid_putenv" >&6
23709   if test $jm_cv_func_svid_putenv = no; then
23710     LIBOBJS="$LIBOBJS putenv.$ac_objext"
23711
23712 cat >>confdefs.h <<\_ACEOF
23713 #define putenv rpl_putenv
23714 _ACEOF
23715
23716   fi
23717
23718
23719     echo "$as_me:$LINENO: checking for AFS" >&5
23720 echo $ECHO_N "checking for AFS... $ECHO_C" >&6
23721     if test -d /afs; then
23722
23723 cat >>confdefs.h <<\_ACEOF
23724 #define AFS 1
23725 _ACEOF
23726
23727       ac_result=yes
23728     else
23729       ac_result=no
23730     fi
23731     echo "$as_me:$LINENO: result: $ac_result" >&5
23732 echo "${ECHO_T}$ac_result" >&6
23733
23734
23735
23736   echo "$as_me:$LINENO: checking for intmax_t" >&5
23737 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
23738 if test "${ac_cv_type_intmax_t+set}" = set; then
23739   echo $ECHO_N "(cached) $ECHO_C" >&6
23740 else
23741   cat >conftest.$ac_ext <<_ACEOF
23742 #line $LINENO "configure"
23743 /* confdefs.h.  */
23744 _ACEOF
23745 cat confdefs.h >>conftest.$ac_ext
23746 cat >>conftest.$ac_ext <<_ACEOF
23747 /* end confdefs.h.  */
23748 $ac_includes_default
23749 int
23750 main ()
23751 {
23752 if ((intmax_t *) 0)
23753   return 0;
23754 if (sizeof (intmax_t))
23755   return 0;
23756   ;
23757   return 0;
23758 }
23759 _ACEOF
23760 rm -f conftest.$ac_objext
23761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23762   (eval $ac_compile) 2>&5
23763   ac_status=$?
23764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765   (exit $ac_status); } &&
23766          { ac_try='test -s conftest.$ac_objext'
23767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23768   (eval $ac_try) 2>&5
23769   ac_status=$?
23770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771   (exit $ac_status); }; }; then
23772   ac_cv_type_intmax_t=yes
23773 else
23774   echo "$as_me: failed program was:" >&5
23775 sed 's/^/| /' conftest.$ac_ext >&5
23776
23777 ac_cv_type_intmax_t=no
23778 fi
23779 rm -f conftest.$ac_objext conftest.$ac_ext
23780 fi
23781 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
23782 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
23783 if test $ac_cv_type_intmax_t = yes; then
23784   :
23785 else
23786   test $ac_cv_type_long_long = yes \
23787        && ac_type='long long' \
23788        || ac_type='long'
23789
23790 cat >>confdefs.h <<_ACEOF
23791 #define intmax_t $ac_type
23792 _ACEOF
23793
23794 fi
23795
23796
23797
23798
23799
23800
23801
23802   echo "$as_me:$LINENO: checking whether strtol is declared" >&5
23803 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
23804 if test "${ac_cv_have_decl_strtol+set}" = set; then
23805   echo $ECHO_N "(cached) $ECHO_C" >&6
23806 else
23807   cat >conftest.$ac_ext <<_ACEOF
23808 #line $LINENO "configure"
23809 /* confdefs.h.  */
23810 _ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h.  */
23814 $ac_includes_default
23815 int
23816 main ()
23817 {
23818 #ifndef strtol
23819   char *p = (char *) strtol;
23820 #endif
23821
23822   ;
23823   return 0;
23824 }
23825 _ACEOF
23826 rm -f conftest.$ac_objext
23827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23828   (eval $ac_compile) 2>&5
23829   ac_status=$?
23830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831   (exit $ac_status); } &&
23832          { ac_try='test -s conftest.$ac_objext'
23833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23834   (eval $ac_try) 2>&5
23835   ac_status=$?
23836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837   (exit $ac_status); }; }; then
23838   ac_cv_have_decl_strtol=yes
23839 else
23840   echo "$as_me: failed program was:" >&5
23841 sed 's/^/| /' conftest.$ac_ext >&5
23842
23843 ac_cv_have_decl_strtol=no
23844 fi
23845 rm -f conftest.$ac_objext conftest.$ac_ext
23846 fi
23847 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
23848 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
23849 if test $ac_cv_have_decl_strtol = yes; then
23850
23851 cat >>confdefs.h <<_ACEOF
23852 #define HAVE_DECL_STRTOL 1
23853 _ACEOF
23854
23855
23856 else
23857   cat >>confdefs.h <<_ACEOF
23858 #define HAVE_DECL_STRTOL 0
23859 _ACEOF
23860
23861
23862 fi
23863 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
23864 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
23865 if test "${ac_cv_have_decl_strtoul+set}" = set; then
23866   echo $ECHO_N "(cached) $ECHO_C" >&6
23867 else
23868   cat >conftest.$ac_ext <<_ACEOF
23869 #line $LINENO "configure"
23870 /* confdefs.h.  */
23871 _ACEOF
23872 cat confdefs.h >>conftest.$ac_ext
23873 cat >>conftest.$ac_ext <<_ACEOF
23874 /* end confdefs.h.  */
23875 $ac_includes_default
23876 int
23877 main ()
23878 {
23879 #ifndef strtoul
23880   char *p = (char *) strtoul;
23881 #endif
23882
23883   ;
23884   return 0;
23885 }
23886 _ACEOF
23887 rm -f conftest.$ac_objext
23888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23889   (eval $ac_compile) 2>&5
23890   ac_status=$?
23891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892   (exit $ac_status); } &&
23893          { ac_try='test -s conftest.$ac_objext'
23894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23895   (eval $ac_try) 2>&5
23896   ac_status=$?
23897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898   (exit $ac_status); }; }; then
23899   ac_cv_have_decl_strtoul=yes
23900 else
23901   echo "$as_me: failed program was:" >&5
23902 sed 's/^/| /' conftest.$ac_ext >&5
23903
23904 ac_cv_have_decl_strtoul=no
23905 fi
23906 rm -f conftest.$ac_objext conftest.$ac_ext
23907 fi
23908 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
23909 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
23910 if test $ac_cv_have_decl_strtoul = yes; then
23911
23912 cat >>confdefs.h <<_ACEOF
23913 #define HAVE_DECL_STRTOUL 1
23914 _ACEOF
23915
23916
23917 else
23918   cat >>confdefs.h <<_ACEOF
23919 #define HAVE_DECL_STRTOUL 0
23920 _ACEOF
23921
23922
23923 fi
23924 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
23925 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
23926 if test "${ac_cv_have_decl_strtoull+set}" = set; then
23927   echo $ECHO_N "(cached) $ECHO_C" >&6
23928 else
23929   cat >conftest.$ac_ext <<_ACEOF
23930 #line $LINENO "configure"
23931 /* confdefs.h.  */
23932 _ACEOF
23933 cat confdefs.h >>conftest.$ac_ext
23934 cat >>conftest.$ac_ext <<_ACEOF
23935 /* end confdefs.h.  */
23936 $ac_includes_default
23937 int
23938 main ()
23939 {
23940 #ifndef strtoull
23941   char *p = (char *) strtoull;
23942 #endif
23943
23944   ;
23945   return 0;
23946 }
23947 _ACEOF
23948 rm -f conftest.$ac_objext
23949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23950   (eval $ac_compile) 2>&5
23951   ac_status=$?
23952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953   (exit $ac_status); } &&
23954          { ac_try='test -s conftest.$ac_objext'
23955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23956   (eval $ac_try) 2>&5
23957   ac_status=$?
23958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959   (exit $ac_status); }; }; then
23960   ac_cv_have_decl_strtoull=yes
23961 else
23962   echo "$as_me: failed program was:" >&5
23963 sed 's/^/| /' conftest.$ac_ext >&5
23964
23965 ac_cv_have_decl_strtoull=no
23966 fi
23967 rm -f conftest.$ac_objext conftest.$ac_ext
23968 fi
23969 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
23970 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
23971 if test $ac_cv_have_decl_strtoull = yes; then
23972
23973 cat >>confdefs.h <<_ACEOF
23974 #define HAVE_DECL_STRTOULL 1
23975 _ACEOF
23976
23977
23978 else
23979   cat >>confdefs.h <<_ACEOF
23980 #define HAVE_DECL_STRTOULL 0
23981 _ACEOF
23982
23983
23984 fi
23985 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
23986 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
23987 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
23988   echo $ECHO_N "(cached) $ECHO_C" >&6
23989 else
23990   cat >conftest.$ac_ext <<_ACEOF
23991 #line $LINENO "configure"
23992 /* confdefs.h.  */
23993 _ACEOF
23994 cat confdefs.h >>conftest.$ac_ext
23995 cat >>conftest.$ac_ext <<_ACEOF
23996 /* end confdefs.h.  */
23997 $ac_includes_default
23998 int
23999 main ()
24000 {
24001 #ifndef strtoimax
24002   char *p = (char *) strtoimax;
24003 #endif
24004
24005   ;
24006   return 0;
24007 }
24008 _ACEOF
24009 rm -f conftest.$ac_objext
24010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24011   (eval $ac_compile) 2>&5
24012   ac_status=$?
24013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014   (exit $ac_status); } &&
24015          { ac_try='test -s conftest.$ac_objext'
24016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24017   (eval $ac_try) 2>&5
24018   ac_status=$?
24019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020   (exit $ac_status); }; }; then
24021   ac_cv_have_decl_strtoimax=yes
24022 else
24023   echo "$as_me: failed program was:" >&5
24024 sed 's/^/| /' conftest.$ac_ext >&5
24025
24026 ac_cv_have_decl_strtoimax=no
24027 fi
24028 rm -f conftest.$ac_objext conftest.$ac_ext
24029 fi
24030 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
24031 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
24032 if test $ac_cv_have_decl_strtoimax = yes; then
24033
24034 cat >>confdefs.h <<_ACEOF
24035 #define HAVE_DECL_STRTOIMAX 1
24036 _ACEOF
24037
24038
24039 else
24040   cat >>confdefs.h <<_ACEOF
24041 #define HAVE_DECL_STRTOIMAX 0
24042 _ACEOF
24043
24044
24045 fi
24046 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
24047 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
24048 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
24049   echo $ECHO_N "(cached) $ECHO_C" >&6
24050 else
24051   cat >conftest.$ac_ext <<_ACEOF
24052 #line $LINENO "configure"
24053 /* confdefs.h.  */
24054 _ACEOF
24055 cat confdefs.h >>conftest.$ac_ext
24056 cat >>conftest.$ac_ext <<_ACEOF
24057 /* end confdefs.h.  */
24058 $ac_includes_default
24059 int
24060 main ()
24061 {
24062 #ifndef strtoumax
24063   char *p = (char *) strtoumax;
24064 #endif
24065
24066   ;
24067   return 0;
24068 }
24069 _ACEOF
24070 rm -f conftest.$ac_objext
24071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24072   (eval $ac_compile) 2>&5
24073   ac_status=$?
24074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24075   (exit $ac_status); } &&
24076          { ac_try='test -s conftest.$ac_objext'
24077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24078   (eval $ac_try) 2>&5
24079   ac_status=$?
24080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081   (exit $ac_status); }; }; then
24082   ac_cv_have_decl_strtoumax=yes
24083 else
24084   echo "$as_me: failed program was:" >&5
24085 sed 's/^/| /' conftest.$ac_ext >&5
24086
24087 ac_cv_have_decl_strtoumax=no
24088 fi
24089 rm -f conftest.$ac_objext conftest.$ac_ext
24090 fi
24091 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
24092 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
24093 if test $ac_cv_have_decl_strtoumax = yes; then
24094
24095 cat >>confdefs.h <<_ACEOF
24096 #define HAVE_DECL_STRTOUMAX 1
24097 _ACEOF
24098
24099
24100 else
24101   cat >>confdefs.h <<_ACEOF
24102 #define HAVE_DECL_STRTOUMAX 0
24103 _ACEOF
24104
24105
24106 fi
24107
24108
24109
24110
24111
24112 for ac_header in limits.h stdlib.h inttypes.h
24113 do
24114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24116   echo "$as_me:$LINENO: checking for $ac_header" >&5
24117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24119   echo $ECHO_N "(cached) $ECHO_C" >&6
24120 fi
24121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24123 else
24124   # Is the header compilable?
24125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24127 cat >conftest.$ac_ext <<_ACEOF
24128 #line $LINENO "configure"
24129 /* confdefs.h.  */
24130 _ACEOF
24131 cat confdefs.h >>conftest.$ac_ext
24132 cat >>conftest.$ac_ext <<_ACEOF
24133 /* end confdefs.h.  */
24134 $ac_includes_default
24135 #include <$ac_header>
24136 _ACEOF
24137 rm -f conftest.$ac_objext
24138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24139   (eval $ac_compile) 2>&5
24140   ac_status=$?
24141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142   (exit $ac_status); } &&
24143          { ac_try='test -s conftest.$ac_objext'
24144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24145   (eval $ac_try) 2>&5
24146   ac_status=$?
24147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24148   (exit $ac_status); }; }; then
24149   ac_header_compiler=yes
24150 else
24151   echo "$as_me: failed program was:" >&5
24152 sed 's/^/| /' conftest.$ac_ext >&5
24153
24154 ac_header_compiler=no
24155 fi
24156 rm -f conftest.$ac_objext conftest.$ac_ext
24157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24158 echo "${ECHO_T}$ac_header_compiler" >&6
24159
24160 # Is the header present?
24161 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24163 cat >conftest.$ac_ext <<_ACEOF
24164 #line $LINENO "configure"
24165 /* confdefs.h.  */
24166 _ACEOF
24167 cat confdefs.h >>conftest.$ac_ext
24168 cat >>conftest.$ac_ext <<_ACEOF
24169 /* end confdefs.h.  */
24170 #include <$ac_header>
24171 _ACEOF
24172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24173   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24174   ac_status=$?
24175   grep -v '^ *+' conftest.er1 >conftest.err
24176   rm -f conftest.er1
24177   cat conftest.err >&5
24178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179   (exit $ac_status); } >/dev/null; then
24180   if test -s conftest.err; then
24181     ac_cpp_err=$ac_c_preproc_warn_flag
24182   else
24183     ac_cpp_err=
24184   fi
24185 else
24186   ac_cpp_err=yes
24187 fi
24188 if test -z "$ac_cpp_err"; then
24189   ac_header_preproc=yes
24190 else
24191   echo "$as_me: failed program was:" >&5
24192 sed 's/^/| /' conftest.$ac_ext >&5
24193
24194   ac_header_preproc=no
24195 fi
24196 rm -f conftest.err conftest.$ac_ext
24197 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24198 echo "${ECHO_T}$ac_header_preproc" >&6
24199
24200 # So?  What about this header?
24201 case $ac_header_compiler:$ac_header_preproc in
24202   yes:no )
24203     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24207     (
24208       cat <<\_ASBOX
24209 ## ------------------------------------ ##
24210 ## Report this to bug-autoconf@gnu.org. ##
24211 ## ------------------------------------ ##
24212 _ASBOX
24213     ) |
24214       sed "s/^/$as_me: WARNING:     /" >&2
24215     ;;
24216   no:yes )
24217     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24219     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24221     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24223     (
24224       cat <<\_ASBOX
24225 ## ------------------------------------ ##
24226 ## Report this to bug-autoconf@gnu.org. ##
24227 ## ------------------------------------ ##
24228 _ASBOX
24229     ) |
24230       sed "s/^/$as_me: WARNING:     /" >&2
24231     ;;
24232 esac
24233 echo "$as_me:$LINENO: checking for $ac_header" >&5
24234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24236   echo $ECHO_N "(cached) $ECHO_C" >&6
24237 else
24238   eval "$as_ac_Header=$ac_header_preproc"
24239 fi
24240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24242
24243 fi
24244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24245   cat >>confdefs.h <<_ACEOF
24246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24247 _ACEOF
24248
24249 fi
24250
24251 done
24252
24253
24254   echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
24255 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6
24256 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
24257   echo $ECHO_N "(cached) $ECHO_C" >&6
24258 else
24259   cat >conftest.$ac_ext <<_ACEOF
24260 #line $LINENO "configure"
24261 /* confdefs.h.  */
24262 _ACEOF
24263 cat confdefs.h >>conftest.$ac_ext
24264 cat >>conftest.$ac_ext <<_ACEOF
24265 /* end confdefs.h.  */
24266 #include <inttypes.h>
24267 #ifdef strtoumax
24268  inttypes_h_defines_strtoumax
24269 #endif
24270 _ACEOF
24271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24272   $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
24273   jm_cv_func_strtoumax_macro=yes
24274 else
24275   jm_cv_func_strtoumax_macro=no
24276 fi
24277 rm -f conftest*
24278
24279 fi
24280 echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
24281 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6
24282
24283   if test "$jm_cv_func_strtoumax_macro" != yes; then
24284
24285 for ac_func in strtoumax
24286 do
24287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24288 echo "$as_me:$LINENO: checking for $ac_func" >&5
24289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24290 if eval "test \"\${$as_ac_var+set}\" = set"; then
24291   echo $ECHO_N "(cached) $ECHO_C" >&6
24292 else
24293   cat >conftest.$ac_ext <<_ACEOF
24294 #line $LINENO "configure"
24295 /* confdefs.h.  */
24296 _ACEOF
24297 cat confdefs.h >>conftest.$ac_ext
24298 cat >>conftest.$ac_ext <<_ACEOF
24299 /* end confdefs.h.  */
24300 /* System header to define __stub macros and hopefully few prototypes,
24301     which can conflict with char $ac_func (); below.
24302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24303     <limits.h> exists even on freestanding compilers.  */
24304 #ifdef __STDC__
24305 # include <limits.h>
24306 #else
24307 # include <assert.h>
24308 #endif
24309 /* Override any gcc2 internal prototype to avoid an error.  */
24310 #ifdef __cplusplus
24311 extern "C"
24312 {
24313 #endif
24314 /* We use char because int might match the return type of a gcc2
24315    builtin and then its argument prototype would still apply.  */
24316 char $ac_func ();
24317 /* The GNU C library defines this for functions which it implements
24318     to always fail with ENOSYS.  Some functions are actually named
24319     something starting with __ and the normal name is an alias.  */
24320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24321 choke me
24322 #else
24323 char (*f) () = $ac_func;
24324 #endif
24325 #ifdef __cplusplus
24326 }
24327 #endif
24328
24329 int
24330 main ()
24331 {
24332 return f != $ac_func;
24333   ;
24334   return 0;
24335 }
24336 _ACEOF
24337 rm -f conftest.$ac_objext conftest$ac_exeext
24338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24339   (eval $ac_link) 2>&5
24340   ac_status=$?
24341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342   (exit $ac_status); } &&
24343          { ac_try='test -s conftest$ac_exeext'
24344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24345   (eval $ac_try) 2>&5
24346   ac_status=$?
24347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348   (exit $ac_status); }; }; then
24349   eval "$as_ac_var=yes"
24350 else
24351   echo "$as_me: failed program was:" >&5
24352 sed 's/^/| /' conftest.$ac_ext >&5
24353
24354 eval "$as_ac_var=no"
24355 fi
24356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24357 fi
24358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24360 if test `eval echo '${'$as_ac_var'}'` = yes; then
24361   cat >>confdefs.h <<_ACEOF
24362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24363 _ACEOF
24364
24365 else
24366   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24367 fi
24368 done
24369
24370
24371   fi
24372
24373       case "$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in
24374     no,no)
24375
24376 for ac_func in strtoul
24377 do
24378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24379 echo "$as_me:$LINENO: checking for $ac_func" >&5
24380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24381 if eval "test \"\${$as_ac_var+set}\" = set"; then
24382   echo $ECHO_N "(cached) $ECHO_C" >&6
24383 else
24384   cat >conftest.$ac_ext <<_ACEOF
24385 #line $LINENO "configure"
24386 /* confdefs.h.  */
24387 _ACEOF
24388 cat confdefs.h >>conftest.$ac_ext
24389 cat >>conftest.$ac_ext <<_ACEOF
24390 /* end confdefs.h.  */
24391 /* System header to define __stub macros and hopefully few prototypes,
24392     which can conflict with char $ac_func (); below.
24393     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24394     <limits.h> exists even on freestanding compilers.  */
24395 #ifdef __STDC__
24396 # include <limits.h>
24397 #else
24398 # include <assert.h>
24399 #endif
24400 /* Override any gcc2 internal prototype to avoid an error.  */
24401 #ifdef __cplusplus
24402 extern "C"
24403 {
24404 #endif
24405 /* We use char because int might match the return type of a gcc2
24406    builtin and then its argument prototype would still apply.  */
24407 char $ac_func ();
24408 /* The GNU C library defines this for functions which it implements
24409     to always fail with ENOSYS.  Some functions are actually named
24410     something starting with __ and the normal name is an alias.  */
24411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24412 choke me
24413 #else
24414 char (*f) () = $ac_func;
24415 #endif
24416 #ifdef __cplusplus
24417 }
24418 #endif
24419
24420 int
24421 main ()
24422 {
24423 return f != $ac_func;
24424   ;
24425   return 0;
24426 }
24427 _ACEOF
24428 rm -f conftest.$ac_objext conftest$ac_exeext
24429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24430   (eval $ac_link) 2>&5
24431   ac_status=$?
24432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433   (exit $ac_status); } &&
24434          { ac_try='test -s conftest$ac_exeext'
24435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24436   (eval $ac_try) 2>&5
24437   ac_status=$?
24438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439   (exit $ac_status); }; }; then
24440   eval "$as_ac_var=yes"
24441 else
24442   echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24444
24445 eval "$as_ac_var=no"
24446 fi
24447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24448 fi
24449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24451 if test `eval echo '${'$as_ac_var'}'` = yes; then
24452   cat >>confdefs.h <<_ACEOF
24453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24454 _ACEOF
24455
24456 else
24457   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24458 fi
24459 done
24460
24461
24462
24463                   if test "$ac_cv_type_unsigned_long_long" = yes; then
24464
24465 for ac_func in strtoull
24466 do
24467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24468 echo "$as_me:$LINENO: checking for $ac_func" >&5
24469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24470 if eval "test \"\${$as_ac_var+set}\" = set"; then
24471   echo $ECHO_N "(cached) $ECHO_C" >&6
24472 else
24473   cat >conftest.$ac_ext <<_ACEOF
24474 #line $LINENO "configure"
24475 /* confdefs.h.  */
24476 _ACEOF
24477 cat confdefs.h >>conftest.$ac_ext
24478 cat >>conftest.$ac_ext <<_ACEOF
24479 /* end confdefs.h.  */
24480 /* System header to define __stub macros and hopefully few prototypes,
24481     which can conflict with char $ac_func (); below.
24482     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24483     <limits.h> exists even on freestanding compilers.  */
24484 #ifdef __STDC__
24485 # include <limits.h>
24486 #else
24487 # include <assert.h>
24488 #endif
24489 /* Override any gcc2 internal prototype to avoid an error.  */
24490 #ifdef __cplusplus
24491 extern "C"
24492 {
24493 #endif
24494 /* We use char because int might match the return type of a gcc2
24495    builtin and then its argument prototype would still apply.  */
24496 char $ac_func ();
24497 /* The GNU C library defines this for functions which it implements
24498     to always fail with ENOSYS.  Some functions are actually named
24499     something starting with __ and the normal name is an alias.  */
24500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24501 choke me
24502 #else
24503 char (*f) () = $ac_func;
24504 #endif
24505 #ifdef __cplusplus
24506 }
24507 #endif
24508
24509 int
24510 main ()
24511 {
24512 return f != $ac_func;
24513   ;
24514   return 0;
24515 }
24516 _ACEOF
24517 rm -f conftest.$ac_objext conftest$ac_exeext
24518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24519   (eval $ac_link) 2>&5
24520   ac_status=$?
24521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522   (exit $ac_status); } &&
24523          { ac_try='test -s conftest$ac_exeext'
24524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24525   (eval $ac_try) 2>&5
24526   ac_status=$?
24527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528   (exit $ac_status); }; }; then
24529   eval "$as_ac_var=yes"
24530 else
24531   echo "$as_me: failed program was:" >&5
24532 sed 's/^/| /' conftest.$ac_ext >&5
24533
24534 eval "$as_ac_var=no"
24535 fi
24536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24537 fi
24538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24540 if test `eval echo '${'$as_ac_var'}'` = yes; then
24541   cat >>confdefs.h <<_ACEOF
24542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24543 _ACEOF
24544
24545 else
24546   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24547 fi
24548 done
24549
24550
24551       fi
24552       ;;
24553   esac
24554
24555
24556
24557
24558
24559
24560   echo "$as_me:$LINENO: checking whether strtol is declared" >&5
24561 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
24562 if test "${ac_cv_have_decl_strtol+set}" = set; then
24563   echo $ECHO_N "(cached) $ECHO_C" >&6
24564 else
24565   cat >conftest.$ac_ext <<_ACEOF
24566 #line $LINENO "configure"
24567 /* confdefs.h.  */
24568 _ACEOF
24569 cat confdefs.h >>conftest.$ac_ext
24570 cat >>conftest.$ac_ext <<_ACEOF
24571 /* end confdefs.h.  */
24572 $ac_includes_default
24573 int
24574 main ()
24575 {
24576 #ifndef strtol
24577   char *p = (char *) strtol;
24578 #endif
24579
24580   ;
24581   return 0;
24582 }
24583 _ACEOF
24584 rm -f conftest.$ac_objext
24585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24586   (eval $ac_compile) 2>&5
24587   ac_status=$?
24588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589   (exit $ac_status); } &&
24590          { ac_try='test -s conftest.$ac_objext'
24591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24592   (eval $ac_try) 2>&5
24593   ac_status=$?
24594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595   (exit $ac_status); }; }; then
24596   ac_cv_have_decl_strtol=yes
24597 else
24598   echo "$as_me: failed program was:" >&5
24599 sed 's/^/| /' conftest.$ac_ext >&5
24600
24601 ac_cv_have_decl_strtol=no
24602 fi
24603 rm -f conftest.$ac_objext conftest.$ac_ext
24604 fi
24605 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
24606 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
24607 if test $ac_cv_have_decl_strtol = yes; then
24608
24609 cat >>confdefs.h <<_ACEOF
24610 #define HAVE_DECL_STRTOL 1
24611 _ACEOF
24612
24613
24614 else
24615   cat >>confdefs.h <<_ACEOF
24616 #define HAVE_DECL_STRTOL 0
24617 _ACEOF
24618
24619
24620 fi
24621 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
24622 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
24623 if test "${ac_cv_have_decl_strtoul+set}" = set; then
24624   echo $ECHO_N "(cached) $ECHO_C" >&6
24625 else
24626   cat >conftest.$ac_ext <<_ACEOF
24627 #line $LINENO "configure"
24628 /* confdefs.h.  */
24629 _ACEOF
24630 cat confdefs.h >>conftest.$ac_ext
24631 cat >>conftest.$ac_ext <<_ACEOF
24632 /* end confdefs.h.  */
24633 $ac_includes_default
24634 int
24635 main ()
24636 {
24637 #ifndef strtoul
24638   char *p = (char *) strtoul;
24639 #endif
24640
24641   ;
24642   return 0;
24643 }
24644 _ACEOF
24645 rm -f conftest.$ac_objext
24646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24647   (eval $ac_compile) 2>&5
24648   ac_status=$?
24649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650   (exit $ac_status); } &&
24651          { ac_try='test -s conftest.$ac_objext'
24652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24653   (eval $ac_try) 2>&5
24654   ac_status=$?
24655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656   (exit $ac_status); }; }; then
24657   ac_cv_have_decl_strtoul=yes
24658 else
24659   echo "$as_me: failed program was:" >&5
24660 sed 's/^/| /' conftest.$ac_ext >&5
24661
24662 ac_cv_have_decl_strtoul=no
24663 fi
24664 rm -f conftest.$ac_objext conftest.$ac_ext
24665 fi
24666 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
24667 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
24668 if test $ac_cv_have_decl_strtoul = yes; then
24669
24670 cat >>confdefs.h <<_ACEOF
24671 #define HAVE_DECL_STRTOUL 1
24672 _ACEOF
24673
24674
24675 else
24676   cat >>confdefs.h <<_ACEOF
24677 #define HAVE_DECL_STRTOUL 0
24678 _ACEOF
24679
24680
24681 fi
24682 echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
24683 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6
24684 if test "${ac_cv_have_decl_strtoll+set}" = set; then
24685   echo $ECHO_N "(cached) $ECHO_C" >&6
24686 else
24687   cat >conftest.$ac_ext <<_ACEOF
24688 #line $LINENO "configure"
24689 /* confdefs.h.  */
24690 _ACEOF
24691 cat confdefs.h >>conftest.$ac_ext
24692 cat >>conftest.$ac_ext <<_ACEOF
24693 /* end confdefs.h.  */
24694 $ac_includes_default
24695 int
24696 main ()
24697 {
24698 #ifndef strtoll
24699   char *p = (char *) strtoll;
24700 #endif
24701
24702   ;
24703   return 0;
24704 }
24705 _ACEOF
24706 rm -f conftest.$ac_objext
24707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24708   (eval $ac_compile) 2>&5
24709   ac_status=$?
24710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711   (exit $ac_status); } &&
24712          { ac_try='test -s conftest.$ac_objext'
24713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24714   (eval $ac_try) 2>&5
24715   ac_status=$?
24716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717   (exit $ac_status); }; }; then
24718   ac_cv_have_decl_strtoll=yes
24719 else
24720   echo "$as_me: failed program was:" >&5
24721 sed 's/^/| /' conftest.$ac_ext >&5
24722
24723 ac_cv_have_decl_strtoll=no
24724 fi
24725 rm -f conftest.$ac_objext conftest.$ac_ext
24726 fi
24727 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
24728 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6
24729 if test $ac_cv_have_decl_strtoll = yes; then
24730
24731 cat >>confdefs.h <<_ACEOF
24732 #define HAVE_DECL_STRTOLL 1
24733 _ACEOF
24734
24735
24736 else
24737   cat >>confdefs.h <<_ACEOF
24738 #define HAVE_DECL_STRTOLL 0
24739 _ACEOF
24740
24741
24742 fi
24743 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
24744 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
24745 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
24746   echo $ECHO_N "(cached) $ECHO_C" >&6
24747 else
24748   cat >conftest.$ac_ext <<_ACEOF
24749 #line $LINENO "configure"
24750 /* confdefs.h.  */
24751 _ACEOF
24752 cat confdefs.h >>conftest.$ac_ext
24753 cat >>conftest.$ac_ext <<_ACEOF
24754 /* end confdefs.h.  */
24755 $ac_includes_default
24756 int
24757 main ()
24758 {
24759 #ifndef strtoimax
24760   char *p = (char *) strtoimax;
24761 #endif
24762
24763   ;
24764   return 0;
24765 }
24766 _ACEOF
24767 rm -f conftest.$ac_objext
24768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24769   (eval $ac_compile) 2>&5
24770   ac_status=$?
24771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772   (exit $ac_status); } &&
24773          { ac_try='test -s conftest.$ac_objext'
24774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24775   (eval $ac_try) 2>&5
24776   ac_status=$?
24777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778   (exit $ac_status); }; }; then
24779   ac_cv_have_decl_strtoimax=yes
24780 else
24781   echo "$as_me: failed program was:" >&5
24782 sed 's/^/| /' conftest.$ac_ext >&5
24783
24784 ac_cv_have_decl_strtoimax=no
24785 fi
24786 rm -f conftest.$ac_objext conftest.$ac_ext
24787 fi
24788 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
24789 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
24790 if test $ac_cv_have_decl_strtoimax = yes; then
24791
24792 cat >>confdefs.h <<_ACEOF
24793 #define HAVE_DECL_STRTOIMAX 1
24794 _ACEOF
24795
24796
24797 else
24798   cat >>confdefs.h <<_ACEOF
24799 #define HAVE_DECL_STRTOIMAX 0
24800 _ACEOF
24801
24802
24803 fi
24804 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
24805 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
24806 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
24807   echo $ECHO_N "(cached) $ECHO_C" >&6
24808 else
24809   cat >conftest.$ac_ext <<_ACEOF
24810 #line $LINENO "configure"
24811 /* confdefs.h.  */
24812 _ACEOF
24813 cat confdefs.h >>conftest.$ac_ext
24814 cat >>conftest.$ac_ext <<_ACEOF
24815 /* end confdefs.h.  */
24816 $ac_includes_default
24817 int
24818 main ()
24819 {
24820 #ifndef strtoumax
24821   char *p = (char *) strtoumax;
24822 #endif
24823
24824   ;
24825   return 0;
24826 }
24827 _ACEOF
24828 rm -f conftest.$ac_objext
24829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24830   (eval $ac_compile) 2>&5
24831   ac_status=$?
24832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24833   (exit $ac_status); } &&
24834          { ac_try='test -s conftest.$ac_objext'
24835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24836   (eval $ac_try) 2>&5
24837   ac_status=$?
24838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839   (exit $ac_status); }; }; then
24840   ac_cv_have_decl_strtoumax=yes
24841 else
24842   echo "$as_me: failed program was:" >&5
24843 sed 's/^/| /' conftest.$ac_ext >&5
24844
24845 ac_cv_have_decl_strtoumax=no
24846 fi
24847 rm -f conftest.$ac_objext conftest.$ac_ext
24848 fi
24849 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
24850 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
24851 if test $ac_cv_have_decl_strtoumax = yes; then
24852
24853 cat >>confdefs.h <<_ACEOF
24854 #define HAVE_DECL_STRTOUMAX 1
24855 _ACEOF
24856
24857
24858 else
24859   cat >>confdefs.h <<_ACEOF
24860 #define HAVE_DECL_STRTOUMAX 0
24861 _ACEOF
24862
24863
24864 fi
24865
24866
24867
24868
24869
24870 for ac_header in limits.h stdlib.h inttypes.h
24871 do
24872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24874   echo "$as_me:$LINENO: checking for $ac_header" >&5
24875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24877   echo $ECHO_N "(cached) $ECHO_C" >&6
24878 fi
24879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24881 else
24882   # Is the header compilable?
24883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24885 cat >conftest.$ac_ext <<_ACEOF
24886 #line $LINENO "configure"
24887 /* confdefs.h.  */
24888 _ACEOF
24889 cat confdefs.h >>conftest.$ac_ext
24890 cat >>conftest.$ac_ext <<_ACEOF
24891 /* end confdefs.h.  */
24892 $ac_includes_default
24893 #include <$ac_header>
24894 _ACEOF
24895 rm -f conftest.$ac_objext
24896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24897   (eval $ac_compile) 2>&5
24898   ac_status=$?
24899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900   (exit $ac_status); } &&
24901          { ac_try='test -s conftest.$ac_objext'
24902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24903   (eval $ac_try) 2>&5
24904   ac_status=$?
24905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906   (exit $ac_status); }; }; then
24907   ac_header_compiler=yes
24908 else
24909   echo "$as_me: failed program was:" >&5
24910 sed 's/^/| /' conftest.$ac_ext >&5
24911
24912 ac_header_compiler=no
24913 fi
24914 rm -f conftest.$ac_objext conftest.$ac_ext
24915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24916 echo "${ECHO_T}$ac_header_compiler" >&6
24917
24918 # Is the header present?
24919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24921 cat >conftest.$ac_ext <<_ACEOF
24922 #line $LINENO "configure"
24923 /* confdefs.h.  */
24924 _ACEOF
24925 cat confdefs.h >>conftest.$ac_ext
24926 cat >>conftest.$ac_ext <<_ACEOF
24927 /* end confdefs.h.  */
24928 #include <$ac_header>
24929 _ACEOF
24930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24931   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24932   ac_status=$?
24933   grep -v '^ *+' conftest.er1 >conftest.err
24934   rm -f conftest.er1
24935   cat conftest.err >&5
24936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937   (exit $ac_status); } >/dev/null; then
24938   if test -s conftest.err; then
24939     ac_cpp_err=$ac_c_preproc_warn_flag
24940   else
24941     ac_cpp_err=
24942   fi
24943 else
24944   ac_cpp_err=yes
24945 fi
24946 if test -z "$ac_cpp_err"; then
24947   ac_header_preproc=yes
24948 else
24949   echo "$as_me: failed program was:" >&5
24950 sed 's/^/| /' conftest.$ac_ext >&5
24951
24952   ac_header_preproc=no
24953 fi
24954 rm -f conftest.err conftest.$ac_ext
24955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24956 echo "${ECHO_T}$ac_header_preproc" >&6
24957
24958 # So?  What about this header?
24959 case $ac_header_compiler:$ac_header_preproc in
24960   yes:no )
24961     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24963     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24965     (
24966       cat <<\_ASBOX
24967 ## ------------------------------------ ##
24968 ## Report this to bug-autoconf@gnu.org. ##
24969 ## ------------------------------------ ##
24970 _ASBOX
24971     ) |
24972       sed "s/^/$as_me: WARNING:     /" >&2
24973     ;;
24974   no:yes )
24975     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24977     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24978 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24979     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24981     (
24982       cat <<\_ASBOX
24983 ## ------------------------------------ ##
24984 ## Report this to bug-autoconf@gnu.org. ##
24985 ## ------------------------------------ ##
24986 _ASBOX
24987     ) |
24988       sed "s/^/$as_me: WARNING:     /" >&2
24989     ;;
24990 esac
24991 echo "$as_me:$LINENO: checking for $ac_header" >&5
24992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24994   echo $ECHO_N "(cached) $ECHO_C" >&6
24995 else
24996   eval "$as_ac_Header=$ac_header_preproc"
24997 fi
24998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25000
25001 fi
25002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25003   cat >>confdefs.h <<_ACEOF
25004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25005 _ACEOF
25006
25007 fi
25008
25009 done
25010
25011
25012   echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
25013 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6
25014 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
25015   echo $ECHO_N "(cached) $ECHO_C" >&6
25016 else
25017   cat >conftest.$ac_ext <<_ACEOF
25018 #line $LINENO "configure"
25019 /* confdefs.h.  */
25020 _ACEOF
25021 cat confdefs.h >>conftest.$ac_ext
25022 cat >>conftest.$ac_ext <<_ACEOF
25023 /* end confdefs.h.  */
25024 #include <inttypes.h>
25025 #ifdef strtoimax
25026  inttypes_h_defines_strtoimax
25027 #endif
25028 _ACEOF
25029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25030   $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
25031   jm_cv_func_strtoimax_macro=yes
25032 else
25033   jm_cv_func_strtoimax_macro=no
25034 fi
25035 rm -f conftest*
25036
25037 fi
25038 echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
25039 echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6
25040
25041   if test "$jm_cv_func_strtoimax_macro" != yes; then
25042
25043 for ac_func in strtoimax
25044 do
25045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25046 echo "$as_me:$LINENO: checking for $ac_func" >&5
25047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25048 if eval "test \"\${$as_ac_var+set}\" = set"; then
25049   echo $ECHO_N "(cached) $ECHO_C" >&6
25050 else
25051   cat >conftest.$ac_ext <<_ACEOF
25052 #line $LINENO "configure"
25053 /* confdefs.h.  */
25054 _ACEOF
25055 cat confdefs.h >>conftest.$ac_ext
25056 cat >>conftest.$ac_ext <<_ACEOF
25057 /* end confdefs.h.  */
25058 /* System header to define __stub macros and hopefully few prototypes,
25059     which can conflict with char $ac_func (); below.
25060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25061     <limits.h> exists even on freestanding compilers.  */
25062 #ifdef __STDC__
25063 # include <limits.h>
25064 #else
25065 # include <assert.h>
25066 #endif
25067 /* Override any gcc2 internal prototype to avoid an error.  */
25068 #ifdef __cplusplus
25069 extern "C"
25070 {
25071 #endif
25072 /* We use char because int might match the return type of a gcc2
25073    builtin and then its argument prototype would still apply.  */
25074 char $ac_func ();
25075 /* The GNU C library defines this for functions which it implements
25076     to always fail with ENOSYS.  Some functions are actually named
25077     something starting with __ and the normal name is an alias.  */
25078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25079 choke me
25080 #else
25081 char (*f) () = $ac_func;
25082 #endif
25083 #ifdef __cplusplus
25084 }
25085 #endif
25086
25087 int
25088 main ()
25089 {
25090 return f != $ac_func;
25091   ;
25092   return 0;
25093 }
25094 _ACEOF
25095 rm -f conftest.$ac_objext conftest$ac_exeext
25096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25097   (eval $ac_link) 2>&5
25098   ac_status=$?
25099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100   (exit $ac_status); } &&
25101          { ac_try='test -s conftest$ac_exeext'
25102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25103   (eval $ac_try) 2>&5
25104   ac_status=$?
25105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106   (exit $ac_status); }; }; then
25107   eval "$as_ac_var=yes"
25108 else
25109   echo "$as_me: failed program was:" >&5
25110 sed 's/^/| /' conftest.$ac_ext >&5
25111
25112 eval "$as_ac_var=no"
25113 fi
25114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25115 fi
25116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25117 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25118 if test `eval echo '${'$as_ac_var'}'` = yes; then
25119   cat >>confdefs.h <<_ACEOF
25120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25121 _ACEOF
25122
25123 else
25124   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25125 fi
25126 done
25127
25128
25129   fi
25130
25131       case "$jm_cv_func_strtoimax_macro,$ac_cv_func_strtoimax" in
25132     no,no)
25133
25134 for ac_func in strtol
25135 do
25136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25137 echo "$as_me:$LINENO: checking for $ac_func" >&5
25138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25139 if eval "test \"\${$as_ac_var+set}\" = set"; then
25140   echo $ECHO_N "(cached) $ECHO_C" >&6
25141 else
25142   cat >conftest.$ac_ext <<_ACEOF
25143 #line $LINENO "configure"
25144 /* confdefs.h.  */
25145 _ACEOF
25146 cat confdefs.h >>conftest.$ac_ext
25147 cat >>conftest.$ac_ext <<_ACEOF
25148 /* end confdefs.h.  */
25149 /* System header to define __stub macros and hopefully few prototypes,
25150     which can conflict with char $ac_func (); below.
25151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25152     <limits.h> exists even on freestanding compilers.  */
25153 #ifdef __STDC__
25154 # include <limits.h>
25155 #else
25156 # include <assert.h>
25157 #endif
25158 /* Override any gcc2 internal prototype to avoid an error.  */
25159 #ifdef __cplusplus
25160 extern "C"
25161 {
25162 #endif
25163 /* We use char because int might match the return type of a gcc2
25164    builtin and then its argument prototype would still apply.  */
25165 char $ac_func ();
25166 /* The GNU C library defines this for functions which it implements
25167     to always fail with ENOSYS.  Some functions are actually named
25168     something starting with __ and the normal name is an alias.  */
25169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25170 choke me
25171 #else
25172 char (*f) () = $ac_func;
25173 #endif
25174 #ifdef __cplusplus
25175 }
25176 #endif
25177
25178 int
25179 main ()
25180 {
25181 return f != $ac_func;
25182   ;
25183   return 0;
25184 }
25185 _ACEOF
25186 rm -f conftest.$ac_objext conftest$ac_exeext
25187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25188   (eval $ac_link) 2>&5
25189   ac_status=$?
25190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191   (exit $ac_status); } &&
25192          { ac_try='test -s conftest$ac_exeext'
25193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25194   (eval $ac_try) 2>&5
25195   ac_status=$?
25196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197   (exit $ac_status); }; }; then
25198   eval "$as_ac_var=yes"
25199 else
25200   echo "$as_me: failed program was:" >&5
25201 sed 's/^/| /' conftest.$ac_ext >&5
25202
25203 eval "$as_ac_var=no"
25204 fi
25205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25206 fi
25207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25208 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25209 if test `eval echo '${'$as_ac_var'}'` = yes; then
25210   cat >>confdefs.h <<_ACEOF
25211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25212 _ACEOF
25213
25214 else
25215   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25216 fi
25217 done
25218
25219
25220
25221                   if test "$ac_cv_type_long_long" = yes; then
25222
25223 for ac_func in strtoll
25224 do
25225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25226 echo "$as_me:$LINENO: checking for $ac_func" >&5
25227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25228 if eval "test \"\${$as_ac_var+set}\" = set"; then
25229   echo $ECHO_N "(cached) $ECHO_C" >&6
25230 else
25231   cat >conftest.$ac_ext <<_ACEOF
25232 #line $LINENO "configure"
25233 /* confdefs.h.  */
25234 _ACEOF
25235 cat confdefs.h >>conftest.$ac_ext
25236 cat >>conftest.$ac_ext <<_ACEOF
25237 /* end confdefs.h.  */
25238 /* System header to define __stub macros and hopefully few prototypes,
25239     which can conflict with char $ac_func (); below.
25240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25241     <limits.h> exists even on freestanding compilers.  */
25242 #ifdef __STDC__
25243 # include <limits.h>
25244 #else
25245 # include <assert.h>
25246 #endif
25247 /* Override any gcc2 internal prototype to avoid an error.  */
25248 #ifdef __cplusplus
25249 extern "C"
25250 {
25251 #endif
25252 /* We use char because int might match the return type of a gcc2
25253    builtin and then its argument prototype would still apply.  */
25254 char $ac_func ();
25255 /* The GNU C library defines this for functions which it implements
25256     to always fail with ENOSYS.  Some functions are actually named
25257     something starting with __ and the normal name is an alias.  */
25258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25259 choke me
25260 #else
25261 char (*f) () = $ac_func;
25262 #endif
25263 #ifdef __cplusplus
25264 }
25265 #endif
25266
25267 int
25268 main ()
25269 {
25270 return f != $ac_func;
25271   ;
25272   return 0;
25273 }
25274 _ACEOF
25275 rm -f conftest.$ac_objext conftest$ac_exeext
25276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25277   (eval $ac_link) 2>&5
25278   ac_status=$?
25279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280   (exit $ac_status); } &&
25281          { ac_try='test -s conftest$ac_exeext'
25282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25283   (eval $ac_try) 2>&5
25284   ac_status=$?
25285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286   (exit $ac_status); }; }; then
25287   eval "$as_ac_var=yes"
25288 else
25289   echo "$as_me: failed program was:" >&5
25290 sed 's/^/| /' conftest.$ac_ext >&5
25291
25292 eval "$as_ac_var=no"
25293 fi
25294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25295 fi
25296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25298 if test `eval echo '${'$as_ac_var'}'` = yes; then
25299   cat >>confdefs.h <<_ACEOF
25300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25301 _ACEOF
25302
25303 else
25304   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25305 fi
25306 done
25307
25308
25309       fi
25310       ;;
25311   esac
25312
25313   echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
25314 echo $ECHO_N "checking whether link(2) dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
25315 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
25316   echo $ECHO_N "(cached) $ECHO_C" >&6
25317 else
25318
25319             test -z "$ac_cv_header_unistd_h" \
25320       &&
25321 for ac_header in unistd.h
25322 do
25323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25325   echo "$as_me:$LINENO: checking for $ac_header" >&5
25326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25328   echo $ECHO_N "(cached) $ECHO_C" >&6
25329 fi
25330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25332 else
25333   # Is the header compilable?
25334 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25336 cat >conftest.$ac_ext <<_ACEOF
25337 #line $LINENO "configure"
25338 /* confdefs.h.  */
25339 _ACEOF
25340 cat confdefs.h >>conftest.$ac_ext
25341 cat >>conftest.$ac_ext <<_ACEOF
25342 /* end confdefs.h.  */
25343 $ac_includes_default
25344 #include <$ac_header>
25345 _ACEOF
25346 rm -f conftest.$ac_objext
25347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25348   (eval $ac_compile) 2>&5
25349   ac_status=$?
25350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351   (exit $ac_status); } &&
25352          { ac_try='test -s conftest.$ac_objext'
25353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25354   (eval $ac_try) 2>&5
25355   ac_status=$?
25356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357   (exit $ac_status); }; }; then
25358   ac_header_compiler=yes
25359 else
25360   echo "$as_me: failed program was:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25362
25363 ac_header_compiler=no
25364 fi
25365 rm -f conftest.$ac_objext conftest.$ac_ext
25366 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25367 echo "${ECHO_T}$ac_header_compiler" >&6
25368
25369 # Is the header present?
25370 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25372 cat >conftest.$ac_ext <<_ACEOF
25373 #line $LINENO "configure"
25374 /* confdefs.h.  */
25375 _ACEOF
25376 cat confdefs.h >>conftest.$ac_ext
25377 cat >>conftest.$ac_ext <<_ACEOF
25378 /* end confdefs.h.  */
25379 #include <$ac_header>
25380 _ACEOF
25381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25382   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25383   ac_status=$?
25384   grep -v '^ *+' conftest.er1 >conftest.err
25385   rm -f conftest.er1
25386   cat conftest.err >&5
25387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388   (exit $ac_status); } >/dev/null; then
25389   if test -s conftest.err; then
25390     ac_cpp_err=$ac_c_preproc_warn_flag
25391   else
25392     ac_cpp_err=
25393   fi
25394 else
25395   ac_cpp_err=yes
25396 fi
25397 if test -z "$ac_cpp_err"; then
25398   ac_header_preproc=yes
25399 else
25400   echo "$as_me: failed program was:" >&5
25401 sed 's/^/| /' conftest.$ac_ext >&5
25402
25403   ac_header_preproc=no
25404 fi
25405 rm -f conftest.err conftest.$ac_ext
25406 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25407 echo "${ECHO_T}$ac_header_preproc" >&6
25408
25409 # So?  What about this header?
25410 case $ac_header_compiler:$ac_header_preproc in
25411   yes:no )
25412     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25413 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25414     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25416     (
25417       cat <<\_ASBOX
25418 ## ------------------------------------ ##
25419 ## Report this to bug-autoconf@gnu.org. ##
25420 ## ------------------------------------ ##
25421 _ASBOX
25422     ) |
25423       sed "s/^/$as_me: WARNING:     /" >&2
25424     ;;
25425   no:yes )
25426     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25428     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25429 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25430     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25432     (
25433       cat <<\_ASBOX
25434 ## ------------------------------------ ##
25435 ## Report this to bug-autoconf@gnu.org. ##
25436 ## ------------------------------------ ##
25437 _ASBOX
25438     ) |
25439       sed "s/^/$as_me: WARNING:     /" >&2
25440     ;;
25441 esac
25442 echo "$as_me:$LINENO: checking for $ac_header" >&5
25443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25445   echo $ECHO_N "(cached) $ECHO_C" >&6
25446 else
25447   eval "$as_ac_Header=$ac_header_preproc"
25448 fi
25449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25451
25452 fi
25453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25454   cat >>confdefs.h <<_ACEOF
25455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25456 _ACEOF
25457
25458 fi
25459
25460 done
25461
25462
25463     # Create a regular file.
25464     echo > conftest.file
25465     if test "$cross_compiling" = yes; then
25466   jm_ac_cv_func_link_follows_symlink=yes
25467 else
25468   cat >conftest.$ac_ext <<_ACEOF
25469 #line $LINENO "configure"
25470 /* confdefs.h.  */
25471 _ACEOF
25472 cat confdefs.h >>conftest.$ac_ext
25473 cat >>conftest.$ac_ext <<_ACEOF
25474 /* end confdefs.h.  */
25475
25476 #       include <sys/types.h>
25477 #       include <sys/stat.h>
25478 #       ifdef HAVE_UNISTD_H
25479 #        include <unistd.h>
25480 #       endif
25481
25482 #       define SAME_INODE(Stat_buf_1, Stat_buf_2) \
25483           ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
25484            && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
25485
25486         int
25487         main ()
25488         {
25489           const char *file = "conftest.file";
25490           const char *sym = "conftest.sym";
25491           const char *hard = "conftest.hard";
25492           struct stat sb_file, sb_hard;
25493
25494           /* Create a symlink to the regular file. */
25495           if (symlink (file, sym))
25496             abort ();
25497
25498           /* Create a hard link to that symlink.  */
25499           if (link (sym, hard))
25500             abort ();
25501
25502           if (lstat (hard, &sb_hard))
25503             abort ();
25504           if (lstat (file, &sb_file))
25505             abort ();
25506
25507           /* If the dev/inode of hard and file are the same, then
25508              the link call followed the symlink.  */
25509           return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
25510         }
25511
25512 _ACEOF
25513 rm -f conftest$ac_exeext
25514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25515   (eval $ac_link) 2>&5
25516   ac_status=$?
25517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25520   (eval $ac_try) 2>&5
25521   ac_status=$?
25522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523   (exit $ac_status); }; }; then
25524   jm_ac_cv_func_link_follows_symlink=yes
25525 else
25526   echo "$as_me: program exited with status $ac_status" >&5
25527 echo "$as_me: failed program was:" >&5
25528 sed 's/^/| /' conftest.$ac_ext >&5
25529
25530 ( exit $ac_status )
25531 jm_ac_cv_func_link_follows_symlink=no
25532 fi
25533 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25534 fi
25535
25536 fi
25537 echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
25538 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6
25539   if test $jm_ac_cv_func_link_follows_symlink = yes; then
25540
25541 cat >>confdefs.h <<\_ACEOF
25542 #define LINK_FOLLOWS_SYMLINKS 1
25543 _ACEOF
25544
25545   fi
25546
25547 echo "$as_me:$LINENO: checking for error_at_line" >&5
25548 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
25549 if test "${ac_cv_lib_error_at_line+set}" = set; then
25550   echo $ECHO_N "(cached) $ECHO_C" >&6
25551 else
25552   cat >conftest.$ac_ext <<_ACEOF
25553 #line $LINENO "configure"
25554 /* confdefs.h.  */
25555 _ACEOF
25556 cat confdefs.h >>conftest.$ac_ext
25557 cat >>conftest.$ac_ext <<_ACEOF
25558 /* end confdefs.h.  */
25559
25560 int
25561 main ()
25562 {
25563 error_at_line (0, 0, "", 0, "");
25564   ;
25565   return 0;
25566 }
25567 _ACEOF
25568 rm -f conftest.$ac_objext conftest$ac_exeext
25569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25570   (eval $ac_link) 2>&5
25571   ac_status=$?
25572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573   (exit $ac_status); } &&
25574          { ac_try='test -s conftest$ac_exeext'
25575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25576   (eval $ac_try) 2>&5
25577   ac_status=$?
25578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579   (exit $ac_status); }; }; then
25580   ac_cv_lib_error_at_line=yes
25581 else
25582   echo "$as_me: failed program was:" >&5
25583 sed 's/^/| /' conftest.$ac_ext >&5
25584
25585 ac_cv_lib_error_at_line=no
25586 fi
25587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25588 fi
25589 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25590 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
25591 if test $ac_cv_lib_error_at_line = no; then
25592   LIBOBJS="$LIBOBJS error.$ac_objext"
25593 fi
25594
25595
25596
25597
25598
25599 for ac_func in localtime_r strftime
25600 do
25601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25602 echo "$as_me:$LINENO: checking for $ac_func" >&5
25603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25604 if eval "test \"\${$as_ac_var+set}\" = set"; then
25605   echo $ECHO_N "(cached) $ECHO_C" >&6
25606 else
25607   cat >conftest.$ac_ext <<_ACEOF
25608 #line $LINENO "configure"
25609 /* confdefs.h.  */
25610 _ACEOF
25611 cat confdefs.h >>conftest.$ac_ext
25612 cat >>conftest.$ac_ext <<_ACEOF
25613 /* end confdefs.h.  */
25614 /* System header to define __stub macros and hopefully few prototypes,
25615     which can conflict with char $ac_func (); below.
25616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25617     <limits.h> exists even on freestanding compilers.  */
25618 #ifdef __STDC__
25619 # include <limits.h>
25620 #else
25621 # include <assert.h>
25622 #endif
25623 /* Override any gcc2 internal prototype to avoid an error.  */
25624 #ifdef __cplusplus
25625 extern "C"
25626 {
25627 #endif
25628 /* We use char because int might match the return type of a gcc2
25629    builtin and then its argument prototype would still apply.  */
25630 char $ac_func ();
25631 /* The GNU C library defines this for functions which it implements
25632     to always fail with ENOSYS.  Some functions are actually named
25633     something starting with __ and the normal name is an alias.  */
25634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25635 choke me
25636 #else
25637 char (*f) () = $ac_func;
25638 #endif
25639 #ifdef __cplusplus
25640 }
25641 #endif
25642
25643 int
25644 main ()
25645 {
25646 return f != $ac_func;
25647   ;
25648   return 0;
25649 }
25650 _ACEOF
25651 rm -f conftest.$ac_objext conftest$ac_exeext
25652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25653   (eval $ac_link) 2>&5
25654   ac_status=$?
25655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656   (exit $ac_status); } &&
25657          { ac_try='test -s conftest$ac_exeext'
25658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25659   (eval $ac_try) 2>&5
25660   ac_status=$?
25661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662   (exit $ac_status); }; }; then
25663   eval "$as_ac_var=yes"
25664 else
25665   echo "$as_me: failed program was:" >&5
25666 sed 's/^/| /' conftest.$ac_ext >&5
25667
25668 eval "$as_ac_var=no"
25669 fi
25670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25671 fi
25672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25674 if test `eval echo '${'$as_ac_var'}'` = yes; then
25675   cat >>confdefs.h <<_ACEOF
25676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25677 _ACEOF
25678
25679 fi
25680 done
25681
25682
25683
25684 for ac_header in limits.h
25685 do
25686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25688   echo "$as_me:$LINENO: checking for $ac_header" >&5
25689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25691   echo $ECHO_N "(cached) $ECHO_C" >&6
25692 fi
25693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25695 else
25696   # Is the header compilable?
25697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25699 cat >conftest.$ac_ext <<_ACEOF
25700 #line $LINENO "configure"
25701 /* confdefs.h.  */
25702 _ACEOF
25703 cat confdefs.h >>conftest.$ac_ext
25704 cat >>conftest.$ac_ext <<_ACEOF
25705 /* end confdefs.h.  */
25706 $ac_includes_default
25707 #include <$ac_header>
25708 _ACEOF
25709 rm -f conftest.$ac_objext
25710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25711   (eval $ac_compile) 2>&5
25712   ac_status=$?
25713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714   (exit $ac_status); } &&
25715          { ac_try='test -s conftest.$ac_objext'
25716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25717   (eval $ac_try) 2>&5
25718   ac_status=$?
25719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720   (exit $ac_status); }; }; then
25721   ac_header_compiler=yes
25722 else
25723   echo "$as_me: failed program was:" >&5
25724 sed 's/^/| /' conftest.$ac_ext >&5
25725
25726 ac_header_compiler=no
25727 fi
25728 rm -f conftest.$ac_objext conftest.$ac_ext
25729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25730 echo "${ECHO_T}$ac_header_compiler" >&6
25731
25732 # Is the header present?
25733 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25735 cat >conftest.$ac_ext <<_ACEOF
25736 #line $LINENO "configure"
25737 /* confdefs.h.  */
25738 _ACEOF
25739 cat confdefs.h >>conftest.$ac_ext
25740 cat >>conftest.$ac_ext <<_ACEOF
25741 /* end confdefs.h.  */
25742 #include <$ac_header>
25743 _ACEOF
25744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25745   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25746   ac_status=$?
25747   grep -v '^ *+' conftest.er1 >conftest.err
25748   rm -f conftest.er1
25749   cat conftest.err >&5
25750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751   (exit $ac_status); } >/dev/null; then
25752   if test -s conftest.err; then
25753     ac_cpp_err=$ac_c_preproc_warn_flag
25754   else
25755     ac_cpp_err=
25756   fi
25757 else
25758   ac_cpp_err=yes
25759 fi
25760 if test -z "$ac_cpp_err"; then
25761   ac_header_preproc=yes
25762 else
25763   echo "$as_me: failed program was:" >&5
25764 sed 's/^/| /' conftest.$ac_ext >&5
25765
25766   ac_header_preproc=no
25767 fi
25768 rm -f conftest.err conftest.$ac_ext
25769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25770 echo "${ECHO_T}$ac_header_preproc" >&6
25771
25772 # So?  What about this header?
25773 case $ac_header_compiler:$ac_header_preproc in
25774   yes:no )
25775     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25779     (
25780       cat <<\_ASBOX
25781 ## ------------------------------------ ##
25782 ## Report this to bug-autoconf@gnu.org. ##
25783 ## ------------------------------------ ##
25784 _ASBOX
25785     ) |
25786       sed "s/^/$as_me: WARNING:     /" >&2
25787     ;;
25788   no:yes )
25789     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25791     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25793     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25795     (
25796       cat <<\_ASBOX
25797 ## ------------------------------------ ##
25798 ## Report this to bug-autoconf@gnu.org. ##
25799 ## ------------------------------------ ##
25800 _ASBOX
25801     ) |
25802       sed "s/^/$as_me: WARNING:     /" >&2
25803     ;;
25804 esac
25805 echo "$as_me:$LINENO: checking for $ac_header" >&5
25806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25808   echo $ECHO_N "(cached) $ECHO_C" >&6
25809 else
25810   eval "$as_ac_Header=$ac_header_preproc"
25811 fi
25812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25814
25815 fi
25816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25817   cat >>confdefs.h <<_ACEOF
25818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25819 _ACEOF
25820
25821 fi
25822
25823 done
25824
25825
25826
25827
25828
25829
25830 for ac_func in bcopy tzset mempcpy memcpy memset
25831 do
25832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25833 echo "$as_me:$LINENO: checking for $ac_func" >&5
25834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25835 if eval "test \"\${$as_ac_var+set}\" = set"; then
25836   echo $ECHO_N "(cached) $ECHO_C" >&6
25837 else
25838   cat >conftest.$ac_ext <<_ACEOF
25839 #line $LINENO "configure"
25840 /* confdefs.h.  */
25841 _ACEOF
25842 cat confdefs.h >>conftest.$ac_ext
25843 cat >>conftest.$ac_ext <<_ACEOF
25844 /* end confdefs.h.  */
25845 /* System header to define __stub macros and hopefully few prototypes,
25846     which can conflict with char $ac_func (); below.
25847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25848     <limits.h> exists even on freestanding compilers.  */
25849 #ifdef __STDC__
25850 # include <limits.h>
25851 #else
25852 # include <assert.h>
25853 #endif
25854 /* Override any gcc2 internal prototype to avoid an error.  */
25855 #ifdef __cplusplus
25856 extern "C"
25857 {
25858 #endif
25859 /* We use char because int might match the return type of a gcc2
25860    builtin and then its argument prototype would still apply.  */
25861 char $ac_func ();
25862 /* The GNU C library defines this for functions which it implements
25863     to always fail with ENOSYS.  Some functions are actually named
25864     something starting with __ and the normal name is an alias.  */
25865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25866 choke me
25867 #else
25868 char (*f) () = $ac_func;
25869 #endif
25870 #ifdef __cplusplus
25871 }
25872 #endif
25873
25874 int
25875 main ()
25876 {
25877 return f != $ac_func;
25878   ;
25879   return 0;
25880 }
25881 _ACEOF
25882 rm -f conftest.$ac_objext conftest$ac_exeext
25883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25884   (eval $ac_link) 2>&5
25885   ac_status=$?
25886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887   (exit $ac_status); } &&
25888          { ac_try='test -s conftest$ac_exeext'
25889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25890   (eval $ac_try) 2>&5
25891   ac_status=$?
25892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25893   (exit $ac_status); }; }; then
25894   eval "$as_ac_var=yes"
25895 else
25896   echo "$as_me: failed program was:" >&5
25897 sed 's/^/| /' conftest.$ac_ext >&5
25898
25899 eval "$as_ac_var=no"
25900 fi
25901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25902 fi
25903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25905 if test `eval echo '${'$as_ac_var'}'` = yes; then
25906   cat >>confdefs.h <<_ACEOF
25907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25908 _ACEOF
25909
25910 fi
25911 done
25912
25913
25914  # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
25915  echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
25916 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
25917 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25918   echo $ECHO_N "(cached) $ECHO_C" >&6
25919 else
25920   cat >conftest.$ac_ext <<_ACEOF
25921 #line $LINENO "configure"
25922 /* confdefs.h.  */
25923 _ACEOF
25924 cat confdefs.h >>conftest.$ac_ext
25925 cat >>conftest.$ac_ext <<_ACEOF
25926 /* end confdefs.h.  */
25927 #include <sys/types.h>
25928 #include <$ac_cv_struct_tm>
25929
25930
25931 int
25932 main ()
25933 {
25934 static struct tm ac_aggr;
25935 if (ac_aggr.tm_zone)
25936 return 0;
25937   ;
25938   return 0;
25939 }
25940 _ACEOF
25941 rm -f conftest.$ac_objext
25942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25943   (eval $ac_compile) 2>&5
25944   ac_status=$?
25945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946   (exit $ac_status); } &&
25947          { ac_try='test -s conftest.$ac_objext'
25948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25949   (eval $ac_try) 2>&5
25950   ac_status=$?
25951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952   (exit $ac_status); }; }; then
25953   ac_cv_member_struct_tm_tm_zone=yes
25954 else
25955   echo "$as_me: failed program was:" >&5
25956 sed 's/^/| /' conftest.$ac_ext >&5
25957
25958 cat >conftest.$ac_ext <<_ACEOF
25959 #line $LINENO "configure"
25960 /* confdefs.h.  */
25961 _ACEOF
25962 cat confdefs.h >>conftest.$ac_ext
25963 cat >>conftest.$ac_ext <<_ACEOF
25964 /* end confdefs.h.  */
25965 #include <sys/types.h>
25966 #include <$ac_cv_struct_tm>
25967
25968
25969 int
25970 main ()
25971 {
25972 static struct tm ac_aggr;
25973 if (sizeof ac_aggr.tm_zone)
25974 return 0;
25975   ;
25976   return 0;
25977 }
25978 _ACEOF
25979 rm -f conftest.$ac_objext
25980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25981   (eval $ac_compile) 2>&5
25982   ac_status=$?
25983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984   (exit $ac_status); } &&
25985          { ac_try='test -s conftest.$ac_objext'
25986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25987   (eval $ac_try) 2>&5
25988   ac_status=$?
25989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25990   (exit $ac_status); }; }; then
25991   ac_cv_member_struct_tm_tm_zone=yes
25992 else
25993   echo "$as_me: failed program was:" >&5
25994 sed 's/^/| /' conftest.$ac_ext >&5
25995
25996 ac_cv_member_struct_tm_tm_zone=no
25997 fi
25998 rm -f conftest.$ac_objext conftest.$ac_ext
25999 fi
26000 rm -f conftest.$ac_objext conftest.$ac_ext
26001 fi
26002 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
26003 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
26004 if test $ac_cv_member_struct_tm_tm_zone = yes; then
26005
26006 cat >>confdefs.h <<_ACEOF
26007 #define HAVE_STRUCT_TM_TM_ZONE 1
26008 _ACEOF
26009
26010
26011 fi
26012
26013 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26014
26015 cat >>confdefs.h <<\_ACEOF
26016 #define HAVE_TM_ZONE 1
26017 _ACEOF
26018
26019 else
26020   echo "$as_me:$LINENO: checking for tzname" >&5
26021 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
26022 if test "${ac_cv_var_tzname+set}" = set; then
26023   echo $ECHO_N "(cached) $ECHO_C" >&6
26024 else
26025   cat >conftest.$ac_ext <<_ACEOF
26026 #line $LINENO "configure"
26027 /* confdefs.h.  */
26028 _ACEOF
26029 cat confdefs.h >>conftest.$ac_ext
26030 cat >>conftest.$ac_ext <<_ACEOF
26031 /* end confdefs.h.  */
26032 #include <time.h>
26033 #ifndef tzname /* For SGI.  */
26034 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
26035 #endif
26036
26037 int
26038 main ()
26039 {
26040 atoi(*tzname);
26041   ;
26042   return 0;
26043 }
26044 _ACEOF
26045 rm -f conftest.$ac_objext conftest$ac_exeext
26046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26047   (eval $ac_link) 2>&5
26048   ac_status=$?
26049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050   (exit $ac_status); } &&
26051          { ac_try='test -s conftest$ac_exeext'
26052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26053   (eval $ac_try) 2>&5
26054   ac_status=$?
26055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26056   (exit $ac_status); }; }; then
26057   ac_cv_var_tzname=yes
26058 else
26059   echo "$as_me: failed program was:" >&5
26060 sed 's/^/| /' conftest.$ac_ext >&5
26061
26062 ac_cv_var_tzname=no
26063 fi
26064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26065 fi
26066 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
26067 echo "${ECHO_T}$ac_cv_var_tzname" >&6
26068   if test $ac_cv_var_tzname = yes; then
26069
26070 cat >>confdefs.h <<\_ACEOF
26071 #define HAVE_TZNAME 1
26072 _ACEOF
26073
26074   fi
26075 fi
26076
26077
26078
26079
26080 for ac_func in mblen mbrlen
26081 do
26082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26083 echo "$as_me:$LINENO: checking for $ac_func" >&5
26084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26085 if eval "test \"\${$as_ac_var+set}\" = set"; then
26086   echo $ECHO_N "(cached) $ECHO_C" >&6
26087 else
26088   cat >conftest.$ac_ext <<_ACEOF
26089 #line $LINENO "configure"
26090 /* confdefs.h.  */
26091 _ACEOF
26092 cat confdefs.h >>conftest.$ac_ext
26093 cat >>conftest.$ac_ext <<_ACEOF
26094 /* end confdefs.h.  */
26095 /* System header to define __stub macros and hopefully few prototypes,
26096     which can conflict with char $ac_func (); below.
26097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26098     <limits.h> exists even on freestanding compilers.  */
26099 #ifdef __STDC__
26100 # include <limits.h>
26101 #else
26102 # include <assert.h>
26103 #endif
26104 /* Override any gcc2 internal prototype to avoid an error.  */
26105 #ifdef __cplusplus
26106 extern "C"
26107 {
26108 #endif
26109 /* We use char because int might match the return type of a gcc2
26110    builtin and then its argument prototype would still apply.  */
26111 char $ac_func ();
26112 /* The GNU C library defines this for functions which it implements
26113     to always fail with ENOSYS.  Some functions are actually named
26114     something starting with __ and the normal name is an alias.  */
26115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26116 choke me
26117 #else
26118 char (*f) () = $ac_func;
26119 #endif
26120 #ifdef __cplusplus
26121 }
26122 #endif
26123
26124 int
26125 main ()
26126 {
26127 return f != $ac_func;
26128   ;
26129   return 0;
26130 }
26131 _ACEOF
26132 rm -f conftest.$ac_objext conftest$ac_exeext
26133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26134   (eval $ac_link) 2>&5
26135   ac_status=$?
26136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137   (exit $ac_status); } &&
26138          { ac_try='test -s conftest$ac_exeext'
26139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26140   (eval $ac_try) 2>&5
26141   ac_status=$?
26142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26143   (exit $ac_status); }; }; then
26144   eval "$as_ac_var=yes"
26145 else
26146   echo "$as_me: failed program was:" >&5
26147 sed 's/^/| /' conftest.$ac_ext >&5
26148
26149 eval "$as_ac_var=no"
26150 fi
26151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26152 fi
26153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26155 if test `eval echo '${'$as_ac_var'}'` = yes; then
26156   cat >>confdefs.h <<_ACEOF
26157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26158 _ACEOF
26159
26160 fi
26161 done
26162
26163
26164  echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
26165 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
26166 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
26167   echo $ECHO_N "(cached) $ECHO_C" >&6
26168 else
26169   cat >conftest.$ac_ext <<_ACEOF
26170 #line $LINENO "configure"
26171 /* confdefs.h.  */
26172 _ACEOF
26173 cat confdefs.h >>conftest.$ac_ext
26174 cat >>conftest.$ac_ext <<_ACEOF
26175 /* end confdefs.h.  */
26176 #include <time.h>
26177
26178 int
26179 main ()
26180 {
26181 static struct tm ac_aggr;
26182 if (ac_aggr.tm_gmtoff)
26183 return 0;
26184   ;
26185   return 0;
26186 }
26187 _ACEOF
26188 rm -f conftest.$ac_objext
26189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26190   (eval $ac_compile) 2>&5
26191   ac_status=$?
26192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193   (exit $ac_status); } &&
26194          { ac_try='test -s conftest.$ac_objext'
26195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26196   (eval $ac_try) 2>&5
26197   ac_status=$?
26198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199   (exit $ac_status); }; }; then
26200   ac_cv_member_struct_tm_tm_gmtoff=yes
26201 else
26202   echo "$as_me: failed program was:" >&5
26203 sed 's/^/| /' conftest.$ac_ext >&5
26204
26205 cat >conftest.$ac_ext <<_ACEOF
26206 #line $LINENO "configure"
26207 /* confdefs.h.  */
26208 _ACEOF
26209 cat confdefs.h >>conftest.$ac_ext
26210 cat >>conftest.$ac_ext <<_ACEOF
26211 /* end confdefs.h.  */
26212 #include <time.h>
26213
26214 int
26215 main ()
26216 {
26217 static struct tm ac_aggr;
26218 if (sizeof ac_aggr.tm_gmtoff)
26219 return 0;
26220   ;
26221   return 0;
26222 }
26223 _ACEOF
26224 rm -f conftest.$ac_objext
26225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26226   (eval $ac_compile) 2>&5
26227   ac_status=$?
26228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26229   (exit $ac_status); } &&
26230          { ac_try='test -s conftest.$ac_objext'
26231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26232   (eval $ac_try) 2>&5
26233   ac_status=$?
26234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235   (exit $ac_status); }; }; then
26236   ac_cv_member_struct_tm_tm_gmtoff=yes
26237 else
26238   echo "$as_me: failed program was:" >&5
26239 sed 's/^/| /' conftest.$ac_ext >&5
26240
26241 ac_cv_member_struct_tm_tm_gmtoff=no
26242 fi
26243 rm -f conftest.$ac_objext conftest.$ac_ext
26244 fi
26245 rm -f conftest.$ac_objext conftest.$ac_ext
26246 fi
26247 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
26248 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
26249 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
26250
26251 cat >>confdefs.h <<\_ACEOF
26252 #define HAVE_TM_GMTOFF 1
26253 _ACEOF
26254
26255 fi
26256
26257
26258
26259
26260 for ac_header in sys/time.h
26261 do
26262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26264   echo "$as_me:$LINENO: checking for $ac_header" >&5
26265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26267   echo $ECHO_N "(cached) $ECHO_C" >&6
26268 fi
26269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26271 else
26272   # Is the header compilable?
26273 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26275 cat >conftest.$ac_ext <<_ACEOF
26276 #line $LINENO "configure"
26277 /* confdefs.h.  */
26278 _ACEOF
26279 cat confdefs.h >>conftest.$ac_ext
26280 cat >>conftest.$ac_ext <<_ACEOF
26281 /* end confdefs.h.  */
26282 $ac_includes_default
26283 #include <$ac_header>
26284 _ACEOF
26285 rm -f conftest.$ac_objext
26286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26287   (eval $ac_compile) 2>&5
26288   ac_status=$?
26289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290   (exit $ac_status); } &&
26291          { ac_try='test -s conftest.$ac_objext'
26292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26293   (eval $ac_try) 2>&5
26294   ac_status=$?
26295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296   (exit $ac_status); }; }; then
26297   ac_header_compiler=yes
26298 else
26299   echo "$as_me: failed program was:" >&5
26300 sed 's/^/| /' conftest.$ac_ext >&5
26301
26302 ac_header_compiler=no
26303 fi
26304 rm -f conftest.$ac_objext conftest.$ac_ext
26305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26306 echo "${ECHO_T}$ac_header_compiler" >&6
26307
26308 # Is the header present?
26309 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26311 cat >conftest.$ac_ext <<_ACEOF
26312 #line $LINENO "configure"
26313 /* confdefs.h.  */
26314 _ACEOF
26315 cat confdefs.h >>conftest.$ac_ext
26316 cat >>conftest.$ac_ext <<_ACEOF
26317 /* end confdefs.h.  */
26318 #include <$ac_header>
26319 _ACEOF
26320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26321   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26322   ac_status=$?
26323   grep -v '^ *+' conftest.er1 >conftest.err
26324   rm -f conftest.er1
26325   cat conftest.err >&5
26326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327   (exit $ac_status); } >/dev/null; then
26328   if test -s conftest.err; then
26329     ac_cpp_err=$ac_c_preproc_warn_flag
26330   else
26331     ac_cpp_err=
26332   fi
26333 else
26334   ac_cpp_err=yes
26335 fi
26336 if test -z "$ac_cpp_err"; then
26337   ac_header_preproc=yes
26338 else
26339   echo "$as_me: failed program was:" >&5
26340 sed 's/^/| /' conftest.$ac_ext >&5
26341
26342   ac_header_preproc=no
26343 fi
26344 rm -f conftest.err conftest.$ac_ext
26345 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26346 echo "${ECHO_T}$ac_header_preproc" >&6
26347
26348 # So?  What about this header?
26349 case $ac_header_compiler:$ac_header_preproc in
26350   yes:no )
26351     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26353     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26355     (
26356       cat <<\_ASBOX
26357 ## ------------------------------------ ##
26358 ## Report this to bug-autoconf@gnu.org. ##
26359 ## ------------------------------------ ##
26360 _ASBOX
26361     ) |
26362       sed "s/^/$as_me: WARNING:     /" >&2
26363     ;;
26364   no:yes )
26365     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26367     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26368 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26369     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26371     (
26372       cat <<\_ASBOX
26373 ## ------------------------------------ ##
26374 ## Report this to bug-autoconf@gnu.org. ##
26375 ## ------------------------------------ ##
26376 _ASBOX
26377     ) |
26378       sed "s/^/$as_me: WARNING:     /" >&2
26379     ;;
26380 esac
26381 echo "$as_me:$LINENO: checking for $ac_header" >&5
26382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26384   echo $ECHO_N "(cached) $ECHO_C" >&6
26385 else
26386   eval "$as_ac_Header=$ac_header_preproc"
26387 fi
26388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26390
26391 fi
26392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26393   cat >>confdefs.h <<_ACEOF
26394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26395 _ACEOF
26396
26397 fi
26398
26399 done
26400
26401
26402 cat >>confdefs.h <<\_ACEOF
26403 #define my_strftime nstrftime
26404 _ACEOF
26405
26406
26407
26408
26409 for ac_header in stdio_ext.h
26410 do
26411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26413   echo "$as_me:$LINENO: checking for $ac_header" >&5
26414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26416   echo $ECHO_N "(cached) $ECHO_C" >&6
26417 fi
26418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26420 else
26421   # Is the header compilable?
26422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26424 cat >conftest.$ac_ext <<_ACEOF
26425 #line $LINENO "configure"
26426 /* confdefs.h.  */
26427 _ACEOF
26428 cat confdefs.h >>conftest.$ac_ext
26429 cat >>conftest.$ac_ext <<_ACEOF
26430 /* end confdefs.h.  */
26431 $ac_includes_default
26432 #include <$ac_header>
26433 _ACEOF
26434 rm -f conftest.$ac_objext
26435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26436   (eval $ac_compile) 2>&5
26437   ac_status=$?
26438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26439   (exit $ac_status); } &&
26440          { ac_try='test -s conftest.$ac_objext'
26441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26442   (eval $ac_try) 2>&5
26443   ac_status=$?
26444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445   (exit $ac_status); }; }; then
26446   ac_header_compiler=yes
26447 else
26448   echo "$as_me: failed program was:" >&5
26449 sed 's/^/| /' conftest.$ac_ext >&5
26450
26451 ac_header_compiler=no
26452 fi
26453 rm -f conftest.$ac_objext conftest.$ac_ext
26454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26455 echo "${ECHO_T}$ac_header_compiler" >&6
26456
26457 # Is the header present?
26458 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26460 cat >conftest.$ac_ext <<_ACEOF
26461 #line $LINENO "configure"
26462 /* confdefs.h.  */
26463 _ACEOF
26464 cat confdefs.h >>conftest.$ac_ext
26465 cat >>conftest.$ac_ext <<_ACEOF
26466 /* end confdefs.h.  */
26467 #include <$ac_header>
26468 _ACEOF
26469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26470   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26471   ac_status=$?
26472   grep -v '^ *+' conftest.er1 >conftest.err
26473   rm -f conftest.er1
26474   cat conftest.err >&5
26475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476   (exit $ac_status); } >/dev/null; then
26477   if test -s conftest.err; then
26478     ac_cpp_err=$ac_c_preproc_warn_flag
26479   else
26480     ac_cpp_err=
26481   fi
26482 else
26483   ac_cpp_err=yes
26484 fi
26485 if test -z "$ac_cpp_err"; then
26486   ac_header_preproc=yes
26487 else
26488   echo "$as_me: failed program was:" >&5
26489 sed 's/^/| /' conftest.$ac_ext >&5
26490
26491   ac_header_preproc=no
26492 fi
26493 rm -f conftest.err conftest.$ac_ext
26494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26495 echo "${ECHO_T}$ac_header_preproc" >&6
26496
26497 # So?  What about this header?
26498 case $ac_header_compiler:$ac_header_preproc in
26499   yes:no )
26500     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26504     (
26505       cat <<\_ASBOX
26506 ## ------------------------------------ ##
26507 ## Report this to bug-autoconf@gnu.org. ##
26508 ## ------------------------------------ ##
26509 _ASBOX
26510     ) |
26511       sed "s/^/$as_me: WARNING:     /" >&2
26512     ;;
26513   no:yes )
26514     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26516     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26517 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26520     (
26521       cat <<\_ASBOX
26522 ## ------------------------------------ ##
26523 ## Report this to bug-autoconf@gnu.org. ##
26524 ## ------------------------------------ ##
26525 _ASBOX
26526     ) |
26527       sed "s/^/$as_me: WARNING:     /" >&2
26528     ;;
26529 esac
26530 echo "$as_me:$LINENO: checking for $ac_header" >&5
26531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26533   echo $ECHO_N "(cached) $ECHO_C" >&6
26534 else
26535   eval "$as_ac_Header=$ac_header_preproc"
26536 fi
26537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26539
26540 fi
26541 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26542   cat >>confdefs.h <<_ACEOF
26543 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26544 _ACEOF
26545
26546 fi
26547
26548 done
26549
26550
26551 for ac_func in __fpending
26552 do
26553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26554 echo "$as_me:$LINENO: checking for $ac_func" >&5
26555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26556 if eval "test \"\${$as_ac_var+set}\" = set"; then
26557   echo $ECHO_N "(cached) $ECHO_C" >&6
26558 else
26559   cat >conftest.$ac_ext <<_ACEOF
26560 #line $LINENO "configure"
26561 /* confdefs.h.  */
26562 _ACEOF
26563 cat confdefs.h >>conftest.$ac_ext
26564 cat >>conftest.$ac_ext <<_ACEOF
26565 /* end confdefs.h.  */
26566 /* System header to define __stub macros and hopefully few prototypes,
26567     which can conflict with char $ac_func (); below.
26568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26569     <limits.h> exists even on freestanding compilers.  */
26570 #ifdef __STDC__
26571 # include <limits.h>
26572 #else
26573 # include <assert.h>
26574 #endif
26575 /* Override any gcc2 internal prototype to avoid an error.  */
26576 #ifdef __cplusplus
26577 extern "C"
26578 {
26579 #endif
26580 /* We use char because int might match the return type of a gcc2
26581    builtin and then its argument prototype would still apply.  */
26582 char $ac_func ();
26583 /* The GNU C library defines this for functions which it implements
26584     to always fail with ENOSYS.  Some functions are actually named
26585     something starting with __ and the normal name is an alias.  */
26586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26587 choke me
26588 #else
26589 char (*f) () = $ac_func;
26590 #endif
26591 #ifdef __cplusplus
26592 }
26593 #endif
26594
26595 int
26596 main ()
26597 {
26598 return f != $ac_func;
26599   ;
26600   return 0;
26601 }
26602 _ACEOF
26603 rm -f conftest.$ac_objext conftest$ac_exeext
26604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26605   (eval $ac_link) 2>&5
26606   ac_status=$?
26607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608   (exit $ac_status); } &&
26609          { ac_try='test -s conftest$ac_exeext'
26610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26611   (eval $ac_try) 2>&5
26612   ac_status=$?
26613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614   (exit $ac_status); }; }; then
26615   eval "$as_ac_var=yes"
26616 else
26617   echo "$as_me: failed program was:" >&5
26618 sed 's/^/| /' conftest.$ac_ext >&5
26619
26620 eval "$as_ac_var=no"
26621 fi
26622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26623 fi
26624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26626 if test `eval echo '${'$as_ac_var'}'` = yes; then
26627   cat >>confdefs.h <<_ACEOF
26628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26629 _ACEOF
26630
26631 else
26632   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26633 fi
26634 done
26635
26636
26637   fp_headers='
26638 #     if HAVE_STDIO_EXT_H
26639 #      include <stdio_ext.h>
26640 #     endif
26641 '
26642   echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
26643 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6
26644 if test "${ac_cv_have_decl___fpending+set}" = set; then
26645   echo $ECHO_N "(cached) $ECHO_C" >&6
26646 else
26647   cat >conftest.$ac_ext <<_ACEOF
26648 #line $LINENO "configure"
26649 /* confdefs.h.  */
26650 _ACEOF
26651 cat confdefs.h >>conftest.$ac_ext
26652 cat >>conftest.$ac_ext <<_ACEOF
26653 /* end confdefs.h.  */
26654 $fp_headers
26655
26656 int
26657 main ()
26658 {
26659 #ifndef __fpending
26660   char *p = (char *) __fpending;
26661 #endif
26662
26663   ;
26664   return 0;
26665 }
26666 _ACEOF
26667 rm -f conftest.$ac_objext
26668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26669   (eval $ac_compile) 2>&5
26670   ac_status=$?
26671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26672   (exit $ac_status); } &&
26673          { ac_try='test -s conftest.$ac_objext'
26674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26675   (eval $ac_try) 2>&5
26676   ac_status=$?
26677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678   (exit $ac_status); }; }; then
26679   ac_cv_have_decl___fpending=yes
26680 else
26681   echo "$as_me: failed program was:" >&5
26682 sed 's/^/| /' conftest.$ac_ext >&5
26683
26684 ac_cv_have_decl___fpending=no
26685 fi
26686 rm -f conftest.$ac_objext conftest.$ac_ext
26687 fi
26688 echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
26689 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6
26690 if test $ac_cv_have_decl___fpending = yes; then
26691
26692 cat >>confdefs.h <<_ACEOF
26693 #define HAVE_DECL___FPENDING 1
26694 _ACEOF
26695
26696
26697 else
26698   cat >>confdefs.h <<_ACEOF
26699 #define HAVE_DECL___FPENDING 0
26700 _ACEOF
26701
26702
26703 fi
26704
26705
26706   if test $ac_cv_func___fpending = no; then
26707     echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
26708 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6
26709 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
26710   echo $ECHO_N "(cached) $ECHO_C" >&6
26711 else
26712
26713         for ac_expr in                                          \
26714                                                                 \
26715             '# glibc2'                                          \
26716             'fp->_IO_write_ptr - fp->_IO_write_base'            \
26717                                                                 \
26718             '# traditional Unix'                                \
26719             'fp->_ptr - fp->_base'                              \
26720                                                                 \
26721             '# BSD'                                             \
26722             'fp->_p - fp->_bf._base'                            \
26723                                                                 \
26724             '# SCO, Unixware'                                   \
26725             'fp->__ptr - fp->__base'                            \
26726                                                                 \
26727             '# old glibc?'                                      \
26728             'fp->__bufp - fp->__buffer'                         \
26729                                                                 \
26730             '# old glibc iostream?'                             \
26731             'fp->_pptr - fp->_pbase'                            \
26732                                                                 \
26733             '# VMS'                                             \
26734             '(*fp)->_ptr - (*fp)->_base'                        \
26735                                                                 \
26736             '# e.g., DGUX R4.11; the info is not available'     \
26737             1                                                   \
26738             ; do
26739
26740           # Skip each embedded comment.
26741           case "$ac_expr" in '#'*) continue;; esac
26742
26743           cat >conftest.$ac_ext <<_ACEOF
26744 #line $LINENO "configure"
26745 /* confdefs.h.  */
26746 _ACEOF
26747 cat confdefs.h >>conftest.$ac_ext
26748 cat >>conftest.$ac_ext <<_ACEOF
26749 /* end confdefs.h.  */
26750 #include <stdio.h>
26751
26752 int
26753 main ()
26754 {
26755 FILE *fp = stdin; (void) ($ac_expr);
26756   ;
26757   return 0;
26758 }
26759 _ACEOF
26760 rm -f conftest.$ac_objext
26761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26762   (eval $ac_compile) 2>&5
26763   ac_status=$?
26764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765   (exit $ac_status); } &&
26766          { ac_try='test -s conftest.$ac_objext'
26767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26768   (eval $ac_try) 2>&5
26769   ac_status=$?
26770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771   (exit $ac_status); }; }; then
26772   fp_done=yes
26773
26774 else
26775   echo "$as_me: failed program was:" >&5
26776 sed 's/^/| /' conftest.$ac_ext >&5
26777
26778 fi
26779 rm -f conftest.$ac_objext conftest.$ac_ext
26780           test "$fp_done" = yes && break
26781         done
26782
26783         ac_cv_sys_pending_output_n_bytes=$ac_expr
26784
26785
26786 fi
26787 echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
26788 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6
26789
26790 cat >>confdefs.h <<_ACEOF
26791 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
26792 _ACEOF
26793
26794   fi
26795
26796
26797   # autoconf-2.52 has a proper check for inttypes.h.
26798
26799
26800   if test $ac_cv_header_inttypes_h = yes; then
26801     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
26802 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
26803 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
26804   echo $ECHO_N "(cached) $ECHO_C" >&6
26805 else
26806
26807         cat >conftest.$ac_ext <<_ACEOF
26808 #line $LINENO "configure"
26809 /* confdefs.h.  */
26810 _ACEOF
26811 cat confdefs.h >>conftest.$ac_ext
26812 cat >>conftest.$ac_ext <<_ACEOF
26813 /* end confdefs.h.  */
26814 #include <inttypes.h>
26815 #ifdef PRId32
26816 char *p = PRId32;
26817 #endif
26818
26819 int
26820 main ()
26821 {
26822
26823   ;
26824   return 0;
26825 }
26826 _ACEOF
26827 rm -f conftest.$ac_objext
26828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26829   (eval $ac_compile) 2>&5
26830   ac_status=$?
26831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832   (exit $ac_status); } &&
26833          { ac_try='test -s conftest.$ac_objext'
26834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26835   (eval $ac_try) 2>&5
26836   ac_status=$?
26837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838   (exit $ac_status); }; }; then
26839   gt_cv_inttypes_pri_broken=no
26840 else
26841   echo "$as_me: failed program was:" >&5
26842 sed 's/^/| /' conftest.$ac_ext >&5
26843
26844 gt_cv_inttypes_pri_broken=yes
26845 fi
26846 rm -f conftest.$ac_objext conftest.$ac_ext
26847
26848 fi
26849 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
26850 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
26851   fi
26852   if test "$gt_cv_inttypes_pri_broken" = yes; then
26853
26854 cat >>confdefs.h <<_ACEOF
26855 #define PRI_MACROS_BROKEN 1
26856 _ACEOF
26857
26858   fi
26859
26860 echo "$as_me:$LINENO: checking for getgroups" >&5
26861 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
26862 if test "${ac_cv_func_getgroups+set}" = set; then
26863   echo $ECHO_N "(cached) $ECHO_C" >&6
26864 else
26865   cat >conftest.$ac_ext <<_ACEOF
26866 #line $LINENO "configure"
26867 /* confdefs.h.  */
26868 _ACEOF
26869 cat confdefs.h >>conftest.$ac_ext
26870 cat >>conftest.$ac_ext <<_ACEOF
26871 /* end confdefs.h.  */
26872 /* System header to define __stub macros and hopefully few prototypes,
26873     which can conflict with char getgroups (); below.
26874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26875     <limits.h> exists even on freestanding compilers.  */
26876 #ifdef __STDC__
26877 # include <limits.h>
26878 #else
26879 # include <assert.h>
26880 #endif
26881 /* Override any gcc2 internal prototype to avoid an error.  */
26882 #ifdef __cplusplus
26883 extern "C"
26884 {
26885 #endif
26886 /* We use char because int might match the return type of a gcc2
26887    builtin and then its argument prototype would still apply.  */
26888 char getgroups ();
26889 /* The GNU C library defines this for functions which it implements
26890     to always fail with ENOSYS.  Some functions are actually named
26891     something starting with __ and the normal name is an alias.  */
26892 #if defined (__stub_getgroups) || defined (__stub___getgroups)
26893 choke me
26894 #else
26895 char (*f) () = getgroups;
26896 #endif
26897 #ifdef __cplusplus
26898 }
26899 #endif
26900
26901 int
26902 main ()
26903 {
26904 return f != getgroups;
26905   ;
26906   return 0;
26907 }
26908 _ACEOF
26909 rm -f conftest.$ac_objext conftest$ac_exeext
26910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26911   (eval $ac_link) 2>&5
26912   ac_status=$?
26913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914   (exit $ac_status); } &&
26915          { ac_try='test -s conftest$ac_exeext'
26916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26917   (eval $ac_try) 2>&5
26918   ac_status=$?
26919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920   (exit $ac_status); }; }; then
26921   ac_cv_func_getgroups=yes
26922 else
26923   echo "$as_me: failed program was:" >&5
26924 sed 's/^/| /' conftest.$ac_ext >&5
26925
26926 ac_cv_func_getgroups=no
26927 fi
26928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26929 fi
26930 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26931 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
26932
26933
26934 # If we don't yet have getgroups, see if it's in -lbsd.
26935 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26936 ac_save_LIBS=$LIBS
26937 if test $ac_cv_func_getgroups = no; then
26938   echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26939 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
26940 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26941   echo $ECHO_N "(cached) $ECHO_C" >&6
26942 else
26943   ac_check_lib_save_LIBS=$LIBS
26944 LIBS="-lbsd  $LIBS"
26945 cat >conftest.$ac_ext <<_ACEOF
26946 #line $LINENO "configure"
26947 /* confdefs.h.  */
26948 _ACEOF
26949 cat confdefs.h >>conftest.$ac_ext
26950 cat >>conftest.$ac_ext <<_ACEOF
26951 /* end confdefs.h.  */
26952
26953 /* Override any gcc2 internal prototype to avoid an error.  */
26954 #ifdef __cplusplus
26955 extern "C"
26956 #endif
26957 /* We use char because int might match the return type of a gcc2
26958    builtin and then its argument prototype would still apply.  */
26959 char getgroups ();
26960 int
26961 main ()
26962 {
26963 getgroups ();
26964   ;
26965   return 0;
26966 }
26967 _ACEOF
26968 rm -f conftest.$ac_objext conftest$ac_exeext
26969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26970   (eval $ac_link) 2>&5
26971   ac_status=$?
26972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973   (exit $ac_status); } &&
26974          { ac_try='test -s conftest$ac_exeext'
26975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26976   (eval $ac_try) 2>&5
26977   ac_status=$?
26978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979   (exit $ac_status); }; }; then
26980   ac_cv_lib_bsd_getgroups=yes
26981 else
26982   echo "$as_me: failed program was:" >&5
26983 sed 's/^/| /' conftest.$ac_ext >&5
26984
26985 ac_cv_lib_bsd_getgroups=no
26986 fi
26987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26988 LIBS=$ac_check_lib_save_LIBS
26989 fi
26990 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26991 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
26992 if test $ac_cv_lib_bsd_getgroups = yes; then
26993   GETGROUPS_LIB=-lbsd
26994 fi
26995
26996 fi
26997
26998 # Run the program to test the functionality of the system-supplied
26999 # getgroups function only if there is such a function.
27000 if test $ac_cv_func_getgroups = yes; then
27001   echo "$as_me:$LINENO: checking for working getgroups" >&5
27002 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
27003 if test "${ac_cv_func_getgroups_works+set}" = set; then
27004   echo $ECHO_N "(cached) $ECHO_C" >&6
27005 else
27006   if test "$cross_compiling" = yes; then
27007   ac_cv_func_getgroups_works=no
27008 else
27009   cat >conftest.$ac_ext <<_ACEOF
27010 #line $LINENO "configure"
27011 /* confdefs.h.  */
27012 _ACEOF
27013 cat confdefs.h >>conftest.$ac_ext
27014 cat >>conftest.$ac_ext <<_ACEOF
27015 /* end confdefs.h.  */
27016
27017 int
27018 main ()
27019 {
27020 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
27021        exit (getgroups (0, 0) == -1 ? 1 : 0);
27022   ;
27023   return 0;
27024 }
27025 _ACEOF
27026 rm -f conftest$ac_exeext
27027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27028   (eval $ac_link) 2>&5
27029   ac_status=$?
27030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27033   (eval $ac_try) 2>&5
27034   ac_status=$?
27035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036   (exit $ac_status); }; }; then
27037   ac_cv_func_getgroups_works=yes
27038 else
27039   echo "$as_me: program exited with status $ac_status" >&5
27040 echo "$as_me: failed program was:" >&5
27041 sed 's/^/| /' conftest.$ac_ext >&5
27042
27043 ( exit $ac_status )
27044 ac_cv_func_getgroups_works=no
27045 fi
27046 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27047 fi
27048
27049 fi
27050 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
27051 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
27052   if test $ac_cv_func_getgroups_works = yes; then
27053
27054 cat >>confdefs.h <<\_ACEOF
27055 #define HAVE_GETGROUPS 1
27056 _ACEOF
27057
27058   fi
27059 fi
27060 LIBS=$ac_save_LIBS
27061
27062   if test $ac_cv_func_getgroups_works = no; then
27063     LIBOBJS="$LIBOBJS getgroups.$ac_objext"
27064
27065 cat >>confdefs.h <<\_ACEOF
27066 #define getgroups rpl_getgroups
27067 _ACEOF
27068
27069   fi
27070   test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
27071
27072 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
27073 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
27074 if test "${ac_cv_sys_largefile_source+set}" = set; then
27075   echo $ECHO_N "(cached) $ECHO_C" >&6
27076 else
27077   while :; do
27078   ac_cv_sys_largefile_source=no
27079   cat >conftest.$ac_ext <<_ACEOF
27080 #line $LINENO "configure"
27081 /* confdefs.h.  */
27082 _ACEOF
27083 cat confdefs.h >>conftest.$ac_ext
27084 cat >>conftest.$ac_ext <<_ACEOF
27085 /* end confdefs.h.  */
27086 #include <stdio.h>
27087 int
27088 main ()
27089 {
27090 return !fseeko;
27091   ;
27092   return 0;
27093 }
27094 _ACEOF
27095 rm -f conftest.$ac_objext
27096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27097   (eval $ac_compile) 2>&5
27098   ac_status=$?
27099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27100   (exit $ac_status); } &&
27101          { ac_try='test -s conftest.$ac_objext'
27102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27103   (eval $ac_try) 2>&5
27104   ac_status=$?
27105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106   (exit $ac_status); }; }; then
27107   break
27108 else
27109   echo "$as_me: failed program was:" >&5
27110 sed 's/^/| /' conftest.$ac_ext >&5
27111
27112 fi
27113 rm -f conftest.$ac_objext conftest.$ac_ext
27114   cat >conftest.$ac_ext <<_ACEOF
27115 #line $LINENO "configure"
27116 /* confdefs.h.  */
27117 _ACEOF
27118 cat confdefs.h >>conftest.$ac_ext
27119 cat >>conftest.$ac_ext <<_ACEOF
27120 /* end confdefs.h.  */
27121 #define _LARGEFILE_SOURCE 1
27122 #include <stdio.h>
27123 int
27124 main ()
27125 {
27126 return !fseeko;
27127   ;
27128   return 0;
27129 }
27130 _ACEOF
27131 rm -f conftest.$ac_objext
27132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27133   (eval $ac_compile) 2>&5
27134   ac_status=$?
27135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136   (exit $ac_status); } &&
27137          { ac_try='test -s conftest.$ac_objext'
27138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27139   (eval $ac_try) 2>&5
27140   ac_status=$?
27141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27142   (exit $ac_status); }; }; then
27143   ac_cv_sys_largefile_source=1; break
27144 else
27145   echo "$as_me: failed program was:" >&5
27146 sed 's/^/| /' conftest.$ac_ext >&5
27147
27148 fi
27149 rm -f conftest.$ac_objext conftest.$ac_ext
27150   break
27151 done
27152 fi
27153 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
27154 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
27155 if test "$ac_cv_sys_largefile_source" != no; then
27156
27157 cat >>confdefs.h <<_ACEOF
27158 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
27159 _ACEOF
27160
27161 fi
27162 rm -f conftest*
27163
27164 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
27165 # in glibc 2.1.3, but that breaks too many other things.
27166 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
27167 echo "$as_me:$LINENO: checking for fseeko" >&5
27168 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
27169 if test "${ac_cv_func_fseeko+set}" = set; then
27170   echo $ECHO_N "(cached) $ECHO_C" >&6
27171 else
27172   cat >conftest.$ac_ext <<_ACEOF
27173 #line $LINENO "configure"
27174 /* confdefs.h.  */
27175 _ACEOF
27176 cat confdefs.h >>conftest.$ac_ext
27177 cat >>conftest.$ac_ext <<_ACEOF
27178 /* end confdefs.h.  */
27179 #include <stdio.h>
27180 int
27181 main ()
27182 {
27183 return fseeko && fseeko (stdin, 0, 0);
27184   ;
27185   return 0;
27186 }
27187 _ACEOF
27188 rm -f conftest.$ac_objext conftest$ac_exeext
27189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27190   (eval $ac_link) 2>&5
27191   ac_status=$?
27192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193   (exit $ac_status); } &&
27194          { ac_try='test -s conftest$ac_exeext'
27195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27196   (eval $ac_try) 2>&5
27197   ac_status=$?
27198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199   (exit $ac_status); }; }; then
27200   ac_cv_func_fseeko=yes
27201 else
27202   echo "$as_me: failed program was:" >&5
27203 sed 's/^/| /' conftest.$ac_ext >&5
27204
27205 ac_cv_func_fseeko=no
27206 fi
27207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27208 fi
27209 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
27210 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
27211 if test $ac_cv_func_fseeko = yes; then
27212
27213 cat >>confdefs.h <<\_ACEOF
27214 #define HAVE_FSEEKO 1
27215 _ACEOF
27216
27217 fi
27218
27219
27220 for ac_func in vprintf
27221 do
27222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27223 echo "$as_me:$LINENO: checking for $ac_func" >&5
27224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27225 if eval "test \"\${$as_ac_var+set}\" = set"; then
27226   echo $ECHO_N "(cached) $ECHO_C" >&6
27227 else
27228   cat >conftest.$ac_ext <<_ACEOF
27229 #line $LINENO "configure"
27230 /* confdefs.h.  */
27231 _ACEOF
27232 cat confdefs.h >>conftest.$ac_ext
27233 cat >>conftest.$ac_ext <<_ACEOF
27234 /* end confdefs.h.  */
27235 /* System header to define __stub macros and hopefully few prototypes,
27236     which can conflict with char $ac_func (); below.
27237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27238     <limits.h> exists even on freestanding compilers.  */
27239 #ifdef __STDC__
27240 # include <limits.h>
27241 #else
27242 # include <assert.h>
27243 #endif
27244 /* Override any gcc2 internal prototype to avoid an error.  */
27245 #ifdef __cplusplus
27246 extern "C"
27247 {
27248 #endif
27249 /* We use char because int might match the return type of a gcc2
27250    builtin and then its argument prototype would still apply.  */
27251 char $ac_func ();
27252 /* The GNU C library defines this for functions which it implements
27253     to always fail with ENOSYS.  Some functions are actually named
27254     something starting with __ and the normal name is an alias.  */
27255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27256 choke me
27257 #else
27258 char (*f) () = $ac_func;
27259 #endif
27260 #ifdef __cplusplus
27261 }
27262 #endif
27263
27264 int
27265 main ()
27266 {
27267 return f != $ac_func;
27268   ;
27269   return 0;
27270 }
27271 _ACEOF
27272 rm -f conftest.$ac_objext conftest$ac_exeext
27273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27274   (eval $ac_link) 2>&5
27275   ac_status=$?
27276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277   (exit $ac_status); } &&
27278          { ac_try='test -s conftest$ac_exeext'
27279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27280   (eval $ac_try) 2>&5
27281   ac_status=$?
27282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283   (exit $ac_status); }; }; then
27284   eval "$as_ac_var=yes"
27285 else
27286   echo "$as_me: failed program was:" >&5
27287 sed 's/^/| /' conftest.$ac_ext >&5
27288
27289 eval "$as_ac_var=no"
27290 fi
27291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27292 fi
27293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27295 if test `eval echo '${'$as_ac_var'}'` = yes; then
27296   cat >>confdefs.h <<_ACEOF
27297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27298 _ACEOF
27299
27300 echo "$as_me:$LINENO: checking for _doprnt" >&5
27301 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
27302 if test "${ac_cv_func__doprnt+set}" = set; then
27303   echo $ECHO_N "(cached) $ECHO_C" >&6
27304 else
27305   cat >conftest.$ac_ext <<_ACEOF
27306 #line $LINENO "configure"
27307 /* confdefs.h.  */
27308 _ACEOF
27309 cat confdefs.h >>conftest.$ac_ext
27310 cat >>conftest.$ac_ext <<_ACEOF
27311 /* end confdefs.h.  */
27312 /* System header to define __stub macros and hopefully few prototypes,
27313     which can conflict with char _doprnt (); below.
27314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27315     <limits.h> exists even on freestanding compilers.  */
27316 #ifdef __STDC__
27317 # include <limits.h>
27318 #else
27319 # include <assert.h>
27320 #endif
27321 /* Override any gcc2 internal prototype to avoid an error.  */
27322 #ifdef __cplusplus
27323 extern "C"
27324 {
27325 #endif
27326 /* We use char because int might match the return type of a gcc2
27327    builtin and then its argument prototype would still apply.  */
27328 char _doprnt ();
27329 /* The GNU C library defines this for functions which it implements
27330     to always fail with ENOSYS.  Some functions are actually named
27331     something starting with __ and the normal name is an alias.  */
27332 #if defined (__stub__doprnt) || defined (__stub____doprnt)
27333 choke me
27334 #else
27335 char (*f) () = _doprnt;
27336 #endif
27337 #ifdef __cplusplus
27338 }
27339 #endif
27340
27341 int
27342 main ()
27343 {
27344 return f != _doprnt;
27345   ;
27346   return 0;
27347 }
27348 _ACEOF
27349 rm -f conftest.$ac_objext conftest$ac_exeext
27350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27351   (eval $ac_link) 2>&5
27352   ac_status=$?
27353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354   (exit $ac_status); } &&
27355          { ac_try='test -s conftest$ac_exeext'
27356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27357   (eval $ac_try) 2>&5
27358   ac_status=$?
27359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27360   (exit $ac_status); }; }; then
27361   ac_cv_func__doprnt=yes
27362 else
27363   echo "$as_me: failed program was:" >&5
27364 sed 's/^/| /' conftest.$ac_ext >&5
27365
27366 ac_cv_func__doprnt=no
27367 fi
27368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27369 fi
27370 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27371 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
27372 if test $ac_cv_func__doprnt = yes; then
27373
27374 cat >>confdefs.h <<\_ACEOF
27375 #define HAVE_DOPRNT 1
27376 _ACEOF
27377
27378 fi
27379
27380 fi
27381 done
27382
27383
27384
27385   echo "$as_me:$LINENO: checking for /proc/uptime" >&5
27386 echo $ECHO_N "checking for /proc/uptime... $ECHO_C" >&6
27387 if test "${jm_cv_have_proc_uptime+set}" = set; then
27388   echo $ECHO_N "(cached) $ECHO_C" >&6
27389 else
27390   jm_cv_have_proc_uptime=no
27391     test -f /proc/uptime \
27392       && test "$cross_compiling" = no \
27393       && cat < /proc/uptime >/dev/null 2>/dev/null \
27394       && jm_cv_have_proc_uptime=yes
27395 fi
27396 echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
27397 echo "${ECHO_T}$jm_cv_have_proc_uptime" >&6
27398   if test $jm_cv_have_proc_uptime = yes; then
27399
27400 cat >>confdefs.h <<\_ACEOF
27401 #define HAVE_PROC_UPTIME 1
27402 _ACEOF
27403
27404   fi
27405
27406
27407
27408 for ac_func in ftruncate
27409 do
27410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27411 echo "$as_me:$LINENO: checking for $ac_func" >&5
27412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27413 if eval "test \"\${$as_ac_var+set}\" = set"; then
27414   echo $ECHO_N "(cached) $ECHO_C" >&6
27415 else
27416   cat >conftest.$ac_ext <<_ACEOF
27417 #line $LINENO "configure"
27418 /* confdefs.h.  */
27419 _ACEOF
27420 cat confdefs.h >>conftest.$ac_ext
27421 cat >>conftest.$ac_ext <<_ACEOF
27422 /* end confdefs.h.  */
27423 /* System header to define __stub macros and hopefully few prototypes,
27424     which can conflict with char $ac_func (); below.
27425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27426     <limits.h> exists even on freestanding compilers.  */
27427 #ifdef __STDC__
27428 # include <limits.h>
27429 #else
27430 # include <assert.h>
27431 #endif
27432 /* Override any gcc2 internal prototype to avoid an error.  */
27433 #ifdef __cplusplus
27434 extern "C"
27435 {
27436 #endif
27437 /* We use char because int might match the return type of a gcc2
27438    builtin and then its argument prototype would still apply.  */
27439 char $ac_func ();
27440 /* The GNU C library defines this for functions which it implements
27441     to always fail with ENOSYS.  Some functions are actually named
27442     something starting with __ and the normal name is an alias.  */
27443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27444 choke me
27445 #else
27446 char (*f) () = $ac_func;
27447 #endif
27448 #ifdef __cplusplus
27449 }
27450 #endif
27451
27452 int
27453 main ()
27454 {
27455 return f != $ac_func;
27456   ;
27457   return 0;
27458 }
27459 _ACEOF
27460 rm -f conftest.$ac_objext conftest$ac_exeext
27461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27462   (eval $ac_link) 2>&5
27463   ac_status=$?
27464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465   (exit $ac_status); } &&
27466          { ac_try='test -s conftest$ac_exeext'
27467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27468   (eval $ac_try) 2>&5
27469   ac_status=$?
27470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471   (exit $ac_status); }; }; then
27472   eval "$as_ac_var=yes"
27473 else
27474   echo "$as_me: failed program was:" >&5
27475 sed 's/^/| /' conftest.$ac_ext >&5
27476
27477 eval "$as_ac_var=no"
27478 fi
27479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27480 fi
27481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27483 if test `eval echo '${'$as_ac_var'}'` = yes; then
27484   cat >>confdefs.h <<_ACEOF
27485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27486 _ACEOF
27487
27488 else
27489   ftruncate_missing=yes
27490 fi
27491 done
27492
27493
27494   if test "$ftruncate_missing" = yes; then
27495
27496 for ac_header in unistd.h
27497 do
27498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27500   echo "$as_me:$LINENO: checking for $ac_header" >&5
27501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27503   echo $ECHO_N "(cached) $ECHO_C" >&6
27504 fi
27505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27507 else
27508   # Is the header compilable?
27509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27511 cat >conftest.$ac_ext <<_ACEOF
27512 #line $LINENO "configure"
27513 /* confdefs.h.  */
27514 _ACEOF
27515 cat confdefs.h >>conftest.$ac_ext
27516 cat >>conftest.$ac_ext <<_ACEOF
27517 /* end confdefs.h.  */
27518 $ac_includes_default
27519 #include <$ac_header>
27520 _ACEOF
27521 rm -f conftest.$ac_objext
27522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27523   (eval $ac_compile) 2>&5
27524   ac_status=$?
27525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526   (exit $ac_status); } &&
27527          { ac_try='test -s conftest.$ac_objext'
27528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27529   (eval $ac_try) 2>&5
27530   ac_status=$?
27531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27532   (exit $ac_status); }; }; then
27533   ac_header_compiler=yes
27534 else
27535   echo "$as_me: failed program was:" >&5
27536 sed 's/^/| /' conftest.$ac_ext >&5
27537
27538 ac_header_compiler=no
27539 fi
27540 rm -f conftest.$ac_objext conftest.$ac_ext
27541 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27542 echo "${ECHO_T}$ac_header_compiler" >&6
27543
27544 # Is the header present?
27545 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27547 cat >conftest.$ac_ext <<_ACEOF
27548 #line $LINENO "configure"
27549 /* confdefs.h.  */
27550 _ACEOF
27551 cat confdefs.h >>conftest.$ac_ext
27552 cat >>conftest.$ac_ext <<_ACEOF
27553 /* end confdefs.h.  */
27554 #include <$ac_header>
27555 _ACEOF
27556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27557   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27558   ac_status=$?
27559   grep -v '^ *+' conftest.er1 >conftest.err
27560   rm -f conftest.er1
27561   cat conftest.err >&5
27562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27563   (exit $ac_status); } >/dev/null; then
27564   if test -s conftest.err; then
27565     ac_cpp_err=$ac_c_preproc_warn_flag
27566   else
27567     ac_cpp_err=
27568   fi
27569 else
27570   ac_cpp_err=yes
27571 fi
27572 if test -z "$ac_cpp_err"; then
27573   ac_header_preproc=yes
27574 else
27575   echo "$as_me: failed program was:" >&5
27576 sed 's/^/| /' conftest.$ac_ext >&5
27577
27578   ac_header_preproc=no
27579 fi
27580 rm -f conftest.err conftest.$ac_ext
27581 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27582 echo "${ECHO_T}$ac_header_preproc" >&6
27583
27584 # So?  What about this header?
27585 case $ac_header_compiler:$ac_header_preproc in
27586   yes:no )
27587     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27589     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27591     (
27592       cat <<\_ASBOX
27593 ## ------------------------------------ ##
27594 ## Report this to bug-autoconf@gnu.org. ##
27595 ## ------------------------------------ ##
27596 _ASBOX
27597     ) |
27598       sed "s/^/$as_me: WARNING:     /" >&2
27599     ;;
27600   no:yes )
27601     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27603     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27605     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27607     (
27608       cat <<\_ASBOX
27609 ## ------------------------------------ ##
27610 ## Report this to bug-autoconf@gnu.org. ##
27611 ## ------------------------------------ ##
27612 _ASBOX
27613     ) |
27614       sed "s/^/$as_me: WARNING:     /" >&2
27615     ;;
27616 esac
27617 echo "$as_me:$LINENO: checking for $ac_header" >&5
27618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27620   echo $ECHO_N "(cached) $ECHO_C" >&6
27621 else
27622   eval "$as_ac_Header=$ac_header_preproc"
27623 fi
27624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27626
27627 fi
27628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27629   cat >>confdefs.h <<_ACEOF
27630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27631 _ACEOF
27632
27633 fi
27634
27635 done
27636
27637
27638 for ac_func in chsize
27639 do
27640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27641 echo "$as_me:$LINENO: checking for $ac_func" >&5
27642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27643 if eval "test \"\${$as_ac_var+set}\" = set"; then
27644   echo $ECHO_N "(cached) $ECHO_C" >&6
27645 else
27646   cat >conftest.$ac_ext <<_ACEOF
27647 #line $LINENO "configure"
27648 /* confdefs.h.  */
27649 _ACEOF
27650 cat confdefs.h >>conftest.$ac_ext
27651 cat >>conftest.$ac_ext <<_ACEOF
27652 /* end confdefs.h.  */
27653 /* System header to define __stub macros and hopefully few prototypes,
27654     which can conflict with char $ac_func (); below.
27655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27656     <limits.h> exists even on freestanding compilers.  */
27657 #ifdef __STDC__
27658 # include <limits.h>
27659 #else
27660 # include <assert.h>
27661 #endif
27662 /* Override any gcc2 internal prototype to avoid an error.  */
27663 #ifdef __cplusplus
27664 extern "C"
27665 {
27666 #endif
27667 /* We use char because int might match the return type of a gcc2
27668    builtin and then its argument prototype would still apply.  */
27669 char $ac_func ();
27670 /* The GNU C library defines this for functions which it implements
27671     to always fail with ENOSYS.  Some functions are actually named
27672     something starting with __ and the normal name is an alias.  */
27673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27674 choke me
27675 #else
27676 char (*f) () = $ac_func;
27677 #endif
27678 #ifdef __cplusplus
27679 }
27680 #endif
27681
27682 int
27683 main ()
27684 {
27685 return f != $ac_func;
27686   ;
27687   return 0;
27688 }
27689 _ACEOF
27690 rm -f conftest.$ac_objext conftest$ac_exeext
27691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27692   (eval $ac_link) 2>&5
27693   ac_status=$?
27694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695   (exit $ac_status); } &&
27696          { ac_try='test -s conftest$ac_exeext'
27697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27698   (eval $ac_try) 2>&5
27699   ac_status=$?
27700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701   (exit $ac_status); }; }; then
27702   eval "$as_ac_var=yes"
27703 else
27704   echo "$as_me: failed program was:" >&5
27705 sed 's/^/| /' conftest.$ac_ext >&5
27706
27707 eval "$as_ac_var=no"
27708 fi
27709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27710 fi
27711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27713 if test `eval echo '${'$as_ac_var'}'` = yes; then
27714   cat >>confdefs.h <<_ACEOF
27715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27716 _ACEOF
27717
27718 fi
27719 done
27720
27721     LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
27722   fi
27723
27724
27725  echo "$as_me:$LINENO: checking whether rename is broken" >&5
27726 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6
27727 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
27728   echo $ECHO_N "(cached) $ECHO_C" >&6
27729 else
27730
27731     rm -rf conftest.d1 conftest.d2
27732     mkdir conftest.d1 ||
27733       { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
27734 echo "$as_me: error: cannot create temporary directory" >&2;}
27735    { (exit 1); exit 1; }; }
27736     if test "$cross_compiling" = yes; then
27737         vb_cv_func_rename_trailing_slash_bug=yes
27738 else
27739   cat >conftest.$ac_ext <<_ACEOF
27740 #line $LINENO "configure"
27741 /* confdefs.h.  */
27742 _ACEOF
27743 cat confdefs.h >>conftest.$ac_ext
27744 cat >>conftest.$ac_ext <<_ACEOF
27745 /* end confdefs.h.  */
27746
27747 #       include <stdio.h>
27748         int
27749         main ()
27750         {
27751           exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
27752         }
27753
27754 _ACEOF
27755 rm -f conftest$ac_exeext
27756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27757   (eval $ac_link) 2>&5
27758   ac_status=$?
27759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27762   (eval $ac_try) 2>&5
27763   ac_status=$?
27764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765   (exit $ac_status); }; }; then
27766   vb_cv_func_rename_trailing_slash_bug=no
27767 else
27768   echo "$as_me: program exited with status $ac_status" >&5
27769 echo "$as_me: failed program was:" >&5
27770 sed 's/^/| /' conftest.$ac_ext >&5
27771
27772 ( exit $ac_status )
27773 vb_cv_func_rename_trailing_slash_bug=yes
27774 fi
27775 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27776 fi
27777
27778       rm -rf conftest.d1 conftest.d2
27779
27780 fi
27781 echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
27782 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6
27783   if test $vb_cv_func_rename_trailing_slash_bug = yes; then
27784     LIBOBJS="$LIBOBJS rename.$ac_objext"
27785
27786 cat >>confdefs.h <<\_ACEOF
27787 #define RENAME_TRAILING_SLASH_BUG 1
27788 _ACEOF
27789
27790   fi
27791
27792
27793 for ac_func in mkstemp
27794 do
27795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27796 echo "$as_me:$LINENO: checking for $ac_func" >&5
27797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27798 if eval "test \"\${$as_ac_var+set}\" = set"; then
27799   echo $ECHO_N "(cached) $ECHO_C" >&6
27800 else
27801   cat >conftest.$ac_ext <<_ACEOF
27802 #line $LINENO "configure"
27803 /* confdefs.h.  */
27804 _ACEOF
27805 cat confdefs.h >>conftest.$ac_ext
27806 cat >>conftest.$ac_ext <<_ACEOF
27807 /* end confdefs.h.  */
27808 /* System header to define __stub macros and hopefully few prototypes,
27809     which can conflict with char $ac_func (); below.
27810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27811     <limits.h> exists even on freestanding compilers.  */
27812 #ifdef __STDC__
27813 # include <limits.h>
27814 #else
27815 # include <assert.h>
27816 #endif
27817 /* Override any gcc2 internal prototype to avoid an error.  */
27818 #ifdef __cplusplus
27819 extern "C"
27820 {
27821 #endif
27822 /* We use char because int might match the return type of a gcc2
27823    builtin and then its argument prototype would still apply.  */
27824 char $ac_func ();
27825 /* The GNU C library defines this for functions which it implements
27826     to always fail with ENOSYS.  Some functions are actually named
27827     something starting with __ and the normal name is an alias.  */
27828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27829 choke me
27830 #else
27831 char (*f) () = $ac_func;
27832 #endif
27833 #ifdef __cplusplus
27834 }
27835 #endif
27836
27837 int
27838 main ()
27839 {
27840 return f != $ac_func;
27841   ;
27842   return 0;
27843 }
27844 _ACEOF
27845 rm -f conftest.$ac_objext conftest$ac_exeext
27846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27847   (eval $ac_link) 2>&5
27848   ac_status=$?
27849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850   (exit $ac_status); } &&
27851          { ac_try='test -s conftest$ac_exeext'
27852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27853   (eval $ac_try) 2>&5
27854   ac_status=$?
27855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27856   (exit $ac_status); }; }; then
27857   eval "$as_ac_var=yes"
27858 else
27859   echo "$as_me: failed program was:" >&5
27860 sed 's/^/| /' conftest.$ac_ext >&5
27861
27862 eval "$as_ac_var=no"
27863 fi
27864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27865 fi
27866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27868 if test `eval echo '${'$as_ac_var'}'` = yes; then
27869   cat >>confdefs.h <<_ACEOF
27870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27871 _ACEOF
27872
27873 else
27874   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27875 fi
27876 done
27877
27878
27879   if test $ac_cv_func_mkstemp = no; then
27880     utils_cv_func_mkstemp_limitations=yes
27881   else
27882     echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
27883 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
27884 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
27885   echo $ECHO_N "(cached) $ECHO_C" >&6
27886 else
27887
27888         if test "$cross_compiling" = yes; then
27889   utils_cv_func_mkstemp_limitations=yes
27890
27891 else
27892   cat >conftest.$ac_ext <<_ACEOF
27893 #line $LINENO "configure"
27894 /* confdefs.h.  */
27895 _ACEOF
27896 cat confdefs.h >>conftest.$ac_ext
27897 cat >>conftest.$ac_ext <<_ACEOF
27898 /* end confdefs.h.  */
27899
27900 #         include <stdlib.h>
27901           int main ()
27902           {
27903             int i;
27904             for (i = 0; i < 30; i++)
27905               {
27906                 char template[] = "conftestXXXXXX";
27907                 int fd = mkstemp (template);
27908                 if (fd == -1)
27909                   exit (1);
27910                 close (fd);
27911               }
27912             exit (0);
27913           }
27914
27915 _ACEOF
27916 rm -f conftest$ac_exeext
27917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27918   (eval $ac_link) 2>&5
27919   ac_status=$?
27920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27923   (eval $ac_try) 2>&5
27924   ac_status=$?
27925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27926   (exit $ac_status); }; }; then
27927   utils_cv_func_mkstemp_limitations=no
27928 else
27929   echo "$as_me: program exited with status $ac_status" >&5
27930 echo "$as_me: failed program was:" >&5
27931 sed 's/^/| /' conftest.$ac_ext >&5
27932
27933 ( exit $ac_status )
27934 utils_cv_func_mkstemp_limitations=yes
27935 fi
27936 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27937 fi
27938
27939
27940 fi
27941 echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
27942 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6
27943   fi
27944
27945   if test $utils_cv_func_mkstemp_limitations = yes; then
27946     LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
27947     LIBOBJS="$LIBOBJS tempname.$ac_objext"
27948
27949 cat >>confdefs.h <<\_ACEOF
27950 #define mkstemp rpl_mkstemp
27951 _ACEOF
27952
27953   fi
27954
27955 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
27956 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
27957 if test "${ac_cv_func_closedir_void+set}" = set; then
27958   echo $ECHO_N "(cached) $ECHO_C" >&6
27959 else
27960   if test "$cross_compiling" = yes; then
27961   ac_cv_func_closedir_void=yes
27962 else
27963   cat >conftest.$ac_ext <<_ACEOF
27964 #line $LINENO "configure"
27965 /* confdefs.h.  */
27966 _ACEOF
27967 cat confdefs.h >>conftest.$ac_ext
27968 cat >>conftest.$ac_ext <<_ACEOF
27969 /* end confdefs.h.  */
27970 $ac_includes_default
27971 #include <$ac_header_dirent>
27972 #ifndef __cplusplus
27973 int closedir ();
27974 #endif
27975
27976 int
27977 main ()
27978 {
27979 exit (closedir (opendir (".")) != 0);
27980   ;
27981   return 0;
27982 }
27983 _ACEOF
27984 rm -f conftest$ac_exeext
27985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27986   (eval $ac_link) 2>&5
27987   ac_status=$?
27988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27991   (eval $ac_try) 2>&5
27992   ac_status=$?
27993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994   (exit $ac_status); }; }; then
27995   ac_cv_func_closedir_void=no
27996 else
27997   echo "$as_me: program exited with status $ac_status" >&5
27998 echo "$as_me: failed program was:" >&5
27999 sed 's/^/| /' conftest.$ac_ext >&5
28000
28001 ( exit $ac_status )
28002 ac_cv_func_closedir_void=yes
28003 fi
28004 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28005 fi
28006 fi
28007 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28008 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28009 if test $ac_cv_func_closedir_void = yes; then
28010
28011 cat >>confdefs.h <<\_ACEOF
28012 #define CLOSEDIR_VOID 1
28013 _ACEOF
28014
28015 fi
28016
28017 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
28018 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
28019 if test "${ac_cv_func_utime_null+set}" = set; then
28020   echo $ECHO_N "(cached) $ECHO_C" >&6
28021 else
28022   rm -f conftest.data; >conftest.data
28023 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
28024 if test "$cross_compiling" = yes; then
28025   ac_cv_func_utime_null=no
28026 else
28027   cat >conftest.$ac_ext <<_ACEOF
28028 #line $LINENO "configure"
28029 /* confdefs.h.  */
28030 _ACEOF
28031 cat confdefs.h >>conftest.$ac_ext
28032 cat >>conftest.$ac_ext <<_ACEOF
28033 /* end confdefs.h.  */
28034 $ac_includes_default
28035 int
28036 main ()
28037 {
28038 struct stat s, t;
28039   exit (!(stat ("conftest.data", &s) == 0
28040           && utime ("conftest.data", (long *)0) == 0
28041           && stat ("conftest.data", &t) == 0
28042           && t.st_mtime >= s.st_mtime
28043           && t.st_mtime - s.st_mtime < 120));
28044   ;
28045   return 0;
28046 }
28047 _ACEOF
28048 rm -f conftest$ac_exeext
28049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28050   (eval $ac_link) 2>&5
28051   ac_status=$?
28052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28055   (eval $ac_try) 2>&5
28056   ac_status=$?
28057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058   (exit $ac_status); }; }; then
28059   ac_cv_func_utime_null=yes
28060 else
28061   echo "$as_me: program exited with status $ac_status" >&5
28062 echo "$as_me: failed program was:" >&5
28063 sed 's/^/| /' conftest.$ac_ext >&5
28064
28065 ( exit $ac_status )
28066 ac_cv_func_utime_null=no
28067 fi
28068 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28069 fi
28070 rm -f core core.* *.core
28071 fi
28072 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
28073 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
28074 if test $ac_cv_func_utime_null = yes; then
28075
28076 cat >>confdefs.h <<\_ACEOF
28077 #define HAVE_UTIME_NULL 1
28078 _ACEOF
28079
28080 fi
28081 rm -f conftest.data
28082
28083
28084
28085 for ac_header in utime.h
28086 do
28087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28089   echo "$as_me:$LINENO: checking for $ac_header" >&5
28090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28092   echo $ECHO_N "(cached) $ECHO_C" >&6
28093 fi
28094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28096 else
28097   # Is the header compilable?
28098 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28100 cat >conftest.$ac_ext <<_ACEOF
28101 #line $LINENO "configure"
28102 /* confdefs.h.  */
28103 _ACEOF
28104 cat confdefs.h >>conftest.$ac_ext
28105 cat >>conftest.$ac_ext <<_ACEOF
28106 /* end confdefs.h.  */
28107 $ac_includes_default
28108 #include <$ac_header>
28109 _ACEOF
28110 rm -f conftest.$ac_objext
28111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28112   (eval $ac_compile) 2>&5
28113   ac_status=$?
28114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115   (exit $ac_status); } &&
28116          { ac_try='test -s conftest.$ac_objext'
28117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28118   (eval $ac_try) 2>&5
28119   ac_status=$?
28120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121   (exit $ac_status); }; }; then
28122   ac_header_compiler=yes
28123 else
28124   echo "$as_me: failed program was:" >&5
28125 sed 's/^/| /' conftest.$ac_ext >&5
28126
28127 ac_header_compiler=no
28128 fi
28129 rm -f conftest.$ac_objext conftest.$ac_ext
28130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28131 echo "${ECHO_T}$ac_header_compiler" >&6
28132
28133 # Is the header present?
28134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28136 cat >conftest.$ac_ext <<_ACEOF
28137 #line $LINENO "configure"
28138 /* confdefs.h.  */
28139 _ACEOF
28140 cat confdefs.h >>conftest.$ac_ext
28141 cat >>conftest.$ac_ext <<_ACEOF
28142 /* end confdefs.h.  */
28143 #include <$ac_header>
28144 _ACEOF
28145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28147   ac_status=$?
28148   grep -v '^ *+' conftest.er1 >conftest.err
28149   rm -f conftest.er1
28150   cat conftest.err >&5
28151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152   (exit $ac_status); } >/dev/null; then
28153   if test -s conftest.err; then
28154     ac_cpp_err=$ac_c_preproc_warn_flag
28155   else
28156     ac_cpp_err=
28157   fi
28158 else
28159   ac_cpp_err=yes
28160 fi
28161 if test -z "$ac_cpp_err"; then
28162   ac_header_preproc=yes
28163 else
28164   echo "$as_me: failed program was:" >&5
28165 sed 's/^/| /' conftest.$ac_ext >&5
28166
28167   ac_header_preproc=no
28168 fi
28169 rm -f conftest.err conftest.$ac_ext
28170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28171 echo "${ECHO_T}$ac_header_preproc" >&6
28172
28173 # So?  What about this header?
28174 case $ac_header_compiler:$ac_header_preproc in
28175   yes:no )
28176     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28178     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28180     (
28181       cat <<\_ASBOX
28182 ## ------------------------------------ ##
28183 ## Report this to bug-autoconf@gnu.org. ##
28184 ## ------------------------------------ ##
28185 _ASBOX
28186     ) |
28187       sed "s/^/$as_me: WARNING:     /" >&2
28188     ;;
28189   no:yes )
28190     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28192     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28194     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28196     (
28197       cat <<\_ASBOX
28198 ## ------------------------------------ ##
28199 ## Report this to bug-autoconf@gnu.org. ##
28200 ## ------------------------------------ ##
28201 _ASBOX
28202     ) |
28203       sed "s/^/$as_me: WARNING:     /" >&2
28204     ;;
28205 esac
28206 echo "$as_me:$LINENO: checking for $ac_header" >&5
28207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28209   echo $ECHO_N "(cached) $ECHO_C" >&6
28210 else
28211   eval "$as_ac_Header=$ac_header_preproc"
28212 fi
28213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28215
28216 fi
28217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28218   cat >>confdefs.h <<_ACEOF
28219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28220 _ACEOF
28221
28222 fi
28223
28224 done
28225
28226
28227
28228
28229   if test $ac_cv_func_utime_null = no; then
28230     echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
28231 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6
28232 if test "${ac_cv_func_utimes_null+set}" = set; then
28233   echo $ECHO_N "(cached) $ECHO_C" >&6
28234 else
28235   rm -f conftest.data; > conftest.data
28236 if test "$cross_compiling" = yes; then
28237   ac_cv_func_utimes_null=no
28238 else
28239   cat >conftest.$ac_ext <<_ACEOF
28240 #line $LINENO "configure"
28241 /* confdefs.h.  */
28242 _ACEOF
28243 cat confdefs.h >>conftest.$ac_ext
28244 cat >>conftest.$ac_ext <<_ACEOF
28245 /* end confdefs.h.  */
28246
28247 /* In case stat has been defined to rpl_stat, undef it here.  */
28248 #undef stat
28249 #include <sys/types.h>
28250 #include <sys/stat.h>
28251 main() {
28252 struct stat s, t;
28253 exit(!(stat ("conftest.data", &s) == 0
28254        && utimes("conftest.data", (long *)0) == 0
28255        && stat("conftest.data", &t) == 0
28256        && t.st_mtime >= s.st_mtime
28257        && t.st_mtime - s.st_mtime < 120));
28258 }
28259 _ACEOF
28260 rm -f conftest$ac_exeext
28261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28262   (eval $ac_link) 2>&5
28263   ac_status=$?
28264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28267   (eval $ac_try) 2>&5
28268   ac_status=$?
28269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270   (exit $ac_status); }; }; then
28271   ac_cv_func_utimes_null=yes
28272 else
28273   echo "$as_me: program exited with status $ac_status" >&5
28274 echo "$as_me: failed program was:" >&5
28275 sed 's/^/| /' conftest.$ac_ext >&5
28276
28277 ( exit $ac_status )
28278 ac_cv_func_utimes_null=no
28279 fi
28280 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28281 fi
28282 rm -f core core.* *.core
28283 fi
28284 echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
28285 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6
28286
28287     if test $ac_cv_func_utimes_null = yes; then
28288
28289 cat >>confdefs.h <<\_ACEOF
28290 #define HAVE_UTIMES_NULL 1
28291 _ACEOF
28292
28293     fi
28294
28295
28296
28297 for ac_func in utime
28298 do
28299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28300 echo "$as_me:$LINENO: checking for $ac_func" >&5
28301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28302 if eval "test \"\${$as_ac_var+set}\" = set"; then
28303   echo $ECHO_N "(cached) $ECHO_C" >&6
28304 else
28305   cat >conftest.$ac_ext <<_ACEOF
28306 #line $LINENO "configure"
28307 /* confdefs.h.  */
28308 _ACEOF
28309 cat confdefs.h >>conftest.$ac_ext
28310 cat >>conftest.$ac_ext <<_ACEOF
28311 /* end confdefs.h.  */
28312 /* System header to define __stub macros and hopefully few prototypes,
28313     which can conflict with char $ac_func (); below.
28314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28315     <limits.h> exists even on freestanding compilers.  */
28316 #ifdef __STDC__
28317 # include <limits.h>
28318 #else
28319 # include <assert.h>
28320 #endif
28321 /* Override any gcc2 internal prototype to avoid an error.  */
28322 #ifdef __cplusplus
28323 extern "C"
28324 {
28325 #endif
28326 /* We use char because int might match the return type of a gcc2
28327    builtin and then its argument prototype would still apply.  */
28328 char $ac_func ();
28329 /* The GNU C library defines this for functions which it implements
28330     to always fail with ENOSYS.  Some functions are actually named
28331     something starting with __ and the normal name is an alias.  */
28332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28333 choke me
28334 #else
28335 char (*f) () = $ac_func;
28336 #endif
28337 #ifdef __cplusplus
28338 }
28339 #endif
28340
28341 int
28342 main ()
28343 {
28344 return f != $ac_func;
28345   ;
28346   return 0;
28347 }
28348 _ACEOF
28349 rm -f conftest.$ac_objext conftest$ac_exeext
28350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28351   (eval $ac_link) 2>&5
28352   ac_status=$?
28353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28354   (exit $ac_status); } &&
28355          { ac_try='test -s conftest$ac_exeext'
28356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28357   (eval $ac_try) 2>&5
28358   ac_status=$?
28359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360   (exit $ac_status); }; }; then
28361   eval "$as_ac_var=yes"
28362 else
28363   echo "$as_me: failed program was:" >&5
28364 sed 's/^/| /' conftest.$ac_ext >&5
28365
28366 eval "$as_ac_var=no"
28367 fi
28368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28369 fi
28370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28372 if test `eval echo '${'$as_ac_var'}'` = yes; then
28373   cat >>confdefs.h <<_ACEOF
28374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28375 _ACEOF
28376
28377 else
28378   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
28379 fi
28380 done
28381
28382
28383   fi
28384
28385
28386   echo "$as_me:$LINENO: checking determine how many files may be open simultaneously" >&5
28387 echo $ECHO_N "checking determine how many files may be open simultaneously... $ECHO_C" >&6
28388 if test "${utils_cv_sys_open_max+set}" = set; then
28389   echo $ECHO_N "(cached) $ECHO_C" >&6
28390 else
28391
28392   if test "$cross_compiling" = yes; then
28393   utils_cv_sys_open_max='cross compiling run-test in open-max.m4'
28394 else
28395   cat >conftest.$ac_ext <<_ACEOF
28396 #line $LINENO "configure"
28397 /* confdefs.h.  */
28398 _ACEOF
28399 cat confdefs.h >>conftest.$ac_ext
28400 cat >>conftest.$ac_ext <<_ACEOF
28401 /* end confdefs.h.  */
28402
28403 #include <stdio.h>
28404 #include <stdlib.h>
28405 #include <unistd.h>
28406     int
28407     main ()
28408     {
28409       FILE *result = fopen ("conftest.omax", "w");
28410       int i = 1;
28411       /* Impose an arbitrary limit, in case some system has no
28412          effective limit on the number of simultaneously open files.  */
28413       while (i < 30000)
28414         {
28415           FILE *s = fopen ("conftest.op", "w");
28416           if (!s)
28417             break;
28418           ++i;
28419         }
28420       fprintf (result, "%d\n", i);
28421       exit (fclose (result) == EOF);
28422     }
28423
28424 _ACEOF
28425 rm -f conftest$ac_exeext
28426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28427   (eval $ac_link) 2>&5
28428   ac_status=$?
28429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28432   (eval $ac_try) 2>&5
28433   ac_status=$?
28434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435   (exit $ac_status); }; }; then
28436   utils_cv_sys_open_max=`cat conftest.omax`
28437 else
28438   echo "$as_me: program exited with status $ac_status" >&5
28439 echo "$as_me: failed program was:" >&5
28440 sed 's/^/| /' conftest.$ac_ext >&5
28441
28442 ( exit $ac_status )
28443 utils_cv_sys_open_max='internal error in open-max.m4'
28444 fi
28445 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28446 fi
28447 fi
28448 echo "$as_me:$LINENO: result: $utils_cv_sys_open_max" >&5
28449 echo "${ECHO_T}$utils_cv_sys_open_max" >&6
28450
28451
28452 cat >>confdefs.h <<_ACEOF
28453 #define UTILS_OPEN_MAX $utils_cv_sys_open_max
28454 _ACEOF
28455
28456
28457
28458       if test "X$prefix" = "XNONE"; then
28459     acl_final_prefix="$ac_default_prefix"
28460   else
28461     acl_final_prefix="$prefix"
28462   fi
28463   if test "X$exec_prefix" = "XNONE"; then
28464     acl_final_exec_prefix='${prefix}'
28465   else
28466     acl_final_exec_prefix="$exec_prefix"
28467   fi
28468   acl_save_prefix="$prefix"
28469   prefix="$acl_final_prefix"
28470   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
28471   prefix="$acl_save_prefix"
28472
28473
28474 # Check whether --with-gnu-ld or --without-gnu-ld was given.
28475 if test "${with_gnu_ld+set}" = set; then
28476   withval="$with_gnu_ld"
28477   test "$withval" = no || with_gnu_ld=yes
28478 else
28479   with_gnu_ld=no
28480 fi;
28481 ac_prog=ld
28482 if test "$GCC" = yes; then
28483   # Check if gcc -print-prog-name=ld gives a path.
28484   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
28485 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
28486   case $host in
28487   *-*-mingw*)
28488     # gcc leaves a trailing carriage return which upsets mingw
28489     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
28490   *)
28491     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
28492   esac
28493   case $ac_prog in
28494     # Accept absolute paths.
28495     [\\/]* | [A-Za-z]:[\\/]*)
28496       re_direlt='/[^/][^/]*/\.\./'
28497       # Canonicalize the path of ld
28498       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
28499       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
28500         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
28501       done
28502       test -z "$LD" && LD="$ac_prog"
28503       ;;
28504   "")
28505     # If it fails, then pretend we aren't using GCC.
28506     ac_prog=ld
28507     ;;
28508   *)
28509     # If it is relative, then search for the first ld in PATH.
28510     with_gnu_ld=unknown
28511     ;;
28512   esac
28513 elif test "$with_gnu_ld" = yes; then
28514   echo "$as_me:$LINENO: checking for GNU ld" >&5
28515 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
28516 else
28517   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
28518 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
28519 fi
28520 if test "${acl_cv_path_LD+set}" = set; then
28521   echo $ECHO_N "(cached) $ECHO_C" >&6
28522 else
28523   if test -z "$LD"; then
28524   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
28525   for ac_dir in $PATH; do
28526     test -z "$ac_dir" && ac_dir=.
28527     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
28528       acl_cv_path_LD="$ac_dir/$ac_prog"
28529       # Check to see if the program is GNU ld.  I'd rather use --version,
28530       # but apparently some GNU ld's only accept -v.
28531       # Break only if it was the GNU/non-GNU ld that we prefer.
28532       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
28533         test "$with_gnu_ld" != no && break
28534       else
28535         test "$with_gnu_ld" != yes && break
28536       fi
28537     fi
28538   done
28539   IFS="$ac_save_ifs"
28540 else
28541   acl_cv_path_LD="$LD" # Let the user override the test with a path.
28542 fi
28543 fi
28544
28545 LD="$acl_cv_path_LD"
28546 if test -n "$LD"; then
28547   echo "$as_me:$LINENO: result: $LD" >&5
28548 echo "${ECHO_T}$LD" >&6
28549 else
28550   echo "$as_me:$LINENO: result: no" >&5
28551 echo "${ECHO_T}no" >&6
28552 fi
28553 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
28554 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
28555    { (exit 1); exit 1; }; }
28556 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
28557 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
28558 if test "${acl_cv_prog_gnu_ld+set}" = set; then
28559   echo $ECHO_N "(cached) $ECHO_C" >&6
28560 else
28561   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
28562 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
28563   acl_cv_prog_gnu_ld=yes
28564 else
28565   acl_cv_prog_gnu_ld=no
28566 fi
28567 fi
28568 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
28569 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
28570 with_gnu_ld=$acl_cv_prog_gnu_ld
28571
28572
28573
28574                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
28575 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
28576 if test "${acl_cv_rpath+set}" = set; then
28577   echo $ECHO_N "(cached) $ECHO_C" >&6
28578 else
28579
28580     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
28581     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
28582     . ./conftest.sh
28583     rm -f ./conftest.sh
28584     acl_cv_rpath=done
28585
28586 fi
28587 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
28588 echo "${ECHO_T}$acl_cv_rpath" >&6
28589   wl="$acl_cv_wl"
28590   libext="$acl_cv_libext"
28591   shlibext="$acl_cv_shlibext"
28592   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
28593   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
28594   hardcode_direct="$acl_cv_hardcode_direct"
28595   hardcode_minus_L="$acl_cv_hardcode_minus_L"
28596   sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
28597   sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
28598     # Check whether --enable-rpath or --disable-rpath was given.
28599 if test "${enable_rpath+set}" = set; then
28600   enableval="$enable_rpath"
28601   :
28602 else
28603   enable_rpath=yes
28604 fi;
28605
28606
28607
28608
28609
28610
28611
28612     use_additional=yes
28613
28614   acl_save_prefix="$prefix"
28615   prefix="$acl_final_prefix"
28616   acl_save_exec_prefix="$exec_prefix"
28617   exec_prefix="$acl_final_exec_prefix"
28618
28619     eval additional_includedir=\"$includedir\"
28620     eval additional_libdir=\"$libdir\"
28621
28622   exec_prefix="$acl_save_exec_prefix"
28623   prefix="$acl_save_prefix"
28624
28625
28626 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
28627 if test "${with_libiconv_prefix+set}" = set; then
28628   withval="$with_libiconv_prefix"
28629
28630     if test "X$withval" = "Xno"; then
28631       use_additional=no
28632     else
28633       if test "X$withval" = "X"; then
28634
28635   acl_save_prefix="$prefix"
28636   prefix="$acl_final_prefix"
28637   acl_save_exec_prefix="$exec_prefix"
28638   exec_prefix="$acl_final_exec_prefix"
28639
28640           eval additional_includedir=\"$includedir\"
28641           eval additional_libdir=\"$libdir\"
28642
28643   exec_prefix="$acl_save_exec_prefix"
28644   prefix="$acl_save_prefix"
28645
28646       else
28647         additional_includedir="$withval/include"
28648         additional_libdir="$withval/lib"
28649       fi
28650     fi
28651
28652 fi;
28653       LIBICONV=
28654   LTLIBICONV=
28655   INCICONV=
28656   rpathdirs=
28657   ltrpathdirs=
28658   names_already_handled=
28659   names_next_round='iconv '
28660   while test -n "$names_next_round"; do
28661     names_this_round="$names_next_round"
28662     names_next_round=
28663     for name in $names_this_round; do
28664       already_handled=
28665       for n in $names_already_handled; do
28666         if test "$n" = "$name"; then
28667           already_handled=yes
28668           break
28669         fi
28670       done
28671       if test -z "$already_handled"; then
28672         names_already_handled="$names_already_handled $name"
28673                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28674         eval value=\"\$HAVE_LIB$uppername\"
28675         if test -n "$value"; then
28676           if test "$value" = yes; then
28677             eval value=\"\$LIB$uppername\"
28678             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
28679             eval value=\"\$LTLIB$uppername\"
28680             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
28681           else
28682                                     :
28683           fi
28684         else
28685                               found_dir=
28686           found_la=
28687           found_so=
28688           found_a=
28689           if test $use_additional = yes; then
28690             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
28691               found_dir="$additional_libdir"
28692               found_so="$additional_libdir/lib$name.$shlibext"
28693               if test -f "$additional_libdir/lib$name.la"; then
28694                 found_la="$additional_libdir/lib$name.la"
28695               fi
28696             else
28697               if test -f "$additional_libdir/lib$name.$libext"; then
28698                 found_dir="$additional_libdir"
28699                 found_a="$additional_libdir/lib$name.$libext"
28700                 if test -f "$additional_libdir/lib$name.la"; then
28701                   found_la="$additional_libdir/lib$name.la"
28702                 fi
28703               fi
28704             fi
28705           fi
28706           if test "X$found_dir" = "X"; then
28707             for x in $LDFLAGS $LTLIBICONV; do
28708
28709   acl_save_prefix="$prefix"
28710   prefix="$acl_final_prefix"
28711   acl_save_exec_prefix="$exec_prefix"
28712   exec_prefix="$acl_final_exec_prefix"
28713   eval x=\"$x\"
28714   exec_prefix="$acl_save_exec_prefix"
28715   prefix="$acl_save_prefix"
28716
28717               case "$x" in
28718                 -L*)
28719                   dir=`echo "X$x" | sed -e 's/^X-L//'`
28720                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
28721                     found_dir="$dir"
28722                     found_so="$dir/lib$name.$shlibext"
28723                     if test -f "$dir/lib$name.la"; then
28724                       found_la="$dir/lib$name.la"
28725                     fi
28726                   else
28727                     if test -f "$dir/lib$name.$libext"; then
28728                       found_dir="$dir"
28729                       found_a="$dir/lib$name.$libext"
28730                       if test -f "$dir/lib$name.la"; then
28731                         found_la="$dir/lib$name.la"
28732                       fi
28733                     fi
28734                   fi
28735                   ;;
28736               esac
28737               if test "X$found_dir" != "X"; then
28738                 break
28739               fi
28740             done
28741           fi
28742           if test "X$found_dir" != "X"; then
28743                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
28744             if test "X$found_so" != "X"; then
28745                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
28746                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
28747               else
28748                                                                                 haveit=
28749                 for x in $ltrpathdirs; do
28750                   if test "X$x" = "X$found_dir"; then
28751                     haveit=yes
28752                     break
28753                   fi
28754                 done
28755                 if test -z "$haveit"; then
28756                   ltrpathdirs="$ltrpathdirs $found_dir"
28757                 fi
28758                                 if test "$hardcode_direct" = yes; then
28759                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
28760                 else
28761                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
28762                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
28763                                                             haveit=
28764                     for x in $rpathdirs; do
28765                       if test "X$x" = "X$found_dir"; then
28766                         haveit=yes
28767                         break
28768                       fi
28769                     done
28770                     if test -z "$haveit"; then
28771                       rpathdirs="$rpathdirs $found_dir"
28772                     fi
28773                   else
28774                                                                                 haveit=
28775                     for x in $LDFLAGS $LIBICONV; do
28776
28777   acl_save_prefix="$prefix"
28778   prefix="$acl_final_prefix"
28779   acl_save_exec_prefix="$exec_prefix"
28780   exec_prefix="$acl_final_exec_prefix"
28781   eval x=\"$x\"
28782   exec_prefix="$acl_save_exec_prefix"
28783   prefix="$acl_save_prefix"
28784
28785                       if test "X$x" = "X-L$found_dir"; then
28786                         haveit=yes
28787                         break
28788                       fi
28789                     done
28790                     if test -z "$haveit"; then
28791                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
28792                     fi
28793                     if test "$hardcode_minus_L" != no; then
28794                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
28795                     else
28796                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
28797                     fi
28798                   fi
28799                 fi
28800               fi
28801             else
28802               if test "X$found_a" != "X"; then
28803                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
28804               else
28805                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
28806               fi
28807             fi
28808                         additional_includedir=
28809             case "$found_dir" in
28810               */lib | */lib/)
28811                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
28812                 additional_includedir="$basedir/include"
28813                 ;;
28814             esac
28815             if test "X$additional_includedir" != "X"; then
28816                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
28817                 haveit=
28818                 if test "X$additional_includedir" = "X/usr/local/include"; then
28819                   if test -n "$GCC"; then
28820                     case $host_os in
28821                       linux*) haveit=yes;;
28822                     esac
28823                   fi
28824                 fi
28825                 if test -z "$haveit"; then
28826                   for x in $CPPFLAGS $INCICONV; do
28827
28828   acl_save_prefix="$prefix"
28829   prefix="$acl_final_prefix"
28830   acl_save_exec_prefix="$exec_prefix"
28831   exec_prefix="$acl_final_exec_prefix"
28832   eval x=\"$x\"
28833   exec_prefix="$acl_save_exec_prefix"
28834   prefix="$acl_save_prefix"
28835
28836                     if test "X$x" = "X-I$additional_includedir"; then
28837                       haveit=yes
28838                       break
28839                     fi
28840                   done
28841                   if test -z "$haveit"; then
28842                     if test -d "$additional_includedir"; then
28843                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
28844                     fi
28845                   fi
28846                 fi
28847               fi
28848             fi
28849                         if test -n "$found_la"; then
28850                                                         save_libdir="$libdir"
28851               case "$found_la" in
28852                 */* | *\\*) . "$found_la" ;;
28853                 *) . "./$found_la" ;;
28854               esac
28855               libdir="$save_libdir"
28856                             for dep in $dependency_libs; do
28857                 case "$dep" in
28858                   -L*)
28859                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28860                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
28861                       haveit=
28862                       if test "X$additional_libdir" = "X/usr/local/lib"; then
28863                         if test -n "$GCC"; then
28864                           case $host_os in
28865                             linux*) haveit=yes;;
28866                           esac
28867                         fi
28868                       fi
28869                       if test -z "$haveit"; then
28870                         haveit=
28871                         for x in $LDFLAGS $LIBICONV; do
28872
28873   acl_save_prefix="$prefix"
28874   prefix="$acl_final_prefix"
28875   acl_save_exec_prefix="$exec_prefix"
28876   exec_prefix="$acl_final_exec_prefix"
28877   eval x=\"$x\"
28878   exec_prefix="$acl_save_exec_prefix"
28879   prefix="$acl_save_prefix"
28880
28881                           if test "X$x" = "X-L$additional_libdir"; then
28882                             haveit=yes
28883                             break
28884                           fi
28885                         done
28886                         if test -z "$haveit"; then
28887                           if test -d "$additional_libdir"; then
28888                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
28889                           fi
28890                         fi
28891                         haveit=
28892                         for x in $LDFLAGS $LTLIBICONV; do
28893
28894   acl_save_prefix="$prefix"
28895   prefix="$acl_final_prefix"
28896   acl_save_exec_prefix="$exec_prefix"
28897   exec_prefix="$acl_final_exec_prefix"
28898   eval x=\"$x\"
28899   exec_prefix="$acl_save_exec_prefix"
28900   prefix="$acl_save_prefix"
28901
28902                           if test "X$x" = "X-L$additional_libdir"; then
28903                             haveit=yes
28904                             break
28905                           fi
28906                         done
28907                         if test -z "$haveit"; then
28908                           if test -d "$additional_libdir"; then
28909                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
28910                           fi
28911                         fi
28912                       fi
28913                     fi
28914                     ;;
28915                   -R*)
28916                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
28917                     if test "$enable_rpath" != no; then
28918                                                                   haveit=
28919                       for x in $rpathdirs; do
28920                         if test "X$x" = "X$dir"; then
28921                           haveit=yes
28922                           break
28923                         fi
28924                       done
28925                       if test -z "$haveit"; then
28926                         rpathdirs="$rpathdirs $dir"
28927                       fi
28928                                                                   haveit=
28929                       for x in $ltrpathdirs; do
28930                         if test "X$x" = "X$dir"; then
28931                           haveit=yes
28932                           break
28933                         fi
28934                       done
28935                       if test -z "$haveit"; then
28936                         ltrpathdirs="$ltrpathdirs $dir"
28937                       fi
28938                     fi
28939                     ;;
28940                   -l*)
28941                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28942                     ;;
28943                   *.la)
28944                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28945                     ;;
28946                   *)
28947                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
28948                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
28949                     ;;
28950                 esac
28951               done
28952             fi
28953           else
28954                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
28955             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
28956           fi
28957         fi
28958       fi
28959     done
28960   done
28961   if test "X$rpathdirs" != "X"; then
28962     if test -n "$hardcode_libdir_separator"; then
28963                         alldirs=
28964       for found_dir in $rpathdirs; do
28965         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
28966       done
28967             acl_save_libdir="$libdir"
28968       libdir="$alldirs"
28969       eval flag=\"$hardcode_libdir_flag_spec\"
28970       libdir="$acl_save_libdir"
28971       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
28972     else
28973             for found_dir in $rpathdirs; do
28974         acl_save_libdir="$libdir"
28975         libdir="$found_dir"
28976         eval flag=\"$hardcode_libdir_flag_spec\"
28977         libdir="$acl_save_libdir"
28978         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
28979       done
28980     fi
28981   fi
28982   if test "X$ltrpathdirs" != "X"; then
28983             for found_dir in $ltrpathdirs; do
28984       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
28985     done
28986   fi
28987
28988
28989
28990     echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
28991 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
28992 if test "${ac_cv_win_or_dos+set}" = set; then
28993   echo $ECHO_N "(cached) $ECHO_C" >&6
28994 else
28995
28996         cat >conftest.$ac_ext <<_ACEOF
28997 #line $LINENO "configure"
28998 /* confdefs.h.  */
28999 _ACEOF
29000 cat confdefs.h >>conftest.$ac_ext
29001 cat >>conftest.$ac_ext <<_ACEOF
29002 /* end confdefs.h.  */
29003
29004 int
29005 main ()
29006 {
29007 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__
29008 neither MSDOS nor Windows
29009 #endif
29010   ;
29011   return 0;
29012 }
29013 _ACEOF
29014 rm -f conftest.$ac_objext
29015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29016   (eval $ac_compile) 2>&5
29017   ac_status=$?
29018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019   (exit $ac_status); } &&
29020          { ac_try='test -s conftest.$ac_objext'
29021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29022   (eval $ac_try) 2>&5
29023   ac_status=$?
29024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025   (exit $ac_status); }; }; then
29026   ac_cv_win_or_dos=yes
29027 else
29028   echo "$as_me: failed program was:" >&5
29029 sed 's/^/| /' conftest.$ac_ext >&5
29030
29031 ac_cv_win_or_dos=no
29032 fi
29033 rm -f conftest.$ac_objext conftest.$ac_ext
29034
29035 fi
29036 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
29037 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
29038
29039     if test x"$ac_cv_win_or_dos" = xyes; then
29040       ac_fs_accepts_drive_letter_prefix=1
29041       ac_fs_backslash_is_file_name_separator=1
29042     else
29043       ac_fs_accepts_drive_letter_prefix=0
29044       ac_fs_backslash_is_file_name_separator=0
29045     fi
29046
29047
29048
29049
29050
29051 cat >>confdefs.h <<_ACEOF
29052 #define FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
29053 _ACEOF
29054
29055
29056
29057
29058
29059
29060 cat >>confdefs.h <<_ACEOF
29061 #define FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
29062 _ACEOF
29063
29064
29065
29066
29067
29068
29069
29070 for ac_header in string.h sys/param.h stddef.h
29071 do
29072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29074   echo "$as_me:$LINENO: checking for $ac_header" >&5
29075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29077   echo $ECHO_N "(cached) $ECHO_C" >&6
29078 fi
29079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29081 else
29082   # Is the header compilable?
29083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29085 cat >conftest.$ac_ext <<_ACEOF
29086 #line $LINENO "configure"
29087 /* confdefs.h.  */
29088 _ACEOF
29089 cat confdefs.h >>conftest.$ac_ext
29090 cat >>conftest.$ac_ext <<_ACEOF
29091 /* end confdefs.h.  */
29092 $ac_includes_default
29093 #include <$ac_header>
29094 _ACEOF
29095 rm -f conftest.$ac_objext
29096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29097   (eval $ac_compile) 2>&5
29098   ac_status=$?
29099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100   (exit $ac_status); } &&
29101          { ac_try='test -s conftest.$ac_objext'
29102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29103   (eval $ac_try) 2>&5
29104   ac_status=$?
29105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106   (exit $ac_status); }; }; then
29107   ac_header_compiler=yes
29108 else
29109   echo "$as_me: failed program was:" >&5
29110 sed 's/^/| /' conftest.$ac_ext >&5
29111
29112 ac_header_compiler=no
29113 fi
29114 rm -f conftest.$ac_objext conftest.$ac_ext
29115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29116 echo "${ECHO_T}$ac_header_compiler" >&6
29117
29118 # Is the header present?
29119 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29121 cat >conftest.$ac_ext <<_ACEOF
29122 #line $LINENO "configure"
29123 /* confdefs.h.  */
29124 _ACEOF
29125 cat confdefs.h >>conftest.$ac_ext
29126 cat >>conftest.$ac_ext <<_ACEOF
29127 /* end confdefs.h.  */
29128 #include <$ac_header>
29129 _ACEOF
29130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29131   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29132   ac_status=$?
29133   grep -v '^ *+' conftest.er1 >conftest.err
29134   rm -f conftest.er1
29135   cat conftest.err >&5
29136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137   (exit $ac_status); } >/dev/null; then
29138   if test -s conftest.err; then
29139     ac_cpp_err=$ac_c_preproc_warn_flag
29140   else
29141     ac_cpp_err=
29142   fi
29143 else
29144   ac_cpp_err=yes
29145 fi
29146 if test -z "$ac_cpp_err"; then
29147   ac_header_preproc=yes
29148 else
29149   echo "$as_me: failed program was:" >&5
29150 sed 's/^/| /' conftest.$ac_ext >&5
29151
29152   ac_header_preproc=no
29153 fi
29154 rm -f conftest.err conftest.$ac_ext
29155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29156 echo "${ECHO_T}$ac_header_preproc" >&6
29157
29158 # So?  What about this header?
29159 case $ac_header_compiler:$ac_header_preproc in
29160   yes:no )
29161     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29163     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29165     (
29166       cat <<\_ASBOX
29167 ## ------------------------------------ ##
29168 ## Report this to bug-autoconf@gnu.org. ##
29169 ## ------------------------------------ ##
29170 _ASBOX
29171     ) |
29172       sed "s/^/$as_me: WARNING:     /" >&2
29173     ;;
29174   no:yes )
29175     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29177     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29178 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29181     (
29182       cat <<\_ASBOX
29183 ## ------------------------------------ ##
29184 ## Report this to bug-autoconf@gnu.org. ##
29185 ## ------------------------------------ ##
29186 _ASBOX
29187     ) |
29188       sed "s/^/$as_me: WARNING:     /" >&2
29189     ;;
29190 esac
29191 echo "$as_me:$LINENO: checking for $ac_header" >&5
29192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29194   echo $ECHO_N "(cached) $ECHO_C" >&6
29195 else
29196   eval "$as_ac_Header=$ac_header_preproc"
29197 fi
29198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29200
29201 fi
29202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29203   cat >>confdefs.h <<_ACEOF
29204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29205 _ACEOF
29206
29207 fi
29208
29209 done
29210
29211
29212 for ac_func in resolvepath
29213 do
29214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29215 echo "$as_me:$LINENO: checking for $ac_func" >&5
29216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29217 if eval "test \"\${$as_ac_var+set}\" = set"; then
29218   echo $ECHO_N "(cached) $ECHO_C" >&6
29219 else
29220   cat >conftest.$ac_ext <<_ACEOF
29221 #line $LINENO "configure"
29222 /* confdefs.h.  */
29223 _ACEOF
29224 cat confdefs.h >>conftest.$ac_ext
29225 cat >>conftest.$ac_ext <<_ACEOF
29226 /* end confdefs.h.  */
29227 /* System header to define __stub macros and hopefully few prototypes,
29228     which can conflict with char $ac_func (); below.
29229     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29230     <limits.h> exists even on freestanding compilers.  */
29231 #ifdef __STDC__
29232 # include <limits.h>
29233 #else
29234 # include <assert.h>
29235 #endif
29236 /* Override any gcc2 internal prototype to avoid an error.  */
29237 #ifdef __cplusplus
29238 extern "C"
29239 {
29240 #endif
29241 /* We use char because int might match the return type of a gcc2
29242    builtin and then its argument prototype would still apply.  */
29243 char $ac_func ();
29244 /* The GNU C library defines this for functions which it implements
29245     to always fail with ENOSYS.  Some functions are actually named
29246     something starting with __ and the normal name is an alias.  */
29247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29248 choke me
29249 #else
29250 char (*f) () = $ac_func;
29251 #endif
29252 #ifdef __cplusplus
29253 }
29254 #endif
29255
29256 int
29257 main ()
29258 {
29259 return f != $ac_func;
29260   ;
29261   return 0;
29262 }
29263 _ACEOF
29264 rm -f conftest.$ac_objext conftest$ac_exeext
29265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29266   (eval $ac_link) 2>&5
29267   ac_status=$?
29268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269   (exit $ac_status); } &&
29270          { ac_try='test -s conftest$ac_exeext'
29271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29272   (eval $ac_try) 2>&5
29273   ac_status=$?
29274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29275   (exit $ac_status); }; }; then
29276   eval "$as_ac_var=yes"
29277 else
29278   echo "$as_me: failed program was:" >&5
29279 sed 's/^/| /' conftest.$ac_ext >&5
29280
29281 eval "$as_ac_var=no"
29282 fi
29283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29284 fi
29285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29287 if test `eval echo '${'$as_ac_var'}'` = yes; then
29288   cat >>confdefs.h <<_ACEOF
29289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29290 _ACEOF
29291
29292 fi
29293 done
29294
29295
29296
29297     # This would simply be AC_REPLACE_FUNC([canonicalize_file_name])
29298     # if the function name weren't so long.  Besides, I would rather
29299     # not have underscores in file names.
29300     echo "$as_me:$LINENO: checking for canonicalize_file_name" >&5
29301 echo $ECHO_N "checking for canonicalize_file_name... $ECHO_C" >&6
29302 if test "${ac_cv_func_canonicalize_file_name+set}" = set; then
29303   echo $ECHO_N "(cached) $ECHO_C" >&6
29304 else
29305   cat >conftest.$ac_ext <<_ACEOF
29306 #line $LINENO "configure"
29307 /* confdefs.h.  */
29308 _ACEOF
29309 cat confdefs.h >>conftest.$ac_ext
29310 cat >>conftest.$ac_ext <<_ACEOF
29311 /* end confdefs.h.  */
29312 /* System header to define __stub macros and hopefully few prototypes,
29313     which can conflict with char canonicalize_file_name (); below.
29314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29315     <limits.h> exists even on freestanding compilers.  */
29316 #ifdef __STDC__
29317 # include <limits.h>
29318 #else
29319 # include <assert.h>
29320 #endif
29321 /* Override any gcc2 internal prototype to avoid an error.  */
29322 #ifdef __cplusplus
29323 extern "C"
29324 {
29325 #endif
29326 /* We use char because int might match the return type of a gcc2
29327    builtin and then its argument prototype would still apply.  */
29328 char canonicalize_file_name ();
29329 /* The GNU C library defines this for functions which it implements
29330     to always fail with ENOSYS.  Some functions are actually named
29331     something starting with __ and the normal name is an alias.  */
29332 #if defined (__stub_canonicalize_file_name) || defined (__stub___canonicalize_file_name)
29333 choke me
29334 #else
29335 char (*f) () = canonicalize_file_name;
29336 #endif
29337 #ifdef __cplusplus
29338 }
29339 #endif
29340
29341 int
29342 main ()
29343 {
29344 return f != canonicalize_file_name;
29345   ;
29346   return 0;
29347 }
29348 _ACEOF
29349 rm -f conftest.$ac_objext conftest$ac_exeext
29350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29351   (eval $ac_link) 2>&5
29352   ac_status=$?
29353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354   (exit $ac_status); } &&
29355          { ac_try='test -s conftest$ac_exeext'
29356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29357   (eval $ac_try) 2>&5
29358   ac_status=$?
29359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29360   (exit $ac_status); }; }; then
29361   ac_cv_func_canonicalize_file_name=yes
29362 else
29363   echo "$as_me: failed program was:" >&5
29364 sed 's/^/| /' conftest.$ac_ext >&5
29365
29366 ac_cv_func_canonicalize_file_name=no
29367 fi
29368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29369 fi
29370 echo "$as_me:$LINENO: result: $ac_cv_func_canonicalize_file_name" >&5
29371 echo "${ECHO_T}$ac_cv_func_canonicalize_file_name" >&6
29372 if test $ac_cv_func_canonicalize_file_name = yes; then
29373   :
29374 else
29375   LIBOBJS="$LIBOBJS canonicalize.$ac_objext"
29376 fi
29377
29378
29379
29380
29381
29382   GNU_PACKAGE="GNU $PACKAGE"
29383
29384 cat >>confdefs.h <<_ACEOF
29385 #define GNU_PACKAGE "$GNU_PACKAGE"
29386 _ACEOF
29387
29388
29389
29390
29391 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
29392
29393
29394
29395
29396
29397
29398
29399
29400
29401
29402
29403
29404
29405
29406
29407
29408
29409
29410
29411
29412
29413   echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
29414 echo $ECHO_N "checking for struct stat.st_author... $ECHO_C" >&6
29415 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
29416   echo $ECHO_N "(cached) $ECHO_C" >&6
29417 else
29418   cat >conftest.$ac_ext <<_ACEOF
29419 #line $LINENO "configure"
29420 /* confdefs.h.  */
29421 _ACEOF
29422 cat confdefs.h >>conftest.$ac_ext
29423 cat >>conftest.$ac_ext <<_ACEOF
29424 /* end confdefs.h.  */
29425 $ac_includes_default
29426 #include <sys/stat.h>
29427
29428
29429 int
29430 main ()
29431 {
29432 static struct stat ac_aggr;
29433 if (ac_aggr.st_author)
29434 return 0;
29435   ;
29436   return 0;
29437 }
29438 _ACEOF
29439 rm -f conftest.$ac_objext
29440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29441   (eval $ac_compile) 2>&5
29442   ac_status=$?
29443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444   (exit $ac_status); } &&
29445          { ac_try='test -s conftest.$ac_objext'
29446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29447   (eval $ac_try) 2>&5
29448   ac_status=$?
29449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450   (exit $ac_status); }; }; then
29451   ac_cv_member_struct_stat_st_author=yes
29452 else
29453   echo "$as_me: failed program was:" >&5
29454 sed 's/^/| /' conftest.$ac_ext >&5
29455
29456 cat >conftest.$ac_ext <<_ACEOF
29457 #line $LINENO "configure"
29458 /* confdefs.h.  */
29459 _ACEOF
29460 cat confdefs.h >>conftest.$ac_ext
29461 cat >>conftest.$ac_ext <<_ACEOF
29462 /* end confdefs.h.  */
29463 $ac_includes_default
29464 #include <sys/stat.h>
29465
29466
29467 int
29468 main ()
29469 {
29470 static struct stat ac_aggr;
29471 if (sizeof ac_aggr.st_author)
29472 return 0;
29473   ;
29474   return 0;
29475 }
29476 _ACEOF
29477 rm -f conftest.$ac_objext
29478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29479   (eval $ac_compile) 2>&5
29480   ac_status=$?
29481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29482   (exit $ac_status); } &&
29483          { ac_try='test -s conftest.$ac_objext'
29484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29485   (eval $ac_try) 2>&5
29486   ac_status=$?
29487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29488   (exit $ac_status); }; }; then
29489   ac_cv_member_struct_stat_st_author=yes
29490 else
29491   echo "$as_me: failed program was:" >&5
29492 sed 's/^/| /' conftest.$ac_ext >&5
29493
29494 ac_cv_member_struct_stat_st_author=no
29495 fi
29496 rm -f conftest.$ac_objext conftest.$ac_ext
29497 fi
29498 rm -f conftest.$ac_objext conftest.$ac_ext
29499 fi
29500 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
29501 echo "${ECHO_T}$ac_cv_member_struct_stat_st_author" >&6
29502 if test $ac_cv_member_struct_stat_st_author = yes; then
29503
29504 cat >>confdefs.h <<_ACEOF
29505 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
29506 _ACEOF
29507
29508
29509 fi
29510 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
29511 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
29512 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
29513   echo $ECHO_N "(cached) $ECHO_C" >&6
29514 else
29515   cat >conftest.$ac_ext <<_ACEOF
29516 #line $LINENO "configure"
29517 /* confdefs.h.  */
29518 _ACEOF
29519 cat confdefs.h >>conftest.$ac_ext
29520 cat >>conftest.$ac_ext <<_ACEOF
29521 /* end confdefs.h.  */
29522 $ac_includes_default
29523 #include <sys/stat.h>
29524
29525
29526 int
29527 main ()
29528 {
29529 static struct stat ac_aggr;
29530 if (ac_aggr.st_blksize)
29531 return 0;
29532   ;
29533   return 0;
29534 }
29535 _ACEOF
29536 rm -f conftest.$ac_objext
29537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29538   (eval $ac_compile) 2>&5
29539   ac_status=$?
29540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541   (exit $ac_status); } &&
29542          { ac_try='test -s conftest.$ac_objext'
29543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29544   (eval $ac_try) 2>&5
29545   ac_status=$?
29546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29547   (exit $ac_status); }; }; then
29548   ac_cv_member_struct_stat_st_blksize=yes
29549 else
29550   echo "$as_me: failed program was:" >&5
29551 sed 's/^/| /' conftest.$ac_ext >&5
29552
29553 cat >conftest.$ac_ext <<_ACEOF
29554 #line $LINENO "configure"
29555 /* confdefs.h.  */
29556 _ACEOF
29557 cat confdefs.h >>conftest.$ac_ext
29558 cat >>conftest.$ac_ext <<_ACEOF
29559 /* end confdefs.h.  */
29560 $ac_includes_default
29561 #include <sys/stat.h>
29562
29563
29564 int
29565 main ()
29566 {
29567 static struct stat ac_aggr;
29568 if (sizeof ac_aggr.st_blksize)
29569 return 0;
29570   ;
29571   return 0;
29572 }
29573 _ACEOF
29574 rm -f conftest.$ac_objext
29575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29576   (eval $ac_compile) 2>&5
29577   ac_status=$?
29578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579   (exit $ac_status); } &&
29580          { ac_try='test -s conftest.$ac_objext'
29581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29582   (eval $ac_try) 2>&5
29583   ac_status=$?
29584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29585   (exit $ac_status); }; }; then
29586   ac_cv_member_struct_stat_st_blksize=yes
29587 else
29588   echo "$as_me: failed program was:" >&5
29589 sed 's/^/| /' conftest.$ac_ext >&5
29590
29591 ac_cv_member_struct_stat_st_blksize=no
29592 fi
29593 rm -f conftest.$ac_objext conftest.$ac_ext
29594 fi
29595 rm -f conftest.$ac_objext conftest.$ac_ext
29596 fi
29597 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
29598 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
29599 if test $ac_cv_member_struct_stat_st_blksize = yes; then
29600
29601 cat >>confdefs.h <<_ACEOF
29602 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
29603 _ACEOF
29604
29605
29606 fi
29607
29608
29609
29610
29611
29612
29613
29614
29615
29616
29617
29618
29619
29620
29621
29622
29623
29624   echo "$as_me:$LINENO: checking for ino_t" >&5
29625 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
29626 if test "${ac_cv_type_ino_t+set}" = set; then
29627   echo $ECHO_N "(cached) $ECHO_C" >&6
29628 else
29629   cat >conftest.$ac_ext <<_ACEOF
29630 #line $LINENO "configure"
29631 /* confdefs.h.  */
29632 _ACEOF
29633 cat confdefs.h >>conftest.$ac_ext
29634 cat >>conftest.$ac_ext <<_ACEOF
29635 /* end confdefs.h.  */
29636 $ac_includes_default
29637 int
29638 main ()
29639 {
29640 if ((ino_t *) 0)
29641   return 0;
29642 if (sizeof (ino_t))
29643   return 0;
29644   ;
29645   return 0;
29646 }
29647 _ACEOF
29648 rm -f conftest.$ac_objext
29649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29650   (eval $ac_compile) 2>&5
29651   ac_status=$?
29652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653   (exit $ac_status); } &&
29654          { ac_try='test -s conftest.$ac_objext'
29655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29656   (eval $ac_try) 2>&5
29657   ac_status=$?
29658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659   (exit $ac_status); }; }; then
29660   ac_cv_type_ino_t=yes
29661 else
29662   echo "$as_me: failed program was:" >&5
29663 sed 's/^/| /' conftest.$ac_ext >&5
29664
29665 ac_cv_type_ino_t=no
29666 fi
29667 rm -f conftest.$ac_objext conftest.$ac_ext
29668 fi
29669 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
29670 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
29671 if test $ac_cv_type_ino_t = yes; then
29672   :
29673 else
29674
29675 cat >>confdefs.h <<_ACEOF
29676 #define ino_t unsigned long
29677 _ACEOF
29678
29679 fi
29680
29681
29682       echo "$as_me:$LINENO: checking for ssize_t" >&5
29683 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
29684 if test "${ac_cv_type_ssize_t+set}" = set; then
29685   echo $ECHO_N "(cached) $ECHO_C" >&6
29686 else
29687   cat >conftest.$ac_ext <<_ACEOF
29688 #line $LINENO "configure"
29689 /* confdefs.h.  */
29690 _ACEOF
29691 cat confdefs.h >>conftest.$ac_ext
29692 cat >>conftest.$ac_ext <<_ACEOF
29693 /* end confdefs.h.  */
29694 $ac_includes_default
29695 int
29696 main ()
29697 {
29698 if ((ssize_t *) 0)
29699   return 0;
29700 if (sizeof (ssize_t))
29701   return 0;
29702   ;
29703   return 0;
29704 }
29705 _ACEOF
29706 rm -f conftest.$ac_objext
29707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29708   (eval $ac_compile) 2>&5
29709   ac_status=$?
29710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29711   (exit $ac_status); } &&
29712          { ac_try='test -s conftest.$ac_objext'
29713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29714   (eval $ac_try) 2>&5
29715   ac_status=$?
29716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717   (exit $ac_status); }; }; then
29718   ac_cv_type_ssize_t=yes
29719 else
29720   echo "$as_me: failed program was:" >&5
29721 sed 's/^/| /' conftest.$ac_ext >&5
29722
29723 ac_cv_type_ssize_t=no
29724 fi
29725 rm -f conftest.$ac_objext conftest.$ac_ext
29726 fi
29727 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
29728 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
29729 if test $ac_cv_type_ssize_t = yes; then
29730   :
29731 else
29732
29733 cat >>confdefs.h <<_ACEOF
29734 #define ssize_t int
29735 _ACEOF
29736
29737 fi
29738
29739   echo "$as_me:$LINENO: checking for major_t" >&5
29740 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
29741 if test "${ac_cv_type_major_t+set}" = set; then
29742   echo $ECHO_N "(cached) $ECHO_C" >&6
29743 else
29744   cat >conftest.$ac_ext <<_ACEOF
29745 #line $LINENO "configure"
29746 /* confdefs.h.  */
29747 _ACEOF
29748 cat confdefs.h >>conftest.$ac_ext
29749 cat >>conftest.$ac_ext <<_ACEOF
29750 /* end confdefs.h.  */
29751 $ac_includes_default
29752 int
29753 main ()
29754 {
29755 if ((major_t *) 0)
29756   return 0;
29757 if (sizeof (major_t))
29758   return 0;
29759   ;
29760   return 0;
29761 }
29762 _ACEOF
29763 rm -f conftest.$ac_objext
29764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29765   (eval $ac_compile) 2>&5
29766   ac_status=$?
29767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768   (exit $ac_status); } &&
29769          { ac_try='test -s conftest.$ac_objext'
29770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29771   (eval $ac_try) 2>&5
29772   ac_status=$?
29773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774   (exit $ac_status); }; }; then
29775   ac_cv_type_major_t=yes
29776 else
29777   echo "$as_me: failed program was:" >&5
29778 sed 's/^/| /' conftest.$ac_ext >&5
29779
29780 ac_cv_type_major_t=no
29781 fi
29782 rm -f conftest.$ac_objext conftest.$ac_ext
29783 fi
29784 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
29785 echo "${ECHO_T}$ac_cv_type_major_t" >&6
29786 if test $ac_cv_type_major_t = yes; then
29787   :
29788 else
29789
29790 cat >>confdefs.h <<_ACEOF
29791 #define major_t unsigned int
29792 _ACEOF
29793
29794 fi
29795
29796   echo "$as_me:$LINENO: checking for minor_t" >&5
29797 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
29798 if test "${ac_cv_type_minor_t+set}" = set; then
29799   echo $ECHO_N "(cached) $ECHO_C" >&6
29800 else
29801   cat >conftest.$ac_ext <<_ACEOF
29802 #line $LINENO "configure"
29803 /* confdefs.h.  */
29804 _ACEOF
29805 cat confdefs.h >>conftest.$ac_ext
29806 cat >>conftest.$ac_ext <<_ACEOF
29807 /* end confdefs.h.  */
29808 $ac_includes_default
29809 int
29810 main ()
29811 {
29812 if ((minor_t *) 0)
29813   return 0;
29814 if (sizeof (minor_t))
29815   return 0;
29816   ;
29817   return 0;
29818 }
29819 _ACEOF
29820 rm -f conftest.$ac_objext
29821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29822   (eval $ac_compile) 2>&5
29823   ac_status=$?
29824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29825   (exit $ac_status); } &&
29826          { ac_try='test -s conftest.$ac_objext'
29827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29828   (eval $ac_try) 2>&5
29829   ac_status=$?
29830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831   (exit $ac_status); }; }; then
29832   ac_cv_type_minor_t=yes
29833 else
29834   echo "$as_me: failed program was:" >&5
29835 sed 's/^/| /' conftest.$ac_ext >&5
29836
29837 ac_cv_type_minor_t=no
29838 fi
29839 rm -f conftest.$ac_objext conftest.$ac_ext
29840 fi
29841 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
29842 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
29843 if test $ac_cv_type_minor_t = yes; then
29844   :
29845 else
29846
29847 cat >>confdefs.h <<_ACEOF
29848 #define minor_t unsigned int
29849 _ACEOF
29850
29851 fi
29852
29853
29854
29855
29856
29857
29858
29859
29860
29861
29862
29863     # Assume we'll default to using the included regex.c.
29864     ac_use_included_regex=yes
29865
29866     # However, if the system regex support is good enough that it passes the
29867     # the following run test, then default to *not* using the included regex.c.
29868     # If cross compiling, assume the test would fail and use the included
29869     # regex.c.  The first failing regular expression is from `Spencer ere
29870     # test #75' in grep-2.3.
29871     echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
29872 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
29873 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
29874   echo $ECHO_N "(cached) $ECHO_C" >&6
29875 else
29876   if test "$cross_compiling" = yes; then
29877                jm_cv_func_working_re_compile_pattern=no
29878 else
29879   cat >conftest.$ac_ext <<_ACEOF
29880 #line $LINENO "configure"
29881 /* confdefs.h.  */
29882 _ACEOF
29883 cat confdefs.h >>conftest.$ac_ext
29884 cat >>conftest.$ac_ext <<_ACEOF
29885 /* end confdefs.h.  */
29886 #include <stdio.h>
29887 #include <string.h>
29888 #include <regex.h>
29889           int
29890           main ()
29891           {
29892             static struct re_pattern_buffer regex;
29893             const char *s;
29894             struct re_registers regs;
29895             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
29896             memset (&regex, 0, sizeof (regex));
29897             s = re_compile_pattern ("a[[:]:]]b\n", 9, &regex);
29898             /* This should fail with _Invalid character class name_ error.  */
29899             if (!s)
29900               exit (1);
29901
29902             /* This should succeed, but doesn't for e.g. glibc-2.1.3.  */
29903             memset (&regex, 0, sizeof (regex));
29904             s = re_compile_pattern ("{1", 2, &regex);
29905
29906             if (s)
29907               exit (1);
29908
29909             /* The following example is derived from a problem report
29910                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
29911             memset (&regex, 0, sizeof (regex));
29912             s = re_compile_pattern ("[anù]*n", 7, &regex);
29913             if (s)
29914               exit (1);
29915
29916             /* This should match, but doesn't for e.g. glibc-2.2.1.  */
29917             if (re_match (&regex, "an", 2, 0, &regs) != 2)
29918               exit (1);
29919
29920             memset (&regex, 0, sizeof (regex));
29921             s = re_compile_pattern ("x", 1, &regex);
29922             if (s)
29923               exit (1);
29924
29925             /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
29926                work with a negative RANGE argument.  */
29927             if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
29928               exit (1);
29929
29930             exit (0);
29931           }
29932
29933 _ACEOF
29934 rm -f conftest$ac_exeext
29935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29936   (eval $ac_link) 2>&5
29937   ac_status=$?
29938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29939   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29941   (eval $ac_try) 2>&5
29942   ac_status=$?
29943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944   (exit $ac_status); }; }; then
29945   jm_cv_func_working_re_compile_pattern=yes
29946 else
29947   echo "$as_me: program exited with status $ac_status" >&5
29948 echo "$as_me: failed program was:" >&5
29949 sed 's/^/| /' conftest.$ac_ext >&5
29950
29951 ( exit $ac_status )
29952 jm_cv_func_working_re_compile_pattern=no
29953 fi
29954 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29955 fi
29956 fi
29957 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
29958 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
29959     if test $jm_cv_func_working_re_compile_pattern = yes; then
29960       ac_use_included_regex=no
29961     fi
29962
29963     test -n "lib/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
29964 echo "$as_me: error: missing argument" >&2;}
29965    { (exit 1); exit 1; }; }
29966
29967
29968
29969 # Check whether --with-included-regex or --without-included-regex was given.
29970 if test "${with_included_regex+set}" = set; then
29971   withval="$with_included_regex"
29972   jm_with_regex=$withval
29973 else
29974   jm_with_regex=$ac_use_included_regex
29975 fi;
29976         if test "$jm_with_regex" = yes; then
29977           LIBOBJS="$LIBOBJS regex.$ac_objext"
29978
29979
29980
29981
29982
29983
29984
29985   :
29986
29987
29988
29989
29990
29991
29992
29993
29994
29995
29996
29997
29998
29999
30000
30001   :
30002
30003
30004
30005
30006
30007
30008
30009
30010
30011 for ac_func in btowc
30012 do
30013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30014 echo "$as_me:$LINENO: checking for $ac_func" >&5
30015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30016 if eval "test \"\${$as_ac_var+set}\" = set"; then
30017   echo $ECHO_N "(cached) $ECHO_C" >&6
30018 else
30019   cat >conftest.$ac_ext <<_ACEOF
30020 #line $LINENO "configure"
30021 /* confdefs.h.  */
30022 _ACEOF
30023 cat confdefs.h >>conftest.$ac_ext
30024 cat >>conftest.$ac_ext <<_ACEOF
30025 /* end confdefs.h.  */
30026 /* System header to define __stub macros and hopefully few prototypes,
30027     which can conflict with char $ac_func (); below.
30028     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30029     <limits.h> exists even on freestanding compilers.  */
30030 #ifdef __STDC__
30031 # include <limits.h>
30032 #else
30033 # include <assert.h>
30034 #endif
30035 /* Override any gcc2 internal prototype to avoid an error.  */
30036 #ifdef __cplusplus
30037 extern "C"
30038 {
30039 #endif
30040 /* We use char because int might match the return type of a gcc2
30041    builtin and then its argument prototype would still apply.  */
30042 char $ac_func ();
30043 /* The GNU C library defines this for functions which it implements
30044     to always fail with ENOSYS.  Some functions are actually named
30045     something starting with __ and the normal name is an alias.  */
30046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30047 choke me
30048 #else
30049 char (*f) () = $ac_func;
30050 #endif
30051 #ifdef __cplusplus
30052 }
30053 #endif
30054
30055 int
30056 main ()
30057 {
30058 return f != $ac_func;
30059   ;
30060   return 0;
30061 }
30062 _ACEOF
30063 rm -f conftest.$ac_objext conftest$ac_exeext
30064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30065   (eval $ac_link) 2>&5
30066   ac_status=$?
30067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068   (exit $ac_status); } &&
30069          { ac_try='test -s conftest$ac_exeext'
30070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30071   (eval $ac_try) 2>&5
30072   ac_status=$?
30073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074   (exit $ac_status); }; }; then
30075   eval "$as_ac_var=yes"
30076 else
30077   echo "$as_me: failed program was:" >&5
30078 sed 's/^/| /' conftest.$ac_ext >&5
30079
30080 eval "$as_ac_var=no"
30081 fi
30082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30083 fi
30084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30086 if test `eval echo '${'$as_ac_var'}'` = yes; then
30087   cat >>confdefs.h <<_ACEOF
30088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30089 _ACEOF
30090
30091 fi
30092 done
30093
30094
30095         fi
30096
30097
30098
30099
30100
30101
30102
30103
30104
30105
30106
30107
30108
30109
30110
30111
30112
30113
30114
30115
30116
30117
30118
30119
30120
30121
30122
30123
30124
30125
30126
30127
30128
30129
30130
30131
30132
30133
30134
30135
30136
30137
30138
30139   # This is for od and stat, and any other program that
30140   # uses the PRI.MAX macros from inttypes.h.
30141
30142
30143
30144
30145
30146
30147
30148
30149
30150   ac_have_func=no # yes means we've found a way to get the load average.
30151
30152 # Make sure getloadavg.c is where it belongs, at configure-time.
30153 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
30154   { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
30155 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
30156    { (exit 1); exit 1; }; }
30157
30158 ac_save_LIBS=$LIBS
30159
30160 # Check for getloadavg, but be sure not to touch the cache variable.
30161 (echo "$as_me:$LINENO: checking for getloadavg" >&5
30162 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
30163 if test "${ac_cv_func_getloadavg+set}" = set; then
30164   echo $ECHO_N "(cached) $ECHO_C" >&6
30165 else
30166   cat >conftest.$ac_ext <<_ACEOF
30167 #line $LINENO "configure"
30168 /* confdefs.h.  */
30169 _ACEOF
30170 cat confdefs.h >>conftest.$ac_ext
30171 cat >>conftest.$ac_ext <<_ACEOF
30172 /* end confdefs.h.  */
30173 /* System header to define __stub macros and hopefully few prototypes,
30174     which can conflict with char getloadavg (); below.
30175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30176     <limits.h> exists even on freestanding compilers.  */
30177 #ifdef __STDC__
30178 # include <limits.h>
30179 #else
30180 # include <assert.h>
30181 #endif
30182 /* Override any gcc2 internal prototype to avoid an error.  */
30183 #ifdef __cplusplus
30184 extern "C"
30185 {
30186 #endif
30187 /* We use char because int might match the return type of a gcc2
30188    builtin and then its argument prototype would still apply.  */
30189 char getloadavg ();
30190 /* The GNU C library defines this for functions which it implements
30191     to always fail with ENOSYS.  Some functions are actually named
30192     something starting with __ and the normal name is an alias.  */
30193 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
30194 choke me
30195 #else
30196 char (*f) () = getloadavg;
30197 #endif
30198 #ifdef __cplusplus
30199 }
30200 #endif
30201
30202 int
30203 main ()
30204 {
30205 return f != getloadavg;
30206   ;
30207   return 0;
30208 }
30209 _ACEOF
30210 rm -f conftest.$ac_objext conftest$ac_exeext
30211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30212   (eval $ac_link) 2>&5
30213   ac_status=$?
30214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215   (exit $ac_status); } &&
30216          { ac_try='test -s conftest$ac_exeext'
30217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30218   (eval $ac_try) 2>&5
30219   ac_status=$?
30220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30221   (exit $ac_status); }; }; then
30222   ac_cv_func_getloadavg=yes
30223 else
30224   echo "$as_me: failed program was:" >&5
30225 sed 's/^/| /' conftest.$ac_ext >&5
30226
30227 ac_cv_func_getloadavg=no
30228 fi
30229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30230 fi
30231 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
30232 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
30233 if test $ac_cv_func_getloadavg = yes; then
30234   exit 0
30235 else
30236   exit 1
30237 fi
30238 ) && ac_have_func=yes
30239
30240 # On HPUX9, an unprivileged user can get load averages through this function.
30241
30242 for ac_func in pstat_getdynamic
30243 do
30244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30245 echo "$as_me:$LINENO: checking for $ac_func" >&5
30246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30247 if eval "test \"\${$as_ac_var+set}\" = set"; then
30248   echo $ECHO_N "(cached) $ECHO_C" >&6
30249 else
30250   cat >conftest.$ac_ext <<_ACEOF
30251 #line $LINENO "configure"
30252 /* confdefs.h.  */
30253 _ACEOF
30254 cat confdefs.h >>conftest.$ac_ext
30255 cat >>conftest.$ac_ext <<_ACEOF
30256 /* end confdefs.h.  */
30257 /* System header to define __stub macros and hopefully few prototypes,
30258     which can conflict with char $ac_func (); below.
30259     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30260     <limits.h> exists even on freestanding compilers.  */
30261 #ifdef __STDC__
30262 # include <limits.h>
30263 #else
30264 # include <assert.h>
30265 #endif
30266 /* Override any gcc2 internal prototype to avoid an error.  */
30267 #ifdef __cplusplus
30268 extern "C"
30269 {
30270 #endif
30271 /* We use char because int might match the return type of a gcc2
30272    builtin and then its argument prototype would still apply.  */
30273 char $ac_func ();
30274 /* The GNU C library defines this for functions which it implements
30275     to always fail with ENOSYS.  Some functions are actually named
30276     something starting with __ and the normal name is an alias.  */
30277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30278 choke me
30279 #else
30280 char (*f) () = $ac_func;
30281 #endif
30282 #ifdef __cplusplus
30283 }
30284 #endif
30285
30286 int
30287 main ()
30288 {
30289 return f != $ac_func;
30290   ;
30291   return 0;
30292 }
30293 _ACEOF
30294 rm -f conftest.$ac_objext conftest$ac_exeext
30295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30296   (eval $ac_link) 2>&5
30297   ac_status=$?
30298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299   (exit $ac_status); } &&
30300          { ac_try='test -s conftest$ac_exeext'
30301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30302   (eval $ac_try) 2>&5
30303   ac_status=$?
30304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305   (exit $ac_status); }; }; then
30306   eval "$as_ac_var=yes"
30307 else
30308   echo "$as_me: failed program was:" >&5
30309 sed 's/^/| /' conftest.$ac_ext >&5
30310
30311 eval "$as_ac_var=no"
30312 fi
30313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30314 fi
30315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30317 if test `eval echo '${'$as_ac_var'}'` = yes; then
30318   cat >>confdefs.h <<_ACEOF
30319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30320 _ACEOF
30321
30322 fi
30323 done
30324
30325
30326 # Solaris has libkstat which does not require root.
30327
30328 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
30329 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
30330 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
30331   echo $ECHO_N "(cached) $ECHO_C" >&6
30332 else
30333   ac_check_lib_save_LIBS=$LIBS
30334 LIBS="-lkstat  $LIBS"
30335 cat >conftest.$ac_ext <<_ACEOF
30336 #line $LINENO "configure"
30337 /* confdefs.h.  */
30338 _ACEOF
30339 cat confdefs.h >>conftest.$ac_ext
30340 cat >>conftest.$ac_ext <<_ACEOF
30341 /* end confdefs.h.  */
30342
30343 /* Override any gcc2 internal prototype to avoid an error.  */
30344 #ifdef __cplusplus
30345 extern "C"
30346 #endif
30347 /* We use char because int might match the return type of a gcc2
30348    builtin and then its argument prototype would still apply.  */
30349 char kstat_open ();
30350 int
30351 main ()
30352 {
30353 kstat_open ();
30354   ;
30355   return 0;
30356 }
30357 _ACEOF
30358 rm -f conftest.$ac_objext conftest$ac_exeext
30359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30360   (eval $ac_link) 2>&5
30361   ac_status=$?
30362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363   (exit $ac_status); } &&
30364          { ac_try='test -s conftest$ac_exeext'
30365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30366   (eval $ac_try) 2>&5
30367   ac_status=$?
30368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30369   (exit $ac_status); }; }; then
30370   ac_cv_lib_kstat_kstat_open=yes
30371 else
30372   echo "$as_me: failed program was:" >&5
30373 sed 's/^/| /' conftest.$ac_ext >&5
30374
30375 ac_cv_lib_kstat_kstat_open=no
30376 fi
30377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30378 LIBS=$ac_check_lib_save_LIBS
30379 fi
30380 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
30381 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
30382 if test $ac_cv_lib_kstat_kstat_open = yes; then
30383   cat >>confdefs.h <<_ACEOF
30384 #define HAVE_LIBKSTAT 1
30385 _ACEOF
30386
30387   LIBS="-lkstat $LIBS"
30388
30389 fi
30390
30391 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
30392
30393 # Some systems with -lutil have (and need) -lkvm as well, some do not.
30394 # On Solaris, -lkvm requires nlist from -lelf, so check that first
30395 # to get the right answer into the cache.
30396 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
30397 if test $ac_have_func = no; then
30398   echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
30399 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
30400 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
30401   echo $ECHO_N "(cached) $ECHO_C" >&6
30402 else
30403   ac_check_lib_save_LIBS=$LIBS
30404 LIBS="-lelf  $LIBS"
30405 cat >conftest.$ac_ext <<_ACEOF
30406 #line $LINENO "configure"
30407 /* confdefs.h.  */
30408 _ACEOF
30409 cat confdefs.h >>conftest.$ac_ext
30410 cat >>conftest.$ac_ext <<_ACEOF
30411 /* end confdefs.h.  */
30412
30413 /* Override any gcc2 internal prototype to avoid an error.  */
30414 #ifdef __cplusplus
30415 extern "C"
30416 #endif
30417 /* We use char because int might match the return type of a gcc2
30418    builtin and then its argument prototype would still apply.  */
30419 char elf_begin ();
30420 int
30421 main ()
30422 {
30423 elf_begin ();
30424   ;
30425   return 0;
30426 }
30427 _ACEOF
30428 rm -f conftest.$ac_objext conftest$ac_exeext
30429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30430   (eval $ac_link) 2>&5
30431   ac_status=$?
30432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433   (exit $ac_status); } &&
30434          { ac_try='test -s conftest$ac_exeext'
30435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30436   (eval $ac_try) 2>&5
30437   ac_status=$?
30438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439   (exit $ac_status); }; }; then
30440   ac_cv_lib_elf_elf_begin=yes
30441 else
30442   echo "$as_me: failed program was:" >&5
30443 sed 's/^/| /' conftest.$ac_ext >&5
30444
30445 ac_cv_lib_elf_elf_begin=no
30446 fi
30447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30448 LIBS=$ac_check_lib_save_LIBS
30449 fi
30450 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
30451 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
30452 if test $ac_cv_lib_elf_elf_begin = yes; then
30453   LIBS="-lelf $LIBS"
30454 fi
30455
30456 fi
30457 if test $ac_have_func = no; then
30458   echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
30459 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
30460 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
30461   echo $ECHO_N "(cached) $ECHO_C" >&6
30462 else
30463   ac_check_lib_save_LIBS=$LIBS
30464 LIBS="-lkvm  $LIBS"
30465 cat >conftest.$ac_ext <<_ACEOF
30466 #line $LINENO "configure"
30467 /* confdefs.h.  */
30468 _ACEOF
30469 cat confdefs.h >>conftest.$ac_ext
30470 cat >>conftest.$ac_ext <<_ACEOF
30471 /* end confdefs.h.  */
30472
30473 /* Override any gcc2 internal prototype to avoid an error.  */
30474 #ifdef __cplusplus
30475 extern "C"
30476 #endif
30477 /* We use char because int might match the return type of a gcc2
30478    builtin and then its argument prototype would still apply.  */
30479 char kvm_open ();
30480 int
30481 main ()
30482 {
30483 kvm_open ();
30484   ;
30485   return 0;
30486 }
30487 _ACEOF
30488 rm -f conftest.$ac_objext conftest$ac_exeext
30489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30490   (eval $ac_link) 2>&5
30491   ac_status=$?
30492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30493   (exit $ac_status); } &&
30494          { ac_try='test -s conftest$ac_exeext'
30495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30496   (eval $ac_try) 2>&5
30497   ac_status=$?
30498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499   (exit $ac_status); }; }; then
30500   ac_cv_lib_kvm_kvm_open=yes
30501 else
30502   echo "$as_me: failed program was:" >&5
30503 sed 's/^/| /' conftest.$ac_ext >&5
30504
30505 ac_cv_lib_kvm_kvm_open=no
30506 fi
30507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30508 LIBS=$ac_check_lib_save_LIBS
30509 fi
30510 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
30511 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
30512 if test $ac_cv_lib_kvm_kvm_open = yes; then
30513   LIBS="-lkvm $LIBS"
30514 fi
30515
30516   # Check for the 4.4BSD definition of getloadavg.
30517   echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
30518 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
30519 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
30520   echo $ECHO_N "(cached) $ECHO_C" >&6
30521 else
30522   ac_check_lib_save_LIBS=$LIBS
30523 LIBS="-lutil  $LIBS"
30524 cat >conftest.$ac_ext <<_ACEOF
30525 #line $LINENO "configure"
30526 /* confdefs.h.  */
30527 _ACEOF
30528 cat confdefs.h >>conftest.$ac_ext
30529 cat >>conftest.$ac_ext <<_ACEOF
30530 /* end confdefs.h.  */
30531
30532 /* Override any gcc2 internal prototype to avoid an error.  */
30533 #ifdef __cplusplus
30534 extern "C"
30535 #endif
30536 /* We use char because int might match the return type of a gcc2
30537    builtin and then its argument prototype would still apply.  */
30538 char getloadavg ();
30539 int
30540 main ()
30541 {
30542 getloadavg ();
30543   ;
30544   return 0;
30545 }
30546 _ACEOF
30547 rm -f conftest.$ac_objext conftest$ac_exeext
30548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30549   (eval $ac_link) 2>&5
30550   ac_status=$?
30551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552   (exit $ac_status); } &&
30553          { ac_try='test -s conftest$ac_exeext'
30554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30555   (eval $ac_try) 2>&5
30556   ac_status=$?
30557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558   (exit $ac_status); }; }; then
30559   ac_cv_lib_util_getloadavg=yes
30560 else
30561   echo "$as_me: failed program was:" >&5
30562 sed 's/^/| /' conftest.$ac_ext >&5
30563
30564 ac_cv_lib_util_getloadavg=no
30565 fi
30566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30567 LIBS=$ac_check_lib_save_LIBS
30568 fi
30569 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
30570 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
30571 if test $ac_cv_lib_util_getloadavg = yes; then
30572   LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
30573 fi
30574
30575 fi
30576
30577 if test $ac_have_func = no; then
30578   # There is a commonly available library for RS/6000 AIX.
30579   # Since it is not a standard part of AIX, it might be installed locally.
30580   ac_getloadavg_LIBS=$LIBS
30581   LIBS="-L/usr/local/lib $LIBS"
30582   echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
30583 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
30584 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
30585   echo $ECHO_N "(cached) $ECHO_C" >&6
30586 else
30587   ac_check_lib_save_LIBS=$LIBS
30588 LIBS="-lgetloadavg  $LIBS"
30589 cat >conftest.$ac_ext <<_ACEOF
30590 #line $LINENO "configure"
30591 /* confdefs.h.  */
30592 _ACEOF
30593 cat confdefs.h >>conftest.$ac_ext
30594 cat >>conftest.$ac_ext <<_ACEOF
30595 /* end confdefs.h.  */
30596
30597 /* Override any gcc2 internal prototype to avoid an error.  */
30598 #ifdef __cplusplus
30599 extern "C"
30600 #endif
30601 /* We use char because int might match the return type of a gcc2
30602    builtin and then its argument prototype would still apply.  */
30603 char getloadavg ();
30604 int
30605 main ()
30606 {
30607 getloadavg ();
30608   ;
30609   return 0;
30610 }
30611 _ACEOF
30612 rm -f conftest.$ac_objext conftest$ac_exeext
30613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30614   (eval $ac_link) 2>&5
30615   ac_status=$?
30616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617   (exit $ac_status); } &&
30618          { ac_try='test -s conftest$ac_exeext'
30619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30620   (eval $ac_try) 2>&5
30621   ac_status=$?
30622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623   (exit $ac_status); }; }; then
30624   ac_cv_lib_getloadavg_getloadavg=yes
30625 else
30626   echo "$as_me: failed program was:" >&5
30627 sed 's/^/| /' conftest.$ac_ext >&5
30628
30629 ac_cv_lib_getloadavg_getloadavg=no
30630 fi
30631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30632 LIBS=$ac_check_lib_save_LIBS
30633 fi
30634 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
30635 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
30636 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
30637   LIBS="-lgetloadavg $LIBS"
30638 else
30639   LIBS=$ac_getloadavg_LIBS
30640 fi
30641
30642 fi
30643
30644 # Make sure it is really in the library, if we think we found it,
30645 # otherwise set up the replacement function.
30646
30647 for ac_func in getloadavg
30648 do
30649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30650 echo "$as_me:$LINENO: checking for $ac_func" >&5
30651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30652 if eval "test \"\${$as_ac_var+set}\" = set"; then
30653   echo $ECHO_N "(cached) $ECHO_C" >&6
30654 else
30655   cat >conftest.$ac_ext <<_ACEOF
30656 #line $LINENO "configure"
30657 /* confdefs.h.  */
30658 _ACEOF
30659 cat confdefs.h >>conftest.$ac_ext
30660 cat >>conftest.$ac_ext <<_ACEOF
30661 /* end confdefs.h.  */
30662 /* System header to define __stub macros and hopefully few prototypes,
30663     which can conflict with char $ac_func (); below.
30664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30665     <limits.h> exists even on freestanding compilers.  */
30666 #ifdef __STDC__
30667 # include <limits.h>
30668 #else
30669 # include <assert.h>
30670 #endif
30671 /* Override any gcc2 internal prototype to avoid an error.  */
30672 #ifdef __cplusplus
30673 extern "C"
30674 {
30675 #endif
30676 /* We use char because int might match the return type of a gcc2
30677    builtin and then its argument prototype would still apply.  */
30678 char $ac_func ();
30679 /* The GNU C library defines this for functions which it implements
30680     to always fail with ENOSYS.  Some functions are actually named
30681     something starting with __ and the normal name is an alias.  */
30682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30683 choke me
30684 #else
30685 char (*f) () = $ac_func;
30686 #endif
30687 #ifdef __cplusplus
30688 }
30689 #endif
30690
30691 int
30692 main ()
30693 {
30694 return f != $ac_func;
30695   ;
30696   return 0;
30697 }
30698 _ACEOF
30699 rm -f conftest.$ac_objext conftest$ac_exeext
30700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30701   (eval $ac_link) 2>&5
30702   ac_status=$?
30703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30704   (exit $ac_status); } &&
30705          { ac_try='test -s conftest$ac_exeext'
30706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30707   (eval $ac_try) 2>&5
30708   ac_status=$?
30709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710   (exit $ac_status); }; }; then
30711   eval "$as_ac_var=yes"
30712 else
30713   echo "$as_me: failed program was:" >&5
30714 sed 's/^/| /' conftest.$ac_ext >&5
30715
30716 eval "$as_ac_var=no"
30717 fi
30718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30719 fi
30720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30722 if test `eval echo '${'$as_ac_var'}'` = yes; then
30723   cat >>confdefs.h <<_ACEOF
30724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30725 _ACEOF
30726
30727 else
30728   LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
30729
30730 cat >>confdefs.h <<\_ACEOF
30731 #define C_GETLOADAVG 1
30732 _ACEOF
30733
30734 # Figure out what our getloadavg.c needs.
30735 ac_have_func=no
30736 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
30737   echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
30738 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
30739 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
30740   echo $ECHO_N "(cached) $ECHO_C" >&6
30741 fi
30742 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
30743 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
30744 else
30745   # Is the header compilable?
30746 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
30747 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
30748 cat >conftest.$ac_ext <<_ACEOF
30749 #line $LINENO "configure"
30750 /* confdefs.h.  */
30751 _ACEOF
30752 cat confdefs.h >>conftest.$ac_ext
30753 cat >>conftest.$ac_ext <<_ACEOF
30754 /* end confdefs.h.  */
30755 $ac_includes_default
30756 #include <sys/dg_sys_info.h>
30757 _ACEOF
30758 rm -f conftest.$ac_objext
30759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30760   (eval $ac_compile) 2>&5
30761   ac_status=$?
30762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30763   (exit $ac_status); } &&
30764          { ac_try='test -s conftest.$ac_objext'
30765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30766   (eval $ac_try) 2>&5
30767   ac_status=$?
30768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30769   (exit $ac_status); }; }; then
30770   ac_header_compiler=yes
30771 else
30772   echo "$as_me: failed program was:" >&5
30773 sed 's/^/| /' conftest.$ac_ext >&5
30774
30775 ac_header_compiler=no
30776 fi
30777 rm -f conftest.$ac_objext conftest.$ac_ext
30778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30779 echo "${ECHO_T}$ac_header_compiler" >&6
30780
30781 # Is the header present?
30782 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
30783 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
30784 cat >conftest.$ac_ext <<_ACEOF
30785 #line $LINENO "configure"
30786 /* confdefs.h.  */
30787 _ACEOF
30788 cat confdefs.h >>conftest.$ac_ext
30789 cat >>conftest.$ac_ext <<_ACEOF
30790 /* end confdefs.h.  */
30791 #include <sys/dg_sys_info.h>
30792 _ACEOF
30793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30794   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30795   ac_status=$?
30796   grep -v '^ *+' conftest.er1 >conftest.err
30797   rm -f conftest.er1
30798   cat conftest.err >&5
30799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800   (exit $ac_status); } >/dev/null; then
30801   if test -s conftest.err; then
30802     ac_cpp_err=$ac_c_preproc_warn_flag
30803   else
30804     ac_cpp_err=
30805   fi
30806 else
30807   ac_cpp_err=yes
30808 fi
30809 if test -z "$ac_cpp_err"; then
30810   ac_header_preproc=yes
30811 else
30812   echo "$as_me: failed program was:" >&5
30813 sed 's/^/| /' conftest.$ac_ext >&5
30814
30815   ac_header_preproc=no
30816 fi
30817 rm -f conftest.err conftest.$ac_ext
30818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30819 echo "${ECHO_T}$ac_header_preproc" >&6
30820
30821 # So?  What about this header?
30822 case $ac_header_compiler:$ac_header_preproc in
30823   yes:no )
30824     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
30825 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30826     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
30827 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
30828     (
30829       cat <<\_ASBOX
30830 ## ------------------------------------ ##
30831 ## Report this to bug-autoconf@gnu.org. ##
30832 ## ------------------------------------ ##
30833 _ASBOX
30834     ) |
30835       sed "s/^/$as_me: WARNING:     /" >&2
30836     ;;
30837   no:yes )
30838     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
30839 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
30840     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
30841 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
30842     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
30843 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
30844     (
30845       cat <<\_ASBOX
30846 ## ------------------------------------ ##
30847 ## Report this to bug-autoconf@gnu.org. ##
30848 ## ------------------------------------ ##
30849 _ASBOX
30850     ) |
30851       sed "s/^/$as_me: WARNING:     /" >&2
30852     ;;
30853 esac
30854 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
30855 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
30856 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
30857   echo $ECHO_N "(cached) $ECHO_C" >&6
30858 else
30859   ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
30860 fi
30861 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
30862 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
30863
30864 fi
30865 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
30866   ac_have_func=yes
30867
30868 cat >>confdefs.h <<\_ACEOF
30869 #define DGUX 1
30870 _ACEOF
30871
30872
30873 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
30874 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
30875 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
30876   echo $ECHO_N "(cached) $ECHO_C" >&6
30877 else
30878   ac_check_lib_save_LIBS=$LIBS
30879 LIBS="-ldgc  $LIBS"
30880 cat >conftest.$ac_ext <<_ACEOF
30881 #line $LINENO "configure"
30882 /* confdefs.h.  */
30883 _ACEOF
30884 cat confdefs.h >>conftest.$ac_ext
30885 cat >>conftest.$ac_ext <<_ACEOF
30886 /* end confdefs.h.  */
30887
30888 /* Override any gcc2 internal prototype to avoid an error.  */
30889 #ifdef __cplusplus
30890 extern "C"
30891 #endif
30892 /* We use char because int might match the return type of a gcc2
30893    builtin and then its argument prototype would still apply.  */
30894 char dg_sys_info ();
30895 int
30896 main ()
30897 {
30898 dg_sys_info ();
30899   ;
30900   return 0;
30901 }
30902 _ACEOF
30903 rm -f conftest.$ac_objext conftest$ac_exeext
30904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30905   (eval $ac_link) 2>&5
30906   ac_status=$?
30907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30908   (exit $ac_status); } &&
30909          { ac_try='test -s conftest$ac_exeext'
30910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30911   (eval $ac_try) 2>&5
30912   ac_status=$?
30913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30914   (exit $ac_status); }; }; then
30915   ac_cv_lib_dgc_dg_sys_info=yes
30916 else
30917   echo "$as_me: failed program was:" >&5
30918 sed 's/^/| /' conftest.$ac_ext >&5
30919
30920 ac_cv_lib_dgc_dg_sys_info=no
30921 fi
30922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30923 LIBS=$ac_check_lib_save_LIBS
30924 fi
30925 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
30926 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
30927 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
30928   cat >>confdefs.h <<_ACEOF
30929 #define HAVE_LIBDGC 1
30930 _ACEOF
30931
30932   LIBS="-ldgc $LIBS"
30933
30934 fi
30935
30936 fi
30937
30938
30939
30940 if test "${ac_cv_header_locale_h+set}" = set; then
30941   echo "$as_me:$LINENO: checking for locale.h" >&5
30942 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
30943 if test "${ac_cv_header_locale_h+set}" = set; then
30944   echo $ECHO_N "(cached) $ECHO_C" >&6
30945 fi
30946 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
30947 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
30948 else
30949   # Is the header compilable?
30950 echo "$as_me:$LINENO: checking locale.h usability" >&5
30951 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
30952 cat >conftest.$ac_ext <<_ACEOF
30953 #line $LINENO "configure"
30954 /* confdefs.h.  */
30955 _ACEOF
30956 cat confdefs.h >>conftest.$ac_ext
30957 cat >>conftest.$ac_ext <<_ACEOF
30958 /* end confdefs.h.  */
30959 $ac_includes_default
30960 #include <locale.h>
30961 _ACEOF
30962 rm -f conftest.$ac_objext
30963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30964   (eval $ac_compile) 2>&5
30965   ac_status=$?
30966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967   (exit $ac_status); } &&
30968          { ac_try='test -s conftest.$ac_objext'
30969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30970   (eval $ac_try) 2>&5
30971   ac_status=$?
30972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973   (exit $ac_status); }; }; then
30974   ac_header_compiler=yes
30975 else
30976   echo "$as_me: failed program was:" >&5
30977 sed 's/^/| /' conftest.$ac_ext >&5
30978
30979 ac_header_compiler=no
30980 fi
30981 rm -f conftest.$ac_objext conftest.$ac_ext
30982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30983 echo "${ECHO_T}$ac_header_compiler" >&6
30984
30985 # Is the header present?
30986 echo "$as_me:$LINENO: checking locale.h presence" >&5
30987 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
30988 cat >conftest.$ac_ext <<_ACEOF
30989 #line $LINENO "configure"
30990 /* confdefs.h.  */
30991 _ACEOF
30992 cat confdefs.h >>conftest.$ac_ext
30993 cat >>conftest.$ac_ext <<_ACEOF
30994 /* end confdefs.h.  */
30995 #include <locale.h>
30996 _ACEOF
30997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30998   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30999   ac_status=$?
31000   grep -v '^ *+' conftest.er1 >conftest.err
31001   rm -f conftest.er1
31002   cat conftest.err >&5
31003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004   (exit $ac_status); } >/dev/null; then
31005   if test -s conftest.err; then
31006     ac_cpp_err=$ac_c_preproc_warn_flag
31007   else
31008     ac_cpp_err=
31009   fi
31010 else
31011   ac_cpp_err=yes
31012 fi
31013 if test -z "$ac_cpp_err"; then
31014   ac_header_preproc=yes
31015 else
31016   echo "$as_me: failed program was:" >&5
31017 sed 's/^/| /' conftest.$ac_ext >&5
31018
31019   ac_header_preproc=no
31020 fi
31021 rm -f conftest.err conftest.$ac_ext
31022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31023 echo "${ECHO_T}$ac_header_preproc" >&6
31024
31025 # So?  What about this header?
31026 case $ac_header_compiler:$ac_header_preproc in
31027   yes:no )
31028     { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
31029 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31030     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
31031 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
31032     (
31033       cat <<\_ASBOX
31034 ## ------------------------------------ ##
31035 ## Report this to bug-autoconf@gnu.org. ##
31036 ## ------------------------------------ ##
31037 _ASBOX
31038     ) |
31039       sed "s/^/$as_me: WARNING:     /" >&2
31040     ;;
31041   no:yes )
31042     { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
31043 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
31044     { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
31045 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
31046     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
31047 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
31048     (
31049       cat <<\_ASBOX
31050 ## ------------------------------------ ##
31051 ## Report this to bug-autoconf@gnu.org. ##
31052 ## ------------------------------------ ##
31053 _ASBOX
31054     ) |
31055       sed "s/^/$as_me: WARNING:     /" >&2
31056     ;;
31057 esac
31058 echo "$as_me:$LINENO: checking for locale.h" >&5
31059 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
31060 if test "${ac_cv_header_locale_h+set}" = set; then
31061   echo $ECHO_N "(cached) $ECHO_C" >&6
31062 else
31063   ac_cv_header_locale_h=$ac_header_preproc
31064 fi
31065 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
31066 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
31067
31068 fi
31069
31070
31071
31072 for ac_func in setlocale
31073 do
31074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31075 echo "$as_me:$LINENO: checking for $ac_func" >&5
31076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31077 if eval "test \"\${$as_ac_var+set}\" = set"; then
31078   echo $ECHO_N "(cached) $ECHO_C" >&6
31079 else
31080   cat >conftest.$ac_ext <<_ACEOF
31081 #line $LINENO "configure"
31082 /* confdefs.h.  */
31083 _ACEOF
31084 cat confdefs.h >>conftest.$ac_ext
31085 cat >>conftest.$ac_ext <<_ACEOF
31086 /* end confdefs.h.  */
31087 /* System header to define __stub macros and hopefully few prototypes,
31088     which can conflict with char $ac_func (); below.
31089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31090     <limits.h> exists even on freestanding compilers.  */
31091 #ifdef __STDC__
31092 # include <limits.h>
31093 #else
31094 # include <assert.h>
31095 #endif
31096 /* Override any gcc2 internal prototype to avoid an error.  */
31097 #ifdef __cplusplus
31098 extern "C"
31099 {
31100 #endif
31101 /* We use char because int might match the return type of a gcc2
31102    builtin and then its argument prototype would still apply.  */
31103 char $ac_func ();
31104 /* The GNU C library defines this for functions which it implements
31105     to always fail with ENOSYS.  Some functions are actually named
31106     something starting with __ and the normal name is an alias.  */
31107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31108 choke me
31109 #else
31110 char (*f) () = $ac_func;
31111 #endif
31112 #ifdef __cplusplus
31113 }
31114 #endif
31115
31116 int
31117 main ()
31118 {
31119 return f != $ac_func;
31120   ;
31121   return 0;
31122 }
31123 _ACEOF
31124 rm -f conftest.$ac_objext conftest$ac_exeext
31125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31126   (eval $ac_link) 2>&5
31127   ac_status=$?
31128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31129   (exit $ac_status); } &&
31130          { ac_try='test -s conftest$ac_exeext'
31131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31132   (eval $ac_try) 2>&5
31133   ac_status=$?
31134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135   (exit $ac_status); }; }; then
31136   eval "$as_ac_var=yes"
31137 else
31138   echo "$as_me: failed program was:" >&5
31139 sed 's/^/| /' conftest.$ac_ext >&5
31140
31141 eval "$as_ac_var=no"
31142 fi
31143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31144 fi
31145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31147 if test `eval echo '${'$as_ac_var'}'` = yes; then
31148   cat >>confdefs.h <<_ACEOF
31149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31150 _ACEOF
31151
31152 fi
31153 done
31154
31155
31156 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
31157 # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
31158 # Irix 4.0.5F has the header but not the library.
31159 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
31160   ac_have_func=yes
31161
31162 cat >>confdefs.h <<\_ACEOF
31163 #define SVR4 1
31164 _ACEOF
31165
31166 fi
31167
31168 if test $ac_have_func = no; then
31169   if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
31170   echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
31171 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
31172 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
31173   echo $ECHO_N "(cached) $ECHO_C" >&6
31174 fi
31175 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
31176 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
31177 else
31178   # Is the header compilable?
31179 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
31180 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
31181 cat >conftest.$ac_ext <<_ACEOF
31182 #line $LINENO "configure"
31183 /* confdefs.h.  */
31184 _ACEOF
31185 cat confdefs.h >>conftest.$ac_ext
31186 cat >>conftest.$ac_ext <<_ACEOF
31187 /* end confdefs.h.  */
31188 $ac_includes_default
31189 #include <inq_stats/cpustats.h>
31190 _ACEOF
31191 rm -f conftest.$ac_objext
31192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31193   (eval $ac_compile) 2>&5
31194   ac_status=$?
31195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31196   (exit $ac_status); } &&
31197          { ac_try='test -s conftest.$ac_objext'
31198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31199   (eval $ac_try) 2>&5
31200   ac_status=$?
31201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31202   (exit $ac_status); }; }; then
31203   ac_header_compiler=yes
31204 else
31205   echo "$as_me: failed program was:" >&5
31206 sed 's/^/| /' conftest.$ac_ext >&5
31207
31208 ac_header_compiler=no
31209 fi
31210 rm -f conftest.$ac_objext conftest.$ac_ext
31211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31212 echo "${ECHO_T}$ac_header_compiler" >&6
31213
31214 # Is the header present?
31215 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
31216 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
31217 cat >conftest.$ac_ext <<_ACEOF
31218 #line $LINENO "configure"
31219 /* confdefs.h.  */
31220 _ACEOF
31221 cat confdefs.h >>conftest.$ac_ext
31222 cat >>conftest.$ac_ext <<_ACEOF
31223 /* end confdefs.h.  */
31224 #include <inq_stats/cpustats.h>
31225 _ACEOF
31226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31227   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31228   ac_status=$?
31229   grep -v '^ *+' conftest.er1 >conftest.err
31230   rm -f conftest.er1
31231   cat conftest.err >&5
31232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233   (exit $ac_status); } >/dev/null; then
31234   if test -s conftest.err; then
31235     ac_cpp_err=$ac_c_preproc_warn_flag
31236   else
31237     ac_cpp_err=
31238   fi
31239 else
31240   ac_cpp_err=yes
31241 fi
31242 if test -z "$ac_cpp_err"; then
31243   ac_header_preproc=yes
31244 else
31245   echo "$as_me: failed program was:" >&5
31246 sed 's/^/| /' conftest.$ac_ext >&5
31247
31248   ac_header_preproc=no
31249 fi
31250 rm -f conftest.err conftest.$ac_ext
31251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31252 echo "${ECHO_T}$ac_header_preproc" >&6
31253
31254 # So?  What about this header?
31255 case $ac_header_compiler:$ac_header_preproc in
31256   yes:no )
31257     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
31258 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31259     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
31260 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
31261     (
31262       cat <<\_ASBOX
31263 ## ------------------------------------ ##
31264 ## Report this to bug-autoconf@gnu.org. ##
31265 ## ------------------------------------ ##
31266 _ASBOX
31267     ) |
31268       sed "s/^/$as_me: WARNING:     /" >&2
31269     ;;
31270   no:yes )
31271     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
31272 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
31273     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
31274 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
31275     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
31276 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
31277     (
31278       cat <<\_ASBOX
31279 ## ------------------------------------ ##
31280 ## Report this to bug-autoconf@gnu.org. ##
31281 ## ------------------------------------ ##
31282 _ASBOX
31283     ) |
31284       sed "s/^/$as_me: WARNING:     /" >&2
31285     ;;
31286 esac
31287 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
31288 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
31289 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
31290   echo $ECHO_N "(cached) $ECHO_C" >&6
31291 else
31292   ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
31293 fi
31294 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
31295 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
31296
31297 fi
31298 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
31299   ac_have_func=yes
31300
31301 cat >>confdefs.h <<\_ACEOF
31302 #define UMAX 1
31303 _ACEOF
31304
31305
31306 cat >>confdefs.h <<\_ACEOF
31307 #define UMAX4_3 1
31308 _ACEOF
31309
31310 fi
31311
31312
31313 fi
31314
31315 if test $ac_have_func = no; then
31316   if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
31317   echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
31318 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
31319 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
31320   echo $ECHO_N "(cached) $ECHO_C" >&6
31321 fi
31322 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
31323 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
31324 else
31325   # Is the header compilable?
31326 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
31327 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
31328 cat >conftest.$ac_ext <<_ACEOF
31329 #line $LINENO "configure"
31330 /* confdefs.h.  */
31331 _ACEOF
31332 cat confdefs.h >>conftest.$ac_ext
31333 cat >>conftest.$ac_ext <<_ACEOF
31334 /* end confdefs.h.  */
31335 $ac_includes_default
31336 #include <sys/cpustats.h>
31337 _ACEOF
31338 rm -f conftest.$ac_objext
31339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31340   (eval $ac_compile) 2>&5
31341   ac_status=$?
31342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343   (exit $ac_status); } &&
31344          { ac_try='test -s conftest.$ac_objext'
31345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31346   (eval $ac_try) 2>&5
31347   ac_status=$?
31348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349   (exit $ac_status); }; }; then
31350   ac_header_compiler=yes
31351 else
31352   echo "$as_me: failed program was:" >&5
31353 sed 's/^/| /' conftest.$ac_ext >&5
31354
31355 ac_header_compiler=no
31356 fi
31357 rm -f conftest.$ac_objext conftest.$ac_ext
31358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31359 echo "${ECHO_T}$ac_header_compiler" >&6
31360
31361 # Is the header present?
31362 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
31363 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
31364 cat >conftest.$ac_ext <<_ACEOF
31365 #line $LINENO "configure"
31366 /* confdefs.h.  */
31367 _ACEOF
31368 cat confdefs.h >>conftest.$ac_ext
31369 cat >>conftest.$ac_ext <<_ACEOF
31370 /* end confdefs.h.  */
31371 #include <sys/cpustats.h>
31372 _ACEOF
31373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31374   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31375   ac_status=$?
31376   grep -v '^ *+' conftest.er1 >conftest.err
31377   rm -f conftest.er1
31378   cat conftest.err >&5
31379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31380   (exit $ac_status); } >/dev/null; then
31381   if test -s conftest.err; then
31382     ac_cpp_err=$ac_c_preproc_warn_flag
31383   else
31384     ac_cpp_err=
31385   fi
31386 else
31387   ac_cpp_err=yes
31388 fi
31389 if test -z "$ac_cpp_err"; then
31390   ac_header_preproc=yes
31391 else
31392   echo "$as_me: failed program was:" >&5
31393 sed 's/^/| /' conftest.$ac_ext >&5
31394
31395   ac_header_preproc=no
31396 fi
31397 rm -f conftest.err conftest.$ac_ext
31398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31399 echo "${ECHO_T}$ac_header_preproc" >&6
31400
31401 # So?  What about this header?
31402 case $ac_header_compiler:$ac_header_preproc in
31403   yes:no )
31404     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
31405 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31406     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
31407 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
31408     (
31409       cat <<\_ASBOX
31410 ## ------------------------------------ ##
31411 ## Report this to bug-autoconf@gnu.org. ##
31412 ## ------------------------------------ ##
31413 _ASBOX
31414     ) |
31415       sed "s/^/$as_me: WARNING:     /" >&2
31416     ;;
31417   no:yes )
31418     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
31419 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
31420     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
31421 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
31422     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
31423 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
31424     (
31425       cat <<\_ASBOX
31426 ## ------------------------------------ ##
31427 ## Report this to bug-autoconf@gnu.org. ##
31428 ## ------------------------------------ ##
31429 _ASBOX
31430     ) |
31431       sed "s/^/$as_me: WARNING:     /" >&2
31432     ;;
31433 esac
31434 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
31435 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
31436 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
31437   echo $ECHO_N "(cached) $ECHO_C" >&6
31438 else
31439   ac_cv_header_sys_cpustats_h=$ac_header_preproc
31440 fi
31441 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
31442 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
31443
31444 fi
31445 if test $ac_cv_header_sys_cpustats_h = yes; then
31446   ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
31447 #define UMAX 1
31448 _ACEOF
31449
31450 fi
31451
31452
31453 fi
31454
31455 if test $ac_have_func = no; then
31456
31457 for ac_header in mach/mach.h
31458 do
31459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31461   echo "$as_me:$LINENO: checking for $ac_header" >&5
31462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31464   echo $ECHO_N "(cached) $ECHO_C" >&6
31465 fi
31466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31468 else
31469   # Is the header compilable?
31470 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31472 cat >conftest.$ac_ext <<_ACEOF
31473 #line $LINENO "configure"
31474 /* confdefs.h.  */
31475 _ACEOF
31476 cat confdefs.h >>conftest.$ac_ext
31477 cat >>conftest.$ac_ext <<_ACEOF
31478 /* end confdefs.h.  */
31479 $ac_includes_default
31480 #include <$ac_header>
31481 _ACEOF
31482 rm -f conftest.$ac_objext
31483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31484   (eval $ac_compile) 2>&5
31485   ac_status=$?
31486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487   (exit $ac_status); } &&
31488          { ac_try='test -s conftest.$ac_objext'
31489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31490   (eval $ac_try) 2>&5
31491   ac_status=$?
31492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31493   (exit $ac_status); }; }; then
31494   ac_header_compiler=yes
31495 else
31496   echo "$as_me: failed program was:" >&5
31497 sed 's/^/| /' conftest.$ac_ext >&5
31498
31499 ac_header_compiler=no
31500 fi
31501 rm -f conftest.$ac_objext conftest.$ac_ext
31502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31503 echo "${ECHO_T}$ac_header_compiler" >&6
31504
31505 # Is the header present?
31506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31508 cat >conftest.$ac_ext <<_ACEOF
31509 #line $LINENO "configure"
31510 /* confdefs.h.  */
31511 _ACEOF
31512 cat confdefs.h >>conftest.$ac_ext
31513 cat >>conftest.$ac_ext <<_ACEOF
31514 /* end confdefs.h.  */
31515 #include <$ac_header>
31516 _ACEOF
31517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31518   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31519   ac_status=$?
31520   grep -v '^ *+' conftest.er1 >conftest.err
31521   rm -f conftest.er1
31522   cat conftest.err >&5
31523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524   (exit $ac_status); } >/dev/null; then
31525   if test -s conftest.err; then
31526     ac_cpp_err=$ac_c_preproc_warn_flag
31527   else
31528     ac_cpp_err=
31529   fi
31530 else
31531   ac_cpp_err=yes
31532 fi
31533 if test -z "$ac_cpp_err"; then
31534   ac_header_preproc=yes
31535 else
31536   echo "$as_me: failed program was:" >&5
31537 sed 's/^/| /' conftest.$ac_ext >&5
31538
31539   ac_header_preproc=no
31540 fi
31541 rm -f conftest.err conftest.$ac_ext
31542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31543 echo "${ECHO_T}$ac_header_preproc" >&6
31544
31545 # So?  What about this header?
31546 case $ac_header_compiler:$ac_header_preproc in
31547   yes:no )
31548     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31550     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31552     (
31553       cat <<\_ASBOX
31554 ## ------------------------------------ ##
31555 ## Report this to bug-autoconf@gnu.org. ##
31556 ## ------------------------------------ ##
31557 _ASBOX
31558     ) |
31559       sed "s/^/$as_me: WARNING:     /" >&2
31560     ;;
31561   no:yes )
31562     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31564     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31565 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31568     (
31569       cat <<\_ASBOX
31570 ## ------------------------------------ ##
31571 ## Report this to bug-autoconf@gnu.org. ##
31572 ## ------------------------------------ ##
31573 _ASBOX
31574     ) |
31575       sed "s/^/$as_me: WARNING:     /" >&2
31576     ;;
31577 esac
31578 echo "$as_me:$LINENO: checking for $ac_header" >&5
31579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31581   echo $ECHO_N "(cached) $ECHO_C" >&6
31582 else
31583   eval "$as_ac_Header=$ac_header_preproc"
31584 fi
31585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31587
31588 fi
31589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31590   cat >>confdefs.h <<_ACEOF
31591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31592 _ACEOF
31593
31594 fi
31595
31596 done
31597
31598 fi
31599
31600
31601 for ac_header in nlist.h
31602 do
31603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31605   echo "$as_me:$LINENO: checking for $ac_header" >&5
31606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31608   echo $ECHO_N "(cached) $ECHO_C" >&6
31609 fi
31610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31612 else
31613   # Is the header compilable?
31614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31616 cat >conftest.$ac_ext <<_ACEOF
31617 #line $LINENO "configure"
31618 /* confdefs.h.  */
31619 _ACEOF
31620 cat confdefs.h >>conftest.$ac_ext
31621 cat >>conftest.$ac_ext <<_ACEOF
31622 /* end confdefs.h.  */
31623 $ac_includes_default
31624 #include <$ac_header>
31625 _ACEOF
31626 rm -f conftest.$ac_objext
31627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31628   (eval $ac_compile) 2>&5
31629   ac_status=$?
31630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631   (exit $ac_status); } &&
31632          { ac_try='test -s conftest.$ac_objext'
31633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31634   (eval $ac_try) 2>&5
31635   ac_status=$?
31636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31637   (exit $ac_status); }; }; then
31638   ac_header_compiler=yes
31639 else
31640   echo "$as_me: failed program was:" >&5
31641 sed 's/^/| /' conftest.$ac_ext >&5
31642
31643 ac_header_compiler=no
31644 fi
31645 rm -f conftest.$ac_objext conftest.$ac_ext
31646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31647 echo "${ECHO_T}$ac_header_compiler" >&6
31648
31649 # Is the header present?
31650 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31652 cat >conftest.$ac_ext <<_ACEOF
31653 #line $LINENO "configure"
31654 /* confdefs.h.  */
31655 _ACEOF
31656 cat confdefs.h >>conftest.$ac_ext
31657 cat >>conftest.$ac_ext <<_ACEOF
31658 /* end confdefs.h.  */
31659 #include <$ac_header>
31660 _ACEOF
31661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31662   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31663   ac_status=$?
31664   grep -v '^ *+' conftest.er1 >conftest.err
31665   rm -f conftest.er1
31666   cat conftest.err >&5
31667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668   (exit $ac_status); } >/dev/null; then
31669   if test -s conftest.err; then
31670     ac_cpp_err=$ac_c_preproc_warn_flag
31671   else
31672     ac_cpp_err=
31673   fi
31674 else
31675   ac_cpp_err=yes
31676 fi
31677 if test -z "$ac_cpp_err"; then
31678   ac_header_preproc=yes
31679 else
31680   echo "$as_me: failed program was:" >&5
31681 sed 's/^/| /' conftest.$ac_ext >&5
31682
31683   ac_header_preproc=no
31684 fi
31685 rm -f conftest.err conftest.$ac_ext
31686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31687 echo "${ECHO_T}$ac_header_preproc" >&6
31688
31689 # So?  What about this header?
31690 case $ac_header_compiler:$ac_header_preproc in
31691   yes:no )
31692     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31696     (
31697       cat <<\_ASBOX
31698 ## ------------------------------------ ##
31699 ## Report this to bug-autoconf@gnu.org. ##
31700 ## ------------------------------------ ##
31701 _ASBOX
31702     ) |
31703       sed "s/^/$as_me: WARNING:     /" >&2
31704     ;;
31705   no:yes )
31706     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31708     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31710     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31712     (
31713       cat <<\_ASBOX
31714 ## ------------------------------------ ##
31715 ## Report this to bug-autoconf@gnu.org. ##
31716 ## ------------------------------------ ##
31717 _ASBOX
31718     ) |
31719       sed "s/^/$as_me: WARNING:     /" >&2
31720     ;;
31721 esac
31722 echo "$as_me:$LINENO: checking for $ac_header" >&5
31723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31725   echo $ECHO_N "(cached) $ECHO_C" >&6
31726 else
31727   eval "$as_ac_Header=$ac_header_preproc"
31728 fi
31729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31731
31732 fi
31733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31734   cat >>confdefs.h <<_ACEOF
31735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31736 _ACEOF
31737  echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
31738 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
31739 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
31740   echo $ECHO_N "(cached) $ECHO_C" >&6
31741 else
31742   cat >conftest.$ac_ext <<_ACEOF
31743 #line $LINENO "configure"
31744 /* confdefs.h.  */
31745 _ACEOF
31746 cat confdefs.h >>conftest.$ac_ext
31747 cat >>conftest.$ac_ext <<_ACEOF
31748 /* end confdefs.h.  */
31749 #include <nlist.h>
31750
31751 int
31752 main ()
31753 {
31754 static struct nlist ac_aggr;
31755 if (ac_aggr.n_un.n_name)
31756 return 0;
31757   ;
31758   return 0;
31759 }
31760 _ACEOF
31761 rm -f conftest.$ac_objext
31762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31763   (eval $ac_compile) 2>&5
31764   ac_status=$?
31765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31766   (exit $ac_status); } &&
31767          { ac_try='test -s conftest.$ac_objext'
31768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31769   (eval $ac_try) 2>&5
31770   ac_status=$?
31771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31772   (exit $ac_status); }; }; then
31773   ac_cv_member_struct_nlist_n_un_n_name=yes
31774 else
31775   echo "$as_me: failed program was:" >&5
31776 sed 's/^/| /' conftest.$ac_ext >&5
31777
31778 cat >conftest.$ac_ext <<_ACEOF
31779 #line $LINENO "configure"
31780 /* confdefs.h.  */
31781 _ACEOF
31782 cat confdefs.h >>conftest.$ac_ext
31783 cat >>conftest.$ac_ext <<_ACEOF
31784 /* end confdefs.h.  */
31785 #include <nlist.h>
31786
31787 int
31788 main ()
31789 {
31790 static struct nlist ac_aggr;
31791 if (sizeof ac_aggr.n_un.n_name)
31792 return 0;
31793   ;
31794   return 0;
31795 }
31796 _ACEOF
31797 rm -f conftest.$ac_objext
31798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31799   (eval $ac_compile) 2>&5
31800   ac_status=$?
31801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31802   (exit $ac_status); } &&
31803          { ac_try='test -s conftest.$ac_objext'
31804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31805   (eval $ac_try) 2>&5
31806   ac_status=$?
31807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31808   (exit $ac_status); }; }; then
31809   ac_cv_member_struct_nlist_n_un_n_name=yes
31810 else
31811   echo "$as_me: failed program was:" >&5
31812 sed 's/^/| /' conftest.$ac_ext >&5
31813
31814 ac_cv_member_struct_nlist_n_un_n_name=no
31815 fi
31816 rm -f conftest.$ac_objext conftest.$ac_ext
31817 fi
31818 rm -f conftest.$ac_objext conftest.$ac_ext
31819 fi
31820 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
31821 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
31822 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
31823
31824 cat >>confdefs.h <<_ACEOF
31825 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
31826 _ACEOF
31827
31828
31829 cat >>confdefs.h <<\_ACEOF
31830 #define NLIST_NAME_UNION 1
31831 _ACEOF
31832
31833 fi
31834
31835
31836 fi
31837
31838 done
31839
31840 fi
31841 done
31842
31843
31844 # Some definitions of getloadavg require that the program be installed setgid.
31845 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
31846 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
31847 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
31848   echo $ECHO_N "(cached) $ECHO_C" >&6
31849 else
31850   cat >conftest.$ac_ext <<_ACEOF
31851 #line $LINENO "configure"
31852 /* confdefs.h.  */
31853 _ACEOF
31854 cat confdefs.h >>conftest.$ac_ext
31855 cat >>conftest.$ac_ext <<_ACEOF
31856 /* end confdefs.h.  */
31857 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
31858 #ifdef LDAV_PRIVILEGED
31859 Yowza Am I SETGID yet
31860 #endif
31861 _ACEOF
31862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31863   $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
31864   ac_cv_func_getloadavg_setgid=yes
31865 else
31866   ac_cv_func_getloadavg_setgid=no
31867 fi
31868 rm -f conftest*
31869
31870 fi
31871 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
31872 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
31873 if test $ac_cv_func_getloadavg_setgid = yes; then
31874   NEED_SETGID=true
31875
31876 cat >>confdefs.h <<\_ACEOF
31877 #define GETLOADAVG_PRIVILEGED 1
31878 _ACEOF
31879
31880 else
31881   NEED_SETGID=false
31882 fi
31883
31884 if test $ac_cv_func_getloadavg_setgid = yes; then
31885   echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
31886 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
31887 if test "${ac_cv_group_kmem+set}" = set; then
31888   echo $ECHO_N "(cached) $ECHO_C" >&6
31889 else
31890    # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
31891   ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
31892   # If we got an error (system does not support symlinks), try without -L.
31893   test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
31894   ac_cv_group_kmem=`echo $ac_ls_output \
31895     | sed -ne 's/[      ][      ]*/ /g;
31896                s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
31897                / /s/.* //;p;'`
31898
31899 fi
31900 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
31901 echo "${ECHO_T}$ac_cv_group_kmem" >&6
31902   KMEM_GROUP=$ac_cv_group_kmem
31903 fi
31904 if test "x$ac_save_LIBS" = x; then
31905   GETLOADAVG_LIBS=$LIBS
31906 else
31907   GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
31908 fi
31909 LIBS=$ac_save_LIBS
31910
31911
31912
31913
31914
31915
31916
31917
31918
31919 for ac_func in strcasecmp strncasecmp
31920 do
31921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31922 echo "$as_me:$LINENO: checking for $ac_func" >&5
31923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31924 if eval "test \"\${$as_ac_var+set}\" = set"; then
31925   echo $ECHO_N "(cached) $ECHO_C" >&6
31926 else
31927   cat >conftest.$ac_ext <<_ACEOF
31928 #line $LINENO "configure"
31929 /* confdefs.h.  */
31930 _ACEOF
31931 cat confdefs.h >>conftest.$ac_ext
31932 cat >>conftest.$ac_ext <<_ACEOF
31933 /* end confdefs.h.  */
31934 /* System header to define __stub macros and hopefully few prototypes,
31935     which can conflict with char $ac_func (); below.
31936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31937     <limits.h> exists even on freestanding compilers.  */
31938 #ifdef __STDC__
31939 # include <limits.h>
31940 #else
31941 # include <assert.h>
31942 #endif
31943 /* Override any gcc2 internal prototype to avoid an error.  */
31944 #ifdef __cplusplus
31945 extern "C"
31946 {
31947 #endif
31948 /* We use char because int might match the return type of a gcc2
31949    builtin and then its argument prototype would still apply.  */
31950 char $ac_func ();
31951 /* The GNU C library defines this for functions which it implements
31952     to always fail with ENOSYS.  Some functions are actually named
31953     something starting with __ and the normal name is an alias.  */
31954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31955 choke me
31956 #else
31957 char (*f) () = $ac_func;
31958 #endif
31959 #ifdef __cplusplus
31960 }
31961 #endif
31962
31963 int
31964 main ()
31965 {
31966 return f != $ac_func;
31967   ;
31968   return 0;
31969 }
31970 _ACEOF
31971 rm -f conftest.$ac_objext conftest$ac_exeext
31972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31973   (eval $ac_link) 2>&5
31974   ac_status=$?
31975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31976   (exit $ac_status); } &&
31977          { ac_try='test -s conftest$ac_exeext'
31978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31979   (eval $ac_try) 2>&5
31980   ac_status=$?
31981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31982   (exit $ac_status); }; }; then
31983   eval "$as_ac_var=yes"
31984 else
31985   echo "$as_me: failed program was:" >&5
31986 sed 's/^/| /' conftest.$ac_ext >&5
31987
31988 eval "$as_ac_var=no"
31989 fi
31990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31991 fi
31992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31993 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31994 if test `eval echo '${'$as_ac_var'}'` = yes; then
31995   cat >>confdefs.h <<_ACEOF
31996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31997 _ACEOF
31998
31999 else
32000   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32001 fi
32002 done
32003
32004
32005
32006 for ac_func in dup2
32007 do
32008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32009 echo "$as_me:$LINENO: checking for $ac_func" >&5
32010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32011 if eval "test \"\${$as_ac_var+set}\" = set"; then
32012   echo $ECHO_N "(cached) $ECHO_C" >&6
32013 else
32014   cat >conftest.$ac_ext <<_ACEOF
32015 #line $LINENO "configure"
32016 /* confdefs.h.  */
32017 _ACEOF
32018 cat confdefs.h >>conftest.$ac_ext
32019 cat >>conftest.$ac_ext <<_ACEOF
32020 /* end confdefs.h.  */
32021 /* System header to define __stub macros and hopefully few prototypes,
32022     which can conflict with char $ac_func (); below.
32023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32024     <limits.h> exists even on freestanding compilers.  */
32025 #ifdef __STDC__
32026 # include <limits.h>
32027 #else
32028 # include <assert.h>
32029 #endif
32030 /* Override any gcc2 internal prototype to avoid an error.  */
32031 #ifdef __cplusplus
32032 extern "C"
32033 {
32034 #endif
32035 /* We use char because int might match the return type of a gcc2
32036    builtin and then its argument prototype would still apply.  */
32037 char $ac_func ();
32038 /* The GNU C library defines this for functions which it implements
32039     to always fail with ENOSYS.  Some functions are actually named
32040     something starting with __ and the normal name is an alias.  */
32041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32042 choke me
32043 #else
32044 char (*f) () = $ac_func;
32045 #endif
32046 #ifdef __cplusplus
32047 }
32048 #endif
32049
32050 int
32051 main ()
32052 {
32053 return f != $ac_func;
32054   ;
32055   return 0;
32056 }
32057 _ACEOF
32058 rm -f conftest.$ac_objext conftest$ac_exeext
32059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32060   (eval $ac_link) 2>&5
32061   ac_status=$?
32062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063   (exit $ac_status); } &&
32064          { ac_try='test -s conftest$ac_exeext'
32065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32066   (eval $ac_try) 2>&5
32067   ac_status=$?
32068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069   (exit $ac_status); }; }; then
32070   eval "$as_ac_var=yes"
32071 else
32072   echo "$as_me: failed program was:" >&5
32073 sed 's/^/| /' conftest.$ac_ext >&5
32074
32075 eval "$as_ac_var=no"
32076 fi
32077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32078 fi
32079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32081 if test `eval echo '${'$as_ac_var'}'` = yes; then
32082   cat >>confdefs.h <<_ACEOF
32083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32084 _ACEOF
32085
32086 else
32087   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32088 fi
32089 done
32090
32091
32092
32093
32094 for ac_func in gethostname getusershell
32095 do
32096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32097 echo "$as_me:$LINENO: checking for $ac_func" >&5
32098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32099 if eval "test \"\${$as_ac_var+set}\" = set"; then
32100   echo $ECHO_N "(cached) $ECHO_C" >&6
32101 else
32102   cat >conftest.$ac_ext <<_ACEOF
32103 #line $LINENO "configure"
32104 /* confdefs.h.  */
32105 _ACEOF
32106 cat confdefs.h >>conftest.$ac_ext
32107 cat >>conftest.$ac_ext <<_ACEOF
32108 /* end confdefs.h.  */
32109 /* System header to define __stub macros and hopefully few prototypes,
32110     which can conflict with char $ac_func (); below.
32111     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32112     <limits.h> exists even on freestanding compilers.  */
32113 #ifdef __STDC__
32114 # include <limits.h>
32115 #else
32116 # include <assert.h>
32117 #endif
32118 /* Override any gcc2 internal prototype to avoid an error.  */
32119 #ifdef __cplusplus
32120 extern "C"
32121 {
32122 #endif
32123 /* We use char because int might match the return type of a gcc2
32124    builtin and then its argument prototype would still apply.  */
32125 char $ac_func ();
32126 /* The GNU C library defines this for functions which it implements
32127     to always fail with ENOSYS.  Some functions are actually named
32128     something starting with __ and the normal name is an alias.  */
32129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32130 choke me
32131 #else
32132 char (*f) () = $ac_func;
32133 #endif
32134 #ifdef __cplusplus
32135 }
32136 #endif
32137
32138 int
32139 main ()
32140 {
32141 return f != $ac_func;
32142   ;
32143   return 0;
32144 }
32145 _ACEOF
32146 rm -f conftest.$ac_objext conftest$ac_exeext
32147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32148   (eval $ac_link) 2>&5
32149   ac_status=$?
32150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32151   (exit $ac_status); } &&
32152          { ac_try='test -s conftest$ac_exeext'
32153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32154   (eval $ac_try) 2>&5
32155   ac_status=$?
32156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157   (exit $ac_status); }; }; then
32158   eval "$as_ac_var=yes"
32159 else
32160   echo "$as_me: failed program was:" >&5
32161 sed 's/^/| /' conftest.$ac_ext >&5
32162
32163 eval "$as_ac_var=no"
32164 fi
32165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32166 fi
32167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32169 if test `eval echo '${'$as_ac_var'}'` = yes; then
32170   cat >>confdefs.h <<_ACEOF
32171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32172 _ACEOF
32173
32174 else
32175   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32176 fi
32177 done
32178
32179
32180
32181 for ac_func in sig2str
32182 do
32183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32184 echo "$as_me:$LINENO: checking for $ac_func" >&5
32185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32186 if eval "test \"\${$as_ac_var+set}\" = set"; then
32187   echo $ECHO_N "(cached) $ECHO_C" >&6
32188 else
32189   cat >conftest.$ac_ext <<_ACEOF
32190 #line $LINENO "configure"
32191 /* confdefs.h.  */
32192 _ACEOF
32193 cat confdefs.h >>conftest.$ac_ext
32194 cat >>conftest.$ac_ext <<_ACEOF
32195 /* end confdefs.h.  */
32196 /* System header to define __stub macros and hopefully few prototypes,
32197     which can conflict with char $ac_func (); below.
32198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32199     <limits.h> exists even on freestanding compilers.  */
32200 #ifdef __STDC__
32201 # include <limits.h>
32202 #else
32203 # include <assert.h>
32204 #endif
32205 /* Override any gcc2 internal prototype to avoid an error.  */
32206 #ifdef __cplusplus
32207 extern "C"
32208 {
32209 #endif
32210 /* We use char because int might match the return type of a gcc2
32211    builtin and then its argument prototype would still apply.  */
32212 char $ac_func ();
32213 /* The GNU C library defines this for functions which it implements
32214     to always fail with ENOSYS.  Some functions are actually named
32215     something starting with __ and the normal name is an alias.  */
32216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32217 choke me
32218 #else
32219 char (*f) () = $ac_func;
32220 #endif
32221 #ifdef __cplusplus
32222 }
32223 #endif
32224
32225 int
32226 main ()
32227 {
32228 return f != $ac_func;
32229   ;
32230   return 0;
32231 }
32232 _ACEOF
32233 rm -f conftest.$ac_objext conftest$ac_exeext
32234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32235   (eval $ac_link) 2>&5
32236   ac_status=$?
32237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32238   (exit $ac_status); } &&
32239          { ac_try='test -s conftest$ac_exeext'
32240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32241   (eval $ac_try) 2>&5
32242   ac_status=$?
32243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244   (exit $ac_status); }; }; then
32245   eval "$as_ac_var=yes"
32246 else
32247   echo "$as_me: failed program was:" >&5
32248 sed 's/^/| /' conftest.$ac_ext >&5
32249
32250 eval "$as_ac_var=no"
32251 fi
32252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32253 fi
32254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32256 if test `eval echo '${'$as_ac_var'}'` = yes; then
32257   cat >>confdefs.h <<_ACEOF
32258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32259 _ACEOF
32260
32261 else
32262   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32263 fi
32264 done
32265
32266
32267
32268
32269
32270
32271
32272 for ac_func in strcspn stpcpy strstr strtol strtoul
32273 do
32274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32275 echo "$as_me:$LINENO: checking for $ac_func" >&5
32276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32277 if eval "test \"\${$as_ac_var+set}\" = set"; then
32278   echo $ECHO_N "(cached) $ECHO_C" >&6
32279 else
32280   cat >conftest.$ac_ext <<_ACEOF
32281 #line $LINENO "configure"
32282 /* confdefs.h.  */
32283 _ACEOF
32284 cat confdefs.h >>conftest.$ac_ext
32285 cat >>conftest.$ac_ext <<_ACEOF
32286 /* end confdefs.h.  */
32287 /* System header to define __stub macros and hopefully few prototypes,
32288     which can conflict with char $ac_func (); below.
32289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32290     <limits.h> exists even on freestanding compilers.  */
32291 #ifdef __STDC__
32292 # include <limits.h>
32293 #else
32294 # include <assert.h>
32295 #endif
32296 /* Override any gcc2 internal prototype to avoid an error.  */
32297 #ifdef __cplusplus
32298 extern "C"
32299 {
32300 #endif
32301 /* We use char because int might match the return type of a gcc2
32302    builtin and then its argument prototype would still apply.  */
32303 char $ac_func ();
32304 /* The GNU C library defines this for functions which it implements
32305     to always fail with ENOSYS.  Some functions are actually named
32306     something starting with __ and the normal name is an alias.  */
32307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32308 choke me
32309 #else
32310 char (*f) () = $ac_func;
32311 #endif
32312 #ifdef __cplusplus
32313 }
32314 #endif
32315
32316 int
32317 main ()
32318 {
32319 return f != $ac_func;
32320   ;
32321   return 0;
32322 }
32323 _ACEOF
32324 rm -f conftest.$ac_objext conftest$ac_exeext
32325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32326   (eval $ac_link) 2>&5
32327   ac_status=$?
32328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32329   (exit $ac_status); } &&
32330          { ac_try='test -s conftest$ac_exeext'
32331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32332   (eval $ac_try) 2>&5
32333   ac_status=$?
32334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335   (exit $ac_status); }; }; then
32336   eval "$as_ac_var=yes"
32337 else
32338   echo "$as_me: failed program was:" >&5
32339 sed 's/^/| /' conftest.$ac_ext >&5
32340
32341 eval "$as_ac_var=no"
32342 fi
32343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32344 fi
32345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32347 if test `eval echo '${'$as_ac_var'}'` = yes; then
32348   cat >>confdefs.h <<_ACEOF
32349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32350 _ACEOF
32351
32352 else
32353   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32354 fi
32355 done
32356
32357
32358
32359 for ac_func in strpbrk
32360 do
32361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32362 echo "$as_me:$LINENO: checking for $ac_func" >&5
32363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32364 if eval "test \"\${$as_ac_var+set}\" = set"; then
32365   echo $ECHO_N "(cached) $ECHO_C" >&6
32366 else
32367   cat >conftest.$ac_ext <<_ACEOF
32368 #line $LINENO "configure"
32369 /* confdefs.h.  */
32370 _ACEOF
32371 cat confdefs.h >>conftest.$ac_ext
32372 cat >>conftest.$ac_ext <<_ACEOF
32373 /* end confdefs.h.  */
32374 /* System header to define __stub macros and hopefully few prototypes,
32375     which can conflict with char $ac_func (); below.
32376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32377     <limits.h> exists even on freestanding compilers.  */
32378 #ifdef __STDC__
32379 # include <limits.h>
32380 #else
32381 # include <assert.h>
32382 #endif
32383 /* Override any gcc2 internal prototype to avoid an error.  */
32384 #ifdef __cplusplus
32385 extern "C"
32386 {
32387 #endif
32388 /* We use char because int might match the return type of a gcc2
32389    builtin and then its argument prototype would still apply.  */
32390 char $ac_func ();
32391 /* The GNU C library defines this for functions which it implements
32392     to always fail with ENOSYS.  Some functions are actually named
32393     something starting with __ and the normal name is an alias.  */
32394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32395 choke me
32396 #else
32397 char (*f) () = $ac_func;
32398 #endif
32399 #ifdef __cplusplus
32400 }
32401 #endif
32402
32403 int
32404 main ()
32405 {
32406 return f != $ac_func;
32407   ;
32408   return 0;
32409 }
32410 _ACEOF
32411 rm -f conftest.$ac_objext conftest$ac_exeext
32412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32413   (eval $ac_link) 2>&5
32414   ac_status=$?
32415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32416   (exit $ac_status); } &&
32417          { ac_try='test -s conftest$ac_exeext'
32418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32419   (eval $ac_try) 2>&5
32420   ac_status=$?
32421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422   (exit $ac_status); }; }; then
32423   eval "$as_ac_var=yes"
32424 else
32425   echo "$as_me: failed program was:" >&5
32426 sed 's/^/| /' conftest.$ac_ext >&5
32427
32428 eval "$as_ac_var=no"
32429 fi
32430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32431 fi
32432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32434 if test `eval echo '${'$as_ac_var'}'` = yes; then
32435   cat >>confdefs.h <<_ACEOF
32436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32437 _ACEOF
32438
32439 else
32440   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32441 fi
32442 done
32443
32444
32445
32446
32447
32448
32449
32450
32451 for ac_func in euidaccess memcmp rmdir rpmatch strndup strverscmp
32452 do
32453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32454 echo "$as_me:$LINENO: checking for $ac_func" >&5
32455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32456 if eval "test \"\${$as_ac_var+set}\" = set"; then
32457   echo $ECHO_N "(cached) $ECHO_C" >&6
32458 else
32459   cat >conftest.$ac_ext <<_ACEOF
32460 #line $LINENO "configure"
32461 /* confdefs.h.  */
32462 _ACEOF
32463 cat confdefs.h >>conftest.$ac_ext
32464 cat >>conftest.$ac_ext <<_ACEOF
32465 /* end confdefs.h.  */
32466 /* System header to define __stub macros and hopefully few prototypes,
32467     which can conflict with char $ac_func (); below.
32468     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32469     <limits.h> exists even on freestanding compilers.  */
32470 #ifdef __STDC__
32471 # include <limits.h>
32472 #else
32473 # include <assert.h>
32474 #endif
32475 /* Override any gcc2 internal prototype to avoid an error.  */
32476 #ifdef __cplusplus
32477 extern "C"
32478 {
32479 #endif
32480 /* We use char because int might match the return type of a gcc2
32481    builtin and then its argument prototype would still apply.  */
32482 char $ac_func ();
32483 /* The GNU C library defines this for functions which it implements
32484     to always fail with ENOSYS.  Some functions are actually named
32485     something starting with __ and the normal name is an alias.  */
32486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32487 choke me
32488 #else
32489 char (*f) () = $ac_func;
32490 #endif
32491 #ifdef __cplusplus
32492 }
32493 #endif
32494
32495 int
32496 main ()
32497 {
32498 return f != $ac_func;
32499   ;
32500   return 0;
32501 }
32502 _ACEOF
32503 rm -f conftest.$ac_objext conftest$ac_exeext
32504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32505   (eval $ac_link) 2>&5
32506   ac_status=$?
32507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508   (exit $ac_status); } &&
32509          { ac_try='test -s conftest$ac_exeext'
32510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32511   (eval $ac_try) 2>&5
32512   ac_status=$?
32513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514   (exit $ac_status); }; }; then
32515   eval "$as_ac_var=yes"
32516 else
32517   echo "$as_me: failed program was:" >&5
32518 sed 's/^/| /' conftest.$ac_ext >&5
32519
32520 eval "$as_ac_var=no"
32521 fi
32522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32523 fi
32524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32525 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32526 if test `eval echo '${'$as_ac_var'}'` = yes; then
32527   cat >>confdefs.h <<_ACEOF
32528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32529 _ACEOF
32530
32531 else
32532   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32533 fi
32534 done
32535
32536
32537
32538 for ac_func in atexit
32539 do
32540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32541 echo "$as_me:$LINENO: checking for $ac_func" >&5
32542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32543 if eval "test \"\${$as_ac_var+set}\" = set"; then
32544   echo $ECHO_N "(cached) $ECHO_C" >&6
32545 else
32546   cat >conftest.$ac_ext <<_ACEOF
32547 #line $LINENO "configure"
32548 /* confdefs.h.  */
32549 _ACEOF
32550 cat confdefs.h >>conftest.$ac_ext
32551 cat >>conftest.$ac_ext <<_ACEOF
32552 /* end confdefs.h.  */
32553 /* System header to define __stub macros and hopefully few prototypes,
32554     which can conflict with char $ac_func (); below.
32555     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32556     <limits.h> exists even on freestanding compilers.  */
32557 #ifdef __STDC__
32558 # include <limits.h>
32559 #else
32560 # include <assert.h>
32561 #endif
32562 /* Override any gcc2 internal prototype to avoid an error.  */
32563 #ifdef __cplusplus
32564 extern "C"
32565 {
32566 #endif
32567 /* We use char because int might match the return type of a gcc2
32568    builtin and then its argument prototype would still apply.  */
32569 char $ac_func ();
32570 /* The GNU C library defines this for functions which it implements
32571     to always fail with ENOSYS.  Some functions are actually named
32572     something starting with __ and the normal name is an alias.  */
32573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32574 choke me
32575 #else
32576 char (*f) () = $ac_func;
32577 #endif
32578 #ifdef __cplusplus
32579 }
32580 #endif
32581
32582 int
32583 main ()
32584 {
32585 return f != $ac_func;
32586   ;
32587   return 0;
32588 }
32589 _ACEOF
32590 rm -f conftest.$ac_objext conftest$ac_exeext
32591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32592   (eval $ac_link) 2>&5
32593   ac_status=$?
32594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32595   (exit $ac_status); } &&
32596          { ac_try='test -s conftest$ac_exeext'
32597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32598   (eval $ac_try) 2>&5
32599   ac_status=$?
32600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32601   (exit $ac_status); }; }; then
32602   eval "$as_ac_var=yes"
32603 else
32604   echo "$as_me: failed program was:" >&5
32605 sed 's/^/| /' conftest.$ac_ext >&5
32606
32607 eval "$as_ac_var=no"
32608 fi
32609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32610 fi
32611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32613 if test `eval echo '${'$as_ac_var'}'` = yes; then
32614   cat >>confdefs.h <<_ACEOF
32615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32616 _ACEOF
32617
32618 else
32619   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32620 fi
32621 done
32622
32623
32624
32625 for ac_func in getpass
32626 do
32627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32628 echo "$as_me:$LINENO: checking for $ac_func" >&5
32629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32630 if eval "test \"\${$as_ac_var+set}\" = set"; then
32631   echo $ECHO_N "(cached) $ECHO_C" >&6
32632 else
32633   cat >conftest.$ac_ext <<_ACEOF
32634 #line $LINENO "configure"
32635 /* confdefs.h.  */
32636 _ACEOF
32637 cat confdefs.h >>conftest.$ac_ext
32638 cat >>conftest.$ac_ext <<_ACEOF
32639 /* end confdefs.h.  */
32640 /* System header to define __stub macros and hopefully few prototypes,
32641     which can conflict with char $ac_func (); below.
32642     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32643     <limits.h> exists even on freestanding compilers.  */
32644 #ifdef __STDC__
32645 # include <limits.h>
32646 #else
32647 # include <assert.h>
32648 #endif
32649 /* Override any gcc2 internal prototype to avoid an error.  */
32650 #ifdef __cplusplus
32651 extern "C"
32652 {
32653 #endif
32654 /* We use char because int might match the return type of a gcc2
32655    builtin and then its argument prototype would still apply.  */
32656 char $ac_func ();
32657 /* The GNU C library defines this for functions which it implements
32658     to always fail with ENOSYS.  Some functions are actually named
32659     something starting with __ and the normal name is an alias.  */
32660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32661 choke me
32662 #else
32663 char (*f) () = $ac_func;
32664 #endif
32665 #ifdef __cplusplus
32666 }
32667 #endif
32668
32669 int
32670 main ()
32671 {
32672 return f != $ac_func;
32673   ;
32674   return 0;
32675 }
32676 _ACEOF
32677 rm -f conftest.$ac_objext conftest$ac_exeext
32678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32679   (eval $ac_link) 2>&5
32680   ac_status=$?
32681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32682   (exit $ac_status); } &&
32683          { ac_try='test -s conftest$ac_exeext'
32684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32685   (eval $ac_try) 2>&5
32686   ac_status=$?
32687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32688   (exit $ac_status); }; }; then
32689   eval "$as_ac_var=yes"
32690 else
32691   echo "$as_me: failed program was:" >&5
32692 sed 's/^/| /' conftest.$ac_ext >&5
32693
32694 eval "$as_ac_var=no"
32695 fi
32696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32697 fi
32698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32700 if test `eval echo '${'$as_ac_var'}'` = yes; then
32701   cat >>confdefs.h <<_ACEOF
32702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32703 _ACEOF
32704
32705 else
32706   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32707 fi
32708 done
32709
32710
32711
32712   # raise is used by at least sort and ls.
32713
32714 for ac_func in raise
32715 do
32716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32717 echo "$as_me:$LINENO: checking for $ac_func" >&5
32718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32719 if eval "test \"\${$as_ac_var+set}\" = set"; then
32720   echo $ECHO_N "(cached) $ECHO_C" >&6
32721 else
32722   cat >conftest.$ac_ext <<_ACEOF
32723 #line $LINENO "configure"
32724 /* confdefs.h.  */
32725 _ACEOF
32726 cat confdefs.h >>conftest.$ac_ext
32727 cat >>conftest.$ac_ext <<_ACEOF
32728 /* end confdefs.h.  */
32729 /* System header to define __stub macros and hopefully few prototypes,
32730     which can conflict with char $ac_func (); below.
32731     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32732     <limits.h> exists even on freestanding compilers.  */
32733 #ifdef __STDC__
32734 # include <limits.h>
32735 #else
32736 # include <assert.h>
32737 #endif
32738 /* Override any gcc2 internal prototype to avoid an error.  */
32739 #ifdef __cplusplus
32740 extern "C"
32741 {
32742 #endif
32743 /* We use char because int might match the return type of a gcc2
32744    builtin and then its argument prototype would still apply.  */
32745 char $ac_func ();
32746 /* The GNU C library defines this for functions which it implements
32747     to always fail with ENOSYS.  Some functions are actually named
32748     something starting with __ and the normal name is an alias.  */
32749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32750 choke me
32751 #else
32752 char (*f) () = $ac_func;
32753 #endif
32754 #ifdef __cplusplus
32755 }
32756 #endif
32757
32758 int
32759 main ()
32760 {
32761 return f != $ac_func;
32762   ;
32763   return 0;
32764 }
32765 _ACEOF
32766 rm -f conftest.$ac_objext conftest$ac_exeext
32767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32768   (eval $ac_link) 2>&5
32769   ac_status=$?
32770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32771   (exit $ac_status); } &&
32772          { ac_try='test -s conftest$ac_exeext'
32773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32774   (eval $ac_try) 2>&5
32775   ac_status=$?
32776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32777   (exit $ac_status); }; }; then
32778   eval "$as_ac_var=yes"
32779 else
32780   echo "$as_me: failed program was:" >&5
32781 sed 's/^/| /' conftest.$ac_ext >&5
32782
32783 eval "$as_ac_var=no"
32784 fi
32785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32786 fi
32787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32788 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32789 if test `eval echo '${'$as_ac_var'}'` = yes; then
32790   cat >>confdefs.h <<_ACEOF
32791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32792 _ACEOF
32793
32794 else
32795   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32796 fi
32797 done
32798
32799
32800
32801
32802 for ac_func in strdup
32803 do
32804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32805 echo "$as_me:$LINENO: checking for $ac_func" >&5
32806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32807 if eval "test \"\${$as_ac_var+set}\" = set"; then
32808   echo $ECHO_N "(cached) $ECHO_C" >&6
32809 else
32810   cat >conftest.$ac_ext <<_ACEOF
32811 #line $LINENO "configure"
32812 /* confdefs.h.  */
32813 _ACEOF
32814 cat confdefs.h >>conftest.$ac_ext
32815 cat >>conftest.$ac_ext <<_ACEOF
32816 /* end confdefs.h.  */
32817 /* System header to define __stub macros and hopefully few prototypes,
32818     which can conflict with char $ac_func (); below.
32819     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32820     <limits.h> exists even on freestanding compilers.  */
32821 #ifdef __STDC__
32822 # include <limits.h>
32823 #else
32824 # include <assert.h>
32825 #endif
32826 /* Override any gcc2 internal prototype to avoid an error.  */
32827 #ifdef __cplusplus
32828 extern "C"
32829 {
32830 #endif
32831 /* We use char because int might match the return type of a gcc2
32832    builtin and then its argument prototype would still apply.  */
32833 char $ac_func ();
32834 /* The GNU C library defines this for functions which it implements
32835     to always fail with ENOSYS.  Some functions are actually named
32836     something starting with __ and the normal name is an alias.  */
32837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32838 choke me
32839 #else
32840 char (*f) () = $ac_func;
32841 #endif
32842 #ifdef __cplusplus
32843 }
32844 #endif
32845
32846 int
32847 main ()
32848 {
32849 return f != $ac_func;
32850   ;
32851   return 0;
32852 }
32853 _ACEOF
32854 rm -f conftest.$ac_objext conftest$ac_exeext
32855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32856   (eval $ac_link) 2>&5
32857   ac_status=$?
32858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32859   (exit $ac_status); } &&
32860          { ac_try='test -s conftest$ac_exeext'
32861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32862   (eval $ac_try) 2>&5
32863   ac_status=$?
32864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32865   (exit $ac_status); }; }; then
32866   eval "$as_ac_var=yes"
32867 else
32868   echo "$as_me: failed program was:" >&5
32869 sed 's/^/| /' conftest.$ac_ext >&5
32870
32871 eval "$as_ac_var=no"
32872 fi
32873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32874 fi
32875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32877 if test `eval echo '${'$as_ac_var'}'` = yes; then
32878   cat >>confdefs.h <<_ACEOF
32879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32880 _ACEOF
32881
32882 else
32883   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32884 fi
32885 done
32886
32887
32888
32889
32890
32891
32892
32893
32894 for ac_func in memchr memcpy memmove memrchr memset
32895 do
32896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32897 echo "$as_me:$LINENO: checking for $ac_func" >&5
32898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32899 if eval "test \"\${$as_ac_var+set}\" = set"; then
32900   echo $ECHO_N "(cached) $ECHO_C" >&6
32901 else
32902   cat >conftest.$ac_ext <<_ACEOF
32903 #line $LINENO "configure"
32904 /* confdefs.h.  */
32905 _ACEOF
32906 cat confdefs.h >>conftest.$ac_ext
32907 cat >>conftest.$ac_ext <<_ACEOF
32908 /* end confdefs.h.  */
32909 /* System header to define __stub macros and hopefully few prototypes,
32910     which can conflict with char $ac_func (); below.
32911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32912     <limits.h> exists even on freestanding compilers.  */
32913 #ifdef __STDC__
32914 # include <limits.h>
32915 #else
32916 # include <assert.h>
32917 #endif
32918 /* Override any gcc2 internal prototype to avoid an error.  */
32919 #ifdef __cplusplus
32920 extern "C"
32921 {
32922 #endif
32923 /* We use char because int might match the return type of a gcc2
32924    builtin and then its argument prototype would still apply.  */
32925 char $ac_func ();
32926 /* The GNU C library defines this for functions which it implements
32927     to always fail with ENOSYS.  Some functions are actually named
32928     something starting with __ and the normal name is an alias.  */
32929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32930 choke me
32931 #else
32932 char (*f) () = $ac_func;
32933 #endif
32934 #ifdef __cplusplus
32935 }
32936 #endif
32937
32938 int
32939 main ()
32940 {
32941 return f != $ac_func;
32942   ;
32943   return 0;
32944 }
32945 _ACEOF
32946 rm -f conftest.$ac_objext conftest$ac_exeext
32947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32948   (eval $ac_link) 2>&5
32949   ac_status=$?
32950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951   (exit $ac_status); } &&
32952          { ac_try='test -s conftest$ac_exeext'
32953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32954   (eval $ac_try) 2>&5
32955   ac_status=$?
32956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957   (exit $ac_status); }; }; then
32958   eval "$as_ac_var=yes"
32959 else
32960   echo "$as_me: failed program was:" >&5
32961 sed 's/^/| /' conftest.$ac_ext >&5
32962
32963 eval "$as_ac_var=no"
32964 fi
32965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32966 fi
32967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32969 if test `eval echo '${'$as_ac_var'}'` = yes; then
32970   cat >>confdefs.h <<_ACEOF
32971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32972 _ACEOF
32973
32974 else
32975   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32976 fi
32977 done
32978
32979
32980
32981 for ac_func in getpagesize
32982 do
32983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32984 echo "$as_me:$LINENO: checking for $ac_func" >&5
32985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32986 if eval "test \"\${$as_ac_var+set}\" = set"; then
32987   echo $ECHO_N "(cached) $ECHO_C" >&6
32988 else
32989   cat >conftest.$ac_ext <<_ACEOF
32990 #line $LINENO "configure"
32991 /* confdefs.h.  */
32992 _ACEOF
32993 cat confdefs.h >>conftest.$ac_ext
32994 cat >>conftest.$ac_ext <<_ACEOF
32995 /* end confdefs.h.  */
32996 /* System header to define __stub macros and hopefully few prototypes,
32997     which can conflict with char $ac_func (); below.
32998     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32999     <limits.h> exists even on freestanding compilers.  */
33000 #ifdef __STDC__
33001 # include <limits.h>
33002 #else
33003 # include <assert.h>
33004 #endif
33005 /* Override any gcc2 internal prototype to avoid an error.  */
33006 #ifdef __cplusplus
33007 extern "C"
33008 {
33009 #endif
33010 /* We use char because int might match the return type of a gcc2
33011    builtin and then its argument prototype would still apply.  */
33012 char $ac_func ();
33013 /* The GNU C library defines this for functions which it implements
33014     to always fail with ENOSYS.  Some functions are actually named
33015     something starting with __ and the normal name is an alias.  */
33016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33017 choke me
33018 #else
33019 char (*f) () = $ac_func;
33020 #endif
33021 #ifdef __cplusplus
33022 }
33023 #endif
33024
33025 int
33026 main ()
33027 {
33028 return f != $ac_func;
33029   ;
33030   return 0;
33031 }
33032 _ACEOF
33033 rm -f conftest.$ac_objext conftest$ac_exeext
33034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33035   (eval $ac_link) 2>&5
33036   ac_status=$?
33037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33038   (exit $ac_status); } &&
33039          { ac_try='test -s conftest$ac_exeext'
33040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33041   (eval $ac_try) 2>&5
33042   ac_status=$?
33043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044   (exit $ac_status); }; }; then
33045   eval "$as_ac_var=yes"
33046 else
33047   echo "$as_me: failed program was:" >&5
33048 sed 's/^/| /' conftest.$ac_ext >&5
33049
33050 eval "$as_ac_var=no"
33051 fi
33052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33053 fi
33054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33056 if test `eval echo '${'$as_ac_var'}'` = yes; then
33057   cat >>confdefs.h <<_ACEOF
33058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33059 _ACEOF
33060
33061 fi
33062 done
33063
33064
33065
33066
33067   # By default, argmatch should fail calling usage (1).
33068
33069 cat >>confdefs.h <<\_ACEOF
33070 #define ARGMATCH_DIE usage (1)
33071 _ACEOF
33072
33073
33074 cat >>confdefs.h <<\_ACEOF
33075 #define ARGMATCH_DIE_DECL extern void usage ()
33076 _ACEOF
33077
33078
33079         echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
33080 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
33081 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
33082   echo $ECHO_N "(cached) $ECHO_C" >&6
33083 else
33084   ac_cv_func_setvbuf_reversed=no
33085    cat >conftest.$ac_ext <<_ACEOF
33086 #line $LINENO "configure"
33087 /* confdefs.h.  */
33088 _ACEOF
33089 cat confdefs.h >>conftest.$ac_ext
33090 cat >>conftest.$ac_ext <<_ACEOF
33091 /* end confdefs.h.  */
33092 #include <stdio.h>
33093 #         if PROTOTYPES
33094            int (setvbuf) (FILE *, int, char *, size_t);
33095 #         endif
33096 int
33097 main ()
33098 {
33099 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
33100   ;
33101   return 0;
33102 }
33103 _ACEOF
33104 rm -f conftest.$ac_objext conftest$ac_exeext
33105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33106   (eval $ac_link) 2>&5
33107   ac_status=$?
33108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109   (exit $ac_status); } &&
33110          { ac_try='test -s conftest$ac_exeext'
33111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33112   (eval $ac_try) 2>&5
33113   ac_status=$?
33114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33115   (exit $ac_status); }; }; then
33116   cat >conftest.$ac_ext <<_ACEOF
33117 #line $LINENO "configure"
33118 /* confdefs.h.  */
33119 _ACEOF
33120 cat confdefs.h >>conftest.$ac_ext
33121 cat >>conftest.$ac_ext <<_ACEOF
33122 /* end confdefs.h.  */
33123 #include <stdio.h>
33124 #            if PROTOTYPES
33125               int (setvbuf) (FILE *, int, char *, size_t);
33126 #            endif
33127 int
33128 main ()
33129 {
33130 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
33131   ;
33132   return 0;
33133 }
33134 _ACEOF
33135 rm -f conftest.$ac_objext conftest$ac_exeext
33136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33137   (eval $ac_link) 2>&5
33138   ac_status=$?
33139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140   (exit $ac_status); } &&
33141          { ac_try='test -s conftest$ac_exeext'
33142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33143   (eval $ac_try) 2>&5
33144   ac_status=$?
33145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33146   (exit $ac_status); }; }; then
33147   # It compiles and links either way, so it must not be declared
33148          # with a prototype and most likely this is a K&R C compiler.
33149          # Try running it.
33150          if test "$cross_compiling" = yes; then
33151   : # Assume setvbuf is not reversed when cross-compiling.
33152 else
33153   cat >conftest.$ac_ext <<_ACEOF
33154 #line $LINENO "configure"
33155 /* confdefs.h.  */
33156 _ACEOF
33157 cat confdefs.h >>conftest.$ac_ext
33158 cat >>conftest.$ac_ext <<_ACEOF
33159 /* end confdefs.h.  */
33160 #include <stdio.h>
33161 int
33162 main ()
33163 {
33164 /* This call has the arguments reversed.
33165                    A reversed system may check and see that the address of buf
33166                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
33167                 char buf;
33168                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
33169                   exit (1);
33170                 putchar ('\r');
33171                 exit (0); /* Non-reversed systems SEGV here.  */
33172   ;
33173   return 0;
33174 }
33175 _ACEOF
33176 rm -f conftest$ac_exeext
33177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33178   (eval $ac_link) 2>&5
33179   ac_status=$?
33180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33181   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33183   (eval $ac_try) 2>&5
33184   ac_status=$?
33185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33186   (exit $ac_status); }; }; then
33187   ac_cv_func_setvbuf_reversed=yes
33188 else
33189   echo "$as_me: program exited with status $ac_status" >&5
33190 echo "$as_me: failed program was:" >&5
33191 sed 's/^/| /' conftest.$ac_ext >&5
33192
33193 ( exit $ac_status )
33194 rm -f core core.* *.core
33195 fi
33196 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33197 fi
33198         ac_cv_func_setvbuf_reversed=yes
33199 else
33200   echo "$as_me: failed program was:" >&5
33201 sed 's/^/| /' conftest.$ac_ext >&5
33202
33203 fi
33204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33205 else
33206   echo "$as_me: failed program was:" >&5
33207 sed 's/^/| /' conftest.$ac_ext >&5
33208
33209 fi
33210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33211 fi
33212 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
33213 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
33214 if test $ac_cv_func_setvbuf_reversed = yes; then
33215
33216 cat >>confdefs.h <<\_ACEOF
33217 #define SETVBUF_REVERSED 1
33218 _ACEOF
33219
33220 fi
33221
33222
33223   # used by sleep and shred
33224   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
33225   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
33226
33227   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
33228   # programs in the package would end up linked with that potentially-shared
33229   # library, inducing unnecessary run-time overhead.
33230   fetish_saved_libs=$LIBS
33231
33232   echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
33233 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
33234 if test "${ac_cv_search_clock_gettime+set}" = set; then
33235   echo $ECHO_N "(cached) $ECHO_C" >&6
33236 else
33237
33238     ac_func_search_save_LIBS=$LIBS
33239     ac_cv_search_clock_gettime=no
33240     cat >conftest.$ac_ext <<_ACEOF
33241 #line $LINENO "configure"
33242 /* confdefs.h.  */
33243 _ACEOF
33244 cat confdefs.h >>conftest.$ac_ext
33245 cat >>conftest.$ac_ext <<_ACEOF
33246 /* end confdefs.h.  */
33247
33248 /* Override any gcc2 internal prototype to avoid an error.  */
33249 #ifdef __cplusplus
33250 extern "C"
33251 #endif
33252 /* We use char because int might match the return type of a gcc2
33253    builtin and then its argument prototype would still apply.  */
33254 char clock_gettime ();
33255 int
33256 main ()
33257 {
33258 clock_gettime ();
33259   ;
33260   return 0;
33261 }
33262 _ACEOF
33263 rm -f conftest.$ac_objext conftest$ac_exeext
33264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33265   (eval $ac_link) 2>&5
33266   ac_status=$?
33267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33268   (exit $ac_status); } &&
33269          { ac_try='test -s conftest$ac_exeext'
33270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33271   (eval $ac_try) 2>&5
33272   ac_status=$?
33273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274   (exit $ac_status); }; }; then
33275   ac_cv_search_clock_gettime='none required'
33276 else
33277   echo "$as_me: failed program was:" >&5
33278 sed 's/^/| /' conftest.$ac_ext >&5
33279
33280 fi
33281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33282     if test "$ac_cv_search_clock_gettime" = no; then
33283       for ac_lib in rt posix4; do
33284         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33285         cat >conftest.$ac_ext <<_ACEOF
33286 #line $LINENO "configure"
33287 /* confdefs.h.  */
33288 _ACEOF
33289 cat confdefs.h >>conftest.$ac_ext
33290 cat >>conftest.$ac_ext <<_ACEOF
33291 /* end confdefs.h.  */
33292
33293 /* Override any gcc2 internal prototype to avoid an error.  */
33294 #ifdef __cplusplus
33295 extern "C"
33296 #endif
33297 /* We use char because int might match the return type of a gcc2
33298    builtin and then its argument prototype would still apply.  */
33299 char clock_gettime ();
33300 int
33301 main ()
33302 {
33303 clock_gettime ();
33304   ;
33305   return 0;
33306 }
33307 _ACEOF
33308 rm -f conftest.$ac_objext conftest$ac_exeext
33309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33310   (eval $ac_link) 2>&5
33311   ac_status=$?
33312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313   (exit $ac_status); } &&
33314          { ac_try='test -s conftest$ac_exeext'
33315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33316   (eval $ac_try) 2>&5
33317   ac_status=$?
33318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319   (exit $ac_status); }; }; then
33320   ac_cv_search_clock_gettime="-l$ac_lib"; break
33321 else
33322   echo "$as_me: failed program was:" >&5
33323 sed 's/^/| /' conftest.$ac_ext >&5
33324
33325 fi
33326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33327       done
33328     fi
33329     LIBS=$ac_func_search_save_LIBS
33330
33331 fi
33332 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
33333 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
33334
33335   if test "$ac_cv_search_clock_gettime" = no; then :
33336
33337   else
33338     if test "$ac_cv_search_clock_gettime" = 'none required'; then :
33339
33340     else
33341       LIBS="$ac_cv_search_clock_gettime $LIBS"
33342       LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
33343     fi
33344   fi
33345
33346
33347
33348
33349 for ac_func in clock_gettime clock_settime
33350 do
33351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33352 echo "$as_me:$LINENO: checking for $ac_func" >&5
33353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33354 if eval "test \"\${$as_ac_var+set}\" = set"; then
33355   echo $ECHO_N "(cached) $ECHO_C" >&6
33356 else
33357   cat >conftest.$ac_ext <<_ACEOF
33358 #line $LINENO "configure"
33359 /* confdefs.h.  */
33360 _ACEOF
33361 cat confdefs.h >>conftest.$ac_ext
33362 cat >>conftest.$ac_ext <<_ACEOF
33363 /* end confdefs.h.  */
33364 /* System header to define __stub macros and hopefully few prototypes,
33365     which can conflict with char $ac_func (); below.
33366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33367     <limits.h> exists even on freestanding compilers.  */
33368 #ifdef __STDC__
33369 # include <limits.h>
33370 #else
33371 # include <assert.h>
33372 #endif
33373 /* Override any gcc2 internal prototype to avoid an error.  */
33374 #ifdef __cplusplus
33375 extern "C"
33376 {
33377 #endif
33378 /* We use char because int might match the return type of a gcc2
33379    builtin and then its argument prototype would still apply.  */
33380 char $ac_func ();
33381 /* The GNU C library defines this for functions which it implements
33382     to always fail with ENOSYS.  Some functions are actually named
33383     something starting with __ and the normal name is an alias.  */
33384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33385 choke me
33386 #else
33387 char (*f) () = $ac_func;
33388 #endif
33389 #ifdef __cplusplus
33390 }
33391 #endif
33392
33393 int
33394 main ()
33395 {
33396 return f != $ac_func;
33397   ;
33398   return 0;
33399 }
33400 _ACEOF
33401 rm -f conftest.$ac_objext conftest$ac_exeext
33402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33403   (eval $ac_link) 2>&5
33404   ac_status=$?
33405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33406   (exit $ac_status); } &&
33407          { ac_try='test -s conftest$ac_exeext'
33408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33409   (eval $ac_try) 2>&5
33410   ac_status=$?
33411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33412   (exit $ac_status); }; }; then
33413   eval "$as_ac_var=yes"
33414 else
33415   echo "$as_me: failed program was:" >&5
33416 sed 's/^/| /' conftest.$ac_ext >&5
33417
33418 eval "$as_ac_var=no"
33419 fi
33420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33421 fi
33422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33423 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33424 if test `eval echo '${'$as_ac_var'}'` = yes; then
33425   cat >>confdefs.h <<_ACEOF
33426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33427 _ACEOF
33428
33429 fi
33430 done
33431
33432   LIBS=$fetish_saved_libs
33433
33434 for ac_func in gettimeofday
33435 do
33436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33437 echo "$as_me:$LINENO: checking for $ac_func" >&5
33438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33439 if eval "test \"\${$as_ac_var+set}\" = set"; then
33440   echo $ECHO_N "(cached) $ECHO_C" >&6
33441 else
33442   cat >conftest.$ac_ext <<_ACEOF
33443 #line $LINENO "configure"
33444 /* confdefs.h.  */
33445 _ACEOF
33446 cat confdefs.h >>conftest.$ac_ext
33447 cat >>conftest.$ac_ext <<_ACEOF
33448 /* end confdefs.h.  */
33449 /* System header to define __stub macros and hopefully few prototypes,
33450     which can conflict with char $ac_func (); below.
33451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33452     <limits.h> exists even on freestanding compilers.  */
33453 #ifdef __STDC__
33454 # include <limits.h>
33455 #else
33456 # include <assert.h>
33457 #endif
33458 /* Override any gcc2 internal prototype to avoid an error.  */
33459 #ifdef __cplusplus
33460 extern "C"
33461 {
33462 #endif
33463 /* We use char because int might match the return type of a gcc2
33464    builtin and then its argument prototype would still apply.  */
33465 char $ac_func ();
33466 /* The GNU C library defines this for functions which it implements
33467     to always fail with ENOSYS.  Some functions are actually named
33468     something starting with __ and the normal name is an alias.  */
33469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33470 choke me
33471 #else
33472 char (*f) () = $ac_func;
33473 #endif
33474 #ifdef __cplusplus
33475 }
33476 #endif
33477
33478 int
33479 main ()
33480 {
33481 return f != $ac_func;
33482   ;
33483   return 0;
33484 }
33485 _ACEOF
33486 rm -f conftest.$ac_objext conftest$ac_exeext
33487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33488   (eval $ac_link) 2>&5
33489   ac_status=$?
33490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33491   (exit $ac_status); } &&
33492          { ac_try='test -s conftest$ac_exeext'
33493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33494   (eval $ac_try) 2>&5
33495   ac_status=$?
33496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497   (exit $ac_status); }; }; then
33498   eval "$as_ac_var=yes"
33499 else
33500   echo "$as_me: failed program was:" >&5
33501 sed 's/^/| /' conftest.$ac_ext >&5
33502
33503 eval "$as_ac_var=no"
33504 fi
33505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33506 fi
33507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33509 if test `eval echo '${'$as_ac_var'}'` = yes; then
33510   cat >>confdefs.h <<_ACEOF
33511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33512 _ACEOF
33513
33514 fi
33515 done
33516
33517
33518
33519
33520
33521 for ac_header in string.h stdlib.h
33522 do
33523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33525   echo "$as_me:$LINENO: checking for $ac_header" >&5
33526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33528   echo $ECHO_N "(cached) $ECHO_C" >&6
33529 fi
33530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33532 else
33533   # Is the header compilable?
33534 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33536 cat >conftest.$ac_ext <<_ACEOF
33537 #line $LINENO "configure"
33538 /* confdefs.h.  */
33539 _ACEOF
33540 cat confdefs.h >>conftest.$ac_ext
33541 cat >>conftest.$ac_ext <<_ACEOF
33542 /* end confdefs.h.  */
33543 $ac_includes_default
33544 #include <$ac_header>
33545 _ACEOF
33546 rm -f conftest.$ac_objext
33547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33548   (eval $ac_compile) 2>&5
33549   ac_status=$?
33550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551   (exit $ac_status); } &&
33552          { ac_try='test -s conftest.$ac_objext'
33553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33554   (eval $ac_try) 2>&5
33555   ac_status=$?
33556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33557   (exit $ac_status); }; }; then
33558   ac_header_compiler=yes
33559 else
33560   echo "$as_me: failed program was:" >&5
33561 sed 's/^/| /' conftest.$ac_ext >&5
33562
33563 ac_header_compiler=no
33564 fi
33565 rm -f conftest.$ac_objext conftest.$ac_ext
33566 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33567 echo "${ECHO_T}$ac_header_compiler" >&6
33568
33569 # Is the header present?
33570 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33572 cat >conftest.$ac_ext <<_ACEOF
33573 #line $LINENO "configure"
33574 /* confdefs.h.  */
33575 _ACEOF
33576 cat confdefs.h >>conftest.$ac_ext
33577 cat >>conftest.$ac_ext <<_ACEOF
33578 /* end confdefs.h.  */
33579 #include <$ac_header>
33580 _ACEOF
33581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33582   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33583   ac_status=$?
33584   grep -v '^ *+' conftest.er1 >conftest.err
33585   rm -f conftest.er1
33586   cat conftest.err >&5
33587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33588   (exit $ac_status); } >/dev/null; then
33589   if test -s conftest.err; then
33590     ac_cpp_err=$ac_c_preproc_warn_flag
33591   else
33592     ac_cpp_err=
33593   fi
33594 else
33595   ac_cpp_err=yes
33596 fi
33597 if test -z "$ac_cpp_err"; then
33598   ac_header_preproc=yes
33599 else
33600   echo "$as_me: failed program was:" >&5
33601 sed 's/^/| /' conftest.$ac_ext >&5
33602
33603   ac_header_preproc=no
33604 fi
33605 rm -f conftest.err conftest.$ac_ext
33606 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33607 echo "${ECHO_T}$ac_header_preproc" >&6
33608
33609 # So?  What about this header?
33610 case $ac_header_compiler:$ac_header_preproc in
33611   yes:no )
33612     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33616     (
33617       cat <<\_ASBOX
33618 ## ------------------------------------ ##
33619 ## Report this to bug-autoconf@gnu.org. ##
33620 ## ------------------------------------ ##
33621 _ASBOX
33622     ) |
33623       sed "s/^/$as_me: WARNING:     /" >&2
33624     ;;
33625   no:yes )
33626     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33628     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33632     (
33633       cat <<\_ASBOX
33634 ## ------------------------------------ ##
33635 ## Report this to bug-autoconf@gnu.org. ##
33636 ## ------------------------------------ ##
33637 _ASBOX
33638     ) |
33639       sed "s/^/$as_me: WARNING:     /" >&2
33640     ;;
33641 esac
33642 echo "$as_me:$LINENO: checking for $ac_header" >&5
33643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33645   echo $ECHO_N "(cached) $ECHO_C" >&6
33646 else
33647   eval "$as_ac_Header=$ac_header_preproc"
33648 fi
33649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33651
33652 fi
33653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33654   cat >>confdefs.h <<_ACEOF
33655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33656 _ACEOF
33657
33658 fi
33659
33660 done
33661
33662  echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
33663 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6
33664 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
33665   echo $ECHO_N "(cached) $ECHO_C" >&6
33666 else
33667   if test "$cross_compiling" = yes; then
33668          jm_cv_func_gettimeofday_clobber=yes
33669 else
33670   cat >conftest.$ac_ext <<_ACEOF
33671 #line $LINENO "configure"
33672 /* confdefs.h.  */
33673 _ACEOF
33674 cat confdefs.h >>conftest.$ac_ext
33675 cat >>conftest.$ac_ext <<_ACEOF
33676 /* end confdefs.h.  */
33677
33678 #include <stdio.h>
33679 #if HAVE_STRING_H
33680 # include <string.h>
33681 #endif
33682
33683 #if TIME_WITH_SYS_TIME
33684 # include <sys/time.h>
33685 # include <time.h>
33686 #else
33687 # if HAVE_SYS_TIME_H
33688 #  include <sys/time.h>
33689 # else
33690 #  include <time.h>
33691 # endif
33692 #endif
33693
33694 #if HAVE_STDLIB_H
33695 # include <stdlib.h>
33696 #endif
33697
33698 int
33699 main ()
33700 {
33701   time_t t = 0;
33702   struct tm *lt;
33703   struct tm saved_lt;
33704   struct timeval tv;
33705   lt = localtime (&t);
33706   saved_lt = *lt;
33707   gettimeofday (&tv, NULL);
33708   if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
33709     exit (1);
33710
33711   exit (0);
33712 }
33713
33714 _ACEOF
33715 rm -f conftest$ac_exeext
33716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33717   (eval $ac_link) 2>&5
33718   ac_status=$?
33719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33720   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33722   (eval $ac_try) 2>&5
33723   ac_status=$?
33724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33725   (exit $ac_status); }; }; then
33726   jm_cv_func_gettimeofday_clobber=no
33727 else
33728   echo "$as_me: program exited with status $ac_status" >&5
33729 echo "$as_me: failed program was:" >&5
33730 sed 's/^/| /' conftest.$ac_ext >&5
33731
33732 ( exit $ac_status )
33733 jm_cv_func_gettimeofday_clobber=yes
33734 fi
33735 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33736 fi
33737
33738 fi
33739 echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
33740 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6
33741   if test $jm_cv_func_gettimeofday_clobber = yes; then
33742     LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
33743
33744 cat >>confdefs.h <<\_ACEOF
33745 #define localtime rpl_localtime
33746 _ACEOF
33747
33748
33749 cat >>confdefs.h <<\_ACEOF
33750 #define gettimeofday rpl_gettimeofday
33751 _ACEOF
33752
33753
33754 cat >>confdefs.h <<\_ACEOF
33755 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER 1
33756 _ACEOF
33757
33758   fi
33759
33760
33761
33762
33763
33764
33765
33766
33767
33768
33769
33770
33771
33772
33773
33774
33775
33776
33777
33778
33779
33780
33781
33782
33783
33784
33785
33786
33787
33788
33789
33790
33791
33792 for ac_func in \
33793     bcopy \
33794     endgrent \
33795     endpwent \
33796     fchdir \
33797     fdatasync \
33798     ftime \
33799     ftruncate \
33800     getcwd \
33801     gethrtime \
33802     getmntinfo \
33803     hasmntopt \
33804     isascii \
33805     iswspace \
33806     lchown \
33807     listmntent \
33808     localeconv \
33809     memcpy \
33810     mempcpy \
33811     mkfifo \
33812     realpath \
33813     sethostname \
33814     strchr \
33815     strerror \
33816     strrchr \
33817     sysctl \
33818     sysinfo \
33819     wcrtomb \
33820     tzset \
33821
33822 do
33823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33824 echo "$as_me:$LINENO: checking for $ac_func" >&5
33825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33826 if eval "test \"\${$as_ac_var+set}\" = set"; then
33827   echo $ECHO_N "(cached) $ECHO_C" >&6
33828 else
33829   cat >conftest.$ac_ext <<_ACEOF
33830 #line $LINENO "configure"
33831 /* confdefs.h.  */
33832 _ACEOF
33833 cat confdefs.h >>conftest.$ac_ext
33834 cat >>conftest.$ac_ext <<_ACEOF
33835 /* end confdefs.h.  */
33836 /* System header to define __stub macros and hopefully few prototypes,
33837     which can conflict with char $ac_func (); below.
33838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33839     <limits.h> exists even on freestanding compilers.  */
33840 #ifdef __STDC__
33841 # include <limits.h>
33842 #else
33843 # include <assert.h>
33844 #endif
33845 /* Override any gcc2 internal prototype to avoid an error.  */
33846 #ifdef __cplusplus
33847 extern "C"
33848 {
33849 #endif
33850 /* We use char because int might match the return type of a gcc2
33851    builtin and then its argument prototype would still apply.  */
33852 char $ac_func ();
33853 /* The GNU C library defines this for functions which it implements
33854     to always fail with ENOSYS.  Some functions are actually named
33855     something starting with __ and the normal name is an alias.  */
33856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33857 choke me
33858 #else
33859 char (*f) () = $ac_func;
33860 #endif
33861 #ifdef __cplusplus
33862 }
33863 #endif
33864
33865 int
33866 main ()
33867 {
33868 return f != $ac_func;
33869   ;
33870   return 0;
33871 }
33872 _ACEOF
33873 rm -f conftest.$ac_objext conftest$ac_exeext
33874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33875   (eval $ac_link) 2>&5
33876   ac_status=$?
33877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33878   (exit $ac_status); } &&
33879          { ac_try='test -s conftest$ac_exeext'
33880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33881   (eval $ac_try) 2>&5
33882   ac_status=$?
33883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33884   (exit $ac_status); }; }; then
33885   eval "$as_ac_var=yes"
33886 else
33887   echo "$as_me: failed program was:" >&5
33888 sed 's/^/| /' conftest.$ac_ext >&5
33889
33890 eval "$as_ac_var=no"
33891 fi
33892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33893 fi
33894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33896 if test `eval echo '${'$as_ac_var'}'` = yes; then
33897   cat >>confdefs.h <<_ACEOF
33898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33899 _ACEOF
33900
33901 fi
33902 done
33903
33904
33905     am_getline_needs_run_time_check=no
33906   echo "$as_me:$LINENO: checking for getline" >&5
33907 echo $ECHO_N "checking for getline... $ECHO_C" >&6
33908 if test "${ac_cv_func_getline+set}" = set; then
33909   echo $ECHO_N "(cached) $ECHO_C" >&6
33910 else
33911   cat >conftest.$ac_ext <<_ACEOF
33912 #line $LINENO "configure"
33913 /* confdefs.h.  */
33914 _ACEOF
33915 cat confdefs.h >>conftest.$ac_ext
33916 cat >>conftest.$ac_ext <<_ACEOF
33917 /* end confdefs.h.  */
33918 /* System header to define __stub macros and hopefully few prototypes,
33919     which can conflict with char getline (); below.
33920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33921     <limits.h> exists even on freestanding compilers.  */
33922 #ifdef __STDC__
33923 # include <limits.h>
33924 #else
33925 # include <assert.h>
33926 #endif
33927 /* Override any gcc2 internal prototype to avoid an error.  */
33928 #ifdef __cplusplus
33929 extern "C"
33930 {
33931 #endif
33932 /* We use char because int might match the return type of a gcc2
33933    builtin and then its argument prototype would still apply.  */
33934 char getline ();
33935 /* The GNU C library defines this for functions which it implements
33936     to always fail with ENOSYS.  Some functions are actually named
33937     something starting with __ and the normal name is an alias.  */
33938 #if defined (__stub_getline) || defined (__stub___getline)
33939 choke me
33940 #else
33941 char (*f) () = getline;
33942 #endif
33943 #ifdef __cplusplus
33944 }
33945 #endif
33946
33947 int
33948 main ()
33949 {
33950 return f != getline;
33951   ;
33952   return 0;
33953 }
33954 _ACEOF
33955 rm -f conftest.$ac_objext conftest$ac_exeext
33956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33957   (eval $ac_link) 2>&5
33958   ac_status=$?
33959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33960   (exit $ac_status); } &&
33961          { ac_try='test -s conftest$ac_exeext'
33962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33963   (eval $ac_try) 2>&5
33964   ac_status=$?
33965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33966   (exit $ac_status); }; }; then
33967   ac_cv_func_getline=yes
33968 else
33969   echo "$as_me: failed program was:" >&5
33970 sed 's/^/| /' conftest.$ac_ext >&5
33971
33972 ac_cv_func_getline=no
33973 fi
33974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33975 fi
33976 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
33977 echo "${ECHO_T}$ac_cv_func_getline" >&6
33978 if test $ac_cv_func_getline = yes; then
33979                 am_getline_needs_run_time_check=yes
33980 else
33981   am_cv_func_working_getline=no
33982 fi
33983
33984   if test $am_getline_needs_run_time_check = yes; then
33985     echo "$as_me:$LINENO: checking for working getline function" >&5
33986 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
33987 if test "${am_cv_func_working_getline+set}" = set; then
33988   echo $ECHO_N "(cached) $ECHO_C" >&6
33989 else
33990   echo fooN |tr -d '\012'|tr N '\012' > conftest.data
33991     if test "$cross_compiling" = yes; then
33992   am_cv_func_working_getline=no
33993 else
33994   cat >conftest.$ac_ext <<_ACEOF
33995 #line $LINENO "configure"
33996 /* confdefs.h.  */
33997 _ACEOF
33998 cat confdefs.h >>conftest.$ac_ext
33999 cat >>conftest.$ac_ext <<_ACEOF
34000 /* end confdefs.h.  */
34001
34002 #    include <stdio.h>
34003 #    include <sys/types.h>
34004 #    include <string.h>
34005     int main ()
34006     { /* Based on a test program from Karl Heuer.  */
34007       char *line = NULL;
34008       size_t siz = 0;
34009       int len;
34010       FILE *in = fopen ("./conftest.data", "r");
34011       if (!in)
34012         return 1;
34013       len = getline (&line, &siz, in);
34014       exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
34015     }
34016
34017 _ACEOF
34018 rm -f conftest$ac_exeext
34019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34020   (eval $ac_link) 2>&5
34021   ac_status=$?
34022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34025   (eval $ac_try) 2>&5
34026   ac_status=$?
34027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34028   (exit $ac_status); }; }; then
34029   am_cv_func_working_getline=yes
34030 else
34031   echo "$as_me: program exited with status $ac_status" >&5
34032 echo "$as_me: failed program was:" >&5
34033 sed 's/^/| /' conftest.$ac_ext >&5
34034
34035 ( exit $ac_status )
34036 am_cv_func_working_getline=no
34037 fi
34038 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34039 fi
34040 fi
34041 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
34042 echo "${ECHO_T}$am_cv_func_working_getline" >&6
34043   fi
34044
34045   if test $am_cv_func_working_getline = no; then
34046     LIBOBJS="$LIBOBJS getline.$ac_objext"
34047   fi
34048
34049   if test $am_cv_func_working_getline != yes; then
34050
34051 for ac_func in getdelim
34052 do
34053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34054 echo "$as_me:$LINENO: checking for $ac_func" >&5
34055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34056 if eval "test \"\${$as_ac_var+set}\" = set"; then
34057   echo $ECHO_N "(cached) $ECHO_C" >&6
34058 else
34059   cat >conftest.$ac_ext <<_ACEOF
34060 #line $LINENO "configure"
34061 /* confdefs.h.  */
34062 _ACEOF
34063 cat confdefs.h >>conftest.$ac_ext
34064 cat >>conftest.$ac_ext <<_ACEOF
34065 /* end confdefs.h.  */
34066 /* System header to define __stub macros and hopefully few prototypes,
34067     which can conflict with char $ac_func (); below.
34068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34069     <limits.h> exists even on freestanding compilers.  */
34070 #ifdef __STDC__
34071 # include <limits.h>
34072 #else
34073 # include <assert.h>
34074 #endif
34075 /* Override any gcc2 internal prototype to avoid an error.  */
34076 #ifdef __cplusplus
34077 extern "C"
34078 {
34079 #endif
34080 /* We use char because int might match the return type of a gcc2
34081    builtin and then its argument prototype would still apply.  */
34082 char $ac_func ();
34083 /* The GNU C library defines this for functions which it implements
34084     to always fail with ENOSYS.  Some functions are actually named
34085     something starting with __ and the normal name is an alias.  */
34086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34087 choke me
34088 #else
34089 char (*f) () = $ac_func;
34090 #endif
34091 #ifdef __cplusplus
34092 }
34093 #endif
34094
34095 int
34096 main ()
34097 {
34098 return f != $ac_func;
34099   ;
34100   return 0;
34101 }
34102 _ACEOF
34103 rm -f conftest.$ac_objext conftest$ac_exeext
34104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34105   (eval $ac_link) 2>&5
34106   ac_status=$?
34107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34108   (exit $ac_status); } &&
34109          { ac_try='test -s conftest$ac_exeext'
34110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34111   (eval $ac_try) 2>&5
34112   ac_status=$?
34113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34114   (exit $ac_status); }; }; then
34115   eval "$as_ac_var=yes"
34116 else
34117   echo "$as_me: failed program was:" >&5
34118 sed 's/^/| /' conftest.$ac_ext >&5
34119
34120 eval "$as_ac_var=no"
34121 fi
34122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34123 fi
34124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34126 if test `eval echo '${'$as_ac_var'}'` = yes; then
34127   cat >>confdefs.h <<_ACEOF
34128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34129 _ACEOF
34130
34131 fi
34132 done
34133
34134   fi
34135   echo "$as_me:$LINENO: checking for obstacks" >&5
34136 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
34137 if test "${ac_cv_func_obstack+set}" = set; then
34138   echo $ECHO_N "(cached) $ECHO_C" >&6
34139 else
34140   cat >conftest.$ac_ext <<_ACEOF
34141 #line $LINENO "configure"
34142 /* confdefs.h.  */
34143 _ACEOF
34144 cat confdefs.h >>conftest.$ac_ext
34145 cat >>conftest.$ac_ext <<_ACEOF
34146 /* end confdefs.h.  */
34147 #include "obstack.h"
34148 int
34149 main ()
34150 {
34151 struct obstack *mem; obstack_free(mem,(char *) 0)
34152   ;
34153   return 0;
34154 }
34155 _ACEOF
34156 rm -f conftest.$ac_objext conftest$ac_exeext
34157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34158   (eval $ac_link) 2>&5
34159   ac_status=$?
34160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34161   (exit $ac_status); } &&
34162          { ac_try='test -s conftest$ac_exeext'
34163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34164   (eval $ac_try) 2>&5
34165   ac_status=$?
34166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34167   (exit $ac_status); }; }; then
34168   ac_cv_func_obstack=yes
34169 else
34170   echo "$as_me: failed program was:" >&5
34171 sed 's/^/| /' conftest.$ac_ext >&5
34172
34173 ac_cv_func_obstack=no
34174 fi
34175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34176 fi
34177 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
34178 echo "${ECHO_T}$ac_cv_func_obstack" >&6
34179 if test $ac_cv_func_obstack = yes; then
34180
34181 cat >>confdefs.h <<\_ACEOF
34182 #define HAVE_OBSTACK 1
34183 _ACEOF
34184
34185 else
34186   LIBOBJS="$LIBOBJS obstack.$ac_objext"
34187 fi
34188
34189
34190   echo "$as_me:$LINENO: checking for working strtod" >&5
34191 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
34192 if test "${ac_cv_func_strtod+set}" = set; then
34193   echo $ECHO_N "(cached) $ECHO_C" >&6
34194 else
34195   if test "$cross_compiling" = yes; then
34196   ac_cv_func_strtod=no
34197 else
34198   cat >conftest.$ac_ext <<_ACEOF
34199 #line $LINENO "configure"
34200 /* confdefs.h.  */
34201 _ACEOF
34202 cat confdefs.h >>conftest.$ac_ext
34203 cat >>conftest.$ac_ext <<_ACEOF
34204 /* end confdefs.h.  */
34205
34206 double strtod ();
34207 int
34208 main()
34209 {
34210   {
34211     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
34212     char *string = " +69";
34213     char *term;
34214     double value;
34215     value = strtod (string, &term);
34216     if (value != 69 || term != (string + 4))
34217       exit (1);
34218   }
34219
34220   {
34221     /* Under Solaris 2.4, strtod returns the wrong value for the
34222        terminating character under some conditions.  */
34223     char *string = "NaN";
34224     char *term;
34225     strtod (string, &term);
34226     if (term != string && *(term - 1) == 0)
34227       exit (1);
34228   }
34229   exit (0);
34230 }
34231
34232 _ACEOF
34233 rm -f conftest$ac_exeext
34234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34235   (eval $ac_link) 2>&5
34236   ac_status=$?
34237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34238   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34240   (eval $ac_try) 2>&5
34241   ac_status=$?
34242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34243   (exit $ac_status); }; }; then
34244   ac_cv_func_strtod=yes
34245 else
34246   echo "$as_me: program exited with status $ac_status" >&5
34247 echo "$as_me: failed program was:" >&5
34248 sed 's/^/| /' conftest.$ac_ext >&5
34249
34250 ( exit $ac_status )
34251 ac_cv_func_strtod=no
34252 fi
34253 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34254 fi
34255 fi
34256 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
34257 echo "${ECHO_T}$ac_cv_func_strtod" >&6
34258 if test $ac_cv_func_strtod = no; then
34259   LIBOBJS="$LIBOBJS strtod.$ac_objext"
34260 echo "$as_me:$LINENO: checking for pow" >&5
34261 echo $ECHO_N "checking for pow... $ECHO_C" >&6
34262 if test "${ac_cv_func_pow+set}" = set; then
34263   echo $ECHO_N "(cached) $ECHO_C" >&6
34264 else
34265   cat >conftest.$ac_ext <<_ACEOF
34266 #line $LINENO "configure"
34267 /* confdefs.h.  */
34268 _ACEOF
34269 cat confdefs.h >>conftest.$ac_ext
34270 cat >>conftest.$ac_ext <<_ACEOF
34271 /* end confdefs.h.  */
34272 /* System header to define __stub macros and hopefully few prototypes,
34273     which can conflict with char pow (); below.
34274     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34275     <limits.h> exists even on freestanding compilers.  */
34276 #ifdef __STDC__
34277 # include <limits.h>
34278 #else
34279 # include <assert.h>
34280 #endif
34281 /* Override any gcc2 internal prototype to avoid an error.  */
34282 #ifdef __cplusplus
34283 extern "C"
34284 {
34285 #endif
34286 /* We use char because int might match the return type of a gcc2
34287    builtin and then its argument prototype would still apply.  */
34288 char pow ();
34289 /* The GNU C library defines this for functions which it implements
34290     to always fail with ENOSYS.  Some functions are actually named
34291     something starting with __ and the normal name is an alias.  */
34292 #if defined (__stub_pow) || defined (__stub___pow)
34293 choke me
34294 #else
34295 char (*f) () = pow;
34296 #endif
34297 #ifdef __cplusplus
34298 }
34299 #endif
34300
34301 int
34302 main ()
34303 {
34304 return f != pow;
34305   ;
34306   return 0;
34307 }
34308 _ACEOF
34309 rm -f conftest.$ac_objext conftest$ac_exeext
34310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34311   (eval $ac_link) 2>&5
34312   ac_status=$?
34313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34314   (exit $ac_status); } &&
34315          { ac_try='test -s conftest$ac_exeext'
34316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34317   (eval $ac_try) 2>&5
34318   ac_status=$?
34319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34320   (exit $ac_status); }; }; then
34321   ac_cv_func_pow=yes
34322 else
34323   echo "$as_me: failed program was:" >&5
34324 sed 's/^/| /' conftest.$ac_ext >&5
34325
34326 ac_cv_func_pow=no
34327 fi
34328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34329 fi
34330 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
34331 echo "${ECHO_T}$ac_cv_func_pow" >&6
34332
34333 if test $ac_cv_func_pow = no; then
34334   echo "$as_me:$LINENO: checking for pow in -lm" >&5
34335 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
34336 if test "${ac_cv_lib_m_pow+set}" = set; then
34337   echo $ECHO_N "(cached) $ECHO_C" >&6
34338 else
34339   ac_check_lib_save_LIBS=$LIBS
34340 LIBS="-lm  $LIBS"
34341 cat >conftest.$ac_ext <<_ACEOF
34342 #line $LINENO "configure"
34343 /* confdefs.h.  */
34344 _ACEOF
34345 cat confdefs.h >>conftest.$ac_ext
34346 cat >>conftest.$ac_ext <<_ACEOF
34347 /* end confdefs.h.  */
34348
34349 /* Override any gcc2 internal prototype to avoid an error.  */
34350 #ifdef __cplusplus
34351 extern "C"
34352 #endif
34353 /* We use char because int might match the return type of a gcc2
34354    builtin and then its argument prototype would still apply.  */
34355 char pow ();
34356 int
34357 main ()
34358 {
34359 pow ();
34360   ;
34361   return 0;
34362 }
34363 _ACEOF
34364 rm -f conftest.$ac_objext conftest$ac_exeext
34365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34366   (eval $ac_link) 2>&5
34367   ac_status=$?
34368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34369   (exit $ac_status); } &&
34370          { ac_try='test -s conftest$ac_exeext'
34371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34372   (eval $ac_try) 2>&5
34373   ac_status=$?
34374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34375   (exit $ac_status); }; }; then
34376   ac_cv_lib_m_pow=yes
34377 else
34378   echo "$as_me: failed program was:" >&5
34379 sed 's/^/| /' conftest.$ac_ext >&5
34380
34381 ac_cv_lib_m_pow=no
34382 fi
34383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34384 LIBS=$ac_check_lib_save_LIBS
34385 fi
34386 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
34387 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
34388 if test $ac_cv_lib_m_pow = yes; then
34389   POW_LIB=-lm
34390 else
34391   { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
34392 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
34393 fi
34394
34395 fi
34396
34397 fi
34398
34399
34400
34401   # See if linking `seq' requires -lm.
34402   # It does on nearly every system.  The single exception (so far) is
34403   # BeOS which has all the math functions in the normal runtime library
34404   # and doesn't have a separate math library.
34405
34406
34407   ac_seq_body='
34408      static double x, y;
34409      x = floor (x);
34410      x = rint (x);
34411      x = modf (x, &y);'
34412   cat >conftest.$ac_ext <<_ACEOF
34413 #line $LINENO "configure"
34414 /* confdefs.h.  */
34415 _ACEOF
34416 cat confdefs.h >>conftest.$ac_ext
34417 cat >>conftest.$ac_ext <<_ACEOF
34418 /* end confdefs.h.  */
34419 #include <math.h>
34420 int
34421 main ()
34422 {
34423 $ac_seq_body
34424   ;
34425   return 0;
34426 }
34427 _ACEOF
34428 rm -f conftest.$ac_objext conftest$ac_exeext
34429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34430   (eval $ac_link) 2>&5
34431   ac_status=$?
34432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34433   (exit $ac_status); } &&
34434          { ac_try='test -s conftest$ac_exeext'
34435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34436   (eval $ac_try) 2>&5
34437   ac_status=$?
34438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34439   (exit $ac_status); }; }; then
34440   :
34441 else
34442   echo "$as_me: failed program was:" >&5
34443 sed 's/^/| /' conftest.$ac_ext >&5
34444
34445 ac_seq_save_LIBS="$LIBS"
34446      LIBS="$LIBS -lm"
34447      cat >conftest.$ac_ext <<_ACEOF
34448 #line $LINENO "configure"
34449 /* confdefs.h.  */
34450 _ACEOF
34451 cat confdefs.h >>conftest.$ac_ext
34452 cat >>conftest.$ac_ext <<_ACEOF
34453 /* end confdefs.h.  */
34454 #include <math.h>
34455 int
34456 main ()
34457 {
34458 $ac_seq_body
34459   ;
34460   return 0;
34461 }
34462 _ACEOF
34463 rm -f conftest.$ac_objext conftest$ac_exeext
34464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34465   (eval $ac_link) 2>&5
34466   ac_status=$?
34467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34468   (exit $ac_status); } &&
34469          { ac_try='test -s conftest$ac_exeext'
34470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34471   (eval $ac_try) 2>&5
34472   ac_status=$?
34473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34474   (exit $ac_status); }; }; then
34475   SEQ_LIBM=-lm
34476 else
34477   echo "$as_me: failed program was:" >&5
34478 sed 's/^/| /' conftest.$ac_ext >&5
34479
34480 fi
34481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34482      LIBS="$ac_seq_save_LIBS"
34483
34484 fi
34485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34486
34487
34488   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
34489 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
34490 if test "${am_cv_langinfo_codeset+set}" = set; then
34491   echo $ECHO_N "(cached) $ECHO_C" >&6
34492 else
34493   cat >conftest.$ac_ext <<_ACEOF
34494 #line $LINENO "configure"
34495 /* confdefs.h.  */
34496 _ACEOF
34497 cat confdefs.h >>conftest.$ac_ext
34498 cat >>conftest.$ac_ext <<_ACEOF
34499 /* end confdefs.h.  */
34500 #include <langinfo.h>
34501 int
34502 main ()
34503 {
34504 char* cs = nl_langinfo(CODESET);
34505   ;
34506   return 0;
34507 }
34508 _ACEOF
34509 rm -f conftest.$ac_objext conftest$ac_exeext
34510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34511   (eval $ac_link) 2>&5
34512   ac_status=$?
34513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34514   (exit $ac_status); } &&
34515          { ac_try='test -s conftest$ac_exeext'
34516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34517   (eval $ac_try) 2>&5
34518   ac_status=$?
34519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34520   (exit $ac_status); }; }; then
34521   am_cv_langinfo_codeset=yes
34522 else
34523   echo "$as_me: failed program was:" >&5
34524 sed 's/^/| /' conftest.$ac_ext >&5
34525
34526 am_cv_langinfo_codeset=no
34527 fi
34528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34529
34530 fi
34531 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
34532 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
34533   if test $am_cv_langinfo_codeset = yes; then
34534
34535 cat >>confdefs.h <<\_ACEOF
34536 #define HAVE_LANGINFO_CODESET 1
34537 _ACEOF
34538
34539   fi
34540
34541
34542     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
34543 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
34544 if test "${ac_cv_gnu_library_2_1+set}" = set; then
34545   echo $ECHO_N "(cached) $ECHO_C" >&6
34546 else
34547   cat >conftest.$ac_ext <<_ACEOF
34548 #line $LINENO "configure"
34549 /* confdefs.h.  */
34550 _ACEOF
34551 cat confdefs.h >>conftest.$ac_ext
34552 cat >>conftest.$ac_ext <<_ACEOF
34553 /* end confdefs.h.  */
34554
34555 #include <features.h>
34556 #ifdef __GNU_LIBRARY__
34557  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
34558   Lucky GNU user
34559  #endif
34560 #endif
34561
34562 _ACEOF
34563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34564   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
34565   ac_cv_gnu_library_2_1=yes
34566 else
34567   ac_cv_gnu_library_2_1=no
34568 fi
34569 rm -f conftest*
34570
34571
34572
34573 fi
34574 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
34575 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
34576
34577     GLIBC21="$ac_cv_gnu_library_2_1"
34578
34579
34580
34581
34582
34583
34584
34585           am_save_CPPFLAGS="$CPPFLAGS"
34586
34587   for element in $INCICONV; do
34588     haveit=
34589     for x in $CPPFLAGS; do
34590
34591   acl_save_prefix="$prefix"
34592   prefix="$acl_final_prefix"
34593   acl_save_exec_prefix="$exec_prefix"
34594   exec_prefix="$acl_final_exec_prefix"
34595   eval x=\"$x\"
34596   exec_prefix="$acl_save_exec_prefix"
34597   prefix="$acl_save_prefix"
34598
34599       if test "X$x" = "X$element"; then
34600         haveit=yes
34601         break
34602       fi
34603     done
34604     if test -z "$haveit"; then
34605       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
34606     fi
34607   done
34608
34609
34610   echo "$as_me:$LINENO: checking for iconv" >&5
34611 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34612 if test "${am_cv_func_iconv+set}" = set; then
34613   echo $ECHO_N "(cached) $ECHO_C" >&6
34614 else
34615
34616     am_cv_func_iconv="no, consider installing GNU libiconv"
34617     am_cv_lib_iconv=no
34618     cat >conftest.$ac_ext <<_ACEOF
34619 #line $LINENO "configure"
34620 /* confdefs.h.  */
34621 _ACEOF
34622 cat confdefs.h >>conftest.$ac_ext
34623 cat >>conftest.$ac_ext <<_ACEOF
34624 /* end confdefs.h.  */
34625 #include <stdlib.h>
34626 #include <iconv.h>
34627 int
34628 main ()
34629 {
34630 iconv_t cd = iconv_open("","");
34631        iconv(cd,NULL,NULL,NULL,NULL);
34632        iconv_close(cd);
34633   ;
34634   return 0;
34635 }
34636 _ACEOF
34637 rm -f conftest.$ac_objext conftest$ac_exeext
34638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34639   (eval $ac_link) 2>&5
34640   ac_status=$?
34641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34642   (exit $ac_status); } &&
34643          { ac_try='test -s conftest$ac_exeext'
34644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34645   (eval $ac_try) 2>&5
34646   ac_status=$?
34647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34648   (exit $ac_status); }; }; then
34649   am_cv_func_iconv=yes
34650 else
34651   echo "$as_me: failed program was:" >&5
34652 sed 's/^/| /' conftest.$ac_ext >&5
34653
34654 fi
34655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34656     if test "$am_cv_func_iconv" != yes; then
34657       am_save_LIBS="$LIBS"
34658       LIBS="$LIBS $LIBICONV"
34659       cat >conftest.$ac_ext <<_ACEOF
34660 #line $LINENO "configure"
34661 /* confdefs.h.  */
34662 _ACEOF
34663 cat confdefs.h >>conftest.$ac_ext
34664 cat >>conftest.$ac_ext <<_ACEOF
34665 /* end confdefs.h.  */
34666 #include <stdlib.h>
34667 #include <iconv.h>
34668 int
34669 main ()
34670 {
34671 iconv_t cd = iconv_open("","");
34672          iconv(cd,NULL,NULL,NULL,NULL);
34673          iconv_close(cd);
34674   ;
34675   return 0;
34676 }
34677 _ACEOF
34678 rm -f conftest.$ac_objext conftest$ac_exeext
34679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34680   (eval $ac_link) 2>&5
34681   ac_status=$?
34682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34683   (exit $ac_status); } &&
34684          { ac_try='test -s conftest$ac_exeext'
34685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34686   (eval $ac_try) 2>&5
34687   ac_status=$?
34688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34689   (exit $ac_status); }; }; then
34690   am_cv_lib_iconv=yes
34691         am_cv_func_iconv=yes
34692 else
34693   echo "$as_me: failed program was:" >&5
34694 sed 's/^/| /' conftest.$ac_ext >&5
34695
34696 fi
34697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34698       LIBS="$am_save_LIBS"
34699     fi
34700
34701 fi
34702 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34703 echo "${ECHO_T}$am_cv_func_iconv" >&6
34704   if test "$am_cv_func_iconv" = yes; then
34705
34706 cat >>confdefs.h <<\_ACEOF
34707 #define HAVE_ICONV 1
34708 _ACEOF
34709
34710   fi
34711   if test "$am_cv_lib_iconv" = yes; then
34712     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
34713 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
34714     echo "$as_me:$LINENO: result: $LIBICONV" >&5
34715 echo "${ECHO_T}$LIBICONV" >&6
34716   else
34717             CPPFLAGS="$am_save_CPPFLAGS"
34718     LIBICONV=
34719     LTLIBICONV=
34720   fi
34721
34722
34723
34724   if test "$am_cv_func_iconv" = yes; then
34725     echo "$as_me:$LINENO: checking for iconv declaration" >&5
34726 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
34727     if test "${am_cv_proto_iconv+set}" = set; then
34728   echo $ECHO_N "(cached) $ECHO_C" >&6
34729 else
34730
34731       cat >conftest.$ac_ext <<_ACEOF
34732 #line $LINENO "configure"
34733 /* confdefs.h.  */
34734 _ACEOF
34735 cat confdefs.h >>conftest.$ac_ext
34736 cat >>conftest.$ac_ext <<_ACEOF
34737 /* end confdefs.h.  */
34738
34739 #include <stdlib.h>
34740 #include <iconv.h>
34741 extern
34742 #ifdef __cplusplus
34743 "C"
34744 #endif
34745 #if defined(__STDC__) || defined(__cplusplus)
34746 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34747 #else
34748 size_t iconv();
34749 #endif
34750
34751 int
34752 main ()
34753 {
34754
34755   ;
34756   return 0;
34757 }
34758 _ACEOF
34759 rm -f conftest.$ac_objext
34760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34761   (eval $ac_compile) 2>&5
34762   ac_status=$?
34763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34764   (exit $ac_status); } &&
34765          { ac_try='test -s conftest.$ac_objext'
34766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34767   (eval $ac_try) 2>&5
34768   ac_status=$?
34769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34770   (exit $ac_status); }; }; then
34771   am_cv_proto_iconv_arg1=""
34772 else
34773   echo "$as_me: failed program was:" >&5
34774 sed 's/^/| /' conftest.$ac_ext >&5
34775
34776 am_cv_proto_iconv_arg1="const"
34777 fi
34778 rm -f conftest.$ac_objext conftest.$ac_ext
34779       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);"
34780 fi
34781
34782     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
34783     echo "$as_me:$LINENO: result: ${ac_t:-
34784          }$am_cv_proto_iconv" >&5
34785 echo "${ECHO_T}${ac_t:-
34786          }$am_cv_proto_iconv" >&6
34787
34788 cat >>confdefs.h <<_ACEOF
34789 #define ICONV_CONST $am_cv_proto_iconv_arg1
34790 _ACEOF
34791
34792   fi
34793
34794     echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
34795 echo $ECHO_N "checking whether a running program can be unlinked... $ECHO_C" >&6
34796 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
34797   echo $ECHO_N "(cached) $ECHO_C" >&6
34798 else
34799
34800       if test "$cross_compiling" = yes; then
34801   jm_cv_func_unlink_busy_text=no
34802
34803 else
34804   cat >conftest.$ac_ext <<_ACEOF
34805 #line $LINENO "configure"
34806 /* confdefs.h.  */
34807 _ACEOF
34808 cat confdefs.h >>conftest.$ac_ext
34809 cat >>conftest.$ac_ext <<_ACEOF
34810 /* end confdefs.h.  */
34811
34812         main (argc, argv)
34813           int argc;
34814           char **argv;
34815         {
34816           if (!argc)
34817             exit (-1);
34818           exit (unlink (argv[0]));
34819         }
34820
34821 _ACEOF
34822 rm -f conftest$ac_exeext
34823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34824   (eval $ac_link) 2>&5
34825   ac_status=$?
34826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34827   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34829   (eval $ac_try) 2>&5
34830   ac_status=$?
34831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832   (exit $ac_status); }; }; then
34833   jm_cv_func_unlink_busy_text=yes
34834 else
34835   echo "$as_me: program exited with status $ac_status" >&5
34836 echo "$as_me: failed program was:" >&5
34837 sed 's/^/| /' conftest.$ac_ext >&5
34838
34839 ( exit $ac_status )
34840 jm_cv_func_unlink_busy_text=no
34841 fi
34842 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34843 fi
34844
34845
34846 fi
34847 echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
34848 echo "${ECHO_T}$jm_cv_func_unlink_busy_text" >&6
34849
34850   if test $jm_cv_func_unlink_busy_text = no; then
34851     INSTALL=$ac_install_sh
34852   fi
34853
34854
34855   # These tests are for df.
34856
34857
34858
34859 for ac_func in listmntent getmntinfo
34860 do
34861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34862 echo "$as_me:$LINENO: checking for $ac_func" >&5
34863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34864 if eval "test \"\${$as_ac_var+set}\" = set"; then
34865   echo $ECHO_N "(cached) $ECHO_C" >&6
34866 else
34867   cat >conftest.$ac_ext <<_ACEOF
34868 #line $LINENO "configure"
34869 /* confdefs.h.  */
34870 _ACEOF
34871 cat confdefs.h >>conftest.$ac_ext
34872 cat >>conftest.$ac_ext <<_ACEOF
34873 /* end confdefs.h.  */
34874 /* System header to define __stub macros and hopefully few prototypes,
34875     which can conflict with char $ac_func (); below.
34876     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34877     <limits.h> exists even on freestanding compilers.  */
34878 #ifdef __STDC__
34879 # include <limits.h>
34880 #else
34881 # include <assert.h>
34882 #endif
34883 /* Override any gcc2 internal prototype to avoid an error.  */
34884 #ifdef __cplusplus
34885 extern "C"
34886 {
34887 #endif
34888 /* We use char because int might match the return type of a gcc2
34889    builtin and then its argument prototype would still apply.  */
34890 char $ac_func ();
34891 /* The GNU C library defines this for functions which it implements
34892     to always fail with ENOSYS.  Some functions are actually named
34893     something starting with __ and the normal name is an alias.  */
34894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34895 choke me
34896 #else
34897 char (*f) () = $ac_func;
34898 #endif
34899 #ifdef __cplusplus
34900 }
34901 #endif
34902
34903 int
34904 main ()
34905 {
34906 return f != $ac_func;
34907   ;
34908   return 0;
34909 }
34910 _ACEOF
34911 rm -f conftest.$ac_objext conftest$ac_exeext
34912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34913   (eval $ac_link) 2>&5
34914   ac_status=$?
34915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34916   (exit $ac_status); } &&
34917          { ac_try='test -s conftest$ac_exeext'
34918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34919   (eval $ac_try) 2>&5
34920   ac_status=$?
34921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34922   (exit $ac_status); }; }; then
34923   eval "$as_ac_var=yes"
34924 else
34925   echo "$as_me: failed program was:" >&5
34926 sed 's/^/| /' conftest.$ac_ext >&5
34927
34928 eval "$as_ac_var=no"
34929 fi
34930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34931 fi
34932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34934 if test `eval echo '${'$as_ac_var'}'` = yes; then
34935   cat >>confdefs.h <<_ACEOF
34936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34937 _ACEOF
34938
34939 fi
34940 done
34941
34942
34943
34944
34945
34946
34947 for ac_header in mntent.h sys/param.h sys/ucred.h sys/mount.h sys/fs_types.h
34948 do
34949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34951   echo "$as_me:$LINENO: checking for $ac_header" >&5
34952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34954   echo $ECHO_N "(cached) $ECHO_C" >&6
34955 fi
34956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34958 else
34959   # Is the header compilable?
34960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34962 cat >conftest.$ac_ext <<_ACEOF
34963 #line $LINENO "configure"
34964 /* confdefs.h.  */
34965 _ACEOF
34966 cat confdefs.h >>conftest.$ac_ext
34967 cat >>conftest.$ac_ext <<_ACEOF
34968 /* end confdefs.h.  */
34969 $ac_includes_default
34970 #include <$ac_header>
34971 _ACEOF
34972 rm -f conftest.$ac_objext
34973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34974   (eval $ac_compile) 2>&5
34975   ac_status=$?
34976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34977   (exit $ac_status); } &&
34978          { ac_try='test -s conftest.$ac_objext'
34979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34980   (eval $ac_try) 2>&5
34981   ac_status=$?
34982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34983   (exit $ac_status); }; }; then
34984   ac_header_compiler=yes
34985 else
34986   echo "$as_me: failed program was:" >&5
34987 sed 's/^/| /' conftest.$ac_ext >&5
34988
34989 ac_header_compiler=no
34990 fi
34991 rm -f conftest.$ac_objext conftest.$ac_ext
34992 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34993 echo "${ECHO_T}$ac_header_compiler" >&6
34994
34995 # Is the header present?
34996 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34998 cat >conftest.$ac_ext <<_ACEOF
34999 #line $LINENO "configure"
35000 /* confdefs.h.  */
35001 _ACEOF
35002 cat confdefs.h >>conftest.$ac_ext
35003 cat >>conftest.$ac_ext <<_ACEOF
35004 /* end confdefs.h.  */
35005 #include <$ac_header>
35006 _ACEOF
35007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35008   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35009   ac_status=$?
35010   grep -v '^ *+' conftest.er1 >conftest.err
35011   rm -f conftest.er1
35012   cat conftest.err >&5
35013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35014   (exit $ac_status); } >/dev/null; then
35015   if test -s conftest.err; then
35016     ac_cpp_err=$ac_c_preproc_warn_flag
35017   else
35018     ac_cpp_err=
35019   fi
35020 else
35021   ac_cpp_err=yes
35022 fi
35023 if test -z "$ac_cpp_err"; then
35024   ac_header_preproc=yes
35025 else
35026   echo "$as_me: failed program was:" >&5
35027 sed 's/^/| /' conftest.$ac_ext >&5
35028
35029   ac_header_preproc=no
35030 fi
35031 rm -f conftest.err conftest.$ac_ext
35032 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35033 echo "${ECHO_T}$ac_header_preproc" >&6
35034
35035 # So?  What about this header?
35036 case $ac_header_compiler:$ac_header_preproc in
35037   yes:no )
35038     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35039 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35042     (
35043       cat <<\_ASBOX
35044 ## ------------------------------------ ##
35045 ## Report this to bug-autoconf@gnu.org. ##
35046 ## ------------------------------------ ##
35047 _ASBOX
35048     ) |
35049       sed "s/^/$as_me: WARNING:     /" >&2
35050     ;;
35051   no:yes )
35052     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35053 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35054     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35055 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35056     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35058     (
35059       cat <<\_ASBOX
35060 ## ------------------------------------ ##
35061 ## Report this to bug-autoconf@gnu.org. ##
35062 ## ------------------------------------ ##
35063 _ASBOX
35064     ) |
35065       sed "s/^/$as_me: WARNING:     /" >&2
35066     ;;
35067 esac
35068 echo "$as_me:$LINENO: checking for $ac_header" >&5
35069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35071   echo $ECHO_N "(cached) $ECHO_C" >&6
35072 else
35073   eval "$as_ac_Header=$ac_header_preproc"
35074 fi
35075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35077
35078 fi
35079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35080   cat >>confdefs.h <<_ACEOF
35081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35082 _ACEOF
35083
35084 fi
35085
35086 done
35087
35088     getfsstat_includes="\
35089 $ac_includes_default
35090 #if HAVE_SYS_PARAM_H
35091 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
35092 #endif
35093 #if HAVE_SYS_UCRED_H
35094 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
35095 #endif
35096 #if HAVE_SYS_MOUNT_H
35097 # include <sys/mount.h>
35098 #endif
35099 #if HAVE_SYS_FS_TYPES_H
35100 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
35101 #endif
35102 "
35103 echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
35104 echo $ECHO_N "checking for struct fsstat.f_fstypename... $ECHO_C" >&6
35105 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
35106   echo $ECHO_N "(cached) $ECHO_C" >&6
35107 else
35108   cat >conftest.$ac_ext <<_ACEOF
35109 #line $LINENO "configure"
35110 /* confdefs.h.  */
35111 _ACEOF
35112 cat confdefs.h >>conftest.$ac_ext
35113 cat >>conftest.$ac_ext <<_ACEOF
35114 /* end confdefs.h.  */
35115 $getfsstat_includes
35116
35117 int
35118 main ()
35119 {
35120 static struct fsstat ac_aggr;
35121 if (ac_aggr.f_fstypename)
35122 return 0;
35123   ;
35124   return 0;
35125 }
35126 _ACEOF
35127 rm -f conftest.$ac_objext
35128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35129   (eval $ac_compile) 2>&5
35130   ac_status=$?
35131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35132   (exit $ac_status); } &&
35133          { ac_try='test -s conftest.$ac_objext'
35134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35135   (eval $ac_try) 2>&5
35136   ac_status=$?
35137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35138   (exit $ac_status); }; }; then
35139   ac_cv_member_struct_fsstat_f_fstypename=yes
35140 else
35141   echo "$as_me: failed program was:" >&5
35142 sed 's/^/| /' conftest.$ac_ext >&5
35143
35144 cat >conftest.$ac_ext <<_ACEOF
35145 #line $LINENO "configure"
35146 /* confdefs.h.  */
35147 _ACEOF
35148 cat confdefs.h >>conftest.$ac_ext
35149 cat >>conftest.$ac_ext <<_ACEOF
35150 /* end confdefs.h.  */
35151 $getfsstat_includes
35152
35153 int
35154 main ()
35155 {
35156 static struct fsstat ac_aggr;
35157 if (sizeof ac_aggr.f_fstypename)
35158 return 0;
35159   ;
35160   return 0;
35161 }
35162 _ACEOF
35163 rm -f conftest.$ac_objext
35164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35165   (eval $ac_compile) 2>&5
35166   ac_status=$?
35167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35168   (exit $ac_status); } &&
35169          { ac_try='test -s conftest.$ac_objext'
35170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35171   (eval $ac_try) 2>&5
35172   ac_status=$?
35173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35174   (exit $ac_status); }; }; then
35175   ac_cv_member_struct_fsstat_f_fstypename=yes
35176 else
35177   echo "$as_me: failed program was:" >&5
35178 sed 's/^/| /' conftest.$ac_ext >&5
35179
35180 ac_cv_member_struct_fsstat_f_fstypename=no
35181 fi
35182 rm -f conftest.$ac_objext conftest.$ac_ext
35183 fi
35184 rm -f conftest.$ac_objext conftest.$ac_ext
35185 fi
35186 echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
35187 echo "${ECHO_T}$ac_cv_member_struct_fsstat_f_fstypename" >&6
35188 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
35189
35190 cat >>confdefs.h <<_ACEOF
35191 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
35192 _ACEOF
35193
35194
35195 fi
35196
35197
35198 # Determine how to get the list of mounted filesystems.
35199 ac_list_mounted_fs=
35200
35201 # If the getmntent function is available but not in the standard library,
35202 # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
35203 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
35204 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
35205 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
35206 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
35207   echo $ECHO_N "(cached) $ECHO_C" >&6
35208 else
35209   ac_check_lib_save_LIBS=$LIBS
35210 LIBS="-lsun  $LIBS"
35211 cat >conftest.$ac_ext <<_ACEOF
35212 #line $LINENO "configure"
35213 /* confdefs.h.  */
35214 _ACEOF
35215 cat confdefs.h >>conftest.$ac_ext
35216 cat >>conftest.$ac_ext <<_ACEOF
35217 /* end confdefs.h.  */
35218
35219 /* Override any gcc2 internal prototype to avoid an error.  */
35220 #ifdef __cplusplus
35221 extern "C"
35222 #endif
35223 /* We use char because int might match the return type of a gcc2
35224    builtin and then its argument prototype would still apply.  */
35225 char getmntent ();
35226 int
35227 main ()
35228 {
35229 getmntent ();
35230   ;
35231   return 0;
35232 }
35233 _ACEOF
35234 rm -f conftest.$ac_objext conftest$ac_exeext
35235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35236   (eval $ac_link) 2>&5
35237   ac_status=$?
35238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35239   (exit $ac_status); } &&
35240          { ac_try='test -s conftest$ac_exeext'
35241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35242   (eval $ac_try) 2>&5
35243   ac_status=$?
35244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35245   (exit $ac_status); }; }; then
35246   ac_cv_lib_sun_getmntent=yes
35247 else
35248   echo "$as_me: failed program was:" >&5
35249 sed 's/^/| /' conftest.$ac_ext >&5
35250
35251 ac_cv_lib_sun_getmntent=no
35252 fi
35253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35254 LIBS=$ac_check_lib_save_LIBS
35255 fi
35256 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
35257 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
35258 if test $ac_cv_lib_sun_getmntent = yes; then
35259   LIBS="-lsun $LIBS"
35260 else
35261   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
35262 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
35263 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
35264   echo $ECHO_N "(cached) $ECHO_C" >&6
35265 else
35266   ac_check_lib_save_LIBS=$LIBS
35267 LIBS="-lseq  $LIBS"
35268 cat >conftest.$ac_ext <<_ACEOF
35269 #line $LINENO "configure"
35270 /* confdefs.h.  */
35271 _ACEOF
35272 cat confdefs.h >>conftest.$ac_ext
35273 cat >>conftest.$ac_ext <<_ACEOF
35274 /* end confdefs.h.  */
35275
35276 /* Override any gcc2 internal prototype to avoid an error.  */
35277 #ifdef __cplusplus
35278 extern "C"
35279 #endif
35280 /* We use char because int might match the return type of a gcc2
35281    builtin and then its argument prototype would still apply.  */
35282 char getmntent ();
35283 int
35284 main ()
35285 {
35286 getmntent ();
35287   ;
35288   return 0;
35289 }
35290 _ACEOF
35291 rm -f conftest.$ac_objext conftest$ac_exeext
35292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35293   (eval $ac_link) 2>&5
35294   ac_status=$?
35295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35296   (exit $ac_status); } &&
35297          { ac_try='test -s conftest$ac_exeext'
35298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35299   (eval $ac_try) 2>&5
35300   ac_status=$?
35301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35302   (exit $ac_status); }; }; then
35303   ac_cv_lib_seq_getmntent=yes
35304 else
35305   echo "$as_me: failed program was:" >&5
35306 sed 's/^/| /' conftest.$ac_ext >&5
35307
35308 ac_cv_lib_seq_getmntent=no
35309 fi
35310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35311 LIBS=$ac_check_lib_save_LIBS
35312 fi
35313 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
35314 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
35315 if test $ac_cv_lib_seq_getmntent = yes; then
35316   LIBS="-lseq $LIBS"
35317 else
35318   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
35319 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
35320 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
35321   echo $ECHO_N "(cached) $ECHO_C" >&6
35322 else
35323   ac_check_lib_save_LIBS=$LIBS
35324 LIBS="-lgen  $LIBS"
35325 cat >conftest.$ac_ext <<_ACEOF
35326 #line $LINENO "configure"
35327 /* confdefs.h.  */
35328 _ACEOF
35329 cat confdefs.h >>conftest.$ac_ext
35330 cat >>conftest.$ac_ext <<_ACEOF
35331 /* end confdefs.h.  */
35332
35333 /* Override any gcc2 internal prototype to avoid an error.  */
35334 #ifdef __cplusplus
35335 extern "C"
35336 #endif
35337 /* We use char because int might match the return type of a gcc2
35338    builtin and then its argument prototype would still apply.  */
35339 char getmntent ();
35340 int
35341 main ()
35342 {
35343 getmntent ();
35344   ;
35345   return 0;
35346 }
35347 _ACEOF
35348 rm -f conftest.$ac_objext conftest$ac_exeext
35349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35350   (eval $ac_link) 2>&5
35351   ac_status=$?
35352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35353   (exit $ac_status); } &&
35354          { ac_try='test -s conftest$ac_exeext'
35355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35356   (eval $ac_try) 2>&5
35357   ac_status=$?
35358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35359   (exit $ac_status); }; }; then
35360   ac_cv_lib_gen_getmntent=yes
35361 else
35362   echo "$as_me: failed program was:" >&5
35363 sed 's/^/| /' conftest.$ac_ext >&5
35364
35365 ac_cv_lib_gen_getmntent=no
35366 fi
35367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35368 LIBS=$ac_check_lib_save_LIBS
35369 fi
35370 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
35371 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
35372 if test $ac_cv_lib_gen_getmntent = yes; then
35373   LIBS="-lgen $LIBS"
35374 fi
35375
35376 fi
35377
35378 fi
35379
35380
35381 for ac_func in getmntent
35382 do
35383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35384 echo "$as_me:$LINENO: checking for $ac_func" >&5
35385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35386 if eval "test \"\${$as_ac_var+set}\" = set"; then
35387   echo $ECHO_N "(cached) $ECHO_C" >&6
35388 else
35389   cat >conftest.$ac_ext <<_ACEOF
35390 #line $LINENO "configure"
35391 /* confdefs.h.  */
35392 _ACEOF
35393 cat confdefs.h >>conftest.$ac_ext
35394 cat >>conftest.$ac_ext <<_ACEOF
35395 /* end confdefs.h.  */
35396 /* System header to define __stub macros and hopefully few prototypes,
35397     which can conflict with char $ac_func (); below.
35398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35399     <limits.h> exists even on freestanding compilers.  */
35400 #ifdef __STDC__
35401 # include <limits.h>
35402 #else
35403 # include <assert.h>
35404 #endif
35405 /* Override any gcc2 internal prototype to avoid an error.  */
35406 #ifdef __cplusplus
35407 extern "C"
35408 {
35409 #endif
35410 /* We use char because int might match the return type of a gcc2
35411    builtin and then its argument prototype would still apply.  */
35412 char $ac_func ();
35413 /* The GNU C library defines this for functions which it implements
35414     to always fail with ENOSYS.  Some functions are actually named
35415     something starting with __ and the normal name is an alias.  */
35416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35417 choke me
35418 #else
35419 char (*f) () = $ac_func;
35420 #endif
35421 #ifdef __cplusplus
35422 }
35423 #endif
35424
35425 int
35426 main ()
35427 {
35428 return f != $ac_func;
35429   ;
35430   return 0;
35431 }
35432 _ACEOF
35433 rm -f conftest.$ac_objext conftest$ac_exeext
35434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35435   (eval $ac_link) 2>&5
35436   ac_status=$?
35437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35438   (exit $ac_status); } &&
35439          { ac_try='test -s conftest$ac_exeext'
35440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35441   (eval $ac_try) 2>&5
35442   ac_status=$?
35443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35444   (exit $ac_status); }; }; then
35445   eval "$as_ac_var=yes"
35446 else
35447   echo "$as_me: failed program was:" >&5
35448 sed 's/^/| /' conftest.$ac_ext >&5
35449
35450 eval "$as_ac_var=no"
35451 fi
35452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35453 fi
35454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35456 if test `eval echo '${'$as_ac_var'}'` = yes; then
35457   cat >>confdefs.h <<_ACEOF
35458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35459 _ACEOF
35460
35461 fi
35462 done
35463
35464
35465
35466 # This test must precede the ones for getmntent because Unicos-9 is
35467 # reported to have the getmntent function, but its support is incompatible
35468 # with other getmntent implementations.
35469
35470 # NOTE: Normally, I wouldn't use a check for system type as I've done for
35471 # `CRAY' below since that goes against the whole autoconf philosophy.  But
35472 # I think there is too great a chance that some non-Cray system has a
35473 # function named listmntent to risk the false positive.
35474
35475 if test -z "$ac_list_mounted_fs"; then
35476   # Cray UNICOS 9
35477   echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
35478 echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6
35479   if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
35480   echo $ECHO_N "(cached) $ECHO_C" >&6
35481 else
35482   fu_cv_sys_mounted_cray_listmntent=no
35483       cat >conftest.$ac_ext <<_ACEOF
35484 #line $LINENO "configure"
35485 /* confdefs.h.  */
35486 _ACEOF
35487 cat confdefs.h >>conftest.$ac_ext
35488 cat >>conftest.$ac_ext <<_ACEOF
35489 /* end confdefs.h.  */
35490 #ifdef _CRAY
35491 yes
35492 #endif
35493
35494 _ACEOF
35495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35496   $EGREP "yes" >/dev/null 2>&1; then
35497   test $ac_cv_func_listmntent = yes \
35498             && fu_cv_sys_mounted_cray_listmntent=yes
35499
35500 fi
35501 rm -f conftest*
35502
35503
35504
35505 fi
35506
35507   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
35508 echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6
35509   if test $fu_cv_sys_mounted_cray_listmntent = yes; then
35510     ac_list_mounted_fs=found
35511
35512 cat >>confdefs.h <<\_ACEOF
35513 #define MOUNTED_LISTMNTENT 1
35514 _ACEOF
35515
35516   fi
35517 fi
35518
35519 if test $ac_cv_func_getmntent = yes; then
35520
35521   # This system has the getmntent function.
35522   # Determine whether it's the one-argument variant or the two-argument one.
35523
35524   if test -z "$ac_list_mounted_fs"; then
35525     # 4.3BSD, SunOS, HP-UX, Dynix, Irix
35526     echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
35527 echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6
35528     if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
35529   echo $ECHO_N "(cached) $ECHO_C" >&6
35530 else
35531   cat >conftest.$ac_ext <<_ACEOF
35532 #line $LINENO "configure"
35533 /* confdefs.h.  */
35534 _ACEOF
35535 cat confdefs.h >>conftest.$ac_ext
35536 cat >>conftest.$ac_ext <<_ACEOF
35537 /* end confdefs.h.  */
35538
35539 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
35540 #include <stdio.h>
35541
35542 #include <mntent.h>
35543 #if !defined MOUNTED
35544 # if defined _PATH_MOUNTED      /* GNU libc  */
35545 #  define MOUNTED _PATH_MOUNTED
35546 # endif
35547 # if defined MNT_MNTTAB /* HP-UX.  */
35548 #  define MOUNTED MNT_MNTTAB
35549 # endif
35550 # if defined MNTTABNAME /* Dynix.  */
35551 #  define MOUNTED MNTTABNAME
35552 # endif
35553 #endif
35554
35555 int
35556 main ()
35557 {
35558  struct mntent *mnt = 0; char *table = MOUNTED;
35559   ;
35560   return 0;
35561 }
35562 _ACEOF
35563 rm -f conftest.$ac_objext
35564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35565   (eval $ac_compile) 2>&5
35566   ac_status=$?
35567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35568   (exit $ac_status); } &&
35569          { ac_try='test -s conftest.$ac_objext'
35570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35571   (eval $ac_try) 2>&5
35572   ac_status=$?
35573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35574   (exit $ac_status); }; }; then
35575   fu_cv_sys_mounted_getmntent1=yes
35576 else
35577   echo "$as_me: failed program was:" >&5
35578 sed 's/^/| /' conftest.$ac_ext >&5
35579
35580 fu_cv_sys_mounted_getmntent1=no
35581 fi
35582 rm -f conftest.$ac_objext conftest.$ac_ext
35583 fi
35584
35585     echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
35586 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6
35587     if test $fu_cv_sys_mounted_getmntent1 = yes; then
35588       ac_list_mounted_fs=found
35589
35590 cat >>confdefs.h <<\_ACEOF
35591 #define MOUNTED_GETMNTENT1 1
35592 _ACEOF
35593
35594     fi
35595   fi
35596
35597   if test -z "$ac_list_mounted_fs"; then
35598     # SVR4
35599     echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
35600 echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6
35601     if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
35602   echo $ECHO_N "(cached) $ECHO_C" >&6
35603 else
35604   cat >conftest.$ac_ext <<_ACEOF
35605 #line $LINENO "configure"
35606 /* confdefs.h.  */
35607 _ACEOF
35608 cat confdefs.h >>conftest.$ac_ext
35609 cat >>conftest.$ac_ext <<_ACEOF
35610 /* end confdefs.h.  */
35611 #include <sys/mnttab.h>
35612
35613 _ACEOF
35614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35615   $EGREP "getmntent" >/dev/null 2>&1; then
35616   fu_cv_sys_mounted_getmntent2=yes
35617 else
35618   fu_cv_sys_mounted_getmntent2=no
35619 fi
35620 rm -f conftest*
35621
35622 fi
35623
35624     echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
35625 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6
35626     if test $fu_cv_sys_mounted_getmntent2 = yes; then
35627       ac_list_mounted_fs=found
35628
35629 cat >>confdefs.h <<\_ACEOF
35630 #define MOUNTED_GETMNTENT2 1
35631 _ACEOF
35632
35633     fi
35634   fi
35635
35636 fi
35637
35638 if test -z "$ac_list_mounted_fs"; then
35639   # DEC Alpha running OSF/1, and Apple Darwin 1.3.
35640   # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
35641
35642   echo "$as_me:$LINENO: checking for getfsstat function" >&5
35643 echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6
35644   if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
35645   echo $ECHO_N "(cached) $ECHO_C" >&6
35646 else
35647   cat >conftest.$ac_ext <<_ACEOF
35648 #line $LINENO "configure"
35649 /* confdefs.h.  */
35650 _ACEOF
35651 cat confdefs.h >>conftest.$ac_ext
35652 cat >>conftest.$ac_ext <<_ACEOF
35653 /* end confdefs.h.  */
35654
35655 #include <sys/types.h>
35656 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
35657 # define FS_TYPE(Ent) ((Ent).f_fstypename)
35658 #else
35659 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
35660 #endif
35661 $getfsstat_includes
35662
35663 int
35664 main ()
35665 {
35666 struct statfs *stats;
35667    int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
35668    char *t = FS_TYPE (*stats);
35669   ;
35670   return 0;
35671 }
35672 _ACEOF
35673 rm -f conftest.$ac_objext conftest$ac_exeext
35674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35675   (eval $ac_link) 2>&5
35676   ac_status=$?
35677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35678   (exit $ac_status); } &&
35679          { ac_try='test -s conftest$ac_exeext'
35680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35681   (eval $ac_try) 2>&5
35682   ac_status=$?
35683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35684   (exit $ac_status); }; }; then
35685   fu_cv_sys_mounted_getfsstat=yes
35686 else
35687   echo "$as_me: failed program was:" >&5
35688 sed 's/^/| /' conftest.$ac_ext >&5
35689
35690 fu_cv_sys_mounted_getfsstat=no
35691 fi
35692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35693 fi
35694
35695   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
35696 echo "${ECHO_T}$fu_cv_sys_mounted_getfsstat" >&6
35697   if test $fu_cv_sys_mounted_getfsstat = yes; then
35698     ac_list_mounted_fs=found
35699
35700 cat >>confdefs.h <<\_ACEOF
35701 #define MOUNTED_GETFSSTAT 1
35702 _ACEOF
35703
35704   fi
35705 fi
35706
35707 if test -z "$ac_list_mounted_fs"; then
35708   # AIX.
35709   echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
35710 echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6
35711   if test "${fu_cv_sys_mounted_vmount+set}" = set; then
35712   echo $ECHO_N "(cached) $ECHO_C" >&6
35713 else
35714   cat >conftest.$ac_ext <<_ACEOF
35715 #line $LINENO "configure"
35716 /* confdefs.h.  */
35717 _ACEOF
35718 cat confdefs.h >>conftest.$ac_ext
35719 cat >>conftest.$ac_ext <<_ACEOF
35720 /* end confdefs.h.  */
35721 #include <fshelp.h>
35722 _ACEOF
35723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35724   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35725   ac_status=$?
35726   grep -v '^ *+' conftest.er1 >conftest.err
35727   rm -f conftest.er1
35728   cat conftest.err >&5
35729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35730   (exit $ac_status); } >/dev/null; then
35731   if test -s conftest.err; then
35732     ac_cpp_err=$ac_c_preproc_warn_flag
35733   else
35734     ac_cpp_err=
35735   fi
35736 else
35737   ac_cpp_err=yes
35738 fi
35739 if test -z "$ac_cpp_err"; then
35740   fu_cv_sys_mounted_vmount=yes
35741 else
35742   echo "$as_me: failed program was:" >&5
35743 sed 's/^/| /' conftest.$ac_ext >&5
35744
35745   fu_cv_sys_mounted_vmount=no
35746 fi
35747 rm -f conftest.err conftest.$ac_ext
35748 fi
35749
35750   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
35751 echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6
35752   if test $fu_cv_sys_mounted_vmount = yes; then
35753     ac_list_mounted_fs=found
35754
35755 cat >>confdefs.h <<\_ACEOF
35756 #define MOUNTED_VMOUNT 1
35757 _ACEOF
35758
35759   fi
35760 fi
35761
35762 if test -z "$ac_list_mounted_fs"; then
35763   # SVR3
35764   echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
35765 echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6
35766   if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
35767   echo $ECHO_N "(cached) $ECHO_C" >&6
35768 else
35769   cat >conftest.$ac_ext <<_ACEOF
35770 #line $LINENO "configure"
35771 /* confdefs.h.  */
35772 _ACEOF
35773 cat confdefs.h >>conftest.$ac_ext
35774 cat >>conftest.$ac_ext <<_ACEOF
35775 /* end confdefs.h.  */
35776
35777 #include <sys/statfs.h>
35778 #include <sys/fstyp.h>
35779 #include <mnttab.h>
35780 _ACEOF
35781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35782   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35783   ac_status=$?
35784   grep -v '^ *+' conftest.er1 >conftest.err
35785   rm -f conftest.er1
35786   cat conftest.err >&5
35787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35788   (exit $ac_status); } >/dev/null; then
35789   if test -s conftest.err; then
35790     ac_cpp_err=$ac_c_preproc_warn_flag
35791   else
35792     ac_cpp_err=
35793   fi
35794 else
35795   ac_cpp_err=yes
35796 fi
35797 if test -z "$ac_cpp_err"; then
35798   fu_cv_sys_mounted_fread_fstyp=yes
35799 else
35800   echo "$as_me: failed program was:" >&5
35801 sed 's/^/| /' conftest.$ac_ext >&5
35802
35803   fu_cv_sys_mounted_fread_fstyp=no
35804 fi
35805 rm -f conftest.err conftest.$ac_ext
35806 fi
35807
35808   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
35809 echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6
35810   if test $fu_cv_sys_mounted_fread_fstyp = yes; then
35811     ac_list_mounted_fs=found
35812
35813 cat >>confdefs.h <<\_ACEOF
35814 #define MOUNTED_FREAD_FSTYP 1
35815 _ACEOF
35816
35817   fi
35818 fi
35819
35820 if test -z "$ac_list_mounted_fs"; then
35821   # 4.4BSD and DEC OSF/1.
35822   echo "$as_me:$LINENO: checking for getmntinfo function" >&5
35823 echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6
35824   if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
35825   echo $ECHO_N "(cached) $ECHO_C" >&6
35826 else
35827
35828       test "$ac_cv_func_getmntinfo" = yes \
35829           && fu_cv_sys_mounted_getmntinfo=yes \
35830           || fu_cv_sys_mounted_getmntinfo=no
35831
35832 fi
35833
35834   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
35835 echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6
35836   if test $fu_cv_sys_mounted_getmntinfo = yes; then
35837     ac_list_mounted_fs=found
35838
35839 cat >>confdefs.h <<\_ACEOF
35840 #define MOUNTED_GETMNTINFO 1
35841 _ACEOF
35842
35843   fi
35844 fi
35845
35846 if test -z "$ac_list_mounted_fs"; then
35847   # Ultrix
35848   echo "$as_me:$LINENO: checking for getmnt function" >&5
35849 echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6
35850   if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
35851   echo $ECHO_N "(cached) $ECHO_C" >&6
35852 else
35853   cat >conftest.$ac_ext <<_ACEOF
35854 #line $LINENO "configure"
35855 /* confdefs.h.  */
35856 _ACEOF
35857 cat confdefs.h >>conftest.$ac_ext
35858 cat >>conftest.$ac_ext <<_ACEOF
35859 /* end confdefs.h.  */
35860
35861 #include <sys/fs_types.h>
35862 #include <sys/mount.h>
35863 _ACEOF
35864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35865   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35866   ac_status=$?
35867   grep -v '^ *+' conftest.er1 >conftest.err
35868   rm -f conftest.er1
35869   cat conftest.err >&5
35870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35871   (exit $ac_status); } >/dev/null; then
35872   if test -s conftest.err; then
35873     ac_cpp_err=$ac_c_preproc_warn_flag
35874   else
35875     ac_cpp_err=
35876   fi
35877 else
35878   ac_cpp_err=yes
35879 fi
35880 if test -z "$ac_cpp_err"; then
35881   fu_cv_sys_mounted_getmnt=yes
35882 else
35883   echo "$as_me: failed program was:" >&5
35884 sed 's/^/| /' conftest.$ac_ext >&5
35885
35886   fu_cv_sys_mounted_getmnt=no
35887 fi
35888 rm -f conftest.err conftest.$ac_ext
35889 fi
35890
35891   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
35892 echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6
35893   if test $fu_cv_sys_mounted_getmnt = yes; then
35894     ac_list_mounted_fs=found
35895
35896 cat >>confdefs.h <<\_ACEOF
35897 #define MOUNTED_GETMNT 1
35898 _ACEOF
35899
35900   fi
35901 fi
35902
35903 if test -z "$ac_list_mounted_fs"; then
35904   # BeOS
35905
35906
35907 for ac_func in next_dev fs_stat_dev
35908 do
35909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35910 echo "$as_me:$LINENO: checking for $ac_func" >&5
35911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35912 if eval "test \"\${$as_ac_var+set}\" = set"; then
35913   echo $ECHO_N "(cached) $ECHO_C" >&6
35914 else
35915   cat >conftest.$ac_ext <<_ACEOF
35916 #line $LINENO "configure"
35917 /* confdefs.h.  */
35918 _ACEOF
35919 cat confdefs.h >>conftest.$ac_ext
35920 cat >>conftest.$ac_ext <<_ACEOF
35921 /* end confdefs.h.  */
35922 /* System header to define __stub macros and hopefully few prototypes,
35923     which can conflict with char $ac_func (); below.
35924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35925     <limits.h> exists even on freestanding compilers.  */
35926 #ifdef __STDC__
35927 # include <limits.h>
35928 #else
35929 # include <assert.h>
35930 #endif
35931 /* Override any gcc2 internal prototype to avoid an error.  */
35932 #ifdef __cplusplus
35933 extern "C"
35934 {
35935 #endif
35936 /* We use char because int might match the return type of a gcc2
35937    builtin and then its argument prototype would still apply.  */
35938 char $ac_func ();
35939 /* The GNU C library defines this for functions which it implements
35940     to always fail with ENOSYS.  Some functions are actually named
35941     something starting with __ and the normal name is an alias.  */
35942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35943 choke me
35944 #else
35945 char (*f) () = $ac_func;
35946 #endif
35947 #ifdef __cplusplus
35948 }
35949 #endif
35950
35951 int
35952 main ()
35953 {
35954 return f != $ac_func;
35955   ;
35956   return 0;
35957 }
35958 _ACEOF
35959 rm -f conftest.$ac_objext conftest$ac_exeext
35960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35961   (eval $ac_link) 2>&5
35962   ac_status=$?
35963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35964   (exit $ac_status); } &&
35965          { ac_try='test -s conftest$ac_exeext'
35966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35967   (eval $ac_try) 2>&5
35968   ac_status=$?
35969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35970   (exit $ac_status); }; }; then
35971   eval "$as_ac_var=yes"
35972 else
35973   echo "$as_me: failed program was:" >&5
35974 sed 's/^/| /' conftest.$ac_ext >&5
35975
35976 eval "$as_ac_var=no"
35977 fi
35978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35979 fi
35980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35982 if test `eval echo '${'$as_ac_var'}'` = yes; then
35983   cat >>confdefs.h <<_ACEOF
35984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35985 _ACEOF
35986
35987 fi
35988 done
35989
35990
35991 for ac_header in fs_info.h
35992 do
35993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35995   echo "$as_me:$LINENO: checking for $ac_header" >&5
35996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35998   echo $ECHO_N "(cached) $ECHO_C" >&6
35999 fi
36000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36002 else
36003   # Is the header compilable?
36004 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36006 cat >conftest.$ac_ext <<_ACEOF
36007 #line $LINENO "configure"
36008 /* confdefs.h.  */
36009 _ACEOF
36010 cat confdefs.h >>conftest.$ac_ext
36011 cat >>conftest.$ac_ext <<_ACEOF
36012 /* end confdefs.h.  */
36013 $ac_includes_default
36014 #include <$ac_header>
36015 _ACEOF
36016 rm -f conftest.$ac_objext
36017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36018   (eval $ac_compile) 2>&5
36019   ac_status=$?
36020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36021   (exit $ac_status); } &&
36022          { ac_try='test -s conftest.$ac_objext'
36023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36024   (eval $ac_try) 2>&5
36025   ac_status=$?
36026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36027   (exit $ac_status); }; }; then
36028   ac_header_compiler=yes
36029 else
36030   echo "$as_me: failed program was:" >&5
36031 sed 's/^/| /' conftest.$ac_ext >&5
36032
36033 ac_header_compiler=no
36034 fi
36035 rm -f conftest.$ac_objext conftest.$ac_ext
36036 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36037 echo "${ECHO_T}$ac_header_compiler" >&6
36038
36039 # Is the header present?
36040 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36042 cat >conftest.$ac_ext <<_ACEOF
36043 #line $LINENO "configure"
36044 /* confdefs.h.  */
36045 _ACEOF
36046 cat confdefs.h >>conftest.$ac_ext
36047 cat >>conftest.$ac_ext <<_ACEOF
36048 /* end confdefs.h.  */
36049 #include <$ac_header>
36050 _ACEOF
36051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36052   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36053   ac_status=$?
36054   grep -v '^ *+' conftest.er1 >conftest.err
36055   rm -f conftest.er1
36056   cat conftest.err >&5
36057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36058   (exit $ac_status); } >/dev/null; then
36059   if test -s conftest.err; then
36060     ac_cpp_err=$ac_c_preproc_warn_flag
36061   else
36062     ac_cpp_err=
36063   fi
36064 else
36065   ac_cpp_err=yes
36066 fi
36067 if test -z "$ac_cpp_err"; then
36068   ac_header_preproc=yes
36069 else
36070   echo "$as_me: failed program was:" >&5
36071 sed 's/^/| /' conftest.$ac_ext >&5
36072
36073   ac_header_preproc=no
36074 fi
36075 rm -f conftest.err conftest.$ac_ext
36076 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36077 echo "${ECHO_T}$ac_header_preproc" >&6
36078
36079 # So?  What about this header?
36080 case $ac_header_compiler:$ac_header_preproc in
36081   yes:no )
36082     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36084     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36086     (
36087       cat <<\_ASBOX
36088 ## ------------------------------------ ##
36089 ## Report this to bug-autoconf@gnu.org. ##
36090 ## ------------------------------------ ##
36091 _ASBOX
36092     ) |
36093       sed "s/^/$as_me: WARNING:     /" >&2
36094     ;;
36095   no:yes )
36096     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36098     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36099 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36100     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36102     (
36103       cat <<\_ASBOX
36104 ## ------------------------------------ ##
36105 ## Report this to bug-autoconf@gnu.org. ##
36106 ## ------------------------------------ ##
36107 _ASBOX
36108     ) |
36109       sed "s/^/$as_me: WARNING:     /" >&2
36110     ;;
36111 esac
36112 echo "$as_me:$LINENO: checking for $ac_header" >&5
36113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36115   echo $ECHO_N "(cached) $ECHO_C" >&6
36116 else
36117   eval "$as_ac_Header=$ac_header_preproc"
36118 fi
36119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36121
36122 fi
36123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36124   cat >>confdefs.h <<_ACEOF
36125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36126 _ACEOF
36127
36128 fi
36129
36130 done
36131
36132   echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
36133 echo $ECHO_N "checking for BEOS mounted file system support functions... $ECHO_C" >&6
36134   if test $ac_cv_header_fs_info_h = yes \
36135       && test $ac_cv_func_next_dev = yes \
36136         && test $ac_cv_func_fs_stat_dev = yes; then
36137     fu_result=yes
36138   else
36139     fu_result=no
36140   fi
36141   echo "$as_me:$LINENO: result: $fu_result" >&5
36142 echo "${ECHO_T}$fu_result" >&6
36143   if test $fu_result = yes; then
36144     ac_list_mounted_fs=found
36145
36146 cat >>confdefs.h <<\_ACEOF
36147 #define MOUNTED_FS_STAT_DEV 1
36148 _ACEOF
36149
36150   fi
36151 fi
36152
36153 if test -z "$ac_list_mounted_fs"; then
36154   # SVR2
36155   echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
36156 echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6
36157   if test "${fu_cv_sys_mounted_fread+set}" = set; then
36158   echo $ECHO_N "(cached) $ECHO_C" >&6
36159 else
36160   cat >conftest.$ac_ext <<_ACEOF
36161 #line $LINENO "configure"
36162 /* confdefs.h.  */
36163 _ACEOF
36164 cat confdefs.h >>conftest.$ac_ext
36165 cat >>conftest.$ac_ext <<_ACEOF
36166 /* end confdefs.h.  */
36167 #include <mnttab.h>
36168 _ACEOF
36169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36170   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36171   ac_status=$?
36172   grep -v '^ *+' conftest.er1 >conftest.err
36173   rm -f conftest.er1
36174   cat conftest.err >&5
36175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36176   (exit $ac_status); } >/dev/null; then
36177   if test -s conftest.err; then
36178     ac_cpp_err=$ac_c_preproc_warn_flag
36179   else
36180     ac_cpp_err=
36181   fi
36182 else
36183   ac_cpp_err=yes
36184 fi
36185 if test -z "$ac_cpp_err"; then
36186   fu_cv_sys_mounted_fread=yes
36187 else
36188   echo "$as_me: failed program was:" >&5
36189 sed 's/^/| /' conftest.$ac_ext >&5
36190
36191   fu_cv_sys_mounted_fread=no
36192 fi
36193 rm -f conftest.err conftest.$ac_ext
36194 fi
36195
36196   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
36197 echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6
36198   if test $fu_cv_sys_mounted_fread = yes; then
36199     ac_list_mounted_fs=found
36200
36201 cat >>confdefs.h <<\_ACEOF
36202 #define MOUNTED_FREAD 1
36203 _ACEOF
36204
36205   fi
36206 fi
36207
36208 if test -z "$ac_list_mounted_fs"; then
36209   { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted filesystems" >&5
36210 echo "$as_me: error: could not determine how to read list of mounted filesystems" >&2;}
36211    { (exit 1); exit 1; }; }
36212   # FIXME -- no need to abort building the whole package
36213   # Can't build mountlist.c or anything that needs its functions
36214 fi
36215
36216 if test $ac_list_mounted_fs = found; then
36217   list_mounted_fs=yes
36218 else
36219   list_mounted_fs=no
36220 fi
36221
36222
36223
36224
36225     echo "$as_me:$LINENO: checking for f_fstypename in struct statfs" >&5
36226 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6
36227 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
36228   echo $ECHO_N "(cached) $ECHO_C" >&6
36229 else
36230
36231         cat >conftest.$ac_ext <<_ACEOF
36232 #line $LINENO "configure"
36233 /* confdefs.h.  */
36234 _ACEOF
36235 cat confdefs.h >>conftest.$ac_ext
36236 cat >>conftest.$ac_ext <<_ACEOF
36237 /* end confdefs.h.  */
36238
36239 #include <sys/param.h>
36240 #include <sys/types.h>
36241 #include <sys/mount.h>
36242
36243 int
36244 main ()
36245 {
36246 struct statfs s; int i = sizeof s.f_fstypename;
36247   ;
36248   return 0;
36249 }
36250 _ACEOF
36251 rm -f conftest.$ac_objext
36252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36253   (eval $ac_compile) 2>&5
36254   ac_status=$?
36255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36256   (exit $ac_status); } &&
36257          { ac_try='test -s conftest.$ac_objext'
36258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36259   (eval $ac_try) 2>&5
36260   ac_status=$?
36261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36262   (exit $ac_status); }; }; then
36263   fu_cv_sys_f_fstypename_in_statfs=yes
36264 else
36265   echo "$as_me: failed program was:" >&5
36266 sed 's/^/| /' conftest.$ac_ext >&5
36267
36268 fu_cv_sys_f_fstypename_in_statfs=no
36269
36270 fi
36271 rm -f conftest.$ac_objext conftest.$ac_ext
36272
36273
36274 fi
36275 echo "$as_me:$LINENO: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
36276 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6
36277
36278     if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
36279
36280 cat >>confdefs.h <<\_ACEOF
36281 #define HAVE_F_FSTYPENAME_IN_STATFS 1
36282 _ACEOF
36283
36284     fi
36285
36286
36287
36288
36289 echo "checking how to get filesystem space usage..."
36290 ac_fsusage_space=no
36291
36292 # Perform only the link test since it seems there are no variants of the
36293 # statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
36294 # because that got a false positive on SCO OSR5.  Adding the declaration
36295 # of a `struct statvfs' causes this test to fail (as it should) on such
36296 # systems.  That system is reported to work fine with STAT_STATFS4 which
36297 # is what it gets when this test fails.
36298 if test $ac_fsusage_space = no; then
36299   # SVR4
36300   echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
36301 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6
36302 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
36303   echo $ECHO_N "(cached) $ECHO_C" >&6
36304 else
36305   cat >conftest.$ac_ext <<_ACEOF
36306 #line $LINENO "configure"
36307 /* confdefs.h.  */
36308 _ACEOF
36309 cat confdefs.h >>conftest.$ac_ext
36310 cat >>conftest.$ac_ext <<_ACEOF
36311 /* end confdefs.h.  */
36312 #include <sys/types.h>
36313 #include <sys/statvfs.h>
36314 int
36315 main ()
36316 {
36317 struct statvfs fsd; statvfs (0, &fsd);
36318   ;
36319   return 0;
36320 }
36321 _ACEOF
36322 rm -f conftest.$ac_objext 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); } &&
36328          { ac_try='test -s conftest$ac_exeext'
36329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36330   (eval $ac_try) 2>&5
36331   ac_status=$?
36332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36333   (exit $ac_status); }; }; then
36334   fu_cv_sys_stat_statvfs=yes
36335 else
36336   echo "$as_me: failed program was:" >&5
36337 sed 's/^/| /' conftest.$ac_ext >&5
36338
36339 fu_cv_sys_stat_statvfs=no
36340 fi
36341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36342 fi
36343 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
36344 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
36345   if test $fu_cv_sys_stat_statvfs = yes; then
36346     ac_fsusage_space=yes
36347
36348 cat >>confdefs.h <<\_ACEOF
36349 #define STAT_STATVFS 1
36350 _ACEOF
36351
36352   fi
36353 fi
36354
36355 if test $ac_fsusage_space = no; then
36356   # DEC Alpha running OSF/1
36357   echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
36358 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
36359   if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
36360   echo $ECHO_N "(cached) $ECHO_C" >&6
36361 else
36362   if test "$cross_compiling" = yes; then
36363   fu_cv_sys_stat_statfs3_osf1=no
36364 else
36365   cat >conftest.$ac_ext <<_ACEOF
36366 #line $LINENO "configure"
36367 /* confdefs.h.  */
36368 _ACEOF
36369 cat confdefs.h >>conftest.$ac_ext
36370 cat >>conftest.$ac_ext <<_ACEOF
36371 /* end confdefs.h.  */
36372
36373 #include <sys/param.h>
36374 #include <sys/types.h>
36375 #include <sys/mount.h>
36376   main ()
36377   {
36378     struct statfs fsd;
36379     fsd.f_fsize = 0;
36380     exit (statfs (".", &fsd, sizeof (struct statfs)));
36381   }
36382 _ACEOF
36383 rm -f conftest$ac_exeext
36384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36385   (eval $ac_link) 2>&5
36386   ac_status=$?
36387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36388   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36390   (eval $ac_try) 2>&5
36391   ac_status=$?
36392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36393   (exit $ac_status); }; }; then
36394   fu_cv_sys_stat_statfs3_osf1=yes
36395 else
36396   echo "$as_me: program exited with status $ac_status" >&5
36397 echo "$as_me: failed program was:" >&5
36398 sed 's/^/| /' conftest.$ac_ext >&5
36399
36400 ( exit $ac_status )
36401 fu_cv_sys_stat_statfs3_osf1=no
36402 fi
36403 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36404 fi
36405 fi
36406
36407   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
36408 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
36409   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
36410     ac_fsusage_space=yes
36411
36412 cat >>confdefs.h <<\_ACEOF
36413 #define STAT_STATFS3_OSF1 1
36414 _ACEOF
36415
36416   fi
36417 fi
36418
36419 if test $ac_fsusage_space = no; then
36420 # AIX
36421   echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
36422 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
36423   if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
36424   echo $ECHO_N "(cached) $ECHO_C" >&6
36425 else
36426   if test "$cross_compiling" = yes; then
36427   fu_cv_sys_stat_statfs2_bsize=no
36428 else
36429   cat >conftest.$ac_ext <<_ACEOF
36430 #line $LINENO "configure"
36431 /* confdefs.h.  */
36432 _ACEOF
36433 cat confdefs.h >>conftest.$ac_ext
36434 cat >>conftest.$ac_ext <<_ACEOF
36435 /* end confdefs.h.  */
36436
36437 #ifdef HAVE_SYS_PARAM_H
36438 #include <sys/param.h>
36439 #endif
36440 #ifdef HAVE_SYS_MOUNT_H
36441 #include <sys/mount.h>
36442 #endif
36443 #ifdef HAVE_SYS_VFS_H
36444 #include <sys/vfs.h>
36445 #endif
36446   main ()
36447   {
36448   struct statfs fsd;
36449   fsd.f_bsize = 0;
36450   exit (statfs (".", &fsd));
36451   }
36452 _ACEOF
36453 rm -f conftest$ac_exeext
36454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36455   (eval $ac_link) 2>&5
36456   ac_status=$?
36457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36458   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36460   (eval $ac_try) 2>&5
36461   ac_status=$?
36462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36463   (exit $ac_status); }; }; then
36464   fu_cv_sys_stat_statfs2_bsize=yes
36465 else
36466   echo "$as_me: program exited with status $ac_status" >&5
36467 echo "$as_me: failed program was:" >&5
36468 sed 's/^/| /' conftest.$ac_ext >&5
36469
36470 ( exit $ac_status )
36471 fu_cv_sys_stat_statfs2_bsize=no
36472 fi
36473 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36474 fi
36475 fi
36476
36477   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
36478 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
36479   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
36480     ac_fsusage_space=yes
36481
36482 cat >>confdefs.h <<\_ACEOF
36483 #define STAT_STATFS2_BSIZE 1
36484 _ACEOF
36485
36486   fi
36487 fi
36488
36489 if test $ac_fsusage_space = no; then
36490 # SVR3
36491   echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
36492 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
36493   if test "${fu_cv_sys_stat_statfs4+set}" = set; then
36494   echo $ECHO_N "(cached) $ECHO_C" >&6
36495 else
36496   if test "$cross_compiling" = yes; then
36497   fu_cv_sys_stat_statfs4=no
36498 else
36499   cat >conftest.$ac_ext <<_ACEOF
36500 #line $LINENO "configure"
36501 /* confdefs.h.  */
36502 _ACEOF
36503 cat confdefs.h >>conftest.$ac_ext
36504 cat >>conftest.$ac_ext <<_ACEOF
36505 /* end confdefs.h.  */
36506 #include <sys/types.h>
36507 #include <sys/statfs.h>
36508   main ()
36509   {
36510   struct statfs fsd;
36511   exit (statfs (".", &fsd, sizeof fsd, 0));
36512   }
36513 _ACEOF
36514 rm -f conftest$ac_exeext
36515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36516   (eval $ac_link) 2>&5
36517   ac_status=$?
36518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36519   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36521   (eval $ac_try) 2>&5
36522   ac_status=$?
36523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36524   (exit $ac_status); }; }; then
36525   fu_cv_sys_stat_statfs4=yes
36526 else
36527   echo "$as_me: program exited with status $ac_status" >&5
36528 echo "$as_me: failed program was:" >&5
36529 sed 's/^/| /' conftest.$ac_ext >&5
36530
36531 ( exit $ac_status )
36532 fu_cv_sys_stat_statfs4=no
36533 fi
36534 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36535 fi
36536 fi
36537
36538   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
36539 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
36540   if test $fu_cv_sys_stat_statfs4 = yes; then
36541     ac_fsusage_space=yes
36542
36543 cat >>confdefs.h <<\_ACEOF
36544 #define STAT_STATFS4 1
36545 _ACEOF
36546
36547   fi
36548 fi
36549
36550 if test $ac_fsusage_space = no; then
36551 # 4.4BSD and NetBSD
36552   echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
36553 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
36554   if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
36555   echo $ECHO_N "(cached) $ECHO_C" >&6
36556 else
36557   if test "$cross_compiling" = yes; then
36558   fu_cv_sys_stat_statfs2_fsize=no
36559 else
36560   cat >conftest.$ac_ext <<_ACEOF
36561 #line $LINENO "configure"
36562 /* confdefs.h.  */
36563 _ACEOF
36564 cat confdefs.h >>conftest.$ac_ext
36565 cat >>conftest.$ac_ext <<_ACEOF
36566 /* end confdefs.h.  */
36567 #include <sys/types.h>
36568 #ifdef HAVE_SYS_PARAM_H
36569 #include <sys/param.h>
36570 #endif
36571 #ifdef HAVE_SYS_MOUNT_H
36572 #include <sys/mount.h>
36573 #endif
36574   main ()
36575   {
36576   struct statfs fsd;
36577   fsd.f_fsize = 0;
36578   exit (statfs (".", &fsd));
36579   }
36580 _ACEOF
36581 rm -f conftest$ac_exeext
36582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36583   (eval $ac_link) 2>&5
36584   ac_status=$?
36585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36586   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36588   (eval $ac_try) 2>&5
36589   ac_status=$?
36590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36591   (exit $ac_status); }; }; then
36592   fu_cv_sys_stat_statfs2_fsize=yes
36593 else
36594   echo "$as_me: program exited with status $ac_status" >&5
36595 echo "$as_me: failed program was:" >&5
36596 sed 's/^/| /' conftest.$ac_ext >&5
36597
36598 ( exit $ac_status )
36599 fu_cv_sys_stat_statfs2_fsize=no
36600 fi
36601 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36602 fi
36603 fi
36604
36605   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
36606 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
36607   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
36608     ac_fsusage_space=yes
36609
36610 cat >>confdefs.h <<\_ACEOF
36611 #define STAT_STATFS2_FSIZE 1
36612 _ACEOF
36613
36614   fi
36615 fi
36616
36617 if test $ac_fsusage_space = no; then
36618   # Ultrix
36619   echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
36620 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
36621   if test "${fu_cv_sys_stat_fs_data+set}" = set; then
36622   echo $ECHO_N "(cached) $ECHO_C" >&6
36623 else
36624   if test "$cross_compiling" = yes; then
36625   fu_cv_sys_stat_fs_data=no
36626 else
36627   cat >conftest.$ac_ext <<_ACEOF
36628 #line $LINENO "configure"
36629 /* confdefs.h.  */
36630 _ACEOF
36631 cat confdefs.h >>conftest.$ac_ext
36632 cat >>conftest.$ac_ext <<_ACEOF
36633 /* end confdefs.h.  */
36634 #include <sys/types.h>
36635 #ifdef HAVE_SYS_PARAM_H
36636 #include <sys/param.h>
36637 #endif
36638 #ifdef HAVE_SYS_MOUNT_H
36639 #include <sys/mount.h>
36640 #endif
36641 #ifdef HAVE_SYS_FS_TYPES_H
36642 #include <sys/fs_types.h>
36643 #endif
36644   main ()
36645   {
36646   struct fs_data fsd;
36647   /* Ultrix's statfs returns 1 for success,
36648      0 for not mounted, -1 for failure.  */
36649   exit (statfs (".", &fsd) != 1);
36650   }
36651 _ACEOF
36652 rm -f conftest$ac_exeext
36653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36654   (eval $ac_link) 2>&5
36655   ac_status=$?
36656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36657   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36659   (eval $ac_try) 2>&5
36660   ac_status=$?
36661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36662   (exit $ac_status); }; }; then
36663   fu_cv_sys_stat_fs_data=yes
36664 else
36665   echo "$as_me: program exited with status $ac_status" >&5
36666 echo "$as_me: failed program was:" >&5
36667 sed 's/^/| /' conftest.$ac_ext >&5
36668
36669 ( exit $ac_status )
36670 fu_cv_sys_stat_fs_data=no
36671 fi
36672 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36673 fi
36674 fi
36675
36676   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
36677 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
36678   if test $fu_cv_sys_stat_fs_data = yes; then
36679     ac_fsusage_space=yes
36680
36681 cat >>confdefs.h <<\_ACEOF
36682 #define STAT_STATFS2_FS_DATA 1
36683 _ACEOF
36684
36685   fi
36686 fi
36687
36688 if test $ac_fsusage_space = no; then
36689   # SVR2
36690   cat >conftest.$ac_ext <<_ACEOF
36691 #line $LINENO "configure"
36692 /* confdefs.h.  */
36693 _ACEOF
36694 cat confdefs.h >>conftest.$ac_ext
36695 cat >>conftest.$ac_ext <<_ACEOF
36696 /* end confdefs.h.  */
36697 #include <sys/filsys.h>
36698
36699 _ACEOF
36700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36701   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36702   ac_status=$?
36703   grep -v '^ *+' conftest.er1 >conftest.err
36704   rm -f conftest.er1
36705   cat conftest.err >&5
36706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36707   (exit $ac_status); } >/dev/null; then
36708   if test -s conftest.err; then
36709     ac_cpp_err=$ac_c_preproc_warn_flag
36710   else
36711     ac_cpp_err=
36712   fi
36713 else
36714   ac_cpp_err=yes
36715 fi
36716 if test -z "$ac_cpp_err"; then
36717
36718 cat >>confdefs.h <<\_ACEOF
36719 #define STAT_READ_FILSYS 1
36720 _ACEOF
36721
36722     ac_fsusage_space=yes
36723 else
36724   echo "$as_me: failed program was:" >&5
36725 sed 's/^/| /' conftest.$ac_ext >&5
36726
36727
36728 fi
36729 rm -f conftest.err conftest.$ac_ext
36730 fi
36731
36732 if test $ac_fsusage_space = yes; then
36733   space=yes
36734 else
36735   space=no
36736 fi
36737
36738
36739
36740   if test $list_mounted_fs = yes && test $space = yes; then
36741     DF_PROG=df
36742     LIBOBJS="$LIBOBJS fsusage.$ac_objext"
36743     LIBOBJS="$LIBOBJS mountlist.$ac_objext"
36744   fi
36745
36746
36747
36748
36749
36750 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
36751 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
36752 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
36753   echo $ECHO_N "(cached) $ECHO_C" >&6
36754 else
36755   cat >conftest.$ac_ext <<_ACEOF
36756 #line $LINENO "configure"
36757 /* confdefs.h.  */
36758 _ACEOF
36759 cat confdefs.h >>conftest.$ac_ext
36760 cat >>conftest.$ac_ext <<_ACEOF
36761 /* end confdefs.h.  */
36762 #include <sys/types.h>
36763 #include <termios.h>
36764 #ifdef TIOCGWINSZ
36765   yes
36766 #endif
36767
36768 _ACEOF
36769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36770   $EGREP "yes" >/dev/null 2>&1; then
36771   ac_cv_sys_tiocgwinsz_in_termios_h=yes
36772 else
36773   ac_cv_sys_tiocgwinsz_in_termios_h=no
36774 fi
36775 rm -f conftest*
36776
36777 fi
36778 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
36779 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
36780
36781 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
36782   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
36783 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
36784 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
36785   echo $ECHO_N "(cached) $ECHO_C" >&6
36786 else
36787   cat >conftest.$ac_ext <<_ACEOF
36788 #line $LINENO "configure"
36789 /* confdefs.h.  */
36790 _ACEOF
36791 cat confdefs.h >>conftest.$ac_ext
36792 cat >>conftest.$ac_ext <<_ACEOF
36793 /* end confdefs.h.  */
36794 #include <sys/types.h>
36795 #include <sys/ioctl.h>
36796 #ifdef TIOCGWINSZ
36797   yes
36798 #endif
36799
36800 _ACEOF
36801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36802   $EGREP "yes" >/dev/null 2>&1; then
36803   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
36804 else
36805   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
36806 fi
36807 rm -f conftest*
36808
36809 fi
36810 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
36811 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
36812
36813   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
36814
36815 cat >>confdefs.h <<\_ACEOF
36816 #define GWINSZ_IN_SYS_IOCTL 1
36817 _ACEOF
36818
36819   fi
36820 fi
36821
36822 echo "$as_me:$LINENO: checking POSIX termios" >&5
36823 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
36824 if test "${ac_cv_sys_posix_termios+set}" = set; then
36825   echo $ECHO_N "(cached) $ECHO_C" >&6
36826 else
36827   cat >conftest.$ac_ext <<_ACEOF
36828 #line $LINENO "configure"
36829 /* confdefs.h.  */
36830 _ACEOF
36831 cat confdefs.h >>conftest.$ac_ext
36832 cat >>conftest.$ac_ext <<_ACEOF
36833 /* end confdefs.h.  */
36834 #include <sys/types.h>
36835 #include <unistd.h>
36836 #include <termios.h>
36837
36838 int
36839 main ()
36840 {
36841 /* SunOS 4.0.3 has termios.h but not the library calls.  */
36842    tcgetattr(0, 0);
36843   ;
36844   return 0;
36845 }
36846 _ACEOF
36847 rm -f conftest.$ac_objext conftest$ac_exeext
36848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36849   (eval $ac_link) 2>&5
36850   ac_status=$?
36851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36852   (exit $ac_status); } &&
36853          { ac_try='test -s conftest$ac_exeext'
36854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36855   (eval $ac_try) 2>&5
36856   ac_status=$?
36857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36858   (exit $ac_status); }; }; then
36859   ac_cv_sys_posix_termios=yes
36860 else
36861   echo "$as_me: failed program was:" >&5
36862 sed 's/^/| /' conftest.$ac_ext >&5
36863
36864 ac_cv_sys_posix_termios=no
36865 fi
36866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36867 fi
36868 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
36869 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
36870
36871
36872    echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
36873 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
36874 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
36875   echo $ECHO_N "(cached) $ECHO_C" >&6
36876 else
36877   jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
36878       if test $ac_cv_sys_posix_termios = yes; then
36879         cat >conftest.$ac_ext <<_ACEOF
36880 #line $LINENO "configure"
36881 /* confdefs.h.  */
36882 _ACEOF
36883 cat confdefs.h >>conftest.$ac_ext
36884 cat >>conftest.$ac_ext <<_ACEOF
36885 /* end confdefs.h.  */
36886 #include <termios.h>
36887           struct winsize x;
36888 int
36889 main ()
36890 {
36891 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
36892   ;
36893   return 0;
36894 }
36895 _ACEOF
36896 rm -f conftest.$ac_objext
36897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36898   (eval $ac_compile) 2>&5
36899   ac_status=$?
36900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36901   (exit $ac_status); } &&
36902          { ac_try='test -s conftest.$ac_objext'
36903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36904   (eval $ac_try) 2>&5
36905   ac_status=$?
36906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36907   (exit $ac_status); }; }; then
36908   :
36909 else
36910   echo "$as_me: failed program was:" >&5
36911 sed 's/^/| /' conftest.$ac_ext >&5
36912
36913 fi
36914 rm -f conftest.$ac_objext conftest.$ac_ext
36915       fi
36916       if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
36917         cat >conftest.$ac_ext <<_ACEOF
36918 #line $LINENO "configure"
36919 /* confdefs.h.  */
36920 _ACEOF
36921 cat confdefs.h >>conftest.$ac_ext
36922 cat >>conftest.$ac_ext <<_ACEOF
36923 /* end confdefs.h.  */
36924 #include <sys/ptem.h>
36925 int
36926 main ()
36927 {
36928 struct winsize x;
36929   ;
36930   return 0;
36931 }
36932 _ACEOF
36933 rm -f conftest.$ac_objext
36934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36935   (eval $ac_compile) 2>&5
36936   ac_status=$?
36937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36938   (exit $ac_status); } &&
36939          { ac_try='test -s conftest.$ac_objext'
36940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36941   (eval $ac_try) 2>&5
36942   ac_status=$?
36943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36944   (exit $ac_status); }; }; then
36945   :
36946 else
36947   echo "$as_me: failed program was:" >&5
36948 sed 's/^/| /' conftest.$ac_ext >&5
36949
36950 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
36951 fi
36952 rm -f conftest.$ac_objext conftest.$ac_ext
36953       fi
36954 fi
36955 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
36956 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
36957    if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
36958
36959 cat >>confdefs.h <<\_ACEOF
36960 #define WINSIZE_IN_PTEM 1
36961 _ACEOF
36962
36963    fi
36964
36965 # Check for SunOS statfs brokenness wrt partitions 2GB and larger.
36966 # If <sys/vfs.h> exists and struct statfs has a member named f_spare,
36967 # enable the work-around code in fsusage.c.
36968 echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
36969 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6
36970 if test "${fu_cv_sys_truncating_statfs+set}" = set; then
36971   echo $ECHO_N "(cached) $ECHO_C" >&6
36972 else
36973   cat >conftest.$ac_ext <<_ACEOF
36974 #line $LINENO "configure"
36975 /* confdefs.h.  */
36976 _ACEOF
36977 cat confdefs.h >>conftest.$ac_ext
36978 cat >>conftest.$ac_ext <<_ACEOF
36979 /* end confdefs.h.  */
36980
36981 #if !defined(sun) && !defined(__sun)
36982 choke -- this is a workaround for a Sun-specific problem
36983 #endif
36984 #include <sys/types.h>
36985 #include <sys/vfs.h>
36986 int
36987 main ()
36988 {
36989 struct statfs t; long c = *(t.f_spare);
36990   ;
36991   return 0;
36992 }
36993 _ACEOF
36994 rm -f conftest.$ac_objext
36995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36996   (eval $ac_compile) 2>&5
36997   ac_status=$?
36998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36999   (exit $ac_status); } &&
37000          { ac_try='test -s conftest.$ac_objext'
37001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37002   (eval $ac_try) 2>&5
37003   ac_status=$?
37004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37005   (exit $ac_status); }; }; then
37006   fu_cv_sys_truncating_statfs=yes
37007 else
37008   echo "$as_me: failed program was:" >&5
37009 sed 's/^/| /' conftest.$ac_ext >&5
37010
37011 fu_cv_sys_truncating_statfs=no
37012 fi
37013 rm -f conftest.$ac_objext conftest.$ac_ext
37014 fi
37015
37016 if test $fu_cv_sys_truncating_statfs = yes; then
37017
37018 cat >>confdefs.h <<\_ACEOF
37019 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
37020 _ACEOF
37021
37022 fi
37023 echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
37024 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6
37025
37026 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
37027 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
37028 if test "${utils_cv_localtime_cache+set}" = set; then
37029   echo $ECHO_N "(cached) $ECHO_C" >&6
37030 else
37031   if test x$ac_cv_func_tzset = xyes; then
37032 if test "$cross_compiling" = yes; then
37033   # If we have tzset, assume the worst when cross-compiling.
37034 utils_cv_localtime_cache=yes
37035 else
37036   cat >conftest.$ac_ext <<_ACEOF
37037 #line $LINENO "configure"
37038 /* confdefs.h.  */
37039 _ACEOF
37040 cat confdefs.h >>conftest.$ac_ext
37041 cat >>conftest.$ac_ext <<_ACEOF
37042 /* end confdefs.h.  */
37043 #include <time.h>
37044 #if STDC_HEADERS
37045 # include <stdlib.h>
37046 #endif
37047 extern char **environ;
37048 unset_TZ ()
37049 {
37050   char **from, **to;
37051   for (to = from = environ; (*to = *from); from++)
37052     if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
37053       to++;
37054 }
37055 main()
37056 {
37057   time_t now = time ((time_t *) 0);
37058   int hour_GMT0, hour_unset;
37059   if (putenv ("TZ=GMT0") != 0)
37060     exit (1);
37061   hour_GMT0 = localtime (&now)->tm_hour;
37062   unset_TZ ();
37063   hour_unset = localtime (&now)->tm_hour;
37064   if (putenv ("TZ=PST8") != 0)
37065     exit (1);
37066   if (localtime (&now)->tm_hour == hour_GMT0)
37067     exit (1);
37068   unset_TZ ();
37069   if (localtime (&now)->tm_hour != hour_unset)
37070     exit (1);
37071   exit (0);
37072 }
37073 _ACEOF
37074 rm -f conftest$ac_exeext
37075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37076   (eval $ac_link) 2>&5
37077   ac_status=$?
37078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37079   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37081   (eval $ac_try) 2>&5
37082   ac_status=$?
37083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37084   (exit $ac_status); }; }; then
37085   utils_cv_localtime_cache=no
37086 else
37087   echo "$as_me: program exited with status $ac_status" >&5
37088 echo "$as_me: failed program was:" >&5
37089 sed 's/^/| /' conftest.$ac_ext >&5
37090
37091 ( exit $ac_status )
37092 utils_cv_localtime_cache=yes
37093 fi
37094 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37095 fi
37096 else
37097         # If we lack tzset, report that localtime does not cache TZ,
37098         # since we can't invalidate the cache if we don't have tzset.
37099         utils_cv_localtime_cache=no
37100 fi
37101 fi
37102 echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
37103 echo "${ECHO_T}$utils_cv_localtime_cache" >&6
37104 if test $utils_cv_localtime_cache = yes; then
37105
37106 cat >>confdefs.h <<\_ACEOF
37107 #define LOCALTIME_CACHE 1
37108 _ACEOF
37109
37110 fi
37111
37112 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
37113
37114 for ac_func in initgroups
37115 do
37116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37117 echo "$as_me:$LINENO: checking for $ac_func" >&5
37118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37119 if eval "test \"\${$as_ac_var+set}\" = set"; then
37120   echo $ECHO_N "(cached) $ECHO_C" >&6
37121 else
37122   cat >conftest.$ac_ext <<_ACEOF
37123 #line $LINENO "configure"
37124 /* confdefs.h.  */
37125 _ACEOF
37126 cat confdefs.h >>conftest.$ac_ext
37127 cat >>conftest.$ac_ext <<_ACEOF
37128 /* end confdefs.h.  */
37129 /* System header to define __stub macros and hopefully few prototypes,
37130     which can conflict with char $ac_func (); below.
37131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37132     <limits.h> exists even on freestanding compilers.  */
37133 #ifdef __STDC__
37134 # include <limits.h>
37135 #else
37136 # include <assert.h>
37137 #endif
37138 /* Override any gcc2 internal prototype to avoid an error.  */
37139 #ifdef __cplusplus
37140 extern "C"
37141 {
37142 #endif
37143 /* We use char because int might match the return type of a gcc2
37144    builtin and then its argument prototype would still apply.  */
37145 char $ac_func ();
37146 /* The GNU C library defines this for functions which it implements
37147     to always fail with ENOSYS.  Some functions are actually named
37148     something starting with __ and the normal name is an alias.  */
37149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37150 choke me
37151 #else
37152 char (*f) () = $ac_func;
37153 #endif
37154 #ifdef __cplusplus
37155 }
37156 #endif
37157
37158 int
37159 main ()
37160 {
37161 return f != $ac_func;
37162   ;
37163   return 0;
37164 }
37165 _ACEOF
37166 rm -f conftest.$ac_objext conftest$ac_exeext
37167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37168   (eval $ac_link) 2>&5
37169   ac_status=$?
37170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37171   (exit $ac_status); } &&
37172          { ac_try='test -s conftest$ac_exeext'
37173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37174   (eval $ac_try) 2>&5
37175   ac_status=$?
37176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37177   (exit $ac_status); }; }; then
37178   eval "$as_ac_var=yes"
37179 else
37180   echo "$as_me: failed program was:" >&5
37181 sed 's/^/| /' conftest.$ac_ext >&5
37182
37183 eval "$as_ac_var=no"
37184 fi
37185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37186 fi
37187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37189 if test `eval echo '${'$as_ac_var'}'` = yes; then
37190   cat >>confdefs.h <<_ACEOF
37191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37192 _ACEOF
37193
37194 fi
37195 done
37196
37197 if test $ac_cv_func_initgroups = no; then
37198
37199 echo "$as_me:$LINENO: checking for initgroups in -los" >&5
37200 echo $ECHO_N "checking for initgroups in -los... $ECHO_C" >&6
37201 if test "${ac_cv_lib_os_initgroups+set}" = set; then
37202   echo $ECHO_N "(cached) $ECHO_C" >&6
37203 else
37204   ac_check_lib_save_LIBS=$LIBS
37205 LIBS="-los  $LIBS"
37206 cat >conftest.$ac_ext <<_ACEOF
37207 #line $LINENO "configure"
37208 /* confdefs.h.  */
37209 _ACEOF
37210 cat confdefs.h >>conftest.$ac_ext
37211 cat >>conftest.$ac_ext <<_ACEOF
37212 /* end confdefs.h.  */
37213
37214 /* Override any gcc2 internal prototype to avoid an error.  */
37215 #ifdef __cplusplus
37216 extern "C"
37217 #endif
37218 /* We use char because int might match the return type of a gcc2
37219    builtin and then its argument prototype would still apply.  */
37220 char initgroups ();
37221 int
37222 main ()
37223 {
37224 initgroups ();
37225   ;
37226   return 0;
37227 }
37228 _ACEOF
37229 rm -f conftest.$ac_objext conftest$ac_exeext
37230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37231   (eval $ac_link) 2>&5
37232   ac_status=$?
37233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37234   (exit $ac_status); } &&
37235          { ac_try='test -s conftest$ac_exeext'
37236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37237   (eval $ac_try) 2>&5
37238   ac_status=$?
37239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37240   (exit $ac_status); }; }; then
37241   ac_cv_lib_os_initgroups=yes
37242 else
37243   echo "$as_me: failed program was:" >&5
37244 sed 's/^/| /' conftest.$ac_ext >&5
37245
37246 ac_cv_lib_os_initgroups=no
37247 fi
37248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37249 LIBS=$ac_check_lib_save_LIBS
37250 fi
37251 echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
37252 echo "${ECHO_T}$ac_cv_lib_os_initgroups" >&6
37253 if test $ac_cv_lib_os_initgroups = yes; then
37254   cat >>confdefs.h <<_ACEOF
37255 #define HAVE_LIBOS 1
37256 _ACEOF
37257
37258   LIBS="-los $LIBS"
37259
37260 fi
37261
37262 fi
37263
37264
37265 for ac_func in syslog
37266 do
37267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37268 echo "$as_me:$LINENO: checking for $ac_func" >&5
37269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37270 if eval "test \"\${$as_ac_var+set}\" = set"; then
37271   echo $ECHO_N "(cached) $ECHO_C" >&6
37272 else
37273   cat >conftest.$ac_ext <<_ACEOF
37274 #line $LINENO "configure"
37275 /* confdefs.h.  */
37276 _ACEOF
37277 cat confdefs.h >>conftest.$ac_ext
37278 cat >>conftest.$ac_ext <<_ACEOF
37279 /* end confdefs.h.  */
37280 /* System header to define __stub macros and hopefully few prototypes,
37281     which can conflict with char $ac_func (); below.
37282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37283     <limits.h> exists even on freestanding compilers.  */
37284 #ifdef __STDC__
37285 # include <limits.h>
37286 #else
37287 # include <assert.h>
37288 #endif
37289 /* Override any gcc2 internal prototype to avoid an error.  */
37290 #ifdef __cplusplus
37291 extern "C"
37292 {
37293 #endif
37294 /* We use char because int might match the return type of a gcc2
37295    builtin and then its argument prototype would still apply.  */
37296 char $ac_func ();
37297 /* The GNU C library defines this for functions which it implements
37298     to always fail with ENOSYS.  Some functions are actually named
37299     something starting with __ and the normal name is an alias.  */
37300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37301 choke me
37302 #else
37303 char (*f) () = $ac_func;
37304 #endif
37305 #ifdef __cplusplus
37306 }
37307 #endif
37308
37309 int
37310 main ()
37311 {
37312 return f != $ac_func;
37313   ;
37314   return 0;
37315 }
37316 _ACEOF
37317 rm -f conftest.$ac_objext conftest$ac_exeext
37318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37319   (eval $ac_link) 2>&5
37320   ac_status=$?
37321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37322   (exit $ac_status); } &&
37323          { ac_try='test -s conftest$ac_exeext'
37324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37325   (eval $ac_try) 2>&5
37326   ac_status=$?
37327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37328   (exit $ac_status); }; }; then
37329   eval "$as_ac_var=yes"
37330 else
37331   echo "$as_me: failed program was:" >&5
37332 sed 's/^/| /' conftest.$ac_ext >&5
37333
37334 eval "$as_ac_var=no"
37335 fi
37336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37337 fi
37338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37339 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37340 if test `eval echo '${'$as_ac_var'}'` = yes; then
37341   cat >>confdefs.h <<_ACEOF
37342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37343 _ACEOF
37344
37345 fi
37346 done
37347
37348 if test $ac_cv_func_syslog = no; then
37349   # syslog is not in the default libraries.  See if it's in some other.
37350   for lib in bsd socket inet; do
37351     as_ac_Lib=`echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
37352 echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
37353 echo $ECHO_N "checking for syslog in -l$lib... $ECHO_C" >&6
37354 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
37355   echo $ECHO_N "(cached) $ECHO_C" >&6
37356 else
37357   ac_check_lib_save_LIBS=$LIBS
37358 LIBS="-l$lib  $LIBS"
37359 cat >conftest.$ac_ext <<_ACEOF
37360 #line $LINENO "configure"
37361 /* confdefs.h.  */
37362 _ACEOF
37363 cat confdefs.h >>conftest.$ac_ext
37364 cat >>conftest.$ac_ext <<_ACEOF
37365 /* end confdefs.h.  */
37366
37367 /* Override any gcc2 internal prototype to avoid an error.  */
37368 #ifdef __cplusplus
37369 extern "C"
37370 #endif
37371 /* We use char because int might match the return type of a gcc2
37372    builtin and then its argument prototype would still apply.  */
37373 char syslog ();
37374 int
37375 main ()
37376 {
37377 syslog ();
37378   ;
37379   return 0;
37380 }
37381 _ACEOF
37382 rm -f conftest.$ac_objext conftest$ac_exeext
37383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37384   (eval $ac_link) 2>&5
37385   ac_status=$?
37386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37387   (exit $ac_status); } &&
37388          { ac_try='test -s conftest$ac_exeext'
37389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37390   (eval $ac_try) 2>&5
37391   ac_status=$?
37392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37393   (exit $ac_status); }; }; then
37394   eval "$as_ac_Lib=yes"
37395 else
37396   echo "$as_me: failed program was:" >&5
37397 sed 's/^/| /' conftest.$ac_ext >&5
37398
37399 eval "$as_ac_Lib=no"
37400 fi
37401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37402 LIBS=$ac_check_lib_save_LIBS
37403 fi
37404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
37405 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
37406 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37407
37408 cat >>confdefs.h <<\_ACEOF
37409 #define HAVE_SYSLOG 1
37410 _ACEOF
37411
37412       LIBS="$LIBS -l$lib"; break
37413 fi
37414
37415   done
37416 fi
37417
37418 echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
37419 echo $ECHO_N "checking for 3-argument setpriority function... $ECHO_C" >&6
37420 if test "${utils_cv_func_setpriority+set}" = set; then
37421   echo $ECHO_N "(cached) $ECHO_C" >&6
37422 else
37423   cat >conftest.$ac_ext <<_ACEOF
37424 #line $LINENO "configure"
37425 /* confdefs.h.  */
37426 _ACEOF
37427 cat confdefs.h >>conftest.$ac_ext
37428 cat >>conftest.$ac_ext <<_ACEOF
37429 /* end confdefs.h.  */
37430 #include <sys/time.h>
37431   #include <sys/resource.h>
37432 int
37433 main ()
37434 {
37435 setpriority(0, 0, 0);
37436   ;
37437   return 0;
37438 }
37439 _ACEOF
37440 rm -f conftest.$ac_objext conftest$ac_exeext
37441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37442   (eval $ac_link) 2>&5
37443   ac_status=$?
37444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37445   (exit $ac_status); } &&
37446          { ac_try='test -s conftest$ac_exeext'
37447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37448   (eval $ac_try) 2>&5
37449   ac_status=$?
37450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37451   (exit $ac_status); }; }; then
37452   utils_cv_func_setpriority=yes
37453 else
37454   echo "$as_me: failed program was:" >&5
37455 sed 's/^/| /' conftest.$ac_ext >&5
37456
37457 utils_cv_func_setpriority=no
37458 fi
37459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37460 fi
37461
37462 echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
37463 echo "${ECHO_T}$utils_cv_func_setpriority" >&6
37464 if test $utils_cv_func_setpriority = yes; then
37465   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice"
37466   OPTIONAL_BIN_ZCRIPTS="$OPTIONAL_BIN_ZCRIPTS nohup"
37467   MAN="$MAN nice.1 nohup.1"
37468 else
37469   echo "$as_me:$LINENO: checking for nice function" >&5
37470 echo $ECHO_N "checking for nice function... $ECHO_C" >&6
37471   if test "${utils_cv_func_nice+set}" = set; then
37472   echo $ECHO_N "(cached) $ECHO_C" >&6
37473 else
37474   cat >conftest.$ac_ext <<_ACEOF
37475 #line $LINENO "configure"
37476 /* confdefs.h.  */
37477 _ACEOF
37478 cat confdefs.h >>conftest.$ac_ext
37479 cat >>conftest.$ac_ext <<_ACEOF
37480 /* end confdefs.h.  */
37481
37482 int
37483 main ()
37484 {
37485 nice();
37486   ;
37487   return 0;
37488 }
37489 _ACEOF
37490 rm -f conftest.$ac_objext conftest$ac_exeext
37491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37492   (eval $ac_link) 2>&5
37493   ac_status=$?
37494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37495   (exit $ac_status); } &&
37496          { ac_try='test -s conftest$ac_exeext'
37497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37498   (eval $ac_try) 2>&5
37499   ac_status=$?
37500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37501   (exit $ac_status); }; }; then
37502   utils_cv_func_nice=yes
37503 else
37504   echo "$as_me: failed program was:" >&5
37505 sed 's/^/| /' conftest.$ac_ext >&5
37506
37507 utils_cv_func_nice=no
37508 fi
37509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37510 fi
37511
37512   echo "$as_me:$LINENO: result: $utils_cv_func_nice" >&5
37513 echo "${ECHO_T}$utils_cv_func_nice" >&6
37514   if test $utils_cv_func_nice = yes; then
37515
37516 cat >>confdefs.h <<\_ACEOF
37517 #define NICE_PRIORITY 1
37518 _ACEOF
37519
37520     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice"
37521     OPTIONAL_BIN_ZCRIPTS="$OPTIONAL_BIN_ZCRIPTS nohup"
37522     MAN="$MAN nice.1 nohup.1"
37523   fi
37524 fi
37525
37526
37527
37528
37529   if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
37530     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS pinky users who"
37531     MAN="$MAN pinky.1 users.1 who.1"
37532   fi
37533
37534
37535 echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
37536 echo $ECHO_N "checking ut_host in struct utmp... $ECHO_C" >&6
37537 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
37538   echo $ECHO_N "(cached) $ECHO_C" >&6
37539 else
37540   cat >conftest.$ac_ext <<_ACEOF
37541 #line $LINENO "configure"
37542 /* confdefs.h.  */
37543 _ACEOF
37544 cat confdefs.h >>conftest.$ac_ext
37545 cat >>conftest.$ac_ext <<_ACEOF
37546 /* end confdefs.h.  */
37547 #include <sys/types.h>
37548 #include <utmp.h>
37549 int
37550 main ()
37551 {
37552 struct utmp ut; ut.ut_host;
37553   ;
37554   return 0;
37555 }
37556 _ACEOF
37557 rm -f conftest.$ac_objext conftest$ac_exeext
37558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37559   (eval $ac_link) 2>&5
37560   ac_status=$?
37561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37562   (exit $ac_status); } &&
37563          { ac_try='test -s conftest$ac_exeext'
37564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37565   (eval $ac_try) 2>&5
37566   ac_status=$?
37567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37568   (exit $ac_status); }; }; then
37569   su_cv_func_ut_host_in_utmp=yes
37570 else
37571   echo "$as_me: failed program was:" >&5
37572 sed 's/^/| /' conftest.$ac_ext >&5
37573
37574 su_cv_func_ut_host_in_utmp=no
37575 fi
37576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37577 fi
37578
37579 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
37580 echo "${ECHO_T}$su_cv_func_ut_host_in_utmp" >&6
37581 if test $su_cv_func_ut_host_in_utmp = yes; then
37582   have_ut_host=1
37583
37584 cat >>confdefs.h <<\_ACEOF
37585 #define HAVE_UT_HOST 1
37586 _ACEOF
37587
37588 fi
37589
37590 if test -z "$have_ut_host"; then
37591   echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
37592 echo $ECHO_N "checking ut_host in struct utmpx... $ECHO_C" >&6
37593   if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
37594   echo $ECHO_N "(cached) $ECHO_C" >&6
37595 else
37596   cat >conftest.$ac_ext <<_ACEOF
37597 #line $LINENO "configure"
37598 /* confdefs.h.  */
37599 _ACEOF
37600 cat confdefs.h >>conftest.$ac_ext
37601 cat >>conftest.$ac_ext <<_ACEOF
37602 /* end confdefs.h.  */
37603 #include <sys/types.h>
37604 #include <utmpx.h>
37605 int
37606 main ()
37607 {
37608 struct utmpx ut; ut.ut_host;
37609   ;
37610   return 0;
37611 }
37612 _ACEOF
37613 rm -f conftest.$ac_objext conftest$ac_exeext
37614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37615   (eval $ac_link) 2>&5
37616   ac_status=$?
37617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37618   (exit $ac_status); } &&
37619          { ac_try='test -s conftest$ac_exeext'
37620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37621   (eval $ac_try) 2>&5
37622   ac_status=$?
37623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37624   (exit $ac_status); }; }; then
37625   su_cv_func_ut_host_in_utmpx=yes
37626 else
37627   echo "$as_me: failed program was:" >&5
37628 sed 's/^/| /' conftest.$ac_ext >&5
37629
37630 su_cv_func_ut_host_in_utmpx=no
37631 fi
37632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37633 fi
37634
37635   echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
37636 echo "${ECHO_T}$su_cv_func_ut_host_in_utmpx" >&6
37637   if test $su_cv_func_ut_host_in_utmpx = yes; then
37638
37639 cat >>confdefs.h <<\_ACEOF
37640 #define HAVE_UTMPX_H 1
37641 _ACEOF
37642
37643
37644 cat >>confdefs.h <<\_ACEOF
37645 #define HAVE_UT_HOST 1
37646 _ACEOF
37647
37648   fi
37649 fi
37650
37651
37652
37653 for ac_func in sysctl
37654 do
37655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37656 echo "$as_me:$LINENO: checking for $ac_func" >&5
37657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37658 if eval "test \"\${$as_ac_var+set}\" = set"; then
37659   echo $ECHO_N "(cached) $ECHO_C" >&6
37660 else
37661   cat >conftest.$ac_ext <<_ACEOF
37662 #line $LINENO "configure"
37663 /* confdefs.h.  */
37664 _ACEOF
37665 cat confdefs.h >>conftest.$ac_ext
37666 cat >>conftest.$ac_ext <<_ACEOF
37667 /* end confdefs.h.  */
37668 /* System header to define __stub macros and hopefully few prototypes,
37669     which can conflict with char $ac_func (); below.
37670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37671     <limits.h> exists even on freestanding compilers.  */
37672 #ifdef __STDC__
37673 # include <limits.h>
37674 #else
37675 # include <assert.h>
37676 #endif
37677 /* Override any gcc2 internal prototype to avoid an error.  */
37678 #ifdef __cplusplus
37679 extern "C"
37680 {
37681 #endif
37682 /* We use char because int might match the return type of a gcc2
37683    builtin and then its argument prototype would still apply.  */
37684 char $ac_func ();
37685 /* The GNU C library defines this for functions which it implements
37686     to always fail with ENOSYS.  Some functions are actually named
37687     something starting with __ and the normal name is an alias.  */
37688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37689 choke me
37690 #else
37691 char (*f) () = $ac_func;
37692 #endif
37693 #ifdef __cplusplus
37694 }
37695 #endif
37696
37697 int
37698 main ()
37699 {
37700 return f != $ac_func;
37701   ;
37702   return 0;
37703 }
37704 _ACEOF
37705 rm -f conftest.$ac_objext conftest$ac_exeext
37706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37707   (eval $ac_link) 2>&5
37708   ac_status=$?
37709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37710   (exit $ac_status); } &&
37711          { ac_try='test -s conftest$ac_exeext'
37712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37713   (eval $ac_try) 2>&5
37714   ac_status=$?
37715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37716   (exit $ac_status); }; }; then
37717   eval "$as_ac_var=yes"
37718 else
37719   echo "$as_me: failed program was:" >&5
37720 sed 's/^/| /' conftest.$ac_ext >&5
37721
37722 eval "$as_ac_var=no"
37723 fi
37724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37725 fi
37726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37727 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37728 if test `eval echo '${'$as_ac_var'}'` = yes; then
37729   cat >>confdefs.h <<_ACEOF
37730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37731 _ACEOF
37732
37733 fi
37734 done
37735
37736
37737 for ac_header in sys/sysctl.h
37738 do
37739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37741   echo "$as_me:$LINENO: checking for $ac_header" >&5
37742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37744   echo $ECHO_N "(cached) $ECHO_C" >&6
37745 fi
37746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37748 else
37749   # Is the header compilable?
37750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37752 cat >conftest.$ac_ext <<_ACEOF
37753 #line $LINENO "configure"
37754 /* confdefs.h.  */
37755 _ACEOF
37756 cat confdefs.h >>conftest.$ac_ext
37757 cat >>conftest.$ac_ext <<_ACEOF
37758 /* end confdefs.h.  */
37759 $ac_includes_default
37760 #include <$ac_header>
37761 _ACEOF
37762 rm -f conftest.$ac_objext
37763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37764   (eval $ac_compile) 2>&5
37765   ac_status=$?
37766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37767   (exit $ac_status); } &&
37768          { ac_try='test -s conftest.$ac_objext'
37769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37770   (eval $ac_try) 2>&5
37771   ac_status=$?
37772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37773   (exit $ac_status); }; }; then
37774   ac_header_compiler=yes
37775 else
37776   echo "$as_me: failed program was:" >&5
37777 sed 's/^/| /' conftest.$ac_ext >&5
37778
37779 ac_header_compiler=no
37780 fi
37781 rm -f conftest.$ac_objext conftest.$ac_ext
37782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37783 echo "${ECHO_T}$ac_header_compiler" >&6
37784
37785 # Is the header present?
37786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37788 cat >conftest.$ac_ext <<_ACEOF
37789 #line $LINENO "configure"
37790 /* confdefs.h.  */
37791 _ACEOF
37792 cat confdefs.h >>conftest.$ac_ext
37793 cat >>conftest.$ac_ext <<_ACEOF
37794 /* end confdefs.h.  */
37795 #include <$ac_header>
37796 _ACEOF
37797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37798   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37799   ac_status=$?
37800   grep -v '^ *+' conftest.er1 >conftest.err
37801   rm -f conftest.er1
37802   cat conftest.err >&5
37803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37804   (exit $ac_status); } >/dev/null; then
37805   if test -s conftest.err; then
37806     ac_cpp_err=$ac_c_preproc_warn_flag
37807   else
37808     ac_cpp_err=
37809   fi
37810 else
37811   ac_cpp_err=yes
37812 fi
37813 if test -z "$ac_cpp_err"; then
37814   ac_header_preproc=yes
37815 else
37816   echo "$as_me: failed program was:" >&5
37817 sed 's/^/| /' conftest.$ac_ext >&5
37818
37819   ac_header_preproc=no
37820 fi
37821 rm -f conftest.err conftest.$ac_ext
37822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37823 echo "${ECHO_T}$ac_header_preproc" >&6
37824
37825 # So?  What about this header?
37826 case $ac_header_compiler:$ac_header_preproc in
37827   yes:no )
37828     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37832     (
37833       cat <<\_ASBOX
37834 ## ------------------------------------ ##
37835 ## Report this to bug-autoconf@gnu.org. ##
37836 ## ------------------------------------ ##
37837 _ASBOX
37838     ) |
37839       sed "s/^/$as_me: WARNING:     /" >&2
37840     ;;
37841   no:yes )
37842     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37844     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37848     (
37849       cat <<\_ASBOX
37850 ## ------------------------------------ ##
37851 ## Report this to bug-autoconf@gnu.org. ##
37852 ## ------------------------------------ ##
37853 _ASBOX
37854     ) |
37855       sed "s/^/$as_me: WARNING:     /" >&2
37856     ;;
37857 esac
37858 echo "$as_me:$LINENO: checking for $ac_header" >&5
37859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37861   echo $ECHO_N "(cached) $ECHO_C" >&6
37862 else
37863   eval "$as_ac_Header=$ac_header_preproc"
37864 fi
37865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37867
37868 fi
37869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37870   cat >>confdefs.h <<_ACEOF
37871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37872 _ACEOF
37873
37874 fi
37875
37876 done
37877
37878   echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
37879 echo $ECHO_N "checking whether we can get the system boot time... $ECHO_C" >&6
37880 if test "${gnulib_cv_have_boot_time+set}" = set; then
37881   echo $ECHO_N "(cached) $ECHO_C" >&6
37882 else
37883
37884       cat >conftest.$ac_ext <<_ACEOF
37885 #line $LINENO "configure"
37886 /* confdefs.h.  */
37887 _ACEOF
37888 cat confdefs.h >>conftest.$ac_ext
37889 cat >>conftest.$ac_ext <<_ACEOF
37890 /* end confdefs.h.  */
37891 $ac_includes_default
37892 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
37893 # include <sys/param.h> /* needed for OpenBSD 3.0 */
37894 # include <sys/sysctl.h>
37895 #endif
37896 #ifdef HAVE_UTMPX_H
37897 # include <utmpx.h>
37898 #else
37899 # include <utmp.h>
37900 #endif
37901
37902 int
37903 main ()
37904 {
37905
37906 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME)
37907 /* your system *does* have the infrastructure to determine boot time */
37908 #else
37909 please_tell_us_how_to_determine_boot_time_on_your_system
37910 #endif
37911
37912   ;
37913   return 0;
37914 }
37915 _ACEOF
37916 rm -f conftest.$ac_objext
37917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37918   (eval $ac_compile) 2>&5
37919   ac_status=$?
37920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37921   (exit $ac_status); } &&
37922          { ac_try='test -s conftest.$ac_objext'
37923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37924   (eval $ac_try) 2>&5
37925   ac_status=$?
37926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37927   (exit $ac_status); }; }; then
37928   gnulib_cv_have_boot_time=yes
37929 else
37930   echo "$as_me: failed program was:" >&5
37931 sed 's/^/| /' conftest.$ac_ext >&5
37932
37933 gnulib_cv_have_boot_time=no
37934 fi
37935 rm -f conftest.$ac_objext conftest.$ac_ext
37936
37937 fi
37938 echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
37939 echo "${ECHO_T}$gnulib_cv_have_boot_time" >&6
37940   if test $gnulib_cv_have_boot_time = yes; then
37941   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uptime" MAN="$MAN uptime.1"
37942 fi
37943
37944
37945
37946 echo "$as_me:$LINENO: checking POSIX termios" >&5
37947 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
37948 if test "${ac_cv_sys_posix_termios+set}" = set; then
37949   echo $ECHO_N "(cached) $ECHO_C" >&6
37950 else
37951   cat >conftest.$ac_ext <<_ACEOF
37952 #line $LINENO "configure"
37953 /* confdefs.h.  */
37954 _ACEOF
37955 cat confdefs.h >>conftest.$ac_ext
37956 cat >>conftest.$ac_ext <<_ACEOF
37957 /* end confdefs.h.  */
37958 #include <sys/types.h>
37959 #include <unistd.h>
37960 #include <termios.h>
37961
37962 int
37963 main ()
37964 {
37965 /* SunOS 4.0.3 has termios.h but not the library calls.  */
37966    tcgetattr(0, 0);
37967   ;
37968   return 0;
37969 }
37970 _ACEOF
37971 rm -f conftest.$ac_objext conftest$ac_exeext
37972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37973   (eval $ac_link) 2>&5
37974   ac_status=$?
37975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37976   (exit $ac_status); } &&
37977          { ac_try='test -s conftest$ac_exeext'
37978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37979   (eval $ac_try) 2>&5
37980   ac_status=$?
37981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37982   (exit $ac_status); }; }; then
37983   ac_cv_sys_posix_termios=yes
37984 else
37985   echo "$as_me: failed program was:" >&5
37986 sed 's/^/| /' conftest.$ac_ext >&5
37987
37988 ac_cv_sys_posix_termios=no
37989 fi
37990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37991 fi
37992 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
37993 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
37994
37995
37996  echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
37997 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
37998 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
37999   echo $ECHO_N "(cached) $ECHO_C" >&6
38000 else
38001   jm_cv_sys_tiocgwinsz_needs_termios_h=no
38002
38003    if test $ac_cv_sys_posix_termios = yes; then
38004      cat >conftest.$ac_ext <<_ACEOF
38005 #line $LINENO "configure"
38006 /* confdefs.h.  */
38007 _ACEOF
38008 cat confdefs.h >>conftest.$ac_ext
38009 cat >>conftest.$ac_ext <<_ACEOF
38010 /* end confdefs.h.  */
38011 #include <sys/types.h>
38012 #      include <termios.h>
38013 #      ifdef TIOCGWINSZ
38014          yes
38015 #      endif
38016
38017 _ACEOF
38018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38019   $EGREP "yes" >/dev/null 2>&1; then
38020   jm_cv_sys_tiocgwinsz_needs_termios_h=yes
38021 fi
38022 rm -f conftest*
38023
38024    fi
38025
38026 fi
38027 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
38028 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
38029
38030
38031  echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
38032 echo $ECHO_N "checking whether use of TIOCGWINSZ requires sys/ioctl.h... $ECHO_C" >&6
38033 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
38034   echo $ECHO_N "(cached) $ECHO_C" >&6
38035 else
38036   jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
38037
38038   if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then
38039     cat >conftest.$ac_ext <<_ACEOF
38040 #line $LINENO "configure"
38041 /* confdefs.h.  */
38042 _ACEOF
38043 cat confdefs.h >>conftest.$ac_ext
38044 cat >>conftest.$ac_ext <<_ACEOF
38045 /* end confdefs.h.  */
38046 #include <sys/types.h>
38047 #     include <sys/ioctl.h>
38048 #     ifdef TIOCGWINSZ
38049         yes
38050 #     endif
38051
38052 _ACEOF
38053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38054   $EGREP "yes" >/dev/null 2>&1; then
38055   jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
38056 fi
38057 rm -f conftest*
38058
38059   fi
38060
38061 fi
38062 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
38063 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6
38064   if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
38065
38066 cat >>confdefs.h <<\_ACEOF
38067 #define GWINSZ_IN_SYS_IOCTL 1
38068 _ACEOF
38069
38070   fi
38071
38072
38073 if test $ac_cv_sys_posix_termios = yes; then
38074   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS stty" MAN="$MAN stty.1"
38075
38076   echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
38077 echo $ECHO_N "checking whether termios.h needs _XOPEN_SOURCE... $ECHO_C" >&6
38078   if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
38079   echo $ECHO_N "(cached) $ECHO_C" >&6
38080 else
38081   cat >conftest.$ac_ext <<_ACEOF
38082 #line $LINENO "configure"
38083 /* confdefs.h.  */
38084 _ACEOF
38085 cat confdefs.h >>conftest.$ac_ext
38086 cat >>conftest.$ac_ext <<_ACEOF
38087 /* end confdefs.h.  */
38088 #include <termios.h>
38089 #ifdef IUCLC
38090 yes
38091 #endif
38092 _ACEOF
38093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38094   $EGREP "yes" >/dev/null 2>&1; then
38095   su_cv_sys_termios_needs_xopen_source=no
38096 else
38097   cat >conftest.$ac_ext <<_ACEOF
38098 #line $LINENO "configure"
38099 /* confdefs.h.  */
38100 _ACEOF
38101 cat confdefs.h >>conftest.$ac_ext
38102 cat >>conftest.$ac_ext <<_ACEOF
38103 /* end confdefs.h.  */
38104 #define _XOPEN_SOURCE
38105 #include <termios.h>
38106 #ifdef IUCLC
38107 yes
38108 #endif
38109 _ACEOF
38110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38111   $EGREP "yes" >/dev/null 2>&1; then
38112   su_cv_sys_termios_needs_xopen_source=yes
38113 else
38114   su_cv_sys_termios_needs_xopen_source=no
38115 fi
38116 rm -f conftest*
38117
38118 fi
38119 rm -f conftest*
38120
38121 fi
38122
38123   echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
38124 echo "${ECHO_T}$su_cv_sys_termios_needs_xopen_source" >&6
38125   test $su_cv_sys_termios_needs_xopen_source = yes &&
38126
38127 cat >>confdefs.h <<\_ACEOF
38128 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
38129 _ACEOF
38130
38131
38132   echo "$as_me:$LINENO: checking c_line in struct termios" >&5
38133 echo $ECHO_N "checking c_line in struct termios... $ECHO_C" >&6
38134   if test "${su_cv_sys_c_line_in_termios+set}" = set; then
38135   echo $ECHO_N "(cached) $ECHO_C" >&6
38136 else
38137   cat >conftest.$ac_ext <<_ACEOF
38138 #line $LINENO "configure"
38139 /* confdefs.h.  */
38140 _ACEOF
38141 cat confdefs.h >>conftest.$ac_ext
38142 cat >>conftest.$ac_ext <<_ACEOF
38143 /* end confdefs.h.  */
38144 #if TERMIOS_NEEDS_XOPEN_SOURCE
38145 #define _XOPEN_SOURCE
38146 #endif
38147 #include <sys/types.h>
38148 #include <termios.h>
38149 int
38150 main ()
38151 {
38152 struct termios t; t.c_line;
38153   ;
38154   return 0;
38155 }
38156 _ACEOF
38157 rm -f conftest.$ac_objext conftest$ac_exeext
38158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38159   (eval $ac_link) 2>&5
38160   ac_status=$?
38161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38162   (exit $ac_status); } &&
38163          { ac_try='test -s conftest$ac_exeext'
38164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38165   (eval $ac_try) 2>&5
38166   ac_status=$?
38167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38168   (exit $ac_status); }; }; then
38169   su_cv_sys_c_line_in_termios=yes
38170 else
38171   echo "$as_me: failed program was:" >&5
38172 sed 's/^/| /' conftest.$ac_ext >&5
38173
38174 su_cv_sys_c_line_in_termios=no
38175 fi
38176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38177 fi
38178
38179   echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
38180 echo "${ECHO_T}$su_cv_sys_c_line_in_termios" >&6
38181   test $su_cv_sys_c_line_in_termios = yes \
38182     &&
38183 cat >>confdefs.h <<\_ACEOF
38184 #define HAVE_C_LINE 1
38185 _ACEOF
38186
38187 fi
38188
38189 # FIXME: note that this macro appears above, too.
38190 # I'm leaving it here for now.  This whole thing needs to be modernized...
38191
38192    echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
38193 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
38194 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
38195   echo $ECHO_N "(cached) $ECHO_C" >&6
38196 else
38197   jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
38198       if test $ac_cv_sys_posix_termios = yes; then
38199         cat >conftest.$ac_ext <<_ACEOF
38200 #line $LINENO "configure"
38201 /* confdefs.h.  */
38202 _ACEOF
38203 cat confdefs.h >>conftest.$ac_ext
38204 cat >>conftest.$ac_ext <<_ACEOF
38205 /* end confdefs.h.  */
38206 #include <termios.h>
38207           struct winsize x;
38208 int
38209 main ()
38210 {
38211 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
38212   ;
38213   return 0;
38214 }
38215 _ACEOF
38216 rm -f conftest.$ac_objext
38217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38218   (eval $ac_compile) 2>&5
38219   ac_status=$?
38220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38221   (exit $ac_status); } &&
38222          { ac_try='test -s conftest.$ac_objext'
38223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38224   (eval $ac_try) 2>&5
38225   ac_status=$?
38226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38227   (exit $ac_status); }; }; then
38228   :
38229 else
38230   echo "$as_me: failed program was:" >&5
38231 sed 's/^/| /' conftest.$ac_ext >&5
38232
38233 fi
38234 rm -f conftest.$ac_objext conftest.$ac_ext
38235       fi
38236       if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
38237         cat >conftest.$ac_ext <<_ACEOF
38238 #line $LINENO "configure"
38239 /* confdefs.h.  */
38240 _ACEOF
38241 cat confdefs.h >>conftest.$ac_ext
38242 cat >>conftest.$ac_ext <<_ACEOF
38243 /* end confdefs.h.  */
38244 #include <sys/ptem.h>
38245 int
38246 main ()
38247 {
38248 struct winsize x;
38249   ;
38250   return 0;
38251 }
38252 _ACEOF
38253 rm -f conftest.$ac_objext
38254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38255   (eval $ac_compile) 2>&5
38256   ac_status=$?
38257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38258   (exit $ac_status); } &&
38259          { ac_try='test -s conftest.$ac_objext'
38260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38261   (eval $ac_try) 2>&5
38262   ac_status=$?
38263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38264   (exit $ac_status); }; }; then
38265   :
38266 else
38267   echo "$as_me: failed program was:" >&5
38268 sed 's/^/| /' conftest.$ac_ext >&5
38269
38270 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
38271 fi
38272 rm -f conftest.$ac_objext conftest.$ac_ext
38273       fi
38274 fi
38275 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
38276 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
38277    if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
38278
38279 cat >>confdefs.h <<\_ACEOF
38280 #define WINSIZE_IN_PTEM 1
38281 _ACEOF
38282
38283    fi
38284
38285
38286  echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
38287 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
38288 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
38289   echo $ECHO_N "(cached) $ECHO_C" >&6
38290 else
38291   jm_cv_sys_tiocgwinsz_needs_termios_h=no
38292
38293    if test $ac_cv_sys_posix_termios = yes; then
38294      cat >conftest.$ac_ext <<_ACEOF
38295 #line $LINENO "configure"
38296 /* confdefs.h.  */
38297 _ACEOF
38298 cat confdefs.h >>conftest.$ac_ext
38299 cat >>conftest.$ac_ext <<_ACEOF
38300 /* end confdefs.h.  */
38301 #include <sys/types.h>
38302 #      include <termios.h>
38303 #      ifdef TIOCGWINSZ
38304          yes
38305 #      endif
38306
38307 _ACEOF
38308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38309   $EGREP "yes" >/dev/null 2>&1; then
38310   jm_cv_sys_tiocgwinsz_needs_termios_h=yes
38311 fi
38312 rm -f conftest*
38313
38314    fi
38315
38316 fi
38317 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
38318 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
38319
38320
38321 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no && \
38322    test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no; then
38323   echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
38324 echo $ECHO_N "checking TIOCGWINSZ in sys/pty.h... $ECHO_C" >&6
38325   if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
38326   echo $ECHO_N "(cached) $ECHO_C" >&6
38327 else
38328   cat >conftest.$ac_ext <<_ACEOF
38329 #line $LINENO "configure"
38330 /* confdefs.h.  */
38331 _ACEOF
38332 cat confdefs.h >>conftest.$ac_ext
38333 cat >>conftest.$ac_ext <<_ACEOF
38334 /* end confdefs.h.  */
38335 #include <sys/types.h>
38336 #ifdef WINSIZE_IN_PTEM
38337 # include <sys/stream.h>
38338 # include <sys/ptem.h>
38339 #endif
38340 #include <sys/ioctl.h>
38341 #include <sys/tty.h>
38342 #include <sys/pty.h>
38343 int
38344 main ()
38345 {
38346 int x = TIOCGWINSZ;
38347   ;
38348   return 0;
38349 }
38350 _ACEOF
38351 rm -f conftest.$ac_objext conftest$ac_exeext
38352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38353   (eval $ac_link) 2>&5
38354   ac_status=$?
38355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38356   (exit $ac_status); } &&
38357          { ac_try='test -s conftest$ac_exeext'
38358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38359   (eval $ac_try) 2>&5
38360   ac_status=$?
38361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38362   (exit $ac_status); }; }; then
38363   su_cv_sys_tiocgwinsz_in_sys_pty_h=yes
38364 else
38365   echo "$as_me: failed program was:" >&5
38366 sed 's/^/| /' conftest.$ac_ext >&5
38367
38368 su_cv_sys_tiocgwinsz_in_sys_pty_h=no
38369 fi
38370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38371 fi
38372
38373   echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
38374 echo "${ECHO_T}$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6
38375
38376   test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
38377       &&
38378 cat >>confdefs.h <<\_ACEOF
38379 #define GWINSZ_IN_SYS_PTY 1
38380 _ACEOF
38381
38382 fi
38383
38384 # For src/kill.c.
38385 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
38386 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
38387 if test "${ac_cv_have_decl_strsignal+set}" = set; then
38388   echo $ECHO_N "(cached) $ECHO_C" >&6
38389 else
38390   cat >conftest.$ac_ext <<_ACEOF
38391 #line $LINENO "configure"
38392 /* confdefs.h.  */
38393 _ACEOF
38394 cat confdefs.h >>conftest.$ac_ext
38395 cat >>conftest.$ac_ext <<_ACEOF
38396 /* end confdefs.h.  */
38397 $ac_includes_default
38398 int
38399 main ()
38400 {
38401 #ifndef strsignal
38402   char *p = (char *) strsignal;
38403 #endif
38404
38405   ;
38406   return 0;
38407 }
38408 _ACEOF
38409 rm -f conftest.$ac_objext
38410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38411   (eval $ac_compile) 2>&5
38412   ac_status=$?
38413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38414   (exit $ac_status); } &&
38415          { ac_try='test -s conftest.$ac_objext'
38416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38417   (eval $ac_try) 2>&5
38418   ac_status=$?
38419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38420   (exit $ac_status); }; }; then
38421   ac_cv_have_decl_strsignal=yes
38422 else
38423   echo "$as_me: failed program was:" >&5
38424 sed 's/^/| /' conftest.$ac_ext >&5
38425
38426 ac_cv_have_decl_strsignal=no
38427 fi
38428 rm -f conftest.$ac_objext conftest.$ac_ext
38429 fi
38430 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
38431 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
38432 if test $ac_cv_have_decl_strsignal = yes; then
38433
38434 cat >>confdefs.h <<_ACEOF
38435 #define HAVE_DECL_STRSIGNAL 1
38436 _ACEOF
38437
38438
38439 else
38440   cat >>confdefs.h <<_ACEOF
38441 #define HAVE_DECL_STRSIGNAL 0
38442 _ACEOF
38443
38444
38445 fi
38446 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
38447 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
38448 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
38449   echo $ECHO_N "(cached) $ECHO_C" >&6
38450 else
38451   cat >conftest.$ac_ext <<_ACEOF
38452 #line $LINENO "configure"
38453 /* confdefs.h.  */
38454 _ACEOF
38455 cat confdefs.h >>conftest.$ac_ext
38456 cat >>conftest.$ac_ext <<_ACEOF
38457 /* end confdefs.h.  */
38458 $ac_includes_default
38459 int
38460 main ()
38461 {
38462 #ifndef strtoimax
38463   char *p = (char *) strtoimax;
38464 #endif
38465
38466   ;
38467   return 0;
38468 }
38469 _ACEOF
38470 rm -f conftest.$ac_objext
38471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38472   (eval $ac_compile) 2>&5
38473   ac_status=$?
38474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38475   (exit $ac_status); } &&
38476          { ac_try='test -s conftest.$ac_objext'
38477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38478   (eval $ac_try) 2>&5
38479   ac_status=$?
38480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38481   (exit $ac_status); }; }; then
38482   ac_cv_have_decl_strtoimax=yes
38483 else
38484   echo "$as_me: failed program was:" >&5
38485 sed 's/^/| /' conftest.$ac_ext >&5
38486
38487 ac_cv_have_decl_strtoimax=no
38488 fi
38489 rm -f conftest.$ac_objext conftest.$ac_ext
38490 fi
38491 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
38492 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
38493 if test $ac_cv_have_decl_strtoimax = yes; then
38494
38495 cat >>confdefs.h <<_ACEOF
38496 #define HAVE_DECL_STRTOIMAX 1
38497 _ACEOF
38498
38499
38500 else
38501   cat >>confdefs.h <<_ACEOF
38502 #define HAVE_DECL_STRTOIMAX 0
38503 _ACEOF
38504
38505
38506 fi
38507 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
38508 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
38509 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
38510   echo $ECHO_N "(cached) $ECHO_C" >&6
38511 else
38512   cat >conftest.$ac_ext <<_ACEOF
38513 #line $LINENO "configure"
38514 /* confdefs.h.  */
38515 _ACEOF
38516 cat confdefs.h >>conftest.$ac_ext
38517 cat >>conftest.$ac_ext <<_ACEOF
38518 /* end confdefs.h.  */
38519 $ac_includes_default
38520 int
38521 main ()
38522 {
38523 #ifndef sys_siglist
38524   char *p = (char *) sys_siglist;
38525 #endif
38526
38527   ;
38528   return 0;
38529 }
38530 _ACEOF
38531 rm -f conftest.$ac_objext
38532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38533   (eval $ac_compile) 2>&5
38534   ac_status=$?
38535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38536   (exit $ac_status); } &&
38537          { ac_try='test -s conftest.$ac_objext'
38538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38539   (eval $ac_try) 2>&5
38540   ac_status=$?
38541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38542   (exit $ac_status); }; }; then
38543   ac_cv_have_decl_sys_siglist=yes
38544 else
38545   echo "$as_me: failed program was:" >&5
38546 sed 's/^/| /' conftest.$ac_ext >&5
38547
38548 ac_cv_have_decl_sys_siglist=no
38549 fi
38550 rm -f conftest.$ac_objext conftest.$ac_ext
38551 fi
38552 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
38553 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
38554 if test $ac_cv_have_decl_sys_siglist = yes; then
38555
38556 cat >>confdefs.h <<_ACEOF
38557 #define HAVE_DECL_SYS_SIGLIST 1
38558 _ACEOF
38559
38560
38561 else
38562   cat >>confdefs.h <<_ACEOF
38563 #define HAVE_DECL_SYS_SIGLIST 0
38564 _ACEOF
38565
38566
38567 fi
38568 echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
38569 echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6
38570 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
38571   echo $ECHO_N "(cached) $ECHO_C" >&6
38572 else
38573   cat >conftest.$ac_ext <<_ACEOF
38574 #line $LINENO "configure"
38575 /* confdefs.h.  */
38576 _ACEOF
38577 cat confdefs.h >>conftest.$ac_ext
38578 cat >>conftest.$ac_ext <<_ACEOF
38579 /* end confdefs.h.  */
38580 $ac_includes_default
38581 int
38582 main ()
38583 {
38584 #ifndef _sys_siglist
38585   char *p = (char *) _sys_siglist;
38586 #endif
38587
38588   ;
38589   return 0;
38590 }
38591 _ACEOF
38592 rm -f conftest.$ac_objext
38593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38594   (eval $ac_compile) 2>&5
38595   ac_status=$?
38596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38597   (exit $ac_status); } &&
38598          { ac_try='test -s conftest.$ac_objext'
38599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38600   (eval $ac_try) 2>&5
38601   ac_status=$?
38602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38603   (exit $ac_status); }; }; then
38604   ac_cv_have_decl__sys_siglist=yes
38605 else
38606   echo "$as_me: failed program was:" >&5
38607 sed 's/^/| /' conftest.$ac_ext >&5
38608
38609 ac_cv_have_decl__sys_siglist=no
38610 fi
38611 rm -f conftest.$ac_objext conftest.$ac_ext
38612 fi
38613 echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
38614 echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6
38615 if test $ac_cv_have_decl__sys_siglist = yes; then
38616
38617 cat >>confdefs.h <<_ACEOF
38618 #define HAVE_DECL__SYS_SIGLIST 1
38619 _ACEOF
38620
38621
38622 else
38623   cat >>confdefs.h <<_ACEOF
38624 #define HAVE_DECL__SYS_SIGLIST 0
38625 _ACEOF
38626
38627
38628 fi
38629
38630
38631
38632
38633
38634   # Check for libypsec.a on Dolphin M88K machines.
38635
38636 echo "$as_me:$LINENO: checking for main in -lypsec" >&5
38637 echo $ECHO_N "checking for main in -lypsec... $ECHO_C" >&6
38638 if test "${ac_cv_lib_ypsec_main+set}" = set; then
38639   echo $ECHO_N "(cached) $ECHO_C" >&6
38640 else
38641   ac_check_lib_save_LIBS=$LIBS
38642 LIBS="-lypsec  $LIBS"
38643 cat >conftest.$ac_ext <<_ACEOF
38644 #line $LINENO "configure"
38645 /* confdefs.h.  */
38646 _ACEOF
38647 cat confdefs.h >>conftest.$ac_ext
38648 cat >>conftest.$ac_ext <<_ACEOF
38649 /* end confdefs.h.  */
38650
38651
38652 int
38653 main ()
38654 {
38655 main ();
38656   ;
38657   return 0;
38658 }
38659 _ACEOF
38660 rm -f conftest.$ac_objext conftest$ac_exeext
38661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38662   (eval $ac_link) 2>&5
38663   ac_status=$?
38664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38665   (exit $ac_status); } &&
38666          { ac_try='test -s conftest$ac_exeext'
38667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38668   (eval $ac_try) 2>&5
38669   ac_status=$?
38670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38671   (exit $ac_status); }; }; then
38672   ac_cv_lib_ypsec_main=yes
38673 else
38674   echo "$as_me: failed program was:" >&5
38675 sed 's/^/| /' conftest.$ac_ext >&5
38676
38677 ac_cv_lib_ypsec_main=no
38678 fi
38679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38680 LIBS=$ac_check_lib_save_LIBS
38681 fi
38682 echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
38683 echo "${ECHO_T}$ac_cv_lib_ypsec_main" >&6
38684 if test $ac_cv_lib_ypsec_main = yes; then
38685   cat >>confdefs.h <<_ACEOF
38686 #define HAVE_LIBYPSEC 1
38687 _ACEOF
38688
38689   LIBS="-lypsec $LIBS"
38690
38691 fi
38692
38693
38694   # m88k running dgux 5.4 needs this
38695
38696 echo "$as_me:$LINENO: checking for main in -lldgc" >&5
38697 echo $ECHO_N "checking for main in -lldgc... $ECHO_C" >&6
38698 if test "${ac_cv_lib_ldgc_main+set}" = set; then
38699   echo $ECHO_N "(cached) $ECHO_C" >&6
38700 else
38701   ac_check_lib_save_LIBS=$LIBS
38702 LIBS="-lldgc  $LIBS"
38703 cat >conftest.$ac_ext <<_ACEOF
38704 #line $LINENO "configure"
38705 /* confdefs.h.  */
38706 _ACEOF
38707 cat confdefs.h >>conftest.$ac_ext
38708 cat >>conftest.$ac_ext <<_ACEOF
38709 /* end confdefs.h.  */
38710
38711
38712 int
38713 main ()
38714 {
38715 main ();
38716   ;
38717   return 0;
38718 }
38719 _ACEOF
38720 rm -f conftest.$ac_objext conftest$ac_exeext
38721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38722   (eval $ac_link) 2>&5
38723   ac_status=$?
38724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38725   (exit $ac_status); } &&
38726          { ac_try='test -s conftest$ac_exeext'
38727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38728   (eval $ac_try) 2>&5
38729   ac_status=$?
38730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38731   (exit $ac_status); }; }; then
38732   ac_cv_lib_ldgc_main=yes
38733 else
38734   echo "$as_me: failed program was:" >&5
38735 sed 's/^/| /' conftest.$ac_ext >&5
38736
38737 ac_cv_lib_ldgc_main=no
38738 fi
38739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38740 LIBS=$ac_check_lib_save_LIBS
38741 fi
38742 echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
38743 echo "${ECHO_T}$ac_cv_lib_ldgc_main" >&6
38744 if test $ac_cv_lib_ldgc_main = yes; then
38745   cat >>confdefs.h <<_ACEOF
38746 #define HAVE_LIBLDGC 1
38747 _ACEOF
38748
38749   LIBS="-lldgc $LIBS"
38750
38751 fi
38752
38753
38754   # Some programs need to link with -lm.  printf does if it uses
38755   # lib/strtod.c which uses pow.  And seq uses the math functions,
38756   # floor, modf, rint.  And factor uses sqrt.  And sleep uses fesetround.
38757
38758   # Save a copy of $LIBS and add $FLOOR_LIBM before these tests
38759   # Check for these math functions used by seq.
38760   ac_su_saved_lib="$LIBS"
38761   LIBS="$LIBS -lm"
38762
38763
38764
38765 for ac_func in floor modf rint
38766 do
38767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38768 echo "$as_me:$LINENO: checking for $ac_func" >&5
38769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38770 if eval "test \"\${$as_ac_var+set}\" = set"; then
38771   echo $ECHO_N "(cached) $ECHO_C" >&6
38772 else
38773   cat >conftest.$ac_ext <<_ACEOF
38774 #line $LINENO "configure"
38775 /* confdefs.h.  */
38776 _ACEOF
38777 cat confdefs.h >>conftest.$ac_ext
38778 cat >>conftest.$ac_ext <<_ACEOF
38779 /* end confdefs.h.  */
38780 /* System header to define __stub macros and hopefully few prototypes,
38781     which can conflict with char $ac_func (); below.
38782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38783     <limits.h> exists even on freestanding compilers.  */
38784 #ifdef __STDC__
38785 # include <limits.h>
38786 #else
38787 # include <assert.h>
38788 #endif
38789 /* Override any gcc2 internal prototype to avoid an error.  */
38790 #ifdef __cplusplus
38791 extern "C"
38792 {
38793 #endif
38794 /* We use char because int might match the return type of a gcc2
38795    builtin and then its argument prototype would still apply.  */
38796 char $ac_func ();
38797 /* The GNU C library defines this for functions which it implements
38798     to always fail with ENOSYS.  Some functions are actually named
38799     something starting with __ and the normal name is an alias.  */
38800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38801 choke me
38802 #else
38803 char (*f) () = $ac_func;
38804 #endif
38805 #ifdef __cplusplus
38806 }
38807 #endif
38808
38809 int
38810 main ()
38811 {
38812 return f != $ac_func;
38813   ;
38814   return 0;
38815 }
38816 _ACEOF
38817 rm -f conftest.$ac_objext conftest$ac_exeext
38818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38819   (eval $ac_link) 2>&5
38820   ac_status=$?
38821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38822   (exit $ac_status); } &&
38823          { ac_try='test -s conftest$ac_exeext'
38824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38825   (eval $ac_try) 2>&5
38826   ac_status=$?
38827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38828   (exit $ac_status); }; }; then
38829   eval "$as_ac_var=yes"
38830 else
38831   echo "$as_me: failed program was:" >&5
38832 sed 's/^/| /' conftest.$ac_ext >&5
38833
38834 eval "$as_ac_var=no"
38835 fi
38836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38837 fi
38838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38839 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38840 if test `eval echo '${'$as_ac_var'}'` = yes; then
38841   cat >>confdefs.h <<_ACEOF
38842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38843 _ACEOF
38844
38845 fi
38846 done
38847
38848   LIBS="$ac_su_saved_lib"
38849
38850
38851
38852 for ac_func in sqrt
38853 do
38854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38855 echo "$as_me:$LINENO: checking for $ac_func" >&5
38856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38857 if eval "test \"\${$as_ac_var+set}\" = set"; then
38858   echo $ECHO_N "(cached) $ECHO_C" >&6
38859 else
38860   cat >conftest.$ac_ext <<_ACEOF
38861 #line $LINENO "configure"
38862 /* confdefs.h.  */
38863 _ACEOF
38864 cat confdefs.h >>conftest.$ac_ext
38865 cat >>conftest.$ac_ext <<_ACEOF
38866 /* end confdefs.h.  */
38867 /* System header to define __stub macros and hopefully few prototypes,
38868     which can conflict with char $ac_func (); below.
38869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38870     <limits.h> exists even on freestanding compilers.  */
38871 #ifdef __STDC__
38872 # include <limits.h>
38873 #else
38874 # include <assert.h>
38875 #endif
38876 /* Override any gcc2 internal prototype to avoid an error.  */
38877 #ifdef __cplusplus
38878 extern "C"
38879 {
38880 #endif
38881 /* We use char because int might match the return type of a gcc2
38882    builtin and then its argument prototype would still apply.  */
38883 char $ac_func ();
38884 /* The GNU C library defines this for functions which it implements
38885     to always fail with ENOSYS.  Some functions are actually named
38886     something starting with __ and the normal name is an alias.  */
38887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38888 choke me
38889 #else
38890 char (*f) () = $ac_func;
38891 #endif
38892 #ifdef __cplusplus
38893 }
38894 #endif
38895
38896 int
38897 main ()
38898 {
38899 return f != $ac_func;
38900   ;
38901   return 0;
38902 }
38903 _ACEOF
38904 rm -f conftest.$ac_objext conftest$ac_exeext
38905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38906   (eval $ac_link) 2>&5
38907   ac_status=$?
38908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38909   (exit $ac_status); } &&
38910          { ac_try='test -s conftest$ac_exeext'
38911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38912   (eval $ac_try) 2>&5
38913   ac_status=$?
38914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38915   (exit $ac_status); }; }; then
38916   eval "$as_ac_var=yes"
38917 else
38918   echo "$as_me: failed program was:" >&5
38919 sed 's/^/| /' conftest.$ac_ext >&5
38920
38921 eval "$as_ac_var=no"
38922 fi
38923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38924 fi
38925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38927 if test `eval echo '${'$as_ac_var'}'` = yes; then
38928   cat >>confdefs.h <<_ACEOF
38929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38930 _ACEOF
38931
38932 fi
38933 done
38934
38935   if test $ac_cv_func_sqrt = no; then
38936     echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
38937 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
38938 if test "${ac_cv_lib_m_sqrt+set}" = set; then
38939   echo $ECHO_N "(cached) $ECHO_C" >&6
38940 else
38941   ac_check_lib_save_LIBS=$LIBS
38942 LIBS="-lm  $LIBS"
38943 cat >conftest.$ac_ext <<_ACEOF
38944 #line $LINENO "configure"
38945 /* confdefs.h.  */
38946 _ACEOF
38947 cat confdefs.h >>conftest.$ac_ext
38948 cat >>conftest.$ac_ext <<_ACEOF
38949 /* end confdefs.h.  */
38950
38951 /* Override any gcc2 internal prototype to avoid an error.  */
38952 #ifdef __cplusplus
38953 extern "C"
38954 #endif
38955 /* We use char because int might match the return type of a gcc2
38956    builtin and then its argument prototype would still apply.  */
38957 char sqrt ();
38958 int
38959 main ()
38960 {
38961 sqrt ();
38962   ;
38963   return 0;
38964 }
38965 _ACEOF
38966 rm -f conftest.$ac_objext conftest$ac_exeext
38967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38968   (eval $ac_link) 2>&5
38969   ac_status=$?
38970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38971   (exit $ac_status); } &&
38972          { ac_try='test -s conftest$ac_exeext'
38973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38974   (eval $ac_try) 2>&5
38975   ac_status=$?
38976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38977   (exit $ac_status); }; }; then
38978   ac_cv_lib_m_sqrt=yes
38979 else
38980   echo "$as_me: failed program was:" >&5
38981 sed 's/^/| /' conftest.$ac_ext >&5
38982
38983 ac_cv_lib_m_sqrt=no
38984 fi
38985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38986 LIBS=$ac_check_lib_save_LIBS
38987 fi
38988 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
38989 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
38990 if test $ac_cv_lib_m_sqrt = yes; then
38991   SQRT_LIBM=-lm
38992 fi
38993
38994   fi
38995
38996
38997
38998 for ac_func in fesetround
38999 do
39000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39001 echo "$as_me:$LINENO: checking for $ac_func" >&5
39002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39003 if eval "test \"\${$as_ac_var+set}\" = set"; then
39004   echo $ECHO_N "(cached) $ECHO_C" >&6
39005 else
39006   cat >conftest.$ac_ext <<_ACEOF
39007 #line $LINENO "configure"
39008 /* confdefs.h.  */
39009 _ACEOF
39010 cat confdefs.h >>conftest.$ac_ext
39011 cat >>conftest.$ac_ext <<_ACEOF
39012 /* end confdefs.h.  */
39013 /* System header to define __stub macros and hopefully few prototypes,
39014     which can conflict with char $ac_func (); below.
39015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39016     <limits.h> exists even on freestanding compilers.  */
39017 #ifdef __STDC__
39018 # include <limits.h>
39019 #else
39020 # include <assert.h>
39021 #endif
39022 /* Override any gcc2 internal prototype to avoid an error.  */
39023 #ifdef __cplusplus
39024 extern "C"
39025 {
39026 #endif
39027 /* We use char because int might match the return type of a gcc2
39028    builtin and then its argument prototype would still apply.  */
39029 char $ac_func ();
39030 /* The GNU C library defines this for functions which it implements
39031     to always fail with ENOSYS.  Some functions are actually named
39032     something starting with __ and the normal name is an alias.  */
39033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39034 choke me
39035 #else
39036 char (*f) () = $ac_func;
39037 #endif
39038 #ifdef __cplusplus
39039 }
39040 #endif
39041
39042 int
39043 main ()
39044 {
39045 return f != $ac_func;
39046   ;
39047   return 0;
39048 }
39049 _ACEOF
39050 rm -f conftest.$ac_objext conftest$ac_exeext
39051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39052   (eval $ac_link) 2>&5
39053   ac_status=$?
39054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39055   (exit $ac_status); } &&
39056          { ac_try='test -s conftest$ac_exeext'
39057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39058   (eval $ac_try) 2>&5
39059   ac_status=$?
39060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39061   (exit $ac_status); }; }; then
39062   eval "$as_ac_var=yes"
39063 else
39064   echo "$as_me: failed program was:" >&5
39065 sed 's/^/| /' conftest.$ac_ext >&5
39066
39067 eval "$as_ac_var=no"
39068 fi
39069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39070 fi
39071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39073 if test `eval echo '${'$as_ac_var'}'` = yes; then
39074   cat >>confdefs.h <<_ACEOF
39075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39076 _ACEOF
39077
39078 fi
39079 done
39080
39081   if test $ac_cv_func_fesetround = no; then
39082     echo "$as_me:$LINENO: checking for fesetround in -lm" >&5
39083 echo $ECHO_N "checking for fesetround in -lm... $ECHO_C" >&6
39084 if test "${ac_cv_lib_m_fesetround+set}" = set; then
39085   echo $ECHO_N "(cached) $ECHO_C" >&6
39086 else
39087   ac_check_lib_save_LIBS=$LIBS
39088 LIBS="-lm  $LIBS"
39089 cat >conftest.$ac_ext <<_ACEOF
39090 #line $LINENO "configure"
39091 /* confdefs.h.  */
39092 _ACEOF
39093 cat confdefs.h >>conftest.$ac_ext
39094 cat >>conftest.$ac_ext <<_ACEOF
39095 /* end confdefs.h.  */
39096
39097 /* Override any gcc2 internal prototype to avoid an error.  */
39098 #ifdef __cplusplus
39099 extern "C"
39100 #endif
39101 /* We use char because int might match the return type of a gcc2
39102    builtin and then its argument prototype would still apply.  */
39103 char fesetround ();
39104 int
39105 main ()
39106 {
39107 fesetround ();
39108   ;
39109   return 0;
39110 }
39111 _ACEOF
39112 rm -f conftest.$ac_objext conftest$ac_exeext
39113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39114   (eval $ac_link) 2>&5
39115   ac_status=$?
39116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39117   (exit $ac_status); } &&
39118          { ac_try='test -s conftest$ac_exeext'
39119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39120   (eval $ac_try) 2>&5
39121   ac_status=$?
39122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39123   (exit $ac_status); }; }; then
39124   ac_cv_lib_m_fesetround=yes
39125 else
39126   echo "$as_me: failed program was:" >&5
39127 sed 's/^/| /' conftest.$ac_ext >&5
39128
39129 ac_cv_lib_m_fesetround=no
39130 fi
39131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39132 LIBS=$ac_check_lib_save_LIBS
39133 fi
39134 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fesetround" >&5
39135 echo "${ECHO_T}$ac_cv_lib_m_fesetround" >&6
39136 if test $ac_cv_lib_m_fesetround = yes; then
39137   FESETROUND_LIBM=-lm
39138 fi
39139
39140   fi
39141
39142   # The -lsun library is required for YP support on Irix-4.0.5 systems.
39143   # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
39144
39145   echo "$as_me:$LINENO: checking for library containing yp_match" >&5
39146 echo $ECHO_N "checking for library containing yp_match... $ECHO_C" >&6
39147 if test "${ac_cv_search_yp_match+set}" = set; then
39148   echo $ECHO_N "(cached) $ECHO_C" >&6
39149 else
39150
39151     ac_func_search_save_LIBS=$LIBS
39152     ac_cv_search_yp_match=no
39153     cat >conftest.$ac_ext <<_ACEOF
39154 #line $LINENO "configure"
39155 /* confdefs.h.  */
39156 _ACEOF
39157 cat confdefs.h >>conftest.$ac_ext
39158 cat >>conftest.$ac_ext <<_ACEOF
39159 /* end confdefs.h.  */
39160
39161 /* Override any gcc2 internal prototype to avoid an error.  */
39162 #ifdef __cplusplus
39163 extern "C"
39164 #endif
39165 /* We use char because int might match the return type of a gcc2
39166    builtin and then its argument prototype would still apply.  */
39167 char yp_match ();
39168 int
39169 main ()
39170 {
39171 yp_match ();
39172   ;
39173   return 0;
39174 }
39175 _ACEOF
39176 rm -f conftest.$ac_objext conftest$ac_exeext
39177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39178   (eval $ac_link) 2>&5
39179   ac_status=$?
39180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39181   (exit $ac_status); } &&
39182          { ac_try='test -s conftest$ac_exeext'
39183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39184   (eval $ac_try) 2>&5
39185   ac_status=$?
39186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39187   (exit $ac_status); }; }; then
39188   ac_cv_search_yp_match='none required'
39189 else
39190   echo "$as_me: failed program was:" >&5
39191 sed 's/^/| /' conftest.$ac_ext >&5
39192
39193 fi
39194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39195     if test "$ac_cv_search_yp_match" = no; then
39196       for ac_lib in sun ypsec; do
39197         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
39198         cat >conftest.$ac_ext <<_ACEOF
39199 #line $LINENO "configure"
39200 /* confdefs.h.  */
39201 _ACEOF
39202 cat confdefs.h >>conftest.$ac_ext
39203 cat >>conftest.$ac_ext <<_ACEOF
39204 /* end confdefs.h.  */
39205
39206 /* Override any gcc2 internal prototype to avoid an error.  */
39207 #ifdef __cplusplus
39208 extern "C"
39209 #endif
39210 /* We use char because int might match the return type of a gcc2
39211    builtin and then its argument prototype would still apply.  */
39212 char yp_match ();
39213 int
39214 main ()
39215 {
39216 yp_match ();
39217   ;
39218   return 0;
39219 }
39220 _ACEOF
39221 rm -f conftest.$ac_objext conftest$ac_exeext
39222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39223   (eval $ac_link) 2>&5
39224   ac_status=$?
39225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39226   (exit $ac_status); } &&
39227          { ac_try='test -s conftest$ac_exeext'
39228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39229   (eval $ac_try) 2>&5
39230   ac_status=$?
39231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39232   (exit $ac_status); }; }; then
39233   ac_cv_search_yp_match="-l$ac_lib"; break
39234 else
39235   echo "$as_me: failed program was:" >&5
39236 sed 's/^/| /' conftest.$ac_ext >&5
39237
39238 fi
39239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39240       done
39241     fi
39242     LIBS=$ac_func_search_save_LIBS
39243
39244 fi
39245 echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
39246 echo "${ECHO_T}$ac_cv_search_yp_match" >&6
39247
39248   if test "$ac_cv_search_yp_match" = no; then :
39249
39250   else
39251     if test "$ac_cv_search_yp_match" = 'none required'; then :
39252
39253     else
39254       LIBS="$ac_cv_search_yp_match $LIBS"
39255
39256     fi
39257   fi
39258
39259
39260   # SysV needs -lsec, older versions of Linux need -lshadow for
39261   # shadow passwords.  UnixWare 7 needs -lgen.
39262
39263   echo "$as_me:$LINENO: checking for library containing getspnam" >&5
39264 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
39265 if test "${ac_cv_search_getspnam+set}" = set; then
39266   echo $ECHO_N "(cached) $ECHO_C" >&6
39267 else
39268
39269     ac_func_search_save_LIBS=$LIBS
39270     ac_cv_search_getspnam=no
39271     cat >conftest.$ac_ext <<_ACEOF
39272 #line $LINENO "configure"
39273 /* confdefs.h.  */
39274 _ACEOF
39275 cat confdefs.h >>conftest.$ac_ext
39276 cat >>conftest.$ac_ext <<_ACEOF
39277 /* end confdefs.h.  */
39278
39279 /* Override any gcc2 internal prototype to avoid an error.  */
39280 #ifdef __cplusplus
39281 extern "C"
39282 #endif
39283 /* We use char because int might match the return type of a gcc2
39284    builtin and then its argument prototype would still apply.  */
39285 char getspnam ();
39286 int
39287 main ()
39288 {
39289 getspnam ();
39290   ;
39291   return 0;
39292 }
39293 _ACEOF
39294 rm -f conftest.$ac_objext conftest$ac_exeext
39295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39296   (eval $ac_link) 2>&5
39297   ac_status=$?
39298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39299   (exit $ac_status); } &&
39300          { ac_try='test -s conftest$ac_exeext'
39301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39302   (eval $ac_try) 2>&5
39303   ac_status=$?
39304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39305   (exit $ac_status); }; }; then
39306   ac_cv_search_getspnam='none required'
39307 else
39308   echo "$as_me: failed program was:" >&5
39309 sed 's/^/| /' conftest.$ac_ext >&5
39310
39311 fi
39312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39313     if test "$ac_cv_search_getspnam" = no; then
39314       for ac_lib in shadow sec gen; do
39315         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
39316         cat >conftest.$ac_ext <<_ACEOF
39317 #line $LINENO "configure"
39318 /* confdefs.h.  */
39319 _ACEOF
39320 cat confdefs.h >>conftest.$ac_ext
39321 cat >>conftest.$ac_ext <<_ACEOF
39322 /* end confdefs.h.  */
39323
39324 /* Override any gcc2 internal prototype to avoid an error.  */
39325 #ifdef __cplusplus
39326 extern "C"
39327 #endif
39328 /* We use char because int might match the return type of a gcc2
39329    builtin and then its argument prototype would still apply.  */
39330 char getspnam ();
39331 int
39332 main ()
39333 {
39334 getspnam ();
39335   ;
39336   return 0;
39337 }
39338 _ACEOF
39339 rm -f conftest.$ac_objext conftest$ac_exeext
39340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39341   (eval $ac_link) 2>&5
39342   ac_status=$?
39343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39344   (exit $ac_status); } &&
39345          { ac_try='test -s conftest$ac_exeext'
39346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39347   (eval $ac_try) 2>&5
39348   ac_status=$?
39349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39350   (exit $ac_status); }; }; then
39351   ac_cv_search_getspnam="-l$ac_lib"; break
39352 else
39353   echo "$as_me: failed program was:" >&5
39354 sed 's/^/| /' conftest.$ac_ext >&5
39355
39356 fi
39357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39358       done
39359     fi
39360     LIBS=$ac_func_search_save_LIBS
39361
39362 fi
39363 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
39364 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
39365
39366   if test "$ac_cv_search_getspnam" = no; then :
39367
39368   else
39369     if test "$ac_cv_search_getspnam" = 'none required'; then :
39370
39371     else
39372       LIBS="$ac_cv_search_getspnam $LIBS"
39373
39374     fi
39375   fi
39376
39377
39378
39379 for ac_header in shadow.h
39380 do
39381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39383   echo "$as_me:$LINENO: checking for $ac_header" >&5
39384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39386   echo $ECHO_N "(cached) $ECHO_C" >&6
39387 fi
39388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39390 else
39391   # Is the header compilable?
39392 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39394 cat >conftest.$ac_ext <<_ACEOF
39395 #line $LINENO "configure"
39396 /* confdefs.h.  */
39397 _ACEOF
39398 cat confdefs.h >>conftest.$ac_ext
39399 cat >>conftest.$ac_ext <<_ACEOF
39400 /* end confdefs.h.  */
39401 $ac_includes_default
39402 #include <$ac_header>
39403 _ACEOF
39404 rm -f conftest.$ac_objext
39405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39406   (eval $ac_compile) 2>&5
39407   ac_status=$?
39408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39409   (exit $ac_status); } &&
39410          { ac_try='test -s conftest.$ac_objext'
39411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39412   (eval $ac_try) 2>&5
39413   ac_status=$?
39414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39415   (exit $ac_status); }; }; then
39416   ac_header_compiler=yes
39417 else
39418   echo "$as_me: failed program was:" >&5
39419 sed 's/^/| /' conftest.$ac_ext >&5
39420
39421 ac_header_compiler=no
39422 fi
39423 rm -f conftest.$ac_objext conftest.$ac_ext
39424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39425 echo "${ECHO_T}$ac_header_compiler" >&6
39426
39427 # Is the header present?
39428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39430 cat >conftest.$ac_ext <<_ACEOF
39431 #line $LINENO "configure"
39432 /* confdefs.h.  */
39433 _ACEOF
39434 cat confdefs.h >>conftest.$ac_ext
39435 cat >>conftest.$ac_ext <<_ACEOF
39436 /* end confdefs.h.  */
39437 #include <$ac_header>
39438 _ACEOF
39439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39440   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39441   ac_status=$?
39442   grep -v '^ *+' conftest.er1 >conftest.err
39443   rm -f conftest.er1
39444   cat conftest.err >&5
39445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39446   (exit $ac_status); } >/dev/null; then
39447   if test -s conftest.err; then
39448     ac_cpp_err=$ac_c_preproc_warn_flag
39449   else
39450     ac_cpp_err=
39451   fi
39452 else
39453   ac_cpp_err=yes
39454 fi
39455 if test -z "$ac_cpp_err"; then
39456   ac_header_preproc=yes
39457 else
39458   echo "$as_me: failed program was:" >&5
39459 sed 's/^/| /' conftest.$ac_ext >&5
39460
39461   ac_header_preproc=no
39462 fi
39463 rm -f conftest.err conftest.$ac_ext
39464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39465 echo "${ECHO_T}$ac_header_preproc" >&6
39466
39467 # So?  What about this header?
39468 case $ac_header_compiler:$ac_header_preproc in
39469   yes:no )
39470     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39472     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39474     (
39475       cat <<\_ASBOX
39476 ## ------------------------------------ ##
39477 ## Report this to bug-autoconf@gnu.org. ##
39478 ## ------------------------------------ ##
39479 _ASBOX
39480     ) |
39481       sed "s/^/$as_me: WARNING:     /" >&2
39482     ;;
39483   no:yes )
39484     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39486     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39488     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39490     (
39491       cat <<\_ASBOX
39492 ## ------------------------------------ ##
39493 ## Report this to bug-autoconf@gnu.org. ##
39494 ## ------------------------------------ ##
39495 _ASBOX
39496     ) |
39497       sed "s/^/$as_me: WARNING:     /" >&2
39498     ;;
39499 esac
39500 echo "$as_me:$LINENO: checking for $ac_header" >&5
39501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39503   echo $ECHO_N "(cached) $ECHO_C" >&6
39504 else
39505   eval "$as_ac_Header=$ac_header_preproc"
39506 fi
39507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39509
39510 fi
39511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39512   cat >>confdefs.h <<_ACEOF
39513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39514 _ACEOF
39515
39516 fi
39517
39518 done
39519
39520
39521   # Requirements for su.c.
39522   shadow_includes="\
39523 $ac_includes_default
39524 #if HAVE_SHADOW_H
39525 # include <shadow.h>
39526 #endif
39527 "
39528   echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
39529 echo $ECHO_N "checking for struct spwd.sp_pwdp... $ECHO_C" >&6
39530 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
39531   echo $ECHO_N "(cached) $ECHO_C" >&6
39532 else
39533   cat >conftest.$ac_ext <<_ACEOF
39534 #line $LINENO "configure"
39535 /* confdefs.h.  */
39536 _ACEOF
39537 cat confdefs.h >>conftest.$ac_ext
39538 cat >>conftest.$ac_ext <<_ACEOF
39539 /* end confdefs.h.  */
39540 $shadow_includes
39541
39542 int
39543 main ()
39544 {
39545 static struct spwd ac_aggr;
39546 if (ac_aggr.sp_pwdp)
39547 return 0;
39548   ;
39549   return 0;
39550 }
39551 _ACEOF
39552 rm -f conftest.$ac_objext
39553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39554   (eval $ac_compile) 2>&5
39555   ac_status=$?
39556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39557   (exit $ac_status); } &&
39558          { ac_try='test -s conftest.$ac_objext'
39559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39560   (eval $ac_try) 2>&5
39561   ac_status=$?
39562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39563   (exit $ac_status); }; }; then
39564   ac_cv_member_struct_spwd_sp_pwdp=yes
39565 else
39566   echo "$as_me: failed program was:" >&5
39567 sed 's/^/| /' conftest.$ac_ext >&5
39568
39569 cat >conftest.$ac_ext <<_ACEOF
39570 #line $LINENO "configure"
39571 /* confdefs.h.  */
39572 _ACEOF
39573 cat confdefs.h >>conftest.$ac_ext
39574 cat >>conftest.$ac_ext <<_ACEOF
39575 /* end confdefs.h.  */
39576 $shadow_includes
39577
39578 int
39579 main ()
39580 {
39581 static struct spwd ac_aggr;
39582 if (sizeof ac_aggr.sp_pwdp)
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_spwd_sp_pwdp=yes
39601 else
39602   echo "$as_me: failed program was:" >&5
39603 sed 's/^/| /' conftest.$ac_ext >&5
39604
39605 ac_cv_member_struct_spwd_sp_pwdp=no
39606 fi
39607 rm -f conftest.$ac_objext conftest.$ac_ext
39608 fi
39609 rm -f conftest.$ac_objext conftest.$ac_ext
39610 fi
39611 echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
39612 echo "${ECHO_T}$ac_cv_member_struct_spwd_sp_pwdp" >&6
39613 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
39614
39615 cat >>confdefs.h <<_ACEOF
39616 #define HAVE_STRUCT_SPWD_SP_PWDP 1
39617 _ACEOF
39618
39619
39620 fi
39621
39622
39623 for ac_func in getspnam
39624 do
39625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39626 echo "$as_me:$LINENO: checking for $ac_func" >&5
39627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39628 if eval "test \"\${$as_ac_var+set}\" = set"; then
39629   echo $ECHO_N "(cached) $ECHO_C" >&6
39630 else
39631   cat >conftest.$ac_ext <<_ACEOF
39632 #line $LINENO "configure"
39633 /* confdefs.h.  */
39634 _ACEOF
39635 cat confdefs.h >>conftest.$ac_ext
39636 cat >>conftest.$ac_ext <<_ACEOF
39637 /* end confdefs.h.  */
39638 /* System header to define __stub macros and hopefully few prototypes,
39639     which can conflict with char $ac_func (); below.
39640     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39641     <limits.h> exists even on freestanding compilers.  */
39642 #ifdef __STDC__
39643 # include <limits.h>
39644 #else
39645 # include <assert.h>
39646 #endif
39647 /* Override any gcc2 internal prototype to avoid an error.  */
39648 #ifdef __cplusplus
39649 extern "C"
39650 {
39651 #endif
39652 /* We use char because int might match the return type of a gcc2
39653    builtin and then its argument prototype would still apply.  */
39654 char $ac_func ();
39655 /* The GNU C library defines this for functions which it implements
39656     to always fail with ENOSYS.  Some functions are actually named
39657     something starting with __ and the normal name is an alias.  */
39658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39659 choke me
39660 #else
39661 char (*f) () = $ac_func;
39662 #endif
39663 #ifdef __cplusplus
39664 }
39665 #endif
39666
39667 int
39668 main ()
39669 {
39670 return f != $ac_func;
39671   ;
39672   return 0;
39673 }
39674 _ACEOF
39675 rm -f conftest.$ac_objext conftest$ac_exeext
39676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39677   (eval $ac_link) 2>&5
39678   ac_status=$?
39679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39680   (exit $ac_status); } &&
39681          { ac_try='test -s conftest$ac_exeext'
39682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39683   (eval $ac_try) 2>&5
39684   ac_status=$?
39685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39686   (exit $ac_status); }; }; then
39687   eval "$as_ac_var=yes"
39688 else
39689   echo "$as_me: failed program was:" >&5
39690 sed 's/^/| /' conftest.$ac_ext >&5
39691
39692 eval "$as_ac_var=no"
39693 fi
39694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39695 fi
39696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39698 if test `eval echo '${'$as_ac_var'}'` = yes; then
39699   cat >>confdefs.h <<_ACEOF
39700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39701 _ACEOF
39702
39703 fi
39704 done
39705
39706
39707   # SCO-ODT-3.0 is reported to need -lufc for crypt.
39708   # NetBSD needs -lcrypt for crypt.
39709   ac_su_saved_lib="$LIBS"
39710
39711   echo "$as_me:$LINENO: checking for library containing crypt" >&5
39712 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
39713 if test "${ac_cv_search_crypt+set}" = set; then
39714   echo $ECHO_N "(cached) $ECHO_C" >&6
39715 else
39716
39717     ac_func_search_save_LIBS=$LIBS
39718     ac_cv_search_crypt=no
39719     cat >conftest.$ac_ext <<_ACEOF
39720 #line $LINENO "configure"
39721 /* confdefs.h.  */
39722 _ACEOF
39723 cat confdefs.h >>conftest.$ac_ext
39724 cat >>conftest.$ac_ext <<_ACEOF
39725 /* end confdefs.h.  */
39726
39727 /* Override any gcc2 internal prototype to avoid an error.  */
39728 #ifdef __cplusplus
39729 extern "C"
39730 #endif
39731 /* We use char because int might match the return type of a gcc2
39732    builtin and then its argument prototype would still apply.  */
39733 char crypt ();
39734 int
39735 main ()
39736 {
39737 crypt ();
39738   ;
39739   return 0;
39740 }
39741 _ACEOF
39742 rm -f conftest.$ac_objext conftest$ac_exeext
39743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39744   (eval $ac_link) 2>&5
39745   ac_status=$?
39746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39747   (exit $ac_status); } &&
39748          { ac_try='test -s conftest$ac_exeext'
39749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39750   (eval $ac_try) 2>&5
39751   ac_status=$?
39752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39753   (exit $ac_status); }; }; then
39754   ac_cv_search_crypt='none required'
39755 else
39756   echo "$as_me: failed program was:" >&5
39757 sed 's/^/| /' conftest.$ac_ext >&5
39758
39759 fi
39760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39761     if test "$ac_cv_search_crypt" = no; then
39762       for ac_lib in ufc crypt; do
39763         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
39764         cat >conftest.$ac_ext <<_ACEOF
39765 #line $LINENO "configure"
39766 /* confdefs.h.  */
39767 _ACEOF
39768 cat confdefs.h >>conftest.$ac_ext
39769 cat >>conftest.$ac_ext <<_ACEOF
39770 /* end confdefs.h.  */
39771
39772 /* Override any gcc2 internal prototype to avoid an error.  */
39773 #ifdef __cplusplus
39774 extern "C"
39775 #endif
39776 /* We use char because int might match the return type of a gcc2
39777    builtin and then its argument prototype would still apply.  */
39778 char crypt ();
39779 int
39780 main ()
39781 {
39782 crypt ();
39783   ;
39784   return 0;
39785 }
39786 _ACEOF
39787 rm -f conftest.$ac_objext conftest$ac_exeext
39788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39789   (eval $ac_link) 2>&5
39790   ac_status=$?
39791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39792   (exit $ac_status); } &&
39793          { ac_try='test -s conftest$ac_exeext'
39794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39795   (eval $ac_try) 2>&5
39796   ac_status=$?
39797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39798   (exit $ac_status); }; }; then
39799   ac_cv_search_crypt="-l$ac_lib"; break
39800 else
39801   echo "$as_me: failed program was:" >&5
39802 sed 's/^/| /' conftest.$ac_ext >&5
39803
39804 fi
39805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39806       done
39807     fi
39808     LIBS=$ac_func_search_save_LIBS
39809
39810 fi
39811 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
39812 echo "${ECHO_T}$ac_cv_search_crypt" >&6
39813
39814   if test "$ac_cv_search_crypt" = no; then :
39815
39816   else
39817     if test "$ac_cv_search_crypt" = 'none required'; then :
39818
39819     else
39820       LIBS="$ac_cv_search_crypt $LIBS"
39821       LIB_CRYPT="$ac_cv_search_crypt"
39822     fi
39823   fi
39824
39825   LIBS="$ac_su_saved_lib"
39826
39827
39828
39829
39830         MKINSTALLDIRS=
39831   if test -n "$ac_aux_dir"; then
39832     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
39833   fi
39834   if test -z "$MKINSTALLDIRS"; then
39835     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
39836   fi
39837
39838
39839
39840
39841
39842         # Extract the first word of "msgfmt", so it can be a program name with args.
39843 set dummy msgfmt; ac_word=$2
39844 echo "$as_me:$LINENO: checking for $ac_word" >&5
39845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39846 if test "${ac_cv_path_MSGFMT+set}" = set; then
39847   echo $ECHO_N "(cached) $ECHO_C" >&6
39848 else
39849   case "$MSGFMT" in
39850   /*)
39851   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
39852   ;;
39853   *)
39854   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
39855   for ac_dir in $PATH; do
39856     test -z "$ac_dir" && ac_dir=.
39857     if test -f $ac_dir/$ac_word; then
39858       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
39859      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
39860         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
39861         break
39862       fi
39863     fi
39864   done
39865   IFS="$ac_save_ifs"
39866   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
39867   ;;
39868 esac
39869 fi
39870 MSGFMT="$ac_cv_path_MSGFMT"
39871 if test "$MSGFMT" != ":"; then
39872   echo "$as_me:$LINENO: result: $MSGFMT" >&5
39873 echo "${ECHO_T}$MSGFMT" >&6
39874 else
39875   echo "$as_me:$LINENO: result: no" >&5
39876 echo "${ECHO_T}no" >&6
39877 fi
39878
39879   # Extract the first word of "gmsgfmt", so it can be a program name with args.
39880 set dummy gmsgfmt; ac_word=$2
39881 echo "$as_me:$LINENO: checking for $ac_word" >&5
39882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39883 if test "${ac_cv_path_GMSGFMT+set}" = set; then
39884   echo $ECHO_N "(cached) $ECHO_C" >&6
39885 else
39886   case $GMSGFMT in
39887   [\\/]* | ?:[\\/]*)
39888   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
39889   ;;
39890   *)
39891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39892 for as_dir in $PATH
39893 do
39894   IFS=$as_save_IFS
39895   test -z "$as_dir" && as_dir=.
39896   for ac_exec_ext in '' $ac_executable_extensions; do
39897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39898     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
39899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39900     break 2
39901   fi
39902 done
39903 done
39904
39905   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
39906   ;;
39907 esac
39908 fi
39909 GMSGFMT=$ac_cv_path_GMSGFMT
39910
39911 if test -n "$GMSGFMT"; then
39912   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
39913 echo "${ECHO_T}$GMSGFMT" >&6
39914 else
39915   echo "$as_me:$LINENO: result: no" >&5
39916 echo "${ECHO_T}no" >&6
39917 fi
39918
39919
39920         # Extract the first word of "xgettext", so it can be a program name with args.
39921 set dummy xgettext; ac_word=$2
39922 echo "$as_me:$LINENO: checking for $ac_word" >&5
39923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39924 if test "${ac_cv_path_XGETTEXT+set}" = set; then
39925   echo $ECHO_N "(cached) $ECHO_C" >&6
39926 else
39927   case "$XGETTEXT" in
39928   /*)
39929   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
39930   ;;
39931   *)
39932   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
39933   for ac_dir in $PATH; do
39934     test -z "$ac_dir" && ac_dir=.
39935     if test -f $ac_dir/$ac_word; then
39936       if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
39937      (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
39938         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
39939         break
39940       fi
39941     fi
39942   done
39943   IFS="$ac_save_ifs"
39944   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
39945   ;;
39946 esac
39947 fi
39948 XGETTEXT="$ac_cv_path_XGETTEXT"
39949 if test "$XGETTEXT" != ":"; then
39950   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
39951 echo "${ECHO_T}$XGETTEXT" >&6
39952 else
39953   echo "$as_me:$LINENO: result: no" >&5
39954 echo "${ECHO_T}no" >&6
39955 fi
39956
39957     rm -f messages.po
39958
39959     # Extract the first word of "msgmerge", so it can be a program name with args.
39960 set dummy msgmerge; ac_word=$2
39961 echo "$as_me:$LINENO: checking for $ac_word" >&5
39962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39963 if test "${ac_cv_path_MSGMERGE+set}" = set; then
39964   echo $ECHO_N "(cached) $ECHO_C" >&6
39965 else
39966   case "$MSGMERGE" in
39967   /*)
39968   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
39969   ;;
39970   *)
39971   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
39972   for ac_dir in $PATH; do
39973     test -z "$ac_dir" && ac_dir=.
39974     if test -f $ac_dir/$ac_word; then
39975       if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
39976         ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
39977         break
39978       fi
39979     fi
39980   done
39981   IFS="$ac_save_ifs"
39982   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
39983   ;;
39984 esac
39985 fi
39986 MSGMERGE="$ac_cv_path_MSGMERGE"
39987 if test "$MSGMERGE" != ":"; then
39988   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
39989 echo "${ECHO_T}$MSGMERGE" >&6
39990 else
39991   echo "$as_me:$LINENO: result: no" >&5
39992 echo "${ECHO_T}no" >&6
39993 fi
39994
39995
39996       if test "$GMSGFMT" != ":"; then
39997             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
39998        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
39999       : ;
40000     else
40001       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
40002       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
40003 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
40004       GMSGFMT=":"
40005     fi
40006   fi
40007
40008       if test "$XGETTEXT" != ":"; then
40009             if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
40010        (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
40011       : ;
40012     else
40013       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
40014 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
40015       XGETTEXT=":"
40016     fi
40017         rm -f messages.po
40018   fi
40019
40020             ac_config_commands="$ac_config_commands default-1"
40021
40022
40023
40024
40025
40026
40027
40028
40029
40030
40031
40032
40033
40034
40035
40036
40037
40038   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
40039 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
40040     # Check whether --enable-nls or --disable-nls was given.
40041 if test "${enable_nls+set}" = set; then
40042   enableval="$enable_nls"
40043   USE_NLS=$enableval
40044 else
40045   USE_NLS=yes
40046 fi;
40047   echo "$as_me:$LINENO: result: $USE_NLS" >&5
40048 echo "${ECHO_T}$USE_NLS" >&6
40049
40050
40051
40052   LIBINTL=
40053   LTLIBINTL=
40054   POSUB=
40055
40056     if test "$USE_NLS" = "yes"; then
40057     gt_use_preinstalled_gnugettext=no
40058
40059
40060
40061
40062
40063
40064         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
40065 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
40066 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
40067   echo $ECHO_N "(cached) $ECHO_C" >&6
40068 else
40069   cat >conftest.$ac_ext <<_ACEOF
40070 #line $LINENO "configure"
40071 /* confdefs.h.  */
40072 _ACEOF
40073 cat confdefs.h >>conftest.$ac_ext
40074 cat >>conftest.$ac_ext <<_ACEOF
40075 /* end confdefs.h.  */
40076 #include <libintl.h>
40077 extern int _nl_msg_cat_cntr;
40078 extern int *_nl_domain_bindings;
40079 int
40080 main ()
40081 {
40082 bindtextdomain ("", "");
40083 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
40084   ;
40085   return 0;
40086 }
40087 _ACEOF
40088 rm -f conftest.$ac_objext conftest$ac_exeext
40089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40090   (eval $ac_link) 2>&5
40091   ac_status=$?
40092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40093   (exit $ac_status); } &&
40094          { ac_try='test -s conftest$ac_exeext'
40095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40096   (eval $ac_try) 2>&5
40097   ac_status=$?
40098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40099   (exit $ac_status); }; }; then
40100   gt_cv_func_gnugettext2_libc=yes
40101 else
40102   echo "$as_me: failed program was:" >&5
40103 sed 's/^/| /' conftest.$ac_ext >&5
40104
40105 gt_cv_func_gnugettext2_libc=no
40106 fi
40107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40108 fi
40109 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
40110 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
40111
40112         if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
40113
40114
40115
40116
40117
40118           am_save_CPPFLAGS="$CPPFLAGS"
40119
40120   for element in $INCICONV; do
40121     haveit=
40122     for x in $CPPFLAGS; do
40123
40124   acl_save_prefix="$prefix"
40125   prefix="$acl_final_prefix"
40126   acl_save_exec_prefix="$exec_prefix"
40127   exec_prefix="$acl_final_exec_prefix"
40128   eval x=\"$x\"
40129   exec_prefix="$acl_save_exec_prefix"
40130   prefix="$acl_save_prefix"
40131
40132       if test "X$x" = "X$element"; then
40133         haveit=yes
40134         break
40135       fi
40136     done
40137     if test -z "$haveit"; then
40138       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
40139     fi
40140   done
40141
40142
40143   echo "$as_me:$LINENO: checking for iconv" >&5
40144 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
40145 if test "${am_cv_func_iconv+set}" = set; then
40146   echo $ECHO_N "(cached) $ECHO_C" >&6
40147 else
40148
40149     am_cv_func_iconv="no, consider installing GNU libiconv"
40150     am_cv_lib_iconv=no
40151     cat >conftest.$ac_ext <<_ACEOF
40152 #line $LINENO "configure"
40153 /* confdefs.h.  */
40154 _ACEOF
40155 cat confdefs.h >>conftest.$ac_ext
40156 cat >>conftest.$ac_ext <<_ACEOF
40157 /* end confdefs.h.  */
40158 #include <stdlib.h>
40159 #include <iconv.h>
40160 int
40161 main ()
40162 {
40163 iconv_t cd = iconv_open("","");
40164        iconv(cd,NULL,NULL,NULL,NULL);
40165        iconv_close(cd);
40166   ;
40167   return 0;
40168 }
40169 _ACEOF
40170 rm -f conftest.$ac_objext conftest$ac_exeext
40171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40172   (eval $ac_link) 2>&5
40173   ac_status=$?
40174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40175   (exit $ac_status); } &&
40176          { ac_try='test -s conftest$ac_exeext'
40177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40178   (eval $ac_try) 2>&5
40179   ac_status=$?
40180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40181   (exit $ac_status); }; }; then
40182   am_cv_func_iconv=yes
40183 else
40184   echo "$as_me: failed program was:" >&5
40185 sed 's/^/| /' conftest.$ac_ext >&5
40186
40187 fi
40188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40189     if test "$am_cv_func_iconv" != yes; then
40190       am_save_LIBS="$LIBS"
40191       LIBS="$LIBS $LIBICONV"
40192       cat >conftest.$ac_ext <<_ACEOF
40193 #line $LINENO "configure"
40194 /* confdefs.h.  */
40195 _ACEOF
40196 cat confdefs.h >>conftest.$ac_ext
40197 cat >>conftest.$ac_ext <<_ACEOF
40198 /* end confdefs.h.  */
40199 #include <stdlib.h>
40200 #include <iconv.h>
40201 int
40202 main ()
40203 {
40204 iconv_t cd = iconv_open("","");
40205          iconv(cd,NULL,NULL,NULL,NULL);
40206          iconv_close(cd);
40207   ;
40208   return 0;
40209 }
40210 _ACEOF
40211 rm -f conftest.$ac_objext conftest$ac_exeext
40212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40213   (eval $ac_link) 2>&5
40214   ac_status=$?
40215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40216   (exit $ac_status); } &&
40217          { ac_try='test -s conftest$ac_exeext'
40218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40219   (eval $ac_try) 2>&5
40220   ac_status=$?
40221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40222   (exit $ac_status); }; }; then
40223   am_cv_lib_iconv=yes
40224         am_cv_func_iconv=yes
40225 else
40226   echo "$as_me: failed program was:" >&5
40227 sed 's/^/| /' conftest.$ac_ext >&5
40228
40229 fi
40230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40231       LIBS="$am_save_LIBS"
40232     fi
40233
40234 fi
40235 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
40236 echo "${ECHO_T}$am_cv_func_iconv" >&6
40237   if test "$am_cv_func_iconv" = yes; then
40238
40239 cat >>confdefs.h <<\_ACEOF
40240 #define HAVE_ICONV 1
40241 _ACEOF
40242
40243   fi
40244   if test "$am_cv_lib_iconv" = yes; then
40245     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
40246 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
40247     echo "$as_me:$LINENO: result: $LIBICONV" >&5
40248 echo "${ECHO_T}$LIBICONV" >&6
40249   else
40250             CPPFLAGS="$am_save_CPPFLAGS"
40251     LIBICONV=
40252     LTLIBICONV=
40253   fi
40254
40255
40256
40257
40258
40259
40260     use_additional=yes
40261
40262   acl_save_prefix="$prefix"
40263   prefix="$acl_final_prefix"
40264   acl_save_exec_prefix="$exec_prefix"
40265   exec_prefix="$acl_final_exec_prefix"
40266
40267     eval additional_includedir=\"$includedir\"
40268     eval additional_libdir=\"$libdir\"
40269
40270   exec_prefix="$acl_save_exec_prefix"
40271   prefix="$acl_save_prefix"
40272
40273
40274 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
40275 if test "${with_libintl_prefix+set}" = set; then
40276   withval="$with_libintl_prefix"
40277
40278     if test "X$withval" = "Xno"; then
40279       use_additional=no
40280     else
40281       if test "X$withval" = "X"; then
40282
40283   acl_save_prefix="$prefix"
40284   prefix="$acl_final_prefix"
40285   acl_save_exec_prefix="$exec_prefix"
40286   exec_prefix="$acl_final_exec_prefix"
40287
40288           eval additional_includedir=\"$includedir\"
40289           eval additional_libdir=\"$libdir\"
40290
40291   exec_prefix="$acl_save_exec_prefix"
40292   prefix="$acl_save_prefix"
40293
40294       else
40295         additional_includedir="$withval/include"
40296         additional_libdir="$withval/lib"
40297       fi
40298     fi
40299
40300 fi;
40301       LIBINTL=
40302   LTLIBINTL=
40303   INCINTL=
40304   rpathdirs=
40305   ltrpathdirs=
40306   names_already_handled=
40307   names_next_round='intl '
40308   while test -n "$names_next_round"; do
40309     names_this_round="$names_next_round"
40310     names_next_round=
40311     for name in $names_this_round; do
40312       already_handled=
40313       for n in $names_already_handled; do
40314         if test "$n" = "$name"; then
40315           already_handled=yes
40316           break
40317         fi
40318       done
40319       if test -z "$already_handled"; then
40320         names_already_handled="$names_already_handled $name"
40321                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
40322         eval value=\"\$HAVE_LIB$uppername\"
40323         if test -n "$value"; then
40324           if test "$value" = yes; then
40325             eval value=\"\$LIB$uppername\"
40326             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
40327             eval value=\"\$LTLIB$uppername\"
40328             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
40329           else
40330                                     :
40331           fi
40332         else
40333                               found_dir=
40334           found_la=
40335           found_so=
40336           found_a=
40337           if test $use_additional = yes; then
40338             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
40339               found_dir="$additional_libdir"
40340               found_so="$additional_libdir/lib$name.$shlibext"
40341               if test -f "$additional_libdir/lib$name.la"; then
40342                 found_la="$additional_libdir/lib$name.la"
40343               fi
40344             else
40345               if test -f "$additional_libdir/lib$name.$libext"; then
40346                 found_dir="$additional_libdir"
40347                 found_a="$additional_libdir/lib$name.$libext"
40348                 if test -f "$additional_libdir/lib$name.la"; then
40349                   found_la="$additional_libdir/lib$name.la"
40350                 fi
40351               fi
40352             fi
40353           fi
40354           if test "X$found_dir" = "X"; then
40355             for x in $LDFLAGS $LTLIBINTL; do
40356
40357   acl_save_prefix="$prefix"
40358   prefix="$acl_final_prefix"
40359   acl_save_exec_prefix="$exec_prefix"
40360   exec_prefix="$acl_final_exec_prefix"
40361   eval x=\"$x\"
40362   exec_prefix="$acl_save_exec_prefix"
40363   prefix="$acl_save_prefix"
40364
40365               case "$x" in
40366                 -L*)
40367                   dir=`echo "X$x" | sed -e 's/^X-L//'`
40368                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
40369                     found_dir="$dir"
40370                     found_so="$dir/lib$name.$shlibext"
40371                     if test -f "$dir/lib$name.la"; then
40372                       found_la="$dir/lib$name.la"
40373                     fi
40374                   else
40375                     if test -f "$dir/lib$name.$libext"; then
40376                       found_dir="$dir"
40377                       found_a="$dir/lib$name.$libext"
40378                       if test -f "$dir/lib$name.la"; then
40379                         found_la="$dir/lib$name.la"
40380                       fi
40381                     fi
40382                   fi
40383                   ;;
40384               esac
40385               if test "X$found_dir" != "X"; then
40386                 break
40387               fi
40388             done
40389           fi
40390           if test "X$found_dir" != "X"; then
40391                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
40392             if test "X$found_so" != "X"; then
40393                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
40394                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
40395               else
40396                                                                                 haveit=
40397                 for x in $ltrpathdirs; do
40398                   if test "X$x" = "X$found_dir"; then
40399                     haveit=yes
40400                     break
40401                   fi
40402                 done
40403                 if test -z "$haveit"; then
40404                   ltrpathdirs="$ltrpathdirs $found_dir"
40405                 fi
40406                                 if test "$hardcode_direct" = yes; then
40407                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
40408                 else
40409                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
40410                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
40411                                                             haveit=
40412                     for x in $rpathdirs; do
40413                       if test "X$x" = "X$found_dir"; then
40414                         haveit=yes
40415                         break
40416                       fi
40417                     done
40418                     if test -z "$haveit"; then
40419                       rpathdirs="$rpathdirs $found_dir"
40420                     fi
40421                   else
40422                                                                                 haveit=
40423                     for x in $LDFLAGS $LIBINTL; do
40424
40425   acl_save_prefix="$prefix"
40426   prefix="$acl_final_prefix"
40427   acl_save_exec_prefix="$exec_prefix"
40428   exec_prefix="$acl_final_exec_prefix"
40429   eval x=\"$x\"
40430   exec_prefix="$acl_save_exec_prefix"
40431   prefix="$acl_save_prefix"
40432
40433                       if test "X$x" = "X-L$found_dir"; then
40434                         haveit=yes
40435                         break
40436                       fi
40437                     done
40438                     if test -z "$haveit"; then
40439                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
40440                     fi
40441                     if test "$hardcode_minus_L" != no; then
40442                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
40443                     else
40444                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
40445                     fi
40446                   fi
40447                 fi
40448               fi
40449             else
40450               if test "X$found_a" != "X"; then
40451                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
40452               else
40453                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
40454               fi
40455             fi
40456                         additional_includedir=
40457             case "$found_dir" in
40458               */lib | */lib/)
40459                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
40460                 additional_includedir="$basedir/include"
40461                 ;;
40462             esac
40463             if test "X$additional_includedir" != "X"; then
40464                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
40465                 haveit=
40466                 if test "X$additional_includedir" = "X/usr/local/include"; then
40467                   if test -n "$GCC"; then
40468                     case $host_os in
40469                       linux*) haveit=yes;;
40470                     esac
40471                   fi
40472                 fi
40473                 if test -z "$haveit"; then
40474                   for x in $CPPFLAGS $INCINTL; do
40475
40476   acl_save_prefix="$prefix"
40477   prefix="$acl_final_prefix"
40478   acl_save_exec_prefix="$exec_prefix"
40479   exec_prefix="$acl_final_exec_prefix"
40480   eval x=\"$x\"
40481   exec_prefix="$acl_save_exec_prefix"
40482   prefix="$acl_save_prefix"
40483
40484                     if test "X$x" = "X-I$additional_includedir"; then
40485                       haveit=yes
40486                       break
40487                     fi
40488                   done
40489                   if test -z "$haveit"; then
40490                     if test -d "$additional_includedir"; then
40491                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
40492                     fi
40493                   fi
40494                 fi
40495               fi
40496             fi
40497                         if test -n "$found_la"; then
40498                                                         save_libdir="$libdir"
40499               case "$found_la" in
40500                 */* | *\\*) . "$found_la" ;;
40501                 *) . "./$found_la" ;;
40502               esac
40503               libdir="$save_libdir"
40504                             for dep in $dependency_libs; do
40505                 case "$dep" in
40506                   -L*)
40507                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
40508                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
40509                       haveit=
40510                       if test "X$additional_libdir" = "X/usr/local/lib"; then
40511                         if test -n "$GCC"; then
40512                           case $host_os in
40513                             linux*) haveit=yes;;
40514                           esac
40515                         fi
40516                       fi
40517                       if test -z "$haveit"; then
40518                         haveit=
40519                         for x in $LDFLAGS $LIBINTL; do
40520
40521   acl_save_prefix="$prefix"
40522   prefix="$acl_final_prefix"
40523   acl_save_exec_prefix="$exec_prefix"
40524   exec_prefix="$acl_final_exec_prefix"
40525   eval x=\"$x\"
40526   exec_prefix="$acl_save_exec_prefix"
40527   prefix="$acl_save_prefix"
40528
40529                           if test "X$x" = "X-L$additional_libdir"; then
40530                             haveit=yes
40531                             break
40532                           fi
40533                         done
40534                         if test -z "$haveit"; then
40535                           if test -d "$additional_libdir"; then
40536                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
40537                           fi
40538                         fi
40539                         haveit=
40540                         for x in $LDFLAGS $LTLIBINTL; do
40541
40542   acl_save_prefix="$prefix"
40543   prefix="$acl_final_prefix"
40544   acl_save_exec_prefix="$exec_prefix"
40545   exec_prefix="$acl_final_exec_prefix"
40546   eval x=\"$x\"
40547   exec_prefix="$acl_save_exec_prefix"
40548   prefix="$acl_save_prefix"
40549
40550                           if test "X$x" = "X-L$additional_libdir"; then
40551                             haveit=yes
40552                             break
40553                           fi
40554                         done
40555                         if test -z "$haveit"; then
40556                           if test -d "$additional_libdir"; then
40557                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
40558                           fi
40559                         fi
40560                       fi
40561                     fi
40562                     ;;
40563                   -R*)
40564                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
40565                     if test "$enable_rpath" != no; then
40566                                                                   haveit=
40567                       for x in $rpathdirs; do
40568                         if test "X$x" = "X$dir"; then
40569                           haveit=yes
40570                           break
40571                         fi
40572                       done
40573                       if test -z "$haveit"; then
40574                         rpathdirs="$rpathdirs $dir"
40575                       fi
40576                                                                   haveit=
40577                       for x in $ltrpathdirs; do
40578                         if test "X$x" = "X$dir"; then
40579                           haveit=yes
40580                           break
40581                         fi
40582                       done
40583                       if test -z "$haveit"; then
40584                         ltrpathdirs="$ltrpathdirs $dir"
40585                       fi
40586                     fi
40587                     ;;
40588                   -l*)
40589                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
40590                     ;;
40591                   *.la)
40592                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
40593                     ;;
40594                   *)
40595                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
40596                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
40597                     ;;
40598                 esac
40599               done
40600             fi
40601           else
40602                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
40603             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
40604           fi
40605         fi
40606       fi
40607     done
40608   done
40609   if test "X$rpathdirs" != "X"; then
40610     if test -n "$hardcode_libdir_separator"; then
40611                         alldirs=
40612       for found_dir in $rpathdirs; do
40613         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
40614       done
40615             acl_save_libdir="$libdir"
40616       libdir="$alldirs"
40617       eval flag=\"$hardcode_libdir_flag_spec\"
40618       libdir="$acl_save_libdir"
40619       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
40620     else
40621             for found_dir in $rpathdirs; do
40622         acl_save_libdir="$libdir"
40623         libdir="$found_dir"
40624         eval flag=\"$hardcode_libdir_flag_spec\"
40625         libdir="$acl_save_libdir"
40626         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
40627       done
40628     fi
40629   fi
40630   if test "X$ltrpathdirs" != "X"; then
40631             for found_dir in $ltrpathdirs; do
40632       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
40633     done
40634   fi
40635
40636           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
40637 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
40638 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
40639   echo $ECHO_N "(cached) $ECHO_C" >&6
40640 else
40641   gt_save_CPPFLAGS="$CPPFLAGS"
40642             CPPFLAGS="$CPPFLAGS $INCINTL"
40643             gt_save_LIBS="$LIBS"
40644             LIBS="$LIBS $LIBINTL"
40645                         cat >conftest.$ac_ext <<_ACEOF
40646 #line $LINENO "configure"
40647 /* confdefs.h.  */
40648 _ACEOF
40649 cat confdefs.h >>conftest.$ac_ext
40650 cat >>conftest.$ac_ext <<_ACEOF
40651 /* end confdefs.h.  */
40652 #include <libintl.h>
40653 extern int _nl_msg_cat_cntr;
40654 extern
40655 #ifdef __cplusplus
40656 "C"
40657 #endif
40658 const char *_nl_expand_alias ();
40659 int
40660 main ()
40661 {
40662 bindtextdomain ("", "");
40663 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
40664   ;
40665   return 0;
40666 }
40667 _ACEOF
40668 rm -f conftest.$ac_objext conftest$ac_exeext
40669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40670   (eval $ac_link) 2>&5
40671   ac_status=$?
40672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40673   (exit $ac_status); } &&
40674          { ac_try='test -s conftest$ac_exeext'
40675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40676   (eval $ac_try) 2>&5
40677   ac_status=$?
40678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40679   (exit $ac_status); }; }; then
40680   gt_cv_func_gnugettext2_libintl=yes
40681 else
40682   echo "$as_me: failed program was:" >&5
40683 sed 's/^/| /' conftest.$ac_ext >&5
40684
40685 gt_cv_func_gnugettext2_libintl=no
40686 fi
40687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40688                         if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
40689               LIBS="$LIBS $LIBICONV"
40690               cat >conftest.$ac_ext <<_ACEOF
40691 #line $LINENO "configure"
40692 /* confdefs.h.  */
40693 _ACEOF
40694 cat confdefs.h >>conftest.$ac_ext
40695 cat >>conftest.$ac_ext <<_ACEOF
40696 /* end confdefs.h.  */
40697 #include <libintl.h>
40698 extern int _nl_msg_cat_cntr;
40699 extern
40700 #ifdef __cplusplus
40701 "C"
40702 #endif
40703 const char *_nl_expand_alias ();
40704 int
40705 main ()
40706 {
40707 bindtextdomain ("", "");
40708 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
40709   ;
40710   return 0;
40711 }
40712 _ACEOF
40713 rm -f conftest.$ac_objext conftest$ac_exeext
40714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40715   (eval $ac_link) 2>&5
40716   ac_status=$?
40717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40718   (exit $ac_status); } &&
40719          { ac_try='test -s conftest$ac_exeext'
40720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40721   (eval $ac_try) 2>&5
40722   ac_status=$?
40723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40724   (exit $ac_status); }; }; then
40725   LIBINTL="$LIBINTL $LIBICONV"
40726                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
40727                 gt_cv_func_gnugettext2_libintl=yes
40728
40729 else
40730   echo "$as_me: failed program was:" >&5
40731 sed 's/^/| /' conftest.$ac_ext >&5
40732
40733 fi
40734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40735             fi
40736             CPPFLAGS="$gt_save_CPPFLAGS"
40737             LIBS="$gt_save_LIBS"
40738 fi
40739 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
40740 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
40741         fi
40742
40743                                         if test "$gt_cv_func_gnugettext2_libc" = "yes" \
40744            || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
40745                 && test "$PACKAGE" != gettext; }; then
40746           gt_use_preinstalled_gnugettext=yes
40747         else
40748                     LIBINTL=
40749           LTLIBINTL=
40750           INCINTL=
40751         fi
40752
40753
40754
40755     if test "$gt_use_preinstalled_gnugettext" = "yes" \
40756        || test "$nls_cv_use_gnu_gettext" = "yes"; then
40757
40758 cat >>confdefs.h <<\_ACEOF
40759 #define ENABLE_NLS 1
40760 _ACEOF
40761
40762     else
40763       USE_NLS=no
40764     fi
40765   fi
40766
40767   if test "$USE_NLS" = "yes"; then
40768
40769     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
40770       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
40771         echo "$as_me:$LINENO: checking how to link with libintl" >&5
40772 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
40773         echo "$as_me:$LINENO: result: $LIBINTL" >&5
40774 echo "${ECHO_T}$LIBINTL" >&6
40775
40776   for element in $INCINTL; do
40777     haveit=
40778     for x in $CPPFLAGS; do
40779
40780   acl_save_prefix="$prefix"
40781   prefix="$acl_final_prefix"
40782   acl_save_exec_prefix="$exec_prefix"
40783   exec_prefix="$acl_final_exec_prefix"
40784   eval x=\"$x\"
40785   exec_prefix="$acl_save_exec_prefix"
40786   prefix="$acl_save_prefix"
40787
40788       if test "X$x" = "X$element"; then
40789         haveit=yes
40790         break
40791       fi
40792     done
40793     if test -z "$haveit"; then
40794       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
40795     fi
40796   done
40797
40798       fi
40799
40800
40801 cat >>confdefs.h <<\_ACEOF
40802 #define HAVE_GETTEXT 1
40803 _ACEOF
40804
40805
40806 cat >>confdefs.h <<\_ACEOF
40807 #define HAVE_DCGETTEXT 1
40808 _ACEOF
40809
40810     fi
40811
40812         POSUB=po
40813   fi
40814
40815
40816
40817     INTLLIBS="$LIBINTL"
40818
40819
40820
40821
40822
40823
40824
40825
40826                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               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"
40827
40828 cat >confcache <<\_ACEOF
40829 # This file is a shell script that caches the results of configure
40830 # tests run on this system so they can be shared between configure
40831 # scripts and configure runs, see configure's option --config-cache.
40832 # It is not useful on other systems.  If it contains results you don't
40833 # want to keep, you may remove or edit it.
40834 #
40835 # config.status only pays attention to the cache file if you give it
40836 # the --recheck option to rerun configure.
40837 #
40838 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40839 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40840 # following values.
40841
40842 _ACEOF
40843
40844 # The following way of writing the cache mishandles newlines in values,
40845 # but we know of no workaround that is simple, portable, and efficient.
40846 # So, don't put newlines in cache variables' values.
40847 # Ultrix sh set writes to stderr and can't be redirected directly,
40848 # and sets the high bit in the cache file unless we assign to the vars.
40849 {
40850   (set) 2>&1 |
40851     case `(ac_space=' '; set | grep ac_space) 2>&1` in
40852     *ac_space=\ *)
40853       # `set' does not quote correctly, so add quotes (double-quote
40854       # substitution turns \\\\ into \\, and sed turns \\ into \).
40855       sed -n \
40856         "s/'/'\\\\''/g;
40857           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40858       ;;
40859     *)
40860       # `set' quotes correctly as required by POSIX, so do not add quotes.
40861       sed -n \
40862         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
40863       ;;
40864     esac;
40865 } |
40866   sed '
40867      t clear
40868      : clear
40869      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40870      t end
40871      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40872      : end' >>confcache
40873 if diff $cache_file confcache >/dev/null 2>&1; then :; else
40874   if test -w $cache_file; then
40875     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
40876     cat confcache >$cache_file
40877   else
40878     echo "not updating unwritable cache $cache_file"
40879   fi
40880 fi
40881 rm -f confcache
40882
40883 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40884 # Let make expand exec_prefix.
40885 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40886
40887 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40888 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40889 # trailing colons and then remove the whole line if VPATH becomes empty
40890 # (actually we leave an empty line to preserve line numbers).
40891 if test "x$srcdir" = x.; then
40892   ac_vpsub='/^[         ]*VPATH[        ]*=/{
40893 s/:*\$(srcdir):*/:/;
40894 s/:*\${srcdir}:*/:/;
40895 s/:*@srcdir@:*/:/;
40896 s/^\([^=]*=[    ]*\):*/\1/;
40897 s/:*$//;
40898 s/^[^=]*=[      ]*$//;
40899 }'
40900 fi
40901
40902 DEFS=-DHAVE_CONFIG_H
40903
40904 ac_libobjs=
40905 ac_ltlibobjs=
40906 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40907   # 1. Remove the extension, and $U if already installed.
40908   ac_i=`echo "$ac_i" |
40909          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40910   # 2. Add them.
40911   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40912   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40913 done
40914 LIBOBJS=$ac_libobjs
40915
40916 LTLIBOBJS=$ac_ltlibobjs
40917
40918
40919 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40920   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
40921 Usually this means the macro was only invoked conditionally." >&5
40922 echo "$as_me: error: conditional \"AMDEP\" was never defined.
40923 Usually this means the macro was only invoked conditionally." >&2;}
40924    { (exit 1); exit 1; }; }
40925 fi
40926 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40927   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40928 Usually this means the macro was only invoked conditionally." >&5
40929 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40930 Usually this means the macro was only invoked conditionally." >&2;}
40931    { (exit 1); exit 1; }; }
40932 fi
40933
40934 : ${CONFIG_STATUS=./config.status}
40935 ac_clean_files_save=$ac_clean_files
40936 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40937 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40938 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40939 cat >$CONFIG_STATUS <<_ACEOF
40940 #! $SHELL
40941 # Generated by $as_me.
40942 # Run this file to recreate the current configuration.
40943 # Compiler output produced by configure, useful for debugging
40944 # configure, is in config.log if it exists.
40945
40946 debug=false
40947 ac_cs_recheck=false
40948 ac_cs_silent=false
40949 SHELL=\${CONFIG_SHELL-$SHELL}
40950 _ACEOF
40951
40952 cat >>$CONFIG_STATUS <<\_ACEOF
40953 ## --------------------- ##
40954 ## M4sh Initialization.  ##
40955 ## --------------------- ##
40956
40957 # Be Bourne compatible
40958 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40959   emulate sh
40960   NULLCMD=:
40961   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40962   # is contrary to our usage.  Disable this feature.
40963   alias -g '${1+"$@"}'='"$@"'
40964 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40965   set -o posix
40966 fi
40967
40968 # Support unset when possible.
40969 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
40970   as_unset=unset
40971 else
40972   as_unset=false
40973 fi
40974
40975
40976 # Work around bugs in pre-3.0 UWIN ksh.
40977 $as_unset ENV MAIL MAILPATH
40978 PS1='$ '
40979 PS2='> '
40980 PS4='+ '
40981
40982 # NLS nuisances.
40983 for as_var in \
40984   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40985   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40986   LC_TELEPHONE LC_TIME
40987 do
40988   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
40989     eval $as_var=C; export $as_var
40990   else
40991     $as_unset $as_var
40992   fi
40993 done
40994
40995 # Required to use basename.
40996 if expr a : '\(a\)' >/dev/null 2>&1; then
40997   as_expr=expr
40998 else
40999   as_expr=false
41000 fi
41001
41002 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41003   as_basename=basename
41004 else
41005   as_basename=false
41006 fi
41007
41008
41009 # Name of the executable.
41010 as_me=`$as_basename "$0" ||
41011 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41012          X"$0" : 'X\(//\)$' \| \
41013          X"$0" : 'X\(/\)$' \| \
41014          .     : '\(.\)' 2>/dev/null ||
41015 echo X/"$0" |
41016     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41017           /^X\/\(\/\/\)$/{ s//\1/; q; }
41018           /^X\/\(\/\).*/{ s//\1/; q; }
41019           s/.*/./; q'`
41020
41021
41022 # PATH needs CR, and LINENO needs CR and PATH.
41023 # Avoid depending upon Character Ranges.
41024 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41025 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41026 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41027 as_cr_digits='0123456789'
41028 as_cr_alnum=$as_cr_Letters$as_cr_digits
41029
41030 # The user is always right.
41031 if test "${PATH_SEPARATOR+set}" != set; then
41032   echo "#! /bin/sh" >conf$$.sh
41033   echo  "exit 0"   >>conf$$.sh
41034   chmod +x conf$$.sh
41035   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41036     PATH_SEPARATOR=';'
41037   else
41038     PATH_SEPARATOR=:
41039   fi
41040   rm -f conf$$.sh
41041 fi
41042
41043
41044   as_lineno_1=$LINENO
41045   as_lineno_2=$LINENO
41046   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41047   test "x$as_lineno_1" != "x$as_lineno_2" &&
41048   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
41049   # Find who we are.  Look in the path if we contain no path at all
41050   # relative or not.
41051   case $0 in
41052     *[\\/]* ) as_myself=$0 ;;
41053     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41054 for as_dir in $PATH
41055 do
41056   IFS=$as_save_IFS
41057   test -z "$as_dir" && as_dir=.
41058   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41059 done
41060
41061        ;;
41062   esac
41063   # We did not find ourselves, most probably we were run as `sh COMMAND'
41064   # in which case we are not to be found in the path.
41065   if test "x$as_myself" = x; then
41066     as_myself=$0
41067   fi
41068   if test ! -f "$as_myself"; then
41069     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41070 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41071    { (exit 1); exit 1; }; }
41072   fi
41073   case $CONFIG_SHELL in
41074   '')
41075     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41076 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41077 do
41078   IFS=$as_save_IFS
41079   test -z "$as_dir" && as_dir=.
41080   for as_base in sh bash ksh sh5; do
41081          case $as_dir in
41082          /*)
41083            if ("$as_dir/$as_base" -c '
41084   as_lineno_1=$LINENO
41085   as_lineno_2=$LINENO
41086   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41087   test "x$as_lineno_1" != "x$as_lineno_2" &&
41088   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
41089              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41090              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41091              CONFIG_SHELL=$as_dir/$as_base
41092              export CONFIG_SHELL
41093              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41094            fi;;
41095          esac
41096        done
41097 done
41098 ;;
41099   esac
41100
41101   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41102   # uniformly replaced by the line number.  The first 'sed' inserts a
41103   # line-number line before each line; the second 'sed' does the real
41104   # work.  The second script uses 'N' to pair each line-number line
41105   # with the numbered line, and appends trailing '-' during
41106   # substitution so that $LINENO is not a special case at line end.
41107   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41108   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
41109   sed '=' <$as_myself |
41110     sed '
41111       N
41112       s,$,-,
41113       : loop
41114       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41115       t loop
41116       s,-$,,
41117       s,^['$as_cr_digits']*\n,,
41118     ' >$as_me.lineno &&
41119   chmod +x $as_me.lineno ||
41120     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41121 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41122    { (exit 1); exit 1; }; }
41123
41124   # Don't try to exec as it changes $[0], causing all sort of problems
41125   # (the dirname of $[0] is not the place where we might find the
41126   # original and so on.  Autoconf is especially sensible to this).
41127   . ./$as_me.lineno
41128   # Exit status is that of the last command.
41129   exit
41130 }
41131
41132
41133 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41134   *c*,-n*) ECHO_N= ECHO_C='
41135 ' ECHO_T='      ' ;;
41136   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41137   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
41138 esac
41139
41140 if expr a : '\(a\)' >/dev/null 2>&1; then
41141   as_expr=expr
41142 else
41143   as_expr=false
41144 fi
41145
41146 rm -f conf$$ conf$$.exe conf$$.file
41147 echo >conf$$.file
41148 if ln -s conf$$.file conf$$ 2>/dev/null; then
41149   # We could just check for DJGPP; but this test a) works b) is more generic
41150   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41151   if test -f conf$$.exe; then
41152     # Don't use ln at all; we don't have any links
41153     as_ln_s='cp -p'
41154   else
41155     as_ln_s='ln -s'
41156   fi
41157 elif ln conf$$.file conf$$ 2>/dev/null; then
41158   as_ln_s=ln
41159 else
41160   as_ln_s='cp -p'
41161 fi
41162 rm -f conf$$ conf$$.exe conf$$.file
41163
41164 if mkdir -p . 2>/dev/null; then
41165   as_mkdir_p=:
41166 else
41167   as_mkdir_p=false
41168 fi
41169
41170 as_executable_p="test -f"
41171
41172 # Sed expression to map a string onto a valid CPP name.
41173 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
41174
41175 # Sed expression to map a string onto a valid variable name.
41176 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
41177
41178
41179 # IFS
41180 # We need space, tab and new line, in precisely that order.
41181 as_nl='
41182 '
41183 IFS="   $as_nl"
41184
41185 # CDPATH.
41186 $as_unset CDPATH
41187
41188 exec 6>&1
41189
41190 # Open the log real soon, to keep \$[0] and so on meaningful, and to
41191 # report actual input values of CONFIG_FILES etc. instead of their
41192 # values after options handling.  Logging --version etc. is OK.
41193 exec 5>>config.log
41194 {
41195   echo
41196   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41197 ## Running $as_me. ##
41198 _ASBOX
41199 } >&5
41200 cat >&5 <<_CSEOF
41201
41202 This file was extended by GNU coreutils $as_me 4.5.7, which was
41203 generated by GNU Autoconf 2.57.  Invocation command line was
41204
41205   CONFIG_FILES    = $CONFIG_FILES
41206   CONFIG_HEADERS  = $CONFIG_HEADERS
41207   CONFIG_LINKS    = $CONFIG_LINKS
41208   CONFIG_COMMANDS = $CONFIG_COMMANDS
41209   $ $0 $@
41210
41211 _CSEOF
41212 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41213 echo >&5
41214 _ACEOF
41215
41216 # Files that config.status was made for.
41217 if test -n "$ac_config_files"; then
41218   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41219 fi
41220
41221 if test -n "$ac_config_headers"; then
41222   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41223 fi
41224
41225 if test -n "$ac_config_links"; then
41226   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41227 fi
41228
41229 if test -n "$ac_config_commands"; then
41230   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41231 fi
41232
41233 cat >>$CONFIG_STATUS <<\_ACEOF
41234
41235 ac_cs_usage="\
41236 \`$as_me' instantiates files from templates according to the
41237 current configuration.
41238
41239 Usage: $0 [OPTIONS] [FILE]...
41240
41241   -h, --help       print this help, then exit
41242   -V, --version    print version number, then exit
41243   -q, --quiet      do not print progress messages
41244   -d, --debug      don't remove temporary files
41245       --recheck    update $as_me by reconfiguring in the same conditions
41246   --file=FILE[:TEMPLATE]
41247                    instantiate the configuration file FILE
41248   --header=FILE[:TEMPLATE]
41249                    instantiate the configuration header FILE
41250
41251 Configuration files:
41252 $config_files
41253
41254 Configuration headers:
41255 $config_headers
41256
41257 Configuration links:
41258 $config_links
41259
41260 Configuration commands:
41261 $config_commands
41262
41263 Report bugs to <bug-autoconf@gnu.org>."
41264 _ACEOF
41265
41266 cat >>$CONFIG_STATUS <<_ACEOF
41267 ac_cs_version="\\
41268 GNU coreutils config.status 4.5.7
41269 configured by $0, generated by GNU Autoconf 2.57,
41270   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41271
41272 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
41273 Free Software Foundation, Inc.
41274 This config.status script is free software; the Free Software Foundation
41275 gives unlimited permission to copy, distribute and modify it."
41276 srcdir=$srcdir
41277 INSTALL="$INSTALL"
41278 _ACEOF
41279
41280 cat >>$CONFIG_STATUS <<\_ACEOF
41281 # If no file are specified by the user, then we need to provide default
41282 # value.  By we need to know if files were specified by the user.
41283 ac_need_defaults=:
41284 while test $# != 0
41285 do
41286   case $1 in
41287   --*=*)
41288     ac_option=`expr "x$1" : 'x\([^=]*\)='`
41289     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41290     ac_shift=:
41291     ;;
41292   -*)
41293     ac_option=$1
41294     ac_optarg=$2
41295     ac_shift=shift
41296     ;;
41297   *) # This is not an option, so the user has probably given explicit
41298      # arguments.
41299      ac_option=$1
41300      ac_need_defaults=false;;
41301   esac
41302
41303   case $ac_option in
41304   # Handling of the options.
41305 _ACEOF
41306 cat >>$CONFIG_STATUS <<\_ACEOF
41307   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41308     ac_cs_recheck=: ;;
41309   --version | --vers* | -V )
41310     echo "$ac_cs_version"; exit 0 ;;
41311   --he | --h)
41312     # Conflict between --help and --header
41313     { { echo "$as_me:$LINENO: error: ambiguous option: $1
41314 Try \`$0 --help' for more information." >&5
41315 echo "$as_me: error: ambiguous option: $1
41316 Try \`$0 --help' for more information." >&2;}
41317    { (exit 1); exit 1; }; };;
41318   --help | --hel | -h )
41319     echo "$ac_cs_usage"; exit 0 ;;
41320   --debug | --d* | -d )
41321     debug=: ;;
41322   --file | --fil | --fi | --f )
41323     $ac_shift
41324     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41325     ac_need_defaults=false;;
41326   --header | --heade | --head | --hea )
41327     $ac_shift
41328     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41329     ac_need_defaults=false;;
41330   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41331   | -silent | --silent | --silen | --sile | --sil | --si | --s)
41332     ac_cs_silent=: ;;
41333
41334   # This is an error.
41335   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41336 Try \`$0 --help' for more information." >&5
41337 echo "$as_me: error: unrecognized option: $1
41338 Try \`$0 --help' for more information." >&2;}
41339    { (exit 1); exit 1; }; } ;;
41340
41341   *) ac_config_targets="$ac_config_targets $1" ;;
41342
41343   esac
41344   shift
41345 done
41346
41347 ac_configure_extra_args=
41348
41349 if $ac_cs_silent; then
41350   exec 6>/dev/null
41351   ac_configure_extra_args="$ac_configure_extra_args --silent"
41352 fi
41353
41354 _ACEOF
41355 cat >>$CONFIG_STATUS <<_ACEOF
41356 if \$ac_cs_recheck; then
41357   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41358   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41359 fi
41360
41361 _ACEOF
41362
41363 cat >>$CONFIG_STATUS <<_ACEOF
41364 #
41365 # INIT-COMMANDS section.
41366 #
41367
41368 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41369 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
41370     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
41371     # from automake.
41372     eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
41373     # Capture the value of LINGUAS because we need it to compute CATALOGS.
41374     LINGUAS="${LINGUAS-%UNSET%}"
41375
41376
41377 _ACEOF
41378
41379
41380
41381 cat >>$CONFIG_STATUS <<\_ACEOF
41382 for ac_config_target in $ac_config_targets
41383 do
41384   case "$ac_config_target" in
41385   # Handling of arguments.
41386   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41387   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
41388   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
41389   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
41390   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
41391   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
41392   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
41393   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
41394   "tests/basename/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/basename/Makefile" ;;
41395   "tests/chgrp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chgrp/Makefile" ;;
41396   "tests/chmod/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chmod/Makefile" ;;
41397   "tests/chown/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chown/Makefile" ;;
41398   "tests/cp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cp/Makefile" ;;
41399   "tests/cut/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cut/Makefile" ;;
41400   "tests/date/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/date/Makefile" ;;
41401   "tests/dd/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dd/Makefile" ;;
41402   "tests/dircolors/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dircolors/Makefile" ;;
41403   "tests/du/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/du/Makefile" ;;
41404   "tests/expr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/expr/Makefile" ;;
41405   "tests/factor/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/factor/Makefile" ;;
41406   "tests/fmt/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/fmt/Makefile" ;;
41407   "tests/head/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/head/Makefile" ;;
41408   "tests/install/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/install/Makefile" ;;
41409   "tests/join/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/join/Makefile" ;;
41410   "tests/ln/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ln/Makefile" ;;
41411   "tests/ls-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls-2/Makefile" ;;
41412   "tests/ls/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls/Makefile" ;;
41413   "tests/md5sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/md5sum/Makefile" ;;
41414   "tests/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
41415   "tests/mkdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mkdir/Makefile" ;;
41416   "tests/mv/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mv/Makefile" ;;
41417   "tests/od/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/od/Makefile" ;;
41418   "tests/pr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/pr/Makefile" ;;
41419   "tests/rm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rm/Makefile" ;;
41420   "tests/rmdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rmdir/Makefile" ;;
41421   "tests/seq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/seq/Makefile" ;;
41422   "tests/sha1sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sha1sum/Makefile" ;;
41423   "tests/shred/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/shred/Makefile" ;;
41424   "tests/sort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sort/Makefile" ;;
41425   "tests/stty/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/stty/Makefile" ;;
41426   "tests/sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sum/Makefile" ;;
41427   "tests/tac/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tac/Makefile" ;;
41428   "tests/tail-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail-2/Makefile" ;;
41429   "tests/tail/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail/Makefile" ;;
41430   "tests/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test/Makefile" ;;
41431   "tests/touch/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/touch/Makefile" ;;
41432   "tests/tr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tr/Makefile" ;;
41433   "tests/tsort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tsort/Makefile" ;;
41434   "tests/unexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/unexpand/Makefile" ;;
41435   "tests/uniq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/uniq/Makefile" ;;
41436   "tests/wc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/wc/Makefile" ;;
41437   "$ac_config_libobj_dir/fnmatch.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h" ;;
41438   "$ac_config_libobj_dir/ftw.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/ftw.h:$ac_config_libobj_dir/ftw_.h" ;;
41439   "$ac_config_libobj_dir/search.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/search.h:$ac_config_libobj_dir/search_.h" ;;
41440   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41441   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
41442   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
41443   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41444 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41445    { (exit 1); exit 1; }; };;
41446   esac
41447 done
41448
41449 # If the user did not use the arguments to specify the items to instantiate,
41450 # then the envvar interface is used.  Set only those that are not.
41451 # We use the long form for the default assignment because of an extremely
41452 # bizarre bug on SunOS 4.1.3.
41453 if $ac_need_defaults; then
41454   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41455   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41456   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
41457   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41458 fi
41459
41460 # Have a temporary directory for convenience.  Make it in the build tree
41461 # simply because there is no reason to put it here, and in addition,
41462 # creating and moving files from /tmp can sometimes cause problems.
41463 # Create a temporary directory, and hook for its removal unless debugging.
41464 $debug ||
41465 {
41466   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41467   trap '{ (exit 1); exit 1; }' 1 2 13 15
41468 }
41469
41470 # Create a (secure) tmp directory for tmp files.
41471
41472 {
41473   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41474   test -n "$tmp" && test -d "$tmp"
41475 }  ||
41476 {
41477   tmp=./confstat$$-$RANDOM
41478   (umask 077 && mkdir $tmp)
41479 } ||
41480 {
41481    echo "$me: cannot create a temporary directory in ." >&2
41482    { (exit 1); exit 1; }
41483 }
41484
41485 _ACEOF
41486
41487 cat >>$CONFIG_STATUS <<_ACEOF
41488
41489 #
41490 # CONFIG_FILES section.
41491 #
41492
41493 # No need to generate the scripts if there are no CONFIG_FILES.
41494 # This happens for instance when ./config.status config.h
41495 if test -n "\$CONFIG_FILES"; then
41496   # Protect against being on the right side of a sed subst in config.status.
41497   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41498    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41499 s,@SHELL@,$SHELL,;t t
41500 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41501 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41502 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41503 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41504 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41505 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41506 s,@exec_prefix@,$exec_prefix,;t t
41507 s,@prefix@,$prefix,;t t
41508 s,@program_transform_name@,$program_transform_name,;t t
41509 s,@bindir@,$bindir,;t t
41510 s,@sbindir@,$sbindir,;t t
41511 s,@libexecdir@,$libexecdir,;t t
41512 s,@datadir@,$datadir,;t t
41513 s,@sysconfdir@,$sysconfdir,;t t
41514 s,@sharedstatedir@,$sharedstatedir,;t t
41515 s,@localstatedir@,$localstatedir,;t t
41516 s,@libdir@,$libdir,;t t
41517 s,@includedir@,$includedir,;t t
41518 s,@oldincludedir@,$oldincludedir,;t t
41519 s,@infodir@,$infodir,;t t
41520 s,@mandir@,$mandir,;t t
41521 s,@build_alias@,$build_alias,;t t
41522 s,@host_alias@,$host_alias,;t t
41523 s,@target_alias@,$target_alias,;t t
41524 s,@DEFS@,$DEFS,;t t
41525 s,@ECHO_C@,$ECHO_C,;t t
41526 s,@ECHO_N@,$ECHO_N,;t t
41527 s,@ECHO_T@,$ECHO_T,;t t
41528 s,@LIBS@,$LIBS,;t t
41529 s,@build@,$build,;t t
41530 s,@build_cpu@,$build_cpu,;t t
41531 s,@build_vendor@,$build_vendor,;t t
41532 s,@build_os@,$build_os,;t t
41533 s,@host@,$host,;t t
41534 s,@host_cpu@,$host_cpu,;t t
41535 s,@host_vendor@,$host_vendor,;t t
41536 s,@host_os@,$host_os,;t t
41537 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41538 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41539 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41540 s,@CYGPATH_W@,$CYGPATH_W,;t t
41541 s,@PACKAGE@,$PACKAGE,;t t
41542 s,@VERSION@,$VERSION,;t t
41543 s,@ACLOCAL@,$ACLOCAL,;t t
41544 s,@AUTOCONF@,$AUTOCONF,;t t
41545 s,@AUTOMAKE@,$AUTOMAKE,;t t
41546 s,@AUTOHEADER@,$AUTOHEADER,;t t
41547 s,@MAKEINFO@,$MAKEINFO,;t t
41548 s,@AMTAR@,$AMTAR,;t t
41549 s,@install_sh@,$install_sh,;t t
41550 s,@STRIP@,$STRIP,;t t
41551 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41552 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
41553 s,@AWK@,$AWK,;t t
41554 s,@SET_MAKE@,$SET_MAKE,;t t
41555 s,@PERL@,$PERL,;t t
41556 s,@CC@,$CC,;t t
41557 s,@CFLAGS@,$CFLAGS,;t t
41558 s,@LDFLAGS@,$LDFLAGS,;t t
41559 s,@CPPFLAGS@,$CPPFLAGS,;t t
41560 s,@ac_ct_CC@,$ac_ct_CC,;t t
41561 s,@EXEEXT@,$EXEEXT,;t t
41562 s,@OBJEXT@,$OBJEXT,;t t
41563 s,@DEPDIR@,$DEPDIR,;t t
41564 s,@am__include@,$am__include,;t t
41565 s,@am__quote@,$am__quote,;t t
41566 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41567 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41568 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41569 s,@CCDEPMODE@,$CCDEPMODE,;t t
41570 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41571 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41572 s,@CPP@,$CPP,;t t
41573 s,@EGREP@,$EGREP,;t t
41574 s,@RANLIB@,$RANLIB,;t t
41575 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41576 s,@GNU_PACKAGE@,$GNU_PACKAGE,;t t
41577 s,@HELP2MAN@,$HELP2MAN,;t t
41578 s,@OPTIONAL_BIN_PROGS@,$OPTIONAL_BIN_PROGS,;t t
41579 s,@OPTIONAL_BIN_ZCRIPTS@,$OPTIONAL_BIN_ZCRIPTS,;t t
41580 s,@MAN@,$MAN,;t t
41581 s,@DF_PROG@,$DF_PROG,;t t
41582 s,@U@,$U,;t t
41583 s,@ANSI2KNR@,$ANSI2KNR,;t t
41584 s,@LIBOBJS@,$LIBOBJS,;t t
41585 s,@ALLOCA@,$ALLOCA,;t t
41586 s,@YACC@,$YACC,;t t
41587 s,@LIB_NANOSLEEP@,$LIB_NANOSLEEP,;t t
41588 s,@NEED_SETGID@,$NEED_SETGID,;t t
41589 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
41590 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
41591 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
41592 s,@POW_LIB@,$POW_LIB,;t t
41593 s,@SEQ_LIBM@,$SEQ_LIBM,;t t
41594 s,@GLIBC21@,$GLIBC21,;t t
41595 s,@LIBICONV@,$LIBICONV,;t t
41596 s,@LTLIBICONV@,$LTLIBICONV,;t t
41597 s,@SQRT_LIBM@,$SQRT_LIBM,;t t
41598 s,@FESETROUND_LIBM@,$FESETROUND_LIBM,;t t
41599 s,@LIB_CRYPT@,$LIB_CRYPT,;t t
41600 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
41601 s,@MSGFMT@,$MSGFMT,;t t
41602 s,@GMSGFMT@,$GMSGFMT,;t t
41603 s,@XGETTEXT@,$XGETTEXT,;t t
41604 s,@MSGMERGE@,$MSGMERGE,;t t
41605 s,@USE_NLS@,$USE_NLS,;t t
41606 s,@INTLLIBS@,$INTLLIBS,;t t
41607 s,@LIBINTL@,$LIBINTL,;t t
41608 s,@LTLIBINTL@,$LTLIBINTL,;t t
41609 s,@POSUB@,$POSUB,;t t
41610 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41611 CEOF
41612
41613 _ACEOF
41614
41615   cat >>$CONFIG_STATUS <<\_ACEOF
41616   # Split the substitutions into bite-sized pieces for seds with
41617   # small command number limits, like on Digital OSF/1 and HP-UX.
41618   ac_max_sed_lines=48
41619   ac_sed_frag=1 # Number of current file.
41620   ac_beg=1 # First line for current file.
41621   ac_end=$ac_max_sed_lines # Line after last line for current file.
41622   ac_more_lines=:
41623   ac_sed_cmds=
41624   while $ac_more_lines; do
41625     if test $ac_beg -gt 1; then
41626       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41627     else
41628       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41629     fi
41630     if test ! -s $tmp/subs.frag; then
41631       ac_more_lines=false
41632     else
41633       # The purpose of the label and of the branching condition is to
41634       # speed up the sed processing (if there are no `@' at all, there
41635       # is no need to browse any of the substitutions).
41636       # These are the two extra sed commands mentioned above.
41637       (echo ':t
41638   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41639       if test -z "$ac_sed_cmds"; then
41640         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41641       else
41642         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41643       fi
41644       ac_sed_frag=`expr $ac_sed_frag + 1`
41645       ac_beg=$ac_end
41646       ac_end=`expr $ac_end + $ac_max_sed_lines`
41647     fi
41648   done
41649   if test -z "$ac_sed_cmds"; then
41650     ac_sed_cmds=cat
41651   fi
41652 fi # test -n "$CONFIG_FILES"
41653
41654 _ACEOF
41655 cat >>$CONFIG_STATUS <<\_ACEOF
41656 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41657   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41658   case $ac_file in
41659   - | *:- | *:-:* ) # input from stdin
41660         cat >$tmp/stdin
41661         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41662         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41663   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41664         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41665   * )   ac_file_in=$ac_file.in ;;
41666   esac
41667
41668   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41669   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41670 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41671          X"$ac_file" : 'X\(//\)[^/]' \| \
41672          X"$ac_file" : 'X\(//\)$' \| \
41673          X"$ac_file" : 'X\(/\)' \| \
41674          .     : '\(.\)' 2>/dev/null ||
41675 echo X"$ac_file" |
41676     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41677           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41678           /^X\(\/\/\)$/{ s//\1/; q; }
41679           /^X\(\/\).*/{ s//\1/; q; }
41680           s/.*/./; q'`
41681   { if $as_mkdir_p; then
41682     mkdir -p "$ac_dir"
41683   else
41684     as_dir="$ac_dir"
41685     as_dirs=
41686     while test ! -d "$as_dir"; do
41687       as_dirs="$as_dir $as_dirs"
41688       as_dir=`(dirname "$as_dir") 2>/dev/null ||
41689 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41690          X"$as_dir" : 'X\(//\)[^/]' \| \
41691          X"$as_dir" : 'X\(//\)$' \| \
41692          X"$as_dir" : 'X\(/\)' \| \
41693          .     : '\(.\)' 2>/dev/null ||
41694 echo X"$as_dir" |
41695     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41696           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41697           /^X\(\/\/\)$/{ s//\1/; q; }
41698           /^X\(\/\).*/{ s//\1/; q; }
41699           s/.*/./; q'`
41700     done
41701     test ! -n "$as_dirs" || mkdir $as_dirs
41702   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41703 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41704    { (exit 1); exit 1; }; }; }
41705
41706   ac_builddir=.
41707
41708 if test "$ac_dir" != .; then
41709   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41710   # A "../" for each directory in $ac_dir_suffix.
41711   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41712 else
41713   ac_dir_suffix= ac_top_builddir=
41714 fi
41715
41716 case $srcdir in
41717   .)  # No --srcdir option.  We are building in place.
41718     ac_srcdir=.
41719     if test -z "$ac_top_builddir"; then
41720        ac_top_srcdir=.
41721     else
41722        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41723     fi ;;
41724   [\\/]* | ?:[\\/]* )  # Absolute path.
41725     ac_srcdir=$srcdir$ac_dir_suffix;
41726     ac_top_srcdir=$srcdir ;;
41727   *) # Relative path.
41728     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41729     ac_top_srcdir=$ac_top_builddir$srcdir ;;
41730 esac
41731 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
41732 # absolute.
41733 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
41734 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
41735 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
41736 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
41737
41738
41739   case $INSTALL in
41740   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41741   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41742   esac
41743
41744   if test x"$ac_file" != x-; then
41745     { echo "$as_me:$LINENO: creating $ac_file" >&5
41746 echo "$as_me: creating $ac_file" >&6;}
41747     rm -f "$ac_file"
41748   fi
41749   # Let's still pretend it is `configure' which instantiates (i.e., don't
41750   # use $as_me), people would be surprised to read:
41751   #    /* config.h.  Generated by config.status.  */
41752   if test x"$ac_file" = x-; then
41753     configure_input=
41754   else
41755     configure_input="$ac_file.  "
41756   fi
41757   configure_input=$configure_input"Generated from `echo $ac_file_in |
41758                                      sed 's,.*/,,'` by configure."
41759
41760   # First look for the input files in the build tree, otherwise in the
41761   # src tree.
41762   ac_file_inputs=`IFS=:
41763     for f in $ac_file_in; do
41764       case $f in
41765       -) echo $tmp/stdin ;;
41766       [\\/$]*)
41767          # Absolute (can't be DOS-style, as IFS=:)
41768          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41769 echo "$as_me: error: cannot find input file: $f" >&2;}
41770    { (exit 1); exit 1; }; }
41771          echo $f;;
41772       *) # Relative
41773          if test -f "$f"; then
41774            # Build tree
41775            echo $f
41776          elif test -f "$srcdir/$f"; then
41777            # Source tree
41778            echo $srcdir/$f
41779          else
41780            # /dev/null tree
41781            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41782 echo "$as_me: error: cannot find input file: $f" >&2;}
41783    { (exit 1); exit 1; }; }
41784          fi;;
41785       esac
41786     done` || { (exit 1); exit 1; }
41787 _ACEOF
41788 cat >>$CONFIG_STATUS <<_ACEOF
41789   sed "$ac_vpsub
41790 $extrasub
41791 _ACEOF
41792 cat >>$CONFIG_STATUS <<\_ACEOF
41793 :t
41794 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41795 s,@configure_input@,$configure_input,;t t
41796 s,@srcdir@,$ac_srcdir,;t t
41797 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41798 s,@top_srcdir@,$ac_top_srcdir,;t t
41799 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41800 s,@builddir@,$ac_builddir,;t t
41801 s,@abs_builddir@,$ac_abs_builddir,;t t
41802 s,@top_builddir@,$ac_top_builddir,;t t
41803 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41804 s,@INSTALL@,$ac_INSTALL,;t t
41805 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41806   rm -f $tmp/stdin
41807   if test x"$ac_file" != x-; then
41808     mv $tmp/out $ac_file
41809   else
41810     cat $tmp/out
41811     rm -f $tmp/out
41812   fi
41813
41814 done
41815 _ACEOF
41816 cat >>$CONFIG_STATUS <<\_ACEOF
41817
41818 #
41819 # CONFIG_HEADER section.
41820 #
41821
41822 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41823 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41824 #
41825 # ac_d sets the value in "#define NAME VALUE" lines.
41826 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
41827 ac_dB='[        ].*$,\1#\2'
41828 ac_dC=' '
41829 ac_dD=',;t'
41830 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41831 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
41832 ac_uB='$,\1#\2define\3'
41833 ac_uC=' '
41834 ac_uD=',;t'
41835
41836 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41837   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41838   case $ac_file in
41839   - | *:- | *:-:* ) # input from stdin
41840         cat >$tmp/stdin
41841         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41842         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41843   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41844         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41845   * )   ac_file_in=$ac_file.in ;;
41846   esac
41847
41848   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41849 echo "$as_me: creating $ac_file" >&6;}
41850
41851   # First look for the input files in the build tree, otherwise in the
41852   # src tree.
41853   ac_file_inputs=`IFS=:
41854     for f in $ac_file_in; do
41855       case $f in
41856       -) echo $tmp/stdin ;;
41857       [\\/$]*)
41858          # Absolute (can't be DOS-style, as IFS=:)
41859          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41860 echo "$as_me: error: cannot find input file: $f" >&2;}
41861    { (exit 1); exit 1; }; }
41862          echo $f;;
41863       *) # Relative
41864          if test -f "$f"; then
41865            # Build tree
41866            echo $f
41867          elif test -f "$srcdir/$f"; then
41868            # Source tree
41869            echo $srcdir/$f
41870          else
41871            # /dev/null tree
41872            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41873 echo "$as_me: error: cannot find input file: $f" >&2;}
41874    { (exit 1); exit 1; }; }
41875          fi;;
41876       esac
41877     done` || { (exit 1); exit 1; }
41878   # Remove the trailing spaces.
41879   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
41880
41881 _ACEOF
41882
41883 # Transform confdefs.h into two sed scripts, `conftest.defines' and
41884 # `conftest.undefs', that substitutes the proper values into
41885 # config.h.in to produce config.h.  The first handles `#define'
41886 # templates, and the second `#undef' templates.
41887 # And first: Protect against being on the right side of a sed subst in
41888 # config.status.  Protect against being in an unquoted here document
41889 # in config.status.
41890 rm -f conftest.defines conftest.undefs
41891 # Using a here document instead of a string reduces the quoting nightmare.
41892 # Putting comments in sed scripts is not portable.
41893 #
41894 # `end' is used to avoid that the second main sed command (meant for
41895 # 0-ary CPP macros) applies to n-ary macro definitions.
41896 # See the Autoconf documentation for `clear'.
41897 cat >confdef2sed.sed <<\_ACEOF
41898 s/[\\&,]/\\&/g
41899 s,[\\$`],\\&,g
41900 t clear
41901 : clear
41902 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41903 t end
41904 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41905 : end
41906 _ACEOF
41907 # If some macros were called several times there might be several times
41908 # the same #defines, which is useless.  Nevertheless, we may not want to
41909 # sort them, since we want the *last* AC-DEFINE to be honored.
41910 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41911 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41912 rm -f confdef2sed.sed
41913
41914 # This sed command replaces #undef with comments.  This is necessary, for
41915 # example, in the case of _POSIX_SOURCE, which is predefined and required
41916 # on some systems where configure will not decide to define it.
41917 cat >>conftest.undefs <<\_ACEOF
41918 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41919 _ACEOF
41920
41921 # Break up conftest.defines because some shells have a limit on the size
41922 # of here documents, and old seds have small limits too (100 cmds).
41923 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41924 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41925 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41926 echo '  :' >>$CONFIG_STATUS
41927 rm -f conftest.tail
41928 while grep . conftest.defines >/dev/null
41929 do
41930   # Write a limited-size here document to $tmp/defines.sed.
41931   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41932   # Speed up: don't consider the non `#define' lines.
41933   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
41934   # Work around the forget-to-reset-the-flag bug.
41935   echo 't clr' >>$CONFIG_STATUS
41936   echo ': clr' >>$CONFIG_STATUS
41937   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41938   echo 'CEOF
41939   sed -f $tmp/defines.sed $tmp/in >$tmp/out
41940   rm -f $tmp/in
41941   mv $tmp/out $tmp/in
41942 ' >>$CONFIG_STATUS
41943   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41944   rm -f conftest.defines
41945   mv conftest.tail conftest.defines
41946 done
41947 rm -f conftest.defines
41948 echo '  fi # grep' >>$CONFIG_STATUS
41949 echo >>$CONFIG_STATUS
41950
41951 # Break up conftest.undefs because some shells have a limit on the size
41952 # of here documents, and old seds have small limits too (100 cmds).
41953 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
41954 rm -f conftest.tail
41955 while grep . conftest.undefs >/dev/null
41956 do
41957   # Write a limited-size here document to $tmp/undefs.sed.
41958   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41959   # Speed up: don't consider the non `#undef'
41960   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
41961   # Work around the forget-to-reset-the-flag bug.
41962   echo 't clr' >>$CONFIG_STATUS
41963   echo ': clr' >>$CONFIG_STATUS
41964   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
41965   echo 'CEOF
41966   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
41967   rm -f $tmp/in
41968   mv $tmp/out $tmp/in
41969 ' >>$CONFIG_STATUS
41970   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
41971   rm -f conftest.undefs
41972   mv conftest.tail conftest.undefs
41973 done
41974 rm -f conftest.undefs
41975
41976 cat >>$CONFIG_STATUS <<\_ACEOF
41977   # Let's still pretend it is `configure' which instantiates (i.e., don't
41978   # use $as_me), people would be surprised to read:
41979   #    /* config.h.  Generated by config.status.  */
41980   if test x"$ac_file" = x-; then
41981     echo "/* Generated by configure.  */" >$tmp/config.h
41982   else
41983     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
41984   fi
41985   cat $tmp/in >>$tmp/config.h
41986   rm -f $tmp/in
41987   if test x"$ac_file" != x-; then
41988     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
41989       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41990 echo "$as_me: $ac_file is unchanged" >&6;}
41991     else
41992       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41993 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41994          X"$ac_file" : 'X\(//\)[^/]' \| \
41995          X"$ac_file" : 'X\(//\)$' \| \
41996          X"$ac_file" : 'X\(/\)' \| \
41997          .     : '\(.\)' 2>/dev/null ||
41998 echo X"$ac_file" |
41999     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42000           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42001           /^X\(\/\/\)$/{ s//\1/; q; }
42002           /^X\(\/\).*/{ s//\1/; q; }
42003           s/.*/./; q'`
42004       { if $as_mkdir_p; then
42005     mkdir -p "$ac_dir"
42006   else
42007     as_dir="$ac_dir"
42008     as_dirs=
42009     while test ! -d "$as_dir"; do
42010       as_dirs="$as_dir $as_dirs"
42011       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42012 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42013          X"$as_dir" : 'X\(//\)[^/]' \| \
42014          X"$as_dir" : 'X\(//\)$' \| \
42015          X"$as_dir" : 'X\(/\)' \| \
42016          .     : '\(.\)' 2>/dev/null ||
42017 echo X"$as_dir" |
42018     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42019           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42020           /^X\(\/\/\)$/{ s//\1/; q; }
42021           /^X\(\/\).*/{ s//\1/; q; }
42022           s/.*/./; q'`
42023     done
42024     test ! -n "$as_dirs" || mkdir $as_dirs
42025   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42026 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42027    { (exit 1); exit 1; }; }; }
42028
42029       rm -f $ac_file
42030       mv $tmp/config.h $ac_file
42031     fi
42032   else
42033     cat $tmp/config.h
42034     rm -f $tmp/config.h
42035   fi
42036 _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
42037 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
42038 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42039          X$ac_file : 'X\(//\)[^/]' \| \
42040          X$ac_file : 'X\(//\)$' \| \
42041          X$ac_file : 'X\(/\)' \| \
42042          .     : '\(.\)' 2>/dev/null ||
42043 echo X$ac_file |
42044     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42045           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42046           /^X\(\/\/\)$/{ s//\1/; q; }
42047           /^X\(\/\).*/{ s//\1/; q; }
42048           s/.*/./; q'`/stamp-h$_am_stamp_count
42049 done
42050 _ACEOF
42051 cat >>$CONFIG_STATUS <<\_ACEOF
42052
42053 #
42054 # CONFIG_LINKS section.
42055 #
42056
42057 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
42058   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42059   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42060
42061   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
42062 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
42063
42064   if test ! -r $srcdir/$ac_source; then
42065     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
42066 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
42067    { (exit 1); exit 1; }; }
42068   fi
42069   rm -f $ac_dest
42070
42071   # Make relative symlinks.
42072   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
42073 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42074          X"$ac_dest" : 'X\(//\)[^/]' \| \
42075          X"$ac_dest" : 'X\(//\)$' \| \
42076          X"$ac_dest" : 'X\(/\)' \| \
42077          .     : '\(.\)' 2>/dev/null ||
42078 echo X"$ac_dest" |
42079     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42080           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42081           /^X\(\/\/\)$/{ s//\1/; q; }
42082           /^X\(\/\).*/{ s//\1/; q; }
42083           s/.*/./; q'`
42084   { if $as_mkdir_p; then
42085     mkdir -p "$ac_dest_dir"
42086   else
42087     as_dir="$ac_dest_dir"
42088     as_dirs=
42089     while test ! -d "$as_dir"; do
42090       as_dirs="$as_dir $as_dirs"
42091       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42092 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42093          X"$as_dir" : 'X\(//\)[^/]' \| \
42094          X"$as_dir" : 'X\(//\)$' \| \
42095          X"$as_dir" : 'X\(/\)' \| \
42096          .     : '\(.\)' 2>/dev/null ||
42097 echo X"$as_dir" |
42098     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42099           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42100           /^X\(\/\/\)$/{ s//\1/; q; }
42101           /^X\(\/\).*/{ s//\1/; q; }
42102           s/.*/./; q'`
42103     done
42104     test ! -n "$as_dirs" || mkdir $as_dirs
42105   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
42106 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
42107    { (exit 1); exit 1; }; }; }
42108
42109   ac_builddir=.
42110
42111 if test "$ac_dest_dir" != .; then
42112   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
42113   # A "../" for each directory in $ac_dir_suffix.
42114   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42115 else
42116   ac_dir_suffix= ac_top_builddir=
42117 fi
42118
42119 case $srcdir in
42120   .)  # No --srcdir option.  We are building in place.
42121     ac_srcdir=.
42122     if test -z "$ac_top_builddir"; then
42123        ac_top_srcdir=.
42124     else
42125        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42126     fi ;;
42127   [\\/]* | ?:[\\/]* )  # Absolute path.
42128     ac_srcdir=$srcdir$ac_dir_suffix;
42129     ac_top_srcdir=$srcdir ;;
42130   *) # Relative path.
42131     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42132     ac_top_srcdir=$ac_top_builddir$srcdir ;;
42133 esac
42134 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
42135 # absolute.
42136 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
42137 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
42138 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
42139 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
42140
42141
42142   case $srcdir in
42143   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
42144       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
42145   esac
42146
42147   # Try a symlink, then a hard link, then a copy.
42148   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
42149     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
42150     cp -p $srcdir/$ac_source $ac_dest ||
42151     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
42152 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
42153    { (exit 1); exit 1; }; }
42154 done
42155 _ACEOF
42156 cat >>$CONFIG_STATUS <<\_ACEOF
42157
42158 #
42159 # CONFIG_COMMANDS section.
42160 #
42161 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42162   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42163   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42164   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42165 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42166          X"$ac_dest" : 'X\(//\)[^/]' \| \
42167          X"$ac_dest" : 'X\(//\)$' \| \
42168          X"$ac_dest" : 'X\(/\)' \| \
42169          .     : '\(.\)' 2>/dev/null ||
42170 echo X"$ac_dest" |
42171     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42172           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42173           /^X\(\/\/\)$/{ s//\1/; q; }
42174           /^X\(\/\).*/{ s//\1/; q; }
42175           s/.*/./; q'`
42176   ac_builddir=.
42177
42178 if test "$ac_dir" != .; then
42179   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42180   # A "../" for each directory in $ac_dir_suffix.
42181   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42182 else
42183   ac_dir_suffix= ac_top_builddir=
42184 fi
42185
42186 case $srcdir in
42187   .)  # No --srcdir option.  We are building in place.
42188     ac_srcdir=.
42189     if test -z "$ac_top_builddir"; then
42190        ac_top_srcdir=.
42191     else
42192        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42193     fi ;;
42194   [\\/]* | ?:[\\/]* )  # Absolute path.
42195     ac_srcdir=$srcdir$ac_dir_suffix;
42196     ac_top_srcdir=$srcdir ;;
42197   *) # Relative path.
42198     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42199     ac_top_srcdir=$ac_top_builddir$srcdir ;;
42200 esac
42201 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
42202 # absolute.
42203 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
42204 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
42205 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
42206 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
42207
42208
42209   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42210 echo "$as_me: executing $ac_dest commands" >&6;}
42211   case $ac_dest in
42212     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
42213   # Strip MF so we end up with the name of the file.
42214   mf=`echo "$mf" | sed -e 's/:.*$//'`
42215   # Check whether this is an Automake generated Makefile or not.
42216   # We used to match only the files named `Makefile.in', but
42217   # some people rename them; so instead we look at the file content.
42218   # Grep'ing the first line is not enough: some people post-process
42219   # each Makefile.in and add a new line on top of each file to say so.
42220   # So let's grep whole file.
42221   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
42222     dirpart=`(dirname "$mf") 2>/dev/null ||
42223 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42224          X"$mf" : 'X\(//\)[^/]' \| \
42225          X"$mf" : 'X\(//\)$' \| \
42226          X"$mf" : 'X\(/\)' \| \
42227          .     : '\(.\)' 2>/dev/null ||
42228 echo X"$mf" |
42229     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42230           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42231           /^X\(\/\/\)$/{ s//\1/; q; }
42232           /^X\(\/\).*/{ s//\1/; q; }
42233           s/.*/./; q'`
42234   else
42235     continue
42236   fi
42237   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
42238   # Extract the definition of DEP_FILES from the Makefile without
42239   # running `make'.
42240   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
42241   test -z "$DEPDIR" && continue
42242   # When using ansi2knr, U may be empty or an underscore; expand it
42243   U=`sed -n -e '/^U = / s///p' < "$mf"`
42244   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
42245   # We invoke sed twice because it is the simplest approach to
42246   # changing $(DEPDIR) to its actual value in the expansion.
42247   for file in `sed -n -e '
42248     /^DEP_FILES = .*\\\\$/ {
42249       s/^DEP_FILES = //
42250       :loop
42251         s/\\\\$//
42252         p
42253         n
42254         /\\\\$/ b loop
42255       p
42256     }
42257     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
42258        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42259     # Make sure the directory exists.
42260     test -f "$dirpart/$file" && continue
42261     fdir=`(dirname "$file") 2>/dev/null ||
42262 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42263          X"$file" : 'X\(//\)[^/]' \| \
42264          X"$file" : 'X\(//\)$' \| \
42265          X"$file" : 'X\(/\)' \| \
42266          .     : '\(.\)' 2>/dev/null ||
42267 echo X"$file" |
42268     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42269           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42270           /^X\(\/\/\)$/{ s//\1/; q; }
42271           /^X\(\/\).*/{ s//\1/; q; }
42272           s/.*/./; q'`
42273     { if $as_mkdir_p; then
42274     mkdir -p $dirpart/$fdir
42275   else
42276     as_dir=$dirpart/$fdir
42277     as_dirs=
42278     while test ! -d "$as_dir"; do
42279       as_dirs="$as_dir $as_dirs"
42280       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42281 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42282          X"$as_dir" : 'X\(//\)[^/]' \| \
42283          X"$as_dir" : 'X\(//\)$' \| \
42284          X"$as_dir" : 'X\(/\)' \| \
42285          .     : '\(.\)' 2>/dev/null ||
42286 echo X"$as_dir" |
42287     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42288           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42289           /^X\(\/\/\)$/{ s//\1/; q; }
42290           /^X\(\/\).*/{ s//\1/; q; }
42291           s/.*/./; q'`
42292     done
42293     test ! -n "$as_dirs" || mkdir $as_dirs
42294   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
42295 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
42296    { (exit 1); exit 1; }; }; }
42297
42298     # echo "creating $dirpart/$file"
42299     echo '# dummy' > "$dirpart/$file"
42300   done
42301 done
42302  ;;
42303     default-1 )
42304     for ac_file in $CONFIG_FILES; do
42305       # Support "outfile[:infile[:infile...]]"
42306       case "$ac_file" in
42307         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
42308       esac
42309       # PO directories have a Makefile.in generated from Makefile.in.in.
42310       case "$ac_file" in */Makefile.in)
42311         # Adjust a relative srcdir.
42312         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
42313         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
42314         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
42315         # In autoconf-2.13 it is called $ac_given_srcdir.
42316         # In autoconf-2.50 it is called $srcdir.
42317         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
42318         case "$ac_given_srcdir" in
42319           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
42320           /*) top_srcdir="$ac_given_srcdir" ;;
42321           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
42322         esac
42323         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
42324           rm -f "$ac_dir/POTFILES"
42325           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
42326           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
42327           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
42328           # on $ac_dir but don't depend on user-specified configuration
42329           # parameters.
42330           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
42331             # The LINGUAS file contains the set of available languages.
42332             if test -n "$ALL_LINGUAS"; then
42333               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
42334             fi
42335             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
42336             # Hide the ALL_LINGUAS assigment from automake.
42337             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
42338           fi
42339           case "$ac_given_srcdir" in
42340             .) srcdirpre= ;;
42341             *) srcdirpre='$(srcdir)/' ;;
42342           esac
42343           POFILES=
42344           GMOFILES=
42345           UPDATEPOFILES=
42346           DUMMYPOFILES=
42347           for lang in $ALL_LINGUAS; do
42348             POFILES="$POFILES $srcdirpre$lang.po"
42349             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
42350             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
42351             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
42352           done
42353           # CATALOGS depends on both $ac_dir and the user's LINGUAS
42354           # environment variable.
42355           INST_LINGUAS=
42356           if test -n "$ALL_LINGUAS"; then
42357             for presentlang in $ALL_LINGUAS; do
42358               useit=no
42359               if test "%UNSET%" != "$LINGUAS"; then
42360                 desiredlanguages="$LINGUAS"
42361               else
42362                 desiredlanguages="$ALL_LINGUAS"
42363               fi
42364               for desiredlang in $desiredlanguages; do
42365                 # Use the presentlang catalog if desiredlang is
42366                 #   a. equal to presentlang, or
42367                 #   b. a variant of presentlang (because in this case,
42368                 #      presentlang can be used as a fallback for messages
42369                 #      which are not translated in the desiredlang catalog).
42370                 case "$desiredlang" in
42371                   "$presentlang"*) useit=yes;;
42372                 esac
42373               done
42374               if test $useit = yes; then
42375                 INST_LINGUAS="$INST_LINGUAS $presentlang"
42376               fi
42377             done
42378           fi
42379           CATALOGS=
42380           if test -n "$INST_LINGUAS"; then
42381             for lang in $INST_LINGUAS; do
42382               CATALOGS="$CATALOGS $lang.gmo"
42383             done
42384           fi
42385           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
42386           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" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
42387           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
42388             if test -f "$f"; then
42389               case "$f" in
42390                 *.orig | *.bak | *~) ;;
42391                 *) cat "$f" >> "$ac_dir/Makefile" ;;
42392               esac
42393             fi
42394           done
42395         fi
42396         ;;
42397       esac
42398     done ;;
42399   esac
42400 done
42401 _ACEOF
42402
42403 cat >>$CONFIG_STATUS <<\_ACEOF
42404
42405 { (exit 0); exit 0; }
42406 _ACEOF
42407 chmod +x $CONFIG_STATUS
42408 ac_clean_files=$ac_clean_files_save
42409
42410
42411 # configure is writing to config.log, and then calls config.status.
42412 # config.status does its own redirection, appending to config.log.
42413 # Unfortunately, on DOS this fails, as config.log is still kept open
42414 # by configure, so config.status won't be able to write to it; its
42415 # output is simply discarded.  So we exec the FD to /dev/null,
42416 # effectively closing config.log, so it can be properly (re)opened and
42417 # appended to by config.status.  When coming back to configure, we
42418 # need to make the FD available again.
42419 if test "$no_create" != yes; then
42420   ac_cs_success=:
42421   ac_config_status_args=
42422   test "$silent" = yes &&
42423     ac_config_status_args="$ac_config_status_args --quiet"
42424   exec 5>/dev/null
42425   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42426   exec 5>>config.log
42427   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42428   # would make configure fail if this is the last instruction.
42429   $ac_cs_success || { (exit 1); exit 1; }
42430 fi
42431